1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for gutenprint 5.3.3. 5# 6# Report bugs to <gimp-print-devel@lists.sourceforge.net>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14# 15# 16# Parts of this configure script come from the 'configure.ac' file, and 17# are not based on freely-redistributable m4 macros; you can redistribute 18# them and/or modify them under the terms of the GNU General Public 19# as published by the Free Software Foundation; either version 2, or (at 20# your option) any later version. 21# 22# This program is distributed in the hope that it will be useful, 23# but WITHOUT ANY WARRANTY; without even the implied warranty of 24# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25# GNU General Public License for more details. 26# 27# You should have received a copy of the GNU General Public License 28# along with this program. If not, see <https://www.gnu.org/licenses/>. 29# 30## -------------------- ## 31## M4sh Initialization. ## 32## -------------------- ## 33 34# Be more Bourne compatible 35DUALCASE=1; export DUALCASE # for MKS sh 36if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37 emulate sh 38 NULLCMD=: 39 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 40 # is contrary to our usage. Disable this feature. 41 alias -g '${1+"$@"}'='"$@"' 42 setopt NO_GLOB_SUBST 43else 44 case `(set -o) 2>/dev/null` in #( 45 *posix*) : 46 set -o posix ;; #( 47 *) : 48 ;; 49esac 50fi 51 52 53as_nl=' 54' 55export as_nl 56# Printing a long string crashes Solaris 7 /usr/bin/printf. 57as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 58as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 59as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 60# Prefer a ksh shell builtin over an external printf program on Solaris, 61# but without wasting forks for bash or zsh. 62if test -z "$BASH_VERSION$ZSH_VERSION" \ 63 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 64 as_echo='print -r --' 65 as_echo_n='print -rn --' 66elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 67 as_echo='printf %s\n' 68 as_echo_n='printf %s' 69else 70 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 71 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 72 as_echo_n='/usr/ucb/echo -n' 73 else 74 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 75 as_echo_n_body='eval 76 arg=$1; 77 case $arg in #( 78 *"$as_nl"*) 79 expr "X$arg" : "X\\(.*\\)$as_nl"; 80 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 81 esac; 82 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 83 ' 84 export as_echo_n_body 85 as_echo_n='sh -c $as_echo_n_body as_echo' 86 fi 87 export as_echo_body 88 as_echo='sh -c $as_echo_body as_echo' 89fi 90 91# The user is always right. 92if test "${PATH_SEPARATOR+set}" != set; then 93 PATH_SEPARATOR=: 94 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 95 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 96 PATH_SEPARATOR=';' 97 } 98fi 99 100 101# IFS 102# We need space, tab and new line, in precisely that order. Quoting is 103# there to prevent editors from complaining about space-tab. 104# (If _AS_PATH_WALK were called with IFS unset, it would disable word 105# splitting by setting IFS to empty value.) 106IFS=" "" $as_nl" 107 108# Find who we are. Look in the path if we contain no directory separator. 109as_myself= 110case $0 in #(( 111 *[\\/]* ) as_myself=$0 ;; 112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113for as_dir in $PATH 114do 115 IFS=$as_save_IFS 116 test -z "$as_dir" && as_dir=. 117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 118 done 119IFS=$as_save_IFS 120 121 ;; 122esac 123# We did not find ourselves, most probably we were run as `sh COMMAND' 124# in which case we are not to be found in the path. 125if test "x$as_myself" = x; then 126 as_myself=$0 127fi 128if test ! -f "$as_myself"; then 129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 130 exit 1 131fi 132 133# Unset variables that we do not need and which cause bugs (e.g. in 134# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 135# suppresses any "Segmentation fault" message there. '((' could 136# trigger a bug in pdksh 5.2.14. 137for as_var in BASH_ENV ENV MAIL MAILPATH 138do eval test x\${$as_var+set} = xset \ 139 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 140done 141PS1='$ ' 142PS2='> ' 143PS4='+ ' 144 145# NLS nuisances. 146LC_ALL=C 147export LC_ALL 148LANGUAGE=C 149export LANGUAGE 150 151# CDPATH. 152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 153 154# Use a proper internal environment variable to ensure we don't fall 155 # into an infinite loop, continuously re-executing ourselves. 156 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 157 _as_can_reexec=no; export _as_can_reexec; 158 # We cannot yet assume a decent shell, so we have to provide a 159# neutralization value for shells without unset; and this also 160# works around shells that cannot unset nonexistent variables. 161# Preserve -v and -x to the replacement shell. 162BASH_ENV=/dev/null 163ENV=/dev/null 164(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 165case $- in # (((( 166 *v*x* | *x*v* ) as_opts=-vx ;; 167 *v* ) as_opts=-v ;; 168 *x* ) as_opts=-x ;; 169 * ) as_opts= ;; 170esac 171exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 172# Admittedly, this is quite paranoid, since all the known shells bail 173# out after a failed `exec'. 174$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 175as_fn_exit 255 176 fi 177 # We don't want this to propagate to other subprocesses. 178 { _as_can_reexec=; unset _as_can_reexec;} 179if test "x$CONFIG_SHELL" = x; then 180 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 181 emulate sh 182 NULLCMD=: 183 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 184 # is contrary to our usage. Disable this feature. 185 alias -g '\${1+\"\$@\"}'='\"\$@\"' 186 setopt NO_GLOB_SUBST 187else 188 case \`(set -o) 2>/dev/null\` in #( 189 *posix*) : 190 set -o posix ;; #( 191 *) : 192 ;; 193esac 194fi 195" 196 as_required="as_fn_return () { (exit \$1); } 197as_fn_success () { as_fn_return 0; } 198as_fn_failure () { as_fn_return 1; } 199as_fn_ret_success () { return 0; } 200as_fn_ret_failure () { return 1; } 201 202exitcode=0 203as_fn_success || { exitcode=1; echo as_fn_success failed.; } 204as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 205as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 206as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 207if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 208 209else 210 exitcode=1; echo positional parameters were not saved. 211fi 212test x\$exitcode = x0 || exit 1 213test -x / || exit 1" 214 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 215 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 216 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 217 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 218 219 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 220 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 221 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 222 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 223 PATH=/empty FPATH=/empty; export PATH FPATH 224 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 225 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 226test \$(( 1 + 1 )) = 2 || exit 1" 227 if (eval "$as_required") 2>/dev/null; then : 228 as_have_required=yes 229else 230 as_have_required=no 231fi 232 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 233 234else 235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 236as_found=false 237for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 238do 239 IFS=$as_save_IFS 240 test -z "$as_dir" && as_dir=. 241 as_found=: 242 case $as_dir in #( 243 /*) 244 for as_base in sh bash ksh sh5; do 245 # Try only shells that exist, to save several forks. 246 as_shell=$as_dir/$as_base 247 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 248 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 249 CONFIG_SHELL=$as_shell as_have_required=yes 250 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 251 break 2 252fi 253fi 254 done;; 255 esac 256 as_found=false 257done 258$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 259 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 260 CONFIG_SHELL=$SHELL as_have_required=yes 261fi; } 262IFS=$as_save_IFS 263 264 265 if test "x$CONFIG_SHELL" != x; then : 266 export CONFIG_SHELL 267 # We cannot yet assume a decent shell, so we have to provide a 268# neutralization value for shells without unset; and this also 269# works around shells that cannot unset nonexistent variables. 270# Preserve -v and -x to the replacement shell. 271BASH_ENV=/dev/null 272ENV=/dev/null 273(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 274case $- in # (((( 275 *v*x* | *x*v* ) as_opts=-vx ;; 276 *v* ) as_opts=-v ;; 277 *x* ) as_opts=-x ;; 278 * ) as_opts= ;; 279esac 280exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 281# Admittedly, this is quite paranoid, since all the known shells bail 282# out after a failed `exec'. 283$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 284exit 255 285fi 286 287 if test x$as_have_required = xno; then : 288 $as_echo "$0: This script requires a shell more modern than all" 289 $as_echo "$0: the shells that I found on your system." 290 if test x${ZSH_VERSION+set} = xset ; then 291 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 292 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 293 else 294 $as_echo "$0: Please tell bug-autoconf@gnu.org and 295$0: gimp-print-devel@lists.sourceforge.net about your 296$0: system, including any error possibly output before this 297$0: message. Then install a modern shell, or manually run 298$0: the script under such a shell if you do have one." 299 fi 300 exit 1 301fi 302fi 303fi 304SHELL=${CONFIG_SHELL-/bin/sh} 305export SHELL 306# Unset more variables known to interfere with behavior of common tools. 307CLICOLOR_FORCE= GREP_OPTIONS= 308unset CLICOLOR_FORCE GREP_OPTIONS 309 310## --------------------- ## 311## M4sh Shell Functions. ## 312## --------------------- ## 313# as_fn_unset VAR 314# --------------- 315# Portably unset VAR. 316as_fn_unset () 317{ 318 { eval $1=; unset $1;} 319} 320as_unset=as_fn_unset 321 322# as_fn_set_status STATUS 323# ----------------------- 324# Set $? to STATUS, without forking. 325as_fn_set_status () 326{ 327 return $1 328} # as_fn_set_status 329 330# as_fn_exit STATUS 331# ----------------- 332# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 333as_fn_exit () 334{ 335 set +e 336 as_fn_set_status $1 337 exit $1 338} # as_fn_exit 339 340# as_fn_mkdir_p 341# ------------- 342# Create "$as_dir" as a directory, including parents if necessary. 343as_fn_mkdir_p () 344{ 345 346 case $as_dir in #( 347 -*) as_dir=./$as_dir;; 348 esac 349 test -d "$as_dir" || eval $as_mkdir_p || { 350 as_dirs= 351 while :; do 352 case $as_dir in #( 353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 354 *) as_qdir=$as_dir;; 355 esac 356 as_dirs="'$as_qdir' $as_dirs" 357 as_dir=`$as_dirname -- "$as_dir" || 358$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 359 X"$as_dir" : 'X\(//\)[^/]' \| \ 360 X"$as_dir" : 'X\(//\)$' \| \ 361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 362$as_echo X"$as_dir" | 363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 364 s//\1/ 365 q 366 } 367 /^X\(\/\/\)[^/].*/{ 368 s//\1/ 369 q 370 } 371 /^X\(\/\/\)$/{ 372 s//\1/ 373 q 374 } 375 /^X\(\/\).*/{ 376 s//\1/ 377 q 378 } 379 s/.*/./; q'` 380 test -d "$as_dir" && break 381 done 382 test -z "$as_dirs" || eval "mkdir $as_dirs" 383 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 384 385 386} # as_fn_mkdir_p 387 388# as_fn_executable_p FILE 389# ----------------------- 390# Test if FILE is an executable regular file. 391as_fn_executable_p () 392{ 393 test -f "$1" && test -x "$1" 394} # as_fn_executable_p 395# as_fn_append VAR VALUE 396# ---------------------- 397# Append the text in VALUE to the end of the definition contained in VAR. Take 398# advantage of any shell optimizations that allow amortized linear growth over 399# repeated appends, instead of the typical quadratic growth present in naive 400# implementations. 401if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 402 eval 'as_fn_append () 403 { 404 eval $1+=\$2 405 }' 406else 407 as_fn_append () 408 { 409 eval $1=\$$1\$2 410 } 411fi # as_fn_append 412 413# as_fn_arith ARG... 414# ------------------ 415# Perform arithmetic evaluation on the ARGs, and store the result in the 416# global $as_val. Take advantage of shells that can avoid forks. The arguments 417# must be portable across $(()) and expr. 418if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 419 eval 'as_fn_arith () 420 { 421 as_val=$(( $* )) 422 }' 423else 424 as_fn_arith () 425 { 426 as_val=`expr "$@" || test $? -eq 1` 427 } 428fi # as_fn_arith 429 430 431# as_fn_error STATUS ERROR [LINENO LOG_FD] 432# ---------------------------------------- 433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435# script with STATUS, using 1 if that was 0. 436as_fn_error () 437{ 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 $as_echo "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445} # as_fn_error 446 447if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450else 451 as_expr=false 452fi 453 454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456else 457 as_basename=false 458fi 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466as_me=`$as_basename -- "$0" || 467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470$as_echo X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485# Avoid depending upon Character Ranges. 486as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489as_cr_digits='0123456789' 490as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 s/[$]LINENO.*/&-/ 504 t lineno 505 b 506 :lineno 507 N 508 :loop 509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 510 t loop 511 s/-\n.*// 512 ' >$as_me.lineno && 513 chmod +x "$as_me.lineno" || 514 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 515 516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 517 # already done that, so ensure we don't try to do so again and fall 518 # in an infinite loop. This has already happened in practice. 519 _as_can_reexec=no; export _as_can_reexec 520 # Don't try to exec as it changes $[0], causing all sort of problems 521 # (the dirname of $[0] is not the place where we might find the 522 # original and so on. Autoconf is especially sensitive to this). 523 . "./$as_me.lineno" 524 # Exit status is that of the last command. 525 exit 526} 527 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541rm -f conf$$ conf$$.exe conf$$.file 542if test -d conf$$.dir; then 543 rm -f conf$$.dir/conf$$.file 544else 545 rm -f conf$$.dir 546 mkdir conf$$.dir 2>/dev/null 547fi 548if (echo >conf$$.file) 2>/dev/null; then 549 if ln -s conf$$.file conf$$ 2>/dev/null; then 550 as_ln_s='ln -s' 551 # ... but there are two gotchas: 552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 554 # In both cases, we have to default to `cp -pR'. 555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 556 as_ln_s='cp -pR' 557 elif ln conf$$.file conf$$ 2>/dev/null; then 558 as_ln_s=ln 559 else 560 as_ln_s='cp -pR' 561 fi 562else 563 as_ln_s='cp -pR' 564fi 565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 566rmdir conf$$.dir 2>/dev/null 567 568if mkdir -p . 2>/dev/null; then 569 as_mkdir_p='mkdir -p "$as_dir"' 570else 571 test -d ./-p && rmdir ./-p 572 as_mkdir_p=false 573fi 574 575as_test_x='test -x' 576as_executable_p=as_fn_executable_p 577 578# Sed expression to map a string onto a valid CPP name. 579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 580 581# Sed expression to map a string onto a valid variable name. 582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 583 584SHELL=${CONFIG_SHELL-/bin/sh} 585 586 587test -n "$DJDIR" || exec 7<&0 </dev/null 588exec 6>&1 589 590# Name of the host. 591# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 592# so uname gets run too. 593ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 594 595# 596# Initializations. 597# 598ac_default_prefix=/usr/local 599ac_clean_files= 600ac_config_libobj_dir=. 601LIBOBJS= 602cross_compiling=no 603subdirs= 604MFLAGS= 605MAKEFLAGS= 606 607# Identity of this package. 608PACKAGE_NAME='gutenprint' 609PACKAGE_TARNAME='gutenprint' 610PACKAGE_VERSION='5.3.3' 611PACKAGE_STRING='gutenprint 5.3.3' 612PACKAGE_BUGREPORT='gimp-print-devel@lists.sourceforge.net' 613PACKAGE_URL='https://gimp-print.sourceforge.net' 614 615ac_unique_file="src/main/print-vars.c" 616# Factoring default headers for most tests. 617ac_includes_default="\ 618#include <stdio.h> 619#ifdef HAVE_SYS_TYPES_H 620# include <sys/types.h> 621#endif 622#ifdef HAVE_SYS_STAT_H 623# include <sys/stat.h> 624#endif 625#ifdef STDC_HEADERS 626# include <stdlib.h> 627# include <stddef.h> 628#else 629# ifdef HAVE_STDLIB_H 630# include <stdlib.h> 631# endif 632#endif 633#ifdef HAVE_STRING_H 634# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 635# include <memory.h> 636# endif 637# include <string.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652gt_needs= 653ac_subst_vars='LTALLOCA 654am__EXEEXT_FALSE 655am__EXEEXT_TRUE 656LTLIBOBJS 657LIBOBJS 658MINIMAL_PRINTERS_TO_TEST 659PKGROOT 660LIBUSB_BACKEND_LIBDEPS 661GUTENPRINT_RELEASE_VERSION 662GUTENPRINT_BASE_VERSION 663BUILD_CUPS_PPDS 664WHICH_PPDS 665MAINTAINER_CFLAGS 666LIBREADLINE_DEPS 667LIBM 668gutenprintui2_libdeps 669gutenprintui2_libs 670gutenprintui2_cflags 671gutenprint_libdeps 672gutenprint_libs 673gutenprint_cflags 674GUTENPRINTUI2_VERSION 675GUTENPRINTUI2_LIBDEPS 676GUTENPRINTUI2_LIBS 677GUTENPRINTUI2_CFLAGS 678GUTENPRINT_LIBDEPS 679GUTENPRINT_LIBS 680GUTENPRINT_CFLAGS 681gimp2_plug_indir 682RM 683GENPPD_LIBS 684CUPS_PPD_PS_LEVEL 685CUPS_LIBS 686CUPS_CFLAGS 687cups_conf_serverroot 688cups_conf_serverbin 689cups_conf_datadir 690cups_sbindir 691cups_bindir 692cups_exec_prefix 693cups_prefix 694RELEASE_DATE 695BUILD_GENPPD_STATIC_FALSE 696BUILD_GENPPD_STATIC_TRUE 697BUILD_MODULES_FALSE 698BUILD_MODULES_TRUE 699BUILD_LIBUSB_BACKENDS_FALSE 700BUILD_LIBUSB_BACKENDS_TRUE 701INSTALL_USER_GUIDE_FALSE 702INSTALL_USER_GUIDE_TRUE 703INSTALL_SAMPLES_FALSE 704INSTALL_SAMPLES_TRUE 705BUILD_GIMP2_AS_GUTENPRINT_FALSE 706BUILD_GIMP2_AS_GUTENPRINT_TRUE 707BUILD_DOC_FALSE 708BUILD_DOC_TRUE 709BUILD_GIMP2_FALSE 710BUILD_GIMP2_TRUE 711BUILD_LIBGUTENPRINTUI2_FALSE 712BUILD_LIBGUTENPRINTUI2_TRUE 713BUILD_TESTPATTERN_FALSE 714BUILD_TESTPATTERN_TRUE 715BUILD_TEST_FALSE 716BUILD_TEST_TRUE 717BUILD_ESCPUTIL_FALSE 718BUILD_ESCPUTIL_TRUE 719USE_LEVEL3_PS_FALSE 720USE_LEVEL3_PS_TRUE 721BUILD_SIMPLIFIED_CUPS_PPDS_FALSE 722BUILD_SIMPLIFIED_CUPS_PPDS_TRUE 723BUILD_GLOBALIZED_CUPS_PPDS_FALSE 724BUILD_GLOBALIZED_CUPS_PPDS_TRUE 725BUILD_TRANSLATED_CUPS_PPDS_FALSE 726BUILD_TRANSLATED_CUPS_PPDS_TRUE 727CUPS_PPDS_AT_TOP_LEVEL_FALSE 728CUPS_PPDS_AT_TOP_LEVEL_TRUE 729BUILD_CUPS_PPDS_FALSE 730BUILD_CUPS_PPDS_TRUE 731BUILD_CUPS_1_2_FALSE 732BUILD_CUPS_1_2_TRUE 733BUILD_CUPS_FALSE 734BUILD_CUPS_TRUE 735GNUCFLAGS 736CSUF 737COMPRESS 738BASH 739ZPAQ 740RZIP 741LRZIP 742BZIP2 743GZIP 744XZ 745DOXYGEN 746DB2HTML 747DB2PS 748DVIPDF 749DB2PDF 750DVIPS 751TEXI2HTML 752BASHREAL 753CONVERT 754GLIB_MKENUMS 755PERL 756FIND 757TRUE 758TEST 759YFLAGS 760YACC 761LEXLIB 762LEX_OUTPUT_ROOT 763LEX 764GIMP2_LIBS 765GIMP2_CFLAGS 766GTK2_LIBS 767GTK2_CFLAGS 768GIMPTOOL2_CHECK 769LIBUSB_LIBS 770LIBUSB_CFLAGS 771PKG_CONFIG_LIBDIR 772PKG_CONFIG_PATH 773PKG_CONFIG 774ENABLE_SHARED 775ENABLE_STATIC 776USE_NLS_FALSE 777USE_NLS_TRUE 778POSUB 779LTLIBINTL 780LIBINTL 781INTLLIBS 782LTLIBICONV 783LIBICONV 784INTL_MACOSX_LIBS 785MSGMERGE 786XGETTEXT_015 787XGETTEXT 788GMSGFMT_015 789MSGFMT_015 790GMSGFMT 791MSGFMT 792USE_NLS 793CUPS_CONFIG 794MAINT 795MAINTAINER_MODE_FALSE 796MAINTAINER_MODE_TRUE 797LIBTOOL_DEPS 798CPP 799LT_SYS_LIBRARY_PATH 800OTOOL64 801OTOOL 802LIPO 803NMEDIT 804DSYMUTIL 805MANIFEST_TOOL 806RANLIB 807ac_ct_AR 808AR 809DLLTOOL 810OBJDUMP 811LN_S 812NM 813ac_ct_DUMPBIN 814DUMPBIN 815LD 816FGREP 817EGREP 818GREP 819SED 820am__fastdepCC_FALSE 821am__fastdepCC_TRUE 822CCDEPMODE 823am__nodep 824AMDEPBACKSLASH 825AMDEP_FALSE 826AMDEP_TRUE 827am__include 828DEPDIR 829OBJEXT 830EXEEXT 831ac_ct_CC 832CPPFLAGS 833LDFLAGS 834CFLAGS 835CC 836host_os 837host_vendor 838host_cpu 839host 840build_os 841build_vendor 842build_cpu 843build 844LIBTOOL 845ALL_LINGUAS 846AM_BACKSLASH 847AM_DEFAULT_VERBOSITY 848AM_DEFAULT_V 849AM_V 850am__untar 851am__tar 852AMTAR 853am__leading_dot 854SET_MAKE 855AWK 856mkdir_p 857MKDIR_P 858INSTALL_STRIP_PROGRAM 859STRIP 860install_sh 861MAKEINFO 862AUTOHEADER 863AUTOMAKE 864AUTOCONF 865ACLOCAL 866VERSION 867PACKAGE 868CYGPATH_W 869am__isrc 870INSTALL_DATA 871INSTALL_SCRIPT 872INSTALL_PROGRAM 873GUTENPRINTUI2_BINARY_AGE 874GUTENPRINTUI2_INTERFACE_AGE 875GUTENPRINTUI2_CURRENT_INTERFACE 876GUTENPRINT_VERSION 877GUTENPRINT_BINARY_AGE 878GUTENPRINT_INTERFACE_AGE 879GUTENPRINT_CURRENT_INTERFACE 880GUTENPRINT_MICRO_VERSION 881GUTENPRINT_MINOR_VERSION 882GUTENPRINT_MAJOR_VERSION 883target_alias 884host_alias 885build_alias 886LIBS 887ECHO_T 888ECHO_N 889ECHO_C 890DEFS 891mandir 892localedir 893libdir 894psdir 895pdfdir 896dvidir 897htmldir 898infodir 899docdir 900oldincludedir 901includedir 902localstatedir 903sharedstatedir 904sysconfdir 905datadir 906datarootdir 907libexecdir 908sbindir 909bindir 910program_transform_name 911prefix 912exec_prefix 913PACKAGE_URL 914PACKAGE_BUGREPORT 915PACKAGE_STRING 916PACKAGE_VERSION 917PACKAGE_TARNAME 918PACKAGE_NAME 919PATH_SEPARATOR 920SHELL 921am__quote' 922ac_subst_files='' 923ac_user_opts=' 924enable_option_checking 925enable_silent_rules 926enable_shared 927enable_static 928with_pic 929enable_fast_install 930with_aix_soname 931enable_dependency_tracking 932with_gnu_ld 933with_sysroot 934enable_libtool_lock 935enable_maintainer_mode 936with_cups_config 937with_cups 938enable_nls 939enable_rpath 940with_libiconv_prefix 941with_libintl_prefix 942enable_nls_macosx 943enable_cups_ppds 944enable_cups_1_2_enhancements 945enable_translated_cups_ppds 946enable_globalized_cups_ppds 947enable_simplified_cups_ppds 948enable_cups_ppds_at_top_level 949enable_cups_level3_ppds 950enable_static_genppd 951with_modules 952enable_debug 953enable_profile 954with_readline 955enable_user_install 956with_gimp2 957with_gimp2_as_gutenprint 958enable_libgutenprintui2 959enable_samples 960enable_escputil 961enable_test 962with_doc 963enable_testpattern 964with_cups_nickname 965with_archflags 966' 967 ac_precious_vars='build_alias 968host_alias 969target_alias 970CC 971CFLAGS 972LDFLAGS 973LIBS 974CPPFLAGS 975LT_SYS_LIBRARY_PATH 976CPP 977PKG_CONFIG 978PKG_CONFIG_PATH 979PKG_CONFIG_LIBDIR 980LIBUSB_CFLAGS 981LIBUSB_LIBS 982GTK2_CFLAGS 983GTK2_LIBS 984GIMP2_CFLAGS 985GIMP2_LIBS 986YACC 987YFLAGS' 988 989 990# Initialize some variables set by options. 991ac_init_help= 992ac_init_version=false 993ac_unrecognized_opts= 994ac_unrecognized_sep= 995# The variables have the same names as the options, with 996# dashes changed to underlines. 997cache_file=/dev/null 998exec_prefix=NONE 999no_create= 1000no_recursion= 1001prefix=NONE 1002program_prefix=NONE 1003program_suffix=NONE 1004program_transform_name=s,x,x, 1005silent= 1006site= 1007srcdir= 1008verbose= 1009x_includes=NONE 1010x_libraries=NONE 1011 1012# Installation directory options. 1013# These are left unexpanded so users can "make install exec_prefix=/foo" 1014# and all the variables that are supposed to be based on exec_prefix 1015# by default will actually change. 1016# Use braces instead of parens because sh, perl, etc. also accept them. 1017# (The list follows the same order as the GNU Coding Standards.) 1018bindir='${exec_prefix}/bin' 1019sbindir='${exec_prefix}/sbin' 1020libexecdir='${exec_prefix}/libexec' 1021datarootdir='${prefix}/share' 1022datadir='${datarootdir}' 1023sysconfdir='${prefix}/etc' 1024sharedstatedir='${prefix}/com' 1025localstatedir='${prefix}/var' 1026includedir='${prefix}/include' 1027oldincludedir='/usr/include' 1028docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1029infodir='${datarootdir}/info' 1030htmldir='${docdir}' 1031dvidir='${docdir}' 1032pdfdir='${docdir}' 1033psdir='${docdir}' 1034libdir='${exec_prefix}/lib' 1035localedir='${datarootdir}/locale' 1036mandir='${datarootdir}/man' 1037 1038ac_prev= 1039ac_dashdash= 1040for ac_option 1041do 1042 # If the previous option needs an argument, assign it. 1043 if test -n "$ac_prev"; then 1044 eval $ac_prev=\$ac_option 1045 ac_prev= 1046 continue 1047 fi 1048 1049 case $ac_option in 1050 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1051 *=) ac_optarg= ;; 1052 *) ac_optarg=yes ;; 1053 esac 1054 1055 # Accept the important Cygnus configure options, so we can diagnose typos. 1056 1057 case $ac_dashdash$ac_option in 1058 --) 1059 ac_dashdash=yes ;; 1060 1061 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1062 ac_prev=bindir ;; 1063 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1064 bindir=$ac_optarg ;; 1065 1066 -build | --build | --buil | --bui | --bu) 1067 ac_prev=build_alias ;; 1068 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1069 build_alias=$ac_optarg ;; 1070 1071 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1073 ac_prev=cache_file ;; 1074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1076 cache_file=$ac_optarg ;; 1077 1078 --config-cache | -C) 1079 cache_file=config.cache ;; 1080 1081 -datadir | --datadir | --datadi | --datad) 1082 ac_prev=datadir ;; 1083 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1084 datadir=$ac_optarg ;; 1085 1086 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1087 | --dataroo | --dataro | --datar) 1088 ac_prev=datarootdir ;; 1089 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1090 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1091 datarootdir=$ac_optarg ;; 1092 1093 -disable-* | --disable-*) 1094 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1095 # Reject names that are not valid shell variable names. 1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1097 as_fn_error $? "invalid feature name: $ac_useropt" 1098 ac_useropt_orig=$ac_useropt 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100 case $ac_user_opts in 1101 *" 1102"enable_$ac_useropt" 1103"*) ;; 1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1105 ac_unrecognized_sep=', ';; 1106 esac 1107 eval enable_$ac_useropt=no ;; 1108 1109 -docdir | --docdir | --docdi | --doc | --do) 1110 ac_prev=docdir ;; 1111 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1112 docdir=$ac_optarg ;; 1113 1114 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1115 ac_prev=dvidir ;; 1116 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1117 dvidir=$ac_optarg ;; 1118 1119 -enable-* | --enable-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid feature name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"enable_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval enable_$ac_useropt=\$ac_optarg ;; 1134 1135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1137 | --exec | --exe | --ex) 1138 ac_prev=exec_prefix ;; 1139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1141 | --exec=* | --exe=* | --ex=*) 1142 exec_prefix=$ac_optarg ;; 1143 1144 -gas | --gas | --ga | --g) 1145 # Obsolete; use --with-gas. 1146 with_gas=yes ;; 1147 1148 -help | --help | --hel | --he | -h) 1149 ac_init_help=long ;; 1150 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1151 ac_init_help=recursive ;; 1152 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1153 ac_init_help=short ;; 1154 1155 -host | --host | --hos | --ho) 1156 ac_prev=host_alias ;; 1157 -host=* | --host=* | --hos=* | --ho=*) 1158 host_alias=$ac_optarg ;; 1159 1160 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1161 ac_prev=htmldir ;; 1162 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1163 | --ht=*) 1164 htmldir=$ac_optarg ;; 1165 1166 -includedir | --includedir | --includedi | --included | --include \ 1167 | --includ | --inclu | --incl | --inc) 1168 ac_prev=includedir ;; 1169 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1170 | --includ=* | --inclu=* | --incl=* | --inc=*) 1171 includedir=$ac_optarg ;; 1172 1173 -infodir | --infodir | --infodi | --infod | --info | --inf) 1174 ac_prev=infodir ;; 1175 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1176 infodir=$ac_optarg ;; 1177 1178 -libdir | --libdir | --libdi | --libd) 1179 ac_prev=libdir ;; 1180 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1181 libdir=$ac_optarg ;; 1182 1183 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1184 | --libexe | --libex | --libe) 1185 ac_prev=libexecdir ;; 1186 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1187 | --libexe=* | --libex=* | --libe=*) 1188 libexecdir=$ac_optarg ;; 1189 1190 -localedir | --localedir | --localedi | --localed | --locale) 1191 ac_prev=localedir ;; 1192 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1193 localedir=$ac_optarg ;; 1194 1195 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1196 | --localstate | --localstat | --localsta | --localst | --locals) 1197 ac_prev=localstatedir ;; 1198 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1199 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1200 localstatedir=$ac_optarg ;; 1201 1202 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1203 ac_prev=mandir ;; 1204 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1205 mandir=$ac_optarg ;; 1206 1207 -nfp | --nfp | --nf) 1208 # Obsolete; use --without-fp. 1209 with_fp=no ;; 1210 1211 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1212 | --no-cr | --no-c | -n) 1213 no_create=yes ;; 1214 1215 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1216 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1217 no_recursion=yes ;; 1218 1219 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1220 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1221 | --oldin | --oldi | --old | --ol | --o) 1222 ac_prev=oldincludedir ;; 1223 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1224 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1225 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1226 oldincludedir=$ac_optarg ;; 1227 1228 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1229 ac_prev=prefix ;; 1230 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1231 prefix=$ac_optarg ;; 1232 1233 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1234 | --program-pre | --program-pr | --program-p) 1235 ac_prev=program_prefix ;; 1236 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1237 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1238 program_prefix=$ac_optarg ;; 1239 1240 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1241 | --program-suf | --program-su | --program-s) 1242 ac_prev=program_suffix ;; 1243 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1244 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1245 program_suffix=$ac_optarg ;; 1246 1247 -program-transform-name | --program-transform-name \ 1248 | --program-transform-nam | --program-transform-na \ 1249 | --program-transform-n | --program-transform- \ 1250 | --program-transform | --program-transfor \ 1251 | --program-transfo | --program-transf \ 1252 | --program-trans | --program-tran \ 1253 | --progr-tra | --program-tr | --program-t) 1254 ac_prev=program_transform_name ;; 1255 -program-transform-name=* | --program-transform-name=* \ 1256 | --program-transform-nam=* | --program-transform-na=* \ 1257 | --program-transform-n=* | --program-transform-=* \ 1258 | --program-transform=* | --program-transfor=* \ 1259 | --program-transfo=* | --program-transf=* \ 1260 | --program-trans=* | --program-tran=* \ 1261 | --progr-tra=* | --program-tr=* | --program-t=*) 1262 program_transform_name=$ac_optarg ;; 1263 1264 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1265 ac_prev=pdfdir ;; 1266 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1267 pdfdir=$ac_optarg ;; 1268 1269 -psdir | --psdir | --psdi | --psd | --ps) 1270 ac_prev=psdir ;; 1271 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1272 psdir=$ac_optarg ;; 1273 1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1275 | -silent | --silent | --silen | --sile | --sil) 1276 silent=yes ;; 1277 1278 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1279 ac_prev=sbindir ;; 1280 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1281 | --sbi=* | --sb=*) 1282 sbindir=$ac_optarg ;; 1283 1284 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1285 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1286 | --sharedst | --shareds | --shared | --share | --shar \ 1287 | --sha | --sh) 1288 ac_prev=sharedstatedir ;; 1289 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1290 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1291 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1292 | --sha=* | --sh=*) 1293 sharedstatedir=$ac_optarg ;; 1294 1295 -site | --site | --sit) 1296 ac_prev=site ;; 1297 -site=* | --site=* | --sit=*) 1298 site=$ac_optarg ;; 1299 1300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1301 ac_prev=srcdir ;; 1302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1303 srcdir=$ac_optarg ;; 1304 1305 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1306 | --syscon | --sysco | --sysc | --sys | --sy) 1307 ac_prev=sysconfdir ;; 1308 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1309 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1310 sysconfdir=$ac_optarg ;; 1311 1312 -target | --target | --targe | --targ | --tar | --ta | --t) 1313 ac_prev=target_alias ;; 1314 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1315 target_alias=$ac_optarg ;; 1316 1317 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1318 verbose=yes ;; 1319 1320 -version | --version | --versio | --versi | --vers | -V) 1321 ac_init_version=: ;; 1322 1323 -with-* | --with-*) 1324 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1325 # Reject names that are not valid shell variable names. 1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1327 as_fn_error $? "invalid package name: $ac_useropt" 1328 ac_useropt_orig=$ac_useropt 1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1330 case $ac_user_opts in 1331 *" 1332"with_$ac_useropt" 1333"*) ;; 1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1335 ac_unrecognized_sep=', ';; 1336 esac 1337 eval with_$ac_useropt=\$ac_optarg ;; 1338 1339 -without-* | --without-*) 1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1341 # Reject names that are not valid shell variable names. 1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1343 as_fn_error $? "invalid package name: $ac_useropt" 1344 ac_useropt_orig=$ac_useropt 1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1346 case $ac_user_opts in 1347 *" 1348"with_$ac_useropt" 1349"*) ;; 1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1351 ac_unrecognized_sep=', ';; 1352 esac 1353 eval with_$ac_useropt=no ;; 1354 1355 --x) 1356 # Obsolete; use --with-x. 1357 with_x=yes ;; 1358 1359 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1360 | --x-incl | --x-inc | --x-in | --x-i) 1361 ac_prev=x_includes ;; 1362 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1363 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1364 x_includes=$ac_optarg ;; 1365 1366 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1367 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1368 ac_prev=x_libraries ;; 1369 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1370 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1371 x_libraries=$ac_optarg ;; 1372 1373 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1374Try \`$0 --help' for more information" 1375 ;; 1376 1377 *=*) 1378 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1379 # Reject names that are not valid shell variable names. 1380 case $ac_envvar in #( 1381 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1382 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1383 esac 1384 eval $ac_envvar=\$ac_optarg 1385 export $ac_envvar ;; 1386 1387 *) 1388 # FIXME: should be removed in autoconf 3.0. 1389 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1390 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1391 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1392 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1393 ;; 1394 1395 esac 1396done 1397 1398if test -n "$ac_prev"; then 1399 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1400 as_fn_error $? "missing argument to $ac_option" 1401fi 1402 1403if test -n "$ac_unrecognized_opts"; then 1404 case $enable_option_checking in 1405 no) ;; 1406 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1407 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1408 esac 1409fi 1410 1411# Check all directory arguments for consistency. 1412for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1413 datadir sysconfdir sharedstatedir localstatedir includedir \ 1414 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1415 libdir localedir mandir 1416do 1417 eval ac_val=\$$ac_var 1418 # Remove trailing slashes. 1419 case $ac_val in 1420 */ ) 1421 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1422 eval $ac_var=\$ac_val;; 1423 esac 1424 # Be sure to have absolute directory names. 1425 case $ac_val in 1426 [\\/$]* | ?:[\\/]* ) continue;; 1427 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1428 esac 1429 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1430done 1431 1432# There might be people who depend on the old broken behavior: `$host' 1433# used to hold the argument of --host etc. 1434# FIXME: To remove some day. 1435build=$build_alias 1436host=$host_alias 1437target=$target_alias 1438 1439# FIXME: To remove some day. 1440if test "x$host_alias" != x; then 1441 if test "x$build_alias" = x; then 1442 cross_compiling=maybe 1443 elif test "x$build_alias" != "x$host_alias"; then 1444 cross_compiling=yes 1445 fi 1446fi 1447 1448ac_tool_prefix= 1449test -n "$host_alias" && ac_tool_prefix=$host_alias- 1450 1451test "$silent" = yes && exec 6>/dev/null 1452 1453 1454ac_pwd=`pwd` && test -n "$ac_pwd" && 1455ac_ls_di=`ls -di .` && 1456ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1457 as_fn_error $? "working directory cannot be determined" 1458test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1459 as_fn_error $? "pwd does not report name of working directory" 1460 1461 1462# Find the source files, if location was not specified. 1463if test -z "$srcdir"; then 1464 ac_srcdir_defaulted=yes 1465 # Try the directory containing this script, then the parent directory. 1466 ac_confdir=`$as_dirname -- "$as_myself" || 1467$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1468 X"$as_myself" : 'X\(//\)[^/]' \| \ 1469 X"$as_myself" : 'X\(//\)$' \| \ 1470 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1471$as_echo X"$as_myself" | 1472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1473 s//\1/ 1474 q 1475 } 1476 /^X\(\/\/\)[^/].*/{ 1477 s//\1/ 1478 q 1479 } 1480 /^X\(\/\/\)$/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\).*/{ 1485 s//\1/ 1486 q 1487 } 1488 s/.*/./; q'` 1489 srcdir=$ac_confdir 1490 if test ! -r "$srcdir/$ac_unique_file"; then 1491 srcdir=.. 1492 fi 1493else 1494 ac_srcdir_defaulted=no 1495fi 1496if test ! -r "$srcdir/$ac_unique_file"; then 1497 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1498 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1499fi 1500ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1501ac_abs_confdir=`( 1502 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1503 pwd)` 1504# When building in place, set srcdir=. 1505if test "$ac_abs_confdir" = "$ac_pwd"; then 1506 srcdir=. 1507fi 1508# Remove unnecessary trailing slashes from srcdir. 1509# Double slashes in file names in object file debugging info 1510# mess up M-x gdb in Emacs. 1511case $srcdir in 1512*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1513esac 1514for ac_var in $ac_precious_vars; do 1515 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1516 eval ac_env_${ac_var}_value=\$${ac_var} 1517 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1518 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1519done 1520 1521# 1522# Report the --help message. 1523# 1524if test "$ac_init_help" = "long"; then 1525 # Omit some internal or obsolete options to make the list less imposing. 1526 # This message is too long to be a string in the A/UX 3.1 sh. 1527 cat <<_ACEOF 1528\`configure' configures gutenprint 5.3.3 to adapt to many kinds of systems. 1529 1530Usage: $0 [OPTION]... [VAR=VALUE]... 1531 1532To assign environment variables (e.g., CC, CFLAGS...), specify them as 1533VAR=VALUE. See below for descriptions of some of the useful variables. 1534 1535Defaults for the options are specified in brackets. 1536 1537Configuration: 1538 -h, --help display this help and exit 1539 --help=short display options specific to this package 1540 --help=recursive display the short help of all the included packages 1541 -V, --version display version information and exit 1542 -q, --quiet, --silent do not print \`checking ...' messages 1543 --cache-file=FILE cache test results in FILE [disabled] 1544 -C, --config-cache alias for \`--cache-file=config.cache' 1545 -n, --no-create do not create output files 1546 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1547 1548Installation directories: 1549 --prefix=PREFIX install architecture-independent files in PREFIX 1550 [$ac_default_prefix] 1551 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1552 [PREFIX] 1553 1554By default, \`make install' will install all the files in 1555\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1556an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1557for instance \`--prefix=\$HOME'. 1558 1559For better control, use the options below. 1560 1561Fine tuning of the installation directories: 1562 --bindir=DIR user executables [EPREFIX/bin] 1563 --sbindir=DIR system admin executables [EPREFIX/sbin] 1564 --libexecdir=DIR program executables [EPREFIX/libexec] 1565 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1566 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1567 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1568 --libdir=DIR object code libraries [EPREFIX/lib] 1569 --includedir=DIR C header files [PREFIX/include] 1570 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1571 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1572 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1573 --infodir=DIR info documentation [DATAROOTDIR/info] 1574 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1575 --mandir=DIR man documentation [DATAROOTDIR/man] 1576 --docdir=DIR documentation root [DATAROOTDIR/doc/gutenprint] 1577 --htmldir=DIR html documentation [DOCDIR] 1578 --dvidir=DIR dvi documentation [DOCDIR] 1579 --pdfdir=DIR pdf documentation [DOCDIR] 1580 --psdir=DIR ps documentation [DOCDIR] 1581_ACEOF 1582 1583 cat <<\_ACEOF 1584 1585Program names: 1586 --program-prefix=PREFIX prepend PREFIX to installed program names 1587 --program-suffix=SUFFIX append SUFFIX to installed program names 1588 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1589 1590System types: 1591 --build=BUILD configure for building on BUILD [guessed] 1592 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1593_ACEOF 1594fi 1595 1596if test -n "$ac_init_help"; then 1597 case $ac_init_help in 1598 short | recursive ) echo "Configuration of gutenprint 5.3.3:";; 1599 esac 1600 cat <<\_ACEOF 1601 1602Optional Features: 1603 --disable-option-checking ignore unrecognized --enable/--with options 1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1606 --enable-silent-rules less verbose build output (undo: "make V=1") 1607 --disable-silent-rules verbose build output (undo: "make V=0") 1608 --enable-shared[=PKGS] build shared libraries [default=yes] 1609 --enable-static[=PKGS] build static libraries [default=yes] 1610 --enable-fast-install[=PKGS] 1611 optimize for fast installation [default=yes] 1612 --enable-dependency-tracking 1613 do not reject slow dependency extractors 1614 --disable-dependency-tracking 1615 speeds up one-time build 1616 --disable-libtool-lock avoid locking (might break parallel builds) 1617 --enable-maintainer-mode 1618 enable make rules and dependencies not useful (and 1619 sometimes confusing) to the casual installer 1620 --disable-nls do not use Native Language Support 1621 --disable-rpath do not hardcode runtime library paths 1622 --enable-nls-macosx build CUPS PPD files [(automatic)] 1623 --enable-cups-ppds build CUPS PPD files [(automatic)] 1624 --enable-cups-1_2-enhancements 1625 build CUPS 1.2 enhancements [(automatic)] 1626 --enable-translated-cups-ppds 1627 build translated CUPS PPD files [(automatic)] 1628 --enable-globalized-cups-ppds 1629 build globalized CUPS PPD files [(automatic)] 1630 --enable-simplified-cups-ppds 1631 build simplified CUPS PPD files (options: yes, no, 1632 only) [no] 1633 --enable-cups-ppds-at-top-level 1634 place CUPS PPD files at top level [no] 1635 --enable-cups-level3-ppds 1636 generate PostScript level 3 PPD files [(automatic)] 1637 --enable-static-genppd build a statically-linked cups-genppd and 1638 rastertogutenprint. WARNING: Please read the README 1639 and NEWS (release notes) CAREFULLY before using 1640 --disable-static-genppd! [(automatic)] 1641 --enable-debug turn on debugging in build [no] 1642 --enable-profile turn on profiling in build [no] 1643 --enable-user-install install GIMP plugin in home directory [no] 1644 --enable-libgutenprintui2 1645 build Gutenprint GTK+-2.0 user interface library 1646 [(automatic)] 1647 --enable-samples install sample images [yes] 1648 --enable-escputil build escputil [yes] 1649 --enable-test build test programs [yes] 1650 --enable-testpattern build testpattern generator [(automatic)] 1651 1652Optional Packages: 1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1655 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1656 both] 1657 --with-aix-soname=aix|svr4|both 1658 shared library versioning (aka "SONAME") variant to 1659 provide on AIX, [default=aix]. 1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1661 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1662 compiler's sysroot if not specified). 1663 --with-cups-config=path Specify path to cups-config executable. 1664 --with-cups=PREFIX whether to build CUPS driver (default PREFIX=/usr) 1665 [(automatic)] 1666 --with-gnu-ld assume the C compiler uses GNU ld default=no 1667 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1668 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1669 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1670 --without-libintl-prefix don't search for libintl in includedir and libdir 1671 --with-modules enable loadable modules (options: ltdl, dlopen, 1672 static) [(automatic)] 1673 --with-readline use readline (default tries -lncurses, -lcurses, 1674 -ltermcap) [yes] 1675 --with-gimp2 build GIMP 2.x Print plugin [(automatic)] 1676 --with-gimp2-as-gutenprint 1677 name GIMP 2.x Print plugin gutenprint (requires GIMP 1678 2.2; normally used with GIMP 2.4 or above) 1679 [(automatic)] 1680 --with-doc build Gutenprint documentation [yes] 1681 --with-cups-nickname="nickname suffix" 1682 Suffix to add to PPD NickName, default=" - CUPS+Gutenprint v" 1683 --with-archflags="..." additional options for CFLAGS and LDFLAGS 1684 1685Some influential environment variables: 1686 CC C compiler command 1687 CFLAGS C compiler flags 1688 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1689 nonstandard directory <lib dir> 1690 LIBS libraries to pass to the linker, e.g. -l<library> 1691 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1692 you have headers in a nonstandard directory <include dir> 1693 LT_SYS_LIBRARY_PATH 1694 User-defined run-time library search path. 1695 CPP C preprocessor 1696 PKG_CONFIG path to pkg-config utility 1697 PKG_CONFIG_PATH 1698 directories to add to pkg-config's search path 1699 PKG_CONFIG_LIBDIR 1700 path overriding pkg-config's built-in search path 1701 LIBUSB_CFLAGS 1702 C compiler flags for LIBUSB, overriding pkg-config 1703 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config 1704 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config 1705 GTK2_LIBS linker flags for GTK2, overriding pkg-config 1706 GIMP2_CFLAGS 1707 C compiler flags for GIMP2, overriding pkg-config 1708 GIMP2_LIBS linker flags for GIMP2, overriding pkg-config 1709 YACC The `Yet Another Compiler Compiler' implementation to use. 1710 Defaults to the first program found out of: `bison -y', `byacc', 1711 `yacc'. 1712 YFLAGS The list of arguments that will be passed by default to $YACC. 1713 This script will default YFLAGS to the empty string to avoid a 1714 default value of `-d' given by some make applications. 1715 1716Use these variables to override the choices made by `configure' or to help 1717it to find libraries and programs with nonstandard names/locations. 1718 1719Report bugs to <gimp-print-devel@lists.sourceforge.net>. 1720gutenprint home page: <https://gimp-print.sourceforge.net>. 1721_ACEOF 1722ac_status=$? 1723fi 1724 1725if test "$ac_init_help" = "recursive"; then 1726 # If there are subdirs, report their specific --help. 1727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1728 test -d "$ac_dir" || 1729 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1730 continue 1731 ac_builddir=. 1732 1733case "$ac_dir" in 1734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1735*) 1736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1737 # A ".." for each directory in $ac_dir_suffix. 1738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1739 case $ac_top_builddir_sub in 1740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1742 esac ;; 1743esac 1744ac_abs_top_builddir=$ac_pwd 1745ac_abs_builddir=$ac_pwd$ac_dir_suffix 1746# for backward compatibility: 1747ac_top_builddir=$ac_top_build_prefix 1748 1749case $srcdir in 1750 .) # We are building in place. 1751 ac_srcdir=. 1752 ac_top_srcdir=$ac_top_builddir_sub 1753 ac_abs_top_srcdir=$ac_pwd ;; 1754 [\\/]* | ?:[\\/]* ) # Absolute name. 1755 ac_srcdir=$srcdir$ac_dir_suffix; 1756 ac_top_srcdir=$srcdir 1757 ac_abs_top_srcdir=$srcdir ;; 1758 *) # Relative name. 1759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1760 ac_top_srcdir=$ac_top_build_prefix$srcdir 1761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1762esac 1763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1764 1765 cd "$ac_dir" || { ac_status=$?; continue; } 1766 # Check for guested configure. 1767 if test -f "$ac_srcdir/configure.gnu"; then 1768 echo && 1769 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1770 elif test -f "$ac_srcdir/configure"; then 1771 echo && 1772 $SHELL "$ac_srcdir/configure" --help=recursive 1773 else 1774 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1775 fi || ac_status=$? 1776 cd "$ac_pwd" || { ac_status=$?; break; } 1777 done 1778fi 1779 1780test -n "$ac_init_help" && exit $ac_status 1781if $ac_init_version; then 1782 cat <<\_ACEOF 1783gutenprint configure 5.3.3 1784generated by GNU Autoconf 2.69 1785 1786Copyright (C) 2012 Free Software Foundation, Inc. 1787This configure script is free software; the Free Software Foundation 1788gives unlimited permission to copy, distribute and modify it. 1789 1790 1791Parts of this configure script come from the 'configure.ac' file, and 1792are not based on freely-redistributable m4 macros; you can redistribute 1793them and/or modify them under the terms of the GNU General Public 1794as published by the Free Software Foundation; either version 2, or (at 1795your option) any later version. 1796 1797This program is distributed in the hope that it will be useful, 1798but WITHOUT ANY WARRANTY; without even the implied warranty of 1799MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1800GNU General Public License for more details. 1801 1802You should have received a copy of the GNU General Public License 1803along with this program. If not, see <https://www.gnu.org/licenses/>. 1804 1805_ACEOF 1806 exit 1807fi 1808 1809## ------------------------ ## 1810## Autoconf initialization. ## 1811## ------------------------ ## 1812 1813# ac_fn_c_try_compile LINENO 1814# -------------------------- 1815# Try to compile conftest.$ac_ext, and return whether this succeeded. 1816ac_fn_c_try_compile () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 rm -f conftest.$ac_objext 1820 if { { ac_try="$ac_compile" 1821case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_compile") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { 1836 test -z "$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } && test -s conftest.$ac_objext; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=1 1845fi 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_c_try_compile 1850 1851# ac_fn_c_try_link LINENO 1852# ----------------------- 1853# Try to link conftest.$ac_ext, and return whether this succeeded. 1854ac_fn_c_try_link () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 rm -f conftest.$ac_objext conftest$ac_exeext 1858 if { { ac_try="$ac_link" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_link") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } && { 1874 test -z "$ac_c_werror_flag" || 1875 test ! -s conftest.err 1876 } && test -s conftest$ac_exeext && { 1877 test "$cross_compiling" = yes || 1878 test -x conftest$ac_exeext 1879 }; then : 1880 ac_retval=0 1881else 1882 $as_echo "$as_me: failed program was:" >&5 1883sed 's/^/| /' conftest.$ac_ext >&5 1884 1885 ac_retval=1 1886fi 1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1889 # interfere with the next link command; also delete a directory that is 1890 # left behind by Apple's compiler. We do this before executing the actions. 1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 as_fn_set_status $ac_retval 1894 1895} # ac_fn_c_try_link 1896 1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1898# ------------------------------------------------------- 1899# Tests whether HEADER exists and can be compiled using the include files in 1900# INCLUDES, setting the cache variable VAR accordingly. 1901ac_fn_c_check_header_compile () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$4 1912#include <$2> 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_header_compile 1927 1928# ac_fn_c_try_cpp LINENO 1929# ---------------------- 1930# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_c_try_cpp () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 if { { ac_try="$ac_cpp conftest.$ac_ext" 1935case "(($ac_try" in 1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1937 *) ac_try_echo=$ac_try;; 1938esac 1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1940$as_echo "$ac_try_echo"; } >&5 1941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1942 ac_status=$? 1943 if test -s conftest.err; then 1944 grep -v '^ *+' conftest.err >conftest.er1 1945 cat conftest.er1 >&5 1946 mv -f conftest.er1 conftest.err 1947 fi 1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1949 test $ac_status = 0; } > conftest.i && { 1950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1951 test ! -s conftest.err 1952 }; then : 1953 ac_retval=0 1954else 1955 $as_echo "$as_me: failed program was:" >&5 1956sed 's/^/| /' conftest.$ac_ext >&5 1957 1958 ac_retval=1 1959fi 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1961 as_fn_set_status $ac_retval 1962 1963} # ac_fn_c_try_cpp 1964 1965# ac_fn_c_try_run LINENO 1966# ---------------------- 1967# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1968# that executables *can* be run. 1969ac_fn_c_try_run () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 if { { ac_try="$ac_link" 1973case "(($ac_try" in 1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1975 *) ac_try_echo=$ac_try;; 1976esac 1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1978$as_echo "$ac_try_echo"; } >&5 1979 (eval "$ac_link") 2>&5 1980 ac_status=$? 1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1982 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1983 { { case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986esac 1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988$as_echo "$ac_try_echo"; } >&5 1989 (eval "$ac_try") 2>&5 1990 ac_status=$? 1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1992 test $ac_status = 0; }; }; then : 1993 ac_retval=0 1994else 1995 $as_echo "$as_me: program exited with status $ac_status" >&5 1996 $as_echo "$as_me: failed program was:" >&5 1997sed 's/^/| /' conftest.$ac_ext >&5 1998 1999 ac_retval=$ac_status 2000fi 2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 as_fn_set_status $ac_retval 2004 2005} # ac_fn_c_try_run 2006 2007# ac_fn_c_check_func LINENO FUNC VAR 2008# ---------------------------------- 2009# Tests whether FUNC exists, setting the cache variable VAR accordingly 2010ac_fn_c_check_func () 2011{ 2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2014$as_echo_n "checking for $2... " >&6; } 2015if eval \${$3+:} false; then : 2016 $as_echo_n "(cached) " >&6 2017else 2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2019/* end confdefs.h. */ 2020/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2021 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2022#define $2 innocuous_$2 2023 2024/* System header to define __stub macros and hopefully few prototypes, 2025 which can conflict with char $2 (); below. 2026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2027 <limits.h> exists even on freestanding compilers. */ 2028 2029#ifdef __STDC__ 2030# include <limits.h> 2031#else 2032# include <assert.h> 2033#endif 2034 2035#undef $2 2036 2037/* Override any GCC internal prototype to avoid an error. 2038 Use char because int might match the return type of a GCC 2039 builtin and then its argument prototype would still apply. */ 2040#ifdef __cplusplus 2041extern "C" 2042#endif 2043char $2 (); 2044/* The GNU C library defines this for functions which it implements 2045 to always fail with ENOSYS. Some functions are actually named 2046 something starting with __ and the normal name is an alias. */ 2047#if defined __stub_$2 || defined __stub___$2 2048choke me 2049#endif 2050 2051int 2052main () 2053{ 2054return $2 (); 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_link "$LINENO"; then : 2060 eval "$3=yes" 2061else 2062 eval "$3=no" 2063fi 2064rm -f core conftest.err conftest.$ac_objext \ 2065 conftest$ac_exeext conftest.$ac_ext 2066fi 2067eval ac_res=\$$3 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2069$as_echo "$ac_res" >&6; } 2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2071 2072} # ac_fn_c_check_func 2073 2074# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2075# ------------------------------------------------------- 2076# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2077# the include files in INCLUDES and setting the cache variable VAR 2078# accordingly. 2079ac_fn_c_check_header_mongrel () 2080{ 2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2082 if eval \${$3+:} false; then : 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2084$as_echo_n "checking for $2... " >&6; } 2085if eval \${$3+:} false; then : 2086 $as_echo_n "(cached) " >&6 2087fi 2088eval ac_res=\$$3 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2090$as_echo "$ac_res" >&6; } 2091else 2092 # Is the header compilable? 2093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2094$as_echo_n "checking $2 usability... " >&6; } 2095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098#include <$2> 2099_ACEOF 2100if ac_fn_c_try_compile "$LINENO"; then : 2101 ac_header_compiler=yes 2102else 2103 ac_header_compiler=no 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2107$as_echo "$ac_header_compiler" >&6; } 2108 2109# Is the header present? 2110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2111$as_echo_n "checking $2 presence... " >&6; } 2112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114#include <$2> 2115_ACEOF 2116if ac_fn_c_try_cpp "$LINENO"; then : 2117 ac_header_preproc=yes 2118else 2119 ac_header_preproc=no 2120fi 2121rm -f conftest.err conftest.i conftest.$ac_ext 2122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2123$as_echo "$ac_header_preproc" >&6; } 2124 2125# So? What about this header? 2126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2127 yes:no: ) 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2129$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2132 ;; 2133 no:yes:* ) 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2135$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2137$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2139$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2141$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2143$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2144( $as_echo "## ----------------------------------------------------- ## 2145## Report this to gimp-print-devel@lists.sourceforge.net ## 2146## ----------------------------------------------------- ##" 2147 ) | sed "s/^/$as_me: WARNING: /" >&2 2148 ;; 2149esac 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2151$as_echo_n "checking for $2... " >&6; } 2152if eval \${$3+:} false; then : 2153 $as_echo_n "(cached) " >&6 2154else 2155 eval "$3=\$ac_header_compiler" 2156fi 2157eval ac_res=\$$3 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2159$as_echo "$ac_res" >&6; } 2160fi 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_check_header_mongrel 2164 2165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2166# ------------------------------------------- 2167# Tests whether TYPE exists after having included INCLUDES, setting cache 2168# variable VAR accordingly. 2169ac_fn_c_check_type () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2173$as_echo_n "checking for $2... " >&6; } 2174if eval \${$3+:} false; then : 2175 $as_echo_n "(cached) " >&6 2176else 2177 eval "$3=no" 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181int 2182main () 2183{ 2184if (sizeof ($2)) 2185 return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197if (sizeof (($2))) 2198 return 0; 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 2205else 2206 eval "$3=yes" 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211fi 2212eval ac_res=\$$3 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2214$as_echo "$ac_res" >&6; } 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 2217} # ac_fn_c_check_type 2218cat >config.log <<_ACEOF 2219This file contains any messages produced by compilers while 2220running configure, to aid debugging if configure makes a mistake. 2221 2222It was created by gutenprint $as_me 5.3.3, which was 2223generated by GNU Autoconf 2.69. Invocation command line was 2224 2225 $ $0 $@ 2226 2227_ACEOF 2228exec 5>>config.log 2229{ 2230cat <<_ASUNAME 2231## --------- ## 2232## Platform. ## 2233## --------- ## 2234 2235hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2236uname -m = `(uname -m) 2>/dev/null || echo unknown` 2237uname -r = `(uname -r) 2>/dev/null || echo unknown` 2238uname -s = `(uname -s) 2>/dev/null || echo unknown` 2239uname -v = `(uname -v) 2>/dev/null || echo unknown` 2240 2241/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2242/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2243 2244/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2245/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2246/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2247/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2248/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2249/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2250/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2251 2252_ASUNAME 2253 2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2255for as_dir in $PATH 2256do 2257 IFS=$as_save_IFS 2258 test -z "$as_dir" && as_dir=. 2259 $as_echo "PATH: $as_dir" 2260 done 2261IFS=$as_save_IFS 2262 2263} >&5 2264 2265cat >&5 <<_ACEOF 2266 2267 2268## ----------- ## 2269## Core tests. ## 2270## ----------- ## 2271 2272_ACEOF 2273 2274 2275# Keep a trace of the command line. 2276# Strip out --no-create and --no-recursion so they do not pile up. 2277# Strip out --silent because we don't want to record it for future runs. 2278# Also quote any args containing shell meta-characters. 2279# Make two passes to allow for proper duplicate-argument suppression. 2280ac_configure_args= 2281ac_configure_args0= 2282ac_configure_args1= 2283ac_must_keep_next=false 2284for ac_pass in 1 2 2285do 2286 for ac_arg 2287 do 2288 case $ac_arg in 2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2291 | -silent | --silent | --silen | --sile | --sil) 2292 continue ;; 2293 *\'*) 2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2295 esac 2296 case $ac_pass in 2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2298 2) 2299 as_fn_append ac_configure_args1 " '$ac_arg'" 2300 if test $ac_must_keep_next = true; then 2301 ac_must_keep_next=false # Got value, back to normal. 2302 else 2303 case $ac_arg in 2304 *=* | --config-cache | -C | -disable-* | --disable-* \ 2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2307 | -with-* | --with-* | -without-* | --without-* | --x) 2308 case "$ac_configure_args0 " in 2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2310 esac 2311 ;; 2312 -* ) ac_must_keep_next=true ;; 2313 esac 2314 fi 2315 as_fn_append ac_configure_args " '$ac_arg'" 2316 ;; 2317 esac 2318 done 2319done 2320{ ac_configure_args0=; unset ac_configure_args0;} 2321{ ac_configure_args1=; unset ac_configure_args1;} 2322 2323# When interrupted or exit'd, cleanup temporary files, and complete 2324# config.log. We remove comments because anyway the quotes in there 2325# would cause problems or look ugly. 2326# WARNING: Use '\'' to represent an apostrophe within the trap. 2327# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2328trap 'exit_status=$? 2329 # Save into config.log some information that might help in debugging. 2330 { 2331 echo 2332 2333 $as_echo "## ---------------- ## 2334## Cache variables. ## 2335## ---------------- ##" 2336 echo 2337 # The following way of writing the cache mishandles newlines in values, 2338( 2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2340 eval ac_val=\$$ac_var 2341 case $ac_val in #( 2342 *${as_nl}*) 2343 case $ac_var in #( 2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2346 esac 2347 case $ac_var in #( 2348 _ | IFS | as_nl) ;; #( 2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2350 *) { eval $ac_var=; unset $ac_var;} ;; 2351 esac ;; 2352 esac 2353 done 2354 (set) 2>&1 | 2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2356 *${as_nl}ac_space=\ *) 2357 sed -n \ 2358 "s/'\''/'\''\\\\'\'''\''/g; 2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2360 ;; #( 2361 *) 2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2363 ;; 2364 esac | 2365 sort 2366) 2367 echo 2368 2369 $as_echo "## ----------------- ## 2370## Output variables. ## 2371## ----------------- ##" 2372 echo 2373 for ac_var in $ac_subst_vars 2374 do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in 2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2378 esac 2379 $as_echo "$ac_var='\''$ac_val'\''" 2380 done | sort 2381 echo 2382 2383 if test -n "$ac_subst_files"; then 2384 $as_echo "## ------------------- ## 2385## File substitutions. ## 2386## ------------------- ##" 2387 echo 2388 for ac_var in $ac_subst_files 2389 do 2390 eval ac_val=\$$ac_var 2391 case $ac_val in 2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2393 esac 2394 $as_echo "$ac_var='\''$ac_val'\''" 2395 done | sort 2396 echo 2397 fi 2398 2399 if test -s confdefs.h; then 2400 $as_echo "## ----------- ## 2401## confdefs.h. ## 2402## ----------- ##" 2403 echo 2404 cat confdefs.h 2405 echo 2406 fi 2407 test "$ac_signal" != 0 && 2408 $as_echo "$as_me: caught signal $ac_signal" 2409 $as_echo "$as_me: exit $exit_status" 2410 } >&5 2411 rm -f core *.core core.conftest.* && 2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2413 exit $exit_status 2414' 0 2415for ac_signal in 1 2 13 15; do 2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2417done 2418ac_signal=0 2419 2420# confdefs.h avoids OS command line length limits that DEFS can exceed. 2421rm -f -r conftest* confdefs.h 2422 2423$as_echo "/* confdefs.h */" > confdefs.h 2424 2425# Predefined preprocessor variables. 2426 2427cat >>confdefs.h <<_ACEOF 2428#define PACKAGE_NAME "$PACKAGE_NAME" 2429_ACEOF 2430 2431cat >>confdefs.h <<_ACEOF 2432#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2433_ACEOF 2434 2435cat >>confdefs.h <<_ACEOF 2436#define PACKAGE_VERSION "$PACKAGE_VERSION" 2437_ACEOF 2438 2439cat >>confdefs.h <<_ACEOF 2440#define PACKAGE_STRING "$PACKAGE_STRING" 2441_ACEOF 2442 2443cat >>confdefs.h <<_ACEOF 2444#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2445_ACEOF 2446 2447cat >>confdefs.h <<_ACEOF 2448#define PACKAGE_URL "$PACKAGE_URL" 2449_ACEOF 2450 2451 2452# Let the site file select an alternate cache file if it wants to. 2453# Prefer an explicitly selected file to automatically selected ones. 2454ac_site_file1=NONE 2455ac_site_file2=NONE 2456if test -n "$CONFIG_SITE"; then 2457 # We do not want a PATH search for config.site. 2458 case $CONFIG_SITE in #(( 2459 -*) ac_site_file1=./$CONFIG_SITE;; 2460 */*) ac_site_file1=$CONFIG_SITE;; 2461 *) ac_site_file1=./$CONFIG_SITE;; 2462 esac 2463elif test "x$prefix" != xNONE; then 2464 ac_site_file1=$prefix/share/config.site 2465 ac_site_file2=$prefix/etc/config.site 2466else 2467 ac_site_file1=$ac_default_prefix/share/config.site 2468 ac_site_file2=$ac_default_prefix/etc/config.site 2469fi 2470for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2471do 2472 test "x$ac_site_file" = xNONE && continue 2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2475$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2476 sed 's/^/| /' "$ac_site_file" >&5 2477 . "$ac_site_file" \ 2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2480as_fn_error $? "failed to load site script $ac_site_file 2481See \`config.log' for more details" "$LINENO" 5; } 2482 fi 2483done 2484 2485if test -r "$cache_file"; then 2486 # Some versions of bash will fail to source /dev/null (special files 2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2490$as_echo "$as_me: loading cache $cache_file" >&6;} 2491 case $cache_file in 2492 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2493 *) . "./$cache_file";; 2494 esac 2495 fi 2496else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2498$as_echo "$as_me: creating cache $cache_file" >&6;} 2499 >$cache_file 2500fi 2501 2502gt_needs="$gt_needs " 2503# Check that the precious variables saved in the cache have kept the same 2504# value. 2505ac_cache_corrupted=false 2506for ac_var in $ac_precious_vars; do 2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2508 eval ac_new_set=\$ac_env_${ac_var}_set 2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2510 eval ac_new_val=\$ac_env_${ac_var}_value 2511 case $ac_old_set,$ac_new_set in 2512 set,) 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2514$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2515 ac_cache_corrupted=: ;; 2516 ,set) 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2518$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2519 ac_cache_corrupted=: ;; 2520 ,);; 2521 *) 2522 if test "x$ac_old_val" != "x$ac_new_val"; then 2523 # differences in whitespace do not lead to failure. 2524 ac_old_val_w=`echo x $ac_old_val` 2525 ac_new_val_w=`echo x $ac_new_val` 2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2528$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2529 ac_cache_corrupted=: 2530 else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2532$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2533 eval $ac_var=\$ac_old_val 2534 fi 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2536$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2538$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2539 fi;; 2540 esac 2541 # Pass precious variables to config.status. 2542 if test "$ac_new_set" = set; then 2543 case $ac_new_val in 2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2545 *) ac_arg=$ac_var=$ac_new_val ;; 2546 esac 2547 case " $ac_configure_args " in 2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2550 esac 2551 fi 2552done 2553if $ac_cache_corrupted; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2557$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2559fi 2560## -------------------- ## 2561## Main body of script. ## 2562## -------------------- ## 2563 2564ac_ext=c 2565ac_cpp='$CPP $CPPFLAGS' 2566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2568ac_compiler_gnu=$ac_cv_c_compiler_gnu 2569 2570 2571 2572 2573 2574 2575ac_aux_dir= 2576for ac_dir in scripts "$srcdir"/scripts; do 2577 if test -f "$ac_dir/install-sh"; then 2578 ac_aux_dir=$ac_dir 2579 ac_install_sh="$ac_aux_dir/install-sh -c" 2580 break 2581 elif test -f "$ac_dir/install.sh"; then 2582 ac_aux_dir=$ac_dir 2583 ac_install_sh="$ac_aux_dir/install.sh -c" 2584 break 2585 elif test -f "$ac_dir/shtool"; then 2586 ac_aux_dir=$ac_dir 2587 ac_install_sh="$ac_aux_dir/shtool install -c" 2588 break 2589 fi 2590done 2591if test -z "$ac_aux_dir"; then 2592 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5 2593fi 2594 2595# These three variables are undocumented and unsupported, 2596# and are intended to be withdrawn in a future Autoconf release. 2597# They can cause serious problems if a builder's source tree is in a directory 2598# whose full name contains unusual characters. 2599ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2600ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2601ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2602 2603 2604 2605 2606 2607GUTENPRINT_MAJOR_VERSION=5 2608GUTENPRINT_MINOR_VERSION=3 2609GUTENPRINT_MICRO_VERSION=3 2610GUTENPRINT_EXTRA_VERSION= 2611GUTENPRINT_CURRENT_INTERFACE=13 2612GUTENPRINT_INTERFACE_AGE=0 2613GUTENPRINT_BINARY_AGE=4 2614GUTENPRINT_VERSION=5.3.3 2615GUTENPRINTUI2_CURRENT_INTERFACE=6 2616GUTENPRINTUI2_INTERFACE_AGE=0 2617GUTENPRINTUI2_BINARY_AGE=4 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627configure_args= 2628 2629for arg in "$@" ; do 2630 if test -n "$configure_args" ; then 2631 configure_args="$configure_args " 2632 fi 2633 if echo "$arg" | grep -q '\s' ; then 2634 arg="'$arg'" 2635 fi 2636 configure_args="$configure_args$arg" 2637done 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650CFLAGS="${CFLAGS:=}" 2651CPPFLAGS="${CPPFLAGS:=}" 2652CXXFLAGS="${CXXFLAGS:=}" 2653LDFLAGS="${LDFLAGS:=}" 2654LIBS="${LIBS:=}" 2655 2656am__api_version='1.16' 2657 2658# Find a good install program. We prefer a C program (faster), 2659# so one script is as good as another. But avoid the broken or 2660# incompatible versions: 2661# SysV /etc/install, /usr/sbin/install 2662# SunOS /usr/etc/install 2663# IRIX /sbin/install 2664# AIX /bin/install 2665# AmigaOS /C/install, which installs bootblocks on floppy discs 2666# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2667# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2668# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2669# OS/2's system install, which has a completely different semantic 2670# ./install, which can be erroneously created by make from ./install.sh. 2671# Reject install programs that cannot install multiple files. 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2673$as_echo_n "checking for a BSD-compatible install... " >&6; } 2674if test -z "$INSTALL"; then 2675if ${ac_cv_path_install+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 # Account for people who put trailing slashes in PATH elements. 2684case $as_dir/ in #(( 2685 ./ | .// | /[cC]/* | \ 2686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2687 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2688 /usr/ucb/* ) ;; 2689 *) 2690 # OSF1 and SCO ODT 3.0 have their own names for install. 2691 # Don't use installbsd from OSF since it installs stuff as root 2692 # by default. 2693 for ac_prog in ginstall scoinst install; do 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2696 if test $ac_prog = install && 2697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2698 # AIX install. It has an incompatible calling convention. 2699 : 2700 elif test $ac_prog = install && 2701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2702 # program-specific install script used by HP pwplus--don't use. 2703 : 2704 else 2705 rm -rf conftest.one conftest.two conftest.dir 2706 echo one > conftest.one 2707 echo two > conftest.two 2708 mkdir conftest.dir 2709 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2710 test -s conftest.one && test -s conftest.two && 2711 test -s conftest.dir/conftest.one && 2712 test -s conftest.dir/conftest.two 2713 then 2714 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2715 break 3 2716 fi 2717 fi 2718 fi 2719 done 2720 done 2721 ;; 2722esac 2723 2724 done 2725IFS=$as_save_IFS 2726 2727rm -rf conftest.one conftest.two conftest.dir 2728 2729fi 2730 if test "${ac_cv_path_install+set}" = set; then 2731 INSTALL=$ac_cv_path_install 2732 else 2733 # As a last resort, use the slow shell script. Don't cache a 2734 # value for INSTALL within a source directory, because that will 2735 # break other packages using the cache if that directory is 2736 # removed, or if the value is a relative name. 2737 INSTALL=$ac_install_sh 2738 fi 2739fi 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2741$as_echo "$INSTALL" >&6; } 2742 2743# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2744# It thinks the first close brace ends the variable substitution. 2745test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2746 2747test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2748 2749test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2750 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2752$as_echo_n "checking whether build environment is sane... " >&6; } 2753# Reject unsafe characters in $srcdir or the absolute working directory 2754# name. Accept space and tab only in the latter. 2755am_lf=' 2756' 2757case `pwd` in 2758 *[\\\"\#\$\&\'\`$am_lf]*) 2759 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2760esac 2761case $srcdir in 2762 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2763 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2764esac 2765 2766# Do 'set' in a subshell so we don't clobber the current shell's 2767# arguments. Must try -L first in case configure is actually a 2768# symlink; some systems play weird games with the mod time of symlinks 2769# (eg FreeBSD returns the mod time of the symlink's containing 2770# directory). 2771if ( 2772 am_has_slept=no 2773 for am_try in 1 2; do 2774 echo "timestamp, slept: $am_has_slept" > conftest.file 2775 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2776 if test "$*" = "X"; then 2777 # -L didn't work. 2778 set X `ls -t "$srcdir/configure" conftest.file` 2779 fi 2780 if test "$*" != "X $srcdir/configure conftest.file" \ 2781 && test "$*" != "X conftest.file $srcdir/configure"; then 2782 2783 # If neither matched, then we have a broken ls. This can happen 2784 # if, for instance, CONFIG_SHELL is bash and it inherits a 2785 # broken ls alias from the environment. This has actually 2786 # happened. Such a system could not be considered "sane". 2787 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2788 alias in your environment" "$LINENO" 5 2789 fi 2790 if test "$2" = conftest.file || test $am_try -eq 2; then 2791 break 2792 fi 2793 # Just in case. 2794 sleep 1 2795 am_has_slept=yes 2796 done 2797 test "$2" = conftest.file 2798 ) 2799then 2800 # Ok. 2801 : 2802else 2803 as_fn_error $? "newly created file is older than distributed files! 2804Check your system clock" "$LINENO" 5 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2807$as_echo "yes" >&6; } 2808# If we didn't sleep, we still need to ensure time stamps of config.status and 2809# generated files are strictly newer. 2810am_sleep_pid= 2811if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2812 ( sleep 1 ) & 2813 am_sleep_pid=$! 2814fi 2815 2816rm -f conftest.file 2817 2818test "$program_prefix" != NONE && 2819 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2820# Use a double $ so make ignores it. 2821test "$program_suffix" != NONE && 2822 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2823# Double any \ or $. 2824# By default was `s,x,x', remove it if useless. 2825ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2826program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2827 2828# Expand $ac_aux_dir to an absolute path. 2829am_aux_dir=`cd "$ac_aux_dir" && pwd` 2830 2831if test x"${MISSING+set}" != xset; then 2832 case $am_aux_dir in 2833 *\ * | *\ *) 2834 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2835 *) 2836 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2837 esac 2838fi 2839# Use eval to expand $SHELL 2840if eval "$MISSING --is-lightweight"; then 2841 am_missing_run="$MISSING " 2842else 2843 am_missing_run= 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2845$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2846fi 2847 2848if test x"${install_sh+set}" != xset; then 2849 case $am_aux_dir in 2850 *\ * | *\ *) 2851 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2852 *) 2853 install_sh="\${SHELL} $am_aux_dir/install-sh" 2854 esac 2855fi 2856 2857# Installed binaries are usually stripped using 'strip' when the user 2858# run "make install-strip". However 'strip' might not be the right 2859# tool to use in cross-compilation environments, therefore Automake 2860# will honor the 'STRIP' environment variable to overrule this program. 2861if test "$cross_compiling" != no; then 2862 if test -n "$ac_tool_prefix"; then 2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2864set dummy ${ac_tool_prefix}strip; ac_word=$2 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2866$as_echo_n "checking for $ac_word... " >&6; } 2867if ${ac_cv_prog_STRIP+:} false; then : 2868 $as_echo_n "(cached) " >&6 2869else 2870 if test -n "$STRIP"; then 2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2872else 2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH 2875do 2876 IFS=$as_save_IFS 2877 test -z "$as_dir" && as_dir=. 2878 for ac_exec_ext in '' $ac_executable_extensions; do 2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2882 break 2 2883 fi 2884done 2885 done 2886IFS=$as_save_IFS 2887 2888fi 2889fi 2890STRIP=$ac_cv_prog_STRIP 2891if test -n "$STRIP"; then 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2893$as_echo "$STRIP" >&6; } 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897fi 2898 2899 2900fi 2901if test -z "$ac_cv_prog_STRIP"; then 2902 ac_ct_STRIP=$STRIP 2903 # Extract the first word of "strip", so it can be a program name with args. 2904set dummy strip; ac_word=$2 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906$as_echo_n "checking for $ac_word... " >&6; } 2907if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 if test -n "$ac_ct_STRIP"; then 2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_ac_ct_STRIP="strip" 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2931if test -n "$ac_ct_STRIP"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2933$as_echo "$ac_ct_STRIP" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 if test "x$ac_ct_STRIP" = x; then 2940 STRIP=":" 2941 else 2942 case $cross_compiling:$ac_tool_warned in 2943yes:) 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2946ac_tool_warned=yes ;; 2947esac 2948 STRIP=$ac_ct_STRIP 2949 fi 2950else 2951 STRIP="$ac_cv_prog_STRIP" 2952fi 2953 2954fi 2955INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2956 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2958$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2959if test -z "$MKDIR_P"; then 2960 if ${ac_cv_path_mkdir+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2964for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2965do 2966 IFS=$as_save_IFS 2967 test -z "$as_dir" && as_dir=. 2968 for ac_prog in mkdir gmkdir; do 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2971 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2972 'mkdir (GNU coreutils) '* | \ 2973 'mkdir (coreutils) '* | \ 2974 'mkdir (fileutils) '4.1*) 2975 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2976 break 3;; 2977 esac 2978 done 2979 done 2980 done 2981IFS=$as_save_IFS 2982 2983fi 2984 2985 test -d ./--version && rmdir ./--version 2986 if test "${ac_cv_path_mkdir+set}" = set; then 2987 MKDIR_P="$ac_cv_path_mkdir -p" 2988 else 2989 # As a last resort, use the slow shell script. Don't cache a 2990 # value for MKDIR_P within a source directory, because that will 2991 # break other packages using the cache if that directory is 2992 # removed, or if the value is a relative name. 2993 MKDIR_P="$ac_install_sh -d" 2994 fi 2995fi 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2997$as_echo "$MKDIR_P" >&6; } 2998 2999for ac_prog in gawk mawk nawk awk 3000do 3001 # Extract the first word of "$ac_prog", so it can be a program name with args. 3002set dummy $ac_prog; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_prog_AWK+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$AWK"; then 3009 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 ac_cv_prog_AWK="$ac_prog" 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023 done 3024IFS=$as_save_IFS 3025 3026fi 3027fi 3028AWK=$ac_cv_prog_AWK 3029if test -n "$AWK"; then 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3031$as_echo "$AWK" >&6; } 3032else 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 3038 test -n "$AWK" && break 3039done 3040 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3042$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3043set x ${MAKE-make} 3044ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3045if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3046 $as_echo_n "(cached) " >&6 3047else 3048 cat >conftest.make <<\_ACEOF 3049SHELL = /bin/sh 3050all: 3051 @echo '@@@%%%=$(MAKE)=@@@%%%' 3052_ACEOF 3053# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3054case `${MAKE-make} -f conftest.make 2>/dev/null` in 3055 *@@@%%%=?*=@@@%%%*) 3056 eval ac_cv_prog_make_${ac_make}_set=yes;; 3057 *) 3058 eval ac_cv_prog_make_${ac_make}_set=no;; 3059esac 3060rm -f conftest.make 3061fi 3062if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3064$as_echo "yes" >&6; } 3065 SET_MAKE= 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069 SET_MAKE="MAKE=${MAKE-make}" 3070fi 3071 3072rm -rf .tst 2>/dev/null 3073mkdir .tst 2>/dev/null 3074if test -d .tst; then 3075 am__leading_dot=. 3076else 3077 am__leading_dot=_ 3078fi 3079rmdir .tst 2>/dev/null 3080 3081# Check whether --enable-silent-rules was given. 3082if test "${enable_silent_rules+set}" = set; then : 3083 enableval=$enable_silent_rules; 3084fi 3085 3086case $enable_silent_rules in # ((( 3087 yes) AM_DEFAULT_VERBOSITY=0;; 3088 no) AM_DEFAULT_VERBOSITY=1;; 3089 *) AM_DEFAULT_VERBOSITY=1;; 3090esac 3091am_make=${MAKE-make} 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3093$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3094if ${am_cv_make_support_nested_variables+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if $as_echo 'TRUE=$(BAR$(V)) 3098BAR0=false 3099BAR1=true 3100V=1 3101am__doit: 3102 @$(TRUE) 3103.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3104 am_cv_make_support_nested_variables=yes 3105else 3106 am_cv_make_support_nested_variables=no 3107fi 3108fi 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3110$as_echo "$am_cv_make_support_nested_variables" >&6; } 3111if test $am_cv_make_support_nested_variables = yes; then 3112 AM_V='$(V)' 3113 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3114else 3115 AM_V=$AM_DEFAULT_VERBOSITY 3116 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3117fi 3118AM_BACKSLASH='\' 3119 3120if test "`cd $srcdir && pwd`" != "`pwd`"; then 3121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3122 # is not polluted with repeated "-I." 3123 am__isrc=' -I$(srcdir)' 3124 # test to see if srcdir already configured 3125 if test -f $srcdir/config.status; then 3126 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3127 fi 3128fi 3129 3130# test whether we have cygpath 3131if test -z "$CYGPATH_W"; then 3132 if (cygpath --version) >/dev/null 2>/dev/null; then 3133 CYGPATH_W='cygpath -w' 3134 else 3135 CYGPATH_W=echo 3136 fi 3137fi 3138 3139 3140# Define the identity of the package. 3141 PACKAGE='gutenprint' 3142 VERSION='5.3.3' 3143 3144 3145cat >>confdefs.h <<_ACEOF 3146#define PACKAGE "$PACKAGE" 3147_ACEOF 3148 3149 3150cat >>confdefs.h <<_ACEOF 3151#define VERSION "$VERSION" 3152_ACEOF 3153 3154# Some tools Automake needs. 3155 3156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3157 3158 3159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3160 3161 3162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3163 3164 3165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3166 3167 3168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3169 3170# For better backward compatibility. To be removed once Automake 1.9.x 3171# dies out for good. For more background, see: 3172# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3173# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3174mkdir_p='$(MKDIR_P)' 3175 3176# We need awk for the "check" target (and possibly the TAP driver). The 3177# system "awk" is bad on some platforms. 3178# Always define AMTAR for backward compatibility. Yes, it's still used 3179# in the wild :-( We should find a proper way to deprecate it ... 3180AMTAR='$${TAR-tar}' 3181 3182 3183# We'll loop over all known methods to create a tar archive until one works. 3184_am_tools='gnutar plaintar pax cpio none' 3185 3186# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3187 # There is notably a 21 bits limit for the UID and the GID. In fact, 3188 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3189 # and bug#13588). 3190 am_max_uid=2097151 # 2^21 - 1 3191 am_max_gid=$am_max_uid 3192 # The $UID and $GID variables are not portable, so we need to resort 3193 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3194 # below are definitely unexpected, so allow the users to see them 3195 # (that is, avoid stderr redirection). 3196 am_uid=`id -u || echo unknown` 3197 am_gid=`id -g || echo unknown` 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3199$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3200 if test $am_uid -le $am_max_uid; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3202$as_echo "yes" >&6; } 3203 else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206 _am_tools=none 3207 fi 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3209$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3210 if test $am_gid -le $am_max_gid; then 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3212$as_echo "yes" >&6; } 3213 else 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215$as_echo "no" >&6; } 3216 _am_tools=none 3217 fi 3218 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3220$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3221 3222 # Go ahead even if we have the value already cached. We do so because we 3223 # need to set the values for the 'am__tar' and 'am__untar' variables. 3224 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3225 3226 for _am_tool in $_am_tools; do 3227 case $_am_tool in 3228 gnutar) 3229 for _am_tar in tar gnutar gtar; do 3230 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3231 ($_am_tar --version) >&5 2>&5 3232 ac_status=$? 3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } && break 3235 done 3236 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3237 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3238 am__untar="$_am_tar -xf -" 3239 ;; 3240 plaintar) 3241 # Must skip GNU tar: if it does not support --format= it doesn't create 3242 # ustar tarball either. 3243 (tar --version) >/dev/null 2>&1 && continue 3244 am__tar='tar chf - "$$tardir"' 3245 am__tar_='tar chf - "$tardir"' 3246 am__untar='tar xf -' 3247 ;; 3248 pax) 3249 am__tar='pax -L -x ustar -w "$$tardir"' 3250 am__tar_='pax -L -x ustar -w "$tardir"' 3251 am__untar='pax -r' 3252 ;; 3253 cpio) 3254 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3255 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3256 am__untar='cpio -i -H ustar -d' 3257 ;; 3258 none) 3259 am__tar=false 3260 am__tar_=false 3261 am__untar=false 3262 ;; 3263 esac 3264 3265 # If the value was cached, stop now. We just wanted to have am__tar 3266 # and am__untar set. 3267 test -n "${am_cv_prog_tar_ustar}" && break 3268 3269 # tar/untar a dummy directory, and stop if the command works. 3270 rm -rf conftest.dir 3271 mkdir conftest.dir 3272 echo GrepMe > conftest.dir/file 3273 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3274 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3275 ac_status=$? 3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3277 (exit $ac_status); } 3278 rm -rf conftest.dir 3279 if test -s conftest.tar; then 3280 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3281 ($am__untar <conftest.tar) >&5 2>&5 3282 ac_status=$? 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); } 3285 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3286 (cat conftest.dir/file) >&5 2>&5 3287 ac_status=$? 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); } 3290 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3291 fi 3292 done 3293 rm -rf conftest.dir 3294 3295 if ${am_cv_prog_tar_ustar+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 am_cv_prog_tar_ustar=$_am_tool 3299fi 3300 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3302$as_echo "$am_cv_prog_tar_ustar" >&6; } 3303 3304 3305 3306 3307 3308 3309# POSIX will say in a future version that running "rm -f" with no argument 3310# is OK; and we want to be able to make that assumption in our Makefile 3311# recipes. So use an aggressive probe to check that the usage we want is 3312# actually supported "in the wild" to an acceptable degree. 3313# See automake bug#10828. 3314# To make any issue more visible, cause the running configure to be aborted 3315# by default if the 'rm' program in use doesn't match our expectations; the 3316# user can still override this though. 3317if rm -f && rm -fr && rm -rf; then : OK; else 3318 cat >&2 <<'END' 3319Oops! 3320 3321Your 'rm' program seems unable to run without file operands specified 3322on the command line, even when the '-f' option is present. This is contrary 3323to the behaviour of most rm programs out there, and not conforming with 3324the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3325 3326Please tell bug-automake@gnu.org about your system, including the value 3327of your $PATH and any error possibly output before this message. This 3328can help us improve future automake versions. 3329 3330END 3331 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3332 echo 'Configuration will proceed anyway, since you have set the' >&2 3333 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3334 echo >&2 3335 else 3336 cat >&2 <<'END' 3337Aborting the configuration process, to ensure you take notice of the issue. 3338 3339You can download and install GNU coreutils to get an 'rm' implementation 3340that behaves properly: <https://www.gnu.org/software/coreutils/>. 3341 3342If you want to complete the configuration process using your problematic 3343'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3344to "yes", and re-run configure. 3345 3346END 3347 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3348 fi 3349fi 3350 3351# Check whether --enable-silent-rules was given. 3352if test "${enable_silent_rules+set}" = set; then : 3353 enableval=$enable_silent_rules; 3354fi 3355 3356case $enable_silent_rules in # ((( 3357 yes) AM_DEFAULT_VERBOSITY=0;; 3358 no) AM_DEFAULT_VERBOSITY=1;; 3359 *) AM_DEFAULT_VERBOSITY=0;; 3360esac 3361am_make=${MAKE-make} 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3363$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3364if ${am_cv_make_support_nested_variables+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 if $as_echo 'TRUE=$(BAR$(V)) 3368BAR0=false 3369BAR1=true 3370V=1 3371am__doit: 3372 @$(TRUE) 3373.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3374 am_cv_make_support_nested_variables=yes 3375else 3376 am_cv_make_support_nested_variables=no 3377fi 3378fi 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3380$as_echo "$am_cv_make_support_nested_variables" >&6; } 3381if test $am_cv_make_support_nested_variables = yes; then 3382 AM_V='$(V)' 3383 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3384else 3385 AM_V=$AM_DEFAULT_VERBOSITY 3386 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3387fi 3388AM_BACKSLASH='\' 3389 3390 3391 3392 3393 3394 3395GUTENPRINT_LIBS="-lgutenprint" 3396GUTENPRINTUI2_LIBS="-lgutenprintui2" 3397gutenprint_version=${GUTENPRINT_VERSION} 3398gutenprintui2_version=${GUTENPRINT_VERSION} 3399 3400GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} \$(GUTENPRINT_LIBS)" 3401 3402ac_config_headers="$ac_config_headers config.h" 3403 3404 3405ALL_LINGUAS="ca cs da de el en_GB es fi fr gl hu it ja nb nl pl pt ru sk sl sv tr uk vi zh_CN zh_TW" 3406 3407 3408case `pwd` in 3409 *\ * | *\ *) 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3411$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3412esac 3413 3414 3415 3416macro_version='2.4.6' 3417macro_revision='2.4.6' 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431ltmain=$ac_aux_dir/ltmain.sh 3432 3433# Make sure we can run config.sub. 3434$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3435 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3436 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3438$as_echo_n "checking build system type... " >&6; } 3439if ${ac_cv_build+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441else 3442 ac_build_alias=$build_alias 3443test "x$ac_build_alias" = x && 3444 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3445test "x$ac_build_alias" = x && 3446 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3447ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3449 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3452$as_echo "$ac_cv_build" >&6; } 3453case $ac_cv_build in 3454*-*-*) ;; 3455*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3456esac 3457build=$ac_cv_build 3458ac_save_IFS=$IFS; IFS='-' 3459set x $ac_cv_build 3460shift 3461build_cpu=$1 3462build_vendor=$2 3463shift; shift 3464# Remember, the first character of IFS is used to create $*, 3465# except with old shells: 3466build_os=$* 3467IFS=$ac_save_IFS 3468case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3469 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3472$as_echo_n "checking host system type... " >&6; } 3473if ${ac_cv_host+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 if test "x$host_alias" = x; then 3477 ac_cv_host=$ac_cv_build 3478else 3479 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3481fi 3482 3483fi 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3485$as_echo "$ac_cv_host" >&6; } 3486case $ac_cv_host in 3487*-*-*) ;; 3488*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3489esac 3490host=$ac_cv_host 3491ac_save_IFS=$IFS; IFS='-' 3492set x $ac_cv_host 3493shift 3494host_cpu=$1 3495host_vendor=$2 3496shift; shift 3497# Remember, the first character of IFS is used to create $*, 3498# except with old shells: 3499host_os=$* 3500IFS=$ac_save_IFS 3501case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3502 3503 3504# Backslashify metacharacters that are still active within 3505# double-quoted strings. 3506sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3507 3508# Same as above, but do not quote variable references. 3509double_quote_subst='s/\(["`\\]\)/\\\1/g' 3510 3511# Sed substitution to delay expansion of an escaped shell variable in a 3512# double_quote_subst'ed string. 3513delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3514 3515# Sed substitution to delay expansion of an escaped single quote. 3516delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3517 3518# Sed substitution to avoid accidental globbing in evaled expressions 3519no_glob_subst='s/\*/\\\*/g' 3520 3521ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3522ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3523ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3524 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3526$as_echo_n "checking how to print strings... " >&6; } 3527# Test print first, because it will be a builtin if present. 3528if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3529 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3530 ECHO='print -r --' 3531elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3532 ECHO='printf %s\n' 3533else 3534 # Use this function as a fallback that always works. 3535 func_fallback_echo () 3536 { 3537 eval 'cat <<_LTECHO_EOF 3538$1 3539_LTECHO_EOF' 3540 } 3541 ECHO='func_fallback_echo' 3542fi 3543 3544# func_echo_all arg... 3545# Invoke $ECHO with all args, space-separated. 3546func_echo_all () 3547{ 3548 $ECHO "" 3549} 3550 3551case $ECHO in 3552 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3553$as_echo "printf" >&6; } ;; 3554 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3555$as_echo "print -r" >&6; } ;; 3556 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3557$as_echo "cat" >&6; } ;; 3558esac 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573DEPDIR="${am__leading_dot}deps" 3574 3575ac_config_commands="$ac_config_commands depfiles" 3576 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3578$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3579cat > confinc.mk << 'END' 3580am__doit: 3581 @echo this is the am__doit target >confinc.out 3582.PHONY: am__doit 3583END 3584am__include="#" 3585am__quote= 3586# BSD make does it like this. 3587echo '.include "confinc.mk" # ignored' > confmf.BSD 3588# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3589echo 'include confinc.mk # ignored' > confmf.GNU 3590_am_result=no 3591for s in GNU BSD; do 3592 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3593 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); } 3597 case $?:`cat confinc.out 2>/dev/null` in #( 3598 '0:this is the am__doit target') : 3599 case $s in #( 3600 BSD) : 3601 am__include='.include' am__quote='"' ;; #( 3602 *) : 3603 am__include='include' am__quote='' ;; 3604esac ;; #( 3605 *) : 3606 ;; 3607esac 3608 if test "$am__include" != "#"; then 3609 _am_result="yes ($s style)" 3610 break 3611 fi 3612done 3613rm -f confinc.* confmf.* 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3615$as_echo "${_am_result}" >&6; } 3616 3617# Check whether --enable-dependency-tracking was given. 3618if test "${enable_dependency_tracking+set}" = set; then : 3619 enableval=$enable_dependency_tracking; 3620fi 3621 3622if test "x$enable_dependency_tracking" != xno; then 3623 am_depcomp="$ac_aux_dir/depcomp" 3624 AMDEPBACKSLASH='\' 3625 am__nodep='_no' 3626fi 3627 if test "x$enable_dependency_tracking" != xno; then 3628 AMDEP_TRUE= 3629 AMDEP_FALSE='#' 3630else 3631 AMDEP_TRUE='#' 3632 AMDEP_FALSE= 3633fi 3634 3635 3636ac_ext=c 3637ac_cpp='$CPP $CPPFLAGS' 3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_c_compiler_gnu 3641if test -n "$ac_tool_prefix"; then 3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3643set dummy ${ac_tool_prefix}gcc; ac_word=$2 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3645$as_echo_n "checking for $ac_word... " >&6; } 3646if ${ac_cv_prog_CC+:} false; then : 3647 $as_echo_n "(cached) " >&6 3648else 3649 if test -n "$CC"; then 3650 ac_cv_prog_CC="$CC" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 test -z "$as_dir" && as_dir=. 3657 for ac_exec_ext in '' $ac_executable_extensions; do 3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3659 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3661 break 2 3662 fi 3663done 3664 done 3665IFS=$as_save_IFS 3666 3667fi 3668fi 3669CC=$ac_cv_prog_CC 3670if test -n "$CC"; then 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3672$as_echo "$CC" >&6; } 3673else 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3675$as_echo "no" >&6; } 3676fi 3677 3678 3679fi 3680if test -z "$ac_cv_prog_CC"; then 3681 ac_ct_CC=$CC 3682 # Extract the first word of "gcc", so it can be a program name with args. 3683set dummy gcc; ac_word=$2 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3685$as_echo_n "checking for $ac_word... " >&6; } 3686if ${ac_cv_prog_ac_ct_CC+:} false; then : 3687 $as_echo_n "(cached) " >&6 3688else 3689 if test -n "$ac_ct_CC"; then 3690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3691else 3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693for as_dir in $PATH 3694do 3695 IFS=$as_save_IFS 3696 test -z "$as_dir" && as_dir=. 3697 for ac_exec_ext in '' $ac_executable_extensions; do 3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3699 ac_cv_prog_ac_ct_CC="gcc" 3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3701 break 2 3702 fi 3703done 3704 done 3705IFS=$as_save_IFS 3706 3707fi 3708fi 3709ac_ct_CC=$ac_cv_prog_ac_ct_CC 3710if test -n "$ac_ct_CC"; then 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3712$as_echo "$ac_ct_CC" >&6; } 3713else 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3715$as_echo "no" >&6; } 3716fi 3717 3718 if test "x$ac_ct_CC" = x; then 3719 CC="" 3720 else 3721 case $cross_compiling:$ac_tool_warned in 3722yes:) 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3725ac_tool_warned=yes ;; 3726esac 3727 CC=$ac_ct_CC 3728 fi 3729else 3730 CC="$ac_cv_prog_CC" 3731fi 3732 3733if test -z "$CC"; then 3734 if test -n "$ac_tool_prefix"; then 3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3736set dummy ${ac_tool_prefix}cc; ac_word=$2 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3738$as_echo_n "checking for $ac_word... " >&6; } 3739if ${ac_cv_prog_CC+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 if test -n "$CC"; then 3743 ac_cv_prog_CC="$CC" # Let the user override the test. 3744else 3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746for as_dir in $PATH 3747do 3748 IFS=$as_save_IFS 3749 test -z "$as_dir" && as_dir=. 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3752 ac_cv_prog_CC="${ac_tool_prefix}cc" 3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3754 break 2 3755 fi 3756done 3757 done 3758IFS=$as_save_IFS 3759 3760fi 3761fi 3762CC=$ac_cv_prog_CC 3763if test -n "$CC"; then 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3765$as_echo "$CC" >&6; } 3766else 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768$as_echo "no" >&6; } 3769fi 3770 3771 3772 fi 3773fi 3774if test -z "$CC"; then 3775 # Extract the first word of "cc", so it can be a program name with args. 3776set dummy cc; ac_word=$2 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3778$as_echo_n "checking for $ac_word... " >&6; } 3779if ${ac_cv_prog_CC+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 if test -n "$CC"; then 3783 ac_cv_prog_CC="$CC" # Let the user override the test. 3784else 3785 ac_prog_rejected=no 3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3787for as_dir in $PATH 3788do 3789 IFS=$as_save_IFS 3790 test -z "$as_dir" && as_dir=. 3791 for ac_exec_ext in '' $ac_executable_extensions; do 3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3794 ac_prog_rejected=yes 3795 continue 3796 fi 3797 ac_cv_prog_CC="cc" 3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3799 break 2 3800 fi 3801done 3802 done 3803IFS=$as_save_IFS 3804 3805if test $ac_prog_rejected = yes; then 3806 # We found a bogon in the path, so make sure we never use it. 3807 set dummy $ac_cv_prog_CC 3808 shift 3809 if test $# != 0; then 3810 # We chose a different compiler from the bogus one. 3811 # However, it has the same basename, so the bogon will be chosen 3812 # first if we set CC to just the basename; use the full file name. 3813 shift 3814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3815 fi 3816fi 3817fi 3818fi 3819CC=$ac_cv_prog_CC 3820if test -n "$CC"; then 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3822$as_echo "$CC" >&6; } 3823else 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825$as_echo "no" >&6; } 3826fi 3827 3828 3829fi 3830if test -z "$CC"; then 3831 if test -n "$ac_tool_prefix"; then 3832 for ac_prog in cl.exe 3833 do 3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3835set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3837$as_echo_n "checking for $ac_word... " >&6; } 3838if ${ac_cv_prog_CC+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 if test -n "$CC"; then 3842 ac_cv_prog_CC="$CC" # Let the user override the test. 3843else 3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3845for as_dir in $PATH 3846do 3847 IFS=$as_save_IFS 3848 test -z "$as_dir" && as_dir=. 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3853 break 2 3854 fi 3855done 3856 done 3857IFS=$as_save_IFS 3858 3859fi 3860fi 3861CC=$ac_cv_prog_CC 3862if test -n "$CC"; then 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3864$as_echo "$CC" >&6; } 3865else 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3867$as_echo "no" >&6; } 3868fi 3869 3870 3871 test -n "$CC" && break 3872 done 3873fi 3874if test -z "$CC"; then 3875 ac_ct_CC=$CC 3876 for ac_prog in cl.exe 3877do 3878 # Extract the first word of "$ac_prog", so it can be a program name with args. 3879set dummy $ac_prog; ac_word=$2 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3881$as_echo_n "checking for $ac_word... " >&6; } 3882if ${ac_cv_prog_ac_ct_CC+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 if test -n "$ac_ct_CC"; then 3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3887else 3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3889for as_dir in $PATH 3890do 3891 IFS=$as_save_IFS 3892 test -z "$as_dir" && as_dir=. 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3895 ac_cv_prog_ac_ct_CC="$ac_prog" 3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3897 break 2 3898 fi 3899done 3900 done 3901IFS=$as_save_IFS 3902 3903fi 3904fi 3905ac_ct_CC=$ac_cv_prog_ac_ct_CC 3906if test -n "$ac_ct_CC"; then 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3908$as_echo "$ac_ct_CC" >&6; } 3909else 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3911$as_echo "no" >&6; } 3912fi 3913 3914 3915 test -n "$ac_ct_CC" && break 3916done 3917 3918 if test "x$ac_ct_CC" = x; then 3919 CC="" 3920 else 3921 case $cross_compiling:$ac_tool_warned in 3922yes:) 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3925ac_tool_warned=yes ;; 3926esac 3927 CC=$ac_ct_CC 3928 fi 3929fi 3930 3931fi 3932 3933 3934test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3936as_fn_error $? "no acceptable C compiler found in \$PATH 3937See \`config.log' for more details" "$LINENO" 5; } 3938 3939# Provide some information about the compiler. 3940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3941set X $ac_compile 3942ac_compiler=$2 3943for ac_option in --version -v -V -qversion; do 3944 { { ac_try="$ac_compiler $ac_option >&5" 3945case "(($ac_try" in 3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3947 *) ac_try_echo=$ac_try;; 3948esac 3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3950$as_echo "$ac_try_echo"; } >&5 3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3952 ac_status=$? 3953 if test -s conftest.err; then 3954 sed '10a\ 3955... rest of stderr output deleted ... 3956 10q' conftest.err >conftest.er1 3957 cat conftest.er1 >&5 3958 fi 3959 rm -f conftest.er1 conftest.err 3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; } 3962done 3963 3964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967int 3968main () 3969{ 3970 3971 ; 3972 return 0; 3973} 3974_ACEOF 3975ac_clean_files_save=$ac_clean_files 3976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3977# Try to create an executable without -o first, disregard a.out. 3978# It will help us diagnose broken compilers, and finding out an intuition 3979# of exeext. 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3981$as_echo_n "checking whether the C compiler works... " >&6; } 3982ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3983 3984# The possible output files: 3985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3986 3987ac_rmfiles= 3988for ac_file in $ac_files 3989do 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3993 esac 3994done 3995rm -f $ac_rmfiles 3996 3997if { { ac_try="$ac_link_default" 3998case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4003$as_echo "$ac_try_echo"; } >&5 4004 (eval "$ac_link_default") 2>&5 4005 ac_status=$? 4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4007 test $ac_status = 0; }; then : 4008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4009# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4010# in a Makefile. We should not override ac_cv_exeext if it was cached, 4011# so that the user can short-circuit this test for compilers unknown to 4012# Autoconf. 4013for ac_file in $ac_files '' 4014do 4015 test -f "$ac_file" || continue 4016 case $ac_file in 4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4018 ;; 4019 [ab].out ) 4020 # We found the default executable, but exeext='' is most 4021 # certainly right. 4022 break;; 4023 *.* ) 4024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4025 then :; else 4026 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4027 fi 4028 # We set ac_cv_exeext here because the later test for it is not 4029 # safe: cross compilers may not add the suffix if given an `-o' 4030 # argument, so we may need to know it at that point already. 4031 # Even if this section looks crufty: it has the advantage of 4032 # actually working. 4033 break;; 4034 * ) 4035 break;; 4036 esac 4037done 4038test "$ac_cv_exeext" = no && ac_cv_exeext= 4039 4040else 4041 ac_file='' 4042fi 4043if test -z "$ac_file"; then : 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4045$as_echo "no" >&6; } 4046$as_echo "$as_me: failed program was:" >&5 4047sed 's/^/| /' conftest.$ac_ext >&5 4048 4049{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4051as_fn_error 77 "C compiler cannot create executables 4052See \`config.log' for more details" "$LINENO" 5; } 4053else 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4055$as_echo "yes" >&6; } 4056fi 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4058$as_echo_n "checking for C compiler default output file name... " >&6; } 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4060$as_echo "$ac_file" >&6; } 4061ac_exeext=$ac_cv_exeext 4062 4063rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4064ac_clean_files=$ac_clean_files_save 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4066$as_echo_n "checking for suffix of executables... " >&6; } 4067if { { ac_try="$ac_link" 4068case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071esac 4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4073$as_echo "$ac_try_echo"; } >&5 4074 (eval "$ac_link") 2>&5 4075 ac_status=$? 4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4077 test $ac_status = 0; }; then : 4078 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4080# work properly (i.e., refer to `conftest.exe'), while it won't with 4081# `rm'. 4082for ac_file in conftest.exe conftest conftest.*; do 4083 test -f "$ac_file" || continue 4084 case $ac_file in 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4087 break;; 4088 * ) break;; 4089 esac 4090done 4091else 4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4094as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4095See \`config.log' for more details" "$LINENO" 5; } 4096fi 4097rm -f conftest conftest$ac_cv_exeext 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4099$as_echo "$ac_cv_exeext" >&6; } 4100 4101rm -f conftest.$ac_ext 4102EXEEXT=$ac_cv_exeext 4103ac_exeext=$EXEEXT 4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106#include <stdio.h> 4107int 4108main () 4109{ 4110FILE *f = fopen ("conftest.out", "w"); 4111 return ferror (f) || fclose (f) != 0; 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117ac_clean_files="$ac_clean_files conftest.out" 4118# Check that the compiler produces executables we can run. If not, either 4119# the compiler is broken, or we cross compile. 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4121$as_echo_n "checking whether we are cross compiling... " >&6; } 4122if test "$cross_compiling" != yes; then 4123 { { ac_try="$ac_link" 4124case "(($ac_try" in 4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4126 *) ac_try_echo=$ac_try;; 4127esac 4128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4129$as_echo "$ac_try_echo"; } >&5 4130 (eval "$ac_link") 2>&5 4131 ac_status=$? 4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4133 test $ac_status = 0; } 4134 if { ac_try='./conftest$ac_cv_exeext' 4135 { { case "(($ac_try" in 4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137 *) ac_try_echo=$ac_try;; 4138esac 4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4140$as_echo "$ac_try_echo"; } >&5 4141 (eval "$ac_try") 2>&5 4142 ac_status=$? 4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4144 test $ac_status = 0; }; }; then 4145 cross_compiling=no 4146 else 4147 if test "$cross_compiling" = maybe; then 4148 cross_compiling=yes 4149 else 4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4152as_fn_error $? "cannot run C compiled programs. 4153If you meant to cross compile, use \`--host'. 4154See \`config.log' for more details" "$LINENO" 5; } 4155 fi 4156 fi 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4159$as_echo "$cross_compiling" >&6; } 4160 4161rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4162ac_clean_files=$ac_clean_files_save 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4164$as_echo_n "checking for suffix of object files... " >&6; } 4165if ${ac_cv_objext+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170 4171int 4172main () 4173{ 4174 4175 ; 4176 return 0; 4177} 4178_ACEOF 4179rm -f conftest.o conftest.obj 4180if { { ac_try="$ac_compile" 4181case "(($ac_try" in 4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4183 *) ac_try_echo=$ac_try;; 4184esac 4185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4186$as_echo "$ac_try_echo"; } >&5 4187 (eval "$ac_compile") 2>&5 4188 ac_status=$? 4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4190 test $ac_status = 0; }; then : 4191 for ac_file in conftest.o conftest.obj conftest.*; do 4192 test -f "$ac_file" || continue; 4193 case $ac_file in 4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4196 break;; 4197 esac 4198done 4199else 4200 $as_echo "$as_me: failed program was:" >&5 4201sed 's/^/| /' conftest.$ac_ext >&5 4202 4203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4205as_fn_error $? "cannot compute suffix of object files: cannot compile 4206See \`config.log' for more details" "$LINENO" 5; } 4207fi 4208rm -f conftest.$ac_cv_objext conftest.$ac_ext 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4211$as_echo "$ac_cv_objext" >&6; } 4212OBJEXT=$ac_cv_objext 4213ac_objext=$OBJEXT 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4215$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4216if ${ac_cv_c_compiler_gnu+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221 4222int 4223main () 4224{ 4225#ifndef __GNUC__ 4226 choke me 4227#endif 4228 4229 ; 4230 return 0; 4231} 4232_ACEOF 4233if ac_fn_c_try_compile "$LINENO"; then : 4234 ac_compiler_gnu=yes 4235else 4236 ac_compiler_gnu=no 4237fi 4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4239ac_cv_c_compiler_gnu=$ac_compiler_gnu 4240 4241fi 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4243$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4244if test $ac_compiler_gnu = yes; then 4245 GCC=yes 4246else 4247 GCC= 4248fi 4249ac_test_CFLAGS=${CFLAGS+set} 4250ac_save_CFLAGS=$CFLAGS 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4252$as_echo_n "checking whether $CC accepts -g... " >&6; } 4253if ${ac_cv_prog_cc_g+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 ac_save_c_werror_flag=$ac_c_werror_flag 4257 ac_c_werror_flag=yes 4258 ac_cv_prog_cc_g=no 4259 CFLAGS="-g" 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262 4263int 4264main () 4265{ 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271if ac_fn_c_try_compile "$LINENO"; then : 4272 ac_cv_prog_cc_g=yes 4273else 4274 CFLAGS="" 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278int 4279main () 4280{ 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286if ac_fn_c_try_compile "$LINENO"; then : 4287 4288else 4289 ac_c_werror_flag=$ac_save_c_werror_flag 4290 CFLAGS="-g" 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293 4294int 4295main () 4296{ 4297 4298 ; 4299 return 0; 4300} 4301_ACEOF 4302if ac_fn_c_try_compile "$LINENO"; then : 4303 ac_cv_prog_cc_g=yes 4304fi 4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4306fi 4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4308fi 4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4310 ac_c_werror_flag=$ac_save_c_werror_flag 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4313$as_echo "$ac_cv_prog_cc_g" >&6; } 4314if test "$ac_test_CFLAGS" = set; then 4315 CFLAGS=$ac_save_CFLAGS 4316elif test $ac_cv_prog_cc_g = yes; then 4317 if test "$GCC" = yes; then 4318 CFLAGS="-g -O2" 4319 else 4320 CFLAGS="-g" 4321 fi 4322else 4323 if test "$GCC" = yes; then 4324 CFLAGS="-O2" 4325 else 4326 CFLAGS= 4327 fi 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4330$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4331if ${ac_cv_prog_cc_c89+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 ac_cv_prog_cc_c89=no 4335ac_save_CC=$CC 4336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <stdarg.h> 4339#include <stdio.h> 4340struct stat; 4341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4342struct buf { int x; }; 4343FILE * (*rcsopen) (struct buf *, struct stat *, int); 4344static char *e (p, i) 4345 char **p; 4346 int i; 4347{ 4348 return p[i]; 4349} 4350static char *f (char * (*g) (char **, int), char **p, ...) 4351{ 4352 char *s; 4353 va_list v; 4354 va_start (v,p); 4355 s = g (p, va_arg (v,int)); 4356 va_end (v); 4357 return s; 4358} 4359 4360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4361 function prototypes and stuff, but not '\xHH' hex character constants. 4362 These don't provoke an error unfortunately, instead are silently treated 4363 as 'x'. The following induces an error, until -std is added to get 4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4365 array size at least. It's necessary to write '\x00'==0 to get something 4366 that's true only with -std. */ 4367int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4368 4369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4370 inside strings and character constants. */ 4371#define FOO(x) 'x' 4372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4373 4374int test (int i, double x); 4375struct s1 {int (*f) (int a);}; 4376struct s2 {int (*f) (double a);}; 4377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4378int argc; 4379char **argv; 4380int 4381main () 4382{ 4383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4384 ; 4385 return 0; 4386} 4387_ACEOF 4388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4390do 4391 CC="$ac_save_CC $ac_arg" 4392 if ac_fn_c_try_compile "$LINENO"; then : 4393 ac_cv_prog_cc_c89=$ac_arg 4394fi 4395rm -f core conftest.err conftest.$ac_objext 4396 test "x$ac_cv_prog_cc_c89" != "xno" && break 4397done 4398rm -f conftest.$ac_ext 4399CC=$ac_save_CC 4400 4401fi 4402# AC_CACHE_VAL 4403case "x$ac_cv_prog_cc_c89" in 4404 x) 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4406$as_echo "none needed" >&6; } ;; 4407 xno) 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4409$as_echo "unsupported" >&6; } ;; 4410 *) 4411 CC="$CC $ac_cv_prog_cc_c89" 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4414esac 4415if test "x$ac_cv_prog_cc_c89" != xno; then : 4416 4417fi 4418 4419ac_ext=c 4420ac_cpp='$CPP $CPPFLAGS' 4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4423ac_compiler_gnu=$ac_cv_c_compiler_gnu 4424 4425ac_ext=c 4426ac_cpp='$CPP $CPPFLAGS' 4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4429ac_compiler_gnu=$ac_cv_c_compiler_gnu 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4431$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4432if ${am_cv_prog_cc_c_o+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437 4438int 4439main () 4440{ 4441 4442 ; 4443 return 0; 4444} 4445_ACEOF 4446 # Make sure it works both with $CC and with simple cc. 4447 # Following AC_PROG_CC_C_O, we do the test twice because some 4448 # compilers refuse to overwrite an existing .o file with -o, 4449 # though they will create one. 4450 am_cv_prog_cc_c_o=yes 4451 for am_i in 1 2; do 4452 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4453 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4454 ac_status=$? 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } \ 4457 && test -f conftest2.$ac_objext; then 4458 : OK 4459 else 4460 am_cv_prog_cc_c_o=no 4461 break 4462 fi 4463 done 4464 rm -f core conftest* 4465 unset am_i 4466fi 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4468$as_echo "$am_cv_prog_cc_c_o" >&6; } 4469if test "$am_cv_prog_cc_c_o" != yes; then 4470 # Losing compiler, so override with the script. 4471 # FIXME: It is wrong to rewrite CC. 4472 # But if we don't then we get into trouble of one sort or another. 4473 # A longer-term fix would be to have automake use am__CC in this case, 4474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4475 CC="$am_aux_dir/compile $CC" 4476fi 4477ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482 4483 4484depcc="$CC" am_compiler_list= 4485 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4487$as_echo_n "checking dependency style of $depcc... " >&6; } 4488if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4492 # We make a subdir and do the tests there. Otherwise we can end up 4493 # making bogus files that we don't know about and never remove. For 4494 # instance it was reported that on HP-UX the gcc test will end up 4495 # making a dummy file named 'D' -- because '-MD' means "put the output 4496 # in D". 4497 rm -rf conftest.dir 4498 mkdir conftest.dir 4499 # Copy depcomp to subdir because otherwise we won't find it if we're 4500 # using a relative directory. 4501 cp "$am_depcomp" conftest.dir 4502 cd conftest.dir 4503 # We will build objects and dependencies in a subdirectory because 4504 # it helps to detect inapplicable dependency modes. For instance 4505 # both Tru64's cc and ICC support -MD to output dependencies as a 4506 # side effect of compilation, but ICC will put the dependencies in 4507 # the current directory while Tru64 will put them in the object 4508 # directory. 4509 mkdir sub 4510 4511 am_cv_CC_dependencies_compiler_type=none 4512 if test "$am_compiler_list" = ""; then 4513 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4514 fi 4515 am__universal=false 4516 case " $depcc " in #( 4517 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4518 esac 4519 4520 for depmode in $am_compiler_list; do 4521 # Setup a source with many dependencies, because some compilers 4522 # like to wrap large dependency lists on column 80 (with \), and 4523 # we should not choose a depcomp mode which is confused by this. 4524 # 4525 # We need to recreate these files for each test, as the compiler may 4526 # overwrite some of them when testing with obscure command lines. 4527 # This happens at least with the AIX C compiler. 4528 : > sub/conftest.c 4529 for i in 1 2 3 4 5 6; do 4530 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4531 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4532 # Solaris 10 /bin/sh. 4533 echo '/* dummy */' > sub/conftst$i.h 4534 done 4535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4536 4537 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4538 # mode. It turns out that the SunPro C++ compiler does not properly 4539 # handle '-M -o', and we need to detect this. Also, some Intel 4540 # versions had trouble with output in subdirs. 4541 am__obj=sub/conftest.${OBJEXT-o} 4542 am__minus_obj="-o $am__obj" 4543 case $depmode in 4544 gcc) 4545 # This depmode causes a compiler race in universal mode. 4546 test "$am__universal" = false || continue 4547 ;; 4548 nosideeffect) 4549 # After this tag, mechanisms are not by side-effect, so they'll 4550 # only be used when explicitly requested. 4551 if test "x$enable_dependency_tracking" = xyes; then 4552 continue 4553 else 4554 break 4555 fi 4556 ;; 4557 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4558 # This compiler won't grok '-c -o', but also, the minuso test has 4559 # not run yet. These depmodes are late enough in the game, and 4560 # so weak that their functioning should not be impacted. 4561 am__obj=conftest.${OBJEXT-o} 4562 am__minus_obj= 4563 ;; 4564 none) break ;; 4565 esac 4566 if depmode=$depmode \ 4567 source=sub/conftest.c object=$am__obj \ 4568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4569 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4570 >/dev/null 2>conftest.err && 4571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4573 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4575 # icc doesn't choke on unknown options, it will just issue warnings 4576 # or remarks (even with -Werror). So we grep stderr for any message 4577 # that says an option was ignored or not supported. 4578 # When given -MP, icc 7.0 and 7.1 complain thusly: 4579 # icc: Command line warning: ignoring option '-M'; no argument required 4580 # The diagnosis changed in icc 8.0: 4581 # icc: Command line remark: option '-MP' not supported 4582 if (grep 'ignoring option' conftest.err || 4583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4584 am_cv_CC_dependencies_compiler_type=$depmode 4585 break 4586 fi 4587 fi 4588 done 4589 4590 cd .. 4591 rm -rf conftest.dir 4592else 4593 am_cv_CC_dependencies_compiler_type=none 4594fi 4595 4596fi 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4598$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4599CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4600 4601 if 4602 test "x$enable_dependency_tracking" != xno \ 4603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4604 am__fastdepCC_TRUE= 4605 am__fastdepCC_FALSE='#' 4606else 4607 am__fastdepCC_TRUE='#' 4608 am__fastdepCC_FALSE= 4609fi 4610 4611 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4613$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4614if ${ac_cv_path_SED+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4618 for ac_i in 1 2 3 4 5 6 7; do 4619 ac_script="$ac_script$as_nl$ac_script" 4620 done 4621 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4622 { ac_script=; unset ac_script;} 4623 if test -z "$SED"; then 4624 ac_path_SED_found=false 4625 # Loop through the user's path and test for each of PROGNAME-LIST 4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627for as_dir in $PATH 4628do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_prog in sed gsed; do 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4634 as_fn_executable_p "$ac_path_SED" || continue 4635# Check for GNU ac_path_SED and select it if it is found. 4636 # Check for GNU $ac_path_SED 4637case `"$ac_path_SED" --version 2>&1` in 4638*GNU*) 4639 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4640*) 4641 ac_count=0 4642 $as_echo_n 0123456789 >"conftest.in" 4643 while : 4644 do 4645 cat "conftest.in" "conftest.in" >"conftest.tmp" 4646 mv "conftest.tmp" "conftest.in" 4647 cp "conftest.in" "conftest.nl" 4648 $as_echo '' >> "conftest.nl" 4649 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4651 as_fn_arith $ac_count + 1 && ac_count=$as_val 4652 if test $ac_count -gt ${ac_path_SED_max-0}; then 4653 # Best one so far, save it but keep looking for a better one 4654 ac_cv_path_SED="$ac_path_SED" 4655 ac_path_SED_max=$ac_count 4656 fi 4657 # 10*(2^10) chars as input seems more than enough 4658 test $ac_count -gt 10 && break 4659 done 4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4661esac 4662 4663 $ac_path_SED_found && break 3 4664 done 4665 done 4666 done 4667IFS=$as_save_IFS 4668 if test -z "$ac_cv_path_SED"; then 4669 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4670 fi 4671else 4672 ac_cv_path_SED=$SED 4673fi 4674 4675fi 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4677$as_echo "$ac_cv_path_SED" >&6; } 4678 SED="$ac_cv_path_SED" 4679 rm -f conftest.sed 4680 4681test -z "$SED" && SED=sed 4682Xsed="$SED -e 1s/^X//" 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4695$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4696if ${ac_cv_path_GREP+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 if test -z "$GREP"; then 4700 ac_path_GREP_found=false 4701 # Loop through the user's path and test for each of PROGNAME-LIST 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4704do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_prog in grep ggrep; do 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4710 as_fn_executable_p "$ac_path_GREP" || continue 4711# Check for GNU ac_path_GREP and select it if it is found. 4712 # Check for GNU $ac_path_GREP 4713case `"$ac_path_GREP" --version 2>&1` in 4714*GNU*) 4715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4716*) 4717 ac_count=0 4718 $as_echo_n 0123456789 >"conftest.in" 4719 while : 4720 do 4721 cat "conftest.in" "conftest.in" >"conftest.tmp" 4722 mv "conftest.tmp" "conftest.in" 4723 cp "conftest.in" "conftest.nl" 4724 $as_echo 'GREP' >> "conftest.nl" 4725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4727 as_fn_arith $ac_count + 1 && ac_count=$as_val 4728 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4729 # Best one so far, save it but keep looking for a better one 4730 ac_cv_path_GREP="$ac_path_GREP" 4731 ac_path_GREP_max=$ac_count 4732 fi 4733 # 10*(2^10) chars as input seems more than enough 4734 test $ac_count -gt 10 && break 4735 done 4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4737esac 4738 4739 $ac_path_GREP_found && break 3 4740 done 4741 done 4742 done 4743IFS=$as_save_IFS 4744 if test -z "$ac_cv_path_GREP"; then 4745 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4746 fi 4747else 4748 ac_cv_path_GREP=$GREP 4749fi 4750 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4753$as_echo "$ac_cv_path_GREP" >&6; } 4754 GREP="$ac_cv_path_GREP" 4755 4756 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4758$as_echo_n "checking for egrep... " >&6; } 4759if ${ac_cv_path_EGREP+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4763 then ac_cv_path_EGREP="$GREP -E" 4764 else 4765 if test -z "$EGREP"; then 4766 ac_path_EGREP_found=false 4767 # Loop through the user's path and test for each of PROGNAME-LIST 4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4769for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4770do 4771 IFS=$as_save_IFS 4772 test -z "$as_dir" && as_dir=. 4773 for ac_prog in egrep; do 4774 for ac_exec_ext in '' $ac_executable_extensions; do 4775 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4776 as_fn_executable_p "$ac_path_EGREP" || continue 4777# Check for GNU ac_path_EGREP and select it if it is found. 4778 # Check for GNU $ac_path_EGREP 4779case `"$ac_path_EGREP" --version 2>&1` in 4780*GNU*) 4781 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4782*) 4783 ac_count=0 4784 $as_echo_n 0123456789 >"conftest.in" 4785 while : 4786 do 4787 cat "conftest.in" "conftest.in" >"conftest.tmp" 4788 mv "conftest.tmp" "conftest.in" 4789 cp "conftest.in" "conftest.nl" 4790 $as_echo 'EGREP' >> "conftest.nl" 4791 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4793 as_fn_arith $ac_count + 1 && ac_count=$as_val 4794 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4795 # Best one so far, save it but keep looking for a better one 4796 ac_cv_path_EGREP="$ac_path_EGREP" 4797 ac_path_EGREP_max=$ac_count 4798 fi 4799 # 10*(2^10) chars as input seems more than enough 4800 test $ac_count -gt 10 && break 4801 done 4802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4803esac 4804 4805 $ac_path_EGREP_found && break 3 4806 done 4807 done 4808 done 4809IFS=$as_save_IFS 4810 if test -z "$ac_cv_path_EGREP"; then 4811 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4812 fi 4813else 4814 ac_cv_path_EGREP=$EGREP 4815fi 4816 4817 fi 4818fi 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4820$as_echo "$ac_cv_path_EGREP" >&6; } 4821 EGREP="$ac_cv_path_EGREP" 4822 4823 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4825$as_echo_n "checking for fgrep... " >&6; } 4826if ${ac_cv_path_FGREP+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4830 then ac_cv_path_FGREP="$GREP -F" 4831 else 4832 if test -z "$FGREP"; then 4833 ac_path_FGREP_found=false 4834 # Loop through the user's path and test for each of PROGNAME-LIST 4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4837do 4838 IFS=$as_save_IFS 4839 test -z "$as_dir" && as_dir=. 4840 for ac_prog in fgrep; do 4841 for ac_exec_ext in '' $ac_executable_extensions; do 4842 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4843 as_fn_executable_p "$ac_path_FGREP" || continue 4844# Check for GNU ac_path_FGREP and select it if it is found. 4845 # Check for GNU $ac_path_FGREP 4846case `"$ac_path_FGREP" --version 2>&1` in 4847*GNU*) 4848 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4849*) 4850 ac_count=0 4851 $as_echo_n 0123456789 >"conftest.in" 4852 while : 4853 do 4854 cat "conftest.in" "conftest.in" >"conftest.tmp" 4855 mv "conftest.tmp" "conftest.in" 4856 cp "conftest.in" "conftest.nl" 4857 $as_echo 'FGREP' >> "conftest.nl" 4858 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4860 as_fn_arith $ac_count + 1 && ac_count=$as_val 4861 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4862 # Best one so far, save it but keep looking for a better one 4863 ac_cv_path_FGREP="$ac_path_FGREP" 4864 ac_path_FGREP_max=$ac_count 4865 fi 4866 # 10*(2^10) chars as input seems more than enough 4867 test $ac_count -gt 10 && break 4868 done 4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4870esac 4871 4872 $ac_path_FGREP_found && break 3 4873 done 4874 done 4875 done 4876IFS=$as_save_IFS 4877 if test -z "$ac_cv_path_FGREP"; then 4878 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4879 fi 4880else 4881 ac_cv_path_FGREP=$FGREP 4882fi 4883 4884 fi 4885fi 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4887$as_echo "$ac_cv_path_FGREP" >&6; } 4888 FGREP="$ac_cv_path_FGREP" 4889 4890 4891test -z "$GREP" && GREP=grep 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911# Check whether --with-gnu-ld was given. 4912if test "${with_gnu_ld+set}" = set; then : 4913 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4914else 4915 with_gnu_ld=no 4916fi 4917 4918ac_prog=ld 4919if test yes = "$GCC"; then 4920 # Check if gcc -print-prog-name=ld gives a path. 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4922$as_echo_n "checking for ld used by $CC... " >&6; } 4923 case $host in 4924 *-*-mingw*) 4925 # gcc leaves a trailing carriage return, which upsets mingw 4926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4927 *) 4928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4929 esac 4930 case $ac_prog in 4931 # Accept absolute paths. 4932 [\\/]* | ?:[\\/]*) 4933 re_direlt='/[^/][^/]*/\.\./' 4934 # Canonicalize the pathname of ld 4935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4938 done 4939 test -z "$LD" && LD=$ac_prog 4940 ;; 4941 "") 4942 # If it fails, then pretend we aren't using GCC. 4943 ac_prog=ld 4944 ;; 4945 *) 4946 # If it is relative, then search for the first ld in PATH. 4947 with_gnu_ld=unknown 4948 ;; 4949 esac 4950elif test yes = "$with_gnu_ld"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4952$as_echo_n "checking for GNU ld... " >&6; } 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4955$as_echo_n "checking for non-GNU ld... " >&6; } 4956fi 4957if ${lt_cv_path_LD+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 if test -z "$LD"; then 4961 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4962 for ac_dir in $PATH; do 4963 IFS=$lt_save_ifs 4964 test -z "$ac_dir" && ac_dir=. 4965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4966 lt_cv_path_LD=$ac_dir/$ac_prog 4967 # Check to see if the program is GNU ld. I'd rather use --version, 4968 # but apparently some variants of GNU ld only accept -v. 4969 # Break only if it was the GNU/non-GNU ld that we prefer. 4970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4971 *GNU* | *'with BFD'*) 4972 test no != "$with_gnu_ld" && break 4973 ;; 4974 *) 4975 test yes != "$with_gnu_ld" && break 4976 ;; 4977 esac 4978 fi 4979 done 4980 IFS=$lt_save_ifs 4981else 4982 lt_cv_path_LD=$LD # Let the user override the test with a path. 4983fi 4984fi 4985 4986LD=$lt_cv_path_LD 4987if test -n "$LD"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4989$as_echo "$LD" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4997if ${lt_cv_prog_gnu_ld+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5001case `$LD -v 2>&1 </dev/null` in 5002*GNU* | *'with BFD'*) 5003 lt_cv_prog_gnu_ld=yes 5004 ;; 5005*) 5006 lt_cv_prog_gnu_ld=no 5007 ;; 5008esac 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5011$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5012with_gnu_ld=$lt_cv_prog_gnu_ld 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5023$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5024if ${lt_cv_path_NM+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026else 5027 if test -n "$NM"; then 5028 # Let the user override the test. 5029 lt_cv_path_NM=$NM 5030else 5031 lt_nm_to_check=${ac_tool_prefix}nm 5032 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5033 lt_nm_to_check="$lt_nm_to_check nm" 5034 fi 5035 for lt_tmp_nm in $lt_nm_to_check; do 5036 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5038 IFS=$lt_save_ifs 5039 test -z "$ac_dir" && ac_dir=. 5040 tmp_nm=$ac_dir/$lt_tmp_nm 5041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5042 # Check to see if the nm accepts a BSD-compat flag. 5043 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5044 # nm: unknown option "B" ignored 5045 # Tru64's nm complains that /dev/null is an invalid object file 5046 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5047 case $build_os in 5048 mingw*) lt_bad_file=conftest.nm/nofile ;; 5049 *) lt_bad_file=/dev/null ;; 5050 esac 5051 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5052 *$lt_bad_file* | *'Invalid file or object type'*) 5053 lt_cv_path_NM="$tmp_nm -B" 5054 break 2 5055 ;; 5056 *) 5057 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5058 */dev/null*) 5059 lt_cv_path_NM="$tmp_nm -p" 5060 break 2 5061 ;; 5062 *) 5063 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5064 continue # so that we can try to find one that supports BSD flags 5065 ;; 5066 esac 5067 ;; 5068 esac 5069 fi 5070 done 5071 IFS=$lt_save_ifs 5072 done 5073 : ${lt_cv_path_NM=no} 5074fi 5075fi 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5077$as_echo "$lt_cv_path_NM" >&6; } 5078if test no != "$lt_cv_path_NM"; then 5079 NM=$lt_cv_path_NM 5080else 5081 # Didn't find any BSD compatible name lister, look for dumpbin. 5082 if test -n "$DUMPBIN"; then : 5083 # Let the user override the test. 5084 else 5085 if test -n "$ac_tool_prefix"; then 5086 for ac_prog in dumpbin "link -dump" 5087 do 5088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5089set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5091$as_echo_n "checking for $ac_word... " >&6; } 5092if ${ac_cv_prog_DUMPBIN+:} false; then : 5093 $as_echo_n "(cached) " >&6 5094else 5095 if test -n "$DUMPBIN"; then 5096 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5097else 5098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5099for as_dir in $PATH 5100do 5101 IFS=$as_save_IFS 5102 test -z "$as_dir" && as_dir=. 5103 for ac_exec_ext in '' $ac_executable_extensions; do 5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5105 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5107 break 2 5108 fi 5109done 5110 done 5111IFS=$as_save_IFS 5112 5113fi 5114fi 5115DUMPBIN=$ac_cv_prog_DUMPBIN 5116if test -n "$DUMPBIN"; then 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5118$as_echo "$DUMPBIN" >&6; } 5119else 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5121$as_echo "no" >&6; } 5122fi 5123 5124 5125 test -n "$DUMPBIN" && break 5126 done 5127fi 5128if test -z "$DUMPBIN"; then 5129 ac_ct_DUMPBIN=$DUMPBIN 5130 for ac_prog in dumpbin "link -dump" 5131do 5132 # Extract the first word of "$ac_prog", so it can be a program name with args. 5133set dummy $ac_prog; ac_word=$2 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5135$as_echo_n "checking for $ac_word... " >&6; } 5136if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 if test -n "$ac_ct_DUMPBIN"; then 5140 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5141else 5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5143for as_dir in $PATH 5144do 5145 IFS=$as_save_IFS 5146 test -z "$as_dir" && as_dir=. 5147 for ac_exec_ext in '' $ac_executable_extensions; do 5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5149 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5151 break 2 5152 fi 5153done 5154 done 5155IFS=$as_save_IFS 5156 5157fi 5158fi 5159ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5160if test -n "$ac_ct_DUMPBIN"; then 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5162$as_echo "$ac_ct_DUMPBIN" >&6; } 5163else 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5165$as_echo "no" >&6; } 5166fi 5167 5168 5169 test -n "$ac_ct_DUMPBIN" && break 5170done 5171 5172 if test "x$ac_ct_DUMPBIN" = x; then 5173 DUMPBIN=":" 5174 else 5175 case $cross_compiling:$ac_tool_warned in 5176yes:) 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5179ac_tool_warned=yes ;; 5180esac 5181 DUMPBIN=$ac_ct_DUMPBIN 5182 fi 5183fi 5184 5185 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5186 *COFF*) 5187 DUMPBIN="$DUMPBIN -symbols -headers" 5188 ;; 5189 *) 5190 DUMPBIN=: 5191 ;; 5192 esac 5193 fi 5194 5195 if test : != "$DUMPBIN"; then 5196 NM=$DUMPBIN 5197 fi 5198fi 5199test -z "$NM" && NM=nm 5200 5201 5202 5203 5204 5205 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5207$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5208if ${lt_cv_nm_interface+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 lt_cv_nm_interface="BSD nm" 5212 echo "int some_variable = 0;" > conftest.$ac_ext 5213 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5214 (eval "$ac_compile" 2>conftest.err) 5215 cat conftest.err >&5 5216 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5217 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5218 cat conftest.err >&5 5219 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5220 cat conftest.out >&5 5221 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5222 lt_cv_nm_interface="MS dumpbin" 5223 fi 5224 rm -f conftest* 5225fi 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5227$as_echo "$lt_cv_nm_interface" >&6; } 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5230$as_echo_n "checking whether ln -s works... " >&6; } 5231LN_S=$as_ln_s 5232if test "$LN_S" = "ln -s"; then 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5234$as_echo "yes" >&6; } 5235else 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5237$as_echo "no, using $LN_S" >&6; } 5238fi 5239 5240# find the maximum length of command line arguments 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5242$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5243if ${lt_cv_sys_max_cmd_len+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245else 5246 i=0 5247 teststring=ABCD 5248 5249 case $build_os in 5250 msdosdjgpp*) 5251 # On DJGPP, this test can blow up pretty badly due to problems in libc 5252 # (any single argument exceeding 2000 bytes causes a buffer overrun 5253 # during glob expansion). Even if it were fixed, the result of this 5254 # check would be larger than it should be. 5255 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5256 ;; 5257 5258 gnu*) 5259 # Under GNU Hurd, this test is not required because there is 5260 # no limit to the length of command line arguments. 5261 # Libtool will interpret -1 as no limit whatsoever 5262 lt_cv_sys_max_cmd_len=-1; 5263 ;; 5264 5265 cygwin* | mingw* | cegcc*) 5266 # On Win9x/ME, this test blows up -- it succeeds, but takes 5267 # about 5 minutes as the teststring grows exponentially. 5268 # Worse, since 9x/ME are not pre-emptively multitasking, 5269 # you end up with a "frozen" computer, even though with patience 5270 # the test eventually succeeds (with a max line length of 256k). 5271 # Instead, let's just punt: use the minimum linelength reported by 5272 # all of the supported platforms: 8192 (on NT/2K/XP). 5273 lt_cv_sys_max_cmd_len=8192; 5274 ;; 5275 5276 mint*) 5277 # On MiNT this can take a long time and run out of memory. 5278 lt_cv_sys_max_cmd_len=8192; 5279 ;; 5280 5281 amigaos*) 5282 # On AmigaOS with pdksh, this test takes hours, literally. 5283 # So we just punt and use a minimum line length of 8192. 5284 lt_cv_sys_max_cmd_len=8192; 5285 ;; 5286 5287 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5288 # This has been around since 386BSD, at least. Likely further. 5289 if test -x /sbin/sysctl; then 5290 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5291 elif test -x /usr/sbin/sysctl; then 5292 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5293 else 5294 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5295 fi 5296 # And add a safety zone 5297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5299 ;; 5300 5301 interix*) 5302 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5303 lt_cv_sys_max_cmd_len=196608 5304 ;; 5305 5306 os2*) 5307 # The test takes a long time on OS/2. 5308 lt_cv_sys_max_cmd_len=8192 5309 ;; 5310 5311 osf*) 5312 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5313 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5314 # nice to cause kernel panics so lets avoid the loop below. 5315 # First set a reasonable default. 5316 lt_cv_sys_max_cmd_len=16384 5317 # 5318 if test -x /sbin/sysconfig; then 5319 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5320 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5321 esac 5322 fi 5323 ;; 5324 sco3.2v5*) 5325 lt_cv_sys_max_cmd_len=102400 5326 ;; 5327 sysv5* | sco5v6* | sysv4.2uw2*) 5328 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5329 if test -n "$kargmax"; then 5330 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5331 else 5332 lt_cv_sys_max_cmd_len=32768 5333 fi 5334 ;; 5335 *) 5336 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5337 if test -n "$lt_cv_sys_max_cmd_len" && \ 5338 test undefined != "$lt_cv_sys_max_cmd_len"; then 5339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5341 else 5342 # Make teststring a little bigger before we do anything with it. 5343 # a 1K string should be a reasonable start. 5344 for i in 1 2 3 4 5 6 7 8; do 5345 teststring=$teststring$teststring 5346 done 5347 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5348 # If test is not a shell built-in, we'll probably end up computing a 5349 # maximum length that is only half of the actual maximum length, but 5350 # we can't tell. 5351 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5352 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5353 test 17 != "$i" # 1/2 MB should be enough 5354 do 5355 i=`expr $i + 1` 5356 teststring=$teststring$teststring 5357 done 5358 # Only check the string length outside the loop. 5359 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5360 teststring= 5361 # Add a significant safety factor because C++ compilers can tack on 5362 # massive amounts of additional arguments before passing them to the 5363 # linker. It appears as though 1/2 is a usable value. 5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5365 fi 5366 ;; 5367 esac 5368 5369fi 5370 5371if test -n "$lt_cv_sys_max_cmd_len"; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5373$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5374else 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5376$as_echo "none" >&6; } 5377fi 5378max_cmd_len=$lt_cv_sys_max_cmd_len 5379 5380 5381 5382 5383 5384 5385: ${CP="cp -f"} 5386: ${MV="mv -f"} 5387: ${RM="rm -f"} 5388 5389if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5390 lt_unset=unset 5391else 5392 lt_unset=false 5393fi 5394 5395 5396 5397 5398 5399# test EBCDIC or ASCII 5400case `echo X|tr X '\101'` in 5401 A) # ASCII based system 5402 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5403 lt_SP2NL='tr \040 \012' 5404 lt_NL2SP='tr \015\012 \040\040' 5405 ;; 5406 *) # EBCDIC based system 5407 lt_SP2NL='tr \100 \n' 5408 lt_NL2SP='tr \r\n \100\100' 5409 ;; 5410esac 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5421$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5422if ${lt_cv_to_host_file_cmd+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 case $host in 5426 *-*-mingw* ) 5427 case $build in 5428 *-*-mingw* ) # actually msys 5429 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5430 ;; 5431 *-*-cygwin* ) 5432 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5433 ;; 5434 * ) # otherwise, assume *nix 5435 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5436 ;; 5437 esac 5438 ;; 5439 *-*-cygwin* ) 5440 case $build in 5441 *-*-mingw* ) # actually msys 5442 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5443 ;; 5444 *-*-cygwin* ) 5445 lt_cv_to_host_file_cmd=func_convert_file_noop 5446 ;; 5447 * ) # otherwise, assume *nix 5448 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5449 ;; 5450 esac 5451 ;; 5452 * ) # unhandled hosts (and "normal" native builds) 5453 lt_cv_to_host_file_cmd=func_convert_file_noop 5454 ;; 5455esac 5456 5457fi 5458 5459to_host_file_cmd=$lt_cv_to_host_file_cmd 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5461$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5462 5463 5464 5465 5466 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5468$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5469if ${lt_cv_to_tool_file_cmd+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 #assume ordinary cross tools, or native build. 5473lt_cv_to_tool_file_cmd=func_convert_file_noop 5474case $host in 5475 *-*-mingw* ) 5476 case $build in 5477 *-*-mingw* ) # actually msys 5478 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5479 ;; 5480 esac 5481 ;; 5482esac 5483 5484fi 5485 5486to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5488$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5489 5490 5491 5492 5493 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5495$as_echo_n "checking for $LD option to reload object files... " >&6; } 5496if ${lt_cv_ld_reload_flag+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 lt_cv_ld_reload_flag='-r' 5500fi 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5502$as_echo "$lt_cv_ld_reload_flag" >&6; } 5503reload_flag=$lt_cv_ld_reload_flag 5504case $reload_flag in 5505"" | " "*) ;; 5506*) reload_flag=" $reload_flag" ;; 5507esac 5508reload_cmds='$LD$reload_flag -o $output$reload_objs' 5509case $host_os in 5510 cygwin* | mingw* | pw32* | cegcc*) 5511 if test yes != "$GCC"; then 5512 reload_cmds=false 5513 fi 5514 ;; 5515 darwin*) 5516 if test yes = "$GCC"; then 5517 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5518 else 5519 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5520 fi 5521 ;; 5522esac 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532if test -n "$ac_tool_prefix"; then 5533 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5534set dummy ${ac_tool_prefix}objdump; ac_word=$2 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5536$as_echo_n "checking for $ac_word... " >&6; } 5537if ${ac_cv_prog_OBJDUMP+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 if test -n "$OBJDUMP"; then 5541 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 test -z "$as_dir" && as_dir=. 5548 for ac_exec_ext in '' $ac_executable_extensions; do 5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5550 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5552 break 2 5553 fi 5554done 5555 done 5556IFS=$as_save_IFS 5557 5558fi 5559fi 5560OBJDUMP=$ac_cv_prog_OBJDUMP 5561if test -n "$OBJDUMP"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5563$as_echo "$OBJDUMP" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566$as_echo "no" >&6; } 5567fi 5568 5569 5570fi 5571if test -z "$ac_cv_prog_OBJDUMP"; then 5572 ac_ct_OBJDUMP=$OBJDUMP 5573 # Extract the first word of "objdump", so it can be a program name with args. 5574set dummy objdump; ac_word=$2 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5576$as_echo_n "checking for $ac_word... " >&6; } 5577if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 if test -n "$ac_ct_OBJDUMP"; then 5581 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5582else 5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5584for as_dir in $PATH 5585do 5586 IFS=$as_save_IFS 5587 test -z "$as_dir" && as_dir=. 5588 for ac_exec_ext in '' $ac_executable_extensions; do 5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5590 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5592 break 2 5593 fi 5594done 5595 done 5596IFS=$as_save_IFS 5597 5598fi 5599fi 5600ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5601if test -n "$ac_ct_OBJDUMP"; then 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5603$as_echo "$ac_ct_OBJDUMP" >&6; } 5604else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606$as_echo "no" >&6; } 5607fi 5608 5609 if test "x$ac_ct_OBJDUMP" = x; then 5610 OBJDUMP="false" 5611 else 5612 case $cross_compiling:$ac_tool_warned in 5613yes:) 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5616ac_tool_warned=yes ;; 5617esac 5618 OBJDUMP=$ac_ct_OBJDUMP 5619 fi 5620else 5621 OBJDUMP="$ac_cv_prog_OBJDUMP" 5622fi 5623 5624test -z "$OBJDUMP" && OBJDUMP=objdump 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5635$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5636if ${lt_cv_deplibs_check_method+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 lt_cv_file_magic_cmd='$MAGIC_CMD' 5640lt_cv_file_magic_test_file= 5641lt_cv_deplibs_check_method='unknown' 5642# Need to set the preceding variable on all platforms that support 5643# interlibrary dependencies. 5644# 'none' -- dependencies not supported. 5645# 'unknown' -- same as none, but documents that we really don't know. 5646# 'pass_all' -- all dependencies passed with no checks. 5647# 'test_compile' -- check by making test program. 5648# 'file_magic [[regex]]' -- check by looking for files in library path 5649# that responds to the $file_magic_cmd with a given extended regex. 5650# If you have 'file' or equivalent on your system and you're not sure 5651# whether 'pass_all' will *always* work, you probably want this one. 5652 5653case $host_os in 5654aix[4-9]*) 5655 lt_cv_deplibs_check_method=pass_all 5656 ;; 5657 5658beos*) 5659 lt_cv_deplibs_check_method=pass_all 5660 ;; 5661 5662bsdi[45]*) 5663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5664 lt_cv_file_magic_cmd='/usr/bin/file -L' 5665 lt_cv_file_magic_test_file=/shlib/libc.so 5666 ;; 5667 5668cygwin*) 5669 # func_win32_libid is a shell function defined in ltmain.sh 5670 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5671 lt_cv_file_magic_cmd='func_win32_libid' 5672 ;; 5673 5674mingw* | pw32*) 5675 # Base MSYS/MinGW do not provide the 'file' command needed by 5676 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5677 # unless we find 'file', for example because we are cross-compiling. 5678 if ( file / ) >/dev/null 2>&1; then 5679 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5680 lt_cv_file_magic_cmd='func_win32_libid' 5681 else 5682 # Keep this pattern in sync with the one in func_win32_libid. 5683 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5684 lt_cv_file_magic_cmd='$OBJDUMP -f' 5685 fi 5686 ;; 5687 5688cegcc*) 5689 # use the weaker test based on 'objdump'. See mingw*. 5690 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5691 lt_cv_file_magic_cmd='$OBJDUMP -f' 5692 ;; 5693 5694darwin* | rhapsody*) 5695 lt_cv_deplibs_check_method=pass_all 5696 ;; 5697 5698freebsd* | dragonfly*) 5699 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5700 case $host_cpu in 5701 i*86 ) 5702 # Not sure whether the presence of OpenBSD here was a mistake. 5703 # Let's accept both of them until this is cleared up. 5704 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5705 lt_cv_file_magic_cmd=/usr/bin/file 5706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5707 ;; 5708 esac 5709 else 5710 lt_cv_deplibs_check_method=pass_all 5711 fi 5712 ;; 5713 5714haiku*) 5715 lt_cv_deplibs_check_method=pass_all 5716 ;; 5717 5718hpux10.20* | hpux11*) 5719 lt_cv_file_magic_cmd=/usr/bin/file 5720 case $host_cpu in 5721 ia64*) 5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5724 ;; 5725 hppa*64*) 5726 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5728 ;; 5729 *) 5730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5731 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5732 ;; 5733 esac 5734 ;; 5735 5736interix[3-9]*) 5737 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5739 ;; 5740 5741irix5* | irix6* | nonstopux*) 5742 case $LD in 5743 *-32|*"-32 ") libmagic=32-bit;; 5744 *-n32|*"-n32 ") libmagic=N32;; 5745 *-64|*"-64 ") libmagic=64-bit;; 5746 *) libmagic=never-match;; 5747 esac 5748 lt_cv_deplibs_check_method=pass_all 5749 ;; 5750 5751# This must be glibc/ELF. 5752linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5753 lt_cv_deplibs_check_method=pass_all 5754 ;; 5755 5756netbsd*) 5757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5759 else 5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5761 fi 5762 ;; 5763 5764newos6*) 5765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5766 lt_cv_file_magic_cmd=/usr/bin/file 5767 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5768 ;; 5769 5770*nto* | *qnx*) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 5774openbsd* | bitrig*) 5775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5777 else 5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5779 fi 5780 ;; 5781 5782osf3* | osf4* | osf5*) 5783 lt_cv_deplibs_check_method=pass_all 5784 ;; 5785 5786rdos*) 5787 lt_cv_deplibs_check_method=pass_all 5788 ;; 5789 5790solaris*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5795 lt_cv_deplibs_check_method=pass_all 5796 ;; 5797 5798sysv4 | sysv4.3*) 5799 case $host_vendor in 5800 motorola) 5801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5803 ;; 5804 ncr) 5805 lt_cv_deplibs_check_method=pass_all 5806 ;; 5807 sequent) 5808 lt_cv_file_magic_cmd='/bin/file' 5809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5810 ;; 5811 sni) 5812 lt_cv_file_magic_cmd='/bin/file' 5813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5814 lt_cv_file_magic_test_file=/lib/libc.so 5815 ;; 5816 siemens) 5817 lt_cv_deplibs_check_method=pass_all 5818 ;; 5819 pc) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 esac 5823 ;; 5824 5825tpf*) 5826 lt_cv_deplibs_check_method=pass_all 5827 ;; 5828os2*) 5829 lt_cv_deplibs_check_method=pass_all 5830 ;; 5831esac 5832 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5835$as_echo "$lt_cv_deplibs_check_method" >&6; } 5836 5837file_magic_glob= 5838want_nocaseglob=no 5839if test "$build" = "$host"; then 5840 case $host_os in 5841 mingw* | pw32*) 5842 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5843 want_nocaseglob=yes 5844 else 5845 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5846 fi 5847 ;; 5848 esac 5849fi 5850 5851file_magic_cmd=$lt_cv_file_magic_cmd 5852deplibs_check_method=$lt_cv_deplibs_check_method 5853test -z "$deplibs_check_method" && deplibs_check_method=unknown 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876if test -n "$ac_tool_prefix"; then 5877 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5878set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5880$as_echo_n "checking for $ac_word... " >&6; } 5881if ${ac_cv_prog_DLLTOOL+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 if test -n "$DLLTOOL"; then 5885 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5886else 5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888for as_dir in $PATH 5889do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5894 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899 done 5900IFS=$as_save_IFS 5901 5902fi 5903fi 5904DLLTOOL=$ac_cv_prog_DLLTOOL 5905if test -n "$DLLTOOL"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5907$as_echo "$DLLTOOL" >&6; } 5908else 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5910$as_echo "no" >&6; } 5911fi 5912 5913 5914fi 5915if test -z "$ac_cv_prog_DLLTOOL"; then 5916 ac_ct_DLLTOOL=$DLLTOOL 5917 # Extract the first word of "dlltool", so it can be a program name with args. 5918set dummy dlltool; ac_word=$2 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5920$as_echo_n "checking for $ac_word... " >&6; } 5921if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 if test -n "$ac_ct_DLLTOOL"; then 5925 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939 done 5940IFS=$as_save_IFS 5941 5942fi 5943fi 5944ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5945if test -n "$ac_ct_DLLTOOL"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5947$as_echo "$ac_ct_DLLTOOL" >&6; } 5948else 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5950$as_echo "no" >&6; } 5951fi 5952 5953 if test "x$ac_ct_DLLTOOL" = x; then 5954 DLLTOOL="false" 5955 else 5956 case $cross_compiling:$ac_tool_warned in 5957yes:) 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5960ac_tool_warned=yes ;; 5961esac 5962 DLLTOOL=$ac_ct_DLLTOOL 5963 fi 5964else 5965 DLLTOOL="$ac_cv_prog_DLLTOOL" 5966fi 5967 5968test -z "$DLLTOOL" && DLLTOOL=dlltool 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5980$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5981if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 lt_cv_sharedlib_from_linklib_cmd='unknown' 5985 5986case $host_os in 5987cygwin* | mingw* | pw32* | cegcc*) 5988 # two different shell functions defined in ltmain.sh; 5989 # decide which one to use based on capabilities of $DLLTOOL 5990 case `$DLLTOOL --help 2>&1` in 5991 *--identify-strict*) 5992 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5993 ;; 5994 *) 5995 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5996 ;; 5997 esac 5998 ;; 5999*) 6000 # fallback: assume linklib IS sharedlib 6001 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6002 ;; 6003esac 6004 6005fi 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6007$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6008sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6009test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6010 6011 6012 6013 6014 6015 6016 6017 6018if test -n "$ac_tool_prefix"; then 6019 for ac_prog in ar 6020 do 6021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6022set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024$as_echo_n "checking for $ac_word... " >&6; } 6025if ${ac_cv_prog_AR+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 if test -n "$AR"; then 6029 ac_cv_prog_AR="$AR" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6038 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043 done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048AR=$ac_cv_prog_AR 6049if test -n "$AR"; then 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6051$as_echo "$AR" >&6; } 6052else 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6054$as_echo "no" >&6; } 6055fi 6056 6057 6058 test -n "$AR" && break 6059 done 6060fi 6061if test -z "$AR"; then 6062 ac_ct_AR=$AR 6063 for ac_prog in ar 6064do 6065 # Extract the first word of "$ac_prog", so it can be a program name with args. 6066set dummy $ac_prog; ac_word=$2 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068$as_echo_n "checking for $ac_word... " >&6; } 6069if ${ac_cv_prog_ac_ct_AR+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 if test -n "$ac_ct_AR"; then 6073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6074else 6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6082 ac_cv_prog_ac_ct_AR="$ac_prog" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087 done 6088IFS=$as_save_IFS 6089 6090fi 6091fi 6092ac_ct_AR=$ac_cv_prog_ac_ct_AR 6093if test -n "$ac_ct_AR"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6095$as_echo "$ac_ct_AR" >&6; } 6096else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; } 6099fi 6100 6101 6102 test -n "$ac_ct_AR" && break 6103done 6104 6105 if test "x$ac_ct_AR" = x; then 6106 AR="false" 6107 else 6108 case $cross_compiling:$ac_tool_warned in 6109yes:) 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6112ac_tool_warned=yes ;; 6113esac 6114 AR=$ac_ct_AR 6115 fi 6116fi 6117 6118: ${AR=ar} 6119: ${AR_FLAGS=cru} 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6132$as_echo_n "checking for archiver @FILE support... " >&6; } 6133if ${lt_cv_ar_at_file+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 lt_cv_ar_at_file=no 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139 6140int 6141main () 6142{ 6143 6144 ; 6145 return 0; 6146} 6147_ACEOF 6148if ac_fn_c_try_compile "$LINENO"; then : 6149 echo conftest.$ac_objext > conftest.lst 6150 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6152 (eval $lt_ar_try) 2>&5 6153 ac_status=$? 6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6155 test $ac_status = 0; } 6156 if test 0 -eq "$ac_status"; then 6157 # Ensure the archiver fails upon bogus file names. 6158 rm -f conftest.$ac_objext libconftest.a 6159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6160 (eval $lt_ar_try) 2>&5 6161 ac_status=$? 6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6163 test $ac_status = 0; } 6164 if test 0 -ne "$ac_status"; then 6165 lt_cv_ar_at_file=@ 6166 fi 6167 fi 6168 rm -f conftest.* libconftest.a 6169 6170fi 6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6172 6173fi 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6175$as_echo "$lt_cv_ar_at_file" >&6; } 6176 6177if test no = "$lt_cv_ar_at_file"; then 6178 archiver_list_spec= 6179else 6180 archiver_list_spec=$lt_cv_ar_at_file 6181fi 6182 6183 6184 6185 6186 6187 6188 6189if test -n "$ac_tool_prefix"; then 6190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6191set dummy ${ac_tool_prefix}strip; ac_word=$2 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6193$as_echo_n "checking for $ac_word... " >&6; } 6194if ${ac_cv_prog_STRIP+:} false; then : 6195 $as_echo_n "(cached) " >&6 6196else 6197 if test -n "$STRIP"; then 6198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6199else 6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6201for as_dir in $PATH 6202do 6203 IFS=$as_save_IFS 6204 test -z "$as_dir" && as_dir=. 6205 for ac_exec_ext in '' $ac_executable_extensions; do 6206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6207 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6209 break 2 6210 fi 6211done 6212 done 6213IFS=$as_save_IFS 6214 6215fi 6216fi 6217STRIP=$ac_cv_prog_STRIP 6218if test -n "$STRIP"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6220$as_echo "$STRIP" >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6223$as_echo "no" >&6; } 6224fi 6225 6226 6227fi 6228if test -z "$ac_cv_prog_STRIP"; then 6229 ac_ct_STRIP=$STRIP 6230 # Extract the first word of "strip", so it can be a program name with args. 6231set dummy strip; ac_word=$2 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6233$as_echo_n "checking for $ac_word... " >&6; } 6234if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 if test -n "$ac_ct_STRIP"; then 6238 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6239else 6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6247 ac_cv_prog_ac_ct_STRIP="strip" 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252 done 6253IFS=$as_save_IFS 6254 6255fi 6256fi 6257ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6258if test -n "$ac_ct_STRIP"; then 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6260$as_echo "$ac_ct_STRIP" >&6; } 6261else 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263$as_echo "no" >&6; } 6264fi 6265 6266 if test "x$ac_ct_STRIP" = x; then 6267 STRIP=":" 6268 else 6269 case $cross_compiling:$ac_tool_warned in 6270yes:) 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6273ac_tool_warned=yes ;; 6274esac 6275 STRIP=$ac_ct_STRIP 6276 fi 6277else 6278 STRIP="$ac_cv_prog_STRIP" 6279fi 6280 6281test -z "$STRIP" && STRIP=: 6282 6283 6284 6285 6286 6287 6288if test -n "$ac_tool_prefix"; then 6289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6290set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6292$as_echo_n "checking for $ac_word... " >&6; } 6293if ${ac_cv_prog_RANLIB+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 if test -n "$RANLIB"; then 6297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6298else 6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300for as_dir in $PATH 6301do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6306 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310done 6311 done 6312IFS=$as_save_IFS 6313 6314fi 6315fi 6316RANLIB=$ac_cv_prog_RANLIB 6317if test -n "$RANLIB"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6319$as_echo "$RANLIB" >&6; } 6320else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322$as_echo "no" >&6; } 6323fi 6324 6325 6326fi 6327if test -z "$ac_cv_prog_RANLIB"; then 6328 ac_ct_RANLIB=$RANLIB 6329 # Extract the first word of "ranlib", so it can be a program name with args. 6330set dummy ranlib; ac_word=$2 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6332$as_echo_n "checking for $ac_word... " >&6; } 6333if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 if test -n "$ac_ct_RANLIB"; then 6337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6338else 6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_exec_ext in '' $ac_executable_extensions; do 6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6346 ac_cv_prog_ac_ct_RANLIB="ranlib" 6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6348 break 2 6349 fi 6350done 6351 done 6352IFS=$as_save_IFS 6353 6354fi 6355fi 6356ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6357if test -n "$ac_ct_RANLIB"; then 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6359$as_echo "$ac_ct_RANLIB" >&6; } 6360else 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362$as_echo "no" >&6; } 6363fi 6364 6365 if test "x$ac_ct_RANLIB" = x; then 6366 RANLIB=":" 6367 else 6368 case $cross_compiling:$ac_tool_warned in 6369yes:) 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6372ac_tool_warned=yes ;; 6373esac 6374 RANLIB=$ac_ct_RANLIB 6375 fi 6376else 6377 RANLIB="$ac_cv_prog_RANLIB" 6378fi 6379 6380test -z "$RANLIB" && RANLIB=: 6381 6382 6383 6384 6385 6386 6387# Determine commands to create old-style static archives. 6388old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6389old_postinstall_cmds='chmod 644 $oldlib' 6390old_postuninstall_cmds= 6391 6392if test -n "$RANLIB"; then 6393 case $host_os in 6394 bitrig* | openbsd*) 6395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6396 ;; 6397 *) 6398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6399 ;; 6400 esac 6401 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6402fi 6403 6404case $host_os in 6405 darwin*) 6406 lock_old_archive_extraction=yes ;; 6407 *) 6408 lock_old_archive_extraction=no ;; 6409esac 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449# If no C compiler was specified, use CC. 6450LTCC=${LTCC-"$CC"} 6451 6452# If no C compiler flags were specified, use CFLAGS. 6453LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6454 6455# Allow CC to be a program name with arguments. 6456compiler=$CC 6457 6458 6459# Check for command to grab the raw symbol name followed by C symbol from nm. 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6461$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6462if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 6466# These are sane defaults that work on at least a few old systems. 6467# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6468 6469# Character class describing NM global symbol codes. 6470symcode='[BCDEGRST]' 6471 6472# Regexp to match symbols that can be accessed directly from C. 6473sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6474 6475# Define system-specific variables. 6476case $host_os in 6477aix*) 6478 symcode='[BCDT]' 6479 ;; 6480cygwin* | mingw* | pw32* | cegcc*) 6481 symcode='[ABCDGISTW]' 6482 ;; 6483hpux*) 6484 if test ia64 = "$host_cpu"; then 6485 symcode='[ABCDEGRST]' 6486 fi 6487 ;; 6488irix* | nonstopux*) 6489 symcode='[BCDEGRST]' 6490 ;; 6491osf*) 6492 symcode='[BCDEGQRST]' 6493 ;; 6494solaris*) 6495 symcode='[BDRT]' 6496 ;; 6497sco3.2v5*) 6498 symcode='[DT]' 6499 ;; 6500sysv4.2uw2*) 6501 symcode='[DT]' 6502 ;; 6503sysv5* | sco5v6* | unixware* | OpenUNIX*) 6504 symcode='[ABDT]' 6505 ;; 6506sysv4) 6507 symcode='[DFNSTU]' 6508 ;; 6509esac 6510 6511# If we're using GNU nm, then use its standard symbol codes. 6512case `$NM -V 2>&1` in 6513*GNU* | *'with BFD'*) 6514 symcode='[ABCDGIRSTW]' ;; 6515esac 6516 6517if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6518 # Gets list of data symbols to import. 6519 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6520 # Adjust the below global symbol transforms to fixup imported variables. 6521 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6522 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6523 lt_c_name_lib_hook="\ 6524 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6525 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6526else 6527 # Disable hooks by default. 6528 lt_cv_sys_global_symbol_to_import= 6529 lt_cdecl_hook= 6530 lt_c_name_hook= 6531 lt_c_name_lib_hook= 6532fi 6533 6534# Transform an extracted symbol line into a proper C declaration. 6535# Some systems (esp. on ia64) link data and code symbols differently, 6536# so use this general approach. 6537lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6538$lt_cdecl_hook\ 6539" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6540" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6541 6542# Transform an extracted symbol line into symbol name and symbol address 6543lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6544$lt_c_name_hook\ 6545" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6546" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6547 6548# Transform an extracted symbol line into symbol name with lib prefix and 6549# symbol address. 6550lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6551$lt_c_name_lib_hook\ 6552" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6553" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6554" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6555 6556# Handle CRLF in mingw tool chain 6557opt_cr= 6558case $build_os in 6559mingw*) 6560 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6561 ;; 6562esac 6563 6564# Try without a prefix underscore, then with it. 6565for ac_symprfx in "" "_"; do 6566 6567 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6568 symxfrm="\\1 $ac_symprfx\\2 \\2" 6569 6570 # Write the raw and C identifiers. 6571 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6572 # Fake it for dumpbin and say T for any non-static function, 6573 # D for any global variable and I for any imported variable. 6574 # Also find C++ and __fastcall symbols from MSVC++, 6575 # which start with @ or ?. 6576 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6577" {last_section=section; section=\$ 3};"\ 6578" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6579" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6580" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6581" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6582" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6583" \$ 0!~/External *\|/{next};"\ 6584" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6585" {if(hide[section]) next};"\ 6586" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6587" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6588" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6589" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6590" ' prfx=^$ac_symprfx" 6591 else 6592 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6593 fi 6594 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6595 6596 # Check to see that the pipe works correctly. 6597 pipe_works=no 6598 6599 rm -f conftest* 6600 cat > conftest.$ac_ext <<_LT_EOF 6601#ifdef __cplusplus 6602extern "C" { 6603#endif 6604char nm_test_var; 6605void nm_test_func(void); 6606void nm_test_func(void){} 6607#ifdef __cplusplus 6608} 6609#endif 6610int main(){nm_test_var='a';nm_test_func();return(0);} 6611_LT_EOF 6612 6613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6614 (eval $ac_compile) 2>&5 6615 ac_status=$? 6616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6617 test $ac_status = 0; }; then 6618 # Now try to grab the symbols. 6619 nlist=conftest.nm 6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6621 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6622 ac_status=$? 6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6624 test $ac_status = 0; } && test -s "$nlist"; then 6625 # Try sorting and uniquifying the output. 6626 if sort "$nlist" | uniq > "$nlist"T; then 6627 mv -f "$nlist"T "$nlist" 6628 else 6629 rm -f "$nlist"T 6630 fi 6631 6632 # Make sure that we snagged all the symbols we need. 6633 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6634 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6635 cat <<_LT_EOF > conftest.$ac_ext 6636/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6637#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6638/* DATA imports from DLLs on WIN32 can't be const, because runtime 6639 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6640# define LT_DLSYM_CONST 6641#elif defined __osf__ 6642/* This system does not cope well with relocations in const data. */ 6643# define LT_DLSYM_CONST 6644#else 6645# define LT_DLSYM_CONST const 6646#endif 6647 6648#ifdef __cplusplus 6649extern "C" { 6650#endif 6651 6652_LT_EOF 6653 # Now generate the symbol file. 6654 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6655 6656 cat <<_LT_EOF >> conftest.$ac_ext 6657 6658/* The mapping between symbol names and symbols. */ 6659LT_DLSYM_CONST struct { 6660 const char *name; 6661 void *address; 6662} 6663lt__PROGRAM__LTX_preloaded_symbols[] = 6664{ 6665 { "@PROGRAM@", (void *) 0 }, 6666_LT_EOF 6667 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6668 cat <<\_LT_EOF >> conftest.$ac_ext 6669 {0, (void *) 0} 6670}; 6671 6672/* This works around a problem in FreeBSD linker */ 6673#ifdef FREEBSD_WORKAROUND 6674static const void *lt_preloaded_setup() { 6675 return lt__PROGRAM__LTX_preloaded_symbols; 6676} 6677#endif 6678 6679#ifdef __cplusplus 6680} 6681#endif 6682_LT_EOF 6683 # Now try linking the two files. 6684 mv conftest.$ac_objext conftstm.$ac_objext 6685 lt_globsym_save_LIBS=$LIBS 6686 lt_globsym_save_CFLAGS=$CFLAGS 6687 LIBS=conftstm.$ac_objext 6688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6690 (eval $ac_link) 2>&5 6691 ac_status=$? 6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6693 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6694 pipe_works=yes 6695 fi 6696 LIBS=$lt_globsym_save_LIBS 6697 CFLAGS=$lt_globsym_save_CFLAGS 6698 else 6699 echo "cannot find nm_test_func in $nlist" >&5 6700 fi 6701 else 6702 echo "cannot find nm_test_var in $nlist" >&5 6703 fi 6704 else 6705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6706 fi 6707 else 6708 echo "$progname: failed program was:" >&5 6709 cat conftest.$ac_ext >&5 6710 fi 6711 rm -rf conftest* conftst* 6712 6713 # Do not use the global_symbol_pipe unless it works. 6714 if test yes = "$pipe_works"; then 6715 break 6716 else 6717 lt_cv_sys_global_symbol_pipe= 6718 fi 6719done 6720 6721fi 6722 6723if test -z "$lt_cv_sys_global_symbol_pipe"; then 6724 lt_cv_sys_global_symbol_to_cdecl= 6725fi 6726if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6728$as_echo "failed" >&6; } 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6731$as_echo "ok" >&6; } 6732fi 6733 6734# Response file support. 6735if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6736 nm_file_list_spec='@' 6737elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6738 nm_file_list_spec='@' 6739fi 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6778$as_echo_n "checking for sysroot... " >&6; } 6779 6780# Check whether --with-sysroot was given. 6781if test "${with_sysroot+set}" = set; then : 6782 withval=$with_sysroot; 6783else 6784 with_sysroot=no 6785fi 6786 6787 6788lt_sysroot= 6789case $with_sysroot in #( 6790 yes) 6791 if test yes = "$GCC"; then 6792 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6793 fi 6794 ;; #( 6795 /*) 6796 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6797 ;; #( 6798 no|'') 6799 ;; #( 6800 *) 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6802$as_echo "$with_sysroot" >&6; } 6803 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6804 ;; 6805esac 6806 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6808$as_echo "${lt_sysroot:-no}" >&6; } 6809 6810 6811 6812 6813 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6815$as_echo_n "checking for a working dd... " >&6; } 6816if ${ac_cv_path_lt_DD+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 printf 0123456789abcdef0123456789abcdef >conftest.i 6820cat conftest.i conftest.i >conftest2.i 6821: ${lt_DD:=$DD} 6822if test -z "$lt_DD"; then 6823 ac_path_lt_DD_found=false 6824 # Loop through the user's path and test for each of PROGNAME-LIST 6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_prog in dd; do 6831 for ac_exec_ext in '' $ac_executable_extensions; do 6832 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6833 as_fn_executable_p "$ac_path_lt_DD" || continue 6834if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6835 cmp -s conftest.i conftest.out \ 6836 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6837fi 6838 $ac_path_lt_DD_found && break 3 6839 done 6840 done 6841 done 6842IFS=$as_save_IFS 6843 if test -z "$ac_cv_path_lt_DD"; then 6844 : 6845 fi 6846else 6847 ac_cv_path_lt_DD=$lt_DD 6848fi 6849 6850rm -f conftest.i conftest2.i conftest.out 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6853$as_echo "$ac_cv_path_lt_DD" >&6; } 6854 6855 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6857$as_echo_n "checking how to truncate binary pipes... " >&6; } 6858if ${lt_cv_truncate_bin+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 printf 0123456789abcdef0123456789abcdef >conftest.i 6862cat conftest.i conftest.i >conftest2.i 6863lt_cv_truncate_bin= 6864if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6865 cmp -s conftest.i conftest.out \ 6866 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6867fi 6868rm -f conftest.i conftest2.i conftest.out 6869test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6870fi 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6872$as_echo "$lt_cv_truncate_bin" >&6; } 6873 6874 6875 6876 6877 6878 6879 6880# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6881func_cc_basename () 6882{ 6883 for cc_temp in $*""; do 6884 case $cc_temp in 6885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6887 \-*) ;; 6888 *) break;; 6889 esac 6890 done 6891 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6892} 6893 6894# Check whether --enable-libtool-lock was given. 6895if test "${enable_libtool_lock+set}" = set; then : 6896 enableval=$enable_libtool_lock; 6897fi 6898 6899test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6900 6901# Some flags need to be propagated to the compiler or linker for good 6902# libtool support. 6903case $host in 6904ia64-*-hpux*) 6905 # Find out what ABI is being produced by ac_compile, and set mode 6906 # options accordingly. 6907 echo 'int i;' > conftest.$ac_ext 6908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6909 (eval $ac_compile) 2>&5 6910 ac_status=$? 6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6912 test $ac_status = 0; }; then 6913 case `/usr/bin/file conftest.$ac_objext` in 6914 *ELF-32*) 6915 HPUX_IA64_MODE=32 6916 ;; 6917 *ELF-64*) 6918 HPUX_IA64_MODE=64 6919 ;; 6920 esac 6921 fi 6922 rm -rf conftest* 6923 ;; 6924*-*-irix6*) 6925 # Find out what ABI is being produced by ac_compile, and set linker 6926 # options accordingly. 6927 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6929 (eval $ac_compile) 2>&5 6930 ac_status=$? 6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6932 test $ac_status = 0; }; then 6933 if test yes = "$lt_cv_prog_gnu_ld"; then 6934 case `/usr/bin/file conftest.$ac_objext` in 6935 *32-bit*) 6936 LD="${LD-ld} -melf32bsmip" 6937 ;; 6938 *N32*) 6939 LD="${LD-ld} -melf32bmipn32" 6940 ;; 6941 *64-bit*) 6942 LD="${LD-ld} -melf64bmip" 6943 ;; 6944 esac 6945 else 6946 case `/usr/bin/file conftest.$ac_objext` in 6947 *32-bit*) 6948 LD="${LD-ld} -32" 6949 ;; 6950 *N32*) 6951 LD="${LD-ld} -n32" 6952 ;; 6953 *64-bit*) 6954 LD="${LD-ld} -64" 6955 ;; 6956 esac 6957 fi 6958 fi 6959 rm -rf conftest* 6960 ;; 6961 6962mips64*-*linux*) 6963 # Find out what ABI is being produced by ac_compile, and set linker 6964 # options accordingly. 6965 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6967 (eval $ac_compile) 2>&5 6968 ac_status=$? 6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6970 test $ac_status = 0; }; then 6971 emul=elf 6972 case `/usr/bin/file conftest.$ac_objext` in 6973 *32-bit*) 6974 emul="${emul}32" 6975 ;; 6976 *64-bit*) 6977 emul="${emul}64" 6978 ;; 6979 esac 6980 case `/usr/bin/file conftest.$ac_objext` in 6981 *MSB*) 6982 emul="${emul}btsmip" 6983 ;; 6984 *LSB*) 6985 emul="${emul}ltsmip" 6986 ;; 6987 esac 6988 case `/usr/bin/file conftest.$ac_objext` in 6989 *N32*) 6990 emul="${emul}n32" 6991 ;; 6992 esac 6993 LD="${LD-ld} -m $emul" 6994 fi 6995 rm -rf conftest* 6996 ;; 6997 6998x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6999s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7000 # Find out what ABI is being produced by ac_compile, and set linker 7001 # options accordingly. Note that the listed cases only cover the 7002 # situations where additional linker options are needed (such as when 7003 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7004 # vice versa); the common cases where no linker options are needed do 7005 # not appear in the list. 7006 echo 'int i;' > conftest.$ac_ext 7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7008 (eval $ac_compile) 2>&5 7009 ac_status=$? 7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7011 test $ac_status = 0; }; then 7012 case `/usr/bin/file conftest.o` in 7013 *32-bit*) 7014 case $host in 7015 x86_64-*kfreebsd*-gnu) 7016 LD="${LD-ld} -m elf_i386_fbsd" 7017 ;; 7018 x86_64-*linux*) 7019 case `/usr/bin/file conftest.o` in 7020 *x86-64*) 7021 LD="${LD-ld} -m elf32_x86_64" 7022 ;; 7023 *) 7024 LD="${LD-ld} -m elf_i386" 7025 ;; 7026 esac 7027 ;; 7028 powerpc64le-*linux*) 7029 LD="${LD-ld} -m elf32lppclinux" 7030 ;; 7031 powerpc64-*linux*) 7032 LD="${LD-ld} -m elf32ppclinux" 7033 ;; 7034 s390x-*linux*) 7035 LD="${LD-ld} -m elf_s390" 7036 ;; 7037 sparc64-*linux*) 7038 LD="${LD-ld} -m elf32_sparc" 7039 ;; 7040 esac 7041 ;; 7042 *64-bit*) 7043 case $host in 7044 x86_64-*kfreebsd*-gnu) 7045 LD="${LD-ld} -m elf_x86_64_fbsd" 7046 ;; 7047 x86_64-*linux*) 7048 LD="${LD-ld} -m elf_x86_64" 7049 ;; 7050 powerpcle-*linux*) 7051 LD="${LD-ld} -m elf64lppc" 7052 ;; 7053 powerpc-*linux*) 7054 LD="${LD-ld} -m elf64ppc" 7055 ;; 7056 s390*-*linux*|s390*-*tpf*) 7057 LD="${LD-ld} -m elf64_s390" 7058 ;; 7059 sparc*-*linux*) 7060 LD="${LD-ld} -m elf64_sparc" 7061 ;; 7062 esac 7063 ;; 7064 esac 7065 fi 7066 rm -rf conftest* 7067 ;; 7068 7069*-*-sco3.2v5*) 7070 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7071 SAVE_CFLAGS=$CFLAGS 7072 CFLAGS="$CFLAGS -belf" 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7074$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7075if ${lt_cv_cc_needs_belf+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 ac_ext=c 7079ac_cpp='$CPP $CPPFLAGS' 7080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7082ac_compiler_gnu=$ac_cv_c_compiler_gnu 7083 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086 7087int 7088main () 7089{ 7090 7091 ; 7092 return 0; 7093} 7094_ACEOF 7095if ac_fn_c_try_link "$LINENO"; then : 7096 lt_cv_cc_needs_belf=yes 7097else 7098 lt_cv_cc_needs_belf=no 7099fi 7100rm -f core conftest.err conftest.$ac_objext \ 7101 conftest$ac_exeext conftest.$ac_ext 7102 ac_ext=c 7103ac_cpp='$CPP $CPPFLAGS' 7104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7106ac_compiler_gnu=$ac_cv_c_compiler_gnu 7107 7108fi 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7110$as_echo "$lt_cv_cc_needs_belf" >&6; } 7111 if test yes != "$lt_cv_cc_needs_belf"; then 7112 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7113 CFLAGS=$SAVE_CFLAGS 7114 fi 7115 ;; 7116*-*solaris*) 7117 # Find out what ABI is being produced by ac_compile, and set linker 7118 # options accordingly. 7119 echo 'int i;' > conftest.$ac_ext 7120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7121 (eval $ac_compile) 2>&5 7122 ac_status=$? 7123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7124 test $ac_status = 0; }; then 7125 case `/usr/bin/file conftest.o` in 7126 *64-bit*) 7127 case $lt_cv_prog_gnu_ld in 7128 yes*) 7129 case $host in 7130 i?86-*-solaris*|x86_64-*-solaris*) 7131 LD="${LD-ld} -m elf_x86_64" 7132 ;; 7133 sparc*-*-solaris*) 7134 LD="${LD-ld} -m elf64_sparc" 7135 ;; 7136 esac 7137 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7138 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7139 LD=${LD-ld}_sol2 7140 fi 7141 ;; 7142 *) 7143 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7144 LD="${LD-ld} -64" 7145 fi 7146 ;; 7147 esac 7148 ;; 7149 esac 7150 fi 7151 rm -rf conftest* 7152 ;; 7153esac 7154 7155need_locks=$enable_libtool_lock 7156 7157if test -n "$ac_tool_prefix"; then 7158 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7159set dummy ${ac_tool_prefix}mt; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$MANIFEST_TOOL"; then 7166 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7175 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180 done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7186if test -n "$MANIFEST_TOOL"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7188$as_echo "$MANIFEST_TOOL" >&6; } 7189else 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 7195fi 7196if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7197 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7198 # Extract the first word of "mt", so it can be a program name with args. 7199set dummy mt; ac_word=$2 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7201$as_echo_n "checking for $ac_word... " >&6; } 7202if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 if test -n "$ac_ct_MANIFEST_TOOL"; then 7206 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7207else 7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7209for as_dir in $PATH 7210do 7211 IFS=$as_save_IFS 7212 test -z "$as_dir" && as_dir=. 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7215 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219done 7220 done 7221IFS=$as_save_IFS 7222 7223fi 7224fi 7225ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7226if test -n "$ac_ct_MANIFEST_TOOL"; then 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7228$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7229else 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7231$as_echo "no" >&6; } 7232fi 7233 7234 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7235 MANIFEST_TOOL=":" 7236 else 7237 case $cross_compiling:$ac_tool_warned in 7238yes:) 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7241ac_tool_warned=yes ;; 7242esac 7243 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7244 fi 7245else 7246 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7247fi 7248 7249test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7251$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7252if ${lt_cv_path_mainfest_tool+:} false; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 lt_cv_path_mainfest_tool=no 7256 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7257 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7258 cat conftest.err >&5 7259 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7260 lt_cv_path_mainfest_tool=yes 7261 fi 7262 rm -f conftest* 7263fi 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7265$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7266if test yes != "$lt_cv_path_mainfest_tool"; then 7267 MANIFEST_TOOL=: 7268fi 7269 7270 7271 7272 7273 7274 7275 case $host_os in 7276 rhapsody* | darwin*) 7277 if test -n "$ac_tool_prefix"; then 7278 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7279set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281$as_echo_n "checking for $ac_word... " >&6; } 7282if ${ac_cv_prog_DSYMUTIL+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 if test -n "$DSYMUTIL"; then 7286 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7287else 7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7289for as_dir in $PATH 7290do 7291 IFS=$as_save_IFS 7292 test -z "$as_dir" && as_dir=. 7293 for ac_exec_ext in '' $ac_executable_extensions; do 7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7295 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7297 break 2 7298 fi 7299done 7300 done 7301IFS=$as_save_IFS 7302 7303fi 7304fi 7305DSYMUTIL=$ac_cv_prog_DSYMUTIL 7306if test -n "$DSYMUTIL"; then 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7308$as_echo "$DSYMUTIL" >&6; } 7309else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311$as_echo "no" >&6; } 7312fi 7313 7314 7315fi 7316if test -z "$ac_cv_prog_DSYMUTIL"; then 7317 ac_ct_DSYMUTIL=$DSYMUTIL 7318 # Extract the first word of "dsymutil", so it can be a program name with args. 7319set dummy dsymutil; ac_word=$2 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 if test -n "$ac_ct_DSYMUTIL"; then 7326 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7335 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339done 7340 done 7341IFS=$as_save_IFS 7342 7343fi 7344fi 7345ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7346if test -n "$ac_ct_DSYMUTIL"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7348$as_echo "$ac_ct_DSYMUTIL" >&6; } 7349else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351$as_echo "no" >&6; } 7352fi 7353 7354 if test "x$ac_ct_DSYMUTIL" = x; then 7355 DSYMUTIL=":" 7356 else 7357 case $cross_compiling:$ac_tool_warned in 7358yes:) 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7361ac_tool_warned=yes ;; 7362esac 7363 DSYMUTIL=$ac_ct_DSYMUTIL 7364 fi 7365else 7366 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7367fi 7368 7369 if test -n "$ac_tool_prefix"; then 7370 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7371set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7373$as_echo_n "checking for $ac_word... " >&6; } 7374if ${ac_cv_prog_NMEDIT+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 if test -n "$NMEDIT"; then 7378 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7379else 7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381for as_dir in $PATH 7382do 7383 IFS=$as_save_IFS 7384 test -z "$as_dir" && as_dir=. 7385 for ac_exec_ext in '' $ac_executable_extensions; do 7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7387 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7389 break 2 7390 fi 7391done 7392 done 7393IFS=$as_save_IFS 7394 7395fi 7396fi 7397NMEDIT=$ac_cv_prog_NMEDIT 7398if test -n "$NMEDIT"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7400$as_echo "$NMEDIT" >&6; } 7401else 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7403$as_echo "no" >&6; } 7404fi 7405 7406 7407fi 7408if test -z "$ac_cv_prog_NMEDIT"; then 7409 ac_ct_NMEDIT=$NMEDIT 7410 # Extract the first word of "nmedit", so it can be a program name with args. 7411set dummy nmedit; ac_word=$2 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413$as_echo_n "checking for $ac_word... " >&6; } 7414if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416else 7417 if test -n "$ac_ct_NMEDIT"; then 7418 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7419else 7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7421for as_dir in $PATH 7422do 7423 IFS=$as_save_IFS 7424 test -z "$as_dir" && as_dir=. 7425 for ac_exec_ext in '' $ac_executable_extensions; do 7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7427 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7429 break 2 7430 fi 7431done 7432 done 7433IFS=$as_save_IFS 7434 7435fi 7436fi 7437ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7438if test -n "$ac_ct_NMEDIT"; then 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7440$as_echo "$ac_ct_NMEDIT" >&6; } 7441else 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7443$as_echo "no" >&6; } 7444fi 7445 7446 if test "x$ac_ct_NMEDIT" = x; then 7447 NMEDIT=":" 7448 else 7449 case $cross_compiling:$ac_tool_warned in 7450yes:) 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7453ac_tool_warned=yes ;; 7454esac 7455 NMEDIT=$ac_ct_NMEDIT 7456 fi 7457else 7458 NMEDIT="$ac_cv_prog_NMEDIT" 7459fi 7460 7461 if test -n "$ac_tool_prefix"; then 7462 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7463set dummy ${ac_tool_prefix}lipo; ac_word=$2 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7465$as_echo_n "checking for $ac_word... " >&6; } 7466if ${ac_cv_prog_LIPO+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 if test -n "$LIPO"; then 7470 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7471else 7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473for as_dir in $PATH 7474do 7475 IFS=$as_save_IFS 7476 test -z "$as_dir" && as_dir=. 7477 for ac_exec_ext in '' $ac_executable_extensions; do 7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7479 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7481 break 2 7482 fi 7483done 7484 done 7485IFS=$as_save_IFS 7486 7487fi 7488fi 7489LIPO=$ac_cv_prog_LIPO 7490if test -n "$LIPO"; then 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7492$as_echo "$LIPO" >&6; } 7493else 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495$as_echo "no" >&6; } 7496fi 7497 7498 7499fi 7500if test -z "$ac_cv_prog_LIPO"; then 7501 ac_ct_LIPO=$LIPO 7502 # Extract the first word of "lipo", so it can be a program name with args. 7503set dummy lipo; ac_word=$2 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7505$as_echo_n "checking for $ac_word... " >&6; } 7506if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508else 7509 if test -n "$ac_ct_LIPO"; then 7510 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7511else 7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513for as_dir in $PATH 7514do 7515 IFS=$as_save_IFS 7516 test -z "$as_dir" && as_dir=. 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7519 ac_cv_prog_ac_ct_LIPO="lipo" 7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523done 7524 done 7525IFS=$as_save_IFS 7526 7527fi 7528fi 7529ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7530if test -n "$ac_ct_LIPO"; then 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7532$as_echo "$ac_ct_LIPO" >&6; } 7533else 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7535$as_echo "no" >&6; } 7536fi 7537 7538 if test "x$ac_ct_LIPO" = x; then 7539 LIPO=":" 7540 else 7541 case $cross_compiling:$ac_tool_warned in 7542yes:) 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7545ac_tool_warned=yes ;; 7546esac 7547 LIPO=$ac_ct_LIPO 7548 fi 7549else 7550 LIPO="$ac_cv_prog_LIPO" 7551fi 7552 7553 if test -n "$ac_tool_prefix"; then 7554 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7555set dummy ${ac_tool_prefix}otool; ac_word=$2 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557$as_echo_n "checking for $ac_word... " >&6; } 7558if ${ac_cv_prog_OTOOL+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 if test -n "$OTOOL"; then 7562 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7563else 7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7571 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576 done 7577IFS=$as_save_IFS 7578 7579fi 7580fi 7581OTOOL=$ac_cv_prog_OTOOL 7582if test -n "$OTOOL"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7584$as_echo "$OTOOL" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590 7591fi 7592if test -z "$ac_cv_prog_OTOOL"; then 7593 ac_ct_OTOOL=$OTOOL 7594 # Extract the first word of "otool", so it can be a program name with args. 7595set dummy otool; ac_word=$2 7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7597$as_echo_n "checking for $ac_word... " >&6; } 7598if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 if test -n "$ac_ct_OTOOL"; then 7602 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7603else 7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605for as_dir in $PATH 7606do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_exec_ext in '' $ac_executable_extensions; do 7610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7611 ac_cv_prog_ac_ct_OTOOL="otool" 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7613 break 2 7614 fi 7615done 7616 done 7617IFS=$as_save_IFS 7618 7619fi 7620fi 7621ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7622if test -n "$ac_ct_OTOOL"; then 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7624$as_echo "$ac_ct_OTOOL" >&6; } 7625else 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7627$as_echo "no" >&6; } 7628fi 7629 7630 if test "x$ac_ct_OTOOL" = x; then 7631 OTOOL=":" 7632 else 7633 case $cross_compiling:$ac_tool_warned in 7634yes:) 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7637ac_tool_warned=yes ;; 7638esac 7639 OTOOL=$ac_ct_OTOOL 7640 fi 7641else 7642 OTOOL="$ac_cv_prog_OTOOL" 7643fi 7644 7645 if test -n "$ac_tool_prefix"; then 7646 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7647set dummy ${ac_tool_prefix}otool64; ac_word=$2 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7649$as_echo_n "checking for $ac_word... " >&6; } 7650if ${ac_cv_prog_OTOOL64+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 if test -n "$OTOOL64"; then 7654 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7655else 7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657for as_dir in $PATH 7658do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_exec_ext in '' $ac_executable_extensions; do 7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7663 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7665 break 2 7666 fi 7667done 7668 done 7669IFS=$as_save_IFS 7670 7671fi 7672fi 7673OTOOL64=$ac_cv_prog_OTOOL64 7674if test -n "$OTOOL64"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7676$as_echo "$OTOOL64" >&6; } 7677else 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7679$as_echo "no" >&6; } 7680fi 7681 7682 7683fi 7684if test -z "$ac_cv_prog_OTOOL64"; then 7685 ac_ct_OTOOL64=$OTOOL64 7686 # Extract the first word of "otool64", so it can be a program name with args. 7687set dummy otool64; ac_word=$2 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7689$as_echo_n "checking for $ac_word... " >&6; } 7690if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 if test -n "$ac_ct_OTOOL64"; then 7694 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7695else 7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7697for as_dir in $PATH 7698do 7699 IFS=$as_save_IFS 7700 test -z "$as_dir" && as_dir=. 7701 for ac_exec_ext in '' $ac_executable_extensions; do 7702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7703 ac_cv_prog_ac_ct_OTOOL64="otool64" 7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7705 break 2 7706 fi 7707done 7708 done 7709IFS=$as_save_IFS 7710 7711fi 7712fi 7713ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7714if test -n "$ac_ct_OTOOL64"; then 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7716$as_echo "$ac_ct_OTOOL64" >&6; } 7717else 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7719$as_echo "no" >&6; } 7720fi 7721 7722 if test "x$ac_ct_OTOOL64" = x; then 7723 OTOOL64=":" 7724 else 7725 case $cross_compiling:$ac_tool_warned in 7726yes:) 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7729ac_tool_warned=yes ;; 7730esac 7731 OTOOL64=$ac_ct_OTOOL64 7732 fi 7733else 7734 OTOOL64="$ac_cv_prog_OTOOL64" 7735fi 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7764$as_echo_n "checking for -single_module linker flag... " >&6; } 7765if ${lt_cv_apple_cc_single_mod+:} false; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 lt_cv_apple_cc_single_mod=no 7769 if test -z "$LT_MULTI_MODULE"; then 7770 # By default we will add the -single_module flag. You can override 7771 # by either setting the environment variable LT_MULTI_MODULE 7772 # non-empty at configure time, or by adding -multi_module to the 7773 # link flags. 7774 rm -rf libconftest.dylib* 7775 echo "int foo(void){return 1;}" > conftest.c 7776 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7777-dynamiclib -Wl,-single_module conftest.c" >&5 7778 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7779 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7780 _lt_result=$? 7781 # If there is a non-empty error log, and "single_module" 7782 # appears in it, assume the flag caused a linker warning 7783 if test -s conftest.err && $GREP single_module conftest.err; then 7784 cat conftest.err >&5 7785 # Otherwise, if the output was created with a 0 exit code from 7786 # the compiler, it worked. 7787 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7788 lt_cv_apple_cc_single_mod=yes 7789 else 7790 cat conftest.err >&5 7791 fi 7792 rm -rf libconftest.dylib* 7793 rm -f conftest.* 7794 fi 7795fi 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7797$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7798 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7800$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7801if ${lt_cv_ld_exported_symbols_list+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 lt_cv_ld_exported_symbols_list=no 7805 save_LDFLAGS=$LDFLAGS 7806 echo "_main" > conftest.sym 7807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810 7811int 7812main () 7813{ 7814 7815 ; 7816 return 0; 7817} 7818_ACEOF 7819if ac_fn_c_try_link "$LINENO"; then : 7820 lt_cv_ld_exported_symbols_list=yes 7821else 7822 lt_cv_ld_exported_symbols_list=no 7823fi 7824rm -f core conftest.err conftest.$ac_objext \ 7825 conftest$ac_exeext conftest.$ac_ext 7826 LDFLAGS=$save_LDFLAGS 7827 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7830$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7831 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7833$as_echo_n "checking for -force_load linker flag... " >&6; } 7834if ${lt_cv_ld_force_load+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 lt_cv_ld_force_load=no 7838 cat > conftest.c << _LT_EOF 7839int forced_loaded() { return 2;} 7840_LT_EOF 7841 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7842 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7843 echo "$AR cru libconftest.a conftest.o" >&5 7844 $AR cru libconftest.a conftest.o 2>&5 7845 echo "$RANLIB libconftest.a" >&5 7846 $RANLIB libconftest.a 2>&5 7847 cat > conftest.c << _LT_EOF 7848int main() { return 0;} 7849_LT_EOF 7850 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7851 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7852 _lt_result=$? 7853 if test -s conftest.err && $GREP force_load conftest.err; then 7854 cat conftest.err >&5 7855 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7856 lt_cv_ld_force_load=yes 7857 else 7858 cat conftest.err >&5 7859 fi 7860 rm -f conftest.err libconftest.a conftest conftest.c 7861 rm -rf conftest.dSYM 7862 7863fi 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7865$as_echo "$lt_cv_ld_force_load" >&6; } 7866 case $host_os in 7867 rhapsody* | darwin1.[012]) 7868 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7869 darwin1.*) 7870 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7871 darwin*) # darwin 5.x on 7872 # if running on 10.5 or later, the deployment target defaults 7873 # to the OS version, if on x86, and 10.4, the deployment 7874 # target defaults to 10.4. Don't you love it? 7875 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7876 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7877 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7878 10.[012][,.]*) 7879 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7880 10.*) 7881 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7882 esac 7883 ;; 7884 esac 7885 if test yes = "$lt_cv_apple_cc_single_mod"; then 7886 _lt_dar_single_mod='$single_module' 7887 fi 7888 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7889 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7890 else 7891 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7892 fi 7893 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7894 _lt_dsymutil='~$DSYMUTIL $lib || :' 7895 else 7896 _lt_dsymutil= 7897 fi 7898 ;; 7899 esac 7900 7901# func_munge_path_list VARIABLE PATH 7902# ----------------------------------- 7903# VARIABLE is name of variable containing _space_ separated list of 7904# directories to be munged by the contents of PATH, which is string 7905# having a format: 7906# "DIR[:DIR]:" 7907# string "DIR[ DIR]" will be prepended to VARIABLE 7908# ":DIR[:DIR]" 7909# string "DIR[ DIR]" will be appended to VARIABLE 7910# "DIRP[:DIRP]::[DIRA:]DIRA" 7911# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7912# "DIRA[ DIRA]" will be appended to VARIABLE 7913# "DIR[:DIR]" 7914# VARIABLE will be replaced by "DIR[ DIR]" 7915func_munge_path_list () 7916{ 7917 case x$2 in 7918 x) 7919 ;; 7920 *:) 7921 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7922 ;; 7923 x:*) 7924 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7925 ;; 7926 *::*) 7927 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7928 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7929 ;; 7930 *) 7931 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7932 ;; 7933 esac 7934} 7935 7936ac_ext=c 7937ac_cpp='$CPP $CPPFLAGS' 7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7940ac_compiler_gnu=$ac_cv_c_compiler_gnu 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7942$as_echo_n "checking how to run the C preprocessor... " >&6; } 7943# On Suns, sometimes $CPP names a directory. 7944if test -n "$CPP" && test -d "$CPP"; then 7945 CPP= 7946fi 7947if test -z "$CPP"; then 7948 if ${ac_cv_prog_CPP+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950else 7951 # Double quotes because CPP needs to be expanded 7952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7953 do 7954 ac_preproc_ok=false 7955for ac_c_preproc_warn_flag in '' yes 7956do 7957 # Use a header file that comes with gcc, so configuring glibc 7958 # with a fresh cross-compiler works. 7959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7960 # <limits.h> exists even on freestanding compilers. 7961 # On the NeXT, cc -E runs the code through the compiler's parser, 7962 # not just through cpp. "Syntax error" is here to catch this case. 7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965#ifdef __STDC__ 7966# include <limits.h> 7967#else 7968# include <assert.h> 7969#endif 7970 Syntax error 7971_ACEOF 7972if ac_fn_c_try_cpp "$LINENO"; then : 7973 7974else 7975 # Broken: fails on valid input. 7976continue 7977fi 7978rm -f conftest.err conftest.i conftest.$ac_ext 7979 7980 # OK, works on sane cases. Now check whether nonexistent headers 7981 # can be detected and how. 7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7983/* end confdefs.h. */ 7984#include <ac_nonexistent.h> 7985_ACEOF 7986if ac_fn_c_try_cpp "$LINENO"; then : 7987 # Broken: success on invalid input. 7988continue 7989else 7990 # Passes both tests. 7991ac_preproc_ok=: 7992break 7993fi 7994rm -f conftest.err conftest.i conftest.$ac_ext 7995 7996done 7997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7998rm -f conftest.i conftest.err conftest.$ac_ext 7999if $ac_preproc_ok; then : 8000 break 8001fi 8002 8003 done 8004 ac_cv_prog_CPP=$CPP 8005 8006fi 8007 CPP=$ac_cv_prog_CPP 8008else 8009 ac_cv_prog_CPP=$CPP 8010fi 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8012$as_echo "$CPP" >&6; } 8013ac_preproc_ok=false 8014for ac_c_preproc_warn_flag in '' yes 8015do 8016 # Use a header file that comes with gcc, so configuring glibc 8017 # with a fresh cross-compiler works. 8018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8019 # <limits.h> exists even on freestanding compilers. 8020 # On the NeXT, cc -E runs the code through the compiler's parser, 8021 # not just through cpp. "Syntax error" is here to catch this case. 8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8023/* end confdefs.h. */ 8024#ifdef __STDC__ 8025# include <limits.h> 8026#else 8027# include <assert.h> 8028#endif 8029 Syntax error 8030_ACEOF 8031if ac_fn_c_try_cpp "$LINENO"; then : 8032 8033else 8034 # Broken: fails on valid input. 8035continue 8036fi 8037rm -f conftest.err conftest.i conftest.$ac_ext 8038 8039 # OK, works on sane cases. Now check whether nonexistent headers 8040 # can be detected and how. 8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042/* end confdefs.h. */ 8043#include <ac_nonexistent.h> 8044_ACEOF 8045if ac_fn_c_try_cpp "$LINENO"; then : 8046 # Broken: success on invalid input. 8047continue 8048else 8049 # Passes both tests. 8050ac_preproc_ok=: 8051break 8052fi 8053rm -f conftest.err conftest.i conftest.$ac_ext 8054 8055done 8056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8057rm -f conftest.i conftest.err conftest.$ac_ext 8058if $ac_preproc_ok; then : 8059 8060else 8061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8063as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8064See \`config.log' for more details" "$LINENO" 5; } 8065fi 8066 8067ac_ext=c 8068ac_cpp='$CPP $CPPFLAGS' 8069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8071ac_compiler_gnu=$ac_cv_c_compiler_gnu 8072 8073 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8075$as_echo_n "checking for ANSI C header files... " >&6; } 8076if ${ac_cv_header_stdc+:} false; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081#include <stdlib.h> 8082#include <stdarg.h> 8083#include <string.h> 8084#include <float.h> 8085 8086int 8087main () 8088{ 8089 8090 ; 8091 return 0; 8092} 8093_ACEOF 8094if ac_fn_c_try_compile "$LINENO"; then : 8095 ac_cv_header_stdc=yes 8096else 8097 ac_cv_header_stdc=no 8098fi 8099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8100 8101if test $ac_cv_header_stdc = yes; then 8102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105#include <string.h> 8106 8107_ACEOF 8108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8109 $EGREP "memchr" >/dev/null 2>&1; then : 8110 8111else 8112 ac_cv_header_stdc=no 8113fi 8114rm -f conftest* 8115 8116fi 8117 8118if test $ac_cv_header_stdc = yes; then 8119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8121/* end confdefs.h. */ 8122#include <stdlib.h> 8123 8124_ACEOF 8125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8126 $EGREP "free" >/dev/null 2>&1; then : 8127 8128else 8129 ac_cv_header_stdc=no 8130fi 8131rm -f conftest* 8132 8133fi 8134 8135if test $ac_cv_header_stdc = yes; then 8136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8137 if test "$cross_compiling" = yes; then : 8138 : 8139else 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141/* end confdefs.h. */ 8142#include <ctype.h> 8143#include <stdlib.h> 8144#if ((' ' & 0x0FF) == 0x020) 8145# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8146# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8147#else 8148# define ISLOWER(c) \ 8149 (('a' <= (c) && (c) <= 'i') \ 8150 || ('j' <= (c) && (c) <= 'r') \ 8151 || ('s' <= (c) && (c) <= 'z')) 8152# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8153#endif 8154 8155#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8156int 8157main () 8158{ 8159 int i; 8160 for (i = 0; i < 256; i++) 8161 if (XOR (islower (i), ISLOWER (i)) 8162 || toupper (i) != TOUPPER (i)) 8163 return 2; 8164 return 0; 8165} 8166_ACEOF 8167if ac_fn_c_try_run "$LINENO"; then : 8168 8169else 8170 ac_cv_header_stdc=no 8171fi 8172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8173 conftest.$ac_objext conftest.beam conftest.$ac_ext 8174fi 8175 8176fi 8177fi 8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8179$as_echo "$ac_cv_header_stdc" >&6; } 8180if test $ac_cv_header_stdc = yes; then 8181 8182$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8183 8184fi 8185 8186# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8188 inttypes.h stdint.h unistd.h 8189do : 8190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8191ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8192" 8193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8194 cat >>confdefs.h <<_ACEOF 8195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8196_ACEOF 8197 8198fi 8199 8200done 8201 8202 8203for ac_header in dlfcn.h 8204do : 8205 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8206" 8207if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8208 cat >>confdefs.h <<_ACEOF 8209#define HAVE_DLFCN_H 1 8210_ACEOF 8211 8212fi 8213 8214done 8215 8216 8217 8218 8219 8220# Set options 8221 8222 8223 8224 enable_dlopen=no 8225 8226 8227 enable_win32_dll=no 8228 8229 8230 # Check whether --enable-shared was given. 8231if test "${enable_shared+set}" = set; then : 8232 enableval=$enable_shared; p=${PACKAGE-default} 8233 case $enableval in 8234 yes) enable_shared=yes ;; 8235 no) enable_shared=no ;; 8236 *) 8237 enable_shared=no 8238 # Look at the argument we got. We use all the common list separators. 8239 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8240 for pkg in $enableval; do 8241 IFS=$lt_save_ifs 8242 if test "X$pkg" = "X$p"; then 8243 enable_shared=yes 8244 fi 8245 done 8246 IFS=$lt_save_ifs 8247 ;; 8248 esac 8249else 8250 enable_shared=yes 8251fi 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 # Check whether --enable-static was given. 8262if test "${enable_static+set}" = set; then : 8263 enableval=$enable_static; p=${PACKAGE-default} 8264 case $enableval in 8265 yes) enable_static=yes ;; 8266 no) enable_static=no ;; 8267 *) 8268 enable_static=no 8269 # Look at the argument we got. We use all the common list separators. 8270 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8271 for pkg in $enableval; do 8272 IFS=$lt_save_ifs 8273 if test "X$pkg" = "X$p"; then 8274 enable_static=yes 8275 fi 8276 done 8277 IFS=$lt_save_ifs 8278 ;; 8279 esac 8280else 8281 enable_static=yes 8282fi 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293# Check whether --with-pic was given. 8294if test "${with_pic+set}" = set; then : 8295 withval=$with_pic; lt_p=${PACKAGE-default} 8296 case $withval in 8297 yes|no) pic_mode=$withval ;; 8298 *) 8299 pic_mode=default 8300 # Look at the argument we got. We use all the common list separators. 8301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8302 for lt_pkg in $withval; do 8303 IFS=$lt_save_ifs 8304 if test "X$lt_pkg" = "X$lt_p"; then 8305 pic_mode=yes 8306 fi 8307 done 8308 IFS=$lt_save_ifs 8309 ;; 8310 esac 8311else 8312 pic_mode=default 8313fi 8314 8315 8316 8317 8318 8319 8320 8321 8322 # Check whether --enable-fast-install was given. 8323if test "${enable_fast_install+set}" = set; then : 8324 enableval=$enable_fast_install; p=${PACKAGE-default} 8325 case $enableval in 8326 yes) enable_fast_install=yes ;; 8327 no) enable_fast_install=no ;; 8328 *) 8329 enable_fast_install=no 8330 # Look at the argument we got. We use all the common list separators. 8331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8332 for pkg in $enableval; do 8333 IFS=$lt_save_ifs 8334 if test "X$pkg" = "X$p"; then 8335 enable_fast_install=yes 8336 fi 8337 done 8338 IFS=$lt_save_ifs 8339 ;; 8340 esac 8341else 8342 enable_fast_install=yes 8343fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 shared_archive_member_spec= 8353case $host,$enable_shared in 8354power*-*-aix[5-9]*,yes) 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8356$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8357 8358# Check whether --with-aix-soname was given. 8359if test "${with_aix_soname+set}" = set; then : 8360 withval=$with_aix_soname; case $withval in 8361 aix|svr4|both) 8362 ;; 8363 *) 8364 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8365 ;; 8366 esac 8367 lt_cv_with_aix_soname=$with_aix_soname 8368else 8369 if ${lt_cv_with_aix_soname+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 lt_cv_with_aix_soname=aix 8373fi 8374 8375 with_aix_soname=$lt_cv_with_aix_soname 8376fi 8377 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8379$as_echo "$with_aix_soname" >&6; } 8380 if test aix != "$with_aix_soname"; then 8381 # For the AIX way of multilib, we name the shared archive member 8382 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8383 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8384 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8385 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8386 if test 64 = "${OBJECT_MODE-32}"; then 8387 shared_archive_member_spec=shr_64 8388 else 8389 shared_archive_member_spec=shr 8390 fi 8391 fi 8392 ;; 8393*) 8394 with_aix_soname=aix 8395 ;; 8396esac 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407# This can be used to rebuild libtool when needed 8408LIBTOOL_DEPS=$ltmain 8409 8410# Always use our own libtool. 8411LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442test -z "$LN_S" && LN_S="ln -s" 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457if test -n "${ZSH_VERSION+set}"; then 8458 setopt NO_GLOB_SUBST 8459fi 8460 8461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8462$as_echo_n "checking for objdir... " >&6; } 8463if ${lt_cv_objdir+:} false; then : 8464 $as_echo_n "(cached) " >&6 8465else 8466 rm -f .libs 2>/dev/null 8467mkdir .libs 2>/dev/null 8468if test -d .libs; then 8469 lt_cv_objdir=.libs 8470else 8471 # MS-DOS does not allow filenames that begin with a dot. 8472 lt_cv_objdir=_libs 8473fi 8474rmdir .libs 2>/dev/null 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8477$as_echo "$lt_cv_objdir" >&6; } 8478objdir=$lt_cv_objdir 8479 8480 8481 8482 8483 8484cat >>confdefs.h <<_ACEOF 8485#define LT_OBJDIR "$lt_cv_objdir/" 8486_ACEOF 8487 8488 8489 8490 8491case $host_os in 8492aix3*) 8493 # AIX sometimes has problems with the GCC collect2 program. For some 8494 # reason, if we set the COLLECT_NAMES environment variable, the problems 8495 # vanish in a puff of smoke. 8496 if test set != "${COLLECT_NAMES+set}"; then 8497 COLLECT_NAMES= 8498 export COLLECT_NAMES 8499 fi 8500 ;; 8501esac 8502 8503# Global variables: 8504ofile=libtool 8505can_build_shared=yes 8506 8507# All known linkers require a '.a' archive for static linking (except MSVC, 8508# which needs '.lib'). 8509libext=a 8510 8511with_gnu_ld=$lt_cv_prog_gnu_ld 8512 8513old_CC=$CC 8514old_CFLAGS=$CFLAGS 8515 8516# Set sane defaults for various variables 8517test -z "$CC" && CC=cc 8518test -z "$LTCC" && LTCC=$CC 8519test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8520test -z "$LD" && LD=ld 8521test -z "$ac_objext" && ac_objext=o 8522 8523func_cc_basename $compiler 8524cc_basename=$func_cc_basename_result 8525 8526 8527# Only perform the check for file, if the check method requires it 8528test -z "$MAGIC_CMD" && MAGIC_CMD=file 8529case $deplibs_check_method in 8530file_magic*) 8531 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8533$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8534if ${lt_cv_path_MAGIC_CMD+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 case $MAGIC_CMD in 8538[\\/*] | ?:[\\/]*) 8539 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8540 ;; 8541*) 8542 lt_save_MAGIC_CMD=$MAGIC_CMD 8543 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8544 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8545 for ac_dir in $ac_dummy; do 8546 IFS=$lt_save_ifs 8547 test -z "$ac_dir" && ac_dir=. 8548 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8549 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8550 if test -n "$file_magic_test_file"; then 8551 case $deplibs_check_method in 8552 "file_magic "*) 8553 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8554 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8556 $EGREP "$file_magic_regex" > /dev/null; then 8557 : 8558 else 8559 cat <<_LT_EOF 1>&2 8560 8561*** Warning: the command libtool uses to detect shared libraries, 8562*** $file_magic_cmd, produces output that libtool cannot recognize. 8563*** The result is that libtool may fail to recognize shared libraries 8564*** as such. This will affect the creation of libtool libraries that 8565*** depend on shared libraries, but programs linked with such libtool 8566*** libraries will work regardless of this problem. Nevertheless, you 8567*** may want to report the problem to your system manager and/or to 8568*** bug-libtool@gnu.org 8569 8570_LT_EOF 8571 fi ;; 8572 esac 8573 fi 8574 break 8575 fi 8576 done 8577 IFS=$lt_save_ifs 8578 MAGIC_CMD=$lt_save_MAGIC_CMD 8579 ;; 8580esac 8581fi 8582 8583MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8584if test -n "$MAGIC_CMD"; then 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8586$as_echo "$MAGIC_CMD" >&6; } 8587else 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8589$as_echo "no" >&6; } 8590fi 8591 8592 8593 8594 8595 8596if test -z "$lt_cv_path_MAGIC_CMD"; then 8597 if test -n "$ac_tool_prefix"; then 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8599$as_echo_n "checking for file... " >&6; } 8600if ${lt_cv_path_MAGIC_CMD+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 case $MAGIC_CMD in 8604[\\/*] | ?:[\\/]*) 8605 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8606 ;; 8607*) 8608 lt_save_MAGIC_CMD=$MAGIC_CMD 8609 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8610 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8611 for ac_dir in $ac_dummy; do 8612 IFS=$lt_save_ifs 8613 test -z "$ac_dir" && ac_dir=. 8614 if test -f "$ac_dir/file"; then 8615 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8616 if test -n "$file_magic_test_file"; then 8617 case $deplibs_check_method in 8618 "file_magic "*) 8619 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8620 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8621 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8622 $EGREP "$file_magic_regex" > /dev/null; then 8623 : 8624 else 8625 cat <<_LT_EOF 1>&2 8626 8627*** Warning: the command libtool uses to detect shared libraries, 8628*** $file_magic_cmd, produces output that libtool cannot recognize. 8629*** The result is that libtool may fail to recognize shared libraries 8630*** as such. This will affect the creation of libtool libraries that 8631*** depend on shared libraries, but programs linked with such libtool 8632*** libraries will work regardless of this problem. Nevertheless, you 8633*** may want to report the problem to your system manager and/or to 8634*** bug-libtool@gnu.org 8635 8636_LT_EOF 8637 fi ;; 8638 esac 8639 fi 8640 break 8641 fi 8642 done 8643 IFS=$lt_save_ifs 8644 MAGIC_CMD=$lt_save_MAGIC_CMD 8645 ;; 8646esac 8647fi 8648 8649MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8650if test -n "$MAGIC_CMD"; then 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8652$as_echo "$MAGIC_CMD" >&6; } 8653else 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8655$as_echo "no" >&6; } 8656fi 8657 8658 8659 else 8660 MAGIC_CMD=: 8661 fi 8662fi 8663 8664 fi 8665 ;; 8666esac 8667 8668# Use C for the default configuration in the libtool script 8669 8670lt_save_CC=$CC 8671ac_ext=c 8672ac_cpp='$CPP $CPPFLAGS' 8673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8675ac_compiler_gnu=$ac_cv_c_compiler_gnu 8676 8677 8678# Source file extension for C test sources. 8679ac_ext=c 8680 8681# Object file extension for compiled C test sources. 8682objext=o 8683objext=$objext 8684 8685# Code to be used in simple compile tests 8686lt_simple_compile_test_code="int some_variable = 0;" 8687 8688# Code to be used in simple link tests 8689lt_simple_link_test_code='int main(){return(0);}' 8690 8691 8692 8693 8694 8695 8696 8697# If no C compiler was specified, use CC. 8698LTCC=${LTCC-"$CC"} 8699 8700# If no C compiler flags were specified, use CFLAGS. 8701LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8702 8703# Allow CC to be a program name with arguments. 8704compiler=$CC 8705 8706# Save the default compiler, since it gets overwritten when the other 8707# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8708compiler_DEFAULT=$CC 8709 8710# save warnings/boilerplate of simple test code 8711ac_outfile=conftest.$ac_objext 8712echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8713eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8714_lt_compiler_boilerplate=`cat conftest.err` 8715$RM conftest* 8716 8717ac_outfile=conftest.$ac_objext 8718echo "$lt_simple_link_test_code" >conftest.$ac_ext 8719eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8720_lt_linker_boilerplate=`cat conftest.err` 8721$RM -r conftest* 8722 8723 8724## CAVEAT EMPTOR: 8725## There is no encapsulation within the following macros, do not change 8726## the running order or otherwise move them around unless you know exactly 8727## what you are doing... 8728if test -n "$compiler"; then 8729 8730lt_prog_compiler_no_builtin_flag= 8731 8732if test yes = "$GCC"; then 8733 case $cc_basename in 8734 nvcc*) 8735 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8736 *) 8737 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8738 esac 8739 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8741$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8742if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 lt_cv_prog_compiler_rtti_exceptions=no 8746 ac_outfile=conftest.$ac_objext 8747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8748 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8749 # Insert the option either (1) after the last *FLAGS variable, or 8750 # (2) before a word containing "conftest.", or (3) at the end. 8751 # Note that $ac_compile itself does not contain backslashes and begins 8752 # with a dollar sign (not a hyphen), so the echo should work correctly. 8753 # The option is referenced via a variable to avoid confusing sed. 8754 lt_compile=`echo "$ac_compile" | $SED \ 8755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8757 -e 's:$: $lt_compiler_flag:'` 8758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8759 (eval "$lt_compile" 2>conftest.err) 8760 ac_status=$? 8761 cat conftest.err >&5 8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8763 if (exit $ac_status) && test -s "$ac_outfile"; then 8764 # The compiler can only warn and ignore the option if not recognized 8765 # So say no if there are warnings other than the usual output. 8766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8768 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8769 lt_cv_prog_compiler_rtti_exceptions=yes 8770 fi 8771 fi 8772 $RM conftest* 8773 8774fi 8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8776$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8777 8778if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8779 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8780else 8781 : 8782fi 8783 8784fi 8785 8786 8787 8788 8789 8790 8791 lt_prog_compiler_wl= 8792lt_prog_compiler_pic= 8793lt_prog_compiler_static= 8794 8795 8796 if test yes = "$GCC"; then 8797 lt_prog_compiler_wl='-Wl,' 8798 lt_prog_compiler_static='-static' 8799 8800 case $host_os in 8801 aix*) 8802 # All AIX code is PIC. 8803 if test ia64 = "$host_cpu"; then 8804 # AIX 5 now supports IA64 processor 8805 lt_prog_compiler_static='-Bstatic' 8806 fi 8807 lt_prog_compiler_pic='-fPIC' 8808 ;; 8809 8810 amigaos*) 8811 case $host_cpu in 8812 powerpc) 8813 # see comment about AmigaOS4 .so support 8814 lt_prog_compiler_pic='-fPIC' 8815 ;; 8816 m68k) 8817 # FIXME: we need at least 68020 code to build shared libraries, but 8818 # adding the '-m68020' flag to GCC prevents building anything better, 8819 # like '-m68040'. 8820 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8821 ;; 8822 esac 8823 ;; 8824 8825 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8826 # PIC is the default for these OSes. 8827 ;; 8828 8829 mingw* | cygwin* | pw32* | os2* | cegcc*) 8830 # This hack is so that the source file can tell whether it is being 8831 # built for inclusion in a dll (and should export symbols for example). 8832 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8833 # (--disable-auto-import) libraries 8834 lt_prog_compiler_pic='-DDLL_EXPORT' 8835 case $host_os in 8836 os2*) 8837 lt_prog_compiler_static='$wl-static' 8838 ;; 8839 esac 8840 ;; 8841 8842 darwin* | rhapsody*) 8843 # PIC is the default on this platform 8844 # Common symbols not allowed in MH_DYLIB files 8845 lt_prog_compiler_pic='-fno-common' 8846 ;; 8847 8848 haiku*) 8849 # PIC is the default for Haiku. 8850 # The "-static" flag exists, but is broken. 8851 lt_prog_compiler_static= 8852 ;; 8853 8854 hpux*) 8855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8857 # sets the default TLS model and affects inlining. 8858 case $host_cpu in 8859 hppa*64*) 8860 # +Z the default 8861 ;; 8862 *) 8863 lt_prog_compiler_pic='-fPIC' 8864 ;; 8865 esac 8866 ;; 8867 8868 interix[3-9]*) 8869 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8870 # Instead, we relocate shared libraries at runtime. 8871 ;; 8872 8873 msdosdjgpp*) 8874 # Just because we use GCC doesn't mean we suddenly get shared libraries 8875 # on systems that don't support them. 8876 lt_prog_compiler_can_build_shared=no 8877 enable_shared=no 8878 ;; 8879 8880 *nto* | *qnx*) 8881 # QNX uses GNU C++, but need to define -shared option too, otherwise 8882 # it will coredump. 8883 lt_prog_compiler_pic='-fPIC -shared' 8884 ;; 8885 8886 sysv4*MP*) 8887 if test -d /usr/nec; then 8888 lt_prog_compiler_pic=-Kconform_pic 8889 fi 8890 ;; 8891 8892 *) 8893 lt_prog_compiler_pic='-fPIC' 8894 ;; 8895 esac 8896 8897 case $cc_basename in 8898 nvcc*) # Cuda Compiler Driver 2.2 8899 lt_prog_compiler_wl='-Xlinker ' 8900 if test -n "$lt_prog_compiler_pic"; then 8901 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8902 fi 8903 ;; 8904 esac 8905 else 8906 # PORTME Check for flag to pass linker flags through the system compiler. 8907 case $host_os in 8908 aix*) 8909 lt_prog_compiler_wl='-Wl,' 8910 if test ia64 = "$host_cpu"; then 8911 # AIX 5 now supports IA64 processor 8912 lt_prog_compiler_static='-Bstatic' 8913 else 8914 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8915 fi 8916 ;; 8917 8918 darwin* | rhapsody*) 8919 # PIC is the default on this platform 8920 # Common symbols not allowed in MH_DYLIB files 8921 lt_prog_compiler_pic='-fno-common' 8922 case $cc_basename in 8923 nagfor*) 8924 # NAG Fortran compiler 8925 lt_prog_compiler_wl='-Wl,-Wl,,' 8926 lt_prog_compiler_pic='-PIC' 8927 lt_prog_compiler_static='-Bstatic' 8928 ;; 8929 esac 8930 ;; 8931 8932 mingw* | cygwin* | pw32* | os2* | cegcc*) 8933 # This hack is so that the source file can tell whether it is being 8934 # built for inclusion in a dll (and should export symbols for example). 8935 lt_prog_compiler_pic='-DDLL_EXPORT' 8936 case $host_os in 8937 os2*) 8938 lt_prog_compiler_static='$wl-static' 8939 ;; 8940 esac 8941 ;; 8942 8943 hpux9* | hpux10* | hpux11*) 8944 lt_prog_compiler_wl='-Wl,' 8945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8946 # not for PA HP-UX. 8947 case $host_cpu in 8948 hppa*64*|ia64*) 8949 # +Z the default 8950 ;; 8951 *) 8952 lt_prog_compiler_pic='+Z' 8953 ;; 8954 esac 8955 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8956 lt_prog_compiler_static='$wl-a ${wl}archive' 8957 ;; 8958 8959 irix5* | irix6* | nonstopux*) 8960 lt_prog_compiler_wl='-Wl,' 8961 # PIC (with -KPIC) is the default. 8962 lt_prog_compiler_static='-non_shared' 8963 ;; 8964 8965 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8966 case $cc_basename in 8967 # old Intel for x86_64, which still supported -KPIC. 8968 ecc*) 8969 lt_prog_compiler_wl='-Wl,' 8970 lt_prog_compiler_pic='-KPIC' 8971 lt_prog_compiler_static='-static' 8972 ;; 8973 # icc used to be incompatible with GCC. 8974 # ICC 10 doesn't accept -KPIC any more. 8975 icc* | ifort*) 8976 lt_prog_compiler_wl='-Wl,' 8977 lt_prog_compiler_pic='-fPIC' 8978 lt_prog_compiler_static='-static' 8979 ;; 8980 # Lahey Fortran 8.1. 8981 lf95*) 8982 lt_prog_compiler_wl='-Wl,' 8983 lt_prog_compiler_pic='--shared' 8984 lt_prog_compiler_static='--static' 8985 ;; 8986 nagfor*) 8987 # NAG Fortran compiler 8988 lt_prog_compiler_wl='-Wl,-Wl,,' 8989 lt_prog_compiler_pic='-PIC' 8990 lt_prog_compiler_static='-Bstatic' 8991 ;; 8992 tcc*) 8993 # Fabrice Bellard et al's Tiny C Compiler 8994 lt_prog_compiler_wl='-Wl,' 8995 lt_prog_compiler_pic='-fPIC' 8996 lt_prog_compiler_static='-static' 8997 ;; 8998 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8999 # Portland Group compilers (*not* the Pentium gcc compiler, 9000 # which looks to be a dead project) 9001 lt_prog_compiler_wl='-Wl,' 9002 lt_prog_compiler_pic='-fpic' 9003 lt_prog_compiler_static='-Bstatic' 9004 ;; 9005 ccc*) 9006 lt_prog_compiler_wl='-Wl,' 9007 # All Alpha code is PIC. 9008 lt_prog_compiler_static='-non_shared' 9009 ;; 9010 xl* | bgxl* | bgf* | mpixl*) 9011 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9012 lt_prog_compiler_wl='-Wl,' 9013 lt_prog_compiler_pic='-qpic' 9014 lt_prog_compiler_static='-qstaticlink' 9015 ;; 9016 *) 9017 case `$CC -V 2>&1 | sed 5q` in 9018 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9019 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9020 lt_prog_compiler_pic='-KPIC' 9021 lt_prog_compiler_static='-Bstatic' 9022 lt_prog_compiler_wl='' 9023 ;; 9024 *Sun\ F* | *Sun*Fortran*) 9025 lt_prog_compiler_pic='-KPIC' 9026 lt_prog_compiler_static='-Bstatic' 9027 lt_prog_compiler_wl='-Qoption ld ' 9028 ;; 9029 *Sun\ C*) 9030 # Sun C 5.9 9031 lt_prog_compiler_pic='-KPIC' 9032 lt_prog_compiler_static='-Bstatic' 9033 lt_prog_compiler_wl='-Wl,' 9034 ;; 9035 *Intel*\ [CF]*Compiler*) 9036 lt_prog_compiler_wl='-Wl,' 9037 lt_prog_compiler_pic='-fPIC' 9038 lt_prog_compiler_static='-static' 9039 ;; 9040 *Portland\ Group*) 9041 lt_prog_compiler_wl='-Wl,' 9042 lt_prog_compiler_pic='-fpic' 9043 lt_prog_compiler_static='-Bstatic' 9044 ;; 9045 esac 9046 ;; 9047 esac 9048 ;; 9049 9050 newsos6) 9051 lt_prog_compiler_pic='-KPIC' 9052 lt_prog_compiler_static='-Bstatic' 9053 ;; 9054 9055 *nto* | *qnx*) 9056 # QNX uses GNU C++, but need to define -shared option too, otherwise 9057 # it will coredump. 9058 lt_prog_compiler_pic='-fPIC -shared' 9059 ;; 9060 9061 osf3* | osf4* | osf5*) 9062 lt_prog_compiler_wl='-Wl,' 9063 # All OSF/1 code is PIC. 9064 lt_prog_compiler_static='-non_shared' 9065 ;; 9066 9067 rdos*) 9068 lt_prog_compiler_static='-non_shared' 9069 ;; 9070 9071 solaris*) 9072 lt_prog_compiler_pic='-KPIC' 9073 lt_prog_compiler_static='-Bstatic' 9074 case $cc_basename in 9075 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9076 lt_prog_compiler_wl='-Qoption ld ';; 9077 *) 9078 lt_prog_compiler_wl='-Wl,';; 9079 esac 9080 ;; 9081 9082 sunos4*) 9083 lt_prog_compiler_wl='-Qoption ld ' 9084 lt_prog_compiler_pic='-PIC' 9085 lt_prog_compiler_static='-Bstatic' 9086 ;; 9087 9088 sysv4 | sysv4.2uw2* | sysv4.3*) 9089 lt_prog_compiler_wl='-Wl,' 9090 lt_prog_compiler_pic='-KPIC' 9091 lt_prog_compiler_static='-Bstatic' 9092 ;; 9093 9094 sysv4*MP*) 9095 if test -d /usr/nec; then 9096 lt_prog_compiler_pic='-Kconform_pic' 9097 lt_prog_compiler_static='-Bstatic' 9098 fi 9099 ;; 9100 9101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9102 lt_prog_compiler_wl='-Wl,' 9103 lt_prog_compiler_pic='-KPIC' 9104 lt_prog_compiler_static='-Bstatic' 9105 ;; 9106 9107 unicos*) 9108 lt_prog_compiler_wl='-Wl,' 9109 lt_prog_compiler_can_build_shared=no 9110 ;; 9111 9112 uts4*) 9113 lt_prog_compiler_pic='-pic' 9114 lt_prog_compiler_static='-Bstatic' 9115 ;; 9116 9117 *) 9118 lt_prog_compiler_can_build_shared=no 9119 ;; 9120 esac 9121 fi 9122 9123case $host_os in 9124 # For platforms that do not support PIC, -DPIC is meaningless: 9125 *djgpp*) 9126 lt_prog_compiler_pic= 9127 ;; 9128 *) 9129 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9130 ;; 9131esac 9132 9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9134$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9135if ${lt_cv_prog_compiler_pic+:} false; then : 9136 $as_echo_n "(cached) " >&6 9137else 9138 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9139fi 9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9141$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9142lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9143 9144# 9145# Check to make sure the PIC flag actually works. 9146# 9147if test -n "$lt_prog_compiler_pic"; then 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9149$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9150if ${lt_cv_prog_compiler_pic_works+:} false; then : 9151 $as_echo_n "(cached) " >&6 9152else 9153 lt_cv_prog_compiler_pic_works=no 9154 ac_outfile=conftest.$ac_objext 9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9157 # Insert the option either (1) after the last *FLAGS variable, or 9158 # (2) before a word containing "conftest.", or (3) at the end. 9159 # Note that $ac_compile itself does not contain backslashes and begins 9160 # with a dollar sign (not a hyphen), so the echo should work correctly. 9161 # The option is referenced via a variable to avoid confusing sed. 9162 lt_compile=`echo "$ac_compile" | $SED \ 9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9165 -e 's:$: $lt_compiler_flag:'` 9166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9167 (eval "$lt_compile" 2>conftest.err) 9168 ac_status=$? 9169 cat conftest.err >&5 9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9171 if (exit $ac_status) && test -s "$ac_outfile"; then 9172 # The compiler can only warn and ignore the option if not recognized 9173 # So say no if there are warnings other than the usual output. 9174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9177 lt_cv_prog_compiler_pic_works=yes 9178 fi 9179 fi 9180 $RM conftest* 9181 9182fi 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9184$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9185 9186if test yes = "$lt_cv_prog_compiler_pic_works"; then 9187 case $lt_prog_compiler_pic in 9188 "" | " "*) ;; 9189 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9190 esac 9191else 9192 lt_prog_compiler_pic= 9193 lt_prog_compiler_can_build_shared=no 9194fi 9195 9196fi 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208# 9209# Check to make sure the static flag actually works. 9210# 9211wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9213$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9214if ${lt_cv_prog_compiler_static_works+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 lt_cv_prog_compiler_static_works=no 9218 save_LDFLAGS=$LDFLAGS 9219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9220 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9222 # The linker can only warn and ignore the option if not recognized 9223 # So say no if there are warnings 9224 if test -s conftest.err; then 9225 # Append any errors to the config.log. 9226 cat conftest.err 1>&5 9227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9229 if diff conftest.exp conftest.er2 >/dev/null; then 9230 lt_cv_prog_compiler_static_works=yes 9231 fi 9232 else 9233 lt_cv_prog_compiler_static_works=yes 9234 fi 9235 fi 9236 $RM -r conftest* 9237 LDFLAGS=$save_LDFLAGS 9238 9239fi 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9241$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9242 9243if test yes = "$lt_cv_prog_compiler_static_works"; then 9244 : 9245else 9246 lt_prog_compiler_static= 9247fi 9248 9249 9250 9251 9252 9253 9254 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9256$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9257if ${lt_cv_prog_compiler_c_o+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 lt_cv_prog_compiler_c_o=no 9261 $RM -r conftest 2>/dev/null 9262 mkdir conftest 9263 cd conftest 9264 mkdir out 9265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9266 9267 lt_compiler_flag="-o out/conftest2.$ac_objext" 9268 # Insert the option either (1) after the last *FLAGS variable, or 9269 # (2) before a word containing "conftest.", or (3) at the end. 9270 # Note that $ac_compile itself does not contain backslashes and begins 9271 # with a dollar sign (not a hyphen), so the echo should work correctly. 9272 lt_compile=`echo "$ac_compile" | $SED \ 9273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9275 -e 's:$: $lt_compiler_flag:'` 9276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9277 (eval "$lt_compile" 2>out/conftest.err) 9278 ac_status=$? 9279 cat out/conftest.err >&5 9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9281 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9282 then 9283 # The compiler can only warn and ignore the option if not recognized 9284 # So say no if there are warnings 9285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9288 lt_cv_prog_compiler_c_o=yes 9289 fi 9290 fi 9291 chmod u+w . 2>&5 9292 $RM conftest* 9293 # SGI C++ compiler will create directory out/ii_files/ for 9294 # template instantiation 9295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9296 $RM out/* && rmdir out 9297 cd .. 9298 $RM -r conftest 9299 $RM conftest* 9300 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9303$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9304 9305 9306 9307 9308 9309 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9311$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9312if ${lt_cv_prog_compiler_c_o+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 lt_cv_prog_compiler_c_o=no 9316 $RM -r conftest 2>/dev/null 9317 mkdir conftest 9318 cd conftest 9319 mkdir out 9320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9321 9322 lt_compiler_flag="-o out/conftest2.$ac_objext" 9323 # Insert the option either (1) after the last *FLAGS variable, or 9324 # (2) before a word containing "conftest.", or (3) at the end. 9325 # Note that $ac_compile itself does not contain backslashes and begins 9326 # with a dollar sign (not a hyphen), so the echo should work correctly. 9327 lt_compile=`echo "$ac_compile" | $SED \ 9328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9330 -e 's:$: $lt_compiler_flag:'` 9331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9332 (eval "$lt_compile" 2>out/conftest.err) 9333 ac_status=$? 9334 cat out/conftest.err >&5 9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9337 then 9338 # The compiler can only warn and ignore the option if not recognized 9339 # So say no if there are warnings 9340 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9341 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9342 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9343 lt_cv_prog_compiler_c_o=yes 9344 fi 9345 fi 9346 chmod u+w . 2>&5 9347 $RM conftest* 9348 # SGI C++ compiler will create directory out/ii_files/ for 9349 # template instantiation 9350 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9351 $RM out/* && rmdir out 9352 cd .. 9353 $RM -r conftest 9354 $RM conftest* 9355 9356fi 9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9358$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9359 9360 9361 9362 9363hard_links=nottested 9364if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9365 # do not overwrite the value of need_locks provided by the user 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9367$as_echo_n "checking if we can lock with hard links... " >&6; } 9368 hard_links=yes 9369 $RM conftest* 9370 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9371 touch conftest.a 9372 ln conftest.a conftest.b 2>&5 || hard_links=no 9373 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9375$as_echo "$hard_links" >&6; } 9376 if test no = "$hard_links"; then 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9378$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9379 need_locks=warn 9380 fi 9381else 9382 need_locks=no 9383fi 9384 9385 9386 9387 9388 9389 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9391$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9392 9393 runpath_var= 9394 allow_undefined_flag= 9395 always_export_symbols=no 9396 archive_cmds= 9397 archive_expsym_cmds= 9398 compiler_needs_object=no 9399 enable_shared_with_static_runtimes=no 9400 export_dynamic_flag_spec= 9401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9402 hardcode_automatic=no 9403 hardcode_direct=no 9404 hardcode_direct_absolute=no 9405 hardcode_libdir_flag_spec= 9406 hardcode_libdir_separator= 9407 hardcode_minus_L=no 9408 hardcode_shlibpath_var=unsupported 9409 inherit_rpath=no 9410 link_all_deplibs=unknown 9411 module_cmds= 9412 module_expsym_cmds= 9413 old_archive_from_new_cmds= 9414 old_archive_from_expsyms_cmds= 9415 thread_safe_flag_spec= 9416 whole_archive_flag_spec= 9417 # include_expsyms should be a list of space-separated symbols to be *always* 9418 # included in the symbol list 9419 include_expsyms= 9420 # exclude_expsyms can be an extended regexp of symbols to exclude 9421 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9422 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9423 # as well as any symbol that contains 'd'. 9424 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9425 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9426 # platforms (ab)use it in PIC code, but their linkers get confused if 9427 # the symbol is explicitly referenced. Since portable code cannot 9428 # rely on this symbol name, it's probably fine to never include it in 9429 # preloaded symbol tables. 9430 # Exclude shared library initialization/finalization symbols. 9431 extract_expsyms_cmds= 9432 9433 case $host_os in 9434 cygwin* | mingw* | pw32* | cegcc*) 9435 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9436 # When not using gcc, we currently assume that we are using 9437 # Microsoft Visual C++. 9438 if test yes != "$GCC"; then 9439 with_gnu_ld=no 9440 fi 9441 ;; 9442 interix*) 9443 # we just hope/assume this is gcc and not c89 (= MSVC++) 9444 with_gnu_ld=yes 9445 ;; 9446 openbsd* | bitrig*) 9447 with_gnu_ld=no 9448 ;; 9449 esac 9450 9451 ld_shlibs=yes 9452 9453 # On some targets, GNU ld is compatible enough with the native linker 9454 # that we're better off using the native interface for both. 9455 lt_use_gnu_ld_interface=no 9456 if test yes = "$with_gnu_ld"; then 9457 case $host_os in 9458 aix*) 9459 # The AIX port of GNU ld has always aspired to compatibility 9460 # with the native linker. However, as the warning in the GNU ld 9461 # block says, versions before 2.19.5* couldn't really create working 9462 # shared libraries, regardless of the interface used. 9463 case `$LD -v 2>&1` in 9464 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9465 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9466 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9467 *) 9468 lt_use_gnu_ld_interface=yes 9469 ;; 9470 esac 9471 ;; 9472 *) 9473 lt_use_gnu_ld_interface=yes 9474 ;; 9475 esac 9476 fi 9477 9478 if test yes = "$lt_use_gnu_ld_interface"; then 9479 # If archive_cmds runs LD, not CC, wlarc should be empty 9480 wlarc='$wl' 9481 9482 # Set some defaults for GNU ld with shared library support. These 9483 # are reset later if shared libraries are not supported. Putting them 9484 # here allows them to be overridden if necessary. 9485 runpath_var=LD_RUN_PATH 9486 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9487 export_dynamic_flag_spec='$wl--export-dynamic' 9488 # ancient GNU ld didn't support --whole-archive et. al. 9489 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9490 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9491 else 9492 whole_archive_flag_spec= 9493 fi 9494 supports_anon_versioning=no 9495 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9496 *GNU\ gold*) supports_anon_versioning=yes ;; 9497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9500 *\ 2.11.*) ;; # other 2.11 versions 9501 *) supports_anon_versioning=yes ;; 9502 esac 9503 9504 # See if GNU ld supports shared libraries. 9505 case $host_os in 9506 aix[3-9]*) 9507 # On AIX/PPC, the GNU linker is very broken 9508 if test ia64 != "$host_cpu"; then 9509 ld_shlibs=no 9510 cat <<_LT_EOF 1>&2 9511 9512*** Warning: the GNU linker, at least up to release 2.19, is reported 9513*** to be unable to reliably create shared libraries on AIX. 9514*** Therefore, libtool is disabling shared libraries support. If you 9515*** really care for shared libraries, you may want to install binutils 9516*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9517*** You will then need to restart the configuration process. 9518 9519_LT_EOF 9520 fi 9521 ;; 9522 9523 amigaos*) 9524 case $host_cpu in 9525 powerpc) 9526 # see comment about AmigaOS4 .so support 9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9528 archive_expsym_cmds='' 9529 ;; 9530 m68k) 9531 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9532 hardcode_libdir_flag_spec='-L$libdir' 9533 hardcode_minus_L=yes 9534 ;; 9535 esac 9536 ;; 9537 9538 beos*) 9539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9540 allow_undefined_flag=unsupported 9541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9542 # support --undefined. This deserves some investigation. FIXME 9543 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9544 else 9545 ld_shlibs=no 9546 fi 9547 ;; 9548 9549 cygwin* | mingw* | pw32* | cegcc*) 9550 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9551 # as there is no search path for DLLs. 9552 hardcode_libdir_flag_spec='-L$libdir' 9553 export_dynamic_flag_spec='$wl--export-all-symbols' 9554 allow_undefined_flag=unsupported 9555 always_export_symbols=no 9556 enable_shared_with_static_runtimes=yes 9557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9558 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9559 9560 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9562 # If the export-symbols file already is a .def file, use it as 9563 # is; otherwise, prepend EXPORTS... 9564 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9565 cp $export_symbols $output_objdir/$soname.def; 9566 else 9567 echo EXPORTS > $output_objdir/$soname.def; 9568 cat $export_symbols >> $output_objdir/$soname.def; 9569 fi~ 9570 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9571 else 9572 ld_shlibs=no 9573 fi 9574 ;; 9575 9576 haiku*) 9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9578 link_all_deplibs=yes 9579 ;; 9580 9581 os2*) 9582 hardcode_libdir_flag_spec='-L$libdir' 9583 hardcode_minus_L=yes 9584 allow_undefined_flag=unsupported 9585 shrext_cmds=.dll 9586 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9587 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9588 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9589 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9590 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9591 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9592 emximp -o $lib $output_objdir/$libname.def' 9593 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9594 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9595 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9596 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9597 prefix_cmds="$SED"~ 9598 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9599 prefix_cmds="$prefix_cmds -e 1d"; 9600 fi~ 9601 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9602 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9603 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9604 emximp -o $lib $output_objdir/$libname.def' 9605 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9606 enable_shared_with_static_runtimes=yes 9607 ;; 9608 9609 interix[3-9]*) 9610 hardcode_direct=no 9611 hardcode_shlibpath_var=no 9612 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9613 export_dynamic_flag_spec='$wl-E' 9614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9615 # Instead, shared libraries are loaded at an image base (0x10000000 by 9616 # default) and relocated if they conflict, which is a slow very memory 9617 # consuming and fragmenting process. To avoid this, we pick a random, 9618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9619 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9621 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9622 ;; 9623 9624 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9625 tmp_diet=no 9626 if test linux-dietlibc = "$host_os"; then 9627 case $cc_basename in 9628 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9629 esac 9630 fi 9631 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9632 && test no = "$tmp_diet" 9633 then 9634 tmp_addflag=' $pic_flag' 9635 tmp_sharedflag='-shared' 9636 case $cc_basename,$host_cpu in 9637 pgcc*) # Portland Group C compiler 9638 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9639 tmp_addflag=' $pic_flag' 9640 ;; 9641 pgf77* | pgf90* | pgf95* | pgfortran*) 9642 # Portland Group f77 and f90 compilers 9643 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9644 tmp_addflag=' $pic_flag -Mnomain' ;; 9645 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9646 tmp_addflag=' -i_dynamic' ;; 9647 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9648 tmp_addflag=' -i_dynamic -nofor_main' ;; 9649 ifc* | ifort*) # Intel Fortran compiler 9650 tmp_addflag=' -nofor_main' ;; 9651 lf95*) # Lahey Fortran 8.1 9652 whole_archive_flag_spec= 9653 tmp_sharedflag='--shared' ;; 9654 nagfor*) # NAGFOR 5.3 9655 tmp_sharedflag='-Wl,-shared' ;; 9656 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9657 tmp_sharedflag='-qmkshrobj' 9658 tmp_addflag= ;; 9659 nvcc*) # Cuda Compiler Driver 2.2 9660 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9661 compiler_needs_object=yes 9662 ;; 9663 esac 9664 case `$CC -V 2>&1 | sed 5q` in 9665 *Sun\ C*) # Sun C 5.9 9666 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9667 compiler_needs_object=yes 9668 tmp_sharedflag='-G' ;; 9669 *Sun\ F*) # Sun Fortran 8.3 9670 tmp_sharedflag='-G' ;; 9671 esac 9672 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9673 9674 if test yes = "$supports_anon_versioning"; then 9675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9677 echo "local: *; };" >> $output_objdir/$libname.ver~ 9678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9679 fi 9680 9681 case $cc_basename in 9682 tcc*) 9683 export_dynamic_flag_spec='-rdynamic' 9684 ;; 9685 xlf* | bgf* | bgxlf* | mpixlf*) 9686 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9687 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9689 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9690 if test yes = "$supports_anon_versioning"; then 9691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9693 echo "local: *; };" >> $output_objdir/$libname.ver~ 9694 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9695 fi 9696 ;; 9697 esac 9698 else 9699 ld_shlibs=no 9700 fi 9701 ;; 9702 9703 netbsd*) 9704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9706 wlarc= 9707 else 9708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9709 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9710 fi 9711 ;; 9712 9713 solaris*) 9714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9715 ld_shlibs=no 9716 cat <<_LT_EOF 1>&2 9717 9718*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9719*** create shared libraries on Solaris systems. Therefore, libtool 9720*** is disabling shared libraries support. We urge you to upgrade GNU 9721*** binutils to release 2.9.1 or newer. Another option is to modify 9722*** your PATH or compiler configuration so that the native linker is 9723*** used, and then restart. 9724 9725_LT_EOF 9726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9728 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9729 else 9730 ld_shlibs=no 9731 fi 9732 ;; 9733 9734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9735 case `$LD -v 2>&1` in 9736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9737 ld_shlibs=no 9738 cat <<_LT_EOF 1>&2 9739 9740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9741*** reliably create shared libraries on SCO systems. Therefore, libtool 9742*** is disabling shared libraries support. We urge you to upgrade GNU 9743*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9744*** your PATH or compiler configuration so that the native linker is 9745*** used, and then restart. 9746 9747_LT_EOF 9748 ;; 9749 *) 9750 # For security reasons, it is highly recommended that you always 9751 # use absolute paths for naming shared libraries, and exclude the 9752 # DT_RUNPATH tag from executables and libraries. But doing so 9753 # requires that you compile everything twice, which is a pain. 9754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9758 else 9759 ld_shlibs=no 9760 fi 9761 ;; 9762 esac 9763 ;; 9764 9765 sunos4*) 9766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9767 wlarc= 9768 hardcode_direct=yes 9769 hardcode_shlibpath_var=no 9770 ;; 9771 9772 *) 9773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9775 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9776 else 9777 ld_shlibs=no 9778 fi 9779 ;; 9780 esac 9781 9782 if test no = "$ld_shlibs"; then 9783 runpath_var= 9784 hardcode_libdir_flag_spec= 9785 export_dynamic_flag_spec= 9786 whole_archive_flag_spec= 9787 fi 9788 else 9789 # PORTME fill in a description of your system's linker (not GNU ld) 9790 case $host_os in 9791 aix3*) 9792 allow_undefined_flag=unsupported 9793 always_export_symbols=yes 9794 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9795 # Note: this linker hardcodes the directories in LIBPATH if there 9796 # are no directories specified by -L. 9797 hardcode_minus_L=yes 9798 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9799 # Neither direct hardcoding nor static linking is supported with a 9800 # broken collect2. 9801 hardcode_direct=unsupported 9802 fi 9803 ;; 9804 9805 aix[4-9]*) 9806 if test ia64 = "$host_cpu"; then 9807 # On IA64, the linker does run time linking by default, so we don't 9808 # have to do anything special. 9809 aix_use_runtimelinking=no 9810 exp_sym_flag='-Bexport' 9811 no_entry_flag= 9812 else 9813 # If we're using GNU nm, then we don't want the "-C" option. 9814 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9815 # Without the "-l" option, or with the "-B" option, AIX nm treats 9816 # weak defined symbols like other global defined symbols, whereas 9817 # GNU nm marks them as "W". 9818 # While the 'weak' keyword is ignored in the Export File, we need 9819 # it in the Import File for the 'aix-soname' feature, so we have 9820 # to replace the "-B" option with "-P" for AIX nm. 9821 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9822 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9823 else 9824 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9825 fi 9826 aix_use_runtimelinking=no 9827 9828 # Test if we are trying to use run time linking or normal 9829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9830 # have runtime linking enabled, and use it for executables. 9831 # For shared libraries, we enable/disable runtime linking 9832 # depending on the kind of the shared library created - 9833 # when "with_aix_soname,aix_use_runtimelinking" is: 9834 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9835 # "aix,yes" lib.so shared, rtl:yes, for executables 9836 # lib.a static archive 9837 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9838 # lib.a(lib.so.V) shared, rtl:no, for executables 9839 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9840 # lib.a(lib.so.V) shared, rtl:no 9841 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9842 # lib.a static archive 9843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9844 for ld_flag in $LDFLAGS; do 9845 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9846 aix_use_runtimelinking=yes 9847 break 9848 fi 9849 done 9850 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9851 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9852 # so we don't have lib.a shared libs to link our executables. 9853 # We have to force runtime linking in this case. 9854 aix_use_runtimelinking=yes 9855 LDFLAGS="$LDFLAGS -Wl,-brtl" 9856 fi 9857 ;; 9858 esac 9859 9860 exp_sym_flag='-bexport' 9861 no_entry_flag='-bnoentry' 9862 fi 9863 9864 # When large executables or shared objects are built, AIX ld can 9865 # have problems creating the table of contents. If linking a library 9866 # or program results in "error TOC overflow" add -mminimal-toc to 9867 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9868 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9869 9870 archive_cmds='' 9871 hardcode_direct=yes 9872 hardcode_direct_absolute=yes 9873 hardcode_libdir_separator=':' 9874 link_all_deplibs=yes 9875 file_list_spec='$wl-f,' 9876 case $with_aix_soname,$aix_use_runtimelinking in 9877 aix,*) ;; # traditional, no import file 9878 svr4,* | *,yes) # use import file 9879 # The Import File defines what to hardcode. 9880 hardcode_direct=no 9881 hardcode_direct_absolute=no 9882 ;; 9883 esac 9884 9885 if test yes = "$GCC"; then 9886 case $host_os in aix4.[012]|aix4.[012].*) 9887 # We only want to do this on AIX 4.2 and lower, the check 9888 # below for broken collect2 doesn't work under 4.3+ 9889 collect2name=`$CC -print-prog-name=collect2` 9890 if test -f "$collect2name" && 9891 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9892 then 9893 # We have reworked collect2 9894 : 9895 else 9896 # We have old collect2 9897 hardcode_direct=unsupported 9898 # It fails to find uninstalled libraries when the uninstalled 9899 # path is not listed in the libpath. Setting hardcode_minus_L 9900 # to unsupported forces relinking 9901 hardcode_minus_L=yes 9902 hardcode_libdir_flag_spec='-L$libdir' 9903 hardcode_libdir_separator= 9904 fi 9905 ;; 9906 esac 9907 shared_flag='-shared' 9908 if test yes = "$aix_use_runtimelinking"; then 9909 shared_flag="$shared_flag "'$wl-G' 9910 fi 9911 # Need to ensure runtime linking is disabled for the traditional 9912 # shared library, or the linker may eventually find shared libraries 9913 # /with/ Import File - we do not want to mix them. 9914 shared_flag_aix='-shared' 9915 shared_flag_svr4='-shared $wl-G' 9916 else 9917 # not using gcc 9918 if test ia64 = "$host_cpu"; then 9919 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9920 # chokes on -Wl,-G. The following line is correct: 9921 shared_flag='-G' 9922 else 9923 if test yes = "$aix_use_runtimelinking"; then 9924 shared_flag='$wl-G' 9925 else 9926 shared_flag='$wl-bM:SRE' 9927 fi 9928 shared_flag_aix='$wl-bM:SRE' 9929 shared_flag_svr4='$wl-G' 9930 fi 9931 fi 9932 9933 export_dynamic_flag_spec='$wl-bexpall' 9934 # It seems that -bexpall does not export symbols beginning with 9935 # underscore (_), so it is better to generate a list of symbols to export. 9936 always_export_symbols=yes 9937 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9938 # Warning - without using the other runtime loading flags (-brtl), 9939 # -berok will link without error, but may produce a broken library. 9940 allow_undefined_flag='-berok' 9941 # Determine the default libpath from the value encoded in an 9942 # empty executable. 9943 if test set = "${lt_cv_aix_libpath+set}"; then 9944 aix_libpath=$lt_cv_aix_libpath 9945else 9946 if ${lt_cv_aix_libpath_+:} false; then : 9947 $as_echo_n "(cached) " >&6 9948else 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950/* end confdefs.h. */ 9951 9952int 9953main () 9954{ 9955 9956 ; 9957 return 0; 9958} 9959_ACEOF 9960if ac_fn_c_try_link "$LINENO"; then : 9961 9962 lt_aix_libpath_sed=' 9963 /Import File Strings/,/^$/ { 9964 /^0/ { 9965 s/^0 *\([^ ]*\) *$/\1/ 9966 p 9967 } 9968 }' 9969 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9970 # Check for a 64-bit object if we didn't find anything. 9971 if test -z "$lt_cv_aix_libpath_"; then 9972 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9973 fi 9974fi 9975rm -f core conftest.err conftest.$ac_objext \ 9976 conftest$ac_exeext conftest.$ac_ext 9977 if test -z "$lt_cv_aix_libpath_"; then 9978 lt_cv_aix_libpath_=/usr/lib:/lib 9979 fi 9980 9981fi 9982 9983 aix_libpath=$lt_cv_aix_libpath_ 9984fi 9985 9986 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9987 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9988 else 9989 if test ia64 = "$host_cpu"; then 9990 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9991 allow_undefined_flag="-z nodefs" 9992 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 9993 else 9994 # Determine the default libpath from the value encoded in an 9995 # empty executable. 9996 if test set = "${lt_cv_aix_libpath+set}"; then 9997 aix_libpath=$lt_cv_aix_libpath 9998else 9999 if ${lt_cv_aix_libpath_+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004 10005int 10006main () 10007{ 10008 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013if ac_fn_c_try_link "$LINENO"; then : 10014 10015 lt_aix_libpath_sed=' 10016 /Import File Strings/,/^$/ { 10017 /^0/ { 10018 s/^0 *\([^ ]*\) *$/\1/ 10019 p 10020 } 10021 }' 10022 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10023 # Check for a 64-bit object if we didn't find anything. 10024 if test -z "$lt_cv_aix_libpath_"; then 10025 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10026 fi 10027fi 10028rm -f core conftest.err conftest.$ac_objext \ 10029 conftest$ac_exeext conftest.$ac_ext 10030 if test -z "$lt_cv_aix_libpath_"; then 10031 lt_cv_aix_libpath_=/usr/lib:/lib 10032 fi 10033 10034fi 10035 10036 aix_libpath=$lt_cv_aix_libpath_ 10037fi 10038 10039 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10040 # Warning - without using the other run time loading flags, 10041 # -berok will link without error, but may produce a broken library. 10042 no_undefined_flag=' $wl-bernotok' 10043 allow_undefined_flag=' $wl-berok' 10044 if test yes = "$with_gnu_ld"; then 10045 # We only use this code for GNU lds that support --whole-archive. 10046 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10047 else 10048 # Exported symbols can be pulled into shared objects from archives 10049 whole_archive_flag_spec='$convenience' 10050 fi 10051 archive_cmds_need_lc=yes 10052 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10053 # -brtl affects multiple linker settings, -berok does not and is overridden later 10054 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10055 if test svr4 != "$with_aix_soname"; then 10056 # This is similar to how AIX traditionally builds its shared libraries. 10057 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10058 fi 10059 if test aix != "$with_aix_soname"; then 10060 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10061 else 10062 # used by -dlpreopen to get the symbols 10063 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10064 fi 10065 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10066 fi 10067 fi 10068 ;; 10069 10070 amigaos*) 10071 case $host_cpu in 10072 powerpc) 10073 # see comment about AmigaOS4 .so support 10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10075 archive_expsym_cmds='' 10076 ;; 10077 m68k) 10078 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10079 hardcode_libdir_flag_spec='-L$libdir' 10080 hardcode_minus_L=yes 10081 ;; 10082 esac 10083 ;; 10084 10085 bsdi[45]*) 10086 export_dynamic_flag_spec=-rdynamic 10087 ;; 10088 10089 cygwin* | mingw* | pw32* | cegcc*) 10090 # When not using gcc, we currently assume that we are using 10091 # Microsoft Visual C++. 10092 # hardcode_libdir_flag_spec is actually meaningless, as there is 10093 # no search path for DLLs. 10094 case $cc_basename in 10095 cl*) 10096 # Native MSVC 10097 hardcode_libdir_flag_spec=' ' 10098 allow_undefined_flag=unsupported 10099 always_export_symbols=yes 10100 file_list_spec='@' 10101 # Tell ltmain to make .lib files, not .a files. 10102 libext=lib 10103 # Tell ltmain to make .dll files, not .so files. 10104 shrext_cmds=.dll 10105 # FIXME: Setting linknames here is a bad hack. 10106 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10107 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10108 cp "$export_symbols" "$output_objdir/$soname.def"; 10109 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10110 else 10111 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10112 fi~ 10113 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10114 linknames=' 10115 # The linker will not automatically build a static lib if we build a DLL. 10116 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10117 enable_shared_with_static_runtimes=yes 10118 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10120 # Don't use ranlib 10121 old_postinstall_cmds='chmod 644 $oldlib' 10122 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10123 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10124 case $lt_outputfile in 10125 *.exe|*.EXE) ;; 10126 *) 10127 lt_outputfile=$lt_outputfile.exe 10128 lt_tool_outputfile=$lt_tool_outputfile.exe 10129 ;; 10130 esac~ 10131 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10132 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10133 $RM "$lt_outputfile.manifest"; 10134 fi' 10135 ;; 10136 *) 10137 # Assume MSVC wrapper 10138 hardcode_libdir_flag_spec=' ' 10139 allow_undefined_flag=unsupported 10140 # Tell ltmain to make .lib files, not .a files. 10141 libext=lib 10142 # Tell ltmain to make .dll files, not .so files. 10143 shrext_cmds=.dll 10144 # FIXME: Setting linknames here is a bad hack. 10145 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10146 # The linker will automatically build a .lib file if we build a DLL. 10147 old_archive_from_new_cmds='true' 10148 # FIXME: Should let the user specify the lib program. 10149 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10150 enable_shared_with_static_runtimes=yes 10151 ;; 10152 esac 10153 ;; 10154 10155 darwin* | rhapsody*) 10156 10157 10158 archive_cmds_need_lc=no 10159 hardcode_direct=no 10160 hardcode_automatic=yes 10161 hardcode_shlibpath_var=unsupported 10162 if test yes = "$lt_cv_ld_force_load"; then 10163 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10164 10165 else 10166 whole_archive_flag_spec='' 10167 fi 10168 link_all_deplibs=yes 10169 allow_undefined_flag=$_lt_dar_allow_undefined 10170 case $cc_basename in 10171 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10172 *) _lt_dar_can_shared=$GCC ;; 10173 esac 10174 if test yes = "$_lt_dar_can_shared"; then 10175 output_verbose_link_cmd=func_echo_all 10176 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10177 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10178 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 10179 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10180 10181 else 10182 ld_shlibs=no 10183 fi 10184 10185 ;; 10186 10187 dgux*) 10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10189 hardcode_libdir_flag_spec='-L$libdir' 10190 hardcode_shlibpath_var=no 10191 ;; 10192 10193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10194 # support. Future versions do this automatically, but an explicit c++rt0.o 10195 # does not break anything, and helps significantly (at the cost of a little 10196 # extra space). 10197 freebsd2.2*) 10198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10199 hardcode_libdir_flag_spec='-R$libdir' 10200 hardcode_direct=yes 10201 hardcode_shlibpath_var=no 10202 ;; 10203 10204 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10205 freebsd2.*) 10206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10207 hardcode_direct=yes 10208 hardcode_minus_L=yes 10209 hardcode_shlibpath_var=no 10210 ;; 10211 10212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10213 freebsd* | dragonfly*) 10214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10215 hardcode_libdir_flag_spec='-R$libdir' 10216 hardcode_direct=yes 10217 hardcode_shlibpath_var=no 10218 ;; 10219 10220 hpux9*) 10221 if test yes = "$GCC"; then 10222 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10223 else 10224 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10225 fi 10226 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10227 hardcode_libdir_separator=: 10228 hardcode_direct=yes 10229 10230 # hardcode_minus_L: Not really in the search PATH, 10231 # but as the default location of the library. 10232 hardcode_minus_L=yes 10233 export_dynamic_flag_spec='$wl-E' 10234 ;; 10235 10236 hpux10*) 10237 if test yes,no = "$GCC,$with_gnu_ld"; then 10238 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10239 else 10240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10241 fi 10242 if test no = "$with_gnu_ld"; then 10243 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10244 hardcode_libdir_separator=: 10245 hardcode_direct=yes 10246 hardcode_direct_absolute=yes 10247 export_dynamic_flag_spec='$wl-E' 10248 # hardcode_minus_L: Not really in the search PATH, 10249 # but as the default location of the library. 10250 hardcode_minus_L=yes 10251 fi 10252 ;; 10253 10254 hpux11*) 10255 if test yes,no = "$GCC,$with_gnu_ld"; then 10256 case $host_cpu in 10257 hppa*64*) 10258 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10259 ;; 10260 ia64*) 10261 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10262 ;; 10263 *) 10264 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10265 ;; 10266 esac 10267 else 10268 case $host_cpu in 10269 hppa*64*) 10270 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10271 ;; 10272 ia64*) 10273 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10274 ;; 10275 *) 10276 10277 # Older versions of the 11.00 compiler do not understand -b yet 10278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10280$as_echo_n "checking if $CC understands -b... " >&6; } 10281if ${lt_cv_prog_compiler__b+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283else 10284 lt_cv_prog_compiler__b=no 10285 save_LDFLAGS=$LDFLAGS 10286 LDFLAGS="$LDFLAGS -b" 10287 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10289 # The linker can only warn and ignore the option if not recognized 10290 # So say no if there are warnings 10291 if test -s conftest.err; then 10292 # Append any errors to the config.log. 10293 cat conftest.err 1>&5 10294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10296 if diff conftest.exp conftest.er2 >/dev/null; then 10297 lt_cv_prog_compiler__b=yes 10298 fi 10299 else 10300 lt_cv_prog_compiler__b=yes 10301 fi 10302 fi 10303 $RM -r conftest* 10304 LDFLAGS=$save_LDFLAGS 10305 10306fi 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10308$as_echo "$lt_cv_prog_compiler__b" >&6; } 10309 10310if test yes = "$lt_cv_prog_compiler__b"; then 10311 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10312else 10313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10314fi 10315 10316 ;; 10317 esac 10318 fi 10319 if test no = "$with_gnu_ld"; then 10320 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10321 hardcode_libdir_separator=: 10322 10323 case $host_cpu in 10324 hppa*64*|ia64*) 10325 hardcode_direct=no 10326 hardcode_shlibpath_var=no 10327 ;; 10328 *) 10329 hardcode_direct=yes 10330 hardcode_direct_absolute=yes 10331 export_dynamic_flag_spec='$wl-E' 10332 10333 # hardcode_minus_L: Not really in the search PATH, 10334 # but as the default location of the library. 10335 hardcode_minus_L=yes 10336 ;; 10337 esac 10338 fi 10339 ;; 10340 10341 irix5* | irix6* | nonstopux*) 10342 if test yes = "$GCC"; then 10343 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10344 # Try to use the -exported_symbol ld option, if it does not 10345 # work, assume that -exports_file does not work either and 10346 # implicitly export all symbols. 10347 # This should be the same for all languages, so no per-tag cache variable. 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10349$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10350if ${lt_cv_irix_exported_symbol+:} false; then : 10351 $as_echo_n "(cached) " >&6 10352else 10353 save_LDFLAGS=$LDFLAGS 10354 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357int foo (void) { return 0; } 10358_ACEOF 10359if ac_fn_c_try_link "$LINENO"; then : 10360 lt_cv_irix_exported_symbol=yes 10361else 10362 lt_cv_irix_exported_symbol=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext \ 10365 conftest$ac_exeext conftest.$ac_ext 10366 LDFLAGS=$save_LDFLAGS 10367fi 10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10369$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10370 if test yes = "$lt_cv_irix_exported_symbol"; then 10371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10372 fi 10373 else 10374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10376 fi 10377 archive_cmds_need_lc='no' 10378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10379 hardcode_libdir_separator=: 10380 inherit_rpath=yes 10381 link_all_deplibs=yes 10382 ;; 10383 10384 linux*) 10385 case $cc_basename in 10386 tcc*) 10387 # Fabrice Bellard et al's Tiny C Compiler 10388 ld_shlibs=yes 10389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10390 ;; 10391 esac 10392 ;; 10393 10394 netbsd*) 10395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10397 else 10398 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10399 fi 10400 hardcode_libdir_flag_spec='-R$libdir' 10401 hardcode_direct=yes 10402 hardcode_shlibpath_var=no 10403 ;; 10404 10405 newsos6) 10406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10407 hardcode_direct=yes 10408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10409 hardcode_libdir_separator=: 10410 hardcode_shlibpath_var=no 10411 ;; 10412 10413 *nto* | *qnx*) 10414 ;; 10415 10416 openbsd* | bitrig*) 10417 if test -f /usr/libexec/ld.so; then 10418 hardcode_direct=yes 10419 hardcode_shlibpath_var=no 10420 hardcode_direct_absolute=yes 10421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10423 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10424 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10425 export_dynamic_flag_spec='$wl-E' 10426 else 10427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10428 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10429 fi 10430 else 10431 ld_shlibs=no 10432 fi 10433 ;; 10434 10435 os2*) 10436 hardcode_libdir_flag_spec='-L$libdir' 10437 hardcode_minus_L=yes 10438 allow_undefined_flag=unsupported 10439 shrext_cmds=.dll 10440 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10441 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10442 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10443 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10444 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10445 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10446 emximp -o $lib $output_objdir/$libname.def' 10447 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10448 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10449 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10450 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10451 prefix_cmds="$SED"~ 10452 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10453 prefix_cmds="$prefix_cmds -e 1d"; 10454 fi~ 10455 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10456 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10457 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10458 emximp -o $lib $output_objdir/$libname.def' 10459 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10460 enable_shared_with_static_runtimes=yes 10461 ;; 10462 10463 osf3*) 10464 if test yes = "$GCC"; then 10465 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10466 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10467 else 10468 allow_undefined_flag=' -expect_unresolved \*' 10469 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10470 fi 10471 archive_cmds_need_lc='no' 10472 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10473 hardcode_libdir_separator=: 10474 ;; 10475 10476 osf4* | osf5*) # as osf3* with the addition of -msym flag 10477 if test yes = "$GCC"; then 10478 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10479 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10480 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10481 else 10482 allow_undefined_flag=' -expect_unresolved \*' 10483 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10484 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10485 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10486 10487 # Both c and cxx compiler support -rpath directly 10488 hardcode_libdir_flag_spec='-rpath $libdir' 10489 fi 10490 archive_cmds_need_lc='no' 10491 hardcode_libdir_separator=: 10492 ;; 10493 10494 solaris*) 10495 no_undefined_flag=' -z defs' 10496 if test yes = "$GCC"; then 10497 wlarc='$wl' 10498 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10500 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10501 else 10502 case `$CC -V 2>&1` in 10503 *"Compilers 5.0"*) 10504 wlarc='' 10505 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10507 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10508 ;; 10509 *) 10510 wlarc='$wl' 10511 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10513 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10514 ;; 10515 esac 10516 fi 10517 hardcode_libdir_flag_spec='-R$libdir' 10518 hardcode_shlibpath_var=no 10519 case $host_os in 10520 solaris2.[0-5] | solaris2.[0-5].*) ;; 10521 *) 10522 # The compiler driver will combine and reorder linker options, 10523 # but understands '-z linker_flag'. GCC discards it without '$wl', 10524 # but is careful enough not to reorder. 10525 # Supported since Solaris 2.6 (maybe 2.5.1?) 10526 if test yes = "$GCC"; then 10527 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10528 else 10529 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10530 fi 10531 ;; 10532 esac 10533 link_all_deplibs=yes 10534 ;; 10535 10536 sunos4*) 10537 if test sequent = "$host_vendor"; then 10538 # Use $CC to link under sequent, because it throws in some extra .o 10539 # files that make .init and .fini sections work. 10540 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10541 else 10542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10543 fi 10544 hardcode_libdir_flag_spec='-L$libdir' 10545 hardcode_direct=yes 10546 hardcode_minus_L=yes 10547 hardcode_shlibpath_var=no 10548 ;; 10549 10550 sysv4) 10551 case $host_vendor in 10552 sni) 10553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10554 hardcode_direct=yes # is this really true??? 10555 ;; 10556 siemens) 10557 ## LD is ld it makes a PLAMLIB 10558 ## CC just makes a GrossModule. 10559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10560 reload_cmds='$CC -r -o $output$reload_objs' 10561 hardcode_direct=no 10562 ;; 10563 motorola) 10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10566 ;; 10567 esac 10568 runpath_var='LD_RUN_PATH' 10569 hardcode_shlibpath_var=no 10570 ;; 10571 10572 sysv4.3*) 10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10574 hardcode_shlibpath_var=no 10575 export_dynamic_flag_spec='-Bexport' 10576 ;; 10577 10578 sysv4*MP*) 10579 if test -d /usr/nec; then 10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10581 hardcode_shlibpath_var=no 10582 runpath_var=LD_RUN_PATH 10583 hardcode_runpath_var=yes 10584 ld_shlibs=yes 10585 fi 10586 ;; 10587 10588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10589 no_undefined_flag='$wl-z,text' 10590 archive_cmds_need_lc=no 10591 hardcode_shlibpath_var=no 10592 runpath_var='LD_RUN_PATH' 10593 10594 if test yes = "$GCC"; then 10595 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10596 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10597 else 10598 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10599 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10600 fi 10601 ;; 10602 10603 sysv5* | sco3.2v5* | sco5v6*) 10604 # Note: We CANNOT use -z defs as we might desire, because we do not 10605 # link with -lc, and that would cause any symbols used from libc to 10606 # always be unresolved, which means just about no library would 10607 # ever link correctly. If we're not using GNU ld we use -z text 10608 # though, which does catch some bad symbols but isn't as heavy-handed 10609 # as -z defs. 10610 no_undefined_flag='$wl-z,text' 10611 allow_undefined_flag='$wl-z,nodefs' 10612 archive_cmds_need_lc=no 10613 hardcode_shlibpath_var=no 10614 hardcode_libdir_flag_spec='$wl-R,$libdir' 10615 hardcode_libdir_separator=':' 10616 link_all_deplibs=yes 10617 export_dynamic_flag_spec='$wl-Bexport' 10618 runpath_var='LD_RUN_PATH' 10619 10620 if test yes = "$GCC"; then 10621 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10622 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10623 else 10624 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10625 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10626 fi 10627 ;; 10628 10629 uts4*) 10630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10631 hardcode_libdir_flag_spec='-L$libdir' 10632 hardcode_shlibpath_var=no 10633 ;; 10634 10635 *) 10636 ld_shlibs=no 10637 ;; 10638 esac 10639 10640 if test sni = "$host_vendor"; then 10641 case $host in 10642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10643 export_dynamic_flag_spec='$wl-Blargedynsym' 10644 ;; 10645 esac 10646 fi 10647 fi 10648 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10650$as_echo "$ld_shlibs" >&6; } 10651test no = "$ld_shlibs" && can_build_shared=no 10652 10653with_gnu_ld=$with_gnu_ld 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669# 10670# Do we need to explicitly link libc? 10671# 10672case "x$archive_cmds_need_lc" in 10673x|xyes) 10674 # Assume -lc should be added 10675 archive_cmds_need_lc=yes 10676 10677 if test yes,yes = "$GCC,$enable_shared"; then 10678 case $archive_cmds in 10679 *'~'*) 10680 # FIXME: we may have to deal with multi-command sequences. 10681 ;; 10682 '$CC '*) 10683 # Test whether the compiler implicitly links with -lc since on some 10684 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10685 # to ld, don't add -lc before -lgcc. 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10687$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10688if ${lt_cv_archive_cmds_need_lc+:} false; then : 10689 $as_echo_n "(cached) " >&6 10690else 10691 $RM conftest* 10692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10693 10694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10695 (eval $ac_compile) 2>&5 10696 ac_status=$? 10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10698 test $ac_status = 0; } 2>conftest.err; then 10699 soname=conftest 10700 lib=conftest 10701 libobjs=conftest.$ac_objext 10702 deplibs= 10703 wl=$lt_prog_compiler_wl 10704 pic_flag=$lt_prog_compiler_pic 10705 compiler_flags=-v 10706 linker_flags=-v 10707 verstring= 10708 output_objdir=. 10709 libname=conftest 10710 lt_save_allow_undefined_flag=$allow_undefined_flag 10711 allow_undefined_flag= 10712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10713 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10714 ac_status=$? 10715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10716 test $ac_status = 0; } 10717 then 10718 lt_cv_archive_cmds_need_lc=no 10719 else 10720 lt_cv_archive_cmds_need_lc=yes 10721 fi 10722 allow_undefined_flag=$lt_save_allow_undefined_flag 10723 else 10724 cat conftest.err 1>&5 10725 fi 10726 $RM conftest* 10727 10728fi 10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10730$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10731 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10732 ;; 10733 esac 10734 fi 10735 ;; 10736esac 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10890$as_echo_n "checking dynamic linker characteristics... " >&6; } 10891 10892if test yes = "$GCC"; then 10893 case $host_os in 10894 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10895 *) lt_awk_arg='/^libraries:/' ;; 10896 esac 10897 case $host_os in 10898 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10899 *) lt_sed_strip_eq='s|=/|/|g' ;; 10900 esac 10901 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10902 case $lt_search_path_spec in 10903 *\;*) 10904 # if the path contains ";" then we assume it to be the separator 10905 # otherwise default to the standard path separator (i.e. ":") - it is 10906 # assumed that no part of a normal pathname contains ";" but that should 10907 # okay in the real world where ";" in dirpaths is itself problematic. 10908 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10909 ;; 10910 *) 10911 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10912 ;; 10913 esac 10914 # Ok, now we have the path, separated by spaces, we can step through it 10915 # and add multilib dir if necessary... 10916 lt_tmp_lt_search_path_spec= 10917 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10918 # ...but if some path component already ends with the multilib dir we assume 10919 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10920 case "$lt_multi_os_dir; $lt_search_path_spec " in 10921 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10922 lt_multi_os_dir= 10923 ;; 10924 esac 10925 for lt_sys_path in $lt_search_path_spec; do 10926 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10927 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10928 elif test -n "$lt_multi_os_dir"; then 10929 test -d "$lt_sys_path" && \ 10930 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10931 fi 10932 done 10933 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10934BEGIN {RS = " "; FS = "/|\n";} { 10935 lt_foo = ""; 10936 lt_count = 0; 10937 for (lt_i = NF; lt_i > 0; lt_i--) { 10938 if ($lt_i != "" && $lt_i != ".") { 10939 if ($lt_i == "..") { 10940 lt_count++; 10941 } else { 10942 if (lt_count == 0) { 10943 lt_foo = "/" $lt_i lt_foo; 10944 } else { 10945 lt_count--; 10946 } 10947 } 10948 } 10949 } 10950 if (lt_foo != "") { lt_freq[lt_foo]++; } 10951 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10952}'` 10953 # AWK program above erroneously prepends '/' to C:/dos/paths 10954 # for these hosts. 10955 case $host_os in 10956 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10957 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10958 esac 10959 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10960else 10961 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10962fi 10963library_names_spec= 10964libname_spec='lib$name' 10965soname_spec= 10966shrext_cmds=.so 10967postinstall_cmds= 10968postuninstall_cmds= 10969finish_cmds= 10970finish_eval= 10971shlibpath_var= 10972shlibpath_overrides_runpath=unknown 10973version_type=none 10974dynamic_linker="$host_os ld.so" 10975sys_lib_dlsearch_path_spec="/lib /usr/lib" 10976need_lib_prefix=unknown 10977hardcode_into_libs=no 10978 10979# when you set need_version to no, make sure it does not cause -set_version 10980# flags to be left without arguments 10981need_version=unknown 10982 10983 10984 10985case $host_os in 10986aix3*) 10987 version_type=linux # correct to gnu/linux during the next big refactor 10988 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10989 shlibpath_var=LIBPATH 10990 10991 # AIX 3 has no versioning support, so we append a major version to the name. 10992 soname_spec='$libname$release$shared_ext$major' 10993 ;; 10994 10995aix[4-9]*) 10996 version_type=linux # correct to gnu/linux during the next big refactor 10997 need_lib_prefix=no 10998 need_version=no 10999 hardcode_into_libs=yes 11000 if test ia64 = "$host_cpu"; then 11001 # AIX 5 supports IA64 11002 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11003 shlibpath_var=LD_LIBRARY_PATH 11004 else 11005 # With GCC up to 2.95.x, collect2 would create an import file 11006 # for dependence libraries. The import file would start with 11007 # the line '#! .'. This would cause the generated library to 11008 # depend on '.', always an invalid library. This was fixed in 11009 # development snapshots of GCC prior to 3.0. 11010 case $host_os in 11011 aix4 | aix4.[01] | aix4.[01].*) 11012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11013 echo ' yes ' 11014 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11015 : 11016 else 11017 can_build_shared=no 11018 fi 11019 ;; 11020 esac 11021 # Using Import Files as archive members, it is possible to support 11022 # filename-based versioning of shared library archives on AIX. While 11023 # this would work for both with and without runtime linking, it will 11024 # prevent static linking of such archives. So we do filename-based 11025 # shared library versioning with .so extension only, which is used 11026 # when both runtime linking and shared linking is enabled. 11027 # Unfortunately, runtime linking may impact performance, so we do 11028 # not want this to be the default eventually. Also, we use the 11029 # versioned .so libs for executables only if there is the -brtl 11030 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11031 # To allow for filename-based versioning support, we need to create 11032 # libNAME.so.V as an archive file, containing: 11033 # *) an Import File, referring to the versioned filename of the 11034 # archive as well as the shared archive member, telling the 11035 # bitwidth (32 or 64) of that shared object, and providing the 11036 # list of exported symbols of that shared object, eventually 11037 # decorated with the 'weak' keyword 11038 # *) the shared object with the F_LOADONLY flag set, to really avoid 11039 # it being seen by the linker. 11040 # At run time we better use the real file rather than another symlink, 11041 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11042 11043 case $with_aix_soname,$aix_use_runtimelinking in 11044 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11045 # soname into executable. Probably we can add versioning support to 11046 # collect2, so additional links can be useful in future. 11047 aix,yes) # traditional libtool 11048 dynamic_linker='AIX unversionable lib.so' 11049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11050 # instead of lib<name>.a to let people know that these are not 11051 # typical AIX shared libraries. 11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11053 ;; 11054 aix,no) # traditional AIX only 11055 dynamic_linker='AIX lib.a(lib.so.V)' 11056 # We preserve .a as extension for shared libraries through AIX4.2 11057 # and later when we are not doing run time linking. 11058 library_names_spec='$libname$release.a $libname.a' 11059 soname_spec='$libname$release$shared_ext$major' 11060 ;; 11061 svr4,*) # full svr4 only 11062 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11063 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11064 # We do not specify a path in Import Files, so LIBPATH fires. 11065 shlibpath_overrides_runpath=yes 11066 ;; 11067 *,yes) # both, prefer svr4 11068 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11069 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11070 # unpreferred sharedlib libNAME.a needs extra handling 11071 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11072 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11073 # We do not specify a path in Import Files, so LIBPATH fires. 11074 shlibpath_overrides_runpath=yes 11075 ;; 11076 *,no) # both, prefer aix 11077 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11078 library_names_spec='$libname$release.a $libname.a' 11079 soname_spec='$libname$release$shared_ext$major' 11080 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11081 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11082 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11083 ;; 11084 esac 11085 shlibpath_var=LIBPATH 11086 fi 11087 ;; 11088 11089amigaos*) 11090 case $host_cpu in 11091 powerpc) 11092 # Since July 2007 AmigaOS4 officially supports .so libraries. 11093 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11095 ;; 11096 m68k) 11097 library_names_spec='$libname.ixlibrary $libname.a' 11098 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11099 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11100 ;; 11101 esac 11102 ;; 11103 11104beos*) 11105 library_names_spec='$libname$shared_ext' 11106 dynamic_linker="$host_os ld.so" 11107 shlibpath_var=LIBRARY_PATH 11108 ;; 11109 11110bsdi[45]*) 11111 version_type=linux # correct to gnu/linux during the next big refactor 11112 need_version=no 11113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11114 soname_spec='$libname$release$shared_ext$major' 11115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11116 shlibpath_var=LD_LIBRARY_PATH 11117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11119 # the default ld.so.conf also contains /usr/contrib/lib and 11120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11121 # libtool to hard-code these into programs 11122 ;; 11123 11124cygwin* | mingw* | pw32* | cegcc*) 11125 version_type=windows 11126 shrext_cmds=.dll 11127 need_version=no 11128 need_lib_prefix=no 11129 11130 case $GCC,$cc_basename in 11131 yes,*) 11132 # gcc 11133 library_names_spec='$libname.dll.a' 11134 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11135 postinstall_cmds='base_file=`basename \$file`~ 11136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11137 dldir=$destdir/`dirname \$dlpath`~ 11138 test -d \$dldir || mkdir -p \$dldir~ 11139 $install_prog $dir/$dlname \$dldir/$dlname~ 11140 chmod a+x \$dldir/$dlname~ 11141 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11142 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11143 fi' 11144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11145 dlpath=$dir/\$dldll~ 11146 $RM \$dlpath' 11147 shlibpath_overrides_runpath=yes 11148 11149 case $host_os in 11150 cygwin*) 11151 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11152 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11153 11154 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11155 ;; 11156 mingw* | cegcc*) 11157 # MinGW DLLs use traditional 'lib' prefix 11158 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11159 ;; 11160 pw32*) 11161 # pw32 DLLs use 'pw' prefix rather than 'lib' 11162 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11163 ;; 11164 esac 11165 dynamic_linker='Win32 ld.exe' 11166 ;; 11167 11168 *,cl*) 11169 # Native MSVC 11170 libname_spec='$name' 11171 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11172 library_names_spec='$libname.dll.lib' 11173 11174 case $build_os in 11175 mingw*) 11176 sys_lib_search_path_spec= 11177 lt_save_ifs=$IFS 11178 IFS=';' 11179 for lt_path in $LIB 11180 do 11181 IFS=$lt_save_ifs 11182 # Let DOS variable expansion print the short 8.3 style file name. 11183 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11184 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11185 done 11186 IFS=$lt_save_ifs 11187 # Convert to MSYS style. 11188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11189 ;; 11190 cygwin*) 11191 # Convert to unix form, then to dos form, then back to unix form 11192 # but this time dos style (no spaces!) so that the unix form looks 11193 # like /cygdrive/c/PROGRA~1:/cygdr... 11194 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11195 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11196 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11197 ;; 11198 *) 11199 sys_lib_search_path_spec=$LIB 11200 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11201 # It is most probably a Windows format PATH. 11202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11203 else 11204 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11205 fi 11206 # FIXME: find the short name or the path components, as spaces are 11207 # common. (e.g. "Program Files" -> "PROGRA~1") 11208 ;; 11209 esac 11210 11211 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11212 postinstall_cmds='base_file=`basename \$file`~ 11213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11214 dldir=$destdir/`dirname \$dlpath`~ 11215 test -d \$dldir || mkdir -p \$dldir~ 11216 $install_prog $dir/$dlname \$dldir/$dlname' 11217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11218 dlpath=$dir/\$dldll~ 11219 $RM \$dlpath' 11220 shlibpath_overrides_runpath=yes 11221 dynamic_linker='Win32 link.exe' 11222 ;; 11223 11224 *) 11225 # Assume MSVC wrapper 11226 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11227 dynamic_linker='Win32 ld.exe' 11228 ;; 11229 esac 11230 # FIXME: first we should search . and the directory the executable is in 11231 shlibpath_var=PATH 11232 ;; 11233 11234darwin* | rhapsody*) 11235 dynamic_linker="$host_os dyld" 11236 version_type=darwin 11237 need_lib_prefix=no 11238 need_version=no 11239 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11240 soname_spec='$libname$release$major$shared_ext' 11241 shlibpath_overrides_runpath=yes 11242 shlibpath_var=DYLD_LIBRARY_PATH 11243 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11244 11245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11247 ;; 11248 11249dgux*) 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 need_lib_prefix=no 11252 need_version=no 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11254 soname_spec='$libname$release$shared_ext$major' 11255 shlibpath_var=LD_LIBRARY_PATH 11256 ;; 11257 11258freebsd* | dragonfly*) 11259 # DragonFly does not have aout. When/if they implement a new 11260 # versioning mechanism, adjust this. 11261 if test -x /usr/bin/objformat; then 11262 objformat=`/usr/bin/objformat` 11263 else 11264 case $host_os in 11265 freebsd[23].*) objformat=aout ;; 11266 *) objformat=elf ;; 11267 esac 11268 fi 11269 version_type=freebsd-$objformat 11270 case $version_type in 11271 freebsd-elf*) 11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11273 soname_spec='$libname$release$shared_ext$major' 11274 need_version=no 11275 need_lib_prefix=no 11276 ;; 11277 freebsd-*) 11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11279 need_version=yes 11280 ;; 11281 esac 11282 shlibpath_var=LD_LIBRARY_PATH 11283 case $host_os in 11284 freebsd2.*) 11285 shlibpath_overrides_runpath=yes 11286 ;; 11287 freebsd3.[01]* | freebsdelf3.[01]*) 11288 shlibpath_overrides_runpath=yes 11289 hardcode_into_libs=yes 11290 ;; 11291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11293 shlibpath_overrides_runpath=no 11294 hardcode_into_libs=yes 11295 ;; 11296 *) # from 4.6 on, and DragonFly 11297 shlibpath_overrides_runpath=yes 11298 hardcode_into_libs=yes 11299 ;; 11300 esac 11301 ;; 11302 11303haiku*) 11304 version_type=linux # correct to gnu/linux during the next big refactor 11305 need_lib_prefix=no 11306 need_version=no 11307 dynamic_linker="$host_os runtime_loader" 11308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11309 soname_spec='$libname$release$shared_ext$major' 11310 shlibpath_var=LIBRARY_PATH 11311 shlibpath_overrides_runpath=no 11312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11313 hardcode_into_libs=yes 11314 ;; 11315 11316hpux9* | hpux10* | hpux11*) 11317 # Give a soname corresponding to the major version so that dld.sl refuses to 11318 # link against other versions. 11319 version_type=sunos 11320 need_lib_prefix=no 11321 need_version=no 11322 case $host_cpu in 11323 ia64*) 11324 shrext_cmds='.so' 11325 hardcode_into_libs=yes 11326 dynamic_linker="$host_os dld.so" 11327 shlibpath_var=LD_LIBRARY_PATH 11328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11330 soname_spec='$libname$release$shared_ext$major' 11331 if test 32 = "$HPUX_IA64_MODE"; then 11332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11333 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11334 else 11335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11336 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11337 fi 11338 ;; 11339 hppa*64*) 11340 shrext_cmds='.sl' 11341 hardcode_into_libs=yes 11342 dynamic_linker="$host_os dld.sl" 11343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11346 soname_spec='$libname$release$shared_ext$major' 11347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11349 ;; 11350 *) 11351 shrext_cmds='.sl' 11352 dynamic_linker="$host_os dld.sl" 11353 shlibpath_var=SHLIB_PATH 11354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11356 soname_spec='$libname$release$shared_ext$major' 11357 ;; 11358 esac 11359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11360 postinstall_cmds='chmod 555 $lib' 11361 # or fails outright, so override atomically: 11362 install_override_mode=555 11363 ;; 11364 11365interix[3-9]*) 11366 version_type=linux # correct to gnu/linux during the next big refactor 11367 need_lib_prefix=no 11368 need_version=no 11369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11370 soname_spec='$libname$release$shared_ext$major' 11371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11372 shlibpath_var=LD_LIBRARY_PATH 11373 shlibpath_overrides_runpath=no 11374 hardcode_into_libs=yes 11375 ;; 11376 11377irix5* | irix6* | nonstopux*) 11378 case $host_os in 11379 nonstopux*) version_type=nonstopux ;; 11380 *) 11381 if test yes = "$lt_cv_prog_gnu_ld"; then 11382 version_type=linux # correct to gnu/linux during the next big refactor 11383 else 11384 version_type=irix 11385 fi ;; 11386 esac 11387 need_lib_prefix=no 11388 need_version=no 11389 soname_spec='$libname$release$shared_ext$major' 11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11391 case $host_os in 11392 irix5* | nonstopux*) 11393 libsuff= shlibsuff= 11394 ;; 11395 *) 11396 case $LD in # libtool.m4 will add one of these switches to LD 11397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11398 libsuff= shlibsuff= libmagic=32-bit;; 11399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11400 libsuff=32 shlibsuff=N32 libmagic=N32;; 11401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11402 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11403 *) libsuff= shlibsuff= libmagic=never-match;; 11404 esac 11405 ;; 11406 esac 11407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11408 shlibpath_overrides_runpath=no 11409 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11410 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11411 hardcode_into_libs=yes 11412 ;; 11413 11414# No shared lib support for Linux oldld, aout, or coff. 11415linux*oldld* | linux*aout* | linux*coff*) 11416 dynamic_linker=no 11417 ;; 11418 11419linux*android*) 11420 version_type=none # Android doesn't support versioned libraries. 11421 need_lib_prefix=no 11422 need_version=no 11423 library_names_spec='$libname$release$shared_ext' 11424 soname_spec='$libname$release$shared_ext' 11425 finish_cmds= 11426 shlibpath_var=LD_LIBRARY_PATH 11427 shlibpath_overrides_runpath=yes 11428 11429 # This implies no fast_install, which is unacceptable. 11430 # Some rework will be needed to allow for fast_install 11431 # before this can be enabled. 11432 hardcode_into_libs=yes 11433 11434 dynamic_linker='Android linker' 11435 # Don't embed -rpath directories since the linker doesn't support them. 11436 hardcode_libdir_flag_spec='-L$libdir' 11437 ;; 11438 11439# This must be glibc/ELF. 11440linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11441 version_type=linux # correct to gnu/linux during the next big refactor 11442 need_lib_prefix=no 11443 need_version=no 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11445 soname_spec='$libname$release$shared_ext$major' 11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11447 shlibpath_var=LD_LIBRARY_PATH 11448 shlibpath_overrides_runpath=no 11449 11450 # Some binutils ld are patched to set DT_RUNPATH 11451 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11452 $as_echo_n "(cached) " >&6 11453else 11454 lt_cv_shlibpath_overrides_runpath=no 11455 save_LDFLAGS=$LDFLAGS 11456 save_libdir=$libdir 11457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11460/* end confdefs.h. */ 11461 11462int 11463main () 11464{ 11465 11466 ; 11467 return 0; 11468} 11469_ACEOF 11470if ac_fn_c_try_link "$LINENO"; then : 11471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11472 lt_cv_shlibpath_overrides_runpath=yes 11473fi 11474fi 11475rm -f core conftest.err conftest.$ac_objext \ 11476 conftest$ac_exeext conftest.$ac_ext 11477 LDFLAGS=$save_LDFLAGS 11478 libdir=$save_libdir 11479 11480fi 11481 11482 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11483 11484 # This implies no fast_install, which is unacceptable. 11485 # Some rework will be needed to allow for fast_install 11486 # before this can be enabled. 11487 hardcode_into_libs=yes 11488 11489 # Ideally, we could use ldconfig to report *all* directores which are 11490 # searched for libraries, however this is still not possible. Aside from not 11491 # being certain /sbin/ldconfig is available, command 11492 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11493 # even though it is searched at run-time. Try to do the best guess by 11494 # appending ld.so.conf contents (and includes) to the search path. 11495 if test -f /etc/ld.so.conf; then 11496 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11498 fi 11499 11500 # We used to test for /lib/ld.so.1 and disable shared libraries on 11501 # powerpc, because MkLinux only supported shared libraries with the 11502 # GNU dynamic linker. Since this was broken with cross compilers, 11503 # most powerpc-linux boxes support dynamic linking these days and 11504 # people can always --disable-shared, the test was removed, and we 11505 # assume the GNU/Linux dynamic linker is in use. 11506 dynamic_linker='GNU/Linux ld.so' 11507 ;; 11508 11509netbsd*) 11510 version_type=sunos 11511 need_lib_prefix=no 11512 need_version=no 11513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11514 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11516 dynamic_linker='NetBSD (a.out) ld.so' 11517 else 11518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11519 soname_spec='$libname$release$shared_ext$major' 11520 dynamic_linker='NetBSD ld.elf_so' 11521 fi 11522 shlibpath_var=LD_LIBRARY_PATH 11523 shlibpath_overrides_runpath=yes 11524 hardcode_into_libs=yes 11525 ;; 11526 11527newsos6) 11528 version_type=linux # correct to gnu/linux during the next big refactor 11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 shlibpath_overrides_runpath=yes 11532 ;; 11533 11534*nto* | *qnx*) 11535 version_type=qnx 11536 need_lib_prefix=no 11537 need_version=no 11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11539 soname_spec='$libname$release$shared_ext$major' 11540 shlibpath_var=LD_LIBRARY_PATH 11541 shlibpath_overrides_runpath=no 11542 hardcode_into_libs=yes 11543 dynamic_linker='ldqnx.so' 11544 ;; 11545 11546openbsd* | bitrig*) 11547 version_type=sunos 11548 sys_lib_dlsearch_path_spec=/usr/lib 11549 need_lib_prefix=no 11550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11551 need_version=no 11552 else 11553 need_version=yes 11554 fi 11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11557 shlibpath_var=LD_LIBRARY_PATH 11558 shlibpath_overrides_runpath=yes 11559 ;; 11560 11561os2*) 11562 libname_spec='$name' 11563 version_type=windows 11564 shrext_cmds=.dll 11565 need_version=no 11566 need_lib_prefix=no 11567 # OS/2 can only load a DLL with a base name of 8 characters or less. 11568 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11569 v=$($ECHO $release$versuffix | tr -d .-); 11570 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11571 $ECHO $n$v`$shared_ext' 11572 library_names_spec='${libname}_dll.$libext' 11573 dynamic_linker='OS/2 ld.exe' 11574 shlibpath_var=BEGINLIBPATH 11575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11577 postinstall_cmds='base_file=`basename \$file`~ 11578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11579 dldir=$destdir/`dirname \$dlpath`~ 11580 test -d \$dldir || mkdir -p \$dldir~ 11581 $install_prog $dir/$dlname \$dldir/$dlname~ 11582 chmod a+x \$dldir/$dlname~ 11583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11585 fi' 11586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11587 dlpath=$dir/\$dldll~ 11588 $RM \$dlpath' 11589 ;; 11590 11591osf3* | osf4* | osf5*) 11592 version_type=osf 11593 need_lib_prefix=no 11594 need_version=no 11595 soname_spec='$libname$release$shared_ext$major' 11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11600 ;; 11601 11602rdos*) 11603 dynamic_linker=no 11604 ;; 11605 11606solaris*) 11607 version_type=linux # correct to gnu/linux during the next big refactor 11608 need_lib_prefix=no 11609 need_version=no 11610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11611 soname_spec='$libname$release$shared_ext$major' 11612 shlibpath_var=LD_LIBRARY_PATH 11613 shlibpath_overrides_runpath=yes 11614 hardcode_into_libs=yes 11615 # ldd complains unless libraries are executable 11616 postinstall_cmds='chmod +x $lib' 11617 ;; 11618 11619sunos4*) 11620 version_type=sunos 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11623 shlibpath_var=LD_LIBRARY_PATH 11624 shlibpath_overrides_runpath=yes 11625 if test yes = "$with_gnu_ld"; then 11626 need_lib_prefix=no 11627 fi 11628 need_version=yes 11629 ;; 11630 11631sysv4 | sysv4.3*) 11632 version_type=linux # correct to gnu/linux during the next big refactor 11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11634 soname_spec='$libname$release$shared_ext$major' 11635 shlibpath_var=LD_LIBRARY_PATH 11636 case $host_vendor in 11637 sni) 11638 shlibpath_overrides_runpath=no 11639 need_lib_prefix=no 11640 runpath_var=LD_RUN_PATH 11641 ;; 11642 siemens) 11643 need_lib_prefix=no 11644 ;; 11645 motorola) 11646 need_lib_prefix=no 11647 need_version=no 11648 shlibpath_overrides_runpath=no 11649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11650 ;; 11651 esac 11652 ;; 11653 11654sysv4*MP*) 11655 if test -d /usr/nec; then 11656 version_type=linux # correct to gnu/linux during the next big refactor 11657 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11658 soname_spec='$libname$shared_ext.$major' 11659 shlibpath_var=LD_LIBRARY_PATH 11660 fi 11661 ;; 11662 11663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11664 version_type=sco 11665 need_lib_prefix=no 11666 need_version=no 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11668 soname_spec='$libname$release$shared_ext$major' 11669 shlibpath_var=LD_LIBRARY_PATH 11670 shlibpath_overrides_runpath=yes 11671 hardcode_into_libs=yes 11672 if test yes = "$with_gnu_ld"; then 11673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11674 else 11675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11676 case $host_os in 11677 sco3.2v5*) 11678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11679 ;; 11680 esac 11681 fi 11682 sys_lib_dlsearch_path_spec='/usr/lib' 11683 ;; 11684 11685tpf*) 11686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11687 version_type=linux # correct to gnu/linux during the next big refactor 11688 need_lib_prefix=no 11689 need_version=no 11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11691 shlibpath_var=LD_LIBRARY_PATH 11692 shlibpath_overrides_runpath=no 11693 hardcode_into_libs=yes 11694 ;; 11695 11696uts4*) 11697 version_type=linux # correct to gnu/linux during the next big refactor 11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11699 soname_spec='$libname$release$shared_ext$major' 11700 shlibpath_var=LD_LIBRARY_PATH 11701 ;; 11702 11703*) 11704 dynamic_linker=no 11705 ;; 11706esac 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11708$as_echo "$dynamic_linker" >&6; } 11709test no = "$dynamic_linker" && can_build_shared=no 11710 11711variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11712if test yes = "$GCC"; then 11713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11714fi 11715 11716if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11717 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11718fi 11719 11720if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11721 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11722fi 11723 11724# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11725configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11726 11727# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11728func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11729 11730# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11731configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11830$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11831hardcode_action= 11832if test -n "$hardcode_libdir_flag_spec" || 11833 test -n "$runpath_var" || 11834 test yes = "$hardcode_automatic"; then 11835 11836 # We can hardcode non-existent directories. 11837 if test no != "$hardcode_direct" && 11838 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11839 # have to relink, otherwise we might link with an installed library 11840 # when we should be linking with a yet-to-be-installed one 11841 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11842 test no != "$hardcode_minus_L"; then 11843 # Linking always hardcodes the temporary library directory. 11844 hardcode_action=relink 11845 else 11846 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11847 hardcode_action=immediate 11848 fi 11849else 11850 # We cannot hardcode anything, or else we can only hardcode existing 11851 # directories. 11852 hardcode_action=unsupported 11853fi 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11855$as_echo "$hardcode_action" >&6; } 11856 11857if test relink = "$hardcode_action" || 11858 test yes = "$inherit_rpath"; then 11859 # Fast installation is not supported 11860 enable_fast_install=no 11861elif test yes = "$shlibpath_overrides_runpath" || 11862 test no = "$enable_shared"; then 11863 # Fast installation is not necessary 11864 enable_fast_install=needless 11865fi 11866 11867 11868 11869 11870 11871 11872 if test yes != "$enable_dlopen"; then 11873 enable_dlopen=unknown 11874 enable_dlopen_self=unknown 11875 enable_dlopen_self_static=unknown 11876else 11877 lt_cv_dlopen=no 11878 lt_cv_dlopen_libs= 11879 11880 case $host_os in 11881 beos*) 11882 lt_cv_dlopen=load_add_on 11883 lt_cv_dlopen_libs= 11884 lt_cv_dlopen_self=yes 11885 ;; 11886 11887 mingw* | pw32* | cegcc*) 11888 lt_cv_dlopen=LoadLibrary 11889 lt_cv_dlopen_libs= 11890 ;; 11891 11892 cygwin*) 11893 lt_cv_dlopen=dlopen 11894 lt_cv_dlopen_libs= 11895 ;; 11896 11897 darwin*) 11898 # if libdl is installed we need to link against it 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11900$as_echo_n "checking for dlopen in -ldl... " >&6; } 11901if ${ac_cv_lib_dl_dlopen+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903else 11904 ac_check_lib_save_LIBS=$LIBS 11905LIBS="-ldl $LIBS" 11906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11907/* end confdefs.h. */ 11908 11909/* Override any GCC internal prototype to avoid an error. 11910 Use char because int might match the return type of a GCC 11911 builtin and then its argument prototype would still apply. */ 11912#ifdef __cplusplus 11913extern "C" 11914#endif 11915char dlopen (); 11916int 11917main () 11918{ 11919return dlopen (); 11920 ; 11921 return 0; 11922} 11923_ACEOF 11924if ac_fn_c_try_link "$LINENO"; then : 11925 ac_cv_lib_dl_dlopen=yes 11926else 11927 ac_cv_lib_dl_dlopen=no 11928fi 11929rm -f core conftest.err conftest.$ac_objext \ 11930 conftest$ac_exeext conftest.$ac_ext 11931LIBS=$ac_check_lib_save_LIBS 11932fi 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11934$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11935if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11936 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11937else 11938 11939 lt_cv_dlopen=dyld 11940 lt_cv_dlopen_libs= 11941 lt_cv_dlopen_self=yes 11942 11943fi 11944 11945 ;; 11946 11947 tpf*) 11948 # Don't try to run any link tests for TPF. We know it's impossible 11949 # because TPF is a cross-compiler, and we know how we open DSOs. 11950 lt_cv_dlopen=dlopen 11951 lt_cv_dlopen_libs= 11952 lt_cv_dlopen_self=no 11953 ;; 11954 11955 *) 11956 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11957if test "x$ac_cv_func_shl_load" = xyes; then : 11958 lt_cv_dlopen=shl_load 11959else 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11961$as_echo_n "checking for shl_load in -ldld... " >&6; } 11962if ${ac_cv_lib_dld_shl_load+:} false; then : 11963 $as_echo_n "(cached) " >&6 11964else 11965 ac_check_lib_save_LIBS=$LIBS 11966LIBS="-ldld $LIBS" 11967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11968/* end confdefs.h. */ 11969 11970/* Override any GCC internal prototype to avoid an error. 11971 Use char because int might match the return type of a GCC 11972 builtin and then its argument prototype would still apply. */ 11973#ifdef __cplusplus 11974extern "C" 11975#endif 11976char shl_load (); 11977int 11978main () 11979{ 11980return shl_load (); 11981 ; 11982 return 0; 11983} 11984_ACEOF 11985if ac_fn_c_try_link "$LINENO"; then : 11986 ac_cv_lib_dld_shl_load=yes 11987else 11988 ac_cv_lib_dld_shl_load=no 11989fi 11990rm -f core conftest.err conftest.$ac_objext \ 11991 conftest$ac_exeext conftest.$ac_ext 11992LIBS=$ac_check_lib_save_LIBS 11993fi 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11995$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11996if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11997 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11998else 11999 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12000if test "x$ac_cv_func_dlopen" = xyes; then : 12001 lt_cv_dlopen=dlopen 12002else 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12004$as_echo_n "checking for dlopen in -ldl... " >&6; } 12005if ${ac_cv_lib_dl_dlopen+:} false; then : 12006 $as_echo_n "(cached) " >&6 12007else 12008 ac_check_lib_save_LIBS=$LIBS 12009LIBS="-ldl $LIBS" 12010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012 12013/* Override any GCC internal prototype to avoid an error. 12014 Use char because int might match the return type of a GCC 12015 builtin and then its argument prototype would still apply. */ 12016#ifdef __cplusplus 12017extern "C" 12018#endif 12019char dlopen (); 12020int 12021main () 12022{ 12023return dlopen (); 12024 ; 12025 return 0; 12026} 12027_ACEOF 12028if ac_fn_c_try_link "$LINENO"; then : 12029 ac_cv_lib_dl_dlopen=yes 12030else 12031 ac_cv_lib_dl_dlopen=no 12032fi 12033rm -f core conftest.err conftest.$ac_objext \ 12034 conftest$ac_exeext conftest.$ac_ext 12035LIBS=$ac_check_lib_save_LIBS 12036fi 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12038$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12039if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12040 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12041else 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12043$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12044if ${ac_cv_lib_svld_dlopen+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 ac_check_lib_save_LIBS=$LIBS 12048LIBS="-lsvld $LIBS" 12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12050/* end confdefs.h. */ 12051 12052/* Override any GCC internal prototype to avoid an error. 12053 Use char because int might match the return type of a GCC 12054 builtin and then its argument prototype would still apply. */ 12055#ifdef __cplusplus 12056extern "C" 12057#endif 12058char dlopen (); 12059int 12060main () 12061{ 12062return dlopen (); 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067if ac_fn_c_try_link "$LINENO"; then : 12068 ac_cv_lib_svld_dlopen=yes 12069else 12070 ac_cv_lib_svld_dlopen=no 12071fi 12072rm -f core conftest.err conftest.$ac_objext \ 12073 conftest$ac_exeext conftest.$ac_ext 12074LIBS=$ac_check_lib_save_LIBS 12075fi 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12077$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12078if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12079 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12080else 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12082$as_echo_n "checking for dld_link in -ldld... " >&6; } 12083if ${ac_cv_lib_dld_dld_link+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085else 12086 ac_check_lib_save_LIBS=$LIBS 12087LIBS="-ldld $LIBS" 12088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12089/* end confdefs.h. */ 12090 12091/* Override any GCC internal prototype to avoid an error. 12092 Use char because int might match the return type of a GCC 12093 builtin and then its argument prototype would still apply. */ 12094#ifdef __cplusplus 12095extern "C" 12096#endif 12097char dld_link (); 12098int 12099main () 12100{ 12101return dld_link (); 12102 ; 12103 return 0; 12104} 12105_ACEOF 12106if ac_fn_c_try_link "$LINENO"; then : 12107 ac_cv_lib_dld_dld_link=yes 12108else 12109 ac_cv_lib_dld_dld_link=no 12110fi 12111rm -f core conftest.err conftest.$ac_objext \ 12112 conftest$ac_exeext conftest.$ac_ext 12113LIBS=$ac_check_lib_save_LIBS 12114fi 12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12116$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12117if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12118 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12119fi 12120 12121 12122fi 12123 12124 12125fi 12126 12127 12128fi 12129 12130 12131fi 12132 12133 12134fi 12135 12136 ;; 12137 esac 12138 12139 if test no = "$lt_cv_dlopen"; then 12140 enable_dlopen=no 12141 else 12142 enable_dlopen=yes 12143 fi 12144 12145 case $lt_cv_dlopen in 12146 dlopen) 12147 save_CPPFLAGS=$CPPFLAGS 12148 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12149 12150 save_LDFLAGS=$LDFLAGS 12151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12152 12153 save_LIBS=$LIBS 12154 LIBS="$lt_cv_dlopen_libs $LIBS" 12155 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12157$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12158if ${lt_cv_dlopen_self+:} false; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 if test yes = "$cross_compiling"; then : 12162 lt_cv_dlopen_self=cross 12163else 12164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12165 lt_status=$lt_dlunknown 12166 cat > conftest.$ac_ext <<_LT_EOF 12167#line $LINENO "configure" 12168#include "confdefs.h" 12169 12170#if HAVE_DLFCN_H 12171#include <dlfcn.h> 12172#endif 12173 12174#include <stdio.h> 12175 12176#ifdef RTLD_GLOBAL 12177# define LT_DLGLOBAL RTLD_GLOBAL 12178#else 12179# ifdef DL_GLOBAL 12180# define LT_DLGLOBAL DL_GLOBAL 12181# else 12182# define LT_DLGLOBAL 0 12183# endif 12184#endif 12185 12186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12187 find out it does not work in some platform. */ 12188#ifndef LT_DLLAZY_OR_NOW 12189# ifdef RTLD_LAZY 12190# define LT_DLLAZY_OR_NOW RTLD_LAZY 12191# else 12192# ifdef DL_LAZY 12193# define LT_DLLAZY_OR_NOW DL_LAZY 12194# else 12195# ifdef RTLD_NOW 12196# define LT_DLLAZY_OR_NOW RTLD_NOW 12197# else 12198# ifdef DL_NOW 12199# define LT_DLLAZY_OR_NOW DL_NOW 12200# else 12201# define LT_DLLAZY_OR_NOW 0 12202# endif 12203# endif 12204# endif 12205# endif 12206#endif 12207 12208/* When -fvisibility=hidden is used, assume the code has been annotated 12209 correspondingly for the symbols needed. */ 12210#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12211int fnord () __attribute__((visibility("default"))); 12212#endif 12213 12214int fnord () { return 42; } 12215int main () 12216{ 12217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12218 int status = $lt_dlunknown; 12219 12220 if (self) 12221 { 12222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12223 else 12224 { 12225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12226 else puts (dlerror ()); 12227 } 12228 /* dlclose (self); */ 12229 } 12230 else 12231 puts (dlerror ()); 12232 12233 return status; 12234} 12235_LT_EOF 12236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12237 (eval $ac_link) 2>&5 12238 ac_status=$? 12239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12240 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12241 (./conftest; exit; ) >&5 2>/dev/null 12242 lt_status=$? 12243 case x$lt_status in 12244 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12245 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12246 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12247 esac 12248 else : 12249 # compilation failed 12250 lt_cv_dlopen_self=no 12251 fi 12252fi 12253rm -fr conftest* 12254 12255 12256fi 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12258$as_echo "$lt_cv_dlopen_self" >&6; } 12259 12260 if test yes = "$lt_cv_dlopen_self"; then 12261 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12263$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12264if ${lt_cv_dlopen_self_static+:} false; then : 12265 $as_echo_n "(cached) " >&6 12266else 12267 if test yes = "$cross_compiling"; then : 12268 lt_cv_dlopen_self_static=cross 12269else 12270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12271 lt_status=$lt_dlunknown 12272 cat > conftest.$ac_ext <<_LT_EOF 12273#line $LINENO "configure" 12274#include "confdefs.h" 12275 12276#if HAVE_DLFCN_H 12277#include <dlfcn.h> 12278#endif 12279 12280#include <stdio.h> 12281 12282#ifdef RTLD_GLOBAL 12283# define LT_DLGLOBAL RTLD_GLOBAL 12284#else 12285# ifdef DL_GLOBAL 12286# define LT_DLGLOBAL DL_GLOBAL 12287# else 12288# define LT_DLGLOBAL 0 12289# endif 12290#endif 12291 12292/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12293 find out it does not work in some platform. */ 12294#ifndef LT_DLLAZY_OR_NOW 12295# ifdef RTLD_LAZY 12296# define LT_DLLAZY_OR_NOW RTLD_LAZY 12297# else 12298# ifdef DL_LAZY 12299# define LT_DLLAZY_OR_NOW DL_LAZY 12300# else 12301# ifdef RTLD_NOW 12302# define LT_DLLAZY_OR_NOW RTLD_NOW 12303# else 12304# ifdef DL_NOW 12305# define LT_DLLAZY_OR_NOW DL_NOW 12306# else 12307# define LT_DLLAZY_OR_NOW 0 12308# endif 12309# endif 12310# endif 12311# endif 12312#endif 12313 12314/* When -fvisibility=hidden is used, assume the code has been annotated 12315 correspondingly for the symbols needed. */ 12316#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12317int fnord () __attribute__((visibility("default"))); 12318#endif 12319 12320int fnord () { return 42; } 12321int main () 12322{ 12323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12324 int status = $lt_dlunknown; 12325 12326 if (self) 12327 { 12328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12329 else 12330 { 12331 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12332 else puts (dlerror ()); 12333 } 12334 /* dlclose (self); */ 12335 } 12336 else 12337 puts (dlerror ()); 12338 12339 return status; 12340} 12341_LT_EOF 12342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12343 (eval $ac_link) 2>&5 12344 ac_status=$? 12345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12346 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12347 (./conftest; exit; ) >&5 2>/dev/null 12348 lt_status=$? 12349 case x$lt_status in 12350 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12351 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12352 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12353 esac 12354 else : 12355 # compilation failed 12356 lt_cv_dlopen_self_static=no 12357 fi 12358fi 12359rm -fr conftest* 12360 12361 12362fi 12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12364$as_echo "$lt_cv_dlopen_self_static" >&6; } 12365 fi 12366 12367 CPPFLAGS=$save_CPPFLAGS 12368 LDFLAGS=$save_LDFLAGS 12369 LIBS=$save_LIBS 12370 ;; 12371 esac 12372 12373 case $lt_cv_dlopen_self in 12374 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12375 *) enable_dlopen_self=unknown ;; 12376 esac 12377 12378 case $lt_cv_dlopen_self_static in 12379 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12380 *) enable_dlopen_self_static=unknown ;; 12381 esac 12382fi 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400striplib= 12401old_striplib= 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12403$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12404if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12406 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12408$as_echo "yes" >&6; } 12409else 12410# FIXME - insert some real tests, host_os isn't really good enough 12411 case $host_os in 12412 darwin*) 12413 if test -n "$STRIP"; then 12414 striplib="$STRIP -x" 12415 old_striplib="$STRIP -S" 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12417$as_echo "yes" >&6; } 12418 else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420$as_echo "no" >&6; } 12421 fi 12422 ;; 12423 *) 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12425$as_echo "no" >&6; } 12426 ;; 12427 esac 12428fi 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 # Report what library types will actually be built 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12443$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12445$as_echo "$can_build_shared" >&6; } 12446 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12448$as_echo_n "checking whether to build shared libraries... " >&6; } 12449 test no = "$can_build_shared" && enable_shared=no 12450 12451 # On AIX, shared libraries and static libraries use the same namespace, and 12452 # are all built from PIC. 12453 case $host_os in 12454 aix3*) 12455 test yes = "$enable_shared" && enable_static=no 12456 if test -n "$RANLIB"; then 12457 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12458 postinstall_cmds='$RANLIB $lib' 12459 fi 12460 ;; 12461 12462 aix[4-9]*) 12463 if test ia64 != "$host_cpu"; then 12464 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12465 yes,aix,yes) ;; # shared object as lib.so file only 12466 yes,svr4,*) ;; # shared object as lib.so archive member only 12467 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12468 esac 12469 fi 12470 ;; 12471 esac 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12473$as_echo "$enable_shared" >&6; } 12474 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12476$as_echo_n "checking whether to build static libraries... " >&6; } 12477 # Make sure either enable_shared or enable_static is yes. 12478 test yes = "$enable_shared" || enable_static=yes 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12480$as_echo "$enable_static" >&6; } 12481 12482 12483 12484 12485fi 12486ac_ext=c 12487ac_cpp='$CPP $CPPFLAGS' 12488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12490ac_compiler_gnu=$ac_cv_c_compiler_gnu 12491 12492CC=$lt_save_CC 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 ac_config_commands="$ac_config_commands libtool" 12509 12510 12511 12512 12513# Only expand once: 12514 12515(dlopen) 12516 12517# We need static libraries for CUPS genppd program for now, for bug 865265 12518# --rlk 20031223 12519# Check whether --enable-static was given. 12520if test "${enable_static+set}" = set; then : 12521 enableval=$enable_static; p=${PACKAGE-default} 12522 case $enableval in 12523 yes) enable_static=yes ;; 12524 no) enable_static=no ;; 12525 *) 12526 enable_static=no 12527 # Look at the argument we got. We use all the common list separators. 12528 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12529 for pkg in $enableval; do 12530 IFS=$lt_save_ifs 12531 if test "X$pkg" = "X$p"; then 12532 enable_static=yes 12533 fi 12534 done 12535 IFS=$lt_save_ifs 12536 ;; 12537 esac 12538else 12539 enable_static=yes 12540fi 12541 12542 12543 12544 12545 12546 12547#AC_DISABLE_SHARED 12548 12549 12550if test "$ac_cv_prog_gnu_ld" = "yes" ; then 12551 12552$as_echo "#define HAVE_GNU_LD /**/" >>confdefs.h 12553 12554fi 12555 12556 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12558$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12559 # Check whether --enable-maintainer-mode was given. 12560if test "${enable_maintainer_mode+set}" = set; then : 12561 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12562else 12563 USE_MAINTAINER_MODE=no 12564fi 12565 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12567$as_echo "$USE_MAINTAINER_MODE" >&6; } 12568 if test $USE_MAINTAINER_MODE = yes; then 12569 MAINTAINER_MODE_TRUE= 12570 MAINTAINER_MODE_FALSE='#' 12571else 12572 MAINTAINER_MODE_TRUE='#' 12573 MAINTAINER_MODE_FALSE= 12574fi 12575 12576 MAINT=$MAINTAINER_MODE_TRUE 12577 12578 12579if test x${USE_MAINTAINER_MODE} = xyes ; then 12580 MAINTAINER_MODE="true" 12581 BUILD_TEST="yes" 12582 BUILD_DOC="yes" 12583 12584$as_echo "#define HAVE_MAINTAINER_MODE /**/" >>confdefs.h 12585 12586fi 12587 12588if test x${host_os} = xlinux-gnu ; then 12589 OSTYPE="linux" 12590elif test "`echo ${host_os} | sed 's/^\(linux\).*$/\1/'`" = "linux" ; then 12591 OSTYPE="linux" 12592elif test "`echo ${host_os} | sed 's/^\(irix\).*$/\1/'`" = "irix" ; then 12593 OSTYPE="irix" 12594else 12595 OSTYPE="${host_os}" 12596fi 12597 12598cat >>confdefs.h <<_ACEOF 12599#define OSTYPE "${OSTYPE}" 12600_ACEOF 12601 12602 12603 12604 12605# Check whether --with-cups-config was given. 12606if test "${with_cups_config+set}" = set; then : 12607 withval=$with_cups_config; with_cups_config="$withval" 12608else 12609 with_cups_config=system 12610 12611fi 12612 12613if test "x$with_cups_config" != "xsystem"; then : 12614 12615 CUPS_CONFIG=$with_cups_config 12616 12617else 12618 12619 if test -n "$ac_tool_prefix"; then 12620 # Extract the first word of "${ac_tool_prefix}cups-config", so it can be a program name with args. 12621set dummy ${ac_tool_prefix}cups-config; ac_word=$2 12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12623$as_echo_n "checking for $ac_word... " >&6; } 12624if ${ac_cv_path_CUPS_CONFIG+:} false; then : 12625 $as_echo_n "(cached) " >&6 12626else 12627 case $CUPS_CONFIG in 12628 [\\/]* | ?:[\\/]*) 12629 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path. 12630 ;; 12631 *) 12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12633for as_dir in $PATH 12634do 12635 IFS=$as_save_IFS 12636 test -z "$as_dir" && as_dir=. 12637 for ac_exec_ext in '' $ac_executable_extensions; do 12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12639 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12641 break 2 12642 fi 12643done 12644 done 12645IFS=$as_save_IFS 12646 12647 ;; 12648esac 12649fi 12650CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG 12651if test -n "$CUPS_CONFIG"; then 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5 12653$as_echo "$CUPS_CONFIG" >&6; } 12654else 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12656$as_echo "no" >&6; } 12657fi 12658 12659 12660fi 12661if test -z "$ac_cv_path_CUPS_CONFIG"; then 12662 ac_pt_CUPS_CONFIG=$CUPS_CONFIG 12663 # Extract the first word of "cups-config", so it can be a program name with args. 12664set dummy cups-config; ac_word=$2 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12666$as_echo_n "checking for $ac_word... " >&6; } 12667if ${ac_cv_path_ac_pt_CUPS_CONFIG+:} false; then : 12668 $as_echo_n "(cached) " >&6 12669else 12670 case $ac_pt_CUPS_CONFIG in 12671 [\\/]* | ?:[\\/]*) 12672 ac_cv_path_ac_pt_CUPS_CONFIG="$ac_pt_CUPS_CONFIG" # Let the user override the test with a path. 12673 ;; 12674 *) 12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12676for as_dir in $PATH 12677do 12678 IFS=$as_save_IFS 12679 test -z "$as_dir" && as_dir=. 12680 for ac_exec_ext in '' $ac_executable_extensions; do 12681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12682 ac_cv_path_ac_pt_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12684 break 2 12685 fi 12686done 12687 done 12688IFS=$as_save_IFS 12689 12690 ;; 12691esac 12692fi 12693ac_pt_CUPS_CONFIG=$ac_cv_path_ac_pt_CUPS_CONFIG 12694if test -n "$ac_pt_CUPS_CONFIG"; then 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CUPS_CONFIG" >&5 12696$as_echo "$ac_pt_CUPS_CONFIG" >&6; } 12697else 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12699$as_echo "no" >&6; } 12700fi 12701 12702 if test "x$ac_pt_CUPS_CONFIG" = x; then 12703 CUPS_CONFIG="" 12704 else 12705 case $cross_compiling:$ac_tool_warned in 12706yes:) 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12709ac_tool_warned=yes ;; 12710esac 12711 CUPS_CONFIG=$ac_pt_CUPS_CONFIG 12712 fi 12713else 12714 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG" 12715fi 12716 12717 if test -z "$CUPS_CONFIG"; then : 12718 12719 FOUND_CUPS_CONFIG=no 12720 12721else 12722 12723 FOUND_CUPS_CONFIG=yes 12724 12725fi 12726 12727fi 12728 12729missing_cups_error=" 12730 12731******* ERROR ****** 12732You do not have the necessary software installed to build the CUPS driver. 12733This is most likely not what you want, as the resulting installation will 12734not be usable as part of a normal printing system. If you are certain 12735that this is what you want, please run configure with --without-cups. 12736Otherwise, please read the README and install the necessary development 12737package, most likely named 'cups-devel', and re-run configure. 12738 12739" 12740 12741# create custom command-line --with option 12742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to whether to build CUPS driver" >&5 12743$as_echo_n "checking whether to whether to build CUPS driver... " >&6; } 12744 12745# Check whether --with-cups was given. 12746if test "${with_cups+set}" = set; then : 12747 withval=$with_cups; case "${withval}" in 12748 12749 yes) 12750 if test "$FOUND_CUPS_CONFIG" == "yes" ; then 12751 BUILD_CUPS="yes" 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12753$as_echo "yes" >&6; } 12754 cups_prefix="/usr" 12755 else 12756 as_fn_error $? "$missing_cups_error" "$LINENO" 5 12757 fi 12758 ;; 12759 no) BUILD_CUPS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12760$as_echo "no" >&6; } ; cups_prefix="/usr" ;; 12761 *) if test -d ${withval} ; then 12762 BUILD_CUPS="yes" 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using specified prefix)" >&5 12764$as_echo "yes (using specified prefix)" >&6; } 12765 cups_prefix="${withval}" 12766 else 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 12768$as_echo "unknown" >&6; } 12769 as_fn_error $? "${withval}: no such directory for --with-cups" "$LINENO" 5 12770 fi ;; 12771 12772 esac 12773else 12774 if test -z "${BUILD_CUPS}" ; then 12775 BUILD_CUPS="(automatic)" 12776 fi 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS}" >&5 12778$as_echo "${BUILD_CUPS}" >&6; } ; 12779 if test "$FOUND_CUPS_CONFIG" == "yes" ; then 12780 cups_prefix="${prefix}" 12781 BUILD_CUPS="yes" 12782 else 12783 as_fn_error $? "$missing_cups_error" "$LINENO" 5 12784 fi 12785 12786fi 12787 12788if test -z "${BUILD_CUPS}" ; then 12789 BUILD_CUPS="(automatic)" 12790fi 12791 12792 12793 12794 12795mkdir_p="$MKDIR_P" 12796case $mkdir_p in 12797 [\\/$]* | ?:[\\/]*) ;; 12798 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 12799esac 12800 12801 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12803$as_echo_n "checking whether NLS is requested... " >&6; } 12804 # Check whether --enable-nls was given. 12805if test "${enable_nls+set}" = set; then : 12806 enableval=$enable_nls; USE_NLS=$enableval 12807else 12808 USE_NLS=yes 12809fi 12810 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12812$as_echo "$USE_NLS" >&6; } 12813 12814 12815 12816 12817 12818 12819# Prepare PATH_SEPARATOR. 12820# The user is always right. 12821if test "${PATH_SEPARATOR+set}" != set; then 12822 echo "#! /bin/sh" >conf$$.sh 12823 echo "exit 0" >>conf$$.sh 12824 chmod +x conf$$.sh 12825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12826 PATH_SEPARATOR=';' 12827 else 12828 PATH_SEPARATOR=: 12829 fi 12830 rm -f conf$$.sh 12831fi 12832 12833# Find out how to test for executable files. Don't use a zero-byte file, 12834# as systems may use methods other than mode bits to determine executability. 12835cat >conf$$.file <<_ASEOF 12836#! /bin/sh 12837exit 0 12838_ASEOF 12839chmod +x conf$$.file 12840if test -x conf$$.file >/dev/null 2>&1; then 12841 ac_executable_p="test -x" 12842else 12843 ac_executable_p="test -f" 12844fi 12845rm -f conf$$.file 12846 12847# Extract the first word of "msgfmt", so it can be a program name with args. 12848set dummy msgfmt; ac_word=$2 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12850$as_echo_n "checking for $ac_word... " >&6; } 12851if ${ac_cv_path_MSGFMT+:} false; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 case "$MSGFMT" in 12855 [\\/]* | ?:[\\/]*) 12856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12857 ;; 12858 *) 12859 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12860 for ac_dir in $PATH; do 12861 IFS="$ac_save_IFS" 12862 test -z "$ac_dir" && ac_dir=. 12863 for ac_exec_ext in '' $ac_executable_extensions; do 12864 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12865 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12866 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 12867 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12868 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12869 break 2 12870 fi 12871 fi 12872 done 12873 done 12874 IFS="$ac_save_IFS" 12875 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12876 ;; 12877esac 12878fi 12879MSGFMT="$ac_cv_path_MSGFMT" 12880if test "$MSGFMT" != ":"; then 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12882$as_echo "$MSGFMT" >&6; } 12883else 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885$as_echo "no" >&6; } 12886fi 12887 12888 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12889set dummy gmsgfmt; ac_word=$2 12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12891$as_echo_n "checking for $ac_word... " >&6; } 12892if ${ac_cv_path_GMSGFMT+:} false; then : 12893 $as_echo_n "(cached) " >&6 12894else 12895 case $GMSGFMT in 12896 [\\/]* | ?:[\\/]*) 12897 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12898 ;; 12899 *) 12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12901for as_dir in $PATH 12902do 12903 IFS=$as_save_IFS 12904 test -z "$as_dir" && as_dir=. 12905 for ac_exec_ext in '' $ac_executable_extensions; do 12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12907 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12909 break 2 12910 fi 12911done 12912 done 12913IFS=$as_save_IFS 12914 12915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12916 ;; 12917esac 12918fi 12919GMSGFMT=$ac_cv_path_GMSGFMT 12920if test -n "$GMSGFMT"; then 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12922$as_echo "$GMSGFMT" >&6; } 12923else 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12925$as_echo "no" >&6; } 12926fi 12927 12928 12929 12930 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12931 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 12932 *) MSGFMT_015=$MSGFMT ;; 12933 esac 12934 12935 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12936 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 12937 *) GMSGFMT_015=$GMSGFMT ;; 12938 esac 12939 12940 12941 12942# Prepare PATH_SEPARATOR. 12943# The user is always right. 12944if test "${PATH_SEPARATOR+set}" != set; then 12945 echo "#! /bin/sh" >conf$$.sh 12946 echo "exit 0" >>conf$$.sh 12947 chmod +x conf$$.sh 12948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12949 PATH_SEPARATOR=';' 12950 else 12951 PATH_SEPARATOR=: 12952 fi 12953 rm -f conf$$.sh 12954fi 12955 12956# Find out how to test for executable files. Don't use a zero-byte file, 12957# as systems may use methods other than mode bits to determine executability. 12958cat >conf$$.file <<_ASEOF 12959#! /bin/sh 12960exit 0 12961_ASEOF 12962chmod +x conf$$.file 12963if test -x conf$$.file >/dev/null 2>&1; then 12964 ac_executable_p="test -x" 12965else 12966 ac_executable_p="test -f" 12967fi 12968rm -f conf$$.file 12969 12970# Extract the first word of "xgettext", so it can be a program name with args. 12971set dummy xgettext; ac_word=$2 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12973$as_echo_n "checking for $ac_word... " >&6; } 12974if ${ac_cv_path_XGETTEXT+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 case "$XGETTEXT" in 12978 [\\/]* | ?:[\\/]*) 12979 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12980 ;; 12981 *) 12982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12983 for ac_dir in $PATH; do 12984 IFS="$ac_save_IFS" 12985 test -z "$ac_dir" && ac_dir=. 12986 for ac_exec_ext in '' $ac_executable_extensions; do 12987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12988 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12989 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 12990 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12991 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12992 break 2 12993 fi 12994 fi 12995 done 12996 done 12997 IFS="$ac_save_IFS" 12998 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12999 ;; 13000esac 13001fi 13002XGETTEXT="$ac_cv_path_XGETTEXT" 13003if test "$XGETTEXT" != ":"; then 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 13005$as_echo "$XGETTEXT" >&6; } 13006else 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13008$as_echo "no" >&6; } 13009fi 13010 13011 rm -f messages.po 13012 13013 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13014 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 13015 *) XGETTEXT_015=$XGETTEXT ;; 13016 esac 13017 13018 13019 13020# Prepare PATH_SEPARATOR. 13021# The user is always right. 13022if test "${PATH_SEPARATOR+set}" != set; then 13023 echo "#! /bin/sh" >conf$$.sh 13024 echo "exit 0" >>conf$$.sh 13025 chmod +x conf$$.sh 13026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13027 PATH_SEPARATOR=';' 13028 else 13029 PATH_SEPARATOR=: 13030 fi 13031 rm -f conf$$.sh 13032fi 13033 13034# Find out how to test for executable files. Don't use a zero-byte file, 13035# as systems may use methods other than mode bits to determine executability. 13036cat >conf$$.file <<_ASEOF 13037#! /bin/sh 13038exit 0 13039_ASEOF 13040chmod +x conf$$.file 13041if test -x conf$$.file >/dev/null 2>&1; then 13042 ac_executable_p="test -x" 13043else 13044 ac_executable_p="test -f" 13045fi 13046rm -f conf$$.file 13047 13048# Extract the first word of "msgmerge", so it can be a program name with args. 13049set dummy msgmerge; ac_word=$2 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13051$as_echo_n "checking for $ac_word... " >&6; } 13052if ${ac_cv_path_MSGMERGE+:} false; then : 13053 $as_echo_n "(cached) " >&6 13054else 13055 case "$MSGMERGE" in 13056 [\\/]* | ?:[\\/]*) 13057 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 13058 ;; 13059 *) 13060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13061 for ac_dir in $PATH; do 13062 IFS="$ac_save_IFS" 13063 test -z "$ac_dir" && ac_dir=. 13064 for ac_exec_ext in '' $ac_executable_extensions; do 13065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13066 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13067 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 13068 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 13069 break 2 13070 fi 13071 fi 13072 done 13073 done 13074 IFS="$ac_save_IFS" 13075 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 13076 ;; 13077esac 13078fi 13079MSGMERGE="$ac_cv_path_MSGMERGE" 13080if test "$MSGMERGE" != ":"; then 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 13082$as_echo "$MSGMERGE" >&6; } 13083else 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13085$as_echo "no" >&6; } 13086fi 13087 13088 13089 test -n "$localedir" || localedir='${datadir}/locale' 13090 13091 13092 ac_config_commands="$ac_config_commands po-directories" 13093 13094 13095 13096 if test "X$prefix" = "XNONE"; then 13097 acl_final_prefix="$ac_default_prefix" 13098 else 13099 acl_final_prefix="$prefix" 13100 fi 13101 if test "X$exec_prefix" = "XNONE"; then 13102 acl_final_exec_prefix='${prefix}' 13103 else 13104 acl_final_exec_prefix="$exec_prefix" 13105 fi 13106 acl_save_prefix="$prefix" 13107 prefix="$acl_final_prefix" 13108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13109 prefix="$acl_save_prefix" 13110 13111 13112# Check whether --with-gnu-ld was given. 13113if test "${with_gnu_ld+set}" = set; then : 13114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13115else 13116 with_gnu_ld=no 13117fi 13118 13119# Prepare PATH_SEPARATOR. 13120# The user is always right. 13121if test "${PATH_SEPARATOR+set}" != set; then 13122 echo "#! /bin/sh" >conf$$.sh 13123 echo "exit 0" >>conf$$.sh 13124 chmod +x conf$$.sh 13125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13126 PATH_SEPARATOR=';' 13127 else 13128 PATH_SEPARATOR=: 13129 fi 13130 rm -f conf$$.sh 13131fi 13132ac_prog=ld 13133if test "$GCC" = yes; then 13134 # Check if gcc -print-prog-name=ld gives a path. 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 13136$as_echo_n "checking for ld used by GCC... " >&6; } 13137 case $host in 13138 *-*-mingw*) 13139 # gcc leaves a trailing carriage return which upsets mingw 13140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13141 *) 13142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13143 esac 13144 case $ac_prog in 13145 # Accept absolute paths. 13146 [\\/]* | [A-Za-z]:[\\/]*) 13147 re_direlt='/[^/][^/]*/\.\./' 13148 # Canonicalize the path of ld 13149 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 13150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13151 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13152 done 13153 test -z "$LD" && LD="$ac_prog" 13154 ;; 13155 "") 13156 # If it fails, then pretend we aren't using GCC. 13157 ac_prog=ld 13158 ;; 13159 *) 13160 # If it is relative, then search for the first ld in PATH. 13161 with_gnu_ld=unknown 13162 ;; 13163 esac 13164elif test "$with_gnu_ld" = yes; then 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13166$as_echo_n "checking for GNU ld... " >&6; } 13167else 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13169$as_echo_n "checking for non-GNU ld... " >&6; } 13170fi 13171if ${acl_cv_path_LD+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 if test -z "$LD"; then 13175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 13176 for ac_dir in $PATH; do 13177 test -z "$ac_dir" && ac_dir=. 13178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13179 acl_cv_path_LD="$ac_dir/$ac_prog" 13180 # Check to see if the program is GNU ld. I'd rather use --version, 13181 # but apparently some GNU ld's only accept -v. 13182 # Break only if it was the GNU/non-GNU ld that we prefer. 13183 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 13184 *GNU* | *'with BFD'*) 13185 test "$with_gnu_ld" != no && break ;; 13186 *) 13187 test "$with_gnu_ld" != yes && break ;; 13188 esac 13189 fi 13190 done 13191 IFS="$ac_save_ifs" 13192else 13193 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13194fi 13195fi 13196 13197LD="$acl_cv_path_LD" 13198if test -n "$LD"; then 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13200$as_echo "$LD" >&6; } 13201else 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13203$as_echo "no" >&6; } 13204fi 13205test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13207$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13208if ${acl_cv_prog_gnu_ld+:} false; then : 13209 $as_echo_n "(cached) " >&6 13210else 13211 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13212case `$LD -v 2>&1 </dev/null` in 13213*GNU* | *'with BFD'*) 13214 acl_cv_prog_gnu_ld=yes ;; 13215*) 13216 acl_cv_prog_gnu_ld=no ;; 13217esac 13218fi 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13220$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13221with_gnu_ld=$acl_cv_prog_gnu_ld 13222 13223 13224 13225 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13227$as_echo_n "checking for shared library run path origin... " >&6; } 13228if ${acl_cv_rpath+:} false; then : 13229 $as_echo_n "(cached) " >&6 13230else 13231 13232 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13233 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13234 . ./conftest.sh 13235 rm -f ./conftest.sh 13236 acl_cv_rpath=done 13237 13238fi 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13240$as_echo "$acl_cv_rpath" >&6; } 13241 wl="$acl_cv_wl" 13242 libext="$acl_cv_libext" 13243 shlibext="$acl_cv_shlibext" 13244 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13245 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13246 hardcode_direct="$acl_cv_hardcode_direct" 13247 hardcode_minus_L="$acl_cv_hardcode_minus_L" 13248 # Check whether --enable-rpath was given. 13249if test "${enable_rpath+set}" = set; then : 13250 enableval=$enable_rpath; : 13251else 13252 enable_rpath=yes 13253fi 13254 13255 13256 13257 acl_libdirstem=lib 13258 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13259 if test -n "$searchpath"; then 13260 acl_save_IFS="${IFS= }"; IFS=":" 13261 for searchdir in $searchpath; do 13262 if test -d "$searchdir"; then 13263 case "$searchdir" in 13264 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13265 *) searchdir=`cd "$searchdir" && pwd` 13266 case "$searchdir" in 13267 */lib64 ) acl_libdirstem=lib64 ;; 13268 esac ;; 13269 esac 13270 fi 13271 done 13272 IFS="$acl_save_IFS" 13273 fi 13274 13275 13276 13277 13278 13279 13280 13281 13282 use_additional=yes 13283 13284 acl_save_prefix="$prefix" 13285 prefix="$acl_final_prefix" 13286 acl_save_exec_prefix="$exec_prefix" 13287 exec_prefix="$acl_final_exec_prefix" 13288 13289 eval additional_includedir=\"$includedir\" 13290 eval additional_libdir=\"$libdir\" 13291 13292 exec_prefix="$acl_save_exec_prefix" 13293 prefix="$acl_save_prefix" 13294 13295 13296# Check whether --with-libiconv-prefix was given. 13297if test "${with_libiconv_prefix+set}" = set; then : 13298 withval=$with_libiconv_prefix; 13299 if test "X$withval" = "Xno"; then 13300 use_additional=no 13301 else 13302 if test "X$withval" = "X"; then 13303 13304 acl_save_prefix="$prefix" 13305 prefix="$acl_final_prefix" 13306 acl_save_exec_prefix="$exec_prefix" 13307 exec_prefix="$acl_final_exec_prefix" 13308 13309 eval additional_includedir=\"$includedir\" 13310 eval additional_libdir=\"$libdir\" 13311 13312 exec_prefix="$acl_save_exec_prefix" 13313 prefix="$acl_save_prefix" 13314 13315 else 13316 additional_includedir="$withval/include" 13317 additional_libdir="$withval/$acl_libdirstem" 13318 fi 13319 fi 13320 13321fi 13322 13323 LIBICONV= 13324 LTLIBICONV= 13325 INCICONV= 13326 rpathdirs= 13327 ltrpathdirs= 13328 names_already_handled= 13329 names_next_round='iconv ' 13330 while test -n "$names_next_round"; do 13331 names_this_round="$names_next_round" 13332 names_next_round= 13333 for name in $names_this_round; do 13334 already_handled= 13335 for n in $names_already_handled; do 13336 if test "$n" = "$name"; then 13337 already_handled=yes 13338 break 13339 fi 13340 done 13341 if test -z "$already_handled"; then 13342 names_already_handled="$names_already_handled $name" 13343 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13344 eval value=\"\$HAVE_LIB$uppername\" 13345 if test -n "$value"; then 13346 if test "$value" = yes; then 13347 eval value=\"\$LIB$uppername\" 13348 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13349 eval value=\"\$LTLIB$uppername\" 13350 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13351 else 13352 : 13353 fi 13354 else 13355 found_dir= 13356 found_la= 13357 found_so= 13358 found_a= 13359 if test $use_additional = yes; then 13360 if test -n "$shlibext" \ 13361 && { test -f "$additional_libdir/lib$name.$shlibext" \ 13362 || { test "$shlibext" = dll \ 13363 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 13364 found_dir="$additional_libdir" 13365 if test -f "$additional_libdir/lib$name.$shlibext"; then 13366 found_so="$additional_libdir/lib$name.$shlibext" 13367 else 13368 found_so="$additional_libdir/lib$name.dll.a" 13369 fi 13370 if test -f "$additional_libdir/lib$name.la"; then 13371 found_la="$additional_libdir/lib$name.la" 13372 fi 13373 else 13374 if test -f "$additional_libdir/lib$name.$libext"; then 13375 found_dir="$additional_libdir" 13376 found_a="$additional_libdir/lib$name.$libext" 13377 if test -f "$additional_libdir/lib$name.la"; then 13378 found_la="$additional_libdir/lib$name.la" 13379 fi 13380 fi 13381 fi 13382 fi 13383 if test "X$found_dir" = "X"; then 13384 for x in $LDFLAGS $LTLIBICONV; do 13385 13386 acl_save_prefix="$prefix" 13387 prefix="$acl_final_prefix" 13388 acl_save_exec_prefix="$exec_prefix" 13389 exec_prefix="$acl_final_exec_prefix" 13390 eval x=\"$x\" 13391 exec_prefix="$acl_save_exec_prefix" 13392 prefix="$acl_save_prefix" 13393 13394 case "$x" in 13395 -L*) 13396 dir=`echo "X$x" | sed -e 's/^X-L//'` 13397 if test -n "$shlibext" \ 13398 && { test -f "$dir/lib$name.$shlibext" \ 13399 || { test "$shlibext" = dll \ 13400 && test -f "$dir/lib$name.dll.a"; }; }; then 13401 found_dir="$dir" 13402 if test -f "$dir/lib$name.$shlibext"; then 13403 found_so="$dir/lib$name.$shlibext" 13404 else 13405 found_so="$dir/lib$name.dll.a" 13406 fi 13407 if test -f "$dir/lib$name.la"; then 13408 found_la="$dir/lib$name.la" 13409 fi 13410 else 13411 if test -f "$dir/lib$name.$libext"; then 13412 found_dir="$dir" 13413 found_a="$dir/lib$name.$libext" 13414 if test -f "$dir/lib$name.la"; then 13415 found_la="$dir/lib$name.la" 13416 fi 13417 fi 13418 fi 13419 ;; 13420 esac 13421 if test "X$found_dir" != "X"; then 13422 break 13423 fi 13424 done 13425 fi 13426 if test "X$found_dir" != "X"; then 13427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13428 if test "X$found_so" != "X"; then 13429 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 13430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13431 else 13432 haveit= 13433 for x in $ltrpathdirs; do 13434 if test "X$x" = "X$found_dir"; then 13435 haveit=yes 13436 break 13437 fi 13438 done 13439 if test -z "$haveit"; then 13440 ltrpathdirs="$ltrpathdirs $found_dir" 13441 fi 13442 if test "$hardcode_direct" = yes; then 13443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13444 else 13445 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13447 haveit= 13448 for x in $rpathdirs; do 13449 if test "X$x" = "X$found_dir"; then 13450 haveit=yes 13451 break 13452 fi 13453 done 13454 if test -z "$haveit"; then 13455 rpathdirs="$rpathdirs $found_dir" 13456 fi 13457 else 13458 haveit= 13459 for x in $LDFLAGS $LIBICONV; do 13460 13461 acl_save_prefix="$prefix" 13462 prefix="$acl_final_prefix" 13463 acl_save_exec_prefix="$exec_prefix" 13464 exec_prefix="$acl_final_exec_prefix" 13465 eval x=\"$x\" 13466 exec_prefix="$acl_save_exec_prefix" 13467 prefix="$acl_save_prefix" 13468 13469 if test "X$x" = "X-L$found_dir"; then 13470 haveit=yes 13471 break 13472 fi 13473 done 13474 if test -z "$haveit"; then 13475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13476 fi 13477 if test "$hardcode_minus_L" != no; then 13478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13479 else 13480 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13481 fi 13482 fi 13483 fi 13484 fi 13485 else 13486 if test "X$found_a" != "X"; then 13487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13488 else 13489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13490 fi 13491 fi 13492 additional_includedir= 13493 case "$found_dir" in 13494 */$acl_libdirstem | */$acl_libdirstem/) 13495 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13496 additional_includedir="$basedir/include" 13497 ;; 13498 esac 13499 if test "X$additional_includedir" != "X"; then 13500 if test "X$additional_includedir" != "X/usr/include"; then 13501 haveit= 13502 if test "X$additional_includedir" = "X/usr/local/include"; then 13503 if test -n "$GCC"; then 13504 case $host_os in 13505 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13506 esac 13507 fi 13508 fi 13509 if test -z "$haveit"; then 13510 for x in $CPPFLAGS $INCICONV; do 13511 13512 acl_save_prefix="$prefix" 13513 prefix="$acl_final_prefix" 13514 acl_save_exec_prefix="$exec_prefix" 13515 exec_prefix="$acl_final_exec_prefix" 13516 eval x=\"$x\" 13517 exec_prefix="$acl_save_exec_prefix" 13518 prefix="$acl_save_prefix" 13519 13520 if test "X$x" = "X-I$additional_includedir"; then 13521 haveit=yes 13522 break 13523 fi 13524 done 13525 if test -z "$haveit"; then 13526 if test -d "$additional_includedir"; then 13527 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13528 fi 13529 fi 13530 fi 13531 fi 13532 fi 13533 if test -n "$found_la"; then 13534 save_libdir="$libdir" 13535 case "$found_la" in 13536 */* | *\\*) . "$found_la" ;; 13537 *) . "./$found_la" ;; 13538 esac 13539 libdir="$save_libdir" 13540 for dep in $dependency_libs; do 13541 case "$dep" in 13542 -L*) 13543 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13544 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 13545 haveit= 13546 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 13547 if test -n "$GCC"; then 13548 case $host_os in 13549 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13550 esac 13551 fi 13552 fi 13553 if test -z "$haveit"; then 13554 haveit= 13555 for x in $LDFLAGS $LIBICONV; do 13556 13557 acl_save_prefix="$prefix" 13558 prefix="$acl_final_prefix" 13559 acl_save_exec_prefix="$exec_prefix" 13560 exec_prefix="$acl_final_exec_prefix" 13561 eval x=\"$x\" 13562 exec_prefix="$acl_save_exec_prefix" 13563 prefix="$acl_save_prefix" 13564 13565 if test "X$x" = "X-L$additional_libdir"; then 13566 haveit=yes 13567 break 13568 fi 13569 done 13570 if test -z "$haveit"; then 13571 if test -d "$additional_libdir"; then 13572 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13573 fi 13574 fi 13575 haveit= 13576 for x in $LDFLAGS $LTLIBICONV; do 13577 13578 acl_save_prefix="$prefix" 13579 prefix="$acl_final_prefix" 13580 acl_save_exec_prefix="$exec_prefix" 13581 exec_prefix="$acl_final_exec_prefix" 13582 eval x=\"$x\" 13583 exec_prefix="$acl_save_exec_prefix" 13584 prefix="$acl_save_prefix" 13585 13586 if test "X$x" = "X-L$additional_libdir"; then 13587 haveit=yes 13588 break 13589 fi 13590 done 13591 if test -z "$haveit"; then 13592 if test -d "$additional_libdir"; then 13593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13594 fi 13595 fi 13596 fi 13597 fi 13598 ;; 13599 -R*) 13600 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13601 if test "$enable_rpath" != no; then 13602 haveit= 13603 for x in $rpathdirs; do 13604 if test "X$x" = "X$dir"; then 13605 haveit=yes 13606 break 13607 fi 13608 done 13609 if test -z "$haveit"; then 13610 rpathdirs="$rpathdirs $dir" 13611 fi 13612 haveit= 13613 for x in $ltrpathdirs; do 13614 if test "X$x" = "X$dir"; then 13615 haveit=yes 13616 break 13617 fi 13618 done 13619 if test -z "$haveit"; then 13620 ltrpathdirs="$ltrpathdirs $dir" 13621 fi 13622 fi 13623 ;; 13624 -l*) 13625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13626 ;; 13627 *.la) 13628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13629 ;; 13630 *) 13631 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13633 ;; 13634 esac 13635 done 13636 fi 13637 else 13638 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13640 fi 13641 fi 13642 fi 13643 done 13644 done 13645 if test "X$rpathdirs" != "X"; then 13646 if test -n "$hardcode_libdir_separator"; then 13647 alldirs= 13648 for found_dir in $rpathdirs; do 13649 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13650 done 13651 acl_save_libdir="$libdir" 13652 libdir="$alldirs" 13653 eval flag=\"$hardcode_libdir_flag_spec\" 13654 libdir="$acl_save_libdir" 13655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13656 else 13657 for found_dir in $rpathdirs; do 13658 acl_save_libdir="$libdir" 13659 libdir="$found_dir" 13660 eval flag=\"$hardcode_libdir_flag_spec\" 13661 libdir="$acl_save_libdir" 13662 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13663 done 13664 fi 13665 fi 13666 if test "X$ltrpathdirs" != "X"; then 13667 for found_dir in $ltrpathdirs; do 13668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13669 done 13670 fi 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 13697$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 13698if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 13699 $as_echo_n "(cached) " >&6 13700else 13701 gt_save_LIBS="$LIBS" 13702 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13704/* end confdefs.h. */ 13705#include <CoreFoundation/CFPreferences.h> 13706int 13707main () 13708{ 13709CFPreferencesCopyAppValue(NULL, NULL) 13710 ; 13711 return 0; 13712} 13713_ACEOF 13714if ac_fn_c_try_link "$LINENO"; then : 13715 gt_cv_func_CFPreferencesCopyAppValue=yes 13716else 13717 gt_cv_func_CFPreferencesCopyAppValue=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext \ 13720 conftest$ac_exeext conftest.$ac_ext 13721 LIBS="$gt_save_LIBS" 13722fi 13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 13724$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 13725 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 13726 13727$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 13728 13729 fi 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 13731$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 13732if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 13733 $as_echo_n "(cached) " >&6 13734else 13735 gt_save_LIBS="$LIBS" 13736 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13738/* end confdefs.h. */ 13739#include <CoreFoundation/CFLocale.h> 13740int 13741main () 13742{ 13743CFLocaleCopyCurrent(); 13744 ; 13745 return 0; 13746} 13747_ACEOF 13748if ac_fn_c_try_link "$LINENO"; then : 13749 gt_cv_func_CFLocaleCopyCurrent=yes 13750else 13751 gt_cv_func_CFLocaleCopyCurrent=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext \ 13754 conftest$ac_exeext conftest.$ac_ext 13755 LIBS="$gt_save_LIBS" 13756fi 13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 13758$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 13759 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13760 13761$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 13762 13763 fi 13764 INTL_MACOSX_LIBS= 13765 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13766 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 13767 fi 13768 13769 13770 13771 13772 13773 13774 LIBINTL= 13775 LTLIBINTL= 13776 POSUB= 13777 13778 case " $gt_needs " in 13779 *" need-formatstring-macros "*) gt_api_version=3 ;; 13780 *" need-ngettext "*) gt_api_version=2 ;; 13781 *) gt_api_version=1 ;; 13782 esac 13783 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 13784 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 13785 13786 if test "$USE_NLS" = "yes"; then 13787 gt_use_preinstalled_gnugettext=no 13788 13789 13790 if test $gt_api_version -ge 3; then 13791 gt_revision_test_code='[ 13792#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13793#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 13794#endif 13795typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 13796]' 13797 else 13798 gt_revision_test_code= 13799 fi 13800 if test $gt_api_version -ge 2; then 13801 gt_expression_test_code=' + * ngettext ("", "", 0)' 13802 else 13803 gt_expression_test_code= 13804 fi 13805 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 13807$as_echo_n "checking for GNU gettext in libc... " >&6; } 13808if eval \${$gt_func_gnugettext_libc+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13812/* end confdefs.h. */ 13813#include <libintl.h> 13814$gt_revision_test_code 13815extern int _nl_msg_cat_cntr; 13816extern int *_nl_domain_bindings; 13817int 13818main () 13819{ 13820bindtextdomain ("", ""); 13821return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 13822 ; 13823 return 0; 13824} 13825_ACEOF 13826if ac_fn_c_try_link "$LINENO"; then : 13827 eval "$gt_func_gnugettext_libc=yes" 13828else 13829 eval "$gt_func_gnugettext_libc=no" 13830fi 13831rm -f core conftest.err conftest.$ac_objext \ 13832 conftest$ac_exeext conftest.$ac_ext 13833fi 13834eval ac_res=\$$gt_func_gnugettext_libc 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13836$as_echo "$ac_res" >&6; } 13837 13838 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 13839 13840 13841 13842 13843 13844 am_save_CPPFLAGS="$CPPFLAGS" 13845 13846 for element in $INCICONV; do 13847 haveit= 13848 for x in $CPPFLAGS; do 13849 13850 acl_save_prefix="$prefix" 13851 prefix="$acl_final_prefix" 13852 acl_save_exec_prefix="$exec_prefix" 13853 exec_prefix="$acl_final_exec_prefix" 13854 eval x=\"$x\" 13855 exec_prefix="$acl_save_exec_prefix" 13856 prefix="$acl_save_prefix" 13857 13858 if test "X$x" = "X$element"; then 13859 haveit=yes 13860 break 13861 fi 13862 done 13863 if test -z "$haveit"; then 13864 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13865 fi 13866 done 13867 13868 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 13870$as_echo_n "checking for iconv... " >&6; } 13871if ${am_cv_func_iconv+:} false; then : 13872 $as_echo_n "(cached) " >&6 13873else 13874 13875 am_cv_func_iconv="no, consider installing GNU libiconv" 13876 am_cv_lib_iconv=no 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879#include <stdlib.h> 13880#include <iconv.h> 13881int 13882main () 13883{ 13884iconv_t cd = iconv_open("",""); 13885 iconv(cd,NULL,NULL,NULL,NULL); 13886 iconv_close(cd); 13887 ; 13888 return 0; 13889} 13890_ACEOF 13891if ac_fn_c_try_link "$LINENO"; then : 13892 am_cv_func_iconv=yes 13893fi 13894rm -f core conftest.err conftest.$ac_objext \ 13895 conftest$ac_exeext conftest.$ac_ext 13896 if test "$am_cv_func_iconv" != yes; then 13897 am_save_LIBS="$LIBS" 13898 LIBS="$LIBS $LIBICONV" 13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13900/* end confdefs.h. */ 13901#include <stdlib.h> 13902#include <iconv.h> 13903int 13904main () 13905{ 13906iconv_t cd = iconv_open("",""); 13907 iconv(cd,NULL,NULL,NULL,NULL); 13908 iconv_close(cd); 13909 ; 13910 return 0; 13911} 13912_ACEOF 13913if ac_fn_c_try_link "$LINENO"; then : 13914 am_cv_lib_iconv=yes 13915 am_cv_func_iconv=yes 13916fi 13917rm -f core conftest.err conftest.$ac_objext \ 13918 conftest$ac_exeext conftest.$ac_ext 13919 LIBS="$am_save_LIBS" 13920 fi 13921 13922fi 13923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13924$as_echo "$am_cv_func_iconv" >&6; } 13925 if test "$am_cv_func_iconv" = yes; then 13926 13927$as_echo "#define HAVE_ICONV 1" >>confdefs.h 13928 13929 fi 13930 if test "$am_cv_lib_iconv" = yes; then 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13932$as_echo_n "checking how to link with libiconv... " >&6; } 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13934$as_echo "$LIBICONV" >&6; } 13935 else 13936 CPPFLAGS="$am_save_CPPFLAGS" 13937 LIBICONV= 13938 LTLIBICONV= 13939 fi 13940 13941 13942 13943 13944 13945 13946 13947 use_additional=yes 13948 13949 acl_save_prefix="$prefix" 13950 prefix="$acl_final_prefix" 13951 acl_save_exec_prefix="$exec_prefix" 13952 exec_prefix="$acl_final_exec_prefix" 13953 13954 eval additional_includedir=\"$includedir\" 13955 eval additional_libdir=\"$libdir\" 13956 13957 exec_prefix="$acl_save_exec_prefix" 13958 prefix="$acl_save_prefix" 13959 13960 13961# Check whether --with-libintl-prefix was given. 13962if test "${with_libintl_prefix+set}" = set; then : 13963 withval=$with_libintl_prefix; 13964 if test "X$withval" = "Xno"; then 13965 use_additional=no 13966 else 13967 if test "X$withval" = "X"; then 13968 13969 acl_save_prefix="$prefix" 13970 prefix="$acl_final_prefix" 13971 acl_save_exec_prefix="$exec_prefix" 13972 exec_prefix="$acl_final_exec_prefix" 13973 13974 eval additional_includedir=\"$includedir\" 13975 eval additional_libdir=\"$libdir\" 13976 13977 exec_prefix="$acl_save_exec_prefix" 13978 prefix="$acl_save_prefix" 13979 13980 else 13981 additional_includedir="$withval/include" 13982 additional_libdir="$withval/$acl_libdirstem" 13983 fi 13984 fi 13985 13986fi 13987 13988 LIBINTL= 13989 LTLIBINTL= 13990 INCINTL= 13991 rpathdirs= 13992 ltrpathdirs= 13993 names_already_handled= 13994 names_next_round='intl ' 13995 while test -n "$names_next_round"; do 13996 names_this_round="$names_next_round" 13997 names_next_round= 13998 for name in $names_this_round; do 13999 already_handled= 14000 for n in $names_already_handled; do 14001 if test "$n" = "$name"; then 14002 already_handled=yes 14003 break 14004 fi 14005 done 14006 if test -z "$already_handled"; then 14007 names_already_handled="$names_already_handled $name" 14008 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 14009 eval value=\"\$HAVE_LIB$uppername\" 14010 if test -n "$value"; then 14011 if test "$value" = yes; then 14012 eval value=\"\$LIB$uppername\" 14013 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 14014 eval value=\"\$LTLIB$uppername\" 14015 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 14016 else 14017 : 14018 fi 14019 else 14020 found_dir= 14021 found_la= 14022 found_so= 14023 found_a= 14024 if test $use_additional = yes; then 14025 if test -n "$shlibext" \ 14026 && { test -f "$additional_libdir/lib$name.$shlibext" \ 14027 || { test "$shlibext" = dll \ 14028 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 14029 found_dir="$additional_libdir" 14030 if test -f "$additional_libdir/lib$name.$shlibext"; then 14031 found_so="$additional_libdir/lib$name.$shlibext" 14032 else 14033 found_so="$additional_libdir/lib$name.dll.a" 14034 fi 14035 if test -f "$additional_libdir/lib$name.la"; then 14036 found_la="$additional_libdir/lib$name.la" 14037 fi 14038 else 14039 if test -f "$additional_libdir/lib$name.$libext"; then 14040 found_dir="$additional_libdir" 14041 found_a="$additional_libdir/lib$name.$libext" 14042 if test -f "$additional_libdir/lib$name.la"; then 14043 found_la="$additional_libdir/lib$name.la" 14044 fi 14045 fi 14046 fi 14047 fi 14048 if test "X$found_dir" = "X"; then 14049 for x in $LDFLAGS $LTLIBINTL; do 14050 14051 acl_save_prefix="$prefix" 14052 prefix="$acl_final_prefix" 14053 acl_save_exec_prefix="$exec_prefix" 14054 exec_prefix="$acl_final_exec_prefix" 14055 eval x=\"$x\" 14056 exec_prefix="$acl_save_exec_prefix" 14057 prefix="$acl_save_prefix" 14058 14059 case "$x" in 14060 -L*) 14061 dir=`echo "X$x" | sed -e 's/^X-L//'` 14062 if test -n "$shlibext" \ 14063 && { test -f "$dir/lib$name.$shlibext" \ 14064 || { test "$shlibext" = dll \ 14065 && test -f "$dir/lib$name.dll.a"; }; }; then 14066 found_dir="$dir" 14067 if test -f "$dir/lib$name.$shlibext"; then 14068 found_so="$dir/lib$name.$shlibext" 14069 else 14070 found_so="$dir/lib$name.dll.a" 14071 fi 14072 if test -f "$dir/lib$name.la"; then 14073 found_la="$dir/lib$name.la" 14074 fi 14075 else 14076 if test -f "$dir/lib$name.$libext"; then 14077 found_dir="$dir" 14078 found_a="$dir/lib$name.$libext" 14079 if test -f "$dir/lib$name.la"; then 14080 found_la="$dir/lib$name.la" 14081 fi 14082 fi 14083 fi 14084 ;; 14085 esac 14086 if test "X$found_dir" != "X"; then 14087 break 14088 fi 14089 done 14090 fi 14091 if test "X$found_dir" != "X"; then 14092 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14093 if test "X$found_so" != "X"; then 14094 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 14095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14096 else 14097 haveit= 14098 for x in $ltrpathdirs; do 14099 if test "X$x" = "X$found_dir"; then 14100 haveit=yes 14101 break 14102 fi 14103 done 14104 if test -z "$haveit"; then 14105 ltrpathdirs="$ltrpathdirs $found_dir" 14106 fi 14107 if test "$hardcode_direct" = yes; then 14108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14109 else 14110 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14112 haveit= 14113 for x in $rpathdirs; do 14114 if test "X$x" = "X$found_dir"; then 14115 haveit=yes 14116 break 14117 fi 14118 done 14119 if test -z "$haveit"; then 14120 rpathdirs="$rpathdirs $found_dir" 14121 fi 14122 else 14123 haveit= 14124 for x in $LDFLAGS $LIBINTL; do 14125 14126 acl_save_prefix="$prefix" 14127 prefix="$acl_final_prefix" 14128 acl_save_exec_prefix="$exec_prefix" 14129 exec_prefix="$acl_final_exec_prefix" 14130 eval x=\"$x\" 14131 exec_prefix="$acl_save_exec_prefix" 14132 prefix="$acl_save_prefix" 14133 14134 if test "X$x" = "X-L$found_dir"; then 14135 haveit=yes 14136 break 14137 fi 14138 done 14139 if test -z "$haveit"; then 14140 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14141 fi 14142 if test "$hardcode_minus_L" != no; then 14143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14144 else 14145 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14146 fi 14147 fi 14148 fi 14149 fi 14150 else 14151 if test "X$found_a" != "X"; then 14152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14153 else 14154 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14155 fi 14156 fi 14157 additional_includedir= 14158 case "$found_dir" in 14159 */$acl_libdirstem | */$acl_libdirstem/) 14160 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 14161 additional_includedir="$basedir/include" 14162 ;; 14163 esac 14164 if test "X$additional_includedir" != "X"; then 14165 if test "X$additional_includedir" != "X/usr/include"; then 14166 haveit= 14167 if test "X$additional_includedir" = "X/usr/local/include"; then 14168 if test -n "$GCC"; then 14169 case $host_os in 14170 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14171 esac 14172 fi 14173 fi 14174 if test -z "$haveit"; then 14175 for x in $CPPFLAGS $INCINTL; do 14176 14177 acl_save_prefix="$prefix" 14178 prefix="$acl_final_prefix" 14179 acl_save_exec_prefix="$exec_prefix" 14180 exec_prefix="$acl_final_exec_prefix" 14181 eval x=\"$x\" 14182 exec_prefix="$acl_save_exec_prefix" 14183 prefix="$acl_save_prefix" 14184 14185 if test "X$x" = "X-I$additional_includedir"; then 14186 haveit=yes 14187 break 14188 fi 14189 done 14190 if test -z "$haveit"; then 14191 if test -d "$additional_includedir"; then 14192 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14193 fi 14194 fi 14195 fi 14196 fi 14197 fi 14198 if test -n "$found_la"; then 14199 save_libdir="$libdir" 14200 case "$found_la" in 14201 */* | *\\*) . "$found_la" ;; 14202 *) . "./$found_la" ;; 14203 esac 14204 libdir="$save_libdir" 14205 for dep in $dependency_libs; do 14206 case "$dep" in 14207 -L*) 14208 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14209 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 14210 haveit= 14211 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 14212 if test -n "$GCC"; then 14213 case $host_os in 14214 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14215 esac 14216 fi 14217 fi 14218 if test -z "$haveit"; then 14219 haveit= 14220 for x in $LDFLAGS $LIBINTL; do 14221 14222 acl_save_prefix="$prefix" 14223 prefix="$acl_final_prefix" 14224 acl_save_exec_prefix="$exec_prefix" 14225 exec_prefix="$acl_final_exec_prefix" 14226 eval x=\"$x\" 14227 exec_prefix="$acl_save_exec_prefix" 14228 prefix="$acl_save_prefix" 14229 14230 if test "X$x" = "X-L$additional_libdir"; then 14231 haveit=yes 14232 break 14233 fi 14234 done 14235 if test -z "$haveit"; then 14236 if test -d "$additional_libdir"; then 14237 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14238 fi 14239 fi 14240 haveit= 14241 for x in $LDFLAGS $LTLIBINTL; do 14242 14243 acl_save_prefix="$prefix" 14244 prefix="$acl_final_prefix" 14245 acl_save_exec_prefix="$exec_prefix" 14246 exec_prefix="$acl_final_exec_prefix" 14247 eval x=\"$x\" 14248 exec_prefix="$acl_save_exec_prefix" 14249 prefix="$acl_save_prefix" 14250 14251 if test "X$x" = "X-L$additional_libdir"; then 14252 haveit=yes 14253 break 14254 fi 14255 done 14256 if test -z "$haveit"; then 14257 if test -d "$additional_libdir"; then 14258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14259 fi 14260 fi 14261 fi 14262 fi 14263 ;; 14264 -R*) 14265 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14266 if test "$enable_rpath" != no; then 14267 haveit= 14268 for x in $rpathdirs; do 14269 if test "X$x" = "X$dir"; then 14270 haveit=yes 14271 break 14272 fi 14273 done 14274 if test -z "$haveit"; then 14275 rpathdirs="$rpathdirs $dir" 14276 fi 14277 haveit= 14278 for x in $ltrpathdirs; do 14279 if test "X$x" = "X$dir"; then 14280 haveit=yes 14281 break 14282 fi 14283 done 14284 if test -z "$haveit"; then 14285 ltrpathdirs="$ltrpathdirs $dir" 14286 fi 14287 fi 14288 ;; 14289 -l*) 14290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14291 ;; 14292 *.la) 14293 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14294 ;; 14295 *) 14296 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14297 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14298 ;; 14299 esac 14300 done 14301 fi 14302 else 14303 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14305 fi 14306 fi 14307 fi 14308 done 14309 done 14310 if test "X$rpathdirs" != "X"; then 14311 if test -n "$hardcode_libdir_separator"; then 14312 alldirs= 14313 for found_dir in $rpathdirs; do 14314 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14315 done 14316 acl_save_libdir="$libdir" 14317 libdir="$alldirs" 14318 eval flag=\"$hardcode_libdir_flag_spec\" 14319 libdir="$acl_save_libdir" 14320 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14321 else 14322 for found_dir in $rpathdirs; do 14323 acl_save_libdir="$libdir" 14324 libdir="$found_dir" 14325 eval flag=\"$hardcode_libdir_flag_spec\" 14326 libdir="$acl_save_libdir" 14327 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14328 done 14329 fi 14330 fi 14331 if test "X$ltrpathdirs" != "X"; then 14332 for found_dir in $ltrpathdirs; do 14333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14334 done 14335 fi 14336 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14338$as_echo_n "checking for GNU gettext in libintl... " >&6; } 14339if eval \${$gt_func_gnugettext_libintl+:} false; then : 14340 $as_echo_n "(cached) " >&6 14341else 14342 gt_save_CPPFLAGS="$CPPFLAGS" 14343 CPPFLAGS="$CPPFLAGS $INCINTL" 14344 gt_save_LIBS="$LIBS" 14345 LIBS="$LIBS $LIBINTL" 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348#include <libintl.h> 14349$gt_revision_test_code 14350extern int _nl_msg_cat_cntr; 14351extern 14352#ifdef __cplusplus 14353"C" 14354#endif 14355const char *_nl_expand_alias (const char *); 14356int 14357main () 14358{ 14359bindtextdomain ("", ""); 14360return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14361 ; 14362 return 0; 14363} 14364_ACEOF 14365if ac_fn_c_try_link "$LINENO"; then : 14366 eval "$gt_func_gnugettext_libintl=yes" 14367else 14368 eval "$gt_func_gnugettext_libintl=no" 14369fi 14370rm -f core conftest.err conftest.$ac_objext \ 14371 conftest$ac_exeext conftest.$ac_ext 14372 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 14373 LIBS="$LIBS $LIBICONV" 14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14375/* end confdefs.h. */ 14376#include <libintl.h> 14377$gt_revision_test_code 14378extern int _nl_msg_cat_cntr; 14379extern 14380#ifdef __cplusplus 14381"C" 14382#endif 14383const char *_nl_expand_alias (const char *); 14384int 14385main () 14386{ 14387bindtextdomain ("", ""); 14388return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14389 ; 14390 return 0; 14391} 14392_ACEOF 14393if ac_fn_c_try_link "$LINENO"; then : 14394 LIBINTL="$LIBINTL $LIBICONV" 14395 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14396 eval "$gt_func_gnugettext_libintl=yes" 14397 14398fi 14399rm -f core conftest.err conftest.$ac_objext \ 14400 conftest$ac_exeext conftest.$ac_ext 14401 fi 14402 CPPFLAGS="$gt_save_CPPFLAGS" 14403 LIBS="$gt_save_LIBS" 14404fi 14405eval ac_res=\$$gt_func_gnugettext_libintl 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14407$as_echo "$ac_res" >&6; } 14408 fi 14409 14410 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 14411 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 14412 && test "$PACKAGE" != gettext-runtime \ 14413 && test "$PACKAGE" != gettext-tools; }; then 14414 gt_use_preinstalled_gnugettext=yes 14415 else 14416 LIBINTL= 14417 LTLIBINTL= 14418 INCINTL= 14419 fi 14420 14421 14422 14423 if test -n "$INTL_MACOSX_LIBS"; then 14424 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14425 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14426 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 14427 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 14428 fi 14429 fi 14430 14431 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14432 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14433 14434$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14435 14436 else 14437 USE_NLS=no 14438 fi 14439 fi 14440 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 14442$as_echo_n "checking whether to use NLS... " >&6; } 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14444$as_echo "$USE_NLS" >&6; } 14445 if test "$USE_NLS" = "yes"; then 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 14447$as_echo_n "checking where the gettext function comes from... " >&6; } 14448 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14449 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14450 gt_source="external libintl" 14451 else 14452 gt_source="libc" 14453 fi 14454 else 14455 gt_source="included intl directory" 14456 fi 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 14458$as_echo "$gt_source" >&6; } 14459 fi 14460 14461 if test "$USE_NLS" = "yes"; then 14462 14463 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14464 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 14466$as_echo_n "checking how to link with libintl... " >&6; } 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 14468$as_echo "$LIBINTL" >&6; } 14469 14470 for element in $INCINTL; do 14471 haveit= 14472 for x in $CPPFLAGS; do 14473 14474 acl_save_prefix="$prefix" 14475 prefix="$acl_final_prefix" 14476 acl_save_exec_prefix="$exec_prefix" 14477 exec_prefix="$acl_final_exec_prefix" 14478 eval x=\"$x\" 14479 exec_prefix="$acl_save_exec_prefix" 14480 prefix="$acl_save_prefix" 14481 14482 if test "X$x" = "X$element"; then 14483 haveit=yes 14484 break 14485 fi 14486 done 14487 if test -z "$haveit"; then 14488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14489 fi 14490 done 14491 14492 fi 14493 14494 14495$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14496 14497 14498$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 14499 14500 fi 14501 14502 POSUB=po 14503 fi 14504 14505 14506 14507 INTLLIBS="$LIBINTL" 14508 14509 14510 14511 14512 14513 14514 14515 if test x${USE_NLS} = xyes; then 14516 USE_NLS_TRUE= 14517 USE_NLS_FALSE='#' 14518else 14519 USE_NLS_TRUE='#' 14520 USE_NLS_FALSE= 14521fi 14522 14523 14524# create custom command-line --enable option 14525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS PPD files" >&5 14526$as_echo_n "checking whether to build CUPS PPD files... " >&6; } 14527# Check whether --enable-nls-macosx was given. 14528if test "${enable_nls_macosx+set}" = set; then : 14529 enableval=$enable_nls_macosx; case "${enableval}" in 14530 14531 yes) USE_NLS_OSX="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5 14532$as_echo "${USE_NLS_OSX}" >&6; } ;; 14533 no) USE_NLS_OSX="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5 14534$as_echo "${USE_NLS_OSX}" >&6; } ;; 14535 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14536$as_echo "unknown" >&6; } 14537 as_fn_error $? "bad value ${enableval} for --enable-nls-macosx" "$LINENO" 5 ;; 14538 14539 esac 14540else 14541 if test -z "${USE_NLS_OSX}" ; then 14542 USE_NLS_OSX="(automatic)" 14543 fi 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5 14545$as_echo "${USE_NLS_OSX}" >&6; } ; 14546fi 14547 14548if test -z "${USE_NLS_OSX}" ; then 14549 USE_NLS_OSX="(automatic)" 14550fi 14551 14552 14553USE_LEVEL3_PS=no 14554BUILD_CUPS_PPDS="${BUILD_CUPS}" 14555BUILD_TRANSLATED_CUPS_PPDS=no 14556BUILD_CUPS_1_2="no" 14557if test -n "${CUPS_CONFIG}" -a "${BUILD_CUPS}" = "yes" ; then 14558 cups_version=`${CUPS_CONFIG} --version | sed -e '1,$s/svn$/.0/'` 14559 cups_major=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).*/\1/'` 14560 cups_minor=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'` 14561 cups_point=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\3/'` 14562 if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 -o "$cups_point" -gt 14 ; then 14563 USE_LEVEL3_PS=yes 14564 fi 14565 if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 ; then 14566 BUILD_CUPS_PPDS="no" 14567 BUILD_CUPS_1_2="yes" 14568 fi 14569fi 14570 14571# create custom command-line --enable option 14572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS PPD files" >&5 14573$as_echo_n "checking whether to build CUPS PPD files... " >&6; } 14574# Check whether --enable-cups-ppds was given. 14575if test "${enable_cups_ppds+set}" = set; then : 14576 enableval=$enable_cups_ppds; case "${enableval}" in 14577 14578 yes) BUILD_CUPS_PPDS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5 14579$as_echo "${BUILD_CUPS_PPDS}" >&6; } ;; 14580 no) BUILD_CUPS_PPDS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5 14581$as_echo "${BUILD_CUPS_PPDS}" >&6; } ;; 14582 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14583$as_echo "unknown" >&6; } 14584 as_fn_error $? "bad value ${enableval} for --enable-cups-ppds" "$LINENO" 5 ;; 14585 14586 esac 14587else 14588 if test -z "${BUILD_CUPS_PPDS}" ; then 14589 BUILD_CUPS_PPDS="(automatic)" 14590 fi 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5 14592$as_echo "${BUILD_CUPS_PPDS}" >&6; } ; 14593fi 14594 14595if test -z "${BUILD_CUPS_PPDS}" ; then 14596 BUILD_CUPS_PPDS="(automatic)" 14597fi 14598 14599 14600# create custom command-line --enable option 14601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS 1.2 enhancements" >&5 14602$as_echo_n "checking whether to build CUPS 1.2 enhancements... " >&6; } 14603# Check whether --enable-cups-1_2-enhancements was given. 14604if test "${enable_cups_1_2_enhancements+set}" = set; then : 14605 enableval=$enable_cups_1_2_enhancements; case "${enableval}" in 14606 14607 yes) BUILD_CUPS_1_2="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5 14608$as_echo "${BUILD_CUPS_1_2}" >&6; } ;; 14609 no) BUILD_CUPS_1_2="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5 14610$as_echo "${BUILD_CUPS_1_2}" >&6; } ;; 14611 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14612$as_echo "unknown" >&6; } 14613 as_fn_error $? "bad value ${enableval} for --enable-cups-1_2-enhancements" "$LINENO" 5 ;; 14614 14615 esac 14616else 14617 if test -z "${BUILD_CUPS_1_2}" ; then 14618 BUILD_CUPS_1_2="(automatic)" 14619 fi 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5 14621$as_echo "${BUILD_CUPS_1_2}" >&6; } ; 14622fi 14623 14624if test -z "${BUILD_CUPS_1_2}" ; then 14625 BUILD_CUPS_1_2="(automatic)" 14626fi 14627 14628 14629if test "$USE_NLS" != no -a "$BUILD_CUPS_PPDS" = yes ; then 14630 BUILD_TRANSLATED_CUPS_PPDS="yes" 14631fi 14632 14633# create custom command-line --enable option 14634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build translated CUPS PPD files" >&5 14635$as_echo_n "checking whether to build translated CUPS PPD files... " >&6; } 14636# Check whether --enable-translated-cups-ppds was given. 14637if test "${enable_translated_cups_ppds+set}" = set; then : 14638 enableval=$enable_translated_cups_ppds; case "${enableval}" in 14639 14640 yes) BUILD_TRANSLATED_CUPS_PPDS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5 14641$as_echo "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;; 14642 no) BUILD_TRANSLATED_CUPS_PPDS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5 14643$as_echo "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;; 14644 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14645$as_echo "unknown" >&6; } 14646 as_fn_error $? "bad value ${enableval} for --enable-translated-cups-ppds" "$LINENO" 5 ;; 14647 14648 esac 14649else 14650 if test -z "${BUILD_TRANSLATED_CUPS_PPDS}" ; then 14651 BUILD_TRANSLATED_CUPS_PPDS="(automatic)" 14652 fi 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5 14654$as_echo "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ; 14655fi 14656 14657if test -z "${BUILD_TRANSLATED_CUPS_PPDS}" ; then 14658 BUILD_TRANSLATED_CUPS_PPDS="(automatic)" 14659fi 14660 14661 14662if test "$BUILD_CUPS_1_2" = yes -a "$BUILD_TRANSLATED_CUPS_PPDS" = yes ; then 14663 BUILD_GLOBALIZED_CUPS_PPDS=yes 14664else 14665 BUILD_GLOBALIZED_CUPS_PPDS=no 14666fi 14667 14668# create custom command-line --enable option 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build globalized CUPS PPD files" >&5 14670$as_echo_n "checking whether to build globalized CUPS PPD files... " >&6; } 14671# Check whether --enable-globalized-cups-ppds was given. 14672if test "${enable_globalized_cups_ppds+set}" = set; then : 14673 enableval=$enable_globalized_cups_ppds; case "${enableval}" in 14674 14675 yes) BUILD_GLOBALIZED_CUPS_PPDS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5 14676$as_echo "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;; 14677 no) BUILD_GLOBALIZED_CUPS_PPDS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5 14678$as_echo "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;; 14679 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14680$as_echo "unknown" >&6; } 14681 as_fn_error $? "bad value ${enableval} for --enable-globalized-cups-ppds" "$LINENO" 5 ;; 14682 14683 esac 14684else 14685 if test -z "${BUILD_GLOBALIZED_CUPS_PPDS}" ; then 14686 BUILD_GLOBALIZED_CUPS_PPDS="(automatic)" 14687 fi 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5 14689$as_echo "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ; 14690fi 14691 14692if test -z "${BUILD_GLOBALIZED_CUPS_PPDS}" ; then 14693 BUILD_GLOBALIZED_CUPS_PPDS="(automatic)" 14694fi 14695 14696 14697# create custom command-line --enable option 14698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build simplified CUPS PPD files" >&5 14699$as_echo_n "checking whether to build simplified CUPS PPD files... " >&6; } 14700# Check whether --enable-simplified-cups-ppds was given. 14701if test "${enable_simplified_cups_ppds+set}" = set; then : 14702 enableval=$enable_simplified_cups_ppds; case "${enableval}" in 14703 14704 yes) WHICH_PPDS="-a"; BUILD_SIMPLIFIED_CUPS_PPDS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14705$as_echo "yes" >&6; } ;; 14706 no) WHICH_PPDS=""; BUILD_SIMPLIFIED_CUPS_PPDS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14707$as_echo "no" >&6; } ;; 14708 only) WHICH_PPDS="-s"; BUILD_SIMPLIFIED_CUPS_PPDS=only; { $as_echo "$as_me:${as_lineno-$LINENO}: result: only" >&5 14709$as_echo "only" >&6; } ;; 14710 *) as_fn_error $? "${enableval}: not a valid option ('yes', 'no', or 'only')" "$LINENO" 5 ;; 14711 14712 esac 14713else 14714 if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS}" ; then 14715 BUILD_SIMPLIFIED_CUPS_PPDS="no" 14716 fi 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_SIMPLIFIED_CUPS_PPDS}" >&5 14718$as_echo "${BUILD_SIMPLIFIED_CUPS_PPDS}" >&6; } ; 14719fi 14720 14721if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS}" ; then 14722 BUILD_SIMPLIFIED_CUPS_PPDS="no" 14723fi 14724 14725 14726# create custom command-line --enable option 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place CUPS PPD files at top level" >&5 14728$as_echo_n "checking whether to place CUPS PPD files at top level... " >&6; } 14729# Check whether --enable-cups-ppds-at-top-level was given. 14730if test "${enable_cups_ppds_at_top_level+set}" = set; then : 14731 enableval=$enable_cups_ppds_at_top_level; case "${enableval}" in 14732 14733 yes) CUPS_PPDS_AT_TOP_LEVEL="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5 14734$as_echo "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;; 14735 no) CUPS_PPDS_AT_TOP_LEVEL="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5 14736$as_echo "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;; 14737 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14738$as_echo "unknown" >&6; } 14739 as_fn_error $? "bad value ${enableval} for --enable-cups-ppds-at-top-level" "$LINENO" 5 ;; 14740 14741 esac 14742else 14743 if test -z "${CUPS_PPDS_AT_TOP_LEVEL}" ; then 14744 CUPS_PPDS_AT_TOP_LEVEL="no" 14745 fi 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5 14747$as_echo "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ; 14748fi 14749 14750if test -z "${CUPS_PPDS_AT_TOP_LEVEL}" ; then 14751 CUPS_PPDS_AT_TOP_LEVEL="no" 14752fi 14753 14754 14755# create custom command-line --enable option 14756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate PostScript level 3 PPD files" >&5 14757$as_echo_n "checking whether to generate PostScript level 3 PPD files... " >&6; } 14758# Check whether --enable-cups-level3-ppds was given. 14759if test "${enable_cups_level3_ppds+set}" = set; then : 14760 enableval=$enable_cups_level3_ppds; case "${enableval}" in 14761 14762 yes) USE_LEVEL3_PS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5 14763$as_echo "${USE_LEVEL3_PS}" >&6; } ;; 14764 no) USE_LEVEL3_PS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5 14765$as_echo "${USE_LEVEL3_PS}" >&6; } ;; 14766 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14767$as_echo "unknown" >&6; } 14768 as_fn_error $? "bad value ${enableval} for --enable-cups-level3-ppds" "$LINENO" 5 ;; 14769 14770 esac 14771else 14772 if test -z "${USE_LEVEL3_PS}" ; then 14773 USE_LEVEL3_PS="(automatic)" 14774 fi 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5 14776$as_echo "${USE_LEVEL3_PS}" >&6; } ; 14777fi 14778 14779if test -z "${USE_LEVEL3_PS}" ; then 14780 USE_LEVEL3_PS="(automatic)" 14781fi 14782 14783 14784STATIC_GENPPD="$enable_static" 14785# create custom command-line --enable option 14786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a statically-linked cups-genppd and rastertogutenprint. WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!" >&5 14787$as_echo_n "checking whether to build a statically-linked cups-genppd and rastertogutenprint. WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!... " >&6; } 14788# Check whether --enable-static-genppd was given. 14789if test "${enable_static_genppd+set}" = set; then : 14790 enableval=$enable_static_genppd; case "${enableval}" in 14791 14792 yes) STATIC_GENPPD="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5 14793$as_echo "${STATIC_GENPPD}" >&6; } ;; 14794 no) STATIC_GENPPD="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5 14795$as_echo "${STATIC_GENPPD}" >&6; } ;; 14796 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14797$as_echo "unknown" >&6; } 14798 as_fn_error $? "bad value ${enableval} for --enable-static-genppd" "$LINENO" 5 ;; 14799 14800 esac 14801else 14802 if test -z "${STATIC_GENPPD}" ; then 14803 STATIC_GENPPD="(automatic)" 14804 fi 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5 14806$as_echo "${STATIC_GENPPD}" >&6; } ; 14807fi 14808 14809if test -z "${STATIC_GENPPD}" ; then 14810 STATIC_GENPPD="(automatic)" 14811fi 14812 14813 14814ENABLE_STATIC="$enable_static" 14815 14816cat >>confdefs.h <<_ACEOF 14817#define ENABLE_STATIC "${ENABLE_STATIC}" 14818_ACEOF 14819 14820 14821 14822ENABLE_SHARED="$enable_shared" 14823 14824cat >>confdefs.h <<_ACEOF 14825#define ENABLE_SHARED "${ENABLE_SHARED}" 14826_ACEOF 14827 14828 14829 14830# create custom command-line --with option 14831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable loadable modules" >&5 14832$as_echo_n "checking whether to enable loadable modules... " >&6; } 14833 14834# Check whether --with-modules was given. 14835if test "${with_modules+set}" = set; then : 14836 withval=$with_modules; case "${withval}" in 14837 14838 yes) WITH_MODULES="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14839$as_echo "yes" >&6; } ;; 14840 no) WITH_MODULES="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14841$as_echo "no" >&6; } ;; 14842 ltdl) WITH_MODULES="ltdl"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5 14843$as_echo "ltdl" >&6; } ;; 14844 dlopen) WITH_MODULES="dlopen"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5 14845$as_echo "dlopen" >&6; } ;; 14846 static) WITH_MODULES="static"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 14847$as_echo "static" >&6; } ;; 14848 *) as_fn_error $? "${withval}: not a valid module loader" "$LINENO" 5 ;; 14849 14850 esac 14851else 14852 if test -z "${WITH_MODULES}" ; then 14853 WITH_MODULES="(automatic)" 14854 fi 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WITH_MODULES}" >&5 14856$as_echo "${WITH_MODULES}" >&6; } ; 14857 # if static libraries are enabled, modules must be static 14858 if test x$enable_static = xyes; then 14859 WITH_MODULES="static" 14860 else 14861 WITH_MODULES="yes" 14862 fi 14863fi 14864 14865if test -z "${WITH_MODULES}" ; then 14866 WITH_MODULES="(automatic)" 14867fi 14868 14869 14870# Abort if a broken configuration was required 14871if test x$enable_static = xyes; then 14872 if test $WITH_MODULES = no; then 14873 : 14874 elif test $WITH_MODULES = static; then 14875 : 14876 else 14877 as_fn_error $? "--disable-static must be used with --with-modules" "$LINENO" 5 14878 fi 14879fi 14880 14881# create custom command-line --enable option 14882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on debugging in build" >&5 14883$as_echo_n "checking whether to turn on debugging in build... " >&6; } 14884# Check whether --enable-debug was given. 14885if test "${enable_debug+set}" = set; then : 14886 enableval=$enable_debug; case "${enableval}" in 14887 14888 yes) ENABLE_DEBUG="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5 14889$as_echo "${ENABLE_DEBUG}" >&6; } ;; 14890 no) ENABLE_DEBUG="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5 14891$as_echo "${ENABLE_DEBUG}" >&6; } ;; 14892 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14893$as_echo "unknown" >&6; } 14894 as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 14895 14896 esac 14897else 14898 if test -z "${ENABLE_DEBUG}" ; then 14899 ENABLE_DEBUG="no" 14900 fi 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5 14902$as_echo "${ENABLE_DEBUG}" >&6; } ; 14903fi 14904 14905if test -z "${ENABLE_DEBUG}" ; then 14906 ENABLE_DEBUG="no" 14907fi 14908 14909 14910# create custom command-line --enable option 14911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on profiling in build" >&5 14912$as_echo_n "checking whether to turn on profiling in build... " >&6; } 14913# Check whether --enable-profile was given. 14914if test "${enable_profile+set}" = set; then : 14915 enableval=$enable_profile; case "${enableval}" in 14916 14917 yes) ENABLE_PROFILE="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5 14918$as_echo "${ENABLE_PROFILE}" >&6; } ;; 14919 no) ENABLE_PROFILE="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5 14920$as_echo "${ENABLE_PROFILE}" >&6; } ;; 14921 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14922$as_echo "unknown" >&6; } 14923 as_fn_error $? "bad value ${enableval} for --enable-profile" "$LINENO" 5 ;; 14924 14925 esac 14926else 14927 if test -z "${ENABLE_PROFILE}" ; then 14928 ENABLE_PROFILE="no" 14929 fi 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5 14931$as_echo "${ENABLE_PROFILE}" >&6; } ; 14932fi 14933 14934if test -z "${ENABLE_PROFILE}" ; then 14935 ENABLE_PROFILE="no" 14936fi 14937 14938 14939# create custom command-line --with option 14940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use readline" >&5 14941$as_echo_n "checking whether to use readline... " >&6; } 14942 14943# Check whether --with-readline was given. 14944if test "${with_readline+set}" = set; then : 14945 withval=$with_readline; case "${withval}" in 14946 14947 yes) USE_READLINE="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14948$as_echo "yes" >&6; } ;; 14949 no) USE_READLINE="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14950$as_echo "no" >&6; } ;; 14951 only) USE_READLINE="yes" 14952 EXTRA_LIBREADLINE_DEPS=" " 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using only readline)" >&5 14954$as_echo "yes (using only readline)" >&6; } ;; 14955 *) USE_READLINE="yes" 14956 EXTRA_LIBREADLINE_DEPS="${withval}" 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using extra libraries ${withval})" >&5 14958$as_echo "yes (using extra libraries ${withval})" >&6; } ;; 14959 14960 esac 14961else 14962 if test -z "${USE_READLINE}" ; then 14963 USE_READLINE="yes" 14964 fi 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_READLINE}" >&5 14966$as_echo "${USE_READLINE}" >&6; } ; 14967fi 14968 14969if test -z "${USE_READLINE}" ; then 14970 USE_READLINE="yes" 14971fi 14972 14973 14974# libusb-1.0 (For CUPS backends, but only bother if CUPS is enabled) 14975 14976 14977 14978 14979 14980 14981 14982if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14983 if test -n "$ac_tool_prefix"; then 14984 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14985set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14987$as_echo_n "checking for $ac_word... " >&6; } 14988if ${ac_cv_path_PKG_CONFIG+:} false; then : 14989 $as_echo_n "(cached) " >&6 14990else 14991 case $PKG_CONFIG in 14992 [\\/]* | ?:[\\/]*) 14993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14994 ;; 14995 *) 14996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14997for as_dir in $PATH 14998do 14999 IFS=$as_save_IFS 15000 test -z "$as_dir" && as_dir=. 15001 for ac_exec_ext in '' $ac_executable_extensions; do 15002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15005 break 2 15006 fi 15007done 15008 done 15009IFS=$as_save_IFS 15010 15011 ;; 15012esac 15013fi 15014PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15015if test -n "$PKG_CONFIG"; then 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15017$as_echo "$PKG_CONFIG" >&6; } 15018else 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15020$as_echo "no" >&6; } 15021fi 15022 15023 15024fi 15025if test -z "$ac_cv_path_PKG_CONFIG"; then 15026 ac_pt_PKG_CONFIG=$PKG_CONFIG 15027 # Extract the first word of "pkg-config", so it can be a program name with args. 15028set dummy pkg-config; ac_word=$2 15029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15030$as_echo_n "checking for $ac_word... " >&6; } 15031if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15032 $as_echo_n "(cached) " >&6 15033else 15034 case $ac_pt_PKG_CONFIG in 15035 [\\/]* | ?:[\\/]*) 15036 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15037 ;; 15038 *) 15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15040for as_dir in $PATH 15041do 15042 IFS=$as_save_IFS 15043 test -z "$as_dir" && as_dir=. 15044 for ac_exec_ext in '' $ac_executable_extensions; do 15045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15046 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15048 break 2 15049 fi 15050done 15051 done 15052IFS=$as_save_IFS 15053 15054 ;; 15055esac 15056fi 15057ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15058if test -n "$ac_pt_PKG_CONFIG"; then 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15060$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15061else 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15063$as_echo "no" >&6; } 15064fi 15065 15066 if test "x$ac_pt_PKG_CONFIG" = x; then 15067 PKG_CONFIG="" 15068 else 15069 case $cross_compiling:$ac_tool_warned in 15070yes:) 15071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15073ac_tool_warned=yes ;; 15074esac 15075 PKG_CONFIG=$ac_pt_PKG_CONFIG 15076 fi 15077else 15078 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15079fi 15080 15081fi 15082if test -n "$PKG_CONFIG"; then 15083 _pkg_min_version=0.9.0 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15085$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15086 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15088$as_echo "yes" >&6; } 15089 else 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15091$as_echo "no" >&6; } 15092 PKG_CONFIG="" 15093 fi 15094fi 15095if test "x$BUILD_CUPS" = "xyes"; then : 15096 15097 15098pkg_failed=no 15099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 15100$as_echo_n "checking for libusb-1.0... " >&6; } 15101 15102if test -n "$LIBUSB_CFLAGS"; then 15103 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 15104 elif test -n "$PKG_CONFIG"; then 15105 if test -n "$PKG_CONFIG" && \ 15106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 15107 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 15108 ac_status=$? 15109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15110 test $ac_status = 0; }; then 15111 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null` 15112 test "x$?" != "x0" && pkg_failed=yes 15113else 15114 pkg_failed=yes 15115fi 15116 else 15117 pkg_failed=untried 15118fi 15119if test -n "$LIBUSB_LIBS"; then 15120 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 15121 elif test -n "$PKG_CONFIG"; then 15122 if test -n "$PKG_CONFIG" && \ 15123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 15124 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 15125 ac_status=$? 15126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15127 test $ac_status = 0; }; then 15128 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null` 15129 test "x$?" != "x0" && pkg_failed=yes 15130else 15131 pkg_failed=yes 15132fi 15133 else 15134 pkg_failed=untried 15135fi 15136 15137 15138 15139if test $pkg_failed = yes; then 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15141$as_echo "no" >&6; } 15142 15143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15144 _pkg_short_errors_supported=yes 15145else 15146 _pkg_short_errors_supported=no 15147fi 15148 if test $_pkg_short_errors_supported = yes; then 15149 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1` 15150 else 15151 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1` 15152 fi 15153 # Put the nasty error message in config.log where it belongs 15154 echo "$LIBUSB_PKG_ERRORS" >&5 15155 15156 HAVE_LIBUSB=no 15157 BUILD_LIBUSB_BACKENDS=no 15158elif test $pkg_failed = untried; then 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15160$as_echo "no" >&6; } 15161 HAVE_LIBUSB=no 15162 BUILD_LIBUSB_BACKENDS=no 15163else 15164 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 15165 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15167$as_echo "yes" >&6; } 15168 HAVE_LIBUSB=yes 15169 BUILD_LIBUSB_BACKENDS=yes 15170fi 15171 15172fi 15173 15174# create custom command-line --enable option 15175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install GIMP plugin in home directory" >&5 15176$as_echo_n "checking whether to install GIMP plugin in home directory... " >&6; } 15177# Check whether --enable-user-install was given. 15178if test "${enable_user_install+set}" = set; then : 15179 enableval=$enable_user_install; case "${enableval}" in 15180 15181 yes) USER_INSTALL="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5 15182$as_echo "${USER_INSTALL}" >&6; } ;; 15183 no) USER_INSTALL="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5 15184$as_echo "${USER_INSTALL}" >&6; } ;; 15185 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15186$as_echo "unknown" >&6; } 15187 as_fn_error $? "bad value ${enableval} for --enable-user-install" "$LINENO" 5 ;; 15188 15189 esac 15190else 15191 if test -z "${USER_INSTALL}" ; then 15192 USER_INSTALL="no" 15193 fi 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5 15195$as_echo "${USER_INSTALL}" >&6; } ; 15196fi 15197 15198if test -z "${USER_INSTALL}" ; then 15199 USER_INSTALL="no" 15200fi 15201 15202if test x$USER_INSTALL = xyes ; then 15203 PLUG_IN_PATH="bin" 15204else 15205 PLUG_IN_PATH="admin-bin" 15206fi 15207 15208if test -n "$ac_tool_prefix"; then 15209 # Extract the first word of "${ac_tool_prefix}gimptool-2.0 gimptool", so it can be a program name with args. 15210set dummy ${ac_tool_prefix}gimptool-2.0 gimptool; ac_word=$2 15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15212$as_echo_n "checking for $ac_word... " >&6; } 15213if ${ac_cv_path_GIMPTOOL2_CHECK+:} false; then : 15214 $as_echo_n "(cached) " >&6 15215else 15216 case $GIMPTOOL2_CHECK in 15217 [\\/]* | ?:[\\/]*) 15218 ac_cv_path_GIMPTOOL2_CHECK="$GIMPTOOL2_CHECK" # Let the user override the test with a path. 15219 ;; 15220 *) 15221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15222for as_dir in $PATH 15223do 15224 IFS=$as_save_IFS 15225 test -z "$as_dir" && as_dir=. 15226 for ac_exec_ext in '' $ac_executable_extensions; do 15227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15228 ac_cv_path_GIMPTOOL2_CHECK="$as_dir/$ac_word$ac_exec_ext" 15229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15230 break 2 15231 fi 15232done 15233 done 15234IFS=$as_save_IFS 15235 15236 ;; 15237esac 15238fi 15239GIMPTOOL2_CHECK=$ac_cv_path_GIMPTOOL2_CHECK 15240if test -n "$GIMPTOOL2_CHECK"; then 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIMPTOOL2_CHECK" >&5 15242$as_echo "$GIMPTOOL2_CHECK" >&6; } 15243else 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15245$as_echo "no" >&6; } 15246fi 15247 15248 15249fi 15250if test -z "$ac_cv_path_GIMPTOOL2_CHECK"; then 15251 ac_pt_GIMPTOOL2_CHECK=$GIMPTOOL2_CHECK 15252 # Extract the first word of "gimptool-2.0 gimptool", so it can be a program name with args. 15253set dummy gimptool-2.0 gimptool; ac_word=$2 15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15255$as_echo_n "checking for $ac_word... " >&6; } 15256if ${ac_cv_path_ac_pt_GIMPTOOL2_CHECK+:} false; then : 15257 $as_echo_n "(cached) " >&6 15258else 15259 case $ac_pt_GIMPTOOL2_CHECK in 15260 [\\/]* | ?:[\\/]*) 15261 ac_cv_path_ac_pt_GIMPTOOL2_CHECK="$ac_pt_GIMPTOOL2_CHECK" # Let the user override the test with a path. 15262 ;; 15263 *) 15264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15265for as_dir in $PATH 15266do 15267 IFS=$as_save_IFS 15268 test -z "$as_dir" && as_dir=. 15269 for ac_exec_ext in '' $ac_executable_extensions; do 15270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15271 ac_cv_path_ac_pt_GIMPTOOL2_CHECK="$as_dir/$ac_word$ac_exec_ext" 15272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15273 break 2 15274 fi 15275done 15276 done 15277IFS=$as_save_IFS 15278 15279 ;; 15280esac 15281fi 15282ac_pt_GIMPTOOL2_CHECK=$ac_cv_path_ac_pt_GIMPTOOL2_CHECK 15283if test -n "$ac_pt_GIMPTOOL2_CHECK"; then 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIMPTOOL2_CHECK" >&5 15285$as_echo "$ac_pt_GIMPTOOL2_CHECK" >&6; } 15286else 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15288$as_echo "no" >&6; } 15289fi 15290 15291 if test "x$ac_pt_GIMPTOOL2_CHECK" = x; then 15292 GIMPTOOL2_CHECK="" 15293 else 15294 case $cross_compiling:$ac_tool_warned in 15295yes:) 15296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15298ac_tool_warned=yes ;; 15299esac 15300 GIMPTOOL2_CHECK=$ac_pt_GIMPTOOL2_CHECK 15301 fi 15302else 15303 GIMPTOOL2_CHECK="$ac_cv_path_GIMPTOOL2_CHECK" 15304fi 15305 15306if test -z "${GIMPTOOL2_CHECK}" ; then 15307 BUILD_GIMP2="no" 15308else 15309 # Check we have version 2.0 15310 gimptool_check_version=`${GIMPTOOL2_CHECK} --version` 15311 gimptool_check_major=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'` 15312 gimptool_check_minor=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'` 15313 if test "$gimptool_check_major" -eq 2; then 15314 BUILD_GIMP2="yes" 15315 if test "$gimptool_check_minor" -ge 4 ; then 15316 BUILD_GIMP2_AS_GUTENPRINT="yes" 15317 else 15318 BUILD_GIMP2_AS_GUTENPRINT="no" 15319 fi 15320 else 15321 BUILD_GIMP2="no" 15322 BUILD_GIMP2_AS_GUTENPRINT="no" 15323 fi 15324 if test x${BUILD_GIMP2} = xyes ; then 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIMP 2.0 plug-in directory" >&5 15326$as_echo_n "checking for GIMP 2.0 plug-in directory... " >&6; } 15327 GIMP2_PLUGIN_DIR=`$GIMPTOOL2_CHECK --gimpplugindir`/plug-ins 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIMP2_PLUGIN_DIR" >&5 15329$as_echo "$GIMP2_PLUGIN_DIR" >&6; } 15330 if test "x$NO_PKGCONFIG_PATHS" = x; then 15331 gimp2_plug_indir="${GIMP2_PLUGIN_DIR}" 15332 else 15333 gimp2_plug_indir="${prefix}/lib/gimp/2.0/plug-ins" 15334 fi 15335 15336 fi 15337fi 15338 15339 15340pkg_failed=no 15341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5 15342$as_echo_n "checking for gtk+-2.0... " >&6; } 15343 15344if test -n "$GTK2_CFLAGS"; then 15345 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS" 15346 elif test -n "$PKG_CONFIG"; then 15347 if test -n "$PKG_CONFIG" && \ 15348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5 15349 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5 15350 ac_status=$? 15351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15352 test $ac_status = 0; }; then 15353 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null` 15354 test "x$?" != "x0" && pkg_failed=yes 15355else 15356 pkg_failed=yes 15357fi 15358 else 15359 pkg_failed=untried 15360fi 15361if test -n "$GTK2_LIBS"; then 15362 pkg_cv_GTK2_LIBS="$GTK2_LIBS" 15363 elif test -n "$PKG_CONFIG"; then 15364 if test -n "$PKG_CONFIG" && \ 15365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5 15366 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5 15367 ac_status=$? 15368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15369 test $ac_status = 0; }; then 15370 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null` 15371 test "x$?" != "x0" && pkg_failed=yes 15372else 15373 pkg_failed=yes 15374fi 15375 else 15376 pkg_failed=untried 15377fi 15378 15379 15380 15381if test $pkg_failed = yes; then 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15383$as_echo "no" >&6; } 15384 15385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15386 _pkg_short_errors_supported=yes 15387else 15388 _pkg_short_errors_supported=no 15389fi 15390 if test $_pkg_short_errors_supported = yes; then 15391 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1` 15392 else 15393 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1` 15394 fi 15395 # Put the nasty error message in config.log where it belongs 15396 echo "$GTK2_PKG_ERRORS" >&5 15397 15398 HAVE_GTK2=no 15399 BUILD_LIBGUTENPRINTUI2=no 15400elif test $pkg_failed = untried; then 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15402$as_echo "no" >&6; } 15403 HAVE_GTK2=no 15404 BUILD_LIBGUTENPRINTUI2=no 15405else 15406 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS 15407 GTK2_LIBS=$pkg_cv_GTK2_LIBS 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15409$as_echo "yes" >&6; } 15410 HAVE_GTK2=yes 15411 BUILD_LIBGUTENPRINTUI2=yes 15412 GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} ${GTK2_LIBS}" 15413fi 15414# Require both gimptool and pkg-config to succeed 15415if test "x$BUILD_GIMP2" = "xyes"; then : 15416 15417 15418pkg_failed=no 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gimpui-2.0" >&5 15420$as_echo_n "checking for gimpui-2.0... " >&6; } 15421 15422if test -n "$GIMP2_CFLAGS"; then 15423 pkg_cv_GIMP2_CFLAGS="$GIMP2_CFLAGS" 15424 elif test -n "$PKG_CONFIG"; then 15425 if test -n "$PKG_CONFIG" && \ 15426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gimpui-2.0\""; } >&5 15427 ($PKG_CONFIG --exists --print-errors "gimpui-2.0") 2>&5 15428 ac_status=$? 15429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15430 test $ac_status = 0; }; then 15431 pkg_cv_GIMP2_CFLAGS=`$PKG_CONFIG --cflags "gimpui-2.0" 2>/dev/null` 15432 test "x$?" != "x0" && pkg_failed=yes 15433else 15434 pkg_failed=yes 15435fi 15436 else 15437 pkg_failed=untried 15438fi 15439if test -n "$GIMP2_LIBS"; then 15440 pkg_cv_GIMP2_LIBS="$GIMP2_LIBS" 15441 elif test -n "$PKG_CONFIG"; then 15442 if test -n "$PKG_CONFIG" && \ 15443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gimpui-2.0\""; } >&5 15444 ($PKG_CONFIG --exists --print-errors "gimpui-2.0") 2>&5 15445 ac_status=$? 15446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15447 test $ac_status = 0; }; then 15448 pkg_cv_GIMP2_LIBS=`$PKG_CONFIG --libs "gimpui-2.0" 2>/dev/null` 15449 test "x$?" != "x0" && pkg_failed=yes 15450else 15451 pkg_failed=yes 15452fi 15453 else 15454 pkg_failed=untried 15455fi 15456 15457 15458 15459if test $pkg_failed = yes; then 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15461$as_echo "no" >&6; } 15462 15463if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15464 _pkg_short_errors_supported=yes 15465else 15466 _pkg_short_errors_supported=no 15467fi 15468 if test $_pkg_short_errors_supported = yes; then 15469 GIMP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gimpui-2.0" 2>&1` 15470 else 15471 GIMP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gimpui-2.0" 2>&1` 15472 fi 15473 # Put the nasty error message in config.log where it belongs 15474 echo "$GIMP2_PKG_ERRORS" >&5 15475 15476 BUILD_GIMP2=no 15477elif test $pkg_failed = untried; then 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15479$as_echo "no" >&6; } 15480 BUILD_GIMP2=no 15481else 15482 GIMP2_CFLAGS=$pkg_cv_GIMP2_CFLAGS 15483 GIMP2_LIBS=$pkg_cv_GIMP2_LIBS 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15485$as_echo "yes" >&6; } 15486 BUILD_GIMP2=yes 15487fi 15488 15489fi 15490 15491# create custom command-line --with option 15492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GIMP 2.x Print plugin" >&5 15493$as_echo_n "checking whether to build GIMP 2.x Print plugin... " >&6; } 15494 15495# Check whether --with-gimp2 was given. 15496if test "${with_gimp2+set}" = set; then : 15497 withval=$with_gimp2; case "${withval}" in 15498 15499 yes) BUILD_GIMP2="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5 15500$as_echo "${BUILD_GIMP2}" >&6; } ;; 15501 no) BUILD_GIMP2="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5 15502$as_echo "${BUILD_GIMP2}" >&6; } ;; 15503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15504$as_echo "unknown" >&6; } 15505 as_fn_error $? "bad value ${withval} for --with-gimp2" "$LINENO" 5 ;; 15506 15507 esac 15508else 15509 if test -z "${BUILD_GIMP2}" ; then 15510 BUILD_GIMP2="(automatic)" 15511 fi 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5 15513$as_echo "${BUILD_GIMP2}" >&6; } ; 15514fi 15515 15516if test -z "${BUILD_GIMP2}" ; then 15517 BUILD_GIMP2="(automatic)" 15518fi 15519 15520 15521# create custom command-line --with option 15522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)" >&5 15523$as_echo_n "checking whether to name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)... " >&6; } 15524 15525# Check whether --with-gimp2-as-gutenprint was given. 15526if test "${with_gimp2_as_gutenprint+set}" = set; then : 15527 withval=$with_gimp2_as_gutenprint; case "${withval}" in 15528 15529 yes) BUILD_GIMP2_AS_GUTENPRINT="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5 15530$as_echo "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;; 15531 no) BUILD_GIMP2_AS_GUTENPRINT="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5 15532$as_echo "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;; 15533 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15534$as_echo "unknown" >&6; } 15535 as_fn_error $? "bad value ${withval} for --with-gimp2-as-gutenprint" "$LINENO" 5 ;; 15536 15537 esac 15538else 15539 if test -z "${BUILD_GIMP2_AS_GUTENPRINT}" ; then 15540 BUILD_GIMP2_AS_GUTENPRINT="(automatic)" 15541 fi 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5 15543$as_echo "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ; 15544fi 15545 15546if test -z "${BUILD_GIMP2_AS_GUTENPRINT}" ; then 15547 BUILD_GIMP2_AS_GUTENPRINT="(automatic)" 15548fi 15549 15550 15551# create custom command-line --enable option 15552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gutenprint GTK+-2.0 user interface library" >&5 15553$as_echo_n "checking whether to build Gutenprint GTK+-2.0 user interface library... " >&6; } 15554# Check whether --enable-libgutenprintui2 was given. 15555if test "${enable_libgutenprintui2+set}" = set; then : 15556 enableval=$enable_libgutenprintui2; case "${enableval}" in 15557 15558 yes) BUILD_LIBGUTENPRINTUI2="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5 15559$as_echo "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;; 15560 no) BUILD_LIBGUTENPRINTUI2="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5 15561$as_echo "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;; 15562 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15563$as_echo "unknown" >&6; } 15564 as_fn_error $? "bad value ${enableval} for --enable-libgutenprintui2" "$LINENO" 5 ;; 15565 15566 esac 15567else 15568 if test -z "${BUILD_LIBGUTENPRINTUI2}" ; then 15569 BUILD_LIBGUTENPRINTUI2="(automatic)" 15570 fi 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5 15572$as_echo "${BUILD_LIBGUTENPRINTUI2}" >&6; } ; 15573fi 15574 15575if test -z "${BUILD_LIBGUTENPRINTUI2}" ; then 15576 BUILD_LIBGUTENPRINTUI2="(automatic)" 15577fi 15578 15579 15580# create custom command-line --enable option 15581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sample images" >&5 15582$as_echo_n "checking whether to install sample images... " >&6; } 15583# Check whether --enable-samples was given. 15584if test "${enable_samples+set}" = set; then : 15585 enableval=$enable_samples; case "${enableval}" in 15586 15587 yes) INSTALL_SAMPLES="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5 15588$as_echo "${INSTALL_SAMPLES}" >&6; } ;; 15589 no) INSTALL_SAMPLES="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5 15590$as_echo "${INSTALL_SAMPLES}" >&6; } ;; 15591 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15592$as_echo "unknown" >&6; } 15593 as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;; 15594 15595 esac 15596else 15597 if test -z "${INSTALL_SAMPLES}" ; then 15598 INSTALL_SAMPLES="yes" 15599 fi 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5 15601$as_echo "${INSTALL_SAMPLES}" >&6; } ; 15602fi 15603 15604if test -z "${INSTALL_SAMPLES}" ; then 15605 INSTALL_SAMPLES="yes" 15606fi 15607 15608 15609# create custom command-line --enable option 15610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build escputil" >&5 15611$as_echo_n "checking whether to build escputil... " >&6; } 15612# Check whether --enable-escputil was given. 15613if test "${enable_escputil+set}" = set; then : 15614 enableval=$enable_escputil; case "${enableval}" in 15615 15616 yes) BUILD_ESCPUTIL="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5 15617$as_echo "${BUILD_ESCPUTIL}" >&6; } ;; 15618 no) BUILD_ESCPUTIL="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5 15619$as_echo "${BUILD_ESCPUTIL}" >&6; } ;; 15620 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15621$as_echo "unknown" >&6; } 15622 as_fn_error $? "bad value ${enableval} for --enable-escputil" "$LINENO" 5 ;; 15623 15624 esac 15625else 15626 if test -z "${BUILD_ESCPUTIL}" ; then 15627 BUILD_ESCPUTIL="yes" 15628 fi 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5 15630$as_echo "${BUILD_ESCPUTIL}" >&6; } ; 15631fi 15632 15633if test -z "${BUILD_ESCPUTIL}" ; then 15634 BUILD_ESCPUTIL="yes" 15635fi 15636 15637 15638# create custom command-line --enable option 15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build test programs" >&5 15640$as_echo_n "checking whether to build test programs... " >&6; } 15641# Check whether --enable-test was given. 15642if test "${enable_test+set}" = set; then : 15643 enableval=$enable_test; case "${enableval}" in 15644 15645 yes) BUILD_TEST="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5 15646$as_echo "${BUILD_TEST}" >&6; } ;; 15647 no) BUILD_TEST="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5 15648$as_echo "${BUILD_TEST}" >&6; } ;; 15649 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15650$as_echo "unknown" >&6; } 15651 as_fn_error $? "bad value ${enableval} for --enable-test" "$LINENO" 5 ;; 15652 15653 esac 15654else 15655 if test -z "${BUILD_TEST}" ; then 15656 BUILD_TEST="yes" 15657 fi 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5 15659$as_echo "${BUILD_TEST}" >&6; } ; 15660fi 15661 15662if test -z "${BUILD_TEST}" ; then 15663 BUILD_TEST="yes" 15664fi 15665 15666 15667# create custom command-line --with option 15668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gutenprint documentation" >&5 15669$as_echo_n "checking whether to build Gutenprint documentation... " >&6; } 15670 15671# Check whether --with-doc was given. 15672if test "${with_doc+set}" = set; then : 15673 withval=$with_doc; case "${withval}" in 15674 15675 yes) BUILD_DOC="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOC}" >&5 15676$as_echo "${BUILD_DOC}" >&6; } ;; 15677 no) BUILD_DOC="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOC}" >&5 15678$as_echo "${BUILD_DOC}" >&6; } ;; 15679 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15680$as_echo "unknown" >&6; } 15681 as_fn_error $? "bad value ${withval} for --with-doc" "$LINENO" 5 ;; 15682 15683 esac 15684else 15685 if test -z "${BUILD_DOC}" ; then 15686 BUILD_DOC="yes" 15687 fi 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOC}" >&5 15689$as_echo "${BUILD_DOC}" >&6; } ; 15690fi 15691 15692if test -z "${BUILD_DOC}" ; then 15693 BUILD_DOC="yes" 15694fi 15695 15696 15697if test "$BUILD_TEST" = "yes" ; then 15698 BUILD_TESTPATTERN="yes" 15699else 15700 BUILD_TESTPATTERN="no" 15701fi 15702 15703# create custom command-line --enable option 15704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build testpattern generator" >&5 15705$as_echo_n "checking whether to build testpattern generator... " >&6; } 15706# Check whether --enable-testpattern was given. 15707if test "${enable_testpattern+set}" = set; then : 15708 enableval=$enable_testpattern; case "${enableval}" in 15709 15710 yes) BUILD_TESTPATTERN="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5 15711$as_echo "${BUILD_TESTPATTERN}" >&6; } ;; 15712 no) BUILD_TESTPATTERN="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5 15713$as_echo "${BUILD_TESTPATTERN}" >&6; } ;; 15714 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15715$as_echo "unknown" >&6; } 15716 as_fn_error $? "bad value ${enableval} for --enable-testpattern" "$LINENO" 5 ;; 15717 15718 esac 15719else 15720 if test -z "${BUILD_TESTPATTERN}" ; then 15721 BUILD_TESTPATTERN="(automatic)" 15722 fi 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5 15724$as_echo "${BUILD_TESTPATTERN}" >&6; } ; 15725fi 15726 15727if test -z "${BUILD_TESTPATTERN}" ; then 15728 BUILD_TESTPATTERN="(automatic)" 15729fi 15730 15731 15732 15733 15734 15735 15736 15737 am_save_CPPFLAGS="$CPPFLAGS" 15738 15739 for element in $INCICONV; do 15740 haveit= 15741 for x in $CPPFLAGS; do 15742 15743 acl_save_prefix="$prefix" 15744 prefix="$acl_final_prefix" 15745 acl_save_exec_prefix="$exec_prefix" 15746 exec_prefix="$acl_final_exec_prefix" 15747 eval x=\"$x\" 15748 exec_prefix="$acl_save_exec_prefix" 15749 prefix="$acl_save_prefix" 15750 15751 if test "X$x" = "X$element"; then 15752 haveit=yes 15753 break 15754 fi 15755 done 15756 if test -z "$haveit"; then 15757 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15758 fi 15759 done 15760 15761 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 15763$as_echo_n "checking for iconv... " >&6; } 15764if ${am_cv_func_iconv+:} false; then : 15765 $as_echo_n "(cached) " >&6 15766else 15767 15768 am_cv_func_iconv="no, consider installing GNU libiconv" 15769 am_cv_lib_iconv=no 15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15771/* end confdefs.h. */ 15772#include <stdlib.h> 15773#include <iconv.h> 15774int 15775main () 15776{ 15777iconv_t cd = iconv_open("",""); 15778 iconv(cd,NULL,NULL,NULL,NULL); 15779 iconv_close(cd); 15780 ; 15781 return 0; 15782} 15783_ACEOF 15784if ac_fn_c_try_link "$LINENO"; then : 15785 am_cv_func_iconv=yes 15786fi 15787rm -f core conftest.err conftest.$ac_objext \ 15788 conftest$ac_exeext conftest.$ac_ext 15789 if test "$am_cv_func_iconv" != yes; then 15790 am_save_LIBS="$LIBS" 15791 LIBS="$LIBS $LIBICONV" 15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15793/* end confdefs.h. */ 15794#include <stdlib.h> 15795#include <iconv.h> 15796int 15797main () 15798{ 15799iconv_t cd = iconv_open("",""); 15800 iconv(cd,NULL,NULL,NULL,NULL); 15801 iconv_close(cd); 15802 ; 15803 return 0; 15804} 15805_ACEOF 15806if ac_fn_c_try_link "$LINENO"; then : 15807 am_cv_lib_iconv=yes 15808 am_cv_func_iconv=yes 15809fi 15810rm -f core conftest.err conftest.$ac_objext \ 15811 conftest$ac_exeext conftest.$ac_ext 15812 LIBS="$am_save_LIBS" 15813 fi 15814 15815fi 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 15817$as_echo "$am_cv_func_iconv" >&6; } 15818 if test "$am_cv_func_iconv" = yes; then 15819 15820$as_echo "#define HAVE_ICONV 1" >>confdefs.h 15821 15822 fi 15823 if test "$am_cv_lib_iconv" = yes; then 15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 15825$as_echo_n "checking how to link with libiconv... " >&6; } 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 15827$as_echo "$LIBICONV" >&6; } 15828 else 15829 CPPFLAGS="$am_save_CPPFLAGS" 15830 LIBICONV= 15831 LTLIBICONV= 15832 fi 15833 15834 15835 15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 15837$as_echo_n "checking for library containing strerror... " >&6; } 15838if ${ac_cv_search_strerror+:} false; then : 15839 $as_echo_n "(cached) " >&6 15840else 15841 ac_func_search_save_LIBS=$LIBS 15842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15843/* end confdefs.h. */ 15844 15845/* Override any GCC internal prototype to avoid an error. 15846 Use char because int might match the return type of a GCC 15847 builtin and then its argument prototype would still apply. */ 15848#ifdef __cplusplus 15849extern "C" 15850#endif 15851char strerror (); 15852int 15853main () 15854{ 15855return strerror (); 15856 ; 15857 return 0; 15858} 15859_ACEOF 15860for ac_lib in '' cposix; do 15861 if test -z "$ac_lib"; then 15862 ac_res="none required" 15863 else 15864 ac_res=-l$ac_lib 15865 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15866 fi 15867 if ac_fn_c_try_link "$LINENO"; then : 15868 ac_cv_search_strerror=$ac_res 15869fi 15870rm -f core conftest.err conftest.$ac_objext \ 15871 conftest$ac_exeext 15872 if ${ac_cv_search_strerror+:} false; then : 15873 break 15874fi 15875done 15876if ${ac_cv_search_strerror+:} false; then : 15877 15878else 15879 ac_cv_search_strerror=no 15880fi 15881rm conftest.$ac_ext 15882LIBS=$ac_func_search_save_LIBS 15883fi 15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 15885$as_echo "$ac_cv_search_strerror" >&6; } 15886ac_res=$ac_cv_search_strerror 15887if test "$ac_res" != no; then : 15888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15889 15890fi 15891 15892for ac_prog in gawk mawk nawk awk 15893do 15894 # Extract the first word of "$ac_prog", so it can be a program name with args. 15895set dummy $ac_prog; ac_word=$2 15896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15897$as_echo_n "checking for $ac_word... " >&6; } 15898if ${ac_cv_prog_AWK+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900else 15901 if test -n "$AWK"; then 15902 ac_cv_prog_AWK="$AWK" # Let the user override the test. 15903else 15904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15905for as_dir in $PATH 15906do 15907 IFS=$as_save_IFS 15908 test -z "$as_dir" && as_dir=. 15909 for ac_exec_ext in '' $ac_executable_extensions; do 15910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15911 ac_cv_prog_AWK="$ac_prog" 15912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15913 break 2 15914 fi 15915done 15916 done 15917IFS=$as_save_IFS 15918 15919fi 15920fi 15921AWK=$ac_cv_prog_AWK 15922if test -n "$AWK"; then 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 15924$as_echo "$AWK" >&6; } 15925else 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15927$as_echo "no" >&6; } 15928fi 15929 15930 15931 test -n "$AWK" && break 15932done 15933 15934ac_ext=c 15935ac_cpp='$CPP $CPPFLAGS' 15936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15938ac_compiler_gnu=$ac_cv_c_compiler_gnu 15939if test -n "$ac_tool_prefix"; then 15940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 15941set dummy ${ac_tool_prefix}gcc; ac_word=$2 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15943$as_echo_n "checking for $ac_word... " >&6; } 15944if ${ac_cv_prog_CC+:} false; then : 15945 $as_echo_n "(cached) " >&6 15946else 15947 if test -n "$CC"; then 15948 ac_cv_prog_CC="$CC" # Let the user override the test. 15949else 15950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15951for as_dir in $PATH 15952do 15953 IFS=$as_save_IFS 15954 test -z "$as_dir" && as_dir=. 15955 for ac_exec_ext in '' $ac_executable_extensions; do 15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15957 ac_cv_prog_CC="${ac_tool_prefix}gcc" 15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15959 break 2 15960 fi 15961done 15962 done 15963IFS=$as_save_IFS 15964 15965fi 15966fi 15967CC=$ac_cv_prog_CC 15968if test -n "$CC"; then 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15970$as_echo "$CC" >&6; } 15971else 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15973$as_echo "no" >&6; } 15974fi 15975 15976 15977fi 15978if test -z "$ac_cv_prog_CC"; then 15979 ac_ct_CC=$CC 15980 # Extract the first word of "gcc", so it can be a program name with args. 15981set dummy gcc; ac_word=$2 15982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15983$as_echo_n "checking for $ac_word... " >&6; } 15984if ${ac_cv_prog_ac_ct_CC+:} false; then : 15985 $as_echo_n "(cached) " >&6 15986else 15987 if test -n "$ac_ct_CC"; then 15988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15989else 15990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15991for as_dir in $PATH 15992do 15993 IFS=$as_save_IFS 15994 test -z "$as_dir" && as_dir=. 15995 for ac_exec_ext in '' $ac_executable_extensions; do 15996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15997 ac_cv_prog_ac_ct_CC="gcc" 15998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15999 break 2 16000 fi 16001done 16002 done 16003IFS=$as_save_IFS 16004 16005fi 16006fi 16007ac_ct_CC=$ac_cv_prog_ac_ct_CC 16008if test -n "$ac_ct_CC"; then 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16010$as_echo "$ac_ct_CC" >&6; } 16011else 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16013$as_echo "no" >&6; } 16014fi 16015 16016 if test "x$ac_ct_CC" = x; then 16017 CC="" 16018 else 16019 case $cross_compiling:$ac_tool_warned in 16020yes:) 16021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16023ac_tool_warned=yes ;; 16024esac 16025 CC=$ac_ct_CC 16026 fi 16027else 16028 CC="$ac_cv_prog_CC" 16029fi 16030 16031if test -z "$CC"; then 16032 if test -n "$ac_tool_prefix"; then 16033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 16034set dummy ${ac_tool_prefix}cc; ac_word=$2 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16036$as_echo_n "checking for $ac_word... " >&6; } 16037if ${ac_cv_prog_CC+:} false; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 if test -n "$CC"; then 16041 ac_cv_prog_CC="$CC" # Let the user override the test. 16042else 16043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16044for as_dir in $PATH 16045do 16046 IFS=$as_save_IFS 16047 test -z "$as_dir" && as_dir=. 16048 for ac_exec_ext in '' $ac_executable_extensions; do 16049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16050 ac_cv_prog_CC="${ac_tool_prefix}cc" 16051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16052 break 2 16053 fi 16054done 16055 done 16056IFS=$as_save_IFS 16057 16058fi 16059fi 16060CC=$ac_cv_prog_CC 16061if test -n "$CC"; then 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16063$as_echo "$CC" >&6; } 16064else 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16066$as_echo "no" >&6; } 16067fi 16068 16069 16070 fi 16071fi 16072if test -z "$CC"; then 16073 # Extract the first word of "cc", so it can be a program name with args. 16074set dummy cc; ac_word=$2 16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16076$as_echo_n "checking for $ac_word... " >&6; } 16077if ${ac_cv_prog_CC+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 if test -n "$CC"; then 16081 ac_cv_prog_CC="$CC" # Let the user override the test. 16082else 16083 ac_prog_rejected=no 16084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16085for as_dir in $PATH 16086do 16087 IFS=$as_save_IFS 16088 test -z "$as_dir" && as_dir=. 16089 for ac_exec_ext in '' $ac_executable_extensions; do 16090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 16092 ac_prog_rejected=yes 16093 continue 16094 fi 16095 ac_cv_prog_CC="cc" 16096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16097 break 2 16098 fi 16099done 16100 done 16101IFS=$as_save_IFS 16102 16103if test $ac_prog_rejected = yes; then 16104 # We found a bogon in the path, so make sure we never use it. 16105 set dummy $ac_cv_prog_CC 16106 shift 16107 if test $# != 0; then 16108 # We chose a different compiler from the bogus one. 16109 # However, it has the same basename, so the bogon will be chosen 16110 # first if we set CC to just the basename; use the full file name. 16111 shift 16112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 16113 fi 16114fi 16115fi 16116fi 16117CC=$ac_cv_prog_CC 16118if test -n "$CC"; then 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16120$as_echo "$CC" >&6; } 16121else 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16123$as_echo "no" >&6; } 16124fi 16125 16126 16127fi 16128if test -z "$CC"; then 16129 if test -n "$ac_tool_prefix"; then 16130 for ac_prog in cl.exe 16131 do 16132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16133set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16135$as_echo_n "checking for $ac_word... " >&6; } 16136if ${ac_cv_prog_CC+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138else 16139 if test -n "$CC"; then 16140 ac_cv_prog_CC="$CC" # Let the user override the test. 16141else 16142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16143for as_dir in $PATH 16144do 16145 IFS=$as_save_IFS 16146 test -z "$as_dir" && as_dir=. 16147 for ac_exec_ext in '' $ac_executable_extensions; do 16148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 16150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16151 break 2 16152 fi 16153done 16154 done 16155IFS=$as_save_IFS 16156 16157fi 16158fi 16159CC=$ac_cv_prog_CC 16160if test -n "$CC"; then 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16162$as_echo "$CC" >&6; } 16163else 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16165$as_echo "no" >&6; } 16166fi 16167 16168 16169 test -n "$CC" && break 16170 done 16171fi 16172if test -z "$CC"; then 16173 ac_ct_CC=$CC 16174 for ac_prog in cl.exe 16175do 16176 # Extract the first word of "$ac_prog", so it can be a program name with args. 16177set dummy $ac_prog; ac_word=$2 16178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16179$as_echo_n "checking for $ac_word... " >&6; } 16180if ${ac_cv_prog_ac_ct_CC+:} false; then : 16181 $as_echo_n "(cached) " >&6 16182else 16183 if test -n "$ac_ct_CC"; then 16184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 16185else 16186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16187for as_dir in $PATH 16188do 16189 IFS=$as_save_IFS 16190 test -z "$as_dir" && as_dir=. 16191 for ac_exec_ext in '' $ac_executable_extensions; do 16192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16193 ac_cv_prog_ac_ct_CC="$ac_prog" 16194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16195 break 2 16196 fi 16197done 16198 done 16199IFS=$as_save_IFS 16200 16201fi 16202fi 16203ac_ct_CC=$ac_cv_prog_ac_ct_CC 16204if test -n "$ac_ct_CC"; then 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16206$as_echo "$ac_ct_CC" >&6; } 16207else 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16209$as_echo "no" >&6; } 16210fi 16211 16212 16213 test -n "$ac_ct_CC" && break 16214done 16215 16216 if test "x$ac_ct_CC" = x; then 16217 CC="" 16218 else 16219 case $cross_compiling:$ac_tool_warned in 16220yes:) 16221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16223ac_tool_warned=yes ;; 16224esac 16225 CC=$ac_ct_CC 16226 fi 16227fi 16228 16229fi 16230 16231 16232test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16234as_fn_error $? "no acceptable C compiler found in \$PATH 16235See \`config.log' for more details" "$LINENO" 5; } 16236 16237# Provide some information about the compiler. 16238$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 16239set X $ac_compile 16240ac_compiler=$2 16241for ac_option in --version -v -V -qversion; do 16242 { { ac_try="$ac_compiler $ac_option >&5" 16243case "(($ac_try" in 16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16245 *) ac_try_echo=$ac_try;; 16246esac 16247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16248$as_echo "$ac_try_echo"; } >&5 16249 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 16250 ac_status=$? 16251 if test -s conftest.err; then 16252 sed '10a\ 16253... rest of stderr output deleted ... 16254 10q' conftest.err >conftest.er1 16255 cat conftest.er1 >&5 16256 fi 16257 rm -f conftest.er1 conftest.err 16258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16259 test $ac_status = 0; } 16260done 16261 16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 16263$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 16264if ${ac_cv_c_compiler_gnu+:} false; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269 16270int 16271main () 16272{ 16273#ifndef __GNUC__ 16274 choke me 16275#endif 16276 16277 ; 16278 return 0; 16279} 16280_ACEOF 16281if ac_fn_c_try_compile "$LINENO"; then : 16282 ac_compiler_gnu=yes 16283else 16284 ac_compiler_gnu=no 16285fi 16286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16287ac_cv_c_compiler_gnu=$ac_compiler_gnu 16288 16289fi 16290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 16291$as_echo "$ac_cv_c_compiler_gnu" >&6; } 16292if test $ac_compiler_gnu = yes; then 16293 GCC=yes 16294else 16295 GCC= 16296fi 16297ac_test_CFLAGS=${CFLAGS+set} 16298ac_save_CFLAGS=$CFLAGS 16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 16300$as_echo_n "checking whether $CC accepts -g... " >&6; } 16301if ${ac_cv_prog_cc_g+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303else 16304 ac_save_c_werror_flag=$ac_c_werror_flag 16305 ac_c_werror_flag=yes 16306 ac_cv_prog_cc_g=no 16307 CFLAGS="-g" 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310 16311int 16312main () 16313{ 16314 16315 ; 16316 return 0; 16317} 16318_ACEOF 16319if ac_fn_c_try_compile "$LINENO"; then : 16320 ac_cv_prog_cc_g=yes 16321else 16322 CFLAGS="" 16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16324/* end confdefs.h. */ 16325 16326int 16327main () 16328{ 16329 16330 ; 16331 return 0; 16332} 16333_ACEOF 16334if ac_fn_c_try_compile "$LINENO"; then : 16335 16336else 16337 ac_c_werror_flag=$ac_save_c_werror_flag 16338 CFLAGS="-g" 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341 16342int 16343main () 16344{ 16345 16346 ; 16347 return 0; 16348} 16349_ACEOF 16350if ac_fn_c_try_compile "$LINENO"; then : 16351 ac_cv_prog_cc_g=yes 16352fi 16353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16354fi 16355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16356fi 16357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16358 ac_c_werror_flag=$ac_save_c_werror_flag 16359fi 16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 16361$as_echo "$ac_cv_prog_cc_g" >&6; } 16362if test "$ac_test_CFLAGS" = set; then 16363 CFLAGS=$ac_save_CFLAGS 16364elif test $ac_cv_prog_cc_g = yes; then 16365 if test "$GCC" = yes; then 16366 CFLAGS="-g -O2" 16367 else 16368 CFLAGS="-g" 16369 fi 16370else 16371 if test "$GCC" = yes; then 16372 CFLAGS="-O2" 16373 else 16374 CFLAGS= 16375 fi 16376fi 16377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 16378$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 16379if ${ac_cv_prog_cc_c89+:} false; then : 16380 $as_echo_n "(cached) " >&6 16381else 16382 ac_cv_prog_cc_c89=no 16383ac_save_CC=$CC 16384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386#include <stdarg.h> 16387#include <stdio.h> 16388struct stat; 16389/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 16390struct buf { int x; }; 16391FILE * (*rcsopen) (struct buf *, struct stat *, int); 16392static char *e (p, i) 16393 char **p; 16394 int i; 16395{ 16396 return p[i]; 16397} 16398static char *f (char * (*g) (char **, int), char **p, ...) 16399{ 16400 char *s; 16401 va_list v; 16402 va_start (v,p); 16403 s = g (p, va_arg (v,int)); 16404 va_end (v); 16405 return s; 16406} 16407 16408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 16409 function prototypes and stuff, but not '\xHH' hex character constants. 16410 These don't provoke an error unfortunately, instead are silently treated 16411 as 'x'. The following induces an error, until -std is added to get 16412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 16413 array size at least. It's necessary to write '\x00'==0 to get something 16414 that's true only with -std. */ 16415int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 16416 16417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 16418 inside strings and character constants. */ 16419#define FOO(x) 'x' 16420int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 16421 16422int test (int i, double x); 16423struct s1 {int (*f) (int a);}; 16424struct s2 {int (*f) (double a);}; 16425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 16426int argc; 16427char **argv; 16428int 16429main () 16430{ 16431return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 16432 ; 16433 return 0; 16434} 16435_ACEOF 16436for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 16437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 16438do 16439 CC="$ac_save_CC $ac_arg" 16440 if ac_fn_c_try_compile "$LINENO"; then : 16441 ac_cv_prog_cc_c89=$ac_arg 16442fi 16443rm -f core conftest.err conftest.$ac_objext 16444 test "x$ac_cv_prog_cc_c89" != "xno" && break 16445done 16446rm -f conftest.$ac_ext 16447CC=$ac_save_CC 16448 16449fi 16450# AC_CACHE_VAL 16451case "x$ac_cv_prog_cc_c89" in 16452 x) 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16454$as_echo "none needed" >&6; } ;; 16455 xno) 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16457$as_echo "unsupported" >&6; } ;; 16458 *) 16459 CC="$CC $ac_cv_prog_cc_c89" 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 16461$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 16462esac 16463if test "x$ac_cv_prog_cc_c89" != xno; then : 16464 16465fi 16466 16467ac_ext=c 16468ac_cpp='$CPP $CPPFLAGS' 16469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16471ac_compiler_gnu=$ac_cv_c_compiler_gnu 16472 16473ac_ext=c 16474ac_cpp='$CPP $CPPFLAGS' 16475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16477ac_compiler_gnu=$ac_cv_c_compiler_gnu 16478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 16479$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 16480if ${am_cv_prog_cc_c_o+:} false; then : 16481 $as_echo_n "(cached) " >&6 16482else 16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16484/* end confdefs.h. */ 16485 16486int 16487main () 16488{ 16489 16490 ; 16491 return 0; 16492} 16493_ACEOF 16494 # Make sure it works both with $CC and with simple cc. 16495 # Following AC_PROG_CC_C_O, we do the test twice because some 16496 # compilers refuse to overwrite an existing .o file with -o, 16497 # though they will create one. 16498 am_cv_prog_cc_c_o=yes 16499 for am_i in 1 2; do 16500 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 16501 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 16502 ac_status=$? 16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16504 (exit $ac_status); } \ 16505 && test -f conftest2.$ac_objext; then 16506 : OK 16507 else 16508 am_cv_prog_cc_c_o=no 16509 break 16510 fi 16511 done 16512 rm -f core conftest* 16513 unset am_i 16514fi 16515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 16516$as_echo "$am_cv_prog_cc_c_o" >&6; } 16517if test "$am_cv_prog_cc_c_o" != yes; then 16518 # Losing compiler, so override with the script. 16519 # FIXME: It is wrong to rewrite CC. 16520 # But if we don't then we get into trouble of one sort or another. 16521 # A longer-term fix would be to have automake use am__CC in this case, 16522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 16523 CC="$am_aux_dir/compile $CC" 16524fi 16525ac_ext=c 16526ac_cpp='$CPP $CPPFLAGS' 16527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16529ac_compiler_gnu=$ac_cv_c_compiler_gnu 16530 16531 16532depcc="$CC" am_compiler_list= 16533 16534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 16535$as_echo_n "checking dependency style of $depcc... " >&6; } 16536if ${am_cv_CC_dependencies_compiler_type+:} false; then : 16537 $as_echo_n "(cached) " >&6 16538else 16539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 16540 # We make a subdir and do the tests there. Otherwise we can end up 16541 # making bogus files that we don't know about and never remove. For 16542 # instance it was reported that on HP-UX the gcc test will end up 16543 # making a dummy file named 'D' -- because '-MD' means "put the output 16544 # in D". 16545 rm -rf conftest.dir 16546 mkdir conftest.dir 16547 # Copy depcomp to subdir because otherwise we won't find it if we're 16548 # using a relative directory. 16549 cp "$am_depcomp" conftest.dir 16550 cd conftest.dir 16551 # We will build objects and dependencies in a subdirectory because 16552 # it helps to detect inapplicable dependency modes. For instance 16553 # both Tru64's cc and ICC support -MD to output dependencies as a 16554 # side effect of compilation, but ICC will put the dependencies in 16555 # the current directory while Tru64 will put them in the object 16556 # directory. 16557 mkdir sub 16558 16559 am_cv_CC_dependencies_compiler_type=none 16560 if test "$am_compiler_list" = ""; then 16561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 16562 fi 16563 am__universal=false 16564 case " $depcc " in #( 16565 *\ -arch\ *\ -arch\ *) am__universal=true ;; 16566 esac 16567 16568 for depmode in $am_compiler_list; do 16569 # Setup a source with many dependencies, because some compilers 16570 # like to wrap large dependency lists on column 80 (with \), and 16571 # we should not choose a depcomp mode which is confused by this. 16572 # 16573 # We need to recreate these files for each test, as the compiler may 16574 # overwrite some of them when testing with obscure command lines. 16575 # This happens at least with the AIX C compiler. 16576 : > sub/conftest.c 16577 for i in 1 2 3 4 5 6; do 16578 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 16580 # Solaris 10 /bin/sh. 16581 echo '/* dummy */' > sub/conftst$i.h 16582 done 16583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16584 16585 # We check with '-c' and '-o' for the sake of the "dashmstdout" 16586 # mode. It turns out that the SunPro C++ compiler does not properly 16587 # handle '-M -o', and we need to detect this. Also, some Intel 16588 # versions had trouble with output in subdirs. 16589 am__obj=sub/conftest.${OBJEXT-o} 16590 am__minus_obj="-o $am__obj" 16591 case $depmode in 16592 gcc) 16593 # This depmode causes a compiler race in universal mode. 16594 test "$am__universal" = false || continue 16595 ;; 16596 nosideeffect) 16597 # After this tag, mechanisms are not by side-effect, so they'll 16598 # only be used when explicitly requested. 16599 if test "x$enable_dependency_tracking" = xyes; then 16600 continue 16601 else 16602 break 16603 fi 16604 ;; 16605 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 16606 # This compiler won't grok '-c -o', but also, the minuso test has 16607 # not run yet. These depmodes are late enough in the game, and 16608 # so weak that their functioning should not be impacted. 16609 am__obj=conftest.${OBJEXT-o} 16610 am__minus_obj= 16611 ;; 16612 none) break ;; 16613 esac 16614 if depmode=$depmode \ 16615 source=sub/conftest.c object=$am__obj \ 16616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 16617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 16618 >/dev/null 2>conftest.err && 16619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 16620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 16621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 16622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 16623 # icc doesn't choke on unknown options, it will just issue warnings 16624 # or remarks (even with -Werror). So we grep stderr for any message 16625 # that says an option was ignored or not supported. 16626 # When given -MP, icc 7.0 and 7.1 complain thusly: 16627 # icc: Command line warning: ignoring option '-M'; no argument required 16628 # The diagnosis changed in icc 8.0: 16629 # icc: Command line remark: option '-MP' not supported 16630 if (grep 'ignoring option' conftest.err || 16631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 16632 am_cv_CC_dependencies_compiler_type=$depmode 16633 break 16634 fi 16635 fi 16636 done 16637 16638 cd .. 16639 rm -rf conftest.dir 16640else 16641 am_cv_CC_dependencies_compiler_type=none 16642fi 16643 16644fi 16645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 16646$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 16647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 16648 16649 if 16650 test "x$enable_dependency_tracking" != xno \ 16651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 16652 am__fastdepCC_TRUE= 16653 am__fastdepCC_FALSE='#' 16654else 16655 am__fastdepCC_TRUE='#' 16656 am__fastdepCC_FALSE= 16657fi 16658 16659 16660ac_ext=c 16661ac_cpp='$CPP $CPPFLAGS' 16662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16664ac_compiler_gnu=$ac_cv_c_compiler_gnu 16665if test -n "$ac_tool_prefix"; then 16666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 16667set dummy ${ac_tool_prefix}gcc; ac_word=$2 16668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16669$as_echo_n "checking for $ac_word... " >&6; } 16670if ${ac_cv_prog_CC+:} false; then : 16671 $as_echo_n "(cached) " >&6 16672else 16673 if test -n "$CC"; then 16674 ac_cv_prog_CC="$CC" # Let the user override the test. 16675else 16676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16677for as_dir in $PATH 16678do 16679 IFS=$as_save_IFS 16680 test -z "$as_dir" && as_dir=. 16681 for ac_exec_ext in '' $ac_executable_extensions; do 16682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16683 ac_cv_prog_CC="${ac_tool_prefix}gcc" 16684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16685 break 2 16686 fi 16687done 16688 done 16689IFS=$as_save_IFS 16690 16691fi 16692fi 16693CC=$ac_cv_prog_CC 16694if test -n "$CC"; then 16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16696$as_echo "$CC" >&6; } 16697else 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16699$as_echo "no" >&6; } 16700fi 16701 16702 16703fi 16704if test -z "$ac_cv_prog_CC"; then 16705 ac_ct_CC=$CC 16706 # Extract the first word of "gcc", so it can be a program name with args. 16707set dummy gcc; ac_word=$2 16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16709$as_echo_n "checking for $ac_word... " >&6; } 16710if ${ac_cv_prog_ac_ct_CC+:} false; then : 16711 $as_echo_n "(cached) " >&6 16712else 16713 if test -n "$ac_ct_CC"; then 16714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 16715else 16716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16717for as_dir in $PATH 16718do 16719 IFS=$as_save_IFS 16720 test -z "$as_dir" && as_dir=. 16721 for ac_exec_ext in '' $ac_executable_extensions; do 16722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16723 ac_cv_prog_ac_ct_CC="gcc" 16724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16725 break 2 16726 fi 16727done 16728 done 16729IFS=$as_save_IFS 16730 16731fi 16732fi 16733ac_ct_CC=$ac_cv_prog_ac_ct_CC 16734if test -n "$ac_ct_CC"; then 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16736$as_echo "$ac_ct_CC" >&6; } 16737else 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16739$as_echo "no" >&6; } 16740fi 16741 16742 if test "x$ac_ct_CC" = x; then 16743 CC="" 16744 else 16745 case $cross_compiling:$ac_tool_warned in 16746yes:) 16747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16749ac_tool_warned=yes ;; 16750esac 16751 CC=$ac_ct_CC 16752 fi 16753else 16754 CC="$ac_cv_prog_CC" 16755fi 16756 16757if test -z "$CC"; then 16758 if test -n "$ac_tool_prefix"; then 16759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 16760set dummy ${ac_tool_prefix}cc; ac_word=$2 16761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16762$as_echo_n "checking for $ac_word... " >&6; } 16763if ${ac_cv_prog_CC+:} false; then : 16764 $as_echo_n "(cached) " >&6 16765else 16766 if test -n "$CC"; then 16767 ac_cv_prog_CC="$CC" # Let the user override the test. 16768else 16769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16770for as_dir in $PATH 16771do 16772 IFS=$as_save_IFS 16773 test -z "$as_dir" && as_dir=. 16774 for ac_exec_ext in '' $ac_executable_extensions; do 16775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16776 ac_cv_prog_CC="${ac_tool_prefix}cc" 16777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16778 break 2 16779 fi 16780done 16781 done 16782IFS=$as_save_IFS 16783 16784fi 16785fi 16786CC=$ac_cv_prog_CC 16787if test -n "$CC"; then 16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16789$as_echo "$CC" >&6; } 16790else 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16792$as_echo "no" >&6; } 16793fi 16794 16795 16796 fi 16797fi 16798if test -z "$CC"; then 16799 # Extract the first word of "cc", so it can be a program name with args. 16800set dummy cc; ac_word=$2 16801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16802$as_echo_n "checking for $ac_word... " >&6; } 16803if ${ac_cv_prog_CC+:} false; then : 16804 $as_echo_n "(cached) " >&6 16805else 16806 if test -n "$CC"; then 16807 ac_cv_prog_CC="$CC" # Let the user override the test. 16808else 16809 ac_prog_rejected=no 16810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16811for as_dir in $PATH 16812do 16813 IFS=$as_save_IFS 16814 test -z "$as_dir" && as_dir=. 16815 for ac_exec_ext in '' $ac_executable_extensions; do 16816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16817 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 16818 ac_prog_rejected=yes 16819 continue 16820 fi 16821 ac_cv_prog_CC="cc" 16822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16823 break 2 16824 fi 16825done 16826 done 16827IFS=$as_save_IFS 16828 16829if test $ac_prog_rejected = yes; then 16830 # We found a bogon in the path, so make sure we never use it. 16831 set dummy $ac_cv_prog_CC 16832 shift 16833 if test $# != 0; then 16834 # We chose a different compiler from the bogus one. 16835 # However, it has the same basename, so the bogon will be chosen 16836 # first if we set CC to just the basename; use the full file name. 16837 shift 16838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 16839 fi 16840fi 16841fi 16842fi 16843CC=$ac_cv_prog_CC 16844if test -n "$CC"; then 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16846$as_echo "$CC" >&6; } 16847else 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16849$as_echo "no" >&6; } 16850fi 16851 16852 16853fi 16854if test -z "$CC"; then 16855 if test -n "$ac_tool_prefix"; then 16856 for ac_prog in cl.exe 16857 do 16858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16859set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16861$as_echo_n "checking for $ac_word... " >&6; } 16862if ${ac_cv_prog_CC+:} false; then : 16863 $as_echo_n "(cached) " >&6 16864else 16865 if test -n "$CC"; then 16866 ac_cv_prog_CC="$CC" # Let the user override the test. 16867else 16868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16869for as_dir in $PATH 16870do 16871 IFS=$as_save_IFS 16872 test -z "$as_dir" && as_dir=. 16873 for ac_exec_ext in '' $ac_executable_extensions; do 16874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 16876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16877 break 2 16878 fi 16879done 16880 done 16881IFS=$as_save_IFS 16882 16883fi 16884fi 16885CC=$ac_cv_prog_CC 16886if test -n "$CC"; then 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16888$as_echo "$CC" >&6; } 16889else 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16891$as_echo "no" >&6; } 16892fi 16893 16894 16895 test -n "$CC" && break 16896 done 16897fi 16898if test -z "$CC"; then 16899 ac_ct_CC=$CC 16900 for ac_prog in cl.exe 16901do 16902 # Extract the first word of "$ac_prog", so it can be a program name with args. 16903set dummy $ac_prog; ac_word=$2 16904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16905$as_echo_n "checking for $ac_word... " >&6; } 16906if ${ac_cv_prog_ac_ct_CC+:} false; then : 16907 $as_echo_n "(cached) " >&6 16908else 16909 if test -n "$ac_ct_CC"; then 16910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 16911else 16912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16913for as_dir in $PATH 16914do 16915 IFS=$as_save_IFS 16916 test -z "$as_dir" && as_dir=. 16917 for ac_exec_ext in '' $ac_executable_extensions; do 16918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16919 ac_cv_prog_ac_ct_CC="$ac_prog" 16920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16921 break 2 16922 fi 16923done 16924 done 16925IFS=$as_save_IFS 16926 16927fi 16928fi 16929ac_ct_CC=$ac_cv_prog_ac_ct_CC 16930if test -n "$ac_ct_CC"; then 16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16932$as_echo "$ac_ct_CC" >&6; } 16933else 16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16935$as_echo "no" >&6; } 16936fi 16937 16938 16939 test -n "$ac_ct_CC" && break 16940done 16941 16942 if test "x$ac_ct_CC" = x; then 16943 CC="" 16944 else 16945 case $cross_compiling:$ac_tool_warned in 16946yes:) 16947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16949ac_tool_warned=yes ;; 16950esac 16951 CC=$ac_ct_CC 16952 fi 16953fi 16954 16955fi 16956 16957 16958test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16960as_fn_error $? "no acceptable C compiler found in \$PATH 16961See \`config.log' for more details" "$LINENO" 5; } 16962 16963# Provide some information about the compiler. 16964$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 16965set X $ac_compile 16966ac_compiler=$2 16967for ac_option in --version -v -V -qversion; do 16968 { { ac_try="$ac_compiler $ac_option >&5" 16969case "(($ac_try" in 16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16971 *) ac_try_echo=$ac_try;; 16972esac 16973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16974$as_echo "$ac_try_echo"; } >&5 16975 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 16976 ac_status=$? 16977 if test -s conftest.err; then 16978 sed '10a\ 16979... rest of stderr output deleted ... 16980 10q' conftest.err >conftest.er1 16981 cat conftest.er1 >&5 16982 fi 16983 rm -f conftest.er1 conftest.err 16984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16985 test $ac_status = 0; } 16986done 16987 16988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 16989$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 16990if ${ac_cv_c_compiler_gnu+:} false; then : 16991 $as_echo_n "(cached) " >&6 16992else 16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16994/* end confdefs.h. */ 16995 16996int 16997main () 16998{ 16999#ifndef __GNUC__ 17000 choke me 17001#endif 17002 17003 ; 17004 return 0; 17005} 17006_ACEOF 17007if ac_fn_c_try_compile "$LINENO"; then : 17008 ac_compiler_gnu=yes 17009else 17010 ac_compiler_gnu=no 17011fi 17012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17013ac_cv_c_compiler_gnu=$ac_compiler_gnu 17014 17015fi 17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 17017$as_echo "$ac_cv_c_compiler_gnu" >&6; } 17018if test $ac_compiler_gnu = yes; then 17019 GCC=yes 17020else 17021 GCC= 17022fi 17023ac_test_CFLAGS=${CFLAGS+set} 17024ac_save_CFLAGS=$CFLAGS 17025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 17026$as_echo_n "checking whether $CC accepts -g... " >&6; } 17027if ${ac_cv_prog_cc_g+:} false; then : 17028 $as_echo_n "(cached) " >&6 17029else 17030 ac_save_c_werror_flag=$ac_c_werror_flag 17031 ac_c_werror_flag=yes 17032 ac_cv_prog_cc_g=no 17033 CFLAGS="-g" 17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17035/* end confdefs.h. */ 17036 17037int 17038main () 17039{ 17040 17041 ; 17042 return 0; 17043} 17044_ACEOF 17045if ac_fn_c_try_compile "$LINENO"; then : 17046 ac_cv_prog_cc_g=yes 17047else 17048 CFLAGS="" 17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17050/* end confdefs.h. */ 17051 17052int 17053main () 17054{ 17055 17056 ; 17057 return 0; 17058} 17059_ACEOF 17060if ac_fn_c_try_compile "$LINENO"; then : 17061 17062else 17063 ac_c_werror_flag=$ac_save_c_werror_flag 17064 CFLAGS="-g" 17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17066/* end confdefs.h. */ 17067 17068int 17069main () 17070{ 17071 17072 ; 17073 return 0; 17074} 17075_ACEOF 17076if ac_fn_c_try_compile "$LINENO"; then : 17077 ac_cv_prog_cc_g=yes 17078fi 17079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17080fi 17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17082fi 17083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17084 ac_c_werror_flag=$ac_save_c_werror_flag 17085fi 17086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 17087$as_echo "$ac_cv_prog_cc_g" >&6; } 17088if test "$ac_test_CFLAGS" = set; then 17089 CFLAGS=$ac_save_CFLAGS 17090elif test $ac_cv_prog_cc_g = yes; then 17091 if test "$GCC" = yes; then 17092 CFLAGS="-g -O2" 17093 else 17094 CFLAGS="-g" 17095 fi 17096else 17097 if test "$GCC" = yes; then 17098 CFLAGS="-O2" 17099 else 17100 CFLAGS= 17101 fi 17102fi 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 17104$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 17105if ${ac_cv_prog_cc_c89+:} false; then : 17106 $as_echo_n "(cached) " >&6 17107else 17108 ac_cv_prog_cc_c89=no 17109ac_save_CC=$CC 17110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17111/* end confdefs.h. */ 17112#include <stdarg.h> 17113#include <stdio.h> 17114struct stat; 17115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 17116struct buf { int x; }; 17117FILE * (*rcsopen) (struct buf *, struct stat *, int); 17118static char *e (p, i) 17119 char **p; 17120 int i; 17121{ 17122 return p[i]; 17123} 17124static char *f (char * (*g) (char **, int), char **p, ...) 17125{ 17126 char *s; 17127 va_list v; 17128 va_start (v,p); 17129 s = g (p, va_arg (v,int)); 17130 va_end (v); 17131 return s; 17132} 17133 17134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 17135 function prototypes and stuff, but not '\xHH' hex character constants. 17136 These don't provoke an error unfortunately, instead are silently treated 17137 as 'x'. The following induces an error, until -std is added to get 17138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 17139 array size at least. It's necessary to write '\x00'==0 to get something 17140 that's true only with -std. */ 17141int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 17142 17143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 17144 inside strings and character constants. */ 17145#define FOO(x) 'x' 17146int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 17147 17148int test (int i, double x); 17149struct s1 {int (*f) (int a);}; 17150struct s2 {int (*f) (double a);}; 17151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 17152int argc; 17153char **argv; 17154int 17155main () 17156{ 17157return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 17158 ; 17159 return 0; 17160} 17161_ACEOF 17162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 17163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 17164do 17165 CC="$ac_save_CC $ac_arg" 17166 if ac_fn_c_try_compile "$LINENO"; then : 17167 ac_cv_prog_cc_c89=$ac_arg 17168fi 17169rm -f core conftest.err conftest.$ac_objext 17170 test "x$ac_cv_prog_cc_c89" != "xno" && break 17171done 17172rm -f conftest.$ac_ext 17173CC=$ac_save_CC 17174 17175fi 17176# AC_CACHE_VAL 17177case "x$ac_cv_prog_cc_c89" in 17178 x) 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 17180$as_echo "none needed" >&6; } ;; 17181 xno) 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 17183$as_echo "unsupported" >&6; } ;; 17184 *) 17185 CC="$CC $ac_cv_prog_cc_c89" 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 17187$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 17188esac 17189if test "x$ac_cv_prog_cc_c89" != xno; then : 17190 17191fi 17192 17193ac_ext=c 17194ac_cpp='$CPP $CPPFLAGS' 17195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17197ac_compiler_gnu=$ac_cv_c_compiler_gnu 17198 17199ac_ext=c 17200ac_cpp='$CPP $CPPFLAGS' 17201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17203ac_compiler_gnu=$ac_cv_c_compiler_gnu 17204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 17205$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 17206if ${am_cv_prog_cc_c_o+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211 17212int 17213main () 17214{ 17215 17216 ; 17217 return 0; 17218} 17219_ACEOF 17220 # Make sure it works both with $CC and with simple cc. 17221 # Following AC_PROG_CC_C_O, we do the test twice because some 17222 # compilers refuse to overwrite an existing .o file with -o, 17223 # though they will create one. 17224 am_cv_prog_cc_c_o=yes 17225 for am_i in 1 2; do 17226 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 17227 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 17228 ac_status=$? 17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17230 (exit $ac_status); } \ 17231 && test -f conftest2.$ac_objext; then 17232 : OK 17233 else 17234 am_cv_prog_cc_c_o=no 17235 break 17236 fi 17237 done 17238 rm -f core conftest* 17239 unset am_i 17240fi 17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 17242$as_echo "$am_cv_prog_cc_c_o" >&6; } 17243if test "$am_cv_prog_cc_c_o" != yes; then 17244 # Losing compiler, so override with the script. 17245 # FIXME: It is wrong to rewrite CC. 17246 # But if we don't then we get into trouble of one sort or another. 17247 # A longer-term fix would be to have automake use am__CC in this case, 17248 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 17249 CC="$am_aux_dir/compile $CC" 17250fi 17251ac_ext=c 17252ac_cpp='$CPP $CPPFLAGS' 17253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17255ac_compiler_gnu=$ac_cv_c_compiler_gnu 17256 17257 17258depcc="$CC" am_compiler_list= 17259 17260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17261$as_echo_n "checking dependency style of $depcc... " >&6; } 17262if ${am_cv_CC_dependencies_compiler_type+:} false; then : 17263 $as_echo_n "(cached) " >&6 17264else 17265 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17266 # We make a subdir and do the tests there. Otherwise we can end up 17267 # making bogus files that we don't know about and never remove. For 17268 # instance it was reported that on HP-UX the gcc test will end up 17269 # making a dummy file named 'D' -- because '-MD' means "put the output 17270 # in D". 17271 rm -rf conftest.dir 17272 mkdir conftest.dir 17273 # Copy depcomp to subdir because otherwise we won't find it if we're 17274 # using a relative directory. 17275 cp "$am_depcomp" conftest.dir 17276 cd conftest.dir 17277 # We will build objects and dependencies in a subdirectory because 17278 # it helps to detect inapplicable dependency modes. For instance 17279 # both Tru64's cc and ICC support -MD to output dependencies as a 17280 # side effect of compilation, but ICC will put the dependencies in 17281 # the current directory while Tru64 will put them in the object 17282 # directory. 17283 mkdir sub 17284 17285 am_cv_CC_dependencies_compiler_type=none 17286 if test "$am_compiler_list" = ""; then 17287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17288 fi 17289 am__universal=false 17290 case " $depcc " in #( 17291 *\ -arch\ *\ -arch\ *) am__universal=true ;; 17292 esac 17293 17294 for depmode in $am_compiler_list; do 17295 # Setup a source with many dependencies, because some compilers 17296 # like to wrap large dependency lists on column 80 (with \), and 17297 # we should not choose a depcomp mode which is confused by this. 17298 # 17299 # We need to recreate these files for each test, as the compiler may 17300 # overwrite some of them when testing with obscure command lines. 17301 # This happens at least with the AIX C compiler. 17302 : > sub/conftest.c 17303 for i in 1 2 3 4 5 6; do 17304 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17305 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17306 # Solaris 10 /bin/sh. 17307 echo '/* dummy */' > sub/conftst$i.h 17308 done 17309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17310 17311 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17312 # mode. It turns out that the SunPro C++ compiler does not properly 17313 # handle '-M -o', and we need to detect this. Also, some Intel 17314 # versions had trouble with output in subdirs. 17315 am__obj=sub/conftest.${OBJEXT-o} 17316 am__minus_obj="-o $am__obj" 17317 case $depmode in 17318 gcc) 17319 # This depmode causes a compiler race in universal mode. 17320 test "$am__universal" = false || continue 17321 ;; 17322 nosideeffect) 17323 # After this tag, mechanisms are not by side-effect, so they'll 17324 # only be used when explicitly requested. 17325 if test "x$enable_dependency_tracking" = xyes; then 17326 continue 17327 else 17328 break 17329 fi 17330 ;; 17331 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17332 # This compiler won't grok '-c -o', but also, the minuso test has 17333 # not run yet. These depmodes are late enough in the game, and 17334 # so weak that their functioning should not be impacted. 17335 am__obj=conftest.${OBJEXT-o} 17336 am__minus_obj= 17337 ;; 17338 none) break ;; 17339 esac 17340 if depmode=$depmode \ 17341 source=sub/conftest.c object=$am__obj \ 17342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17344 >/dev/null 2>conftest.err && 17345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17349 # icc doesn't choke on unknown options, it will just issue warnings 17350 # or remarks (even with -Werror). So we grep stderr for any message 17351 # that says an option was ignored or not supported. 17352 # When given -MP, icc 7.0 and 7.1 complain thusly: 17353 # icc: Command line warning: ignoring option '-M'; no argument required 17354 # The diagnosis changed in icc 8.0: 17355 # icc: Command line remark: option '-MP' not supported 17356 if (grep 'ignoring option' conftest.err || 17357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17358 am_cv_CC_dependencies_compiler_type=$depmode 17359 break 17360 fi 17361 fi 17362 done 17363 17364 cd .. 17365 rm -rf conftest.dir 17366else 17367 am_cv_CC_dependencies_compiler_type=none 17368fi 17369 17370fi 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 17372$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 17373CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 17374 17375 if 17376 test "x$enable_dependency_tracking" != xno \ 17377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 17378 am__fastdepCC_TRUE= 17379 am__fastdepCC_FALSE='#' 17380else 17381 am__fastdepCC_TRUE='#' 17382 am__fastdepCC_FALSE= 17383fi 17384 17385 17386am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 17387 17388 17389 17390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 17391$as_echo_n "checking whether ln -s works... " >&6; } 17392LN_S=$as_ln_s 17393if test "$LN_S" = "ln -s"; then 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17395$as_echo "yes" >&6; } 17396else 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 17398$as_echo "no, using $LN_S" >&6; } 17399fi 17400 17401for ac_prog in flex lex 17402do 17403 # Extract the first word of "$ac_prog", so it can be a program name with args. 17404set dummy $ac_prog; ac_word=$2 17405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17406$as_echo_n "checking for $ac_word... " >&6; } 17407if ${ac_cv_prog_LEX+:} false; then : 17408 $as_echo_n "(cached) " >&6 17409else 17410 if test -n "$LEX"; then 17411 ac_cv_prog_LEX="$LEX" # Let the user override the test. 17412else 17413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17414for as_dir in $PATH 17415do 17416 IFS=$as_save_IFS 17417 test -z "$as_dir" && as_dir=. 17418 for ac_exec_ext in '' $ac_executable_extensions; do 17419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17420 ac_cv_prog_LEX="$ac_prog" 17421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17422 break 2 17423 fi 17424done 17425 done 17426IFS=$as_save_IFS 17427 17428fi 17429fi 17430LEX=$ac_cv_prog_LEX 17431if test -n "$LEX"; then 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 17433$as_echo "$LEX" >&6; } 17434else 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17436$as_echo "no" >&6; } 17437fi 17438 17439 17440 test -n "$LEX" && break 17441done 17442test -n "$LEX" || LEX=":" 17443 17444if test "x$LEX" != "x:"; then 17445 cat >conftest.l <<_ACEOF 17446%% 17447a { ECHO; } 17448b { REJECT; } 17449c { yymore (); } 17450d { yyless (1); } 17451e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 17452 yyless ((input () != 0)); } 17453f { unput (yytext[0]); } 17454. { BEGIN INITIAL; } 17455%% 17456#ifdef YYTEXT_POINTER 17457extern char *yytext; 17458#endif 17459int 17460main (void) 17461{ 17462 return ! yylex () + ! yywrap (); 17463} 17464_ACEOF 17465{ { ac_try="$LEX conftest.l" 17466case "(($ac_try" in 17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17468 *) ac_try_echo=$ac_try;; 17469esac 17470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17471$as_echo "$ac_try_echo"; } >&5 17472 (eval "$LEX conftest.l") 2>&5 17473 ac_status=$? 17474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17475 test $ac_status = 0; } 17476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 17477$as_echo_n "checking lex output file root... " >&6; } 17478if ${ac_cv_prog_lex_root+:} false; then : 17479 $as_echo_n "(cached) " >&6 17480else 17481 17482if test -f lex.yy.c; then 17483 ac_cv_prog_lex_root=lex.yy 17484elif test -f lexyy.c; then 17485 ac_cv_prog_lex_root=lexyy 17486else 17487 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 17488fi 17489fi 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 17491$as_echo "$ac_cv_prog_lex_root" >&6; } 17492LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 17493 17494if test -z "${LEXLIB+set}"; then 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 17496$as_echo_n "checking lex library... " >&6; } 17497if ${ac_cv_lib_lex+:} false; then : 17498 $as_echo_n "(cached) " >&6 17499else 17500 17501 ac_save_LIBS=$LIBS 17502 ac_cv_lib_lex='none needed' 17503 for ac_lib in '' -lfl -ll; do 17504 LIBS="$ac_lib $ac_save_LIBS" 17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17506/* end confdefs.h. */ 17507`cat $LEX_OUTPUT_ROOT.c` 17508_ACEOF 17509if ac_fn_c_try_link "$LINENO"; then : 17510 ac_cv_lib_lex=$ac_lib 17511fi 17512rm -f core conftest.err conftest.$ac_objext \ 17513 conftest$ac_exeext conftest.$ac_ext 17514 test "$ac_cv_lib_lex" != 'none needed' && break 17515 done 17516 LIBS=$ac_save_LIBS 17517 17518fi 17519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 17520$as_echo "$ac_cv_lib_lex" >&6; } 17521 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 17522fi 17523 17524 17525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 17526$as_echo_n "checking whether yytext is a pointer... " >&6; } 17527if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 17528 $as_echo_n "(cached) " >&6 17529else 17530 # POSIX says lex can declare yytext either as a pointer or an array; the 17531# default is implementation-dependent. Figure out which it is, since 17532# not all implementations provide the %pointer and %array declarations. 17533ac_cv_prog_lex_yytext_pointer=no 17534ac_save_LIBS=$LIBS 17535LIBS="$LEXLIB $ac_save_LIBS" 17536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17537/* end confdefs.h. */ 17538 17539 #define YYTEXT_POINTER 1 17540`cat $LEX_OUTPUT_ROOT.c` 17541_ACEOF 17542if ac_fn_c_try_link "$LINENO"; then : 17543 ac_cv_prog_lex_yytext_pointer=yes 17544fi 17545rm -f core conftest.err conftest.$ac_objext \ 17546 conftest$ac_exeext conftest.$ac_ext 17547LIBS=$ac_save_LIBS 17548 17549fi 17550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 17551$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 17552if test $ac_cv_prog_lex_yytext_pointer = yes; then 17553 17554$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 17555 17556fi 17557rm -f conftest.l $LEX_OUTPUT_ROOT.c 17558 17559fi 17560if test "$LEX" = :; then 17561 LEX=${am_missing_run}flex 17562fi 17563for ac_prog in 'bison -y' byacc 17564do 17565 # Extract the first word of "$ac_prog", so it can be a program name with args. 17566set dummy $ac_prog; ac_word=$2 17567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17568$as_echo_n "checking for $ac_word... " >&6; } 17569if ${ac_cv_prog_YACC+:} false; then : 17570 $as_echo_n "(cached) " >&6 17571else 17572 if test -n "$YACC"; then 17573 ac_cv_prog_YACC="$YACC" # Let the user override the test. 17574else 17575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17576for as_dir in $PATH 17577do 17578 IFS=$as_save_IFS 17579 test -z "$as_dir" && as_dir=. 17580 for ac_exec_ext in '' $ac_executable_extensions; do 17581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17582 ac_cv_prog_YACC="$ac_prog" 17583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17584 break 2 17585 fi 17586done 17587 done 17588IFS=$as_save_IFS 17589 17590fi 17591fi 17592YACC=$ac_cv_prog_YACC 17593if test -n "$YACC"; then 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 17595$as_echo "$YACC" >&6; } 17596else 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17598$as_echo "no" >&6; } 17599fi 17600 17601 17602 test -n "$YACC" && break 17603done 17604test -n "$YACC" || YACC="yacc" 17605 17606 17607# Extract the first word of "test", so it can be a program name with args. 17608set dummy test; ac_word=$2 17609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17610$as_echo_n "checking for $ac_word... " >&6; } 17611if ${ac_cv_path_TEST+:} false; then : 17612 $as_echo_n "(cached) " >&6 17613else 17614 case $TEST in 17615 [\\/]* | ?:[\\/]*) 17616 ac_cv_path_TEST="$TEST" # Let the user override the test with a path. 17617 ;; 17618 *) 17619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17620for as_dir in $PATH 17621do 17622 IFS=$as_save_IFS 17623 test -z "$as_dir" && as_dir=. 17624 for ac_exec_ext in '' $ac_executable_extensions; do 17625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17626 ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext" 17627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17628 break 2 17629 fi 17630done 17631 done 17632IFS=$as_save_IFS 17633 17634 ;; 17635esac 17636fi 17637TEST=$ac_cv_path_TEST 17638if test -n "$TEST"; then 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5 17640$as_echo "$TEST" >&6; } 17641else 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17643$as_echo "no" >&6; } 17644fi 17645 17646 17647# Extract the first word of "true", so it can be a program name with args. 17648set dummy true; ac_word=$2 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17650$as_echo_n "checking for $ac_word... " >&6; } 17651if ${ac_cv_path_TRUE+:} false; then : 17652 $as_echo_n "(cached) " >&6 17653else 17654 case $TRUE in 17655 [\\/]* | ?:[\\/]*) 17656 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path. 17657 ;; 17658 *) 17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17660for as_dir in $PATH 17661do 17662 IFS=$as_save_IFS 17663 test -z "$as_dir" && as_dir=. 17664 for ac_exec_ext in '' $ac_executable_extensions; do 17665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17666 ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext" 17667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17668 break 2 17669 fi 17670done 17671 done 17672IFS=$as_save_IFS 17673 17674 ;; 17675esac 17676fi 17677TRUE=$ac_cv_path_TRUE 17678if test -n "$TRUE"; then 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 17680$as_echo "$TRUE" >&6; } 17681else 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17683$as_echo "no" >&6; } 17684fi 17685 17686 17687# Extract the first word of "find", so it can be a program name with args. 17688set dummy find; ac_word=$2 17689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17690$as_echo_n "checking for $ac_word... " >&6; } 17691if ${ac_cv_path_FIND+:} false; then : 17692 $as_echo_n "(cached) " >&6 17693else 17694 case $FIND in 17695 [\\/]* | ?:[\\/]*) 17696 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 17697 ;; 17698 *) 17699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17700for as_dir in $PATH 17701do 17702 IFS=$as_save_IFS 17703 test -z "$as_dir" && as_dir=. 17704 for ac_exec_ext in '' $ac_executable_extensions; do 17705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17706 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 17707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17708 break 2 17709 fi 17710done 17711 done 17712IFS=$as_save_IFS 17713 17714 ;; 17715esac 17716fi 17717FIND=$ac_cv_path_FIND 17718if test -n "$FIND"; then 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 17720$as_echo "$FIND" >&6; } 17721else 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17723$as_echo "no" >&6; } 17724fi 17725 17726 17727# Extract the first word of "perl", so it can be a program name with args. 17728set dummy perl; ac_word=$2 17729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17730$as_echo_n "checking for $ac_word... " >&6; } 17731if ${ac_cv_path_PERL+:} false; then : 17732 $as_echo_n "(cached) " >&6 17733else 17734 case $PERL in 17735 [\\/]* | ?:[\\/]*) 17736 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 17737 ;; 17738 *) 17739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17740for as_dir in $PATH 17741do 17742 IFS=$as_save_IFS 17743 test -z "$as_dir" && as_dir=. 17744 for ac_exec_ext in '' $ac_executable_extensions; do 17745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17746 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 17747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17748 break 2 17749 fi 17750done 17751 done 17752IFS=$as_save_IFS 17753 17754 ;; 17755esac 17756fi 17757PERL=$ac_cv_path_PERL 17758if test -n "$PERL"; then 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 17760$as_echo "$PERL" >&6; } 17761else 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17763$as_echo "no" >&6; } 17764fi 17765 17766 17767# Extract the first word of "glib-mkenums", so it can be a program name with args. 17768set dummy glib-mkenums; ac_word=$2 17769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17770$as_echo_n "checking for $ac_word... " >&6; } 17771if ${ac_cv_path_GLIB_MKENUMS+:} false; then : 17772 $as_echo_n "(cached) " >&6 17773else 17774 case $GLIB_MKENUMS in 17775 [\\/]* | ?:[\\/]*) 17776 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path. 17777 ;; 17778 *) 17779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17780for as_dir in $PATH 17781do 17782 IFS=$as_save_IFS 17783 test -z "$as_dir" && as_dir=. 17784 for ac_exec_ext in '' $ac_executable_extensions; do 17785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17786 ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext" 17787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17788 break 2 17789 fi 17790done 17791 done 17792IFS=$as_save_IFS 17793 17794 ;; 17795esac 17796fi 17797GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS 17798if test -n "$GLIB_MKENUMS"; then 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5 17800$as_echo "$GLIB_MKENUMS" >&6; } 17801else 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17803$as_echo "no" >&6; } 17804fi 17805 17806 17807# Extract the first word of "convert", so it can be a program name with args. 17808set dummy convert; ac_word=$2 17809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17810$as_echo_n "checking for $ac_word... " >&6; } 17811if ${ac_cv_path_CONVERT+:} false; then : 17812 $as_echo_n "(cached) " >&6 17813else 17814 case $CONVERT in 17815 [\\/]* | ?:[\\/]*) 17816 ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path. 17817 ;; 17818 *) 17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17820for as_dir in $PATH 17821do 17822 IFS=$as_save_IFS 17823 test -z "$as_dir" && as_dir=. 17824 for ac_exec_ext in '' $ac_executable_extensions; do 17825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17826 ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext" 17827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17828 break 2 17829 fi 17830done 17831 done 17832IFS=$as_save_IFS 17833 17834 ;; 17835esac 17836fi 17837CONVERT=$ac_cv_path_CONVERT 17838if test -n "$CONVERT"; then 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5 17840$as_echo "$CONVERT" >&6; } 17841else 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17843$as_echo "no" >&6; } 17844fi 17845 17846 17847# Extract the first word of "bash", so it can be a program name with args. 17848set dummy bash; ac_word=$2 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17850$as_echo_n "checking for $ac_word... " >&6; } 17851if ${ac_cv_path_BASHREAL+:} false; then : 17852 $as_echo_n "(cached) " >&6 17853else 17854 case $BASHREAL in 17855 [\\/]* | ?:[\\/]*) 17856 ac_cv_path_BASHREAL="$BASHREAL" # Let the user override the test with a path. 17857 ;; 17858 *) 17859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17860for as_dir in $PATH 17861do 17862 IFS=$as_save_IFS 17863 test -z "$as_dir" && as_dir=. 17864 for ac_exec_ext in '' $ac_executable_extensions; do 17865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17866 ac_cv_path_BASHREAL="$as_dir/$ac_word$ac_exec_ext" 17867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17868 break 2 17869 fi 17870done 17871 done 17872IFS=$as_save_IFS 17873 17874 ;; 17875esac 17876fi 17877BASHREAL=$ac_cv_path_BASHREAL 17878if test -n "$BASHREAL"; then 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASHREAL" >&5 17880$as_echo "$BASHREAL" >&6; } 17881else 17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17883$as_echo "no" >&6; } 17884fi 17885 17886 17887if test x${USE_MAINTAINER_MODE} = xyes ; then 17888 if test x${CONVERT} = x ; then 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript developer's guide cannot be regenerated!" >&5 17890$as_echo "$as_me: WARNING: PostScript developer's guide cannot be regenerated!" >&2;} 17891 fi 17892fi 17893# Extract the first word of "texi2html", so it can be a program name with args. 17894set dummy texi2html; ac_word=$2 17895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17896$as_echo_n "checking for $ac_word... " >&6; } 17897if ${ac_cv_path_TEXI2HTML+:} false; then : 17898 $as_echo_n "(cached) " >&6 17899else 17900 case $TEXI2HTML in 17901 [\\/]* | ?:[\\/]*) 17902 ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path. 17903 ;; 17904 *) 17905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17906for as_dir in $PATH 17907do 17908 IFS=$as_save_IFS 17909 test -z "$as_dir" && as_dir=. 17910 for ac_exec_ext in '' $ac_executable_extensions; do 17911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17912 ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext" 17913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17914 break 2 17915 fi 17916done 17917 done 17918IFS=$as_save_IFS 17919 17920 ;; 17921esac 17922fi 17923TEXI2HTML=$ac_cv_path_TEXI2HTML 17924if test -n "$TEXI2HTML"; then 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5 17926$as_echo "$TEXI2HTML" >&6; } 17927else 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17929$as_echo "no" >&6; } 17930fi 17931 17932 17933if test x${USE_MAINTAINER_MODE} = xyes ; then 17934 if test x${TEXI2HTML} = x ; then 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTML documentation cannot be regenerated!" >&5 17936$as_echo "$as_me: WARNING: HTML documentation cannot be regenerated!" >&2;} 17937 fi 17938fi 17939# Extract the first word of "dvips", so it can be a program name with args. 17940set dummy dvips; ac_word=$2 17941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17942$as_echo_n "checking for $ac_word... " >&6; } 17943if ${ac_cv_path_DVIPS+:} false; then : 17944 $as_echo_n "(cached) " >&6 17945else 17946 case $DVIPS in 17947 [\\/]* | ?:[\\/]*) 17948 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. 17949 ;; 17950 *) 17951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17952for as_dir in $PATH 17953do 17954 IFS=$as_save_IFS 17955 test -z "$as_dir" && as_dir=. 17956 for ac_exec_ext in '' $ac_executable_extensions; do 17957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17958 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" 17959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17960 break 2 17961 fi 17962done 17963 done 17964IFS=$as_save_IFS 17965 17966 ;; 17967esac 17968fi 17969DVIPS=$ac_cv_path_DVIPS 17970if test -n "$DVIPS"; then 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 17972$as_echo "$DVIPS" >&6; } 17973else 17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17975$as_echo "no" >&6; } 17976fi 17977 17978 17979if test x${USE_MAINTAINER_MODE} = xyes ; then 17980 if test x${DVIPS} = x ; then 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript documentation cannot be regenerated!" >&5 17982$as_echo "$as_me: WARNING: PostScript documentation cannot be regenerated!" >&2;} 17983 fi 17984fi 17985# Extract the first word of "db2pdf", so it can be a program name with args. 17986set dummy db2pdf; ac_word=$2 17987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17988$as_echo_n "checking for $ac_word... " >&6; } 17989if ${ac_cv_path_DB2PDF+:} false; then : 17990 $as_echo_n "(cached) " >&6 17991else 17992 case $DB2PDF in 17993 [\\/]* | ?:[\\/]*) 17994 ac_cv_path_DB2PDF="$DB2PDF" # Let the user override the test with a path. 17995 ;; 17996 *) 17997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17998for as_dir in $PATH 17999do 18000 IFS=$as_save_IFS 18001 test -z "$as_dir" && as_dir=. 18002 for ac_exec_ext in '' $ac_executable_extensions; do 18003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18004 ac_cv_path_DB2PDF="$as_dir/$ac_word$ac_exec_ext" 18005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18006 break 2 18007 fi 18008done 18009 done 18010IFS=$as_save_IFS 18011 18012 ;; 18013esac 18014fi 18015DB2PDF=$ac_cv_path_DB2PDF 18016if test -n "$DB2PDF"; then 18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2PDF" >&5 18018$as_echo "$DB2PDF" >&6; } 18019else 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18021$as_echo "no" >&6; } 18022fi 18023 18024 18025if test x${USE_MAINTAINER_MODE} = xyes ; then 18026 if test x${DB2PDF} = x ; then 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF developer's guide cannot be regenerated!" >&5 18028$as_echo "$as_me: WARNING: PDF developer's guide cannot be regenerated!" >&2;} 18029 fi 18030fi 18031for ac_prog in dvipdf dvipdfm 18032do 18033 # Extract the first word of "$ac_prog", so it can be a program name with args. 18034set dummy $ac_prog; ac_word=$2 18035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18036$as_echo_n "checking for $ac_word... " >&6; } 18037if ${ac_cv_path_DVIPDF+:} false; then : 18038 $as_echo_n "(cached) " >&6 18039else 18040 case $DVIPDF in 18041 [\\/]* | ?:[\\/]*) 18042 ac_cv_path_DVIPDF="$DVIPDF" # Let the user override the test with a path. 18043 ;; 18044 *) 18045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18046for as_dir in $PATH 18047do 18048 IFS=$as_save_IFS 18049 test -z "$as_dir" && as_dir=. 18050 for ac_exec_ext in '' $ac_executable_extensions; do 18051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18052 ac_cv_path_DVIPDF="$as_dir/$ac_word$ac_exec_ext" 18053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18054 break 2 18055 fi 18056done 18057 done 18058IFS=$as_save_IFS 18059 18060 ;; 18061esac 18062fi 18063DVIPDF=$ac_cv_path_DVIPDF 18064if test -n "$DVIPDF"; then 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPDF" >&5 18066$as_echo "$DVIPDF" >&6; } 18067else 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18069$as_echo "no" >&6; } 18070fi 18071 18072 18073 test -n "$DVIPDF" && break 18074done 18075 18076if test x${USE_MAINTAINER_MODE} = xyes ; then 18077 if test x${DVIPDF} = x ; then 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF documentation cannot be regenerated!" >&5 18079$as_echo "$as_me: WARNING: PDF documentation cannot be regenerated!" >&2;} 18080 fi 18081fi 18082# Extract the first word of "db2ps", so it can be a program name with args. 18083set dummy db2ps; ac_word=$2 18084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18085$as_echo_n "checking for $ac_word... " >&6; } 18086if ${ac_cv_path_DB2PS+:} false; then : 18087 $as_echo_n "(cached) " >&6 18088else 18089 case $DB2PS in 18090 [\\/]* | ?:[\\/]*) 18091 ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path. 18092 ;; 18093 *) 18094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18095for as_dir in $PATH 18096do 18097 IFS=$as_save_IFS 18098 test -z "$as_dir" && as_dir=. 18099 for ac_exec_ext in '' $ac_executable_extensions; do 18100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18101 ac_cv_path_DB2PS="$as_dir/$ac_word$ac_exec_ext" 18102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18103 break 2 18104 fi 18105done 18106 done 18107IFS=$as_save_IFS 18108 18109 ;; 18110esac 18111fi 18112DB2PS=$ac_cv_path_DB2PS 18113if test -n "$DB2PS"; then 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2PS" >&5 18115$as_echo "$DB2PS" >&6; } 18116else 18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18118$as_echo "no" >&6; } 18119fi 18120 18121 18122if test x${USE_MAINTAINER_MODE} = xyes ; then 18123 if test x${DB2PS} = x ; then 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript developer's guide cannot be regenerated!" >&5 18125$as_echo "$as_me: WARNING: PostScript developer's guide cannot be regenerated!" >&2;} 18126 fi 18127fi 18128# Extract the first word of "db2html", so it can be a program name with args. 18129set dummy db2html; ac_word=$2 18130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18131$as_echo_n "checking for $ac_word... " >&6; } 18132if ${ac_cv_path_DB2HTML+:} false; then : 18133 $as_echo_n "(cached) " >&6 18134else 18135 case $DB2HTML in 18136 [\\/]* | ?:[\\/]*) 18137 ac_cv_path_DB2HTML="$DB2HTML" # Let the user override the test with a path. 18138 ;; 18139 *) 18140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18141for as_dir in $PATH 18142do 18143 IFS=$as_save_IFS 18144 test -z "$as_dir" && as_dir=. 18145 for ac_exec_ext in '' $ac_executable_extensions; do 18146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18147 ac_cv_path_DB2HTML="$as_dir/$ac_word$ac_exec_ext" 18148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18149 break 2 18150 fi 18151done 18152 done 18153IFS=$as_save_IFS 18154 18155 ;; 18156esac 18157fi 18158DB2HTML=$ac_cv_path_DB2HTML 18159if test -n "$DB2HTML"; then 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2HTML" >&5 18161$as_echo "$DB2HTML" >&6; } 18162else 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18164$as_echo "no" >&6; } 18165fi 18166 18167 18168if test x${USE_MAINTAINER_MODE} = xyes ; then 18169 if test x${DB2HTML} = x ; then 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTML developer's guide cannot be regenerated!" >&5 18171$as_echo "$as_me: WARNING: HTML developer's guide cannot be regenerated!" >&2;} 18172 fi 18173fi 18174# Extract the first word of "doxygen", so it can be a program name with args. 18175set dummy doxygen; ac_word=$2 18176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18177$as_echo_n "checking for $ac_word... " >&6; } 18178if ${ac_cv_path_DOXYGEN+:} false; then : 18179 $as_echo_n "(cached) " >&6 18180else 18181 case $DOXYGEN in 18182 [\\/]* | ?:[\\/]*) 18183 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18184 ;; 18185 *) 18186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18187for as_dir in $PATH 18188do 18189 IFS=$as_save_IFS 18190 test -z "$as_dir" && as_dir=. 18191 for ac_exec_ext in '' $ac_executable_extensions; do 18192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18193 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18195 break 2 18196 fi 18197done 18198 done 18199IFS=$as_save_IFS 18200 18201 ;; 18202esac 18203fi 18204DOXYGEN=$ac_cv_path_DOXYGEN 18205if test -n "$DOXYGEN"; then 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18207$as_echo "$DOXYGEN" >&6; } 18208else 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18210$as_echo "no" >&6; } 18211fi 18212 18213 18214if test x${USE_MAINTAINER_MODE} = xyes ; then 18215 if test x${DOXYGEN} = x ; then 18216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTML developer's guide cannot be regenerated!" >&5 18217$as_echo "$as_me: WARNING: HTML developer's guide cannot be regenerated!" >&2;} 18218 fi 18219fi 18220 18221# Extract the first word of "xz", so it can be a program name with args. 18222set dummy xz; ac_word=$2 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18224$as_echo_n "checking for $ac_word... " >&6; } 18225if ${ac_cv_path_XZ+:} false; then : 18226 $as_echo_n "(cached) " >&6 18227else 18228 case $XZ in 18229 [\\/]* | ?:[\\/]*) 18230 ac_cv_path_XZ="$XZ" # Let the user override the test with a path. 18231 ;; 18232 *) 18233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18234for as_dir in $PATH 18235do 18236 IFS=$as_save_IFS 18237 test -z "$as_dir" && as_dir=. 18238 for ac_exec_ext in '' $ac_executable_extensions; do 18239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18240 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext" 18241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18242 break 2 18243 fi 18244done 18245 done 18246IFS=$as_save_IFS 18247 18248 ;; 18249esac 18250fi 18251XZ=$ac_cv_path_XZ 18252if test -n "$XZ"; then 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5 18254$as_echo "$XZ" >&6; } 18255else 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18257$as_echo "no" >&6; } 18258fi 18259 18260 18261# Extract the first word of "gzip", so it can be a program name with args. 18262set dummy gzip; ac_word=$2 18263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18264$as_echo_n "checking for $ac_word... " >&6; } 18265if ${ac_cv_path_GZIP+:} false; then : 18266 $as_echo_n "(cached) " >&6 18267else 18268 case $GZIP in 18269 [\\/]* | ?:[\\/]*) 18270 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 18271 ;; 18272 *) 18273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18274for as_dir in $PATH 18275do 18276 IFS=$as_save_IFS 18277 test -z "$as_dir" && as_dir=. 18278 for ac_exec_ext in '' $ac_executable_extensions; do 18279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18280 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 18281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18282 break 2 18283 fi 18284done 18285 done 18286IFS=$as_save_IFS 18287 18288 ;; 18289esac 18290fi 18291GZIP=$ac_cv_path_GZIP 18292if test -n "$GZIP"; then 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 18294$as_echo "$GZIP" >&6; } 18295else 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18297$as_echo "no" >&6; } 18298fi 18299 18300 18301# Extract the first word of "bzip2", so it can be a program name with args. 18302set dummy bzip2; ac_word=$2 18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18304$as_echo_n "checking for $ac_word... " >&6; } 18305if ${ac_cv_path_BZIP2+:} false; then : 18306 $as_echo_n "(cached) " >&6 18307else 18308 case $BZIP2 in 18309 [\\/]* | ?:[\\/]*) 18310 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 18311 ;; 18312 *) 18313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18314for as_dir in $PATH 18315do 18316 IFS=$as_save_IFS 18317 test -z "$as_dir" && as_dir=. 18318 for ac_exec_ext in '' $ac_executable_extensions; do 18319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18320 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 18321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18322 break 2 18323 fi 18324done 18325 done 18326IFS=$as_save_IFS 18327 18328 ;; 18329esac 18330fi 18331BZIP2=$ac_cv_path_BZIP2 18332if test -n "$BZIP2"; then 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5 18334$as_echo "$BZIP2" >&6; } 18335else 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18337$as_echo "no" >&6; } 18338fi 18339 18340 18341# Extract the first word of "lrzip", so it can be a program name with args. 18342set dummy lrzip; ac_word=$2 18343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18344$as_echo_n "checking for $ac_word... " >&6; } 18345if ${ac_cv_path_LRZIP+:} false; then : 18346 $as_echo_n "(cached) " >&6 18347else 18348 case $LRZIP in 18349 [\\/]* | ?:[\\/]*) 18350 ac_cv_path_LRZIP="$LRZIP" # Let the user override the test with a path. 18351 ;; 18352 *) 18353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18354for as_dir in $PATH 18355do 18356 IFS=$as_save_IFS 18357 test -z "$as_dir" && as_dir=. 18358 for ac_exec_ext in '' $ac_executable_extensions; do 18359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18360 ac_cv_path_LRZIP="$as_dir/$ac_word$ac_exec_ext" 18361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18362 break 2 18363 fi 18364done 18365 done 18366IFS=$as_save_IFS 18367 18368 ;; 18369esac 18370fi 18371LRZIP=$ac_cv_path_LRZIP 18372if test -n "$LRZIP"; then 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LRZIP" >&5 18374$as_echo "$LRZIP" >&6; } 18375else 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18377$as_echo "no" >&6; } 18378fi 18379 18380 18381# Extract the first word of "rzip", so it can be a program name with args. 18382set dummy rzip; ac_word=$2 18383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18384$as_echo_n "checking for $ac_word... " >&6; } 18385if ${ac_cv_path_RZIP+:} false; then : 18386 $as_echo_n "(cached) " >&6 18387else 18388 case $RZIP in 18389 [\\/]* | ?:[\\/]*) 18390 ac_cv_path_RZIP="$RZIP" # Let the user override the test with a path. 18391 ;; 18392 *) 18393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18394for as_dir in $PATH 18395do 18396 IFS=$as_save_IFS 18397 test -z "$as_dir" && as_dir=. 18398 for ac_exec_ext in '' $ac_executable_extensions; do 18399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18400 ac_cv_path_RZIP="$as_dir/$ac_word$ac_exec_ext" 18401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18402 break 2 18403 fi 18404done 18405 done 18406IFS=$as_save_IFS 18407 18408 ;; 18409esac 18410fi 18411RZIP=$ac_cv_path_RZIP 18412if test -n "$RZIP"; then 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RZIP" >&5 18414$as_echo "$RZIP" >&6; } 18415else 18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18417$as_echo "no" >&6; } 18418fi 18419 18420 18421# Extract the first word of "zpaq", so it can be a program name with args. 18422set dummy zpaq; ac_word=$2 18423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18424$as_echo_n "checking for $ac_word... " >&6; } 18425if ${ac_cv_path_ZPAQ+:} false; then : 18426 $as_echo_n "(cached) " >&6 18427else 18428 case $ZPAQ in 18429 [\\/]* | ?:[\\/]*) 18430 ac_cv_path_ZPAQ="$ZPAQ" # Let the user override the test with a path. 18431 ;; 18432 *) 18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18434for as_dir in $PATH 18435do 18436 IFS=$as_save_IFS 18437 test -z "$as_dir" && as_dir=. 18438 for ac_exec_ext in '' $ac_executable_extensions; do 18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18440 ac_cv_path_ZPAQ="$as_dir/$ac_word$ac_exec_ext" 18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18442 break 2 18443 fi 18444done 18445 done 18446IFS=$as_save_IFS 18447 18448 ;; 18449esac 18450fi 18451ZPAQ=$ac_cv_path_ZPAQ 18452if test -n "$ZPAQ"; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZPAQ" >&5 18454$as_echo "$ZPAQ" >&6; } 18455else 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18457$as_echo "no" >&6; } 18458fi 18459 18460 18461# Extract the first word of "bash", so it can be a program name with args. 18462set dummy bash; ac_word=$2 18463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18464$as_echo_n "checking for $ac_word... " >&6; } 18465if ${ac_cv_path_BASH+:} false; then : 18466 $as_echo_n "(cached) " >&6 18467else 18468 case $BASH in 18469 [\\/]* | ?:[\\/]*) 18470 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 18471 ;; 18472 *) 18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18474for as_dir in $PATH 18475do 18476 IFS=$as_save_IFS 18477 test -z "$as_dir" && as_dir=. 18478 for ac_exec_ext in '' $ac_executable_extensions; do 18479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18480 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 18481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18482 break 2 18483 fi 18484done 18485 done 18486IFS=$as_save_IFS 18487 18488 ;; 18489esac 18490fi 18491BASH=$ac_cv_path_BASH 18492if test -n "$BASH"; then 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 18494$as_echo "$BASH" >&6; } 18495else 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18497$as_echo "no" >&6; } 18498fi 18499 18500 18501if test x${ZPAQ} != x ; then 18502 COMPRESS='$(top_builddir)/scripts/wzpaq -z -q' 18503 CSUF=.zpaq 18504elif test x${LRZIP} != x ; then 18505 COMPRESS="${LRZIP} -z -q" 18506 CSUF=.lrz 18507elif test x${XZ} != x ; then 18508 COMPRESS="${XZ} -e -9" 18509 CSUF=.xz 18510elif test x${RZIP} != x ; then 18511 COMPRESS="${RZIP} -9" 18512 CSUF=.rz 18513elif test x${BZIP2} != x ; then 18514 COMPRESS="${BZIP2} -9" 18515 CSUF=.bz2 18516else 18517 COMPRESS="${GZIP} -9" 18518 CSUF=.gz 18519fi 18520 18521 18522 18523GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION} 18524 18525cat >>confdefs.h <<_ACEOF 18526#define GUTENPRINT_RELEASE_VERSION "${GUTENPRINT_RELEASE_VERSION}" 18527_ACEOF 18528 18529GUTENPRINT_BASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION}.${GUTENPRINT_MICRO_VERSION} 18530 18531cat >>confdefs.h <<_ACEOF 18532#define GUTENPRINT_BASE_VERSION "${GUTENPRINT_BASE_VERSION}" 18533_ACEOF 18534 18535 18536 18537if test "x${prefix}" = "xNONE"; then 18538 cat >>confdefs.h <<_ACEOF 18539#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/share/locale" 18540_ACEOF 18541 18542else 18543 cat >>confdefs.h <<_ACEOF 18544#define PACKAGE_LOCALE_DIR "${prefix}/share/locale" 18545_ACEOF 18546 18547fi 18548 18549 18550if test "x${datadir}" = 'x${prefix}/share'; then 18551 if test "x${prefix}" = "xNONE"; then 18552 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" 18553 else 18554 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" 18555 fi 18556elif test "x${datadir}" = 'x${datarootdir}'; then 18557 if test "x${datarootdir}" = 'x${prefix}/share'; then 18558 if test "x${prefix}" = "xNONE"; then 18559 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" 18560 else 18561 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" 18562 fi 18563 else 18564 PACKAGE_DATA_DIR="${datarootdir}/${PACKAGE}" 18565 fi 18566else 18567 PACKAGE_DATA_DIR="${datadir}/${PACKAGE}" 18568fi 18569 18570cat >>confdefs.h <<_ACEOF 18571#define PACKAGE_DATA_DIR "${PACKAGE_DATA_DIR}" 18572_ACEOF 18573 18574 18575 18576if test "x${libdir}" = 'x${exec_prefix}/lib'; then 18577 if test "x${exec_prefix}" = "xNONE"; then 18578 if test "x${prefix}" = "xNONE"; then 18579 PACKAGE_LIB_DIR="${ac_default_prefix}/lib/${PACKAGE}" 18580 else 18581 PACKAGE_LIB_DIR="${prefix}/lib/${PACKAGE}" 18582 fi 18583 else 18584 PACKAGE_LIB_DIR="${exec_prefix}/lib/${PACKAGE}" 18585 fi 18586else 18587 PACKAGE_LIB_DIR="${libdir}/${PACKAGE}" 18588fi 18589 18590cat >>confdefs.h <<_ACEOF 18591#define PACKAGE_LIB_DIR "${PACKAGE_LIB_DIR}" 18592_ACEOF 18593 18594 18595 18596if test "x${bindir}" = 'x${exec_prefix}/bin'; then 18597 if test "x${exec_prefix}" = "xNONE"; then 18598 if test "x${prefix}" = "xNONE"; then 18599 PACKAGE_BIN_DIR="${ac_default_prefix}/bin" 18600 else 18601 PACKAGE_BIN_DIR="${prefix}/bin" 18602 fi 18603 else 18604 PACKAGE_BIN_DIR="${exec_prefix}/bin" 18605 fi 18606else 18607 PACKAGE_BIN_DIR="${bindir}" 18608fi 18609 18610cat >>confdefs.h <<_ACEOF 18611#define PACKAGE_BIN_DIR "${PACKAGE_BIN_DIR}" 18612_ACEOF 18613 18614 18615 18616PKGXMLDATADIR="${PACKAGE_DATA_DIR}/${GUTENPRINT_RELEASE_VERSION}/xml" 18617cat >>confdefs.h <<_ACEOF 18618#define PKGXMLDATADIR "$PKGXMLDATADIR" 18619_ACEOF 18620 18621 18622 18623PKGMODULEDIR="${PACKAGE_LIB_DIR}/${GUTENPRINT_RELEASE_VERSION}/modules" 18624cat >>confdefs.h <<_ACEOF 18625#define PKGMODULEDIR "$PKGMODULEDIR" 18626_ACEOF 18627 18628 18629if test x$ac_compiler_gnu = "xyes"; then 18630 18631 for stp_ac_arg in -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration -Winline -Wformat=2 -finline-limit=131072 -Wformat -Werror=format-security -Wmissing-prototypes ; do 18632 18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5 18634$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; } 18635 stp_acOLDCFLAGS="${CFLAGS}" 18636 NCFLAGS="${GNUCFLAGS} ${stp_ac_arg}" 18637 CFLAGS="$NCFLAGS -Werror" 18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18639/* end confdefs.h. */ 18640 18641int 18642main () 18643{ 18644 18645 ; 18646 return 0; 18647} 18648_ACEOF 18649if ac_fn_c_try_compile "$LINENO"; then : 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18651$as_echo "yes" >&6; }; 18652 stp_newCFLAGS="$NCFLAGS" 18653else 18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18655$as_echo "no" >&6; }; 18656 stp_newCFLAGS="$stp_acOLDCFLAGS" 18657fi 18658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18659 CFLAGS="$stp_acOLDCFLAGS" 18660 GNUCFLAGS="${stp_newCFLAGS}" 18661 18662 done 18663 18664 if test x${USE_MAINTAINER_MODE} = xyes ; then 18665 18666 for stp_ac_arg in -D_POSIX_C_SOURCE=200809L -std=c99 -pedantic -Waggregate-return -Wcast-qual -Wshadow -Wredundant-decls ; do 18667 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5 18669$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; } 18670 stp_acOLDCFLAGS="${CFLAGS}" 18671 NCFLAGS="${GNUCFLAGS} ${stp_ac_arg}" 18672 CFLAGS="$NCFLAGS -Werror" 18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18674/* end confdefs.h. */ 18675 18676int 18677main () 18678{ 18679 18680 ; 18681 return 0; 18682} 18683_ACEOF 18684if ac_fn_c_try_compile "$LINENO"; then : 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18686$as_echo "yes" >&6; }; 18687 stp_newCFLAGS="$NCFLAGS" 18688else 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18690$as_echo "no" >&6; }; 18691 stp_newCFLAGS="$stp_acOLDCFLAGS" 18692fi 18693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18694 CFLAGS="$stp_acOLDCFLAGS" 18695 GNUCFLAGS="${stp_newCFLAGS}" 18696 18697 done 18698 18699 fi 18700 if test x$ENABLE_DEBUG = xyes ; then 18701 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -g" >&5 18703$as_echo_n "checking if ${CC} supports -g... " >&6; } 18704 stp_acOLDCFLAGS="${CFLAGS}" 18705 NCFLAGS="${CFLAGS} -g" 18706 CFLAGS="$NCFLAGS -Werror" 18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18708/* end confdefs.h. */ 18709 18710int 18711main () 18712{ 18713 18714 ; 18715 return 0; 18716} 18717_ACEOF 18718if ac_fn_c_try_compile "$LINENO"; then : 18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18720$as_echo "yes" >&6; }; 18721 stp_newCFLAGS="$NCFLAGS" 18722else 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18724$as_echo "no" >&6; }; 18725 stp_newCFLAGS="$stp_acOLDCFLAGS" 18726fi 18727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18728 CFLAGS="$stp_acOLDCFLAGS" 18729 CFLAGS="${stp_newCFLAGS}" 18730 18731 else 18732 18733 for stp_ac_arg in -O3 -O2 -O1 -O ; do 18734 stp_ac_save_CFLAGS="${CFLAGS}" 18735 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5 18737$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; } 18738 stp_acOLDCFLAGS="${CFLAGS}" 18739 NCFLAGS="${CFLAGS} ${stp_ac_arg}" 18740 CFLAGS="$NCFLAGS -Werror" 18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18742/* end confdefs.h. */ 18743 18744int 18745main () 18746{ 18747 18748 ; 18749 return 0; 18750} 18751_ACEOF 18752if ac_fn_c_try_compile "$LINENO"; then : 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18754$as_echo "yes" >&6; }; 18755 stp_newCFLAGS="$NCFLAGS" 18756else 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18758$as_echo "no" >&6; }; 18759 stp_newCFLAGS="$stp_acOLDCFLAGS" 18760fi 18761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18762 CFLAGS="$stp_acOLDCFLAGS" 18763 CFLAGS="${stp_newCFLAGS}" 18764 18765 test "${stp_ac_save_CFLAGS}" != "${CFLAGS}" && break 18766 done 18767 18768 fi 18769else 18770 if test x$ENABLE_DEBUG = xyes ; then 18771 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -g" >&5 18773$as_echo_n "checking if ${CC} supports -g... " >&6; } 18774 stp_acOLDCFLAGS="${CFLAGS}" 18775 NCFLAGS="${CFLAGS} -g" 18776 CFLAGS="$NCFLAGS -Werror" 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778/* end confdefs.h. */ 18779 18780int 18781main () 18782{ 18783 18784 ; 18785 return 0; 18786} 18787_ACEOF 18788if ac_fn_c_try_compile "$LINENO"; then : 18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18790$as_echo "yes" >&6; }; 18791 stp_newCFLAGS="$NCFLAGS" 18792else 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18794$as_echo "no" >&6; }; 18795 stp_newCFLAGS="$stp_acOLDCFLAGS" 18796fi 18797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18798 CFLAGS="$stp_acOLDCFLAGS" 18799 CFLAGS="${stp_newCFLAGS}" 18800 18801 else 18802 18803 for stp_ac_arg in -O ; do 18804 stp_ac_save_CFLAGS="${CFLAGS}" 18805 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5 18807$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; } 18808 stp_acOLDCFLAGS="${CFLAGS}" 18809 NCFLAGS="${CFLAGS} ${stp_ac_arg}" 18810 CFLAGS="$NCFLAGS -Werror" 18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18812/* end confdefs.h. */ 18813 18814int 18815main () 18816{ 18817 18818 ; 18819 return 0; 18820} 18821_ACEOF 18822if ac_fn_c_try_compile "$LINENO"; then : 18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18824$as_echo "yes" >&6; }; 18825 stp_newCFLAGS="$NCFLAGS" 18826else 18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18828$as_echo "no" >&6; }; 18829 stp_newCFLAGS="$stp_acOLDCFLAGS" 18830fi 18831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18832 CFLAGS="$stp_acOLDCFLAGS" 18833 CFLAGS="${stp_newCFLAGS}" 18834 18835 test "${stp_ac_save_CFLAGS}" != "${CFLAGS}" && break 18836 done 18837 18838 fi 18839fi 18840if test x$ENABLE_PROFILE = xyes ; then 18841 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -pg" >&5 18843$as_echo_n "checking if ${CC} supports -pg... " >&6; } 18844 stp_acOLDCFLAGS="${CFLAGS}" 18845 NCFLAGS="${CFLAGS} -pg" 18846 CFLAGS="$NCFLAGS -Werror" 18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18848/* end confdefs.h. */ 18849 18850int 18851main () 18852{ 18853 18854 ; 18855 return 0; 18856} 18857_ACEOF 18858if ac_fn_c_try_compile "$LINENO"; then : 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18860$as_echo "yes" >&6; }; 18861 stp_newCFLAGS="$NCFLAGS" 18862else 18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18864$as_echo "no" >&6; }; 18865 stp_newCFLAGS="$stp_acOLDCFLAGS" 18866fi 18867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18868 CFLAGS="$stp_acOLDCFLAGS" 18869 CFLAGS="${stp_newCFLAGS}" 18870 18871fi 18872 18873 18874 18875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__ syntax" >&5 18876$as_echo_n "checking if $CC supports __attribute__ syntax... " >&6; } 18877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18878/* end confdefs.h. */ 18879typedef struct __attribute__((__packed__)) { 18880 unsigned char foo; 18881 char bar; 18882 long baz; 18883} test_struct_t; 18884int 18885main () 18886{ 18887test_struct_t mystruct; 18888 ; 18889 return 0; 18890} 18891_ACEOF 18892if ac_fn_c_try_compile "$LINENO"; then : 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18894$as_echo "yes" >&6; } 18895 $as_echo "#define HAVE_GCC_ATTRIBUTES 1" >>confdefs.h 18896 18897else 18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18899$as_echo "no" >&6; } 18900fi 18901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18902 18903 18904 18905 18906if test "$USE_READLINE" = yes ; then 18907 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then 18908 unset ac_cv_lib_readline_readline 18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 18910$as_echo_n "checking for readline in -lreadline... " >&6; } 18911if ${ac_cv_lib_readline_readline+:} false; then : 18912 $as_echo_n "(cached) " >&6 18913else 18914 ac_check_lib_save_LIBS=$LIBS 18915LIBS="-lreadline -lncurses $LIBS" 18916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18917/* end confdefs.h. */ 18918 18919/* Override any GCC internal prototype to avoid an error. 18920 Use char because int might match the return type of a GCC 18921 builtin and then its argument prototype would still apply. */ 18922#ifdef __cplusplus 18923extern "C" 18924#endif 18925char readline (); 18926int 18927main () 18928{ 18929return readline (); 18930 ; 18931 return 0; 18932} 18933_ACEOF 18934if ac_fn_c_try_link "$LINENO"; then : 18935 ac_cv_lib_readline_readline=yes 18936else 18937 ac_cv_lib_readline_readline=no 18938fi 18939rm -f core conftest.err conftest.$ac_objext \ 18940 conftest$ac_exeext conftest.$ac_ext 18941LIBS=$ac_check_lib_save_LIBS 18942fi 18943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 18944$as_echo "$ac_cv_lib_readline_readline" >&6; } 18945if test "x$ac_cv_lib_readline_readline" = xyes; then : 18946 HAVE_LIBREADLINE=true 18947else 18948 HAVE_LIBREADLINE=false 18949fi 18950 18951 if test x${HAVE_LIBREADLINE} = xtrue ; then 18952 echo " Using -lreadline -lncurses" 18953 EXTRA_LIBREADLINE_DEPS=-lncurses 18954 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 18955 18956 else 18957 unset ac_cv_lib_readline_readline 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 18959$as_echo_n "checking for readline in -lreadline... " >&6; } 18960if ${ac_cv_lib_readline_readline+:} false; then : 18961 $as_echo_n "(cached) " >&6 18962else 18963 ac_check_lib_save_LIBS=$LIBS 18964LIBS="-lreadline -lcurses $LIBS" 18965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18966/* end confdefs.h. */ 18967 18968/* Override any GCC internal prototype to avoid an error. 18969 Use char because int might match the return type of a GCC 18970 builtin and then its argument prototype would still apply. */ 18971#ifdef __cplusplus 18972extern "C" 18973#endif 18974char readline (); 18975int 18976main () 18977{ 18978return readline (); 18979 ; 18980 return 0; 18981} 18982_ACEOF 18983if ac_fn_c_try_link "$LINENO"; then : 18984 ac_cv_lib_readline_readline=yes 18985else 18986 ac_cv_lib_readline_readline=no 18987fi 18988rm -f core conftest.err conftest.$ac_objext \ 18989 conftest$ac_exeext conftest.$ac_ext 18990LIBS=$ac_check_lib_save_LIBS 18991fi 18992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 18993$as_echo "$ac_cv_lib_readline_readline" >&6; } 18994if test "x$ac_cv_lib_readline_readline" = xyes; then : 18995 HAVE_LIBREADLINE=true 18996else 18997 HAVE_LIBREADLINE=false 18998fi 18999 19000 if test x${HAVE_LIBREADLINE} = xtrue ; then 19001 echo " Using -lreadline -lcurses" 19002 EXTRA_LIBREADLINE_DEPS=-lcurses 19003 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 19004 19005 else 19006 unset ac_cv_lib_readline_readline 19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 19008$as_echo_n "checking for readline in -lreadline... " >&6; } 19009if ${ac_cv_lib_readline_readline+:} false; then : 19010 $as_echo_n "(cached) " >&6 19011else 19012 ac_check_lib_save_LIBS=$LIBS 19013LIBS="-lreadline -ltermcap $LIBS" 19014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19015/* end confdefs.h. */ 19016 19017/* Override any GCC internal prototype to avoid an error. 19018 Use char because int might match the return type of a GCC 19019 builtin and then its argument prototype would still apply. */ 19020#ifdef __cplusplus 19021extern "C" 19022#endif 19023char readline (); 19024int 19025main () 19026{ 19027return readline (); 19028 ; 19029 return 0; 19030} 19031_ACEOF 19032if ac_fn_c_try_link "$LINENO"; then : 19033 ac_cv_lib_readline_readline=yes 19034else 19035 ac_cv_lib_readline_readline=no 19036fi 19037rm -f core conftest.err conftest.$ac_objext \ 19038 conftest$ac_exeext conftest.$ac_ext 19039LIBS=$ac_check_lib_save_LIBS 19040fi 19041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 19042$as_echo "$ac_cv_lib_readline_readline" >&6; } 19043if test "x$ac_cv_lib_readline_readline" = xyes; then : 19044 HAVE_LIBREADLINE=true 19045else 19046 HAVE_LIBREADLINE=false 19047fi 19048 19049 if test x${HAVE_LIBREADLINE} = xtrue ; then 19050 echo " Using -lreadline -ltermcap" 19051 EXTRA_LIBREADLINE_DEPS=-ltermcap 19052 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 19053 19054 else 19055 unset ac_cv_lib_readline_readline 19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 19057$as_echo_n "checking for readline in -lreadline... " >&6; } 19058if ${ac_cv_lib_readline_readline+:} false; then : 19059 $as_echo_n "(cached) " >&6 19060else 19061 ac_check_lib_save_LIBS=$LIBS 19062LIBS="-lreadline $LIBS" 19063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19064/* end confdefs.h. */ 19065 19066/* Override any GCC internal prototype to avoid an error. 19067 Use char because int might match the return type of a GCC 19068 builtin and then its argument prototype would still apply. */ 19069#ifdef __cplusplus 19070extern "C" 19071#endif 19072char readline (); 19073int 19074main () 19075{ 19076return readline (); 19077 ; 19078 return 0; 19079} 19080_ACEOF 19081if ac_fn_c_try_link "$LINENO"; then : 19082 ac_cv_lib_readline_readline=yes 19083else 19084 ac_cv_lib_readline_readline=no 19085fi 19086rm -f core conftest.err conftest.$ac_objext \ 19087 conftest$ac_exeext conftest.$ac_ext 19088LIBS=$ac_check_lib_save_LIBS 19089fi 19090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 19091$as_echo "$ac_cv_lib_readline_readline" >&6; } 19092if test "x$ac_cv_lib_readline_readline" = xyes; then : 19093 HAVE_LIBREADLINE=true 19094else 19095 HAVE_LIBREADLINE=false 19096fi 19097 19098 if test x${HAVE_LIBREADLINE} = xtrue ; then 19099 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 19100 19101 else 19102 $as_echo "#define HAVE_LIBREADLINE 0" >>confdefs.h 19103 19104 fi 19105 fi 19106 fi 19107 fi 19108 else 19109 unset ac_cv_lib_readline_readline 19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 19111$as_echo_n "checking for readline in -lreadline... " >&6; } 19112if ${ac_cv_lib_readline_readline+:} false; then : 19113 $as_echo_n "(cached) " >&6 19114else 19115 ac_check_lib_save_LIBS=$LIBS 19116LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS" 19117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19118/* end confdefs.h. */ 19119 19120/* Override any GCC internal prototype to avoid an error. 19121 Use char because int might match the return type of a GCC 19122 builtin and then its argument prototype would still apply. */ 19123#ifdef __cplusplus 19124extern "C" 19125#endif 19126char readline (); 19127int 19128main () 19129{ 19130return readline (); 19131 ; 19132 return 0; 19133} 19134_ACEOF 19135if ac_fn_c_try_link "$LINENO"; then : 19136 ac_cv_lib_readline_readline=yes 19137else 19138 ac_cv_lib_readline_readline=no 19139fi 19140rm -f core conftest.err conftest.$ac_objext \ 19141 conftest$ac_exeext conftest.$ac_ext 19142LIBS=$ac_check_lib_save_LIBS 19143fi 19144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 19145$as_echo "$ac_cv_lib_readline_readline" >&6; } 19146if test "x$ac_cv_lib_readline_readline" = xyes; then : 19147 HAVE_LIBREADLINE=true 19148else 19149 HAVE_LIBREADLINE=false 19150fi 19151 19152 if test x${HAVE_LIBREADLINE} = xtrue ; then 19153 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}" 19154 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 19155 19156 else 19157 $as_echo "#define HAVE_LIBREADLINE 0" >>confdefs.h 19158 19159 fi 19160 fi 19161else 19162 HAVE_LIBREADLINE=false 19163 $as_echo "#define HAVE_LIBREADLINE 0" >>confdefs.h 19164 19165fi 19166 19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5 19168$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; } 19169if ${ac_cv_lib_ltdl_lt_dlopen+:} false; then : 19170 $as_echo_n "(cached) " >&6 19171else 19172 ac_check_lib_save_LIBS=$LIBS 19173LIBS="-lltdl $LIBS" 19174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19175/* end confdefs.h. */ 19176 19177/* Override any GCC internal prototype to avoid an error. 19178 Use char because int might match the return type of a GCC 19179 builtin and then its argument prototype would still apply. */ 19180#ifdef __cplusplus 19181extern "C" 19182#endif 19183char lt_dlopen (); 19184int 19185main () 19186{ 19187return lt_dlopen (); 19188 ; 19189 return 0; 19190} 19191_ACEOF 19192if ac_fn_c_try_link "$LINENO"; then : 19193 ac_cv_lib_ltdl_lt_dlopen=yes 19194else 19195 ac_cv_lib_ltdl_lt_dlopen=no 19196fi 19197rm -f core conftest.err conftest.$ac_objext \ 19198 conftest$ac_exeext conftest.$ac_ext 19199LIBS=$ac_check_lib_save_LIBS 19200fi 19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5 19202$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; } 19203if test "x$ac_cv_lib_ltdl_lt_dlopen" = xyes; then : 19204 LTDL_LIBS="-lltdl" 19205fi 19206 19207 19208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19209$as_echo_n "checking for dlopen in -ldl... " >&6; } 19210if ${ac_cv_lib_dl_dlopen+:} false; then : 19211 $as_echo_n "(cached) " >&6 19212else 19213 ac_check_lib_save_LIBS=$LIBS 19214LIBS="-ldl $LIBS" 19215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19216/* end confdefs.h. */ 19217 19218/* Override any GCC internal prototype to avoid an error. 19219 Use char because int might match the return type of a GCC 19220 builtin and then its argument prototype would still apply. */ 19221#ifdef __cplusplus 19222extern "C" 19223#endif 19224char dlopen (); 19225int 19226main () 19227{ 19228return dlopen (); 19229 ; 19230 return 0; 19231} 19232_ACEOF 19233if ac_fn_c_try_link "$LINENO"; then : 19234 ac_cv_lib_dl_dlopen=yes 19235else 19236 ac_cv_lib_dl_dlopen=no 19237fi 19238rm -f core conftest.err conftest.$ac_objext \ 19239 conftest$ac_exeext conftest.$ac_ext 19240LIBS=$ac_check_lib_save_LIBS 19241fi 19242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19243$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19244if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19245 DLOPEN_LIBS="-ldl" 19246fi 19247 19248 19249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 19250$as_echo_n "checking for pow in -lm... " >&6; } 19251if ${ac_cv_lib_m_pow+:} false; then : 19252 $as_echo_n "(cached) " >&6 19253else 19254 ac_check_lib_save_LIBS=$LIBS 19255LIBS="-lm $LIBS" 19256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19257/* end confdefs.h. */ 19258 19259/* Override any GCC internal prototype to avoid an error. 19260 Use char because int might match the return type of a GCC 19261 builtin and then its argument prototype would still apply. */ 19262#ifdef __cplusplus 19263extern "C" 19264#endif 19265char pow (); 19266int 19267main () 19268{ 19269return pow (); 19270 ; 19271 return 0; 19272} 19273_ACEOF 19274if ac_fn_c_try_link "$LINENO"; then : 19275 ac_cv_lib_m_pow=yes 19276else 19277 ac_cv_lib_m_pow=no 19278fi 19279rm -f core conftest.err conftest.$ac_objext \ 19280 conftest$ac_exeext conftest.$ac_ext 19281LIBS=$ac_check_lib_save_LIBS 19282fi 19283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 19284$as_echo "$ac_cv_lib_m_pow" >&6; } 19285if test "x$ac_cv_lib_m_pow" = xyes; then : 19286 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} -lm" 19287 gutenprint_libdeps="${gutenprint_libdeps} -lm" 19288 GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} -lm" 19289 gutenprintui2_libdeps="${gutenprintui2_libdeps} -lm" 19290 LIBM=-lm 19291 19292fi 19293 19294 19295# CUPS path setup 19296 19297# Fix "cups_prefix" variable if it hasn't been specified... 19298if test "x${cups_prefix}" = xNONE -o "x{$cups_prefix}" = x ; then 19299 if test "x${prefix}" = xNONE -o "x${prefix}" = x ; then 19300 cups_prefix="/usr" 19301 else 19302 cups_prefix="${prefix}" 19303 fi 19304fi 19305 19306# Fix "cups_exec_prefix" variable if it hasn't been specified... 19307if test "x${cups_exec_prefix}" = xNONE -o "x${cups_exec_prefix}" = x ; then 19308 if test x"${exec_prefix}" = xNONE -o "x${exec_prefix}" = x ; then 19309 cups_exec_prefix="${cups_prefix}" 19310 else 19311 cups_exec_prefix="${exec_prefix}" 19312 fi 19313fi 19314 19315# Get explicit CUPS directories if possible 19316if test "x$CUPS_CONFIG" != x -a "x$NO_PKGCONFIG_PATHS" = x; then 19317 cups_conf_datadir="`$CUPS_CONFIG --datadir`" 19318 cups_conf_serverroot="`$CUPS_CONFIG --serverroot`" 19319 cups_conf_serverbin="`$CUPS_CONFIG --serverbin`" 19320else 19321 cups_conf_datadir="${cups_prefix}/share/cups" 19322 cups_conf_serverroot="${cups_prefix}/etc/cups" 19323 cups_conf_serverbin="${cups_exec_prefix}/lib/cups" 19324fi 19325 19326# And the rest! 19327cups_bindir="${cups_exec_prefix}/bin" 19328cups_sbindir="${cups_exec_prefix}/sbin" 19329 19330 19331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 19332$as_echo_n "checking for pow in -lm... " >&6; } 19333if ${ac_cv_lib_m_pow+:} false; then : 19334 $as_echo_n "(cached) " >&6 19335else 19336 ac_check_lib_save_LIBS=$LIBS 19337LIBS="-lm $LIBS" 19338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19339/* end confdefs.h. */ 19340 19341/* Override any GCC internal prototype to avoid an error. 19342 Use char because int might match the return type of a GCC 19343 builtin and then its argument prototype would still apply. */ 19344#ifdef __cplusplus 19345extern "C" 19346#endif 19347char pow (); 19348int 19349main () 19350{ 19351return pow (); 19352 ; 19353 return 0; 19354} 19355_ACEOF 19356if ac_fn_c_try_link "$LINENO"; then : 19357 ac_cv_lib_m_pow=yes 19358else 19359 ac_cv_lib_m_pow=no 19360fi 19361rm -f core conftest.err conftest.$ac_objext \ 19362 conftest$ac_exeext conftest.$ac_ext 19363LIBS=$ac_check_lib_save_LIBS 19364fi 19365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 19366$as_echo "$ac_cv_lib_m_pow" >&6; } 19367if test "x$ac_cv_lib_m_pow" = xyes; then : 19368 CUPS_LIBS="${CUPS_LIBS} -lm" 19369fi 19370 19371if test x${BUILD_CUPS} = xyes ; then 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 19373$as_echo_n "checking for gzgets in -lz... " >&6; } 19374if ${ac_cv_lib_z_gzgets+:} false; then : 19375 $as_echo_n "(cached) " >&6 19376else 19377 ac_check_lib_save_LIBS=$LIBS 19378LIBS="-lz $LIBS" 19379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381 19382/* Override any GCC internal prototype to avoid an error. 19383 Use char because int might match the return type of a GCC 19384 builtin and then its argument prototype would still apply. */ 19385#ifdef __cplusplus 19386extern "C" 19387#endif 19388char gzgets (); 19389int 19390main () 19391{ 19392return gzgets (); 19393 ; 19394 return 0; 19395} 19396_ACEOF 19397if ac_fn_c_try_link "$LINENO"; then : 19398 ac_cv_lib_z_gzgets=yes 19399else 19400 ac_cv_lib_z_gzgets=no 19401fi 19402rm -f core conftest.err conftest.$ac_objext \ 19403 conftest$ac_exeext conftest.$ac_ext 19404LIBS=$ac_check_lib_save_LIBS 19405fi 19406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 19407$as_echo "$ac_cv_lib_z_gzgets" >&6; } 19408if test "x$ac_cv_lib_z_gzgets" = xyes; then : 19409 HAVE_LIBZ=true 19410else 19411 HAVE_LIBZ=false 19412fi 19413 19414 if test x${HAVE_LIBZ} = xtrue ; then 19415 GENPPD_LIBS="-lz" 19416 19417$as_echo "#define HAVE_LIBZ /**/" >>confdefs.h 19418 19419 fi 19420 # Extract the first word of "cups-config", so it can be a program name with args. 19421set dummy cups-config; ac_word=$2 19422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19423$as_echo_n "checking for $ac_word... " >&6; } 19424if ${ac_cv_path_CUPS_CONFIG+:} false; then : 19425 $as_echo_n "(cached) " >&6 19426else 19427 case $CUPS_CONFIG in 19428 [\\/]* | ?:[\\/]*) 19429 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path. 19430 ;; 19431 *) 19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19433for as_dir in $PATH 19434do 19435 IFS=$as_save_IFS 19436 test -z "$as_dir" && as_dir=. 19437 for ac_exec_ext in '' $ac_executable_extensions; do 19438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19439 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19441 break 2 19442 fi 19443done 19444 done 19445IFS=$as_save_IFS 19446 19447 ;; 19448esac 19449fi 19450CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG 19451if test -n "$CUPS_CONFIG"; then 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5 19453$as_echo "$CUPS_CONFIG" >&6; } 19454else 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19456$as_echo "no" >&6; } 19457fi 19458 19459 19460 if test "x$CUPS_CONFIG" != x; then 19461 CUPS_LIBS="`$CUPS_CONFIG --ldflags` `$CUPS_CONFIG --image --libs`" 19462 CUPS_CFLAGS="`$CUPS_CONFIG --cflags`" 19463 else 19464 SAVELIBS="$LIBS" 19465 LIBS="$LIBS ${CUPS_LIBS}" 19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 19467$as_echo_n "checking for socket in -lsocket... " >&6; } 19468if ${ac_cv_lib_socket_socket+:} false; then : 19469 $as_echo_n "(cached) " >&6 19470else 19471 ac_check_lib_save_LIBS=$LIBS 19472LIBS="-lsocket $LIBS" 19473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19474/* end confdefs.h. */ 19475 19476/* Override any GCC internal prototype to avoid an error. 19477 Use char because int might match the return type of a GCC 19478 builtin and then its argument prototype would still apply. */ 19479#ifdef __cplusplus 19480extern "C" 19481#endif 19482char socket (); 19483int 19484main () 19485{ 19486return socket (); 19487 ; 19488 return 0; 19489} 19490_ACEOF 19491if ac_fn_c_try_link "$LINENO"; then : 19492 ac_cv_lib_socket_socket=yes 19493else 19494 ac_cv_lib_socket_socket=no 19495fi 19496rm -f core conftest.err conftest.$ac_objext \ 19497 conftest$ac_exeext conftest.$ac_ext 19498LIBS=$ac_check_lib_save_LIBS 19499fi 19500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 19501$as_echo "$ac_cv_lib_socket_socket" >&6; } 19502if test "x$ac_cv_lib_socket_socket" = xyes; then : 19503 if test x${OSTYPE} != xirix ; then 19504 CUPS_LIBS="${CUPS_LIBS} -lsocket" 19505 LIBS="$LIBS -lsocket" 19506 fi 19507fi 19508 19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 19510$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } 19511if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : 19512 $as_echo_n "(cached) " >&6 19513else 19514 ac_check_lib_save_LIBS=$LIBS 19515LIBS="-lnsl $LIBS" 19516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19517/* end confdefs.h. */ 19518 19519/* Override any GCC internal prototype to avoid an error. 19520 Use char because int might match the return type of a GCC 19521 builtin and then its argument prototype would still apply. */ 19522#ifdef __cplusplus 19523extern "C" 19524#endif 19525char gethostbyaddr (); 19526int 19527main () 19528{ 19529return gethostbyaddr (); 19530 ; 19531 return 0; 19532} 19533_ACEOF 19534if ac_fn_c_try_link "$LINENO"; then : 19535 ac_cv_lib_nsl_gethostbyaddr=yes 19536else 19537 ac_cv_lib_nsl_gethostbyaddr=no 19538fi 19539rm -f core conftest.err conftest.$ac_objext \ 19540 conftest$ac_exeext conftest.$ac_ext 19541LIBS=$ac_check_lib_save_LIBS 19542fi 19543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 19544$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } 19545if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : 19546 if test x${OSTYPE} != xirix ; then 19547 CUPS_LIBS="${CUPS_LIBS} -lnsl" 19548 LIBS="$LIBS -lnsl" 19549 fi 19550fi 19551 19552 19553 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 19554if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 19555 19556 SSL="no" 19557 19558 for libcrypto in \ 19559 "-lcrypto" \ 19560 "-lcrypto -lrsaref" \ 19561 "-lcrypto -lRSAglue -lrsaref" 19562 do 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 19564$as_echo_n "checking for SSL_new in -lssl... " >&6; } 19565if ${ac_cv_lib_ssl_SSL_new+:} false; then : 19566 $as_echo_n "(cached) " >&6 19567else 19568 ac_check_lib_save_LIBS=$LIBS 19569LIBS="-lssl $libcrypto $LIBS" 19570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19571/* end confdefs.h. */ 19572 19573/* Override any GCC internal prototype to avoid an error. 19574 Use char because int might match the return type of a GCC 19575 builtin and then its argument prototype would still apply. */ 19576#ifdef __cplusplus 19577extern "C" 19578#endif 19579char SSL_new (); 19580int 19581main () 19582{ 19583return SSL_new (); 19584 ; 19585 return 0; 19586} 19587_ACEOF 19588if ac_fn_c_try_link "$LINENO"; then : 19589 ac_cv_lib_ssl_SSL_new=yes 19590else 19591 ac_cv_lib_ssl_SSL_new=no 19592fi 19593rm -f core conftest.err conftest.$ac_objext \ 19594 conftest$ac_exeext conftest.$ac_ext 19595LIBS=$ac_check_lib_save_LIBS 19596fi 19597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 19598$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } 19599if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : 19600 CUPS_LIBS="${CUPS_LIBS} -lssl $libcrypto" 19601 SSL="yes" 19602fi 19603 19604 19605 if test x$SSL = xyes; then 19606 break 19607 fi 19608 done 19609fi 19610 19611 19612 19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsPrintFiles in -lcups" >&5 19614$as_echo_n "checking for cupsPrintFiles in -lcups... " >&6; } 19615if ${ac_cv_lib_cups_cupsPrintFiles+:} false; then : 19616 $as_echo_n "(cached) " >&6 19617else 19618 ac_check_lib_save_LIBS=$LIBS 19619LIBS="-lcups $LIBS" 19620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19621/* end confdefs.h. */ 19622 19623/* Override any GCC internal prototype to avoid an error. 19624 Use char because int might match the return type of a GCC 19625 builtin and then its argument prototype would still apply. */ 19626#ifdef __cplusplus 19627extern "C" 19628#endif 19629char cupsPrintFiles (); 19630int 19631main () 19632{ 19633return cupsPrintFiles (); 19634 ; 19635 return 0; 19636} 19637_ACEOF 19638if ac_fn_c_try_link "$LINENO"; then : 19639 ac_cv_lib_cups_cupsPrintFiles=yes 19640else 19641 ac_cv_lib_cups_cupsPrintFiles=no 19642fi 19643rm -f core conftest.err conftest.$ac_objext \ 19644 conftest$ac_exeext conftest.$ac_ext 19645LIBS=$ac_check_lib_save_LIBS 19646fi 19647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cups_cupsPrintFiles" >&5 19648$as_echo "$ac_cv_lib_cups_cupsPrintFiles" >&6; } 19649if test "x$ac_cv_lib_cups_cupsPrintFiles" = xyes; then : 19650 CUPS_LIBS="${CUPS_LIBS} -lcups" 19651else 19652 LIBS="$LIBS -lcups" 19653 as_fn_error $? "Cannot find CUPS libraries (libcups)" "$LINENO" 5 19654fi 19655 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsRasterOpen in -lcupsimage" >&5 19657$as_echo_n "checking for cupsRasterOpen in -lcupsimage... " >&6; } 19658if ${ac_cv_lib_cupsimage_cupsRasterOpen+:} false; then : 19659 $as_echo_n "(cached) " >&6 19660else 19661 ac_check_lib_save_LIBS=$LIBS 19662LIBS="-lcupsimage -lcups $LIBS" 19663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19664/* end confdefs.h. */ 19665 19666/* Override any GCC internal prototype to avoid an error. 19667 Use char because int might match the return type of a GCC 19668 builtin and then its argument prototype would still apply. */ 19669#ifdef __cplusplus 19670extern "C" 19671#endif 19672char cupsRasterOpen (); 19673int 19674main () 19675{ 19676return cupsRasterOpen (); 19677 ; 19678 return 0; 19679} 19680_ACEOF 19681if ac_fn_c_try_link "$LINENO"; then : 19682 ac_cv_lib_cupsimage_cupsRasterOpen=yes 19683else 19684 ac_cv_lib_cupsimage_cupsRasterOpen=no 19685fi 19686rm -f core conftest.err conftest.$ac_objext \ 19687 conftest$ac_exeext conftest.$ac_ext 19688LIBS=$ac_check_lib_save_LIBS 19689fi 19690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cupsimage_cupsRasterOpen" >&5 19691$as_echo "$ac_cv_lib_cupsimage_cupsRasterOpen" >&6; } 19692if test "x$ac_cv_lib_cupsimage_cupsRasterOpen" = xyes; then : 19693 CUPS_LIBS="${CUPS_LIBS} -lcupsimage" 19694else 19695 as_fn_error $? "Cannot find CUPS libraries (libcupsimage)" "$LINENO" 5 19696fi 19697 19698 LIBS="$SAVELIBS" 19699 19700 if test "x${cups_prefix}" != "x/usr" -a "x${cups_prefix}" != x; then 19701 CUPS_CFLAGS="-I${cups_prefix}/include" 19702 else 19703 CUPS_CFLAGS="" 19704 fi 19705 fi 19706fi 19707 19708 19709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19710$as_echo_n "checking for ANSI C header files... " >&6; } 19711if ${ac_cv_header_stdc+:} false; then : 19712 $as_echo_n "(cached) " >&6 19713else 19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19715/* end confdefs.h. */ 19716#include <stdlib.h> 19717#include <stdarg.h> 19718#include <string.h> 19719#include <float.h> 19720 19721int 19722main () 19723{ 19724 19725 ; 19726 return 0; 19727} 19728_ACEOF 19729if ac_fn_c_try_compile "$LINENO"; then : 19730 ac_cv_header_stdc=yes 19731else 19732 ac_cv_header_stdc=no 19733fi 19734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19735 19736if test $ac_cv_header_stdc = yes; then 19737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19739/* end confdefs.h. */ 19740#include <string.h> 19741 19742_ACEOF 19743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19744 $EGREP "memchr" >/dev/null 2>&1; then : 19745 19746else 19747 ac_cv_header_stdc=no 19748fi 19749rm -f conftest* 19750 19751fi 19752 19753if test $ac_cv_header_stdc = yes; then 19754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19756/* end confdefs.h. */ 19757#include <stdlib.h> 19758 19759_ACEOF 19760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19761 $EGREP "free" >/dev/null 2>&1; then : 19762 19763else 19764 ac_cv_header_stdc=no 19765fi 19766rm -f conftest* 19767 19768fi 19769 19770if test $ac_cv_header_stdc = yes; then 19771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19772 if test "$cross_compiling" = yes; then : 19773 : 19774else 19775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19776/* end confdefs.h. */ 19777#include <ctype.h> 19778#include <stdlib.h> 19779#if ((' ' & 0x0FF) == 0x020) 19780# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19781# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19782#else 19783# define ISLOWER(c) \ 19784 (('a' <= (c) && (c) <= 'i') \ 19785 || ('j' <= (c) && (c) <= 'r') \ 19786 || ('s' <= (c) && (c) <= 'z')) 19787# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19788#endif 19789 19790#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19791int 19792main () 19793{ 19794 int i; 19795 for (i = 0; i < 256; i++) 19796 if (XOR (islower (i), ISLOWER (i)) 19797 || toupper (i) != TOUPPER (i)) 19798 return 2; 19799 return 0; 19800} 19801_ACEOF 19802if ac_fn_c_try_run "$LINENO"; then : 19803 19804else 19805 ac_cv_header_stdc=no 19806fi 19807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19808 conftest.$ac_objext conftest.beam conftest.$ac_ext 19809fi 19810 19811fi 19812fi 19813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19814$as_echo "$ac_cv_header_stdc" >&6; } 19815if test $ac_cv_header_stdc = yes; then 19816 19817$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19818 19819fi 19820 19821for ac_header in getopt.h 19822do : 19823 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 19824if test "x$ac_cv_header_getopt_h" = xyes; then : 19825 cat >>confdefs.h <<_ACEOF 19826#define HAVE_GETOPT_H 1 19827_ACEOF 19828 19829fi 19830 19831done 19832 19833ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 19834if test "x$ac_cv_header_readline_readline_h" = xyes; then : 19835 HAVE_READLINE_READLINE_H=true 19836else 19837 HAVE_READLINE_READLINE_H=false 19838fi 19839 19840 19841if test x${HAVE_READLINE_READLINE_H} = xtrue ; then 19842 19843$as_echo "#define HAVE_READLINE_READLINE_H /**/" >>confdefs.h 19844 19845 if test x${HAVE_LIBREADLINE} = xtrue ; then 19846 LIBREADLINE_DEPS="-lreadline $EXTRA_LIBREADLINE_DEPS" 19847 fi 19848fi 19849for ac_header in dlfcn.h 19850do : 19851 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 19852if test "x$ac_cv_header_dlfcn_h" = xyes; then : 19853 cat >>confdefs.h <<_ACEOF 19854#define HAVE_DLFCN_H 1 19855_ACEOF 19856 HAVE_DLFCN_H=true 19857fi 19858 19859done 19860 19861for ac_header in fcntl.h 19862do : 19863 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 19864if test "x$ac_cv_header_fcntl_h" = xyes; then : 19865 cat >>confdefs.h <<_ACEOF 19866#define HAVE_FCNTL_H 1 19867_ACEOF 19868 19869fi 19870 19871done 19872 19873for ac_header in limits.h 19874do : 19875 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 19876if test "x$ac_cv_header_limits_h" = xyes; then : 19877 cat >>confdefs.h <<_ACEOF 19878#define HAVE_LIMITS_H 1 19879_ACEOF 19880 19881fi 19882 19883done 19884 19885for ac_header in locale.h 19886do : 19887 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 19888if test "x$ac_cv_header_locale_h" = xyes; then : 19889 cat >>confdefs.h <<_ACEOF 19890#define HAVE_LOCALE_H 1 19891_ACEOF 19892 19893fi 19894 19895done 19896 19897for ac_header in ltdl.h 19898do : 19899 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 19900if test "x$ac_cv_header_ltdl_h" = xyes; then : 19901 cat >>confdefs.h <<_ACEOF 19902#define HAVE_LTDL_H 1 19903_ACEOF 19904 HAVE_LTDL_H=true 19905fi 19906 19907done 19908 19909for ac_header in stdarg.h stdlib.h string.h 19910do : 19911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19912ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19914 cat >>confdefs.h <<_ACEOF 19915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19916_ACEOF 19917 19918fi 19919 19920done 19921 19922for ac_header in sys/time.h sys/types.h 19923do : 19924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19927 cat >>confdefs.h <<_ACEOF 19928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19929_ACEOF 19930 19931fi 19932 19933done 19934 19935for ac_header in time.h 19936do : 19937 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 19938if test "x$ac_cv_header_time_h" = xyes; then : 19939 cat >>confdefs.h <<_ACEOF 19940#define HAVE_TIME_H 1 19941_ACEOF 19942 19943fi 19944 19945done 19946 19947for ac_header in unistd.h 19948do : 19949 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 19950if test "x$ac_cv_header_unistd_h" = xyes; then : 19951 cat >>confdefs.h <<_ACEOF 19952#define HAVE_UNISTD_H 1 19953_ACEOF 19954 19955fi 19956 19957done 19958 19959 19960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19961$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19962if ${ac_cv_c_const+:} false; then : 19963 $as_echo_n "(cached) " >&6 19964else 19965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19966/* end confdefs.h. */ 19967 19968int 19969main () 19970{ 19971 19972#ifndef __cplusplus 19973 /* Ultrix mips cc rejects this sort of thing. */ 19974 typedef int charset[2]; 19975 const charset cs = { 0, 0 }; 19976 /* SunOS 4.1.1 cc rejects this. */ 19977 char const *const *pcpcc; 19978 char **ppc; 19979 /* NEC SVR4.0.2 mips cc rejects this. */ 19980 struct point {int x, y;}; 19981 static struct point const zero = {0,0}; 19982 /* AIX XL C 1.02.0.0 rejects this. 19983 It does not let you subtract one const X* pointer from another in 19984 an arm of an if-expression whose if-part is not a constant 19985 expression */ 19986 const char *g = "string"; 19987 pcpcc = &g + (g ? g-g : 0); 19988 /* HPUX 7.0 cc rejects these. */ 19989 ++pcpcc; 19990 ppc = (char**) pcpcc; 19991 pcpcc = (char const *const *) ppc; 19992 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19993 char tx; 19994 char *t = &tx; 19995 char const *s = 0 ? (char *) 0 : (char const *) 0; 19996 19997 *t++ = 0; 19998 if (s) return 0; 19999 } 20000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20001 int x[] = {25, 17}; 20002 const int *foo = &x[0]; 20003 ++foo; 20004 } 20005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20006 typedef const int *iptr; 20007 iptr p = 0; 20008 ++p; 20009 } 20010 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20012 struct s { int j; const int *ap[3]; } bx; 20013 struct s *b = &bx; b->j = 5; 20014 } 20015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20016 const int foo = 10; 20017 if (!foo) return 0; 20018 } 20019 return !cs[0] && !zero.x; 20020#endif 20021 20022 ; 20023 return 0; 20024} 20025_ACEOF 20026if ac_fn_c_try_compile "$LINENO"; then : 20027 ac_cv_c_const=yes 20028else 20029 ac_cv_c_const=no 20030fi 20031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20032fi 20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20034$as_echo "$ac_cv_c_const" >&6; } 20035if test $ac_cv_c_const = no; then 20036 20037$as_echo "#define const /**/" >>confdefs.h 20038 20039fi 20040 20041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 20042$as_echo_n "checking for inline... " >&6; } 20043if ${ac_cv_c_inline+:} false; then : 20044 $as_echo_n "(cached) " >&6 20045else 20046 ac_cv_c_inline=no 20047for ac_kw in inline __inline__ __inline; do 20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20049/* end confdefs.h. */ 20050#ifndef __cplusplus 20051typedef int foo_t; 20052static $ac_kw foo_t static_foo () {return 0; } 20053$ac_kw foo_t foo () {return 0; } 20054#endif 20055 20056_ACEOF 20057if ac_fn_c_try_compile "$LINENO"; then : 20058 ac_cv_c_inline=$ac_kw 20059fi 20060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20061 test "$ac_cv_c_inline" != no && break 20062done 20063 20064fi 20065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 20066$as_echo "$ac_cv_c_inline" >&6; } 20067 20068case $ac_cv_c_inline in 20069 inline | yes) ;; 20070 *) 20071 case $ac_cv_c_inline in 20072 no) ac_val=;; 20073 *) ac_val=$ac_cv_c_inline;; 20074 esac 20075 cat >>confdefs.h <<_ACEOF 20076#ifndef __cplusplus 20077#define inline $ac_val 20078#endif 20079_ACEOF 20080 ;; 20081esac 20082 20083ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 20084if test "x$ac_cv_type_off_t" = xyes; then : 20085 20086else 20087 20088cat >>confdefs.h <<_ACEOF 20089#define off_t long int 20090_ACEOF 20091 20092fi 20093 20094ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20095if test "x$ac_cv_type_size_t" = xyes; then : 20096 20097else 20098 20099cat >>confdefs.h <<_ACEOF 20100#define size_t unsigned int 20101_ACEOF 20102 20103fi 20104 20105 20106for ac_func in nanosleep poll usleep 20107do : 20108 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20109ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20110if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20111 cat >>confdefs.h <<_ACEOF 20112#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20113_ACEOF 20114 20115fi 20116done 20117 20118for ac_func in getopt_long 20119do : 20120 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 20121if test "x$ac_cv_func_getopt_long" = xyes; then : 20122 cat >>confdefs.h <<_ACEOF 20123#define HAVE_GETOPT_LONG 1 20124_ACEOF 20125 20126fi 20127done 20128 20129 20130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing finite" >&5 20131$as_echo_n "checking for library containing finite... " >&6; } 20132if ${ac_cv_search_finite+:} false; then : 20133 $as_echo_n "(cached) " >&6 20134else 20135 ac_func_search_save_LIBS=$LIBS 20136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137/* end confdefs.h. */ 20138 20139/* Override any GCC internal prototype to avoid an error. 20140 Use char because int might match the return type of a GCC 20141 builtin and then its argument prototype would still apply. */ 20142#ifdef __cplusplus 20143extern "C" 20144#endif 20145char finite (); 20146int 20147main () 20148{ 20149return finite (); 20150 ; 20151 return 0; 20152} 20153_ACEOF 20154for ac_lib in '' m; do 20155 if test -z "$ac_lib"; then 20156 ac_res="none required" 20157 else 20158 ac_res=-l$ac_lib 20159 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20160 fi 20161 if ac_fn_c_try_link "$LINENO"; then : 20162 ac_cv_search_finite=$ac_res 20163fi 20164rm -f core conftest.err conftest.$ac_objext \ 20165 conftest$ac_exeext 20166 if ${ac_cv_search_finite+:} false; then : 20167 break 20168fi 20169done 20170if ${ac_cv_search_finite+:} false; then : 20171 20172else 20173 ac_cv_search_finite=no 20174fi 20175rm conftest.$ac_ext 20176LIBS=$ac_func_search_save_LIBS 20177fi 20178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_finite" >&5 20179$as_echo "$ac_cv_search_finite" >&6; } 20180ac_res=$ac_cv_search_finite 20181if test "$ac_res" != no; then : 20182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20183 CFLAGS="-Disfinite=finite $CFLAGS" 20184fi 20185 20186 20187 if test x${BUILD_CUPS} = xyes; then 20188 BUILD_CUPS_TRUE= 20189 BUILD_CUPS_FALSE='#' 20190else 20191 BUILD_CUPS_TRUE='#' 20192 BUILD_CUPS_FALSE= 20193fi 20194 20195 20196 if test x${BUILD_CUPS_1_2} = xyes; then 20197 BUILD_CUPS_1_2_TRUE= 20198 BUILD_CUPS_1_2_FALSE='#' 20199else 20200 BUILD_CUPS_1_2_TRUE='#' 20201 BUILD_CUPS_1_2_FALSE= 20202fi 20203 20204 20205 if test x${BUILD_CUPS_PPDS} = xyes; then 20206 BUILD_CUPS_PPDS_TRUE= 20207 BUILD_CUPS_PPDS_FALSE='#' 20208else 20209 BUILD_CUPS_PPDS_TRUE='#' 20210 BUILD_CUPS_PPDS_FALSE= 20211fi 20212 20213 20214 if test x${CUPS_PPDS_AT_TOP_LEVEL} = xyes; then 20215 CUPS_PPDS_AT_TOP_LEVEL_TRUE= 20216 CUPS_PPDS_AT_TOP_LEVEL_FALSE='#' 20217else 20218 CUPS_PPDS_AT_TOP_LEVEL_TRUE='#' 20219 CUPS_PPDS_AT_TOP_LEVEL_FALSE= 20220fi 20221 20222 20223 if test x${BUILD_TRANSLATED_CUPS_PPDS} = xyes ; then 20224 BUILD_TRANSLATED_CUPS_PPDS_TRUE= 20225 BUILD_TRANSLATED_CUPS_PPDS_FALSE='#' 20226else 20227 BUILD_TRANSLATED_CUPS_PPDS_TRUE='#' 20228 BUILD_TRANSLATED_CUPS_PPDS_FALSE= 20229fi 20230 20231 20232 if test x${BUILD_GLOBALIZED_CUPS_PPDS} = xyes ; then 20233 BUILD_GLOBALIZED_CUPS_PPDS_TRUE= 20234 BUILD_GLOBALIZED_CUPS_PPDS_FALSE='#' 20235else 20236 BUILD_GLOBALIZED_CUPS_PPDS_TRUE='#' 20237 BUILD_GLOBALIZED_CUPS_PPDS_FALSE= 20238fi 20239 20240 20241 if test x${BUILD_SIMPLIFIED_CUPS_PPDS} = xyes; then 20242 BUILD_SIMPLIFIED_CUPS_PPDS_TRUE= 20243 BUILD_SIMPLIFIED_CUPS_PPDS_FALSE='#' 20244else 20245 BUILD_SIMPLIFIED_CUPS_PPDS_TRUE='#' 20246 BUILD_SIMPLIFIED_CUPS_PPDS_FALSE= 20247fi 20248 20249 20250if test x${USE_LEVEL3_PS} = xno ; then 20251 CUPS_PPD_PS_LEVEL=2 20252else 20253 CUPS_PPD_PS_LEVEL=3 20254fi 20255 20256 if test x${USE_LEVEL3_PS} = xyes; then 20257 USE_LEVEL3_PS_TRUE= 20258 USE_LEVEL3_PS_FALSE='#' 20259else 20260 USE_LEVEL3_PS_TRUE='#' 20261 USE_LEVEL3_PS_FALSE= 20262fi 20263 20264 20265 if test x${BUILD_ESCPUTIL} = xyes; then 20266 BUILD_ESCPUTIL_TRUE= 20267 BUILD_ESCPUTIL_FALSE='#' 20268else 20269 BUILD_ESCPUTIL_TRUE='#' 20270 BUILD_ESCPUTIL_FALSE= 20271fi 20272 20273 20274 if test x${BUILD_TEST} = xyes; then 20275 BUILD_TEST_TRUE= 20276 BUILD_TEST_FALSE='#' 20277else 20278 BUILD_TEST_TRUE='#' 20279 BUILD_TEST_FALSE= 20280fi 20281 20282 20283 if test x${BUILD_TESTPATTERN} = xyes; then 20284 BUILD_TESTPATTERN_TRUE= 20285 BUILD_TESTPATTERN_FALSE='#' 20286else 20287 BUILD_TESTPATTERN_TRUE='#' 20288 BUILD_TESTPATTERN_FALSE= 20289fi 20290 20291 20292 if test x${BUILD_LIBGUTENPRINTUI2} = xyes; then 20293 BUILD_LIBGUTENPRINTUI2_TRUE= 20294 BUILD_LIBGUTENPRINTUI2_FALSE='#' 20295else 20296 BUILD_LIBGUTENPRINTUI2_TRUE='#' 20297 BUILD_LIBGUTENPRINTUI2_FALSE= 20298fi 20299 20300 20301 if test x${BUILD_GIMP2} = xyes; then 20302 BUILD_GIMP2_TRUE= 20303 BUILD_GIMP2_FALSE='#' 20304else 20305 BUILD_GIMP2_TRUE='#' 20306 BUILD_GIMP2_FALSE= 20307fi 20308 20309 20310 if test x${BUILD_DOC} = xyes; then 20311 BUILD_DOC_TRUE= 20312 BUILD_DOC_FALSE='#' 20313else 20314 BUILD_DOC_TRUE='#' 20315 BUILD_DOC_FALSE= 20316fi 20317 20318 20319 if test x${BUILD_GIMP2_AS_GUTENPRINT} = xyes; then 20320 BUILD_GIMP2_AS_GUTENPRINT_TRUE= 20321 BUILD_GIMP2_AS_GUTENPRINT_FALSE='#' 20322else 20323 BUILD_GIMP2_AS_GUTENPRINT_TRUE='#' 20324 BUILD_GIMP2_AS_GUTENPRINT_FALSE= 20325fi 20326 20327 20328 if test x${INSTALL_SAMPLES} = xyes; then 20329 INSTALL_SAMPLES_TRUE= 20330 INSTALL_SAMPLES_FALSE='#' 20331else 20332 INSTALL_SAMPLES_TRUE='#' 20333 INSTALL_SAMPLES_FALSE= 20334fi 20335 20336 20337 if test x${INSTALL_USER_GUIDE} = xyes; then 20338 INSTALL_USER_GUIDE_TRUE= 20339 INSTALL_USER_GUIDE_FALSE='#' 20340else 20341 INSTALL_USER_GUIDE_TRUE='#' 20342 INSTALL_USER_GUIDE_FALSE= 20343fi 20344 20345 20346 if test x${BUILD_LIBUSB_BACKENDS} = xyes; then 20347 BUILD_LIBUSB_BACKENDS_TRUE= 20348 BUILD_LIBUSB_BACKENDS_FALSE='#' 20349else 20350 BUILD_LIBUSB_BACKENDS_TRUE='#' 20351 BUILD_LIBUSB_BACKENDS_FALSE= 20352fi 20353 20354 20355 20356# loadable modules 20357# portable sh has no AND test... 20358if test -n "$HAVE_LTDL_H"; then 20359 if test -n "$LTDL_LIBS"; then 20360 LTDL_POSSIBLE="true" 20361 fi 20362fi 20363if test -n "$HAVE_DLFCN_H"; then 20364 if test -n "$DLOPEN_LIBS"; then 20365 DLOPEN_POSSIBLE="true" 20366 fi 20367fi 20368 20369# define what the user chose to build, if possible. 20370# Prefer dlopen over ltdl. 20371if test x$WITH_MODULES = xyes; then 20372 if test x$DLOPEN_POSSIBLE = xtrue; then 20373 USE_DLOPEN="true" 20374 elif test x$LDTL_POSSIBLE = xtrue; then 20375 USE_LTDL="true" 20376 fi 20377elif test x$WITH_MODULES = xltdl; then 20378 if test x$LTDL_POSSIBLE = xtrue; then 20379 USE_LTDL="true" 20380 fi 20381elif test x$WITH_MODULES = xdlopen; then 20382 if test x$DLOPEN_POSSIBLE = xtrue; then 20383 USE_DLOPEN="true" 20384 fi 20385fi 20386 20387# The current backends can use dlopen or libltdl 20388if test x$BUILD_LIBUSB_BACKENDS = xyes; then 20389 if test x$DLOPEN_POSSIBLE = xtrue; then 20390 USE_DLOPEN="true" 20391 elif test x$LDTL_POSSIBLE = xtrue; then 20392 USE_LTDL="true" 20393 fi 20394fi 20395 20396# define what module system is to be used 20397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which module system will be used" >&5 20398$as_echo_n "checking which module system will be used... " >&6; } 20399if test x$USE_LTDL = xtrue; then 20400 if test -z "$WITH_MODULES" -o x$WITH_MODULES = xno -o x$WITH_MODULES = xstatic ; then 20401 MODULE="false" 20402 else 20403 MODULE="true" 20404 20405$as_echo "#define MODULE \"1\"" >>confdefs.h 20406 20407 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${LTDL_LIBS}" 20408 gutenprint_libdeps="${gutenprint_libdeps} ${LTDL_LIBS}" 20409 fi 20410 LIBUSB_BACKEND_LIBDEPS="${LIBUSB_BACKEND_LIBDEPS} ${LTDL_LIBS}" 20411 20412$as_echo "#define USE_LTDL \"1\"" >>confdefs.h 20413 20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5 20415$as_echo "ltdl" >&6; } 20416elif test x$USE_DLOPEN = xtrue; then 20417 if test -z "$WITH_MODULES" -o x$WITH_MODULES = xno -o x$WITH_MODULES = xstatic ; then 20418 MODULE="false" 20419 else 20420 MODULE="true" 20421 20422$as_echo "#define MODULE \"1\"" >>confdefs.h 20423 20424 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${DLOPEN_LIBS}" 20425 gutenprint_libdeps="${gutenprint_libdeps} ${DLOPEN_LIBS}" 20426 fi 20427 LIBUSB_BACKEND_LIBDEPS="${LIBUSB_BACKEND_LIBDEPS} ${DLOPEN_LIBS}" 20428 20429$as_echo "#define USE_DLOPEN \"1\"" >>confdefs.h 20430 20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5 20432$as_echo "dlopen" >&6; } 20433else 20434 MODULE="false" 20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 20436$as_echo "static" >&6; } 20437fi 20438 if test x$MODULE = xtrue; then 20439 BUILD_MODULES_TRUE= 20440 BUILD_MODULES_FALSE='#' 20441else 20442 BUILD_MODULES_TRUE='#' 20443 BUILD_MODULES_FALSE= 20444fi 20445 20446 20447 if test x"$STATIC_GENPPD" = xyes; then 20448 BUILD_GENPPD_STATIC_TRUE= 20449 BUILD_GENPPD_STATIC_FALSE='#' 20450else 20451 BUILD_GENPPD_STATIC_TRUE='#' 20452 BUILD_GENPPD_STATIC_FALSE= 20453fi 20454 20455 20456 20457 20458 20459cat >>confdefs.h <<_ACEOF 20460#define CUPS_DATADIR "${cups_conf_datadir}" 20461_ACEOF 20462 20463 20464 20465if test "${CUPS_PPDS_AT_TOP_LEVEL}" = yes ; then 20466 cat >>confdefs.h <<_ACEOF 20467#define CUPS_MODELDIR "${cups_conf_datadir}/model/" 20468_ACEOF 20469 20470else 20471 cat >>confdefs.h <<_ACEOF 20472#define CUPS_MODELDIR "${cups_conf_datadir}/model/${PACKAGE}/${GUTENPRINT_RELEASE_VERSION}/" 20473_ACEOF 20474 20475fi 20476 20477 20478# Check whether --with-cups_nickname was given. 20479if test "${with_cups_nickname+set}" = set; then : 20480 withval=$with_cups_nickname; CUPS_PPD_NICKNAME_STRING="$withval" 20481else 20482 CUPS_PPD_NICKNAME_STRING=" - CUPS+Gutenprint v" 20483fi 20484 20485 20486 20487cat >>confdefs.h <<_ACEOF 20488#define CUPS_PPD_NICKNAME_STRING "$CUPS_PPD_NICKNAME_STRING" 20489_ACEOF 20490 20491 20492 20493 20494cat >>confdefs.h <<_ACEOF 20495#define CUPS_PPD_PS_LEVEL ${CUPS_PPD_PS_LEVEL} 20496_ACEOF 20497 20498RELEASE_DATE="25 Aug 2019" 20499 20500cat >>confdefs.h <<_ACEOF 20501#define RELEASE_DATE "${RELEASE_DATE}" 20502_ACEOF 20503 20504 20505 20506MINIMAL_PRINTERS_TO_TEST="escp2-r1800 escp2-3880 \ 20507 pcl-g_4 pcl-g_5c pcl-500 \ 20508 mitsubishi-p95d shinko-chcs2145 kodak-1400 canon-cp910 mitsubishi-9800d \ 20509 bjc-s200 bjc-PIXMA-Pro9000mk2 \ 20510 datamax_oneil_I4212e \ 20511 lexmark-z43" 20512 20513 20514cat >>confdefs.h <<_ACEOF 20515#define MINIMAL_PRINTERS_TO_TEST ${MINIMAL_PRINTERS_TO_TEST} 20516_ACEOF 20517 20518 20519RM='rm' 20520 20521PKGROOT=`pwd` 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549gutenprint_libs="${GUTENPRINT_LIBS} ${gutenprint_libdeps}" 20550 20551 20552 20553gutenprintui2_libs="${GUTENPRINTUI2_LIBS} ${gutenprintui2_libdeps}" 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568# Check whether --with-archflags was given. 20569if test "${with_archflags+set}" = set; then : 20570 withval=$with_archflags; CFLAGS="$CFLAGS $withval" 20571 LDFLAGS="$LDFLAGS $withval" 20572fi 20573 20574 20575 20576ac_config_files="$ac_config_files Makefile" 20577 20578ac_config_files="$ac_config_files doc/Makefile" 20579 20580ac_config_files="$ac_config_files doc/gutenprint.dox" 20581 20582ac_config_files="$ac_config_files doc/gutenprintui2.dox" 20583 20584ac_config_files="$ac_config_files doc/developer/Makefile" 20585 20586ac_config_files="$ac_config_files include/Makefile" 20587 20588ac_config_files="$ac_config_files include/gutenprint/Makefile" 20589 20590ac_config_files="$ac_config_files include/gutenprintui2/Makefile" 20591 20592ac_config_files="$ac_config_files include/gutenprint/gutenprint-version.h" 20593 20594ac_config_files="$ac_config_files man/Makefile" 20595 20596ac_config_files="$ac_config_files man/cups-calibrate.8" 20597 20598ac_config_files="$ac_config_files man/cups-genppd.8" 20599 20600ac_config_files="$ac_config_files man/cups-genppdupdate.8" 20601 20602ac_config_files="$ac_config_files man/escputil.1" 20603 20604ac_config_files="$ac_config_files po/Makefile.in" 20605 20606ac_config_files="$ac_config_files samples/Makefile" 20607 20608ac_config_files="$ac_config_files src/Makefile" 20609 20610ac_config_files="$ac_config_files src/cups/Makefile" 20611 20612ac_config_files="$ac_config_files src/cups/Info.plist" 20613 20614ac_config_files="$ac_config_files src/cups/cups-genppdupdate" 20615 20616ac_config_files="$ac_config_files src/cups/test-ppds.test" 20617 20618ac_config_files="$ac_config_files src/cups/min-pagesize" 20619 20620ac_config_files="$ac_config_files src/escputil/Makefile" 20621 20622ac_config_files="$ac_config_files src/testpattern/compare-image-files" 20623 20624ac_config_files="$ac_config_files src/testpattern/run-testpattern" 20625 20626ac_config_files="$ac_config_files src/testpattern/run-testpattern-1.test" 20627 20628ac_config_files="$ac_config_files src/testpattern/run-testpattern-2" 20629 20630ac_config_files="$ac_config_files src/testpattern/run-testpattern-2.test" 20631 20632ac_config_files="$ac_config_files src/testpattern/compare-checksums" 20633 20634ac_config_files="$ac_config_files src/testpattern/compress-checksums" 20635 20636ac_config_files="$ac_config_files src/cups/test-rastertogutenprint" 20637 20638ac_config_files="$ac_config_files src/cups/test-rastertogutenprint.test" 20639 20640ac_config_files="$ac_config_files src/testpattern/Makefile" 20641 20642ac_config_files="$ac_config_files src/gimp2/Makefile" 20643 20644ac_config_files="$ac_config_files src/main/Makefile" 20645 20646ac_config_files="$ac_config_files src/main/gutenprint.pc" 20647 20648ac_config_files="$ac_config_files src/xml/Makefile" 20649 20650ac_config_files="$ac_config_files src/xml/dither/Makefile" 20651 20652ac_config_files="$ac_config_files src/xml/papers/Makefile" 20653 20654ac_config_files="$ac_config_files src/xml/printers/Makefile" 20655 20656ac_config_files="$ac_config_files src/xml/escp2/Makefile" 20657 20658ac_config_files="$ac_config_files src/xml/escp2/media/Makefile" 20659 20660ac_config_files="$ac_config_files src/xml/escp2/mediasizes/Makefile" 20661 20662ac_config_files="$ac_config_files src/xml/escp2/model/Makefile" 20663 20664ac_config_files="$ac_config_files src/xml/escp2/model/base/Makefile" 20665 20666ac_config_files="$ac_config_files src/xml/escp2/inputslots/Makefile" 20667 20668ac_config_files="$ac_config_files src/xml/escp2/inks/Makefile" 20669 20670ac_config_files="$ac_config_files src/xml/escp2/weaves/Makefile" 20671 20672ac_config_files="$ac_config_files src/xml/escp2/qualitypresets/Makefile" 20673 20674ac_config_files="$ac_config_files src/xml/escp2/resolutions/Makefile" 20675 20676ac_config_files="$ac_config_files src/gutenprintui2/Makefile" 20677 20678ac_config_files="$ac_config_files src/gutenprintui2/gutenprintui2.pc" 20679 20680ac_config_files="$ac_config_files test/Makefile" 20681 20682ac_config_files="$ac_config_files test/compress-5level.sh" 20683 20684ac_config_files="$ac_config_files test/compress-6level.sh" 20685 20686ac_config_files="$ac_config_files test/uncompress-5level.sh" 20687 20688ac_config_files="$ac_config_files test/uncompress-6level.sh" 20689 20690ac_config_files="$ac_config_files test/parse-bjc" 20691 20692ac_config_files="$ac_config_files test/parse-escp2" 20693 20694ac_config_files="$ac_config_files test/run-testdither.test" 20695 20696ac_config_files="$ac_config_files test/run-weavetest.test" 20697 20698ac_config_files="$ac_config_files test/test-curve.test" 20699 20700ac_config_files="$ac_config_files scripts/Makefile" 20701 20702ac_config_files="$ac_config_files scripts/mkgitlog" 20703 20704ac_config_files="$ac_config_files scripts/gversion" 20705 20706ac_config_files="$ac_config_files scripts/test-gversion" 20707 20708ac_config_files="$ac_config_files scripts/wzpaq" 20709 20710ac_config_commands="$ac_config_commands default" 20711 20712 20713cat >confcache <<\_ACEOF 20714# This file is a shell script that caches the results of configure 20715# tests run on this system so they can be shared between configure 20716# scripts and configure runs, see configure's option --config-cache. 20717# It is not useful on other systems. If it contains results you don't 20718# want to keep, you may remove or edit it. 20719# 20720# config.status only pays attention to the cache file if you give it 20721# the --recheck option to rerun configure. 20722# 20723# `ac_cv_env_foo' variables (set or unset) will be overridden when 20724# loading this file, other *unset* `ac_cv_foo' will be assigned the 20725# following values. 20726 20727_ACEOF 20728 20729# The following way of writing the cache mishandles newlines in values, 20730# but we know of no workaround that is simple, portable, and efficient. 20731# So, we kill variables containing newlines. 20732# Ultrix sh set writes to stderr and can't be redirected directly, 20733# and sets the high bit in the cache file unless we assign to the vars. 20734( 20735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20736 eval ac_val=\$$ac_var 20737 case $ac_val in #( 20738 *${as_nl}*) 20739 case $ac_var in #( 20740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20741$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20742 esac 20743 case $ac_var in #( 20744 _ | IFS | as_nl) ;; #( 20745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20746 *) { eval $ac_var=; unset $ac_var;} ;; 20747 esac ;; 20748 esac 20749 done 20750 20751 (set) 2>&1 | 20752 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20753 *${as_nl}ac_space=\ *) 20754 # `set' does not quote correctly, so add quotes: double-quote 20755 # substitution turns \\\\ into \\, and sed turns \\ into \. 20756 sed -n \ 20757 "s/'/'\\\\''/g; 20758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20759 ;; #( 20760 *) 20761 # `set' quotes correctly as required by POSIX, so do not add quotes. 20762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20763 ;; 20764 esac | 20765 sort 20766) | 20767 sed ' 20768 /^ac_cv_env_/b end 20769 t clear 20770 :clear 20771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20772 t end 20773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20774 :end' >>confcache 20775if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20776 if test -w "$cache_file"; then 20777 if test "x$cache_file" != "x/dev/null"; then 20778 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20779$as_echo "$as_me: updating cache $cache_file" >&6;} 20780 if test ! -f "$cache_file" || test -h "$cache_file"; then 20781 cat confcache >"$cache_file" 20782 else 20783 case $cache_file in #( 20784 */* | ?:*) 20785 mv -f confcache "$cache_file"$$ && 20786 mv -f "$cache_file"$$ "$cache_file" ;; #( 20787 *) 20788 mv -f confcache "$cache_file" ;; 20789 esac 20790 fi 20791 fi 20792 else 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20794$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20795 fi 20796fi 20797rm -f confcache 20798 20799test "x$prefix" = xNONE && prefix=$ac_default_prefix 20800# Let make expand exec_prefix. 20801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20802 20803DEFS=-DHAVE_CONFIG_H 20804 20805ac_libobjs= 20806ac_ltlibobjs= 20807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20808 # 1. Remove the extension, and $U if already installed. 20809 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20810 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20811 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20812 # will be set to the directory where LIBOBJS objects are built. 20813 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20814 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20815done 20816LIBOBJS=$ac_libobjs 20817 20818LTLIBOBJS=$ac_ltlibobjs 20819 20820 20821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20822$as_echo_n "checking that generated files are newer than configure... " >&6; } 20823 if test -n "$am_sleep_pid"; then 20824 # Hide warnings about reused PIDs. 20825 wait $am_sleep_pid 2>/dev/null 20826 fi 20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20828$as_echo "done" >&6; } 20829 if test -n "$EXEEXT"; then 20830 am__EXEEXT_TRUE= 20831 am__EXEEXT_FALSE='#' 20832else 20833 am__EXEEXT_TRUE='#' 20834 am__EXEEXT_FALSE= 20835fi 20836 20837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20838 as_fn_error $? "conditional \"AMDEP\" was never defined. 20839Usually this means the macro was only invoked conditionally." "$LINENO" 5 20840fi 20841if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20842 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20843Usually this means the macro was only invoked conditionally." "$LINENO" 5 20844fi 20845if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20846 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20847Usually this means the macro was only invoked conditionally." "$LINENO" 5 20848fi 20849if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then 20850 as_fn_error $? "conditional \"USE_NLS\" was never defined. 20851Usually this means the macro was only invoked conditionally." "$LINENO" 5 20852fi 20853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20854 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20855Usually this means the macro was only invoked conditionally." "$LINENO" 5 20856fi 20857if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20858 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20859Usually this means the macro was only invoked conditionally." "$LINENO" 5 20860fi 20861if test -z "${BUILD_CUPS_TRUE}" && test -z "${BUILD_CUPS_FALSE}"; then 20862 as_fn_error $? "conditional \"BUILD_CUPS\" was never defined. 20863Usually this means the macro was only invoked conditionally." "$LINENO" 5 20864fi 20865if test -z "${BUILD_CUPS_1_2_TRUE}" && test -z "${BUILD_CUPS_1_2_FALSE}"; then 20866 as_fn_error $? "conditional \"BUILD_CUPS_1_2\" was never defined. 20867Usually this means the macro was only invoked conditionally." "$LINENO" 5 20868fi 20869if test -z "${BUILD_CUPS_PPDS_TRUE}" && test -z "${BUILD_CUPS_PPDS_FALSE}"; then 20870 as_fn_error $? "conditional \"BUILD_CUPS_PPDS\" was never defined. 20871Usually this means the macro was only invoked conditionally." "$LINENO" 5 20872fi 20873if test -z "${CUPS_PPDS_AT_TOP_LEVEL_TRUE}" && test -z "${CUPS_PPDS_AT_TOP_LEVEL_FALSE}"; then 20874 as_fn_error $? "conditional \"CUPS_PPDS_AT_TOP_LEVEL\" was never defined. 20875Usually this means the macro was only invoked conditionally." "$LINENO" 5 20876fi 20877if test -z "${BUILD_TRANSLATED_CUPS_PPDS_TRUE}" && test -z "${BUILD_TRANSLATED_CUPS_PPDS_FALSE}"; then 20878 as_fn_error $? "conditional \"BUILD_TRANSLATED_CUPS_PPDS\" was never defined. 20879Usually this means the macro was only invoked conditionally." "$LINENO" 5 20880fi 20881if test -z "${BUILD_GLOBALIZED_CUPS_PPDS_TRUE}" && test -z "${BUILD_GLOBALIZED_CUPS_PPDS_FALSE}"; then 20882 as_fn_error $? "conditional \"BUILD_GLOBALIZED_CUPS_PPDS\" was never defined. 20883Usually this means the macro was only invoked conditionally." "$LINENO" 5 20884fi 20885if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS_TRUE}" && test -z "${BUILD_SIMPLIFIED_CUPS_PPDS_FALSE}"; then 20886 as_fn_error $? "conditional \"BUILD_SIMPLIFIED_CUPS_PPDS\" was never defined. 20887Usually this means the macro was only invoked conditionally." "$LINENO" 5 20888fi 20889if test -z "${USE_LEVEL3_PS_TRUE}" && test -z "${USE_LEVEL3_PS_FALSE}"; then 20890 as_fn_error $? "conditional \"USE_LEVEL3_PS\" was never defined. 20891Usually this means the macro was only invoked conditionally." "$LINENO" 5 20892fi 20893if test -z "${BUILD_ESCPUTIL_TRUE}" && test -z "${BUILD_ESCPUTIL_FALSE}"; then 20894 as_fn_error $? "conditional \"BUILD_ESCPUTIL\" was never defined. 20895Usually this means the macro was only invoked conditionally." "$LINENO" 5 20896fi 20897if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then 20898 as_fn_error $? "conditional \"BUILD_TEST\" was never defined. 20899Usually this means the macro was only invoked conditionally." "$LINENO" 5 20900fi 20901if test -z "${BUILD_TESTPATTERN_TRUE}" && test -z "${BUILD_TESTPATTERN_FALSE}"; then 20902 as_fn_error $? "conditional \"BUILD_TESTPATTERN\" was never defined. 20903Usually this means the macro was only invoked conditionally." "$LINENO" 5 20904fi 20905if test -z "${BUILD_LIBGUTENPRINTUI2_TRUE}" && test -z "${BUILD_LIBGUTENPRINTUI2_FALSE}"; then 20906 as_fn_error $? "conditional \"BUILD_LIBGUTENPRINTUI2\" was never defined. 20907Usually this means the macro was only invoked conditionally." "$LINENO" 5 20908fi 20909if test -z "${BUILD_GIMP2_TRUE}" && test -z "${BUILD_GIMP2_FALSE}"; then 20910 as_fn_error $? "conditional \"BUILD_GIMP2\" was never defined. 20911Usually this means the macro was only invoked conditionally." "$LINENO" 5 20912fi 20913if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then 20914 as_fn_error $? "conditional \"BUILD_DOC\" was never defined. 20915Usually this means the macro was only invoked conditionally." "$LINENO" 5 20916fi 20917if test -z "${BUILD_GIMP2_AS_GUTENPRINT_TRUE}" && test -z "${BUILD_GIMP2_AS_GUTENPRINT_FALSE}"; then 20918 as_fn_error $? "conditional \"BUILD_GIMP2_AS_GUTENPRINT\" was never defined. 20919Usually this means the macro was only invoked conditionally." "$LINENO" 5 20920fi 20921if test -z "${INSTALL_SAMPLES_TRUE}" && test -z "${INSTALL_SAMPLES_FALSE}"; then 20922 as_fn_error $? "conditional \"INSTALL_SAMPLES\" was never defined. 20923Usually this means the macro was only invoked conditionally." "$LINENO" 5 20924fi 20925if test -z "${INSTALL_USER_GUIDE_TRUE}" && test -z "${INSTALL_USER_GUIDE_FALSE}"; then 20926 as_fn_error $? "conditional \"INSTALL_USER_GUIDE\" was never defined. 20927Usually this means the macro was only invoked conditionally." "$LINENO" 5 20928fi 20929if test -z "${BUILD_LIBUSB_BACKENDS_TRUE}" && test -z "${BUILD_LIBUSB_BACKENDS_FALSE}"; then 20930 as_fn_error $? "conditional \"BUILD_LIBUSB_BACKENDS\" was never defined. 20931Usually this means the macro was only invoked conditionally." "$LINENO" 5 20932fi 20933if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then 20934 as_fn_error $? "conditional \"BUILD_MODULES\" was never defined. 20935Usually this means the macro was only invoked conditionally." "$LINENO" 5 20936fi 20937if test -z "${BUILD_GENPPD_STATIC_TRUE}" && test -z "${BUILD_GENPPD_STATIC_FALSE}"; then 20938 as_fn_error $? "conditional \"BUILD_GENPPD_STATIC\" was never defined. 20939Usually this means the macro was only invoked conditionally." "$LINENO" 5 20940fi 20941LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'` 20942 20943LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'` 20944 20945 20946: "${CONFIG_STATUS=./config.status}" 20947ac_write_fail=0 20948ac_clean_files_save=$ac_clean_files 20949ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20950{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20951$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20952as_write_fail=0 20953cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20954#! $SHELL 20955# Generated by $as_me. 20956# Run this file to recreate the current configuration. 20957# Compiler output produced by configure, useful for debugging 20958# configure, is in config.log if it exists. 20959 20960debug=false 20961ac_cs_recheck=false 20962ac_cs_silent=false 20963 20964SHELL=\${CONFIG_SHELL-$SHELL} 20965export SHELL 20966_ASEOF 20967cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20968## -------------------- ## 20969## M4sh Initialization. ## 20970## -------------------- ## 20971 20972# Be more Bourne compatible 20973DUALCASE=1; export DUALCASE # for MKS sh 20974if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20975 emulate sh 20976 NULLCMD=: 20977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20978 # is contrary to our usage. Disable this feature. 20979 alias -g '${1+"$@"}'='"$@"' 20980 setopt NO_GLOB_SUBST 20981else 20982 case `(set -o) 2>/dev/null` in #( 20983 *posix*) : 20984 set -o posix ;; #( 20985 *) : 20986 ;; 20987esac 20988fi 20989 20990 20991as_nl=' 20992' 20993export as_nl 20994# Printing a long string crashes Solaris 7 /usr/bin/printf. 20995as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20996as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20997as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20998# Prefer a ksh shell builtin over an external printf program on Solaris, 20999# but without wasting forks for bash or zsh. 21000if test -z "$BASH_VERSION$ZSH_VERSION" \ 21001 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21002 as_echo='print -r --' 21003 as_echo_n='print -rn --' 21004elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21005 as_echo='printf %s\n' 21006 as_echo_n='printf %s' 21007else 21008 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21009 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21010 as_echo_n='/usr/ucb/echo -n' 21011 else 21012 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21013 as_echo_n_body='eval 21014 arg=$1; 21015 case $arg in #( 21016 *"$as_nl"*) 21017 expr "X$arg" : "X\\(.*\\)$as_nl"; 21018 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21019 esac; 21020 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21021 ' 21022 export as_echo_n_body 21023 as_echo_n='sh -c $as_echo_n_body as_echo' 21024 fi 21025 export as_echo_body 21026 as_echo='sh -c $as_echo_body as_echo' 21027fi 21028 21029# The user is always right. 21030if test "${PATH_SEPARATOR+set}" != set; then 21031 PATH_SEPARATOR=: 21032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21034 PATH_SEPARATOR=';' 21035 } 21036fi 21037 21038 21039# IFS 21040# We need space, tab and new line, in precisely that order. Quoting is 21041# there to prevent editors from complaining about space-tab. 21042# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21043# splitting by setting IFS to empty value.) 21044IFS=" "" $as_nl" 21045 21046# Find who we are. Look in the path if we contain no directory separator. 21047as_myself= 21048case $0 in #(( 21049 *[\\/]* ) as_myself=$0 ;; 21050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21051for as_dir in $PATH 21052do 21053 IFS=$as_save_IFS 21054 test -z "$as_dir" && as_dir=. 21055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21056 done 21057IFS=$as_save_IFS 21058 21059 ;; 21060esac 21061# We did not find ourselves, most probably we were run as `sh COMMAND' 21062# in which case we are not to be found in the path. 21063if test "x$as_myself" = x; then 21064 as_myself=$0 21065fi 21066if test ! -f "$as_myself"; then 21067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21068 exit 1 21069fi 21070 21071# Unset variables that we do not need and which cause bugs (e.g. in 21072# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21073# suppresses any "Segmentation fault" message there. '((' could 21074# trigger a bug in pdksh 5.2.14. 21075for as_var in BASH_ENV ENV MAIL MAILPATH 21076do eval test x\${$as_var+set} = xset \ 21077 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21078done 21079PS1='$ ' 21080PS2='> ' 21081PS4='+ ' 21082 21083# NLS nuisances. 21084LC_ALL=C 21085export LC_ALL 21086LANGUAGE=C 21087export LANGUAGE 21088 21089# CDPATH. 21090(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21091 21092 21093# as_fn_error STATUS ERROR [LINENO LOG_FD] 21094# ---------------------------------------- 21095# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21096# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21097# script with STATUS, using 1 if that was 0. 21098as_fn_error () 21099{ 21100 as_status=$1; test $as_status -eq 0 && as_status=1 21101 if test "$4"; then 21102 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21103 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21104 fi 21105 $as_echo "$as_me: error: $2" >&2 21106 as_fn_exit $as_status 21107} # as_fn_error 21108 21109 21110# as_fn_set_status STATUS 21111# ----------------------- 21112# Set $? to STATUS, without forking. 21113as_fn_set_status () 21114{ 21115 return $1 21116} # as_fn_set_status 21117 21118# as_fn_exit STATUS 21119# ----------------- 21120# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21121as_fn_exit () 21122{ 21123 set +e 21124 as_fn_set_status $1 21125 exit $1 21126} # as_fn_exit 21127 21128# as_fn_unset VAR 21129# --------------- 21130# Portably unset VAR. 21131as_fn_unset () 21132{ 21133 { eval $1=; unset $1;} 21134} 21135as_unset=as_fn_unset 21136# as_fn_append VAR VALUE 21137# ---------------------- 21138# Append the text in VALUE to the end of the definition contained in VAR. Take 21139# advantage of any shell optimizations that allow amortized linear growth over 21140# repeated appends, instead of the typical quadratic growth present in naive 21141# implementations. 21142if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21143 eval 'as_fn_append () 21144 { 21145 eval $1+=\$2 21146 }' 21147else 21148 as_fn_append () 21149 { 21150 eval $1=\$$1\$2 21151 } 21152fi # as_fn_append 21153 21154# as_fn_arith ARG... 21155# ------------------ 21156# Perform arithmetic evaluation on the ARGs, and store the result in the 21157# global $as_val. Take advantage of shells that can avoid forks. The arguments 21158# must be portable across $(()) and expr. 21159if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21160 eval 'as_fn_arith () 21161 { 21162 as_val=$(( $* )) 21163 }' 21164else 21165 as_fn_arith () 21166 { 21167 as_val=`expr "$@" || test $? -eq 1` 21168 } 21169fi # as_fn_arith 21170 21171 21172if expr a : '\(a\)' >/dev/null 2>&1 && 21173 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21174 as_expr=expr 21175else 21176 as_expr=false 21177fi 21178 21179if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21180 as_basename=basename 21181else 21182 as_basename=false 21183fi 21184 21185if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21186 as_dirname=dirname 21187else 21188 as_dirname=false 21189fi 21190 21191as_me=`$as_basename -- "$0" || 21192$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21193 X"$0" : 'X\(//\)$' \| \ 21194 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21195$as_echo X/"$0" | 21196 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21197 s//\1/ 21198 q 21199 } 21200 /^X\/\(\/\/\)$/{ 21201 s//\1/ 21202 q 21203 } 21204 /^X\/\(\/\).*/{ 21205 s//\1/ 21206 q 21207 } 21208 s/.*/./; q'` 21209 21210# Avoid depending upon Character Ranges. 21211as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21212as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21213as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21214as_cr_digits='0123456789' 21215as_cr_alnum=$as_cr_Letters$as_cr_digits 21216 21217ECHO_C= ECHO_N= ECHO_T= 21218case `echo -n x` in #((((( 21219-n*) 21220 case `echo 'xy\c'` in 21221 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21222 xy) ECHO_C='\c';; 21223 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21224 ECHO_T=' ';; 21225 esac;; 21226*) 21227 ECHO_N='-n';; 21228esac 21229 21230rm -f conf$$ conf$$.exe conf$$.file 21231if test -d conf$$.dir; then 21232 rm -f conf$$.dir/conf$$.file 21233else 21234 rm -f conf$$.dir 21235 mkdir conf$$.dir 2>/dev/null 21236fi 21237if (echo >conf$$.file) 2>/dev/null; then 21238 if ln -s conf$$.file conf$$ 2>/dev/null; then 21239 as_ln_s='ln -s' 21240 # ... but there are two gotchas: 21241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21243 # In both cases, we have to default to `cp -pR'. 21244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21245 as_ln_s='cp -pR' 21246 elif ln conf$$.file conf$$ 2>/dev/null; then 21247 as_ln_s=ln 21248 else 21249 as_ln_s='cp -pR' 21250 fi 21251else 21252 as_ln_s='cp -pR' 21253fi 21254rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21255rmdir conf$$.dir 2>/dev/null 21256 21257 21258# as_fn_mkdir_p 21259# ------------- 21260# Create "$as_dir" as a directory, including parents if necessary. 21261as_fn_mkdir_p () 21262{ 21263 21264 case $as_dir in #( 21265 -*) as_dir=./$as_dir;; 21266 esac 21267 test -d "$as_dir" || eval $as_mkdir_p || { 21268 as_dirs= 21269 while :; do 21270 case $as_dir in #( 21271 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21272 *) as_qdir=$as_dir;; 21273 esac 21274 as_dirs="'$as_qdir' $as_dirs" 21275 as_dir=`$as_dirname -- "$as_dir" || 21276$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21277 X"$as_dir" : 'X\(//\)[^/]' \| \ 21278 X"$as_dir" : 'X\(//\)$' \| \ 21279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21280$as_echo X"$as_dir" | 21281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21282 s//\1/ 21283 q 21284 } 21285 /^X\(\/\/\)[^/].*/{ 21286 s//\1/ 21287 q 21288 } 21289 /^X\(\/\/\)$/{ 21290 s//\1/ 21291 q 21292 } 21293 /^X\(\/\).*/{ 21294 s//\1/ 21295 q 21296 } 21297 s/.*/./; q'` 21298 test -d "$as_dir" && break 21299 done 21300 test -z "$as_dirs" || eval "mkdir $as_dirs" 21301 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21302 21303 21304} # as_fn_mkdir_p 21305if mkdir -p . 2>/dev/null; then 21306 as_mkdir_p='mkdir -p "$as_dir"' 21307else 21308 test -d ./-p && rmdir ./-p 21309 as_mkdir_p=false 21310fi 21311 21312 21313# as_fn_executable_p FILE 21314# ----------------------- 21315# Test if FILE is an executable regular file. 21316as_fn_executable_p () 21317{ 21318 test -f "$1" && test -x "$1" 21319} # as_fn_executable_p 21320as_test_x='test -x' 21321as_executable_p=as_fn_executable_p 21322 21323# Sed expression to map a string onto a valid CPP name. 21324as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21325 21326# Sed expression to map a string onto a valid variable name. 21327as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21328 21329 21330exec 6>&1 21331## ----------------------------------- ## 21332## Main body of $CONFIG_STATUS script. ## 21333## ----------------------------------- ## 21334_ASEOF 21335test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21336 21337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21338# Save the log message, to keep $0 and so on meaningful, and to 21339# report actual input values of CONFIG_FILES etc. instead of their 21340# values after options handling. 21341ac_log=" 21342This file was extended by GUTENPRINT_NAME $as_me GUTENPRINT_VERSION, which was 21343generated by GNU Autoconf 2.69. Invocation command line was 21344 21345 CONFIG_FILES = $CONFIG_FILES 21346 CONFIG_HEADERS = $CONFIG_HEADERS 21347 CONFIG_LINKS = $CONFIG_LINKS 21348 CONFIG_COMMANDS = $CONFIG_COMMANDS 21349 $ $0 $@ 21350 21351on `(hostname || uname -n) 2>/dev/null | sed 1q` 21352" 21353 21354_ACEOF 21355 21356case $ac_config_files in *" 21357"*) set x $ac_config_files; shift; ac_config_files=$*;; 21358esac 21359 21360case $ac_config_headers in *" 21361"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21362esac 21363 21364 21365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21366# Files that config.status was made for. 21367config_files="$ac_config_files" 21368config_headers="$ac_config_headers" 21369config_commands="$ac_config_commands" 21370 21371_ACEOF 21372 21373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21374ac_cs_usage="\ 21375\`$as_me' instantiates files and other configuration actions 21376from templates according to the current configuration. Unless the files 21377and actions are specified as TAGs, all are instantiated by default. 21378 21379Usage: $0 [OPTION]... [TAG]... 21380 21381 -h, --help print this help, then exit 21382 -V, --version print version number and configuration settings, then exit 21383 --config print configuration, then exit 21384 -q, --quiet, --silent 21385 do not print progress messages 21386 -d, --debug don't remove temporary files 21387 --recheck update $as_me by reconfiguring in the same conditions 21388 --file=FILE[:TEMPLATE] 21389 instantiate the configuration file FILE 21390 --header=FILE[:TEMPLATE] 21391 instantiate the configuration header FILE 21392 21393Configuration files: 21394$config_files 21395 21396Configuration headers: 21397$config_headers 21398 21399Configuration commands: 21400$config_commands 21401 21402Report bugs to <gimp-print-devel@lists.sourceforge.net>. 21403GUTENPRINT_NAME home page: <https://gimp-print.sourceforge.net>." 21404 21405_ACEOF 21406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21407ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21408ac_cs_version="\\ 21409GUTENPRINT_NAME config.status GUTENPRINT_VERSION 21410configured by $0, generated by GNU Autoconf 2.69, 21411 with options \\"\$ac_cs_config\\" 21412 21413Copyright (C) 2012 Free Software Foundation, Inc. 21414This config.status script is free software; the Free Software Foundation 21415gives unlimited permission to copy, distribute and modify it." 21416 21417ac_pwd='$ac_pwd' 21418srcdir='$srcdir' 21419INSTALL='$INSTALL' 21420MKDIR_P='$MKDIR_P' 21421AWK='$AWK' 21422test -n "\$AWK" || AWK=awk 21423_ACEOF 21424 21425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21426# The default lists apply if the user does not specify any file. 21427ac_need_defaults=: 21428while test $# != 0 21429do 21430 case $1 in 21431 --*=?*) 21432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21434 ac_shift=: 21435 ;; 21436 --*=) 21437 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21438 ac_optarg= 21439 ac_shift=: 21440 ;; 21441 *) 21442 ac_option=$1 21443 ac_optarg=$2 21444 ac_shift=shift 21445 ;; 21446 esac 21447 21448 case $ac_option in 21449 # Handling of the options. 21450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21451 ac_cs_recheck=: ;; 21452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21453 $as_echo "$ac_cs_version"; exit ;; 21454 --config | --confi | --conf | --con | --co | --c ) 21455 $as_echo "$ac_cs_config"; exit ;; 21456 --debug | --debu | --deb | --de | --d | -d ) 21457 debug=: ;; 21458 --file | --fil | --fi | --f ) 21459 $ac_shift 21460 case $ac_optarg in 21461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21462 '') as_fn_error $? "missing file argument" ;; 21463 esac 21464 as_fn_append CONFIG_FILES " '$ac_optarg'" 21465 ac_need_defaults=false;; 21466 --header | --heade | --head | --hea ) 21467 $ac_shift 21468 case $ac_optarg in 21469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21470 esac 21471 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21472 ac_need_defaults=false;; 21473 --he | --h) 21474 # Conflict between --help and --header 21475 as_fn_error $? "ambiguous option: \`$1' 21476Try \`$0 --help' for more information.";; 21477 --help | --hel | -h ) 21478 $as_echo "$ac_cs_usage"; exit ;; 21479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21480 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21481 ac_cs_silent=: ;; 21482 21483 # This is an error. 21484 -*) as_fn_error $? "unrecognized option: \`$1' 21485Try \`$0 --help' for more information." ;; 21486 21487 *) as_fn_append ac_config_targets " $1" 21488 ac_need_defaults=false ;; 21489 21490 esac 21491 shift 21492done 21493 21494ac_configure_extra_args= 21495 21496if $ac_cs_silent; then 21497 exec 6>/dev/null 21498 ac_configure_extra_args="$ac_configure_extra_args --silent" 21499fi 21500 21501_ACEOF 21502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21503if \$ac_cs_recheck; then 21504 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21505 shift 21506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21507 CONFIG_SHELL='$SHELL' 21508 export CONFIG_SHELL 21509 exec "\$@" 21510fi 21511 21512_ACEOF 21513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21514exec 5>>config.log 21515{ 21516 echo 21517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21518## Running $as_me. ## 21519_ASBOX 21520 $as_echo "$ac_log" 21521} >&5 21522 21523_ACEOF 21524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21525# 21526# INIT-COMMANDS 21527# 21528AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21529 21530 21531# The HP-UX ksh and POSIX shell print the target directory to stdout 21532# if CDPATH is set. 21533(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21534 21535sed_quote_subst='$sed_quote_subst' 21536double_quote_subst='$double_quote_subst' 21537delay_variable_subst='$delay_variable_subst' 21538macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21539macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21540enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21541enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21542pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21543enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21544shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21545SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21546ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21547PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21548host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21549host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21550host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21551build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21552build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21553build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21554SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21555Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21556GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21557EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21558FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21559LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21560NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21561LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21562max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21563ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21564exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21565lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21566lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21567lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21568lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21569lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21570reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21571reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21572OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21573deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21574file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21575file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21576want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21577DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21578sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21579AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21580AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21581archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21582STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21583RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21584old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21585old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21586old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21587lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21588CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21589CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21590compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21591GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21592lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21593lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21594lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21595lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21596lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 21597lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21598nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21599lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21600lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21601objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21602MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21603lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21604lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21605lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21606lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21607lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21608need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21609MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21610DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21611NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21612LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21613OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21614OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21615libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21616shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21617extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21618archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21619enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21620export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21621whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21622compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21623old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21624old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21625archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21626archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21627module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21628module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21629with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21630allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21631no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21632hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21633hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21634hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21635hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21636hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21637hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21638hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21639inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21640link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21641always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21642export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21643exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21644include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21645prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21646postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21647file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21648variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21649need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21650need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21651version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21652runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21653shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21654shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21655libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21656library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21657soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21658install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21659postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21660postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21661finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21662finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21663hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21664sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21665configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21666configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21667hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21668enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21669enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21670enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21671old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21672striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21673 21674LTCC='$LTCC' 21675LTCFLAGS='$LTCFLAGS' 21676compiler='$compiler_DEFAULT' 21677 21678# A function that is used when there is no print builtin or printf. 21679func_fallback_echo () 21680{ 21681 eval 'cat <<_LTECHO_EOF 21682\$1 21683_LTECHO_EOF' 21684} 21685 21686# Quote evaled strings. 21687for var in SHELL \ 21688ECHO \ 21689PATH_SEPARATOR \ 21690SED \ 21691GREP \ 21692EGREP \ 21693FGREP \ 21694LD \ 21695NM \ 21696LN_S \ 21697lt_SP2NL \ 21698lt_NL2SP \ 21699reload_flag \ 21700OBJDUMP \ 21701deplibs_check_method \ 21702file_magic_cmd \ 21703file_magic_glob \ 21704want_nocaseglob \ 21705DLLTOOL \ 21706sharedlib_from_linklib_cmd \ 21707AR \ 21708AR_FLAGS \ 21709archiver_list_spec \ 21710STRIP \ 21711RANLIB \ 21712CC \ 21713CFLAGS \ 21714compiler \ 21715lt_cv_sys_global_symbol_pipe \ 21716lt_cv_sys_global_symbol_to_cdecl \ 21717lt_cv_sys_global_symbol_to_import \ 21718lt_cv_sys_global_symbol_to_c_name_address \ 21719lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21720lt_cv_nm_interface \ 21721nm_file_list_spec \ 21722lt_cv_truncate_bin \ 21723lt_prog_compiler_no_builtin_flag \ 21724lt_prog_compiler_pic \ 21725lt_prog_compiler_wl \ 21726lt_prog_compiler_static \ 21727lt_cv_prog_compiler_c_o \ 21728need_locks \ 21729MANIFEST_TOOL \ 21730DSYMUTIL \ 21731NMEDIT \ 21732LIPO \ 21733OTOOL \ 21734OTOOL64 \ 21735shrext_cmds \ 21736export_dynamic_flag_spec \ 21737whole_archive_flag_spec \ 21738compiler_needs_object \ 21739with_gnu_ld \ 21740allow_undefined_flag \ 21741no_undefined_flag \ 21742hardcode_libdir_flag_spec \ 21743hardcode_libdir_separator \ 21744exclude_expsyms \ 21745include_expsyms \ 21746file_list_spec \ 21747variables_saved_for_relink \ 21748libname_spec \ 21749library_names_spec \ 21750soname_spec \ 21751install_override_mode \ 21752finish_eval \ 21753old_striplib \ 21754striplib; do 21755 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21756 *[\\\\\\\`\\"\\\$]*) 21757 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21758 ;; 21759 *) 21760 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21761 ;; 21762 esac 21763done 21764 21765# Double-quote double-evaled strings. 21766for var in reload_cmds \ 21767old_postinstall_cmds \ 21768old_postuninstall_cmds \ 21769old_archive_cmds \ 21770extract_expsyms_cmds \ 21771old_archive_from_new_cmds \ 21772old_archive_from_expsyms_cmds \ 21773archive_cmds \ 21774archive_expsym_cmds \ 21775module_cmds \ 21776module_expsym_cmds \ 21777export_symbols_cmds \ 21778prelink_cmds \ 21779postlink_cmds \ 21780postinstall_cmds \ 21781postuninstall_cmds \ 21782finish_cmds \ 21783sys_lib_search_path_spec \ 21784configure_time_dlsearch_path \ 21785configure_time_lt_sys_library_path; do 21786 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21787 *[\\\\\\\`\\"\\\$]*) 21788 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21789 ;; 21790 *) 21791 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21792 ;; 21793 esac 21794done 21795 21796ac_aux_dir='$ac_aux_dir' 21797 21798# See if we are running on zsh, and set the options that allow our 21799# commands through without removal of \ escapes INIT. 21800if test -n "\${ZSH_VERSION+set}"; then 21801 setopt NO_GLOB_SUBST 21802fi 21803 21804 21805 PACKAGE='$PACKAGE' 21806 VERSION='$VERSION' 21807 RM='$RM' 21808 ofile='$ofile' 21809 21810 21811 21812# Capture the value of obsolete ALL_LINGUAS because we need it to compute 21813 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 21814 # from automake < 1.5. 21815 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 21816 # Capture the value of LINGUAS because we need it to compute CATALOGS. 21817 LINGUAS="${LINGUAS-%UNSET%}" 21818 21819GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_RELEASE_VERSION} 21820GUTENPRINT_BASE_VERSION=${GUTENPRINT_BASE_VERSION} 21821 21822 21823_ACEOF 21824 21825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21826 21827# Handling of arguments. 21828for ac_config_target in $ac_config_targets 21829do 21830 case $ac_config_target in 21831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21832 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21833 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21834 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 21835 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21836 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21837 "doc/gutenprint.dox") CONFIG_FILES="$CONFIG_FILES doc/gutenprint.dox" ;; 21838 "doc/gutenprintui2.dox") CONFIG_FILES="$CONFIG_FILES doc/gutenprintui2.dox" ;; 21839 "doc/developer/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/Makefile" ;; 21840 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21841 "include/gutenprint/Makefile") CONFIG_FILES="$CONFIG_FILES include/gutenprint/Makefile" ;; 21842 "include/gutenprintui2/Makefile") CONFIG_FILES="$CONFIG_FILES include/gutenprintui2/Makefile" ;; 21843 "include/gutenprint/gutenprint-version.h") CONFIG_FILES="$CONFIG_FILES include/gutenprint/gutenprint-version.h" ;; 21844 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21845 "man/cups-calibrate.8") CONFIG_FILES="$CONFIG_FILES man/cups-calibrate.8" ;; 21846 "man/cups-genppd.8") CONFIG_FILES="$CONFIG_FILES man/cups-genppd.8" ;; 21847 "man/cups-genppdupdate.8") CONFIG_FILES="$CONFIG_FILES man/cups-genppdupdate.8" ;; 21848 "man/escputil.1") CONFIG_FILES="$CONFIG_FILES man/escputil.1" ;; 21849 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21850 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; 21851 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21852 "src/cups/Makefile") CONFIG_FILES="$CONFIG_FILES src/cups/Makefile" ;; 21853 "src/cups/Info.plist") CONFIG_FILES="$CONFIG_FILES src/cups/Info.plist" ;; 21854 "src/cups/cups-genppdupdate") CONFIG_FILES="$CONFIG_FILES src/cups/cups-genppdupdate" ;; 21855 "src/cups/test-ppds.test") CONFIG_FILES="$CONFIG_FILES src/cups/test-ppds.test" ;; 21856 "src/cups/min-pagesize") CONFIG_FILES="$CONFIG_FILES src/cups/min-pagesize" ;; 21857 "src/escputil/Makefile") CONFIG_FILES="$CONFIG_FILES src/escputil/Makefile" ;; 21858 "src/testpattern/compare-image-files") CONFIG_FILES="$CONFIG_FILES src/testpattern/compare-image-files" ;; 21859 "src/testpattern/run-testpattern") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern" ;; 21860 "src/testpattern/run-testpattern-1.test") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-1.test" ;; 21861 "src/testpattern/run-testpattern-2") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-2" ;; 21862 "src/testpattern/run-testpattern-2.test") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-2.test" ;; 21863 "src/testpattern/compare-checksums") CONFIG_FILES="$CONFIG_FILES src/testpattern/compare-checksums" ;; 21864 "src/testpattern/compress-checksums") CONFIG_FILES="$CONFIG_FILES src/testpattern/compress-checksums" ;; 21865 "src/cups/test-rastertogutenprint") CONFIG_FILES="$CONFIG_FILES src/cups/test-rastertogutenprint" ;; 21866 "src/cups/test-rastertogutenprint.test") CONFIG_FILES="$CONFIG_FILES src/cups/test-rastertogutenprint.test" ;; 21867 "src/testpattern/Makefile") CONFIG_FILES="$CONFIG_FILES src/testpattern/Makefile" ;; 21868 "src/gimp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/gimp2/Makefile" ;; 21869 "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;; 21870 "src/main/gutenprint.pc") CONFIG_FILES="$CONFIG_FILES src/main/gutenprint.pc" ;; 21871 "src/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/Makefile" ;; 21872 "src/xml/dither/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/dither/Makefile" ;; 21873 "src/xml/papers/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/papers/Makefile" ;; 21874 "src/xml/printers/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/printers/Makefile" ;; 21875 "src/xml/escp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/Makefile" ;; 21876 "src/xml/escp2/media/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/media/Makefile" ;; 21877 "src/xml/escp2/mediasizes/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/mediasizes/Makefile" ;; 21878 "src/xml/escp2/model/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/model/Makefile" ;; 21879 "src/xml/escp2/model/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/model/base/Makefile" ;; 21880 "src/xml/escp2/inputslots/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/inputslots/Makefile" ;; 21881 "src/xml/escp2/inks/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/inks/Makefile" ;; 21882 "src/xml/escp2/weaves/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/weaves/Makefile" ;; 21883 "src/xml/escp2/qualitypresets/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/qualitypresets/Makefile" ;; 21884 "src/xml/escp2/resolutions/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/resolutions/Makefile" ;; 21885 "src/gutenprintui2/Makefile") CONFIG_FILES="$CONFIG_FILES src/gutenprintui2/Makefile" ;; 21886 "src/gutenprintui2/gutenprintui2.pc") CONFIG_FILES="$CONFIG_FILES src/gutenprintui2/gutenprintui2.pc" ;; 21887 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21888 "test/compress-5level.sh") CONFIG_FILES="$CONFIG_FILES test/compress-5level.sh" ;; 21889 "test/compress-6level.sh") CONFIG_FILES="$CONFIG_FILES test/compress-6level.sh" ;; 21890 "test/uncompress-5level.sh") CONFIG_FILES="$CONFIG_FILES test/uncompress-5level.sh" ;; 21891 "test/uncompress-6level.sh") CONFIG_FILES="$CONFIG_FILES test/uncompress-6level.sh" ;; 21892 "test/parse-bjc") CONFIG_FILES="$CONFIG_FILES test/parse-bjc" ;; 21893 "test/parse-escp2") CONFIG_FILES="$CONFIG_FILES test/parse-escp2" ;; 21894 "test/run-testdither.test") CONFIG_FILES="$CONFIG_FILES test/run-testdither.test" ;; 21895 "test/run-weavetest.test") CONFIG_FILES="$CONFIG_FILES test/run-weavetest.test" ;; 21896 "test/test-curve.test") CONFIG_FILES="$CONFIG_FILES test/test-curve.test" ;; 21897 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 21898 "scripts/mkgitlog") CONFIG_FILES="$CONFIG_FILES scripts/mkgitlog" ;; 21899 "scripts/gversion") CONFIG_FILES="$CONFIG_FILES scripts/gversion" ;; 21900 "scripts/test-gversion") CONFIG_FILES="$CONFIG_FILES scripts/test-gversion" ;; 21901 "scripts/wzpaq") CONFIG_FILES="$CONFIG_FILES scripts/wzpaq" ;; 21902 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 21903 21904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21905 esac 21906done 21907 21908 21909# If the user did not use the arguments to specify the items to instantiate, 21910# then the envvar interface is used. Set only those that are not. 21911# We use the long form for the default assignment because of an extremely 21912# bizarre bug on SunOS 4.1.3. 21913if $ac_need_defaults; then 21914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21917fi 21918 21919# Have a temporary directory for convenience. Make it in the build tree 21920# simply because there is no reason against having it here, and in addition, 21921# creating and moving files from /tmp can sometimes cause problems. 21922# Hook for its removal unless debugging. 21923# Note that there is a small window in which the directory will not be cleaned: 21924# after its creation but before its name has been assigned to `$tmp'. 21925$debug || 21926{ 21927 tmp= ac_tmp= 21928 trap 'exit_status=$? 21929 : "${ac_tmp:=$tmp}" 21930 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21931' 0 21932 trap 'as_fn_exit 1' 1 2 13 15 21933} 21934# Create a (secure) tmp directory for tmp files. 21935 21936{ 21937 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21938 test -d "$tmp" 21939} || 21940{ 21941 tmp=./conf$$-$RANDOM 21942 (umask 077 && mkdir "$tmp") 21943} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21944ac_tmp=$tmp 21945 21946# Set up the scripts for CONFIG_FILES section. 21947# No need to generate them if there are no CONFIG_FILES. 21948# This happens for instance with `./config.status config.h'. 21949if test -n "$CONFIG_FILES"; then 21950 21951 21952ac_cr=`echo X | tr X '\015'` 21953# On cygwin, bash can eat \r inside `` if the user requested igncr. 21954# But we know of no other shell where ac_cr would be empty at this 21955# point, so we can use a bashism as a fallback. 21956if test "x$ac_cr" = x; then 21957 eval ac_cr=\$\'\\r\' 21958fi 21959ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21960if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21961 ac_cs_awk_cr='\\r' 21962else 21963 ac_cs_awk_cr=$ac_cr 21964fi 21965 21966echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21967_ACEOF 21968 21969 21970{ 21971 echo "cat >conf$$subs.awk <<_ACEOF" && 21972 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21973 echo "_ACEOF" 21974} >conf$$subs.sh || 21975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21976ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21977ac_delim='%!_!# ' 21978for ac_last_try in false false false false false :; do 21979 . ./conf$$subs.sh || 21980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21981 21982 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21983 if test $ac_delim_n = $ac_delim_num; then 21984 break 21985 elif $ac_last_try; then 21986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21987 else 21988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21989 fi 21990done 21991rm -f conf$$subs.sh 21992 21993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21994cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21995_ACEOF 21996sed -n ' 21997h 21998s/^/S["/; s/!.*/"]=/ 21999p 22000g 22001s/^[^!]*!// 22002:repl 22003t repl 22004s/'"$ac_delim"'$// 22005t delim 22006:nl 22007h 22008s/\(.\{148\}\)..*/\1/ 22009t more1 22010s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22011p 22012n 22013b repl 22014:more1 22015s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22016p 22017g 22018s/.\{148\}// 22019t nl 22020:delim 22021h 22022s/\(.\{148\}\)..*/\1/ 22023t more2 22024s/["\\]/\\&/g; s/^/"/; s/$/"/ 22025p 22026b 22027:more2 22028s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22029p 22030g 22031s/.\{148\}// 22032t delim 22033' <conf$$subs.awk | sed ' 22034/^[^""]/{ 22035 N 22036 s/\n// 22037} 22038' >>$CONFIG_STATUS || ac_write_fail=1 22039rm -f conf$$subs.awk 22040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22041_ACAWK 22042cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22043 for (key in S) S_is_set[key] = 1 22044 FS = "" 22045 22046} 22047{ 22048 line = $ 0 22049 nfields = split(line, field, "@") 22050 substed = 0 22051 len = length(field[1]) 22052 for (i = 2; i < nfields; i++) { 22053 key = field[i] 22054 keylen = length(key) 22055 if (S_is_set[key]) { 22056 value = S[key] 22057 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22058 len += length(value) + length(field[++i]) 22059 substed = 1 22060 } else 22061 len += 1 + keylen 22062 } 22063 22064 print line 22065} 22066 22067_ACAWK 22068_ACEOF 22069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22070if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22071 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22072else 22073 cat 22074fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22075 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22076_ACEOF 22077 22078# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22079# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22080# trailing colons and then remove the whole line if VPATH becomes empty 22081# (actually we leave an empty line to preserve line numbers). 22082if test "x$srcdir" = x.; then 22083 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22084h 22085s/// 22086s/^/:/ 22087s/[ ]*$/:/ 22088s/:\$(srcdir):/:/g 22089s/:\${srcdir}:/:/g 22090s/:@srcdir@:/:/g 22091s/^:*// 22092s/:*$// 22093x 22094s/\(=[ ]*\).*/\1/ 22095G 22096s/\n// 22097s/^[^=]*=[ ]*$// 22098}' 22099fi 22100 22101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22102fi # test -n "$CONFIG_FILES" 22103 22104# Set up the scripts for CONFIG_HEADERS section. 22105# No need to generate them if there are no CONFIG_HEADERS. 22106# This happens for instance with `./config.status Makefile'. 22107if test -n "$CONFIG_HEADERS"; then 22108cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22109BEGIN { 22110_ACEOF 22111 22112# Transform confdefs.h into an awk script `defines.awk', embedded as 22113# here-document in config.status, that substitutes the proper values into 22114# config.h.in to produce config.h. 22115 22116# Create a delimiter string that does not exist in confdefs.h, to ease 22117# handling of long lines. 22118ac_delim='%!_!# ' 22119for ac_last_try in false false :; do 22120 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22121 if test -z "$ac_tt"; then 22122 break 22123 elif $ac_last_try; then 22124 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22125 else 22126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22127 fi 22128done 22129 22130# For the awk script, D is an array of macro values keyed by name, 22131# likewise P contains macro parameters if any. Preserve backslash 22132# newline sequences. 22133 22134ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22135sed -n ' 22136s/.\{148\}/&'"$ac_delim"'/g 22137t rset 22138:rset 22139s/^[ ]*#[ ]*define[ ][ ]*/ / 22140t def 22141d 22142:def 22143s/\\$// 22144t bsnl 22145s/["\\]/\\&/g 22146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22147D["\1"]=" \3"/p 22148s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22149d 22150:bsnl 22151s/["\\]/\\&/g 22152s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22153D["\1"]=" \3\\\\\\n"\\/p 22154t cont 22155s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22156t cont 22157d 22158:cont 22159n 22160s/.\{148\}/&'"$ac_delim"'/g 22161t clear 22162:clear 22163s/\\$// 22164t bsnlc 22165s/["\\]/\\&/g; s/^/"/; s/$/"/p 22166d 22167:bsnlc 22168s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22169b cont 22170' <confdefs.h | sed ' 22171s/'"$ac_delim"'/"\\\ 22172"/g' >>$CONFIG_STATUS || ac_write_fail=1 22173 22174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22175 for (key in D) D_is_set[key] = 1 22176 FS = "" 22177} 22178/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22179 line = \$ 0 22180 split(line, arg, " ") 22181 if (arg[1] == "#") { 22182 defundef = arg[2] 22183 mac1 = arg[3] 22184 } else { 22185 defundef = substr(arg[1], 2) 22186 mac1 = arg[2] 22187 } 22188 split(mac1, mac2, "(") #) 22189 macro = mac2[1] 22190 prefix = substr(line, 1, index(line, defundef) - 1) 22191 if (D_is_set[macro]) { 22192 # Preserve the white space surrounding the "#". 22193 print prefix "define", macro P[macro] D[macro] 22194 next 22195 } else { 22196 # Replace #undef with comments. This is necessary, for example, 22197 # in the case of _POSIX_SOURCE, which is predefined and required 22198 # on some systems where configure will not decide to define it. 22199 if (defundef == "undef") { 22200 print "/*", prefix defundef, macro, "*/" 22201 next 22202 } 22203 } 22204} 22205{ print } 22206_ACAWK 22207_ACEOF 22208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22209 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22210fi # test -n "$CONFIG_HEADERS" 22211 22212 22213eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22214shift 22215for ac_tag 22216do 22217 case $ac_tag in 22218 :[FHLC]) ac_mode=$ac_tag; continue;; 22219 esac 22220 case $ac_mode$ac_tag in 22221 :[FHL]*:*);; 22222 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22223 :[FH]-) ac_tag=-:-;; 22224 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22225 esac 22226 ac_save_IFS=$IFS 22227 IFS=: 22228 set x $ac_tag 22229 IFS=$ac_save_IFS 22230 shift 22231 ac_file=$1 22232 shift 22233 22234 case $ac_mode in 22235 :L) ac_source=$1;; 22236 :[FH]) 22237 ac_file_inputs= 22238 for ac_f 22239 do 22240 case $ac_f in 22241 -) ac_f="$ac_tmp/stdin";; 22242 *) # Look for the file first in the build tree, then in the source tree 22243 # (if the path is not absolute). The absolute path cannot be DOS-style, 22244 # because $ac_f cannot contain `:'. 22245 test -f "$ac_f" || 22246 case $ac_f in 22247 [\\/$]*) false;; 22248 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22249 esac || 22250 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22251 esac 22252 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22253 as_fn_append ac_file_inputs " '$ac_f'" 22254 done 22255 22256 # Let's still pretend it is `configure' which instantiates (i.e., don't 22257 # use $as_me), people would be surprised to read: 22258 # /* config.h. Generated by config.status. */ 22259 configure_input='Generated from '` 22260 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22261 `' by configure.' 22262 if test x"$ac_file" != x-; then 22263 configure_input="$ac_file. $configure_input" 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22265$as_echo "$as_me: creating $ac_file" >&6;} 22266 fi 22267 # Neutralize special characters interpreted by sed in replacement strings. 22268 case $configure_input in #( 22269 *\&* | *\|* | *\\* ) 22270 ac_sed_conf_input=`$as_echo "$configure_input" | 22271 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22272 *) ac_sed_conf_input=$configure_input;; 22273 esac 22274 22275 case $ac_tag in 22276 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22278 esac 22279 ;; 22280 esac 22281 22282 ac_dir=`$as_dirname -- "$ac_file" || 22283$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22284 X"$ac_file" : 'X\(//\)[^/]' \| \ 22285 X"$ac_file" : 'X\(//\)$' \| \ 22286 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22287$as_echo X"$ac_file" | 22288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22289 s//\1/ 22290 q 22291 } 22292 /^X\(\/\/\)[^/].*/{ 22293 s//\1/ 22294 q 22295 } 22296 /^X\(\/\/\)$/{ 22297 s//\1/ 22298 q 22299 } 22300 /^X\(\/\).*/{ 22301 s//\1/ 22302 q 22303 } 22304 s/.*/./; q'` 22305 as_dir="$ac_dir"; as_fn_mkdir_p 22306 ac_builddir=. 22307 22308case "$ac_dir" in 22309.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22310*) 22311 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22312 # A ".." for each directory in $ac_dir_suffix. 22313 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22314 case $ac_top_builddir_sub in 22315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22317 esac ;; 22318esac 22319ac_abs_top_builddir=$ac_pwd 22320ac_abs_builddir=$ac_pwd$ac_dir_suffix 22321# for backward compatibility: 22322ac_top_builddir=$ac_top_build_prefix 22323 22324case $srcdir in 22325 .) # We are building in place. 22326 ac_srcdir=. 22327 ac_top_srcdir=$ac_top_builddir_sub 22328 ac_abs_top_srcdir=$ac_pwd ;; 22329 [\\/]* | ?:[\\/]* ) # Absolute name. 22330 ac_srcdir=$srcdir$ac_dir_suffix; 22331 ac_top_srcdir=$srcdir 22332 ac_abs_top_srcdir=$srcdir ;; 22333 *) # Relative name. 22334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22335 ac_top_srcdir=$ac_top_build_prefix$srcdir 22336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22337esac 22338ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22339 22340 22341 case $ac_mode in 22342 :F) 22343 # 22344 # CONFIG_FILE 22345 # 22346 22347 case $INSTALL in 22348 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22349 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22350 esac 22351 ac_MKDIR_P=$MKDIR_P 22352 case $MKDIR_P in 22353 [\\/$]* | ?:[\\/]* ) ;; 22354 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22355 esac 22356_ACEOF 22357 22358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22359# If the template does not know about datarootdir, expand it. 22360# FIXME: This hack should be removed a few years after 2.60. 22361ac_datarootdir_hack=; ac_datarootdir_seen= 22362ac_sed_dataroot=' 22363/datarootdir/ { 22364 p 22365 q 22366} 22367/@datadir@/p 22368/@docdir@/p 22369/@infodir@/p 22370/@localedir@/p 22371/@mandir@/p' 22372case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22373*datarootdir*) ac_datarootdir_seen=yes;; 22374*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22376$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22377_ACEOF 22378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22379 ac_datarootdir_hack=' 22380 s&@datadir@&$datadir&g 22381 s&@docdir@&$docdir&g 22382 s&@infodir@&$infodir&g 22383 s&@localedir@&$localedir&g 22384 s&@mandir@&$mandir&g 22385 s&\\\${datarootdir}&$datarootdir&g' ;; 22386esac 22387_ACEOF 22388 22389# Neutralize VPATH when `$srcdir' = `.'. 22390# Shell code in configure.ac might set extrasub. 22391# FIXME: do we really want to maintain this feature? 22392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22393ac_sed_extra="$ac_vpsub 22394$extrasub 22395_ACEOF 22396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22397:t 22398/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22399s|@configure_input@|$ac_sed_conf_input|;t t 22400s&@top_builddir@&$ac_top_builddir_sub&;t t 22401s&@top_build_prefix@&$ac_top_build_prefix&;t t 22402s&@srcdir@&$ac_srcdir&;t t 22403s&@abs_srcdir@&$ac_abs_srcdir&;t t 22404s&@top_srcdir@&$ac_top_srcdir&;t t 22405s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22406s&@builddir@&$ac_builddir&;t t 22407s&@abs_builddir@&$ac_abs_builddir&;t t 22408s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22409s&@INSTALL@&$ac_INSTALL&;t t 22410s&@MKDIR_P@&$ac_MKDIR_P&;t t 22411$ac_datarootdir_hack 22412" 22413eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22414 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22415 22416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22417 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22419 "$ac_tmp/out"`; test -z "$ac_out"; } && 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22421which seems to be undefined. Please make sure it is defined" >&5 22422$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22423which seems to be undefined. Please make sure it is defined" >&2;} 22424 22425 rm -f "$ac_tmp/stdin" 22426 case $ac_file in 22427 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22428 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22429 esac \ 22430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22431 ;; 22432 :H) 22433 # 22434 # CONFIG_HEADER 22435 # 22436 if test x"$ac_file" != x-; then 22437 { 22438 $as_echo "/* $configure_input */" \ 22439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22440 } >"$ac_tmp/config.h" \ 22441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22442 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22444$as_echo "$as_me: $ac_file is unchanged" >&6;} 22445 else 22446 rm -f "$ac_file" 22447 mv "$ac_tmp/config.h" "$ac_file" \ 22448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22449 fi 22450 else 22451 $as_echo "/* $configure_input */" \ 22452 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22453 || as_fn_error $? "could not create -" "$LINENO" 5 22454 fi 22455# Compute "$ac_file"'s index in $config_headers. 22456_am_arg="$ac_file" 22457_am_stamp_count=1 22458for _am_header in $config_headers :; do 22459 case $_am_header in 22460 $_am_arg | $_am_arg:* ) 22461 break ;; 22462 * ) 22463 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22464 esac 22465done 22466echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22467$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22468 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22469 X"$_am_arg" : 'X\(//\)$' \| \ 22470 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22471$as_echo X"$_am_arg" | 22472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22473 s//\1/ 22474 q 22475 } 22476 /^X\(\/\/\)[^/].*/{ 22477 s//\1/ 22478 q 22479 } 22480 /^X\(\/\/\)$/{ 22481 s//\1/ 22482 q 22483 } 22484 /^X\(\/\).*/{ 22485 s//\1/ 22486 q 22487 } 22488 s/.*/./; q'`/stamp-h$_am_stamp_count 22489 ;; 22490 22491 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22492$as_echo "$as_me: executing $ac_file commands" >&6;} 22493 ;; 22494 esac 22495 22496 22497 case $ac_file$ac_mode in 22498 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22499 # Older Autoconf quotes --file arguments for eval, but not when files 22500 # are listed without --file. Let's play safe and only enable the eval 22501 # if we detect the quoting. 22502 # TODO: see whether this extra hack can be removed once we start 22503 # requiring Autoconf 2.70 or later. 22504 case $CONFIG_FILES in #( 22505 *\'*) : 22506 eval set x "$CONFIG_FILES" ;; #( 22507 *) : 22508 set x $CONFIG_FILES ;; #( 22509 *) : 22510 ;; 22511esac 22512 shift 22513 # Used to flag and report bootstrapping failures. 22514 am_rc=0 22515 for am_mf 22516 do 22517 # Strip MF so we end up with the name of the file. 22518 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22519 # Check whether this is an Automake generated Makefile which includes 22520 # dependency-tracking related rules and includes. 22521 # Grep'ing the whole file directly is not great: AIX grep has a line 22522 # limit of 2048, but all sed's we know have understand at least 4000. 22523 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22524 || continue 22525 am_dirpart=`$as_dirname -- "$am_mf" || 22526$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22527 X"$am_mf" : 'X\(//\)[^/]' \| \ 22528 X"$am_mf" : 'X\(//\)$' \| \ 22529 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22530$as_echo X"$am_mf" | 22531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22532 s//\1/ 22533 q 22534 } 22535 /^X\(\/\/\)[^/].*/{ 22536 s//\1/ 22537 q 22538 } 22539 /^X\(\/\/\)$/{ 22540 s//\1/ 22541 q 22542 } 22543 /^X\(\/\).*/{ 22544 s//\1/ 22545 q 22546 } 22547 s/.*/./; q'` 22548 am_filepart=`$as_basename -- "$am_mf" || 22549$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22550 X"$am_mf" : 'X\(//\)$' \| \ 22551 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22552$as_echo X/"$am_mf" | 22553 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22554 s//\1/ 22555 q 22556 } 22557 /^X\/\(\/\/\)$/{ 22558 s//\1/ 22559 q 22560 } 22561 /^X\/\(\/\).*/{ 22562 s//\1/ 22563 q 22564 } 22565 s/.*/./; q'` 22566 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22567 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22568 | $MAKE -f - am--depfiles" >&5 22569 (cd "$am_dirpart" \ 22570 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22571 | $MAKE -f - am--depfiles) >&5 2>&5 22572 ac_status=$? 22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22574 (exit $ac_status); } || am_rc=$? 22575 done 22576 if test $am_rc -ne 0; then 22577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22579as_fn_error $? "Something went wrong bootstrapping makefile fragments 22580 for automatic dependency tracking. Try re-running configure with the 22581 '--disable-dependency-tracking' option to at least be able to build 22582 the package (albeit without support for automatic dependency tracking). 22583See \`config.log' for more details" "$LINENO" 5; } 22584 fi 22585 { am_dirpart=; unset am_dirpart;} 22586 { am_filepart=; unset am_filepart;} 22587 { am_mf=; unset am_mf;} 22588 { am_rc=; unset am_rc;} 22589 rm -f conftest-deps.mk 22590} 22591 ;; 22592 "libtool":C) 22593 22594 # See if we are running on zsh, and set the options that allow our 22595 # commands through without removal of \ escapes. 22596 if test -n "${ZSH_VERSION+set}"; then 22597 setopt NO_GLOB_SUBST 22598 fi 22599 22600 cfgfile=${ofile}T 22601 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22602 $RM "$cfgfile" 22603 22604 cat <<_LT_EOF >> "$cfgfile" 22605#! $SHELL 22606# Generated automatically by $as_me ($PACKAGE) $VERSION 22607# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22608 22609# Provide generalized library-building support services. 22610# Written by Gordon Matzigkeit, 1996 22611 22612# Copyright (C) 2014 Free Software Foundation, Inc. 22613# This is free software; see the source for copying conditions. There is NO 22614# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22615 22616# GNU Libtool is free software; you can redistribute it and/or modify 22617# it under the terms of the GNU General Public License as published by 22618# the Free Software Foundation; either version 2 of of the License, or 22619# (at your option) any later version. 22620# 22621# As a special exception to the GNU General Public License, if you 22622# distribute this file as part of a program or library that is built 22623# using GNU Libtool, you may include this file under the same 22624# distribution terms that you use for the rest of that program. 22625# 22626# GNU Libtool is distributed in the hope that it will be useful, but 22627# WITHOUT ANY WARRANTY; without even the implied warranty of 22628# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22629# GNU General Public License for more details. 22630# 22631# You should have received a copy of the GNU General Public License 22632# along with this program. If not, see <http://www.gnu.org/licenses/>. 22633 22634 22635# The names of the tagged configurations supported by this script. 22636available_tags='' 22637 22638# Configured defaults for sys_lib_dlsearch_path munging. 22639: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22640 22641# ### BEGIN LIBTOOL CONFIG 22642 22643# Which release of libtool.m4 was used? 22644macro_version=$macro_version 22645macro_revision=$macro_revision 22646 22647# Whether or not to build shared libraries. 22648build_libtool_libs=$enable_shared 22649 22650# Whether or not to build static libraries. 22651build_old_libs=$enable_static 22652 22653# What type of objects to build. 22654pic_mode=$pic_mode 22655 22656# Whether or not to optimize for fast installation. 22657fast_install=$enable_fast_install 22658 22659# Shared archive member basename,for filename based shared library versioning on AIX. 22660shared_archive_member_spec=$shared_archive_member_spec 22661 22662# Shell to use when invoking shell scripts. 22663SHELL=$lt_SHELL 22664 22665# An echo program that protects backslashes. 22666ECHO=$lt_ECHO 22667 22668# The PATH separator for the build system. 22669PATH_SEPARATOR=$lt_PATH_SEPARATOR 22670 22671# The host system. 22672host_alias=$host_alias 22673host=$host 22674host_os=$host_os 22675 22676# The build system. 22677build_alias=$build_alias 22678build=$build 22679build_os=$build_os 22680 22681# A sed program that does not truncate output. 22682SED=$lt_SED 22683 22684# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22685Xsed="\$SED -e 1s/^X//" 22686 22687# A grep program that handles long lines. 22688GREP=$lt_GREP 22689 22690# An ERE matcher. 22691EGREP=$lt_EGREP 22692 22693# A literal string matcher. 22694FGREP=$lt_FGREP 22695 22696# A BSD- or MS-compatible name lister. 22697NM=$lt_NM 22698 22699# Whether we need soft or hard links. 22700LN_S=$lt_LN_S 22701 22702# What is the maximum length of a command? 22703max_cmd_len=$max_cmd_len 22704 22705# Object file suffix (normally "o"). 22706objext=$ac_objext 22707 22708# Executable file suffix (normally ""). 22709exeext=$exeext 22710 22711# whether the shell understands "unset". 22712lt_unset=$lt_unset 22713 22714# turn spaces into newlines. 22715SP2NL=$lt_lt_SP2NL 22716 22717# turn newlines into spaces. 22718NL2SP=$lt_lt_NL2SP 22719 22720# convert \$build file names to \$host format. 22721to_host_file_cmd=$lt_cv_to_host_file_cmd 22722 22723# convert \$build files to toolchain format. 22724to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22725 22726# An object symbol dumper. 22727OBJDUMP=$lt_OBJDUMP 22728 22729# Method to check whether dependent libraries are shared objects. 22730deplibs_check_method=$lt_deplibs_check_method 22731 22732# Command to use when deplibs_check_method = "file_magic". 22733file_magic_cmd=$lt_file_magic_cmd 22734 22735# How to find potential files when deplibs_check_method = "file_magic". 22736file_magic_glob=$lt_file_magic_glob 22737 22738# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22739want_nocaseglob=$lt_want_nocaseglob 22740 22741# DLL creation program. 22742DLLTOOL=$lt_DLLTOOL 22743 22744# Command to associate shared and link libraries. 22745sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22746 22747# The archiver. 22748AR=$lt_AR 22749 22750# Flags to create an archive. 22751AR_FLAGS=$lt_AR_FLAGS 22752 22753# How to feed a file listing to the archiver. 22754archiver_list_spec=$lt_archiver_list_spec 22755 22756# A symbol stripping program. 22757STRIP=$lt_STRIP 22758 22759# Commands used to install an old-style archive. 22760RANLIB=$lt_RANLIB 22761old_postinstall_cmds=$lt_old_postinstall_cmds 22762old_postuninstall_cmds=$lt_old_postuninstall_cmds 22763 22764# Whether to use a lock for old archive extraction. 22765lock_old_archive_extraction=$lock_old_archive_extraction 22766 22767# A C compiler. 22768LTCC=$lt_CC 22769 22770# LTCC compiler flags. 22771LTCFLAGS=$lt_CFLAGS 22772 22773# Take the output of nm and produce a listing of raw symbols and C names. 22774global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22775 22776# Transform the output of nm in a proper C declaration. 22777global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22778 22779# Transform the output of nm into a list of symbols to manually relocate. 22780global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22781 22782# Transform the output of nm in a C name address pair. 22783global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22784 22785# Transform the output of nm in a C name address pair when lib prefix is needed. 22786global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22787 22788# The name lister interface. 22789nm_interface=$lt_lt_cv_nm_interface 22790 22791# Specify filename containing input files for \$NM. 22792nm_file_list_spec=$lt_nm_file_list_spec 22793 22794# The root where to search for dependent libraries,and where our libraries should be installed. 22795lt_sysroot=$lt_sysroot 22796 22797# Command to truncate a binary pipe. 22798lt_truncate_bin=$lt_lt_cv_truncate_bin 22799 22800# The name of the directory that contains temporary libtool files. 22801objdir=$objdir 22802 22803# Used to examine libraries when file_magic_cmd begins with "file". 22804MAGIC_CMD=$MAGIC_CMD 22805 22806# Must we lock files when doing compilation? 22807need_locks=$lt_need_locks 22808 22809# Manifest tool. 22810MANIFEST_TOOL=$lt_MANIFEST_TOOL 22811 22812# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22813DSYMUTIL=$lt_DSYMUTIL 22814 22815# Tool to change global to local symbols on Mac OS X. 22816NMEDIT=$lt_NMEDIT 22817 22818# Tool to manipulate fat objects and archives on Mac OS X. 22819LIPO=$lt_LIPO 22820 22821# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22822OTOOL=$lt_OTOOL 22823 22824# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22825OTOOL64=$lt_OTOOL64 22826 22827# Old archive suffix (normally "a"). 22828libext=$libext 22829 22830# Shared library suffix (normally ".so"). 22831shrext_cmds=$lt_shrext_cmds 22832 22833# The commands to extract the exported symbol list from a shared archive. 22834extract_expsyms_cmds=$lt_extract_expsyms_cmds 22835 22836# Variables whose values should be saved in libtool wrapper scripts and 22837# restored at link time. 22838variables_saved_for_relink=$lt_variables_saved_for_relink 22839 22840# Do we need the "lib" prefix for modules? 22841need_lib_prefix=$need_lib_prefix 22842 22843# Do we need a version for libraries? 22844need_version=$need_version 22845 22846# Library versioning type. 22847version_type=$version_type 22848 22849# Shared library runtime path variable. 22850runpath_var=$runpath_var 22851 22852# Shared library path variable. 22853shlibpath_var=$shlibpath_var 22854 22855# Is shlibpath searched before the hard-coded library search path? 22856shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22857 22858# Format of library name prefix. 22859libname_spec=$lt_libname_spec 22860 22861# List of archive names. First name is the real one, the rest are links. 22862# The last name is the one that the linker finds with -lNAME 22863library_names_spec=$lt_library_names_spec 22864 22865# The coded name of the library, if different from the real name. 22866soname_spec=$lt_soname_spec 22867 22868# Permission mode override for installation of shared libraries. 22869install_override_mode=$lt_install_override_mode 22870 22871# Command to use after installation of a shared archive. 22872postinstall_cmds=$lt_postinstall_cmds 22873 22874# Command to use after uninstallation of a shared archive. 22875postuninstall_cmds=$lt_postuninstall_cmds 22876 22877# Commands used to finish a libtool library installation in a directory. 22878finish_cmds=$lt_finish_cmds 22879 22880# As "finish_cmds", except a single script fragment to be evaled but 22881# not shown. 22882finish_eval=$lt_finish_eval 22883 22884# Whether we should hardcode library paths into libraries. 22885hardcode_into_libs=$hardcode_into_libs 22886 22887# Compile-time system search path for libraries. 22888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22889 22890# Detected run-time system search path for libraries. 22891sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22892 22893# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22894configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22895 22896# Whether dlopen is supported. 22897dlopen_support=$enable_dlopen 22898 22899# Whether dlopen of programs is supported. 22900dlopen_self=$enable_dlopen_self 22901 22902# Whether dlopen of statically linked programs is supported. 22903dlopen_self_static=$enable_dlopen_self_static 22904 22905# Commands to strip libraries. 22906old_striplib=$lt_old_striplib 22907striplib=$lt_striplib 22908 22909 22910# The linker used to build libraries. 22911LD=$lt_LD 22912 22913# How to create reloadable object files. 22914reload_flag=$lt_reload_flag 22915reload_cmds=$lt_reload_cmds 22916 22917# Commands used to build an old-style archive. 22918old_archive_cmds=$lt_old_archive_cmds 22919 22920# A language specific compiler. 22921CC=$lt_compiler 22922 22923# Is the compiler the GNU compiler? 22924with_gcc=$GCC 22925 22926# Compiler flag to turn off builtin functions. 22927no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22928 22929# Additional compiler flags for building library objects. 22930pic_flag=$lt_lt_prog_compiler_pic 22931 22932# How to pass a linker flag through the compiler. 22933wl=$lt_lt_prog_compiler_wl 22934 22935# Compiler flag to prevent dynamic linking. 22936link_static_flag=$lt_lt_prog_compiler_static 22937 22938# Does compiler simultaneously support -c and -o options? 22939compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22940 22941# Whether or not to add -lc for building shared libraries. 22942build_libtool_need_lc=$archive_cmds_need_lc 22943 22944# Whether or not to disallow shared libs when runtime libs are static. 22945allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22946 22947# Compiler flag to allow reflexive dlopens. 22948export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22949 22950# Compiler flag to generate shared objects directly from archives. 22951whole_archive_flag_spec=$lt_whole_archive_flag_spec 22952 22953# Whether the compiler copes with passing no objects directly. 22954compiler_needs_object=$lt_compiler_needs_object 22955 22956# Create an old-style archive from a shared archive. 22957old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22958 22959# Create a temporary old-style archive to link instead of a shared archive. 22960old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22961 22962# Commands used to build a shared archive. 22963archive_cmds=$lt_archive_cmds 22964archive_expsym_cmds=$lt_archive_expsym_cmds 22965 22966# Commands used to build a loadable module if different from building 22967# a shared archive. 22968module_cmds=$lt_module_cmds 22969module_expsym_cmds=$lt_module_expsym_cmds 22970 22971# Whether we are building with GNU ld or not. 22972with_gnu_ld=$lt_with_gnu_ld 22973 22974# Flag that allows shared libraries with undefined symbols to be built. 22975allow_undefined_flag=$lt_allow_undefined_flag 22976 22977# Flag that enforces no undefined symbols. 22978no_undefined_flag=$lt_no_undefined_flag 22979 22980# Flag to hardcode \$libdir into a binary during linking. 22981# This must work even if \$libdir does not exist 22982hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22983 22984# Whether we need a single "-rpath" flag with a separated argument. 22985hardcode_libdir_separator=$lt_hardcode_libdir_separator 22986 22987# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22988# DIR into the resulting binary. 22989hardcode_direct=$hardcode_direct 22990 22991# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22992# DIR into the resulting binary and the resulting library dependency is 22993# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22994# library is relocated. 22995hardcode_direct_absolute=$hardcode_direct_absolute 22996 22997# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22998# into the resulting binary. 22999hardcode_minus_L=$hardcode_minus_L 23000 23001# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23002# into the resulting binary. 23003hardcode_shlibpath_var=$hardcode_shlibpath_var 23004 23005# Set to "yes" if building a shared library automatically hardcodes DIR 23006# into the library and all subsequent libraries and executables linked 23007# against it. 23008hardcode_automatic=$hardcode_automatic 23009 23010# Set to yes if linker adds runtime paths of dependent libraries 23011# to runtime path list. 23012inherit_rpath=$inherit_rpath 23013 23014# Whether libtool must link a program against all its dependency libraries. 23015link_all_deplibs=$link_all_deplibs 23016 23017# Set to "yes" if exported symbols are required. 23018always_export_symbols=$always_export_symbols 23019 23020# The commands to list exported symbols. 23021export_symbols_cmds=$lt_export_symbols_cmds 23022 23023# Symbols that should not be listed in the preloaded symbols. 23024exclude_expsyms=$lt_exclude_expsyms 23025 23026# Symbols that must always be exported. 23027include_expsyms=$lt_include_expsyms 23028 23029# Commands necessary for linking programs (against libraries) with templates. 23030prelink_cmds=$lt_prelink_cmds 23031 23032# Commands necessary for finishing linking programs. 23033postlink_cmds=$lt_postlink_cmds 23034 23035# Specify filename containing input files. 23036file_list_spec=$lt_file_list_spec 23037 23038# How to hardcode a shared library path into an executable. 23039hardcode_action=$hardcode_action 23040 23041# ### END LIBTOOL CONFIG 23042 23043_LT_EOF 23044 23045 cat <<'_LT_EOF' >> "$cfgfile" 23046 23047# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23048 23049# func_munge_path_list VARIABLE PATH 23050# ----------------------------------- 23051# VARIABLE is name of variable containing _space_ separated list of 23052# directories to be munged by the contents of PATH, which is string 23053# having a format: 23054# "DIR[:DIR]:" 23055# string "DIR[ DIR]" will be prepended to VARIABLE 23056# ":DIR[:DIR]" 23057# string "DIR[ DIR]" will be appended to VARIABLE 23058# "DIRP[:DIRP]::[DIRA:]DIRA" 23059# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23060# "DIRA[ DIRA]" will be appended to VARIABLE 23061# "DIR[:DIR]" 23062# VARIABLE will be replaced by "DIR[ DIR]" 23063func_munge_path_list () 23064{ 23065 case x$2 in 23066 x) 23067 ;; 23068 *:) 23069 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23070 ;; 23071 x:*) 23072 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23073 ;; 23074 *::*) 23075 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23076 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23077 ;; 23078 *) 23079 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23080 ;; 23081 esac 23082} 23083 23084 23085# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23086func_cc_basename () 23087{ 23088 for cc_temp in $*""; do 23089 case $cc_temp in 23090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23092 \-*) ;; 23093 *) break;; 23094 esac 23095 done 23096 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23097} 23098 23099 23100# ### END FUNCTIONS SHARED WITH CONFIGURE 23101 23102_LT_EOF 23103 23104 case $host_os in 23105 aix3*) 23106 cat <<\_LT_EOF >> "$cfgfile" 23107# AIX sometimes has problems with the GCC collect2 program. For some 23108# reason, if we set the COLLECT_NAMES environment variable, the problems 23109# vanish in a puff of smoke. 23110if test set != "${COLLECT_NAMES+set}"; then 23111 COLLECT_NAMES= 23112 export COLLECT_NAMES 23113fi 23114_LT_EOF 23115 ;; 23116 esac 23117 23118 23119ltmain=$ac_aux_dir/ltmain.sh 23120 23121 23122 # We use sed instead of cat because bash on DJGPP gets confused if 23123 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23124 # text mode, it properly converts lines to CR/LF. This bash problem 23125 # is reportedly fixed, but why not run on old versions too? 23126 sed '$q' "$ltmain" >> "$cfgfile" \ 23127 || (rm -f "$cfgfile"; exit 1) 23128 23129 mv -f "$cfgfile" "$ofile" || 23130 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23131 chmod +x "$ofile" 23132 23133 ;; 23134 "po-directories":C) 23135 for ac_file in $CONFIG_FILES; do 23136 # Support "outfile[:infile[:infile...]]" 23137 case "$ac_file" in 23138 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 23139 esac 23140 # PO directories have a Makefile.in generated from Makefile.in.in. 23141 case "$ac_file" in */Makefile.in) 23142 # Adjust a relative srcdir. 23143 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 23144 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 23145 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 23146 # In autoconf-2.13 it is called $ac_given_srcdir. 23147 # In autoconf-2.50 it is called $srcdir. 23148 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 23149 case "$ac_given_srcdir" in 23150 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 23151 /*) top_srcdir="$ac_given_srcdir" ;; 23152 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 23153 esac 23154 # Treat a directory as a PO directory if and only if it has a 23155 # POTFILES.in file. This allows packages to have multiple PO 23156 # directories under different names or in different locations. 23157 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 23158 rm -f "$ac_dir/POTFILES" 23159 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 23160 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 23161 POMAKEFILEDEPS="POTFILES.in" 23162 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 23163 # on $ac_dir but don't depend on user-specified configuration 23164 # parameters. 23165 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 23166 # The LINGUAS file contains the set of available languages. 23167 if test -n "$OBSOLETE_ALL_LINGUAS"; then 23168 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 23169 fi 23170 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 23171 # Hide the ALL_LINGUAS assigment from automake < 1.5. 23172 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 23173 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 23174 else 23175 # The set of available languages was given in configure.in. 23176 # Hide the ALL_LINGUAS assigment from automake < 1.5. 23177 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 23178 fi 23179 # Compute POFILES 23180 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 23181 # Compute UPDATEPOFILES 23182 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 23183 # Compute DUMMYPOFILES 23184 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 23185 # Compute GMOFILES 23186 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 23187 case "$ac_given_srcdir" in 23188 .) srcdirpre= ;; 23189 *) srcdirpre='$(srcdir)/' ;; 23190 esac 23191 POFILES= 23192 UPDATEPOFILES= 23193 DUMMYPOFILES= 23194 GMOFILES= 23195 for lang in $ALL_LINGUAS; do 23196 POFILES="$POFILES $srcdirpre$lang.po" 23197 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 23198 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 23199 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 23200 done 23201 # CATALOGS depends on both $ac_dir and the user's LINGUAS 23202 # environment variable. 23203 INST_LINGUAS= 23204 if test -n "$ALL_LINGUAS"; then 23205 for presentlang in $ALL_LINGUAS; do 23206 useit=no 23207 if test "%UNSET%" != "$LINGUAS"; then 23208 desiredlanguages="$LINGUAS" 23209 else 23210 desiredlanguages="$ALL_LINGUAS" 23211 fi 23212 for desiredlang in $desiredlanguages; do 23213 # Use the presentlang catalog if desiredlang is 23214 # a. equal to presentlang, or 23215 # b. a variant of presentlang (because in this case, 23216 # presentlang can be used as a fallback for messages 23217 # which are not translated in the desiredlang catalog). 23218 case "$desiredlang" in 23219 "$presentlang"*) useit=yes;; 23220 esac 23221 done 23222 if test $useit = yes; then 23223 INST_LINGUAS="$INST_LINGUAS $presentlang" 23224 fi 23225 done 23226 fi 23227 CATALOGS= 23228 if test -n "$INST_LINGUAS"; then 23229 for lang in $INST_LINGUAS; do 23230 CATALOGS="$CATALOGS $lang.gmo" 23231 done 23232 fi 23233 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 23234 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 23235 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 23236 if test -f "$f"; then 23237 case "$f" in 23238 *.orig | *.bak | *~) ;; 23239 *) cat "$f" >> "$ac_dir/Makefile" ;; 23240 esac 23241 fi 23242 done 23243 fi 23244 ;; 23245 esac 23246 done ;; 23247 "src/cups/cups-genppdupdate":F) chmod +x src/cups/cups-genppdupdate ;; 23248 "src/cups/test-ppds.test":F) chmod +x src/cups/test-ppds.test ;; 23249 "src/cups/min-pagesize":F) chmod +x src/cups/min-pagesize ;; 23250 "src/testpattern/compare-image-files":F) chmod +x src/testpattern/compare-image-files ;; 23251 "src/testpattern/run-testpattern":F) chmod +x src/testpattern/run-testpattern ;; 23252 "src/testpattern/run-testpattern-1.test":F) chmod +x src/testpattern/run-testpattern-1.test ;; 23253 "src/testpattern/run-testpattern-2":F) chmod +x src/testpattern/run-testpattern-2 ;; 23254 "src/testpattern/run-testpattern-2.test":F) chmod +x src/testpattern/run-testpattern-2.test ;; 23255 "src/testpattern/compare-checksums":F) chmod +x src/testpattern/compare-checksums ;; 23256 "src/testpattern/compress-checksums":F) chmod +x src/testpattern/compress-checksums ;; 23257 "src/cups/test-rastertogutenprint":F) chmod +x src/cups/test-rastertogutenprint ;; 23258 "src/cups/test-rastertogutenprint.test":F) chmod +x src/cups/test-rastertogutenprint.test ;; 23259 "test/compress-5level.sh":F) chmod +x test/compress-5level.sh ;; 23260 "test/compress-6level.sh":F) chmod +x test/compress-6level.sh ;; 23261 "test/uncompress-5level.sh":F) chmod +x test/uncompress-5level.sh ;; 23262 "test/uncompress-6level.sh":F) chmod +x test/uncompress-6level.sh ;; 23263 "test/parse-bjc":F) chmod +x test/parse-bjc ;; 23264 "test/parse-escp2":F) chmod +x test/parse-escp2 ;; 23265 "test/run-testdither.test":F) chmod +x test/run-testdither.test ;; 23266 "test/run-weavetest.test":F) chmod +x test/run-weavetest.test ;; 23267 "test/test-curve.test":F) chmod +x test/test-curve.test ;; 23268 "scripts/mkgitlog":F) chmod +x scripts/mkgitlog ;; 23269 "scripts/gversion":F) chmod +x scripts/gversion ;; 23270 "scripts/test-gversion":F) chmod +x scripts/test-gversion ;; 23271 "scripts/wzpaq":F) chmod +x scripts/wzpaq ;; 23272 "default":C) 23273echo 23274 ;; 23275 23276 esac 23277done # for ac_tag 23278 23279 23280as_fn_exit 0 23281_ACEOF 23282ac_clean_files=$ac_clean_files_save 23283 23284test $ac_write_fail = 0 || 23285 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23286 23287 23288# configure is writing to config.log, and then calls config.status. 23289# config.status does its own redirection, appending to config.log. 23290# Unfortunately, on DOS this fails, as config.log is still kept open 23291# by configure, so config.status won't be able to write to it; its 23292# output is simply discarded. So we exec the FD to /dev/null, 23293# effectively closing config.log, so it can be properly (re)opened and 23294# appended to by config.status. When coming back to configure, we 23295# need to make the FD available again. 23296if test "$no_create" != yes; then 23297 ac_cs_success=: 23298 ac_config_status_args= 23299 test "$silent" = yes && 23300 ac_config_status_args="$ac_config_status_args --quiet" 23301 exec 5>/dev/null 23302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23303 exec 5>>config.log 23304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23305 # would make configure fail if this is the last instruction. 23306 $ac_cs_success || as_fn_exit 1 23307fi 23308if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23310$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23311fi 23312 23313 23314warnings_emitted=0 23315echo 23316echo "Gutenprint Configuration Summary:" |tee config.summary 23317echo "---------- ------------- --------" |tee -a config.summary 23318echo |tee -a config.summary 23319echo "If you have any problems, please report the information below to" |tee -a config.summary 23320echo "$PACKAGE_BUGREPORT" |tee -a config.summary 23321echo |tee -a config.summary 23322echo "================================================================" |tee -a config.summary 23323echo " Release: $PACKAGE_STRING generated on $RELEASE_DATE" |tee -a config.summary 23324echo " Generated at `date` by $LOGNAME" |tee -a config.summary 23325echo |tee -a config.summary 23326echo " Features:" |tee -a config.summary 23327if test "$BUILD_CUPS" != "no" ; then 23328 echo " Build CUPS: $BUILD_CUPS, installing in $cups_prefix" |tee -a config.summary 23329 echo " Build CUPS 1.2 enhancements: $BUILD_CUPS_1_2" |tee -a config.summary 23330 echo " Build CUPS PPD files: $BUILD_CUPS_PPDS" |tee -a config.summary 23331 if test "$BUILD_CUPS_PPDS" != "no" ; then 23332 echo " Build translated CUPS PPD files: $BUILD_TRANSLATED_CUPS_PPDS" |tee -a config.summary 23333 echo " Build global CUPS PPD files: $BUILD_GLOBALIZED_CUPS_PPDS" |tee -a config.summary 23334 echo " Build simplified CUPS PPD files: $BUILD_SIMPLIFIED_CUPS_PPDS" |tee -a config.summary 23335 echo " Install CUPS PPDs at top level: $CUPS_PPDS_AT_TOP_LEVEL" |tee -a config.summary 23336 fi 23337 if test "$BUILD_CUPS_PPDS" != "no" -o "$BUILD_CUPS_1_2" != "no" ; then 23338 echo " Generate PS level 3 CUPS PPD files: $USE_LEVEL3_PS" |tee -a config.summary 23339 fi 23340 echo " Build genppd statically: $STATIC_GENPPD" |tee -a config.summary 23341 23342 if test "$STATIC_GENPPD" = "no" ; then 23343 echo " ***WARNING: Use of --disable-static-genppd or --disable-static" |tee -a config.summary 23344 echo " when building CUPS is very dangerous. The build may" |tee -a config.summary 23345 echo " fail when building the PPD files, or may *SILENTLY*" |tee -a config.summary 23346 echo " build incorrect PPD files or cause other problems." |tee -a config.summary 23347 echo " Please review the README and release notes carefully!" |tee -a config.summary 23348 warnings_emitted=1 23349 fi 23350 echo " Build CUPS dyesub USB backend: $BUILD_LIBUSB_BACKENDS" |tee -a config.summary 23351else 23352 echo " Build CUPS: $BUILD_CUPS" |tee -a config.summary 23353fi 23354echo " Build EPSON inkjet utility: $BUILD_ESCPUTIL" |tee -a config.summary 23355if test "$BUILD_GIMP2" != "no" ; then 23356 echo " Build enhanced Print plugin for GIMP: yes" |tee -a config.summary 23357 if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then 23358 echo " GIMP plugin will be named: gutenprint" |tee -a config.summary 23359 else 23360 echo " GIMP plugin will be named: print" |tee -a config.summary 23361 fi 23362 echo " Install plugin(s) in home directory: $USER_INSTALL" |tee -a config.summary 23363else 23364 echo " Build enhanced Print plugin for GIMP: no" |tee -a config.summary 23365fi 23366echo " Build test programs: $BUILD_TEST" |tee -a config.summary 23367echo " Build testpattern generator: $BUILD_TESTPATTERN" |tee -a config.summary 23368echo |tee -a config.summary 23369echo " Installation summary:" |tee -a config.summary 23370echo " Installation prefix: $prefix" |tee -a config.summary 23371# Configure intentionally does not expand exec_prefix to allow make 23372# to do so. 23373echo " Exec prefix: `eval eval echo $exec_prefix` ($exec_prefix)" |tee -a config.summary 23374echo " Data directory: $PACKAGE_DATA_DIR" |tee -a config.summary 23375echo " Library directory: `eval eval echo $PACKAGE_LIB_DIR` ($PACKAGE_LIB_DIR)" |tee -a config.summary 23376echo " Executable directory: `eval eval echo $PACKAGE_BIN_DIR` ($PACKAGE_BIN_DIR)" |tee -a config.summary 23377echo " XML data directory: $PKGXMLDATADIR" |tee -a config.summary 23378echo " Module directory: `eval eval echo $PKGMODULEDIR` ($PKGMODULEDIR)" |tee -a config.summary 23379echo " Install sample images: $INSTALL_SAMPLES" |tee -a config.summary 23380echo |tee -a config.summary 23381echo " General configuration:" |tee -a config.summary 23382echo " Configure arguments: $configure_args" |tee -a config.summary 23383echo " Compiler: $CC" |tee -a config.summary 23384echo " Compiler Version: `"$CC" -v 2>&1 |grep ' version '`" |tee -a config.summary 23385if test x$ac_compiler_gnu = "xyes"; then 23386 echo " Compiler options: $CFLAGS $GNUCFLAGS" |tee -a config.summary 23387else 23388 echo " Compiler options: $CFLAGS" |tee -a config.summary 23389fi 23390echo " Build static libraries: $enable_static" |tee -a config.summary 23391echo " Build shared libraries: $enable_shared" |tee -a config.summary 23392echo " Maintainer mode: $USE_MAINTAINER_MODE" |tee -a config.summary 23393echo " Use i18n: $USE_NLS" |tee -a config.summary 23394echo " Generate profiling information: $ENABLE_PROFILE" |tee -a config.summary 23395echo " Generate debugging symbols: $ENABLE_DEBUG" |tee -a config.summary 23396echo " Use modules: $WITH_MODULES" |tee -a config.summary 23397if test -n "$EXTRA_LIBREADLINE_DEPS" ; then 23398 echo " Use readline libraries: $USE_READLINE, extra arguments: $EXTRA_LIBREADLINE_DEPS" |tee -a config.summary 23399else 23400 echo " Use readline libraries: $USE_READLINE" |tee -a config.summary 23401fi 23402echo " uname -a output: `uname -a`" |tee -a config.summary 23403echo "================================================================" |tee -a config.summary 23404if test $warnings_emitted -ne 0 ; then 23405 echo 23406 echo '*** WARNING: Please review the warnings shown above carefully!' 23407fi 23408echo |tee -a config.summary 23409if test "$BUILD_GIMP2" = "no" -o "$BUILD_CUPS" = "no" ; then 23410 echo "VERY IMPORTANT:" |tee -a config.summary 23411 echo "If you expect to build the CUPS driver or the enhanced Print plugin for" |tee -a config.summary 23412 echo "GIMP, but the output above indicates that that component will not be built," |tee -a config.summary 23413 echo "it almost certainly indicates that development packages required to build" |tee -a config.summary 23414 echo "that component are not installed on your system. Please read the README" |tee -a config.summary 23415 echo "file and install the necessary development packages before reporting any" |tee -a config.summary 23416 echo "error to the development team. Depending upon your operating system version," |tee -a config.summary 23417 echo "you may have to install packages from the installation medium or over" |tee -a config.summary 23418 echo "the network." |tee -a config.summary 23419 echo |tee -a config.summary 23420fi 23421echo "Finished configuring. Please review CAREFULLY the configuration summary above." 23422echo "This summary is also stored in config.summary" 23423echo "Type 'make clean' followed by 'make' to build the package" 23424echo "then 'make install' to install it." 23425