1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for poppler 0.16.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=poppler>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=poppler 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='poppler' 593PACKAGE_TARNAME='poppler' 594PACKAGE_VERSION='0.16.3' 595PACKAGE_STRING='poppler 0.16.3' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=poppler' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639POPPLER_VERSION 640POPPLER_MICRO_VERSION 641POPPLER_MINOR_VERSION 642POPPLER_MAJOR_VERSION 643PC_REQUIRES_PRIVATE 644PC_REQUIRES 645USE_CMS_FALSE 646USE_CMS_TRUE 647LCMS_LIBS 648LCMS_CFLAGS 649BUILD_UTILS_FALSE 650BUILD_UTILS_TRUE 651BUILD_ABIWORD_OUTPUT_FALSE 652BUILD_ABIWORD_OUTPUT_TRUE 653ABIWORD_LIBS 654ABIWORD_CFLAGS 655BUILD_GTK_TEST_FALSE 656BUILD_GTK_TEST_TRUE 657GTK_TEST_LIBS 658GTK_TEST_CFLAGS 659BUILD_POPPLER_CPP_FALSE 660BUILD_POPPLER_CPP_TRUE 661LTLIBICONV 662LIBICONV 663BUILD_POPPLER_QT4_FALSE 664BUILD_POPPLER_QT4_TRUE 665MOCQT4 666POPPLER_QT4_CXXFLAGS 667POPPLER_QT4_TEST_LIBS 668POPPLER_QT4_TEST_CFLAGS 669POPPLER_QT4_LIBS 670POPPLER_QT4_CFLAGS 671BUILD_POPPLER_QT_FALSE 672BUILD_POPPLER_QT_TRUE 673POPPLER_QT_LIBS 674POPPLER_QT_CXXFLAGS 675libqt3_LIBS 676libqt3_CFLAGS 677POPPLER_GLIB_DISABLE_SINGLE_INCLUDES 678POPPLER_GLIB_DISABLE_DEPRECATED 679GDK_REQ 680GDK_FEATURE 681BUILD_WITH_GDK_FALSE 682BUILD_WITH_GDK_TRUE 683GDK_LIBS 684GDK_CFLAGS 685GTK_DOC_USE_REBASE_FALSE 686GTK_DOC_USE_REBASE_TRUE 687GTK_DOC_USE_LIBTOOL_FALSE 688GTK_DOC_USE_LIBTOOL_TRUE 689GTK_DOC_BUILD_PDF_FALSE 690GTK_DOC_BUILD_PDF_TRUE 691GTK_DOC_BUILD_HTML_FALSE 692GTK_DOC_BUILD_HTML_TRUE 693ENABLE_GTK_DOC_FALSE 694ENABLE_GTK_DOC_TRUE 695HTML_DIR 696GTKDOC_MKPDF 697GTKDOC_REBASE 698GTKDOC_CHECK 699GLIB_REQ 700BUILD_POPPLER_GLIB_FALSE 701BUILD_POPPLER_GLIB_TRUE 702GLIB_MKENUMS 703HAVE_INTROSPECTION_FALSE 704HAVE_INTROSPECTION_TRUE 705INTROSPECTION_MAKEFILE 706INTROSPECTION_LIBS 707INTROSPECTION_CFLAGS 708INTROSPECTION_TYPELIBDIR 709INTROSPECTION_GIRDIR 710INTROSPECTION_GENERATE 711INTROSPECTION_COMPILER 712INTROSPECTION_SCANNER 713POPPLER_GLIB_LIBS 714POPPLER_GLIB_CFLAGS 715CAIRO_REQ 716CAIRO_FEATURE 717BUILD_CAIRO_OUTPUT_FALSE 718BUILD_CAIRO_OUTPUT_TRUE 719CAIRO_LIBS 720CAIRO_CFLAGS 721CAIRO_VERSION 722BUILD_SPLASH_OUTPUT_FALSE 723BUILD_SPLASH_OUTPUT_TRUE 724BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE 725BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE 726FONTCONFIG_LIBS 727FONTCONFIG_CFLAGS 728FREETYPE_LIBS 729FREETYPE_CFLAGS 730BUILD_LIBPNG_FALSE 731BUILD_LIBPNG_TRUE 732LIBPNG_LIBS 733LIBPNG_CFLAGS 734BUILD_LIBJPEG_FALSE 735BUILD_LIBJPEG_TRUE 736LIBJPEG_LIBS 737BUILD_LIBCURL_FALSE 738BUILD_LIBCURL_TRUE 739LIBCURL_LIBS 740LIBCURL_CFLAGS 741BUILD_ZLIB_FALSE 742BUILD_ZLIB_TRUE 743ZLIB_LIBS 744BUILD_LIBOPENJPEG_FALSE 745BUILD_LIBOPENJPEG_TRUE 746LIBOPENJPEG_LIBS 747X_EXTRA_LIBS 748X_LIBS 749X_PRE_LIBS 750X_CFLAGS 751XMKMF 752POPPLER_DATADIR 753ENABLE_XPDF_HEADERS_FALSE 754ENABLE_XPDF_HEADERS_TRUE 755PTHREAD_CFLAGS 756PTHREAD_LIBS 757PTHREAD_CC 758acx_pthread_config 759auto_import_flags 760create_shared_lib 761win32_libs 762PKG_CONFIG_LIBDIR 763PKG_CONFIG_PATH 764PKG_CONFIG 765CXXCPP 766am__fastdepCXX_FALSE 767am__fastdepCXX_TRUE 768CXXDEPMODE 769ac_ct_CXX 770CXXFLAGS 771CXX 772OTOOL64 773OTOOL 774LIPO 775NMEDIT 776DSYMUTIL 777MANIFEST_TOOL 778RANLIB 779ac_ct_AR 780AR 781LN_S 782NM 783ac_ct_DUMPBIN 784DUMPBIN 785LD 786FGREP 787SED 788LIBTOOL 789OBJDUMP 790DLLTOOL 791AS 792host_os 793host_vendor 794host_cpu 795host 796build_os 797build_vendor 798build_cpu 799build 800EGREP 801GREP 802CPP 803am__fastdepCC_FALSE 804am__fastdepCC_TRUE 805CCDEPMODE 806AMDEPBACKSLASH 807AMDEP_FALSE 808AMDEP_TRUE 809am__quote 810am__include 811DEPDIR 812OBJEXT 813EXEEXT 814ac_ct_CC 815CPPFLAGS 816LDFLAGS 817CFLAGS 818CC 819AM_BACKSLASH 820AM_DEFAULT_VERBOSITY 821am__untar 822am__tar 823AMTAR 824am__leading_dot 825SET_MAKE 826AWK 827mkdir_p 828MKDIR_P 829INSTALL_STRIP_PROGRAM 830STRIP 831install_sh 832MAKEINFO 833AUTOHEADER 834AUTOMAKE 835AUTOCONF 836ACLOCAL 837VERSION 838PACKAGE 839CYGPATH_W 840am__isrc 841INSTALL_DATA 842INSTALL_SCRIPT 843INSTALL_PROGRAM 844target_alias 845host_alias 846build_alias 847LIBS 848ECHO_T 849ECHO_N 850ECHO_C 851DEFS 852mandir 853localedir 854libdir 855psdir 856pdfdir 857dvidir 858htmldir 859infodir 860docdir 861oldincludedir 862includedir 863localstatedir 864sharedstatedir 865sysconfdir 866datadir 867datarootdir 868libexecdir 869sbindir 870bindir 871program_transform_name 872prefix 873exec_prefix 874PACKAGE_URL 875PACKAGE_BUGREPORT 876PACKAGE_STRING 877PACKAGE_VERSION 878PACKAGE_TARNAME 879PACKAGE_NAME 880PATH_SEPARATOR 881SHELL' 882ac_subst_files='' 883ac_user_opts=' 884enable_option_checking 885enable_silent_rules 886enable_dependency_tracking 887enable_shared 888enable_static 889with_pic 890enable_fast_install 891with_gnu_ld 892with_sysroot 893enable_libtool_lock 894enable_xpdf_headers 895enable_single_precision 896enable_fixedpoint 897enable_relocatable 898with_x 899enable_libopenjpeg 900enable_largefile 901enable_zlib 902enable_libcurl 903enable_libjpeg 904enable_libpng 905with_font_configuration 906enable_splash_output 907enable_cairo_output 908enable_poppler_glib 909enable_introspection 910with_html_dir 911enable_gtk_doc 912enable_gtk_doc_html 913enable_gtk_doc_pdf 914enable_gdk 915enable_poppler_qt 916enable_poppler_qt4 917enable_poppler_cpp 918with_libiconv_prefix 919enable_gtk_test 920enable_abiword_output 921enable_utils 922enable_compile_warnings 923enable_cms 924' 925 ac_precious_vars='build_alias 926host_alias 927target_alias 928CC 929CFLAGS 930LDFLAGS 931LIBS 932CPPFLAGS 933CPP 934CXX 935CXXFLAGS 936CCC 937CXXCPP 938PKG_CONFIG 939PKG_CONFIG_PATH 940PKG_CONFIG_LIBDIR 941XMKMF 942LIBCURL_CFLAGS 943LIBCURL_LIBS 944LIBPNG_CFLAGS 945LIBPNG_LIBS 946FONTCONFIG_CFLAGS 947FONTCONFIG_LIBS 948CAIRO_CFLAGS 949CAIRO_LIBS 950POPPLER_GLIB_CFLAGS 951POPPLER_GLIB_LIBS 952GDK_CFLAGS 953GDK_LIBS 954libqt3_CFLAGS 955libqt3_LIBS 956POPPLER_QT4_CFLAGS 957POPPLER_QT4_LIBS 958POPPLER_QT4_TEST_CFLAGS 959POPPLER_QT4_TEST_LIBS 960GTK_TEST_CFLAGS 961GTK_TEST_LIBS 962ABIWORD_CFLAGS 963ABIWORD_LIBS 964LCMS_CFLAGS 965LCMS_LIBS' 966 967 968# Initialize some variables set by options. 969ac_init_help= 970ac_init_version=false 971ac_unrecognized_opts= 972ac_unrecognized_sep= 973# The variables have the same names as the options, with 974# dashes changed to underlines. 975cache_file=/dev/null 976exec_prefix=NONE 977no_create= 978no_recursion= 979prefix=NONE 980program_prefix=NONE 981program_suffix=NONE 982program_transform_name=s,x,x, 983silent= 984site= 985srcdir= 986verbose= 987x_includes=NONE 988x_libraries=NONE 989 990# Installation directory options. 991# These are left unexpanded so users can "make install exec_prefix=/foo" 992# and all the variables that are supposed to be based on exec_prefix 993# by default will actually change. 994# Use braces instead of parens because sh, perl, etc. also accept them. 995# (The list follows the same order as the GNU Coding Standards.) 996bindir='${exec_prefix}/bin' 997sbindir='${exec_prefix}/sbin' 998libexecdir='${exec_prefix}/libexec' 999datarootdir='${prefix}/share' 1000datadir='${datarootdir}' 1001sysconfdir='${prefix}/etc' 1002sharedstatedir='${prefix}/com' 1003localstatedir='${prefix}/var' 1004includedir='${prefix}/include' 1005oldincludedir='/usr/include' 1006docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1007infodir='${datarootdir}/info' 1008htmldir='${docdir}' 1009dvidir='${docdir}' 1010pdfdir='${docdir}' 1011psdir='${docdir}' 1012libdir='${exec_prefix}/lib' 1013localedir='${datarootdir}/locale' 1014mandir='${datarootdir}/man' 1015 1016ac_prev= 1017ac_dashdash= 1018for ac_option 1019do 1020 # If the previous option needs an argument, assign it. 1021 if test -n "$ac_prev"; then 1022 eval $ac_prev=\$ac_option 1023 ac_prev= 1024 continue 1025 fi 1026 1027 case $ac_option in 1028 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1029 *=) ac_optarg= ;; 1030 *) ac_optarg=yes ;; 1031 esac 1032 1033 # Accept the important Cygnus configure options, so we can diagnose typos. 1034 1035 case $ac_dashdash$ac_option in 1036 --) 1037 ac_dashdash=yes ;; 1038 1039 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1040 ac_prev=bindir ;; 1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1042 bindir=$ac_optarg ;; 1043 1044 -build | --build | --buil | --bui | --bu) 1045 ac_prev=build_alias ;; 1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1047 build_alias=$ac_optarg ;; 1048 1049 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1051 ac_prev=cache_file ;; 1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1054 cache_file=$ac_optarg ;; 1055 1056 --config-cache | -C) 1057 cache_file=config.cache ;; 1058 1059 -datadir | --datadir | --datadi | --datad) 1060 ac_prev=datadir ;; 1061 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1062 datadir=$ac_optarg ;; 1063 1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1065 | --dataroo | --dataro | --datar) 1066 ac_prev=datarootdir ;; 1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1069 datarootdir=$ac_optarg ;; 1070 1071 -disable-* | --disable-*) 1072 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1073 # Reject names that are not valid shell variable names. 1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1075 as_fn_error $? "invalid feature name: $ac_useropt" 1076 ac_useropt_orig=$ac_useropt 1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1078 case $ac_user_opts in 1079 *" 1080"enable_$ac_useropt" 1081"*) ;; 1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1083 ac_unrecognized_sep=', ';; 1084 esac 1085 eval enable_$ac_useropt=no ;; 1086 1087 -docdir | --docdir | --docdi | --doc | --do) 1088 ac_prev=docdir ;; 1089 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1090 docdir=$ac_optarg ;; 1091 1092 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1093 ac_prev=dvidir ;; 1094 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1095 dvidir=$ac_optarg ;; 1096 1097 -enable-* | --enable-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid feature name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"enable_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval enable_$ac_useropt=\$ac_optarg ;; 1112 1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1115 | --exec | --exe | --ex) 1116 ac_prev=exec_prefix ;; 1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1119 | --exec=* | --exe=* | --ex=*) 1120 exec_prefix=$ac_optarg ;; 1121 1122 -gas | --gas | --ga | --g) 1123 # Obsolete; use --with-gas. 1124 with_gas=yes ;; 1125 1126 -help | --help | --hel | --he | -h) 1127 ac_init_help=long ;; 1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1129 ac_init_help=recursive ;; 1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1131 ac_init_help=short ;; 1132 1133 -host | --host | --hos | --ho) 1134 ac_prev=host_alias ;; 1135 -host=* | --host=* | --hos=* | --ho=*) 1136 host_alias=$ac_optarg ;; 1137 1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1139 ac_prev=htmldir ;; 1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1141 | --ht=*) 1142 htmldir=$ac_optarg ;; 1143 1144 -includedir | --includedir | --includedi | --included | --include \ 1145 | --includ | --inclu | --incl | --inc) 1146 ac_prev=includedir ;; 1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1148 | --includ=* | --inclu=* | --incl=* | --inc=*) 1149 includedir=$ac_optarg ;; 1150 1151 -infodir | --infodir | --infodi | --infod | --info | --inf) 1152 ac_prev=infodir ;; 1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1154 infodir=$ac_optarg ;; 1155 1156 -libdir | --libdir | --libdi | --libd) 1157 ac_prev=libdir ;; 1158 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1159 libdir=$ac_optarg ;; 1160 1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1162 | --libexe | --libex | --libe) 1163 ac_prev=libexecdir ;; 1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1165 | --libexe=* | --libex=* | --libe=*) 1166 libexecdir=$ac_optarg ;; 1167 1168 -localedir | --localedir | --localedi | --localed | --locale) 1169 ac_prev=localedir ;; 1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1171 localedir=$ac_optarg ;; 1172 1173 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1174 | --localstate | --localstat | --localsta | --localst | --locals) 1175 ac_prev=localstatedir ;; 1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1178 localstatedir=$ac_optarg ;; 1179 1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1181 ac_prev=mandir ;; 1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1183 mandir=$ac_optarg ;; 1184 1185 -nfp | --nfp | --nf) 1186 # Obsolete; use --without-fp. 1187 with_fp=no ;; 1188 1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1190 | --no-cr | --no-c | -n) 1191 no_create=yes ;; 1192 1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1195 no_recursion=yes ;; 1196 1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1199 | --oldin | --oldi | --old | --ol | --o) 1200 ac_prev=oldincludedir ;; 1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1204 oldincludedir=$ac_optarg ;; 1205 1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1207 ac_prev=prefix ;; 1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1209 prefix=$ac_optarg ;; 1210 1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1212 | --program-pre | --program-pr | --program-p) 1213 ac_prev=program_prefix ;; 1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1216 program_prefix=$ac_optarg ;; 1217 1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1219 | --program-suf | --program-su | --program-s) 1220 ac_prev=program_suffix ;; 1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1223 program_suffix=$ac_optarg ;; 1224 1225 -program-transform-name | --program-transform-name \ 1226 | --program-transform-nam | --program-transform-na \ 1227 | --program-transform-n | --program-transform- \ 1228 | --program-transform | --program-transfor \ 1229 | --program-transfo | --program-transf \ 1230 | --program-trans | --program-tran \ 1231 | --progr-tra | --program-tr | --program-t) 1232 ac_prev=program_transform_name ;; 1233 -program-transform-name=* | --program-transform-name=* \ 1234 | --program-transform-nam=* | --program-transform-na=* \ 1235 | --program-transform-n=* | --program-transform-=* \ 1236 | --program-transform=* | --program-transfor=* \ 1237 | --program-transfo=* | --program-transf=* \ 1238 | --program-trans=* | --program-tran=* \ 1239 | --progr-tra=* | --program-tr=* | --program-t=*) 1240 program_transform_name=$ac_optarg ;; 1241 1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1243 ac_prev=pdfdir ;; 1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1245 pdfdir=$ac_optarg ;; 1246 1247 -psdir | --psdir | --psdi | --psd | --ps) 1248 ac_prev=psdir ;; 1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1250 psdir=$ac_optarg ;; 1251 1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1253 | -silent | --silent | --silen | --sile | --sil) 1254 silent=yes ;; 1255 1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1257 ac_prev=sbindir ;; 1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1259 | --sbi=* | --sb=*) 1260 sbindir=$ac_optarg ;; 1261 1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1264 | --sharedst | --shareds | --shared | --share | --shar \ 1265 | --sha | --sh) 1266 ac_prev=sharedstatedir ;; 1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1270 | --sha=* | --sh=*) 1271 sharedstatedir=$ac_optarg ;; 1272 1273 -site | --site | --sit) 1274 ac_prev=site ;; 1275 -site=* | --site=* | --sit=*) 1276 site=$ac_optarg ;; 1277 1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1279 ac_prev=srcdir ;; 1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1281 srcdir=$ac_optarg ;; 1282 1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1284 | --syscon | --sysco | --sysc | --sys | --sy) 1285 ac_prev=sysconfdir ;; 1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1288 sysconfdir=$ac_optarg ;; 1289 1290 -target | --target | --targe | --targ | --tar | --ta | --t) 1291 ac_prev=target_alias ;; 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1293 target_alias=$ac_optarg ;; 1294 1295 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1296 verbose=yes ;; 1297 1298 -version | --version | --versio | --versi | --vers | -V) 1299 ac_init_version=: ;; 1300 1301 -with-* | --with-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 as_fn_error $? "invalid package name: $ac_useropt" 1306 ac_useropt_orig=$ac_useropt 1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1308 case $ac_user_opts in 1309 *" 1310"with_$ac_useropt" 1311"*) ;; 1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1313 ac_unrecognized_sep=', ';; 1314 esac 1315 eval with_$ac_useropt=\$ac_optarg ;; 1316 1317 -without-* | --without-*) 1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1319 # Reject names that are not valid shell variable names. 1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1321 as_fn_error $? "invalid package name: $ac_useropt" 1322 ac_useropt_orig=$ac_useropt 1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1324 case $ac_user_opts in 1325 *" 1326"with_$ac_useropt" 1327"*) ;; 1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1329 ac_unrecognized_sep=', ';; 1330 esac 1331 eval with_$ac_useropt=no ;; 1332 1333 --x) 1334 # Obsolete; use --with-x. 1335 with_x=yes ;; 1336 1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1338 | --x-incl | --x-inc | --x-in | --x-i) 1339 ac_prev=x_includes ;; 1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1342 x_includes=$ac_optarg ;; 1343 1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1346 ac_prev=x_libraries ;; 1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1349 x_libraries=$ac_optarg ;; 1350 1351 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1352Try \`$0 --help' for more information" 1353 ;; 1354 1355 *=*) 1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1357 # Reject names that are not valid shell variable names. 1358 case $ac_envvar in #( 1359 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1360 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1361 esac 1362 eval $ac_envvar=\$ac_optarg 1363 export $ac_envvar ;; 1364 1365 *) 1366 # FIXME: should be removed in autoconf 3.0. 1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1371 ;; 1372 1373 esac 1374done 1375 1376if test -n "$ac_prev"; then 1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1378 as_fn_error $? "missing argument to $ac_option" 1379fi 1380 1381if test -n "$ac_unrecognized_opts"; then 1382 case $enable_option_checking in 1383 no) ;; 1384 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1386 esac 1387fi 1388 1389# Check all directory arguments for consistency. 1390for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1391 datadir sysconfdir sharedstatedir localstatedir includedir \ 1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1393 libdir localedir mandir 1394do 1395 eval ac_val=\$$ac_var 1396 # Remove trailing slashes. 1397 case $ac_val in 1398 */ ) 1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1400 eval $ac_var=\$ac_val;; 1401 esac 1402 # Be sure to have absolute directory names. 1403 case $ac_val in 1404 [\\/$]* | ?:[\\/]* ) continue;; 1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1406 esac 1407 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1408done 1409 1410# There might be people who depend on the old broken behavior: `$host' 1411# used to hold the argument of --host etc. 1412# FIXME: To remove some day. 1413build=$build_alias 1414host=$host_alias 1415target=$target_alias 1416 1417# FIXME: To remove some day. 1418if test "x$host_alias" != x; then 1419 if test "x$build_alias" = x; then 1420 cross_compiling=maybe 1421 elif test "x$build_alias" != "x$host_alias"; then 1422 cross_compiling=yes 1423 fi 1424fi 1425 1426ac_tool_prefix= 1427test -n "$host_alias" && ac_tool_prefix=$host_alias- 1428 1429test "$silent" = yes && exec 6>/dev/null 1430 1431 1432ac_pwd=`pwd` && test -n "$ac_pwd" && 1433ac_ls_di=`ls -di .` && 1434ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1435 as_fn_error $? "working directory cannot be determined" 1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1437 as_fn_error $? "pwd does not report name of working directory" 1438 1439 1440# Find the source files, if location was not specified. 1441if test -z "$srcdir"; then 1442 ac_srcdir_defaulted=yes 1443 # Try the directory containing this script, then the parent directory. 1444 ac_confdir=`$as_dirname -- "$as_myself" || 1445$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1446 X"$as_myself" : 'X\(//\)[^/]' \| \ 1447 X"$as_myself" : 'X\(//\)$' \| \ 1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1449$as_echo X"$as_myself" | 1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1451 s//\1/ 1452 q 1453 } 1454 /^X\(\/\/\)[^/].*/{ 1455 s//\1/ 1456 q 1457 } 1458 /^X\(\/\/\)$/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\).*/{ 1463 s//\1/ 1464 q 1465 } 1466 s/.*/./; q'` 1467 srcdir=$ac_confdir 1468 if test ! -r "$srcdir/$ac_unique_file"; then 1469 srcdir=.. 1470 fi 1471else 1472 ac_srcdir_defaulted=no 1473fi 1474if test ! -r "$srcdir/$ac_unique_file"; then 1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1477fi 1478ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1479ac_abs_confdir=`( 1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1481 pwd)` 1482# When building in place, set srcdir=. 1483if test "$ac_abs_confdir" = "$ac_pwd"; then 1484 srcdir=. 1485fi 1486# Remove unnecessary trailing slashes from srcdir. 1487# Double slashes in file names in object file debugging info 1488# mess up M-x gdb in Emacs. 1489case $srcdir in 1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1491esac 1492for ac_var in $ac_precious_vars; do 1493 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1494 eval ac_env_${ac_var}_value=\$${ac_var} 1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1496 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1497done 1498 1499# 1500# Report the --help message. 1501# 1502if test "$ac_init_help" = "long"; then 1503 # Omit some internal or obsolete options to make the list less imposing. 1504 # This message is too long to be a string in the A/UX 3.1 sh. 1505 cat <<_ACEOF 1506\`configure' configures poppler 0.16.3 to adapt to many kinds of systems. 1507 1508Usage: $0 [OPTION]... [VAR=VALUE]... 1509 1510To assign environment variables (e.g., CC, CFLAGS...), specify them as 1511VAR=VALUE. See below for descriptions of some of the useful variables. 1512 1513Defaults for the options are specified in brackets. 1514 1515Configuration: 1516 -h, --help display this help and exit 1517 --help=short display options specific to this package 1518 --help=recursive display the short help of all the included packages 1519 -V, --version display version information and exit 1520 -q, --quiet, --silent do not print \`checking ...' messages 1521 --cache-file=FILE cache test results in FILE [disabled] 1522 -C, --config-cache alias for \`--cache-file=config.cache' 1523 -n, --no-create do not create output files 1524 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1525 1526Installation directories: 1527 --prefix=PREFIX install architecture-independent files in PREFIX 1528 [$ac_default_prefix] 1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1530 [PREFIX] 1531 1532By default, \`make install' will install all the files in 1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1534an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1535for instance \`--prefix=\$HOME'. 1536 1537For better control, use the options below. 1538 1539Fine tuning of the installation directories: 1540 --bindir=DIR user executables [EPREFIX/bin] 1541 --sbindir=DIR system admin executables [EPREFIX/sbin] 1542 --libexecdir=DIR program executables [EPREFIX/libexec] 1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1546 --libdir=DIR object code libraries [EPREFIX/lib] 1547 --includedir=DIR C header files [PREFIX/include] 1548 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1551 --infodir=DIR info documentation [DATAROOTDIR/info] 1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1553 --mandir=DIR man documentation [DATAROOTDIR/man] 1554 --docdir=DIR documentation root [DATAROOTDIR/doc/poppler] 1555 --htmldir=DIR html documentation [DOCDIR] 1556 --dvidir=DIR dvi documentation [DOCDIR] 1557 --pdfdir=DIR pdf documentation [DOCDIR] 1558 --psdir=DIR ps documentation [DOCDIR] 1559_ACEOF 1560 1561 cat <<\_ACEOF 1562 1563Program names: 1564 --program-prefix=PREFIX prepend PREFIX to installed program names 1565 --program-suffix=SUFFIX append SUFFIX to installed program names 1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1567 1568X features: 1569 --x-includes=DIR X include files are in DIR 1570 --x-libraries=DIR X library files are in DIR 1571 1572System types: 1573 --build=BUILD configure for building on BUILD [guessed] 1574 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1575_ACEOF 1576fi 1577 1578if test -n "$ac_init_help"; then 1579 case $ac_init_help in 1580 short | recursive ) echo "Configuration of poppler 0.16.3:";; 1581 esac 1582 cat <<\_ACEOF 1583 1584Optional Features: 1585 --disable-option-checking ignore unrecognized --enable/--with options 1586 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1587 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1588 --enable-silent-rules less verbose build output (undo: `make V=1') 1589 --disable-silent-rules verbose build output (undo: `make V=0') 1590 --disable-dependency-tracking speeds up one-time build 1591 --enable-dependency-tracking do not reject slow dependency extractors 1592 --enable-shared[=PKGS] build shared libraries [default=yes] 1593 --enable-static[=PKGS] build static libraries [default=yes] 1594 --enable-fast-install[=PKGS] 1595 optimize for fast installation [default=yes] 1596 --disable-libtool-lock avoid locking (might break parallel builds) 1597 --enable-xpdf-headers Install unsupported xpdf headers. 1598 --enable-single-precision use single precision arithmetic (instead of double precision) in the Splash backend 1599 --enable-fixedpoint use fixed point (instead of double precision) arithmetic in the Splash backend 1600 --disable-relocatable Hardcode the poppler library location (on Windows). 1601 --disable-libopenjpeg Don't build against libopenjpeg. 1602 --disable-largefile omit support for large files 1603 --enable-zlib Build with zlib 1604 --enable-libcurl Build with libcurl based HTTP support. 1605 --disable-libjpeg Don't build against libjpeg. 1606 --disable-libpng Do not build against libpng. 1607 --disable-splash-output Don't build the Splash graphics backend. 1608 --disable-cairo-output Don't build the cairo graphics backend. 1609 --disable-poppler-glib Don't compile poppler glib wrapper. 1610 --enable-introspection=[no/auto/yes] 1611 Enable introspection for this build 1612 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1613 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1614 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1615 --disable-gdk Compile without gdk. 1616 --disable-poppler-qt Don't compile poppler qt wrapper. 1617 --disable-poppler-qt4 Don't compile poppler Qt4 wrapper. 1618 --disable-poppler-cpp Don't compile poppler cpp wrapper. 1619 --disable-gtk-test Don't compile GTK+ test program. 1620 --disable-abiword-output 1621 Don't build the abiword backend. 1622 --disable-utils Don't compile poppler command line utils. 1623 --enable-compile-warnings=[no/yes/kde] 1624 Turn on compiler warnings. 1625 1626 --disable-cms Don't use color management system. 1627 1628Optional Packages: 1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1631 --with-pic try to use only PIC/non-PIC objects [default=use 1632 both] 1633 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1634 --with-sysroot=DIR Search for dependent libraries within DIR 1635 (or the compiler's sysroot if not specified). 1636 --with-x use the X Window System 1637 --with-font-configuration=fontconfig|win32 1638 Select font configuration backend 1639 --with-html-dir=PATH path to installed docs 1640 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1641 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1642 1643Some influential environment variables: 1644 CC C compiler command 1645 CFLAGS C compiler flags 1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1647 nonstandard directory <lib dir> 1648 LIBS libraries to pass to the linker, e.g. -l<library> 1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1650 you have headers in a nonstandard directory <include dir> 1651 CPP C preprocessor 1652 CXX C++ compiler command 1653 CXXFLAGS C++ compiler flags 1654 CXXCPP C++ preprocessor 1655 PKG_CONFIG path to pkg-config utility 1656 PKG_CONFIG_PATH 1657 directories to add to pkg-config's search path 1658 PKG_CONFIG_LIBDIR 1659 path overriding pkg-config's built-in search path 1660 XMKMF Path to xmkmf, Makefile generator for X Window System 1661 LIBCURL_CFLAGS 1662 C compiler flags for LIBCURL, overriding pkg-config 1663 LIBCURL_LIBS 1664 linker flags for LIBCURL, overriding pkg-config 1665 LIBPNG_CFLAGS 1666 C compiler flags for LIBPNG, overriding pkg-config 1667 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config 1668 FONTCONFIG_CFLAGS 1669 C compiler flags for FONTCONFIG, overriding pkg-config 1670 FONTCONFIG_LIBS 1671 linker flags for FONTCONFIG, overriding pkg-config 1672 CAIRO_CFLAGS 1673 C compiler flags for CAIRO, overriding pkg-config 1674 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config 1675 POPPLER_GLIB_CFLAGS 1676 C compiler flags for POPPLER_GLIB, overriding pkg-config 1677 POPPLER_GLIB_LIBS 1678 linker flags for POPPLER_GLIB, overriding pkg-config 1679 GDK_CFLAGS C compiler flags for GDK, overriding pkg-config 1680 GDK_LIBS linker flags for GDK, overriding pkg-config 1681 libqt3_CFLAGS 1682 C compiler flags for libqt3, overriding pkg-config 1683 libqt3_LIBS linker flags for libqt3, overriding pkg-config 1684 POPPLER_QT4_CFLAGS 1685 C compiler flags for POPPLER_QT4, overriding pkg-config 1686 POPPLER_QT4_LIBS 1687 linker flags for POPPLER_QT4, overriding pkg-config 1688 POPPLER_QT4_TEST_CFLAGS 1689 C compiler flags for POPPLER_QT4_TEST, overriding pkg-config 1690 POPPLER_QT4_TEST_LIBS 1691 linker flags for POPPLER_QT4_TEST, overriding pkg-config 1692 GTK_TEST_CFLAGS 1693 C compiler flags for GTK_TEST, overriding pkg-config 1694 GTK_TEST_LIBS 1695 linker flags for GTK_TEST, overriding pkg-config 1696 ABIWORD_CFLAGS 1697 C compiler flags for ABIWORD, overriding pkg-config 1698 ABIWORD_LIBS 1699 linker flags for ABIWORD, overriding pkg-config 1700 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 1701 LCMS_LIBS linker flags for LCMS, overriding pkg-config 1702 1703Use these variables to override the choices made by `configure' or to help 1704it to find libraries and programs with nonstandard names/locations. 1705 1706Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=poppler>. 1707_ACEOF 1708ac_status=$? 1709fi 1710 1711if test "$ac_init_help" = "recursive"; then 1712 # If there are subdirs, report their specific --help. 1713 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1714 test -d "$ac_dir" || 1715 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1716 continue 1717 ac_builddir=. 1718 1719case "$ac_dir" in 1720.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1721*) 1722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1723 # A ".." for each directory in $ac_dir_suffix. 1724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1725 case $ac_top_builddir_sub in 1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1728 esac ;; 1729esac 1730ac_abs_top_builddir=$ac_pwd 1731ac_abs_builddir=$ac_pwd$ac_dir_suffix 1732# for backward compatibility: 1733ac_top_builddir=$ac_top_build_prefix 1734 1735case $srcdir in 1736 .) # We are building in place. 1737 ac_srcdir=. 1738 ac_top_srcdir=$ac_top_builddir_sub 1739 ac_abs_top_srcdir=$ac_pwd ;; 1740 [\\/]* | ?:[\\/]* ) # Absolute name. 1741 ac_srcdir=$srcdir$ac_dir_suffix; 1742 ac_top_srcdir=$srcdir 1743 ac_abs_top_srcdir=$srcdir ;; 1744 *) # Relative name. 1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1746 ac_top_srcdir=$ac_top_build_prefix$srcdir 1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1748esac 1749ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1750 1751 cd "$ac_dir" || { ac_status=$?; continue; } 1752 # Check for guested configure. 1753 if test -f "$ac_srcdir/configure.gnu"; then 1754 echo && 1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1756 elif test -f "$ac_srcdir/configure"; then 1757 echo && 1758 $SHELL "$ac_srcdir/configure" --help=recursive 1759 else 1760 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1761 fi || ac_status=$? 1762 cd "$ac_pwd" || { ac_status=$?; break; } 1763 done 1764fi 1765 1766test -n "$ac_init_help" && exit $ac_status 1767if $ac_init_version; then 1768 cat <<\_ACEOF 1769poppler configure 0.16.3 1770generated by GNU Autoconf 2.69 1771 1772Copyright (C) 2012 Free Software Foundation, Inc. 1773This configure script is free software; the Free Software Foundation 1774gives unlimited permission to copy, distribute and modify it. 1775_ACEOF 1776 exit 1777fi 1778 1779## ------------------------ ## 1780## Autoconf initialization. ## 1781## ------------------------ ## 1782 1783# ac_fn_c_try_compile LINENO 1784# -------------------------- 1785# Try to compile conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_c_try_compile () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext 1790 if { { ac_try="$ac_compile" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_compile") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest.$ac_objext; then : 1809 ac_retval=0 1810else 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=1 1815fi 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 as_fn_set_status $ac_retval 1818 1819} # ac_fn_c_try_compile 1820 1821# ac_fn_c_try_run LINENO 1822# ---------------------- 1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1824# that executables *can* be run. 1825ac_fn_c_try_run () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 if { { ac_try="$ac_link" 1829case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_link") 2>&5 1836 ac_status=$? 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1839 { { case "(($ac_try" in 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1841 *) ac_try_echo=$ac_try;; 1842esac 1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1844$as_echo "$ac_try_echo"; } >&5 1845 (eval "$ac_try") 2>&5 1846 ac_status=$? 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; }; }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: program exited with status $ac_status" >&5 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=$ac_status 1856fi 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_run 1862 1863# ac_fn_c_try_cpp LINENO 1864# ---------------------- 1865# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1866ac_fn_c_try_cpp () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 if { { ac_try="$ac_cpp conftest.$ac_ext" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } > conftest.i && { 1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1886 test ! -s conftest.err 1887 }; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=1 1894fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 as_fn_set_status $ac_retval 1897 1898} # ac_fn_c_try_cpp 1899 1900# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1901# ------------------------------------------------------- 1902# Tests whether HEADER exists and can be compiled using the include files in 1903# INCLUDES, setting the cache variable VAR accordingly. 1904ac_fn_c_check_header_compile () 1905{ 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1908$as_echo_n "checking for $2... " >&6; } 1909if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911else 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913/* end confdefs.h. */ 1914$4 1915#include <$2> 1916_ACEOF 1917if ac_fn_c_try_compile "$LINENO"; then : 1918 eval "$3=yes" 1919else 1920 eval "$3=no" 1921fi 1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1923fi 1924eval ac_res=\$$3 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1926$as_echo "$ac_res" >&6; } 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 1929} # ac_fn_c_check_header_compile 1930 1931# ac_fn_c_try_link LINENO 1932# ----------------------- 1933# Try to link conftest.$ac_ext, and return whether this succeeded. 1934ac_fn_c_try_link () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 rm -f conftest.$ac_objext conftest$ac_exeext 1938 if { { ac_try="$ac_link" 1939case "(($ac_try" in 1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1941 *) ac_try_echo=$ac_try;; 1942esac 1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1944$as_echo "$ac_try_echo"; } >&5 1945 (eval "$ac_link") 2>conftest.err 1946 ac_status=$? 1947 if test -s conftest.err; then 1948 grep -v '^ *+' conftest.err >conftest.er1 1949 cat conftest.er1 >&5 1950 mv -f conftest.er1 conftest.err 1951 fi 1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1953 test $ac_status = 0; } && { 1954 test -z "$ac_c_werror_flag" || 1955 test ! -s conftest.err 1956 } && test -s conftest$ac_exeext && { 1957 test "$cross_compiling" = yes || 1958 test -x conftest$ac_exeext 1959 }; then : 1960 ac_retval=0 1961else 1962 $as_echo "$as_me: failed program was:" >&5 1963sed 's/^/| /' conftest.$ac_ext >&5 1964 1965 ac_retval=1 1966fi 1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1969 # interfere with the next link command; also delete a directory that is 1970 # left behind by Apple's compiler. We do this before executing the actions. 1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 as_fn_set_status $ac_retval 1974 1975} # ac_fn_c_try_link 1976 1977# ac_fn_c_check_func LINENO FUNC VAR 1978# ---------------------------------- 1979# Tests whether FUNC exists, setting the cache variable VAR accordingly 1980ac_fn_c_check_func () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1984$as_echo_n "checking for $2... " >&6; } 1985if eval \${$3+:} false; then : 1986 $as_echo_n "(cached) " >&6 1987else 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989/* end confdefs.h. */ 1990/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1991 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1992#define $2 innocuous_$2 1993 1994/* System header to define __stub macros and hopefully few prototypes, 1995 which can conflict with char $2 (); below. 1996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1997 <limits.h> exists even on freestanding compilers. */ 1998 1999#ifdef __STDC__ 2000# include <limits.h> 2001#else 2002# include <assert.h> 2003#endif 2004 2005#undef $2 2006 2007/* Override any GCC internal prototype to avoid an error. 2008 Use char because int might match the return type of a GCC 2009 builtin and then its argument prototype would still apply. */ 2010#ifdef __cplusplus 2011extern "C" 2012#endif 2013char $2 (); 2014/* The GNU C library defines this for functions which it implements 2015 to always fail with ENOSYS. Some functions are actually named 2016 something starting with __ and the normal name is an alias. */ 2017#if defined __stub_$2 || defined __stub___$2 2018choke me 2019#endif 2020 2021int 2022main () 2023{ 2024return $2 (); 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_link "$LINENO"; then : 2030 eval "$3=yes" 2031else 2032 eval "$3=no" 2033fi 2034rm -f core conftest.err conftest.$ac_objext \ 2035 conftest$ac_exeext conftest.$ac_ext 2036fi 2037eval ac_res=\$$3 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2039$as_echo "$ac_res" >&6; } 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 2042} # ac_fn_c_check_func 2043 2044# ac_fn_cxx_try_compile LINENO 2045# ---------------------------- 2046# Try to compile conftest.$ac_ext, and return whether this succeeded. 2047ac_fn_cxx_try_compile () 2048{ 2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2050 rm -f conftest.$ac_objext 2051 if { { ac_try="$ac_compile" 2052case "(($ac_try" in 2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2054 *) ac_try_echo=$ac_try;; 2055esac 2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2057$as_echo "$ac_try_echo"; } >&5 2058 (eval "$ac_compile") 2>conftest.err 2059 ac_status=$? 2060 if test -s conftest.err; then 2061 grep -v '^ *+' conftest.err >conftest.er1 2062 cat conftest.er1 >&5 2063 mv -f conftest.er1 conftest.err 2064 fi 2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2066 test $ac_status = 0; } && { 2067 test -z "$ac_cxx_werror_flag" || 2068 test ! -s conftest.err 2069 } && test -s conftest.$ac_objext; then : 2070 ac_retval=0 2071else 2072 $as_echo "$as_me: failed program was:" >&5 2073sed 's/^/| /' conftest.$ac_ext >&5 2074 2075 ac_retval=1 2076fi 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 as_fn_set_status $ac_retval 2079 2080} # ac_fn_cxx_try_compile 2081 2082# ac_fn_cxx_try_cpp LINENO 2083# ------------------------ 2084# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2085ac_fn_cxx_try_cpp () 2086{ 2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2088 if { { ac_try="$ac_cpp conftest.$ac_ext" 2089case "(($ac_try" in 2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2091 *) ac_try_echo=$ac_try;; 2092esac 2093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2094$as_echo "$ac_try_echo"; } >&5 2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2096 ac_status=$? 2097 if test -s conftest.err; then 2098 grep -v '^ *+' conftest.err >conftest.er1 2099 cat conftest.er1 >&5 2100 mv -f conftest.er1 conftest.err 2101 fi 2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2103 test $ac_status = 0; } > conftest.i && { 2104 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2105 test ! -s conftest.err 2106 }; then : 2107 ac_retval=0 2108else 2109 $as_echo "$as_me: failed program was:" >&5 2110sed 's/^/| /' conftest.$ac_ext >&5 2111 2112 ac_retval=1 2113fi 2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2115 as_fn_set_status $ac_retval 2116 2117} # ac_fn_cxx_try_cpp 2118 2119# ac_fn_cxx_try_link LINENO 2120# ------------------------- 2121# Try to link conftest.$ac_ext, and return whether this succeeded. 2122ac_fn_cxx_try_link () 2123{ 2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2125 rm -f conftest.$ac_objext conftest$ac_exeext 2126 if { { ac_try="$ac_link" 2127case "(($ac_try" in 2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2129 *) ac_try_echo=$ac_try;; 2130esac 2131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2132$as_echo "$ac_try_echo"; } >&5 2133 (eval "$ac_link") 2>conftest.err 2134 ac_status=$? 2135 if test -s conftest.err; then 2136 grep -v '^ *+' conftest.err >conftest.er1 2137 cat conftest.er1 >&5 2138 mv -f conftest.er1 conftest.err 2139 fi 2140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2141 test $ac_status = 0; } && { 2142 test -z "$ac_cxx_werror_flag" || 2143 test ! -s conftest.err 2144 } && test -s conftest$ac_exeext && { 2145 test "$cross_compiling" = yes || 2146 test -x conftest$ac_exeext 2147 }; then : 2148 ac_retval=0 2149else 2150 $as_echo "$as_me: failed program was:" >&5 2151sed 's/^/| /' conftest.$ac_ext >&5 2152 2153 ac_retval=1 2154fi 2155 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2156 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2157 # interfere with the next link command; also delete a directory that is 2158 # left behind by Apple's compiler. We do this before executing the actions. 2159 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2161 as_fn_set_status $ac_retval 2162 2163} # ac_fn_cxx_try_link 2164 2165# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2166# ----------------------------------------------- 2167# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2168# accordingly. 2169ac_fn_cxx_check_decl () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 as_decl_name=`echo $2|sed 's/ *(.*//'` 2173 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2175$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2176if eval \${$3+:} false; then : 2177 $as_echo_n "(cached) " >&6 2178else 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$4 2182int 2183main () 2184{ 2185#ifndef $as_decl_name 2186#ifdef __cplusplus 2187 (void) $as_decl_use; 2188#else 2189 (void) $as_decl_name; 2190#endif 2191#endif 2192 2193 ; 2194 return 0; 2195} 2196_ACEOF 2197if ac_fn_cxx_try_compile "$LINENO"; then : 2198 eval "$3=yes" 2199else 2200 eval "$3=no" 2201fi 2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2203fi 2204eval ac_res=\$$3 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2206$as_echo "$ac_res" >&6; } 2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2208 2209} # ac_fn_cxx_check_decl 2210 2211# ac_fn_cxx_check_func LINENO FUNC VAR 2212# ------------------------------------ 2213# Tests whether FUNC exists, setting the cache variable VAR accordingly 2214ac_fn_cxx_check_func () 2215{ 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2218$as_echo_n "checking for $2... " >&6; } 2219if eval \${$3+:} false; then : 2220 $as_echo_n "(cached) " >&6 2221else 2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2223/* end confdefs.h. */ 2224/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2225 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2226#define $2 innocuous_$2 2227 2228/* System header to define __stub macros and hopefully few prototypes, 2229 which can conflict with char $2 (); below. 2230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2231 <limits.h> exists even on freestanding compilers. */ 2232 2233#ifdef __STDC__ 2234# include <limits.h> 2235#else 2236# include <assert.h> 2237#endif 2238 2239#undef $2 2240 2241/* Override any GCC internal prototype to avoid an error. 2242 Use char because int might match the return type of a GCC 2243 builtin and then its argument prototype would still apply. */ 2244#ifdef __cplusplus 2245extern "C" 2246#endif 2247char $2 (); 2248/* The GNU C library defines this for functions which it implements 2249 to always fail with ENOSYS. Some functions are actually named 2250 something starting with __ and the normal name is an alias. */ 2251#if defined __stub_$2 || defined __stub___$2 2252choke me 2253#endif 2254 2255int 2256main () 2257{ 2258return $2 (); 2259 ; 2260 return 0; 2261} 2262_ACEOF 2263if ac_fn_cxx_try_link "$LINENO"; then : 2264 eval "$3=yes" 2265else 2266 eval "$3=no" 2267fi 2268rm -f core conftest.err conftest.$ac_objext \ 2269 conftest$ac_exeext conftest.$ac_ext 2270fi 2271eval ac_res=\$$3 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2273$as_echo "$ac_res" >&6; } 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 2276} # ac_fn_cxx_check_func 2277 2278# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2279# --------------------------------------------------------- 2280# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2281# the include files in INCLUDES and setting the cache variable VAR 2282# accordingly. 2283ac_fn_cxx_check_header_mongrel () 2284{ 2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2286 if eval \${$3+:} false; then : 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2288$as_echo_n "checking for $2... " >&6; } 2289if eval \${$3+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291fi 2292eval ac_res=\$$3 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2294$as_echo "$ac_res" >&6; } 2295else 2296 # Is the header compilable? 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2298$as_echo_n "checking $2 usability... " >&6; } 2299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2300/* end confdefs.h. */ 2301$4 2302#include <$2> 2303_ACEOF 2304if ac_fn_cxx_try_compile "$LINENO"; then : 2305 ac_header_compiler=yes 2306else 2307 ac_header_compiler=no 2308fi 2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2311$as_echo "$ac_header_compiler" >&6; } 2312 2313# Is the header present? 2314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2315$as_echo_n "checking $2 presence... " >&6; } 2316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2317/* end confdefs.h. */ 2318#include <$2> 2319_ACEOF 2320if ac_fn_cxx_try_cpp "$LINENO"; then : 2321 ac_header_preproc=yes 2322else 2323 ac_header_preproc=no 2324fi 2325rm -f conftest.err conftest.i conftest.$ac_ext 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2327$as_echo "$ac_header_preproc" >&6; } 2328 2329# So? What about this header? 2330case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2331 yes:no: ) 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2333$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2335$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2336 ;; 2337 no:yes:* ) 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2339$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2341$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2343$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2345$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2347$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2348( $as_echo "## ------------------------------------------------------------------------- ## 2349## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=poppler ## 2350## ------------------------------------------------------------------------- ##" 2351 ) | sed "s/^/$as_me: WARNING: /" >&2 2352 ;; 2353esac 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2355$as_echo_n "checking for $2... " >&6; } 2356if eval \${$3+:} false; then : 2357 $as_echo_n "(cached) " >&6 2358else 2359 eval "$3=\$ac_header_compiler" 2360fi 2361eval ac_res=\$$3 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2363$as_echo "$ac_res" >&6; } 2364fi 2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2366 2367} # ac_fn_cxx_check_header_mongrel 2368 2369# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2370# ------------------------------------------------------- 2371# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2372# the include files in INCLUDES and setting the cache variable VAR 2373# accordingly. 2374ac_fn_c_check_header_mongrel () 2375{ 2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2377 if eval \${$3+:} false; then : 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2379$as_echo_n "checking for $2... " >&6; } 2380if eval \${$3+:} false; then : 2381 $as_echo_n "(cached) " >&6 2382fi 2383eval ac_res=\$$3 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2385$as_echo "$ac_res" >&6; } 2386else 2387 # Is the header compilable? 2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2389$as_echo_n "checking $2 usability... " >&6; } 2390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2391/* end confdefs.h. */ 2392$4 2393#include <$2> 2394_ACEOF 2395if ac_fn_c_try_compile "$LINENO"; then : 2396 ac_header_compiler=yes 2397else 2398 ac_header_compiler=no 2399fi 2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2402$as_echo "$ac_header_compiler" >&6; } 2403 2404# Is the header present? 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2406$as_echo_n "checking $2 presence... " >&6; } 2407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2408/* end confdefs.h. */ 2409#include <$2> 2410_ACEOF 2411if ac_fn_c_try_cpp "$LINENO"; then : 2412 ac_header_preproc=yes 2413else 2414 ac_header_preproc=no 2415fi 2416rm -f conftest.err conftest.i conftest.$ac_ext 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2418$as_echo "$ac_header_preproc" >&6; } 2419 2420# So? What about this header? 2421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2422 yes:no: ) 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2424$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2426$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2427 ;; 2428 no:yes:* ) 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2430$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2432$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2434$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2436$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2438$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2439( $as_echo "## ------------------------------------------------------------------------- ## 2440## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=poppler ## 2441## ------------------------------------------------------------------------- ##" 2442 ) | sed "s/^/$as_me: WARNING: /" >&2 2443 ;; 2444esac 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2446$as_echo_n "checking for $2... " >&6; } 2447if eval \${$3+:} false; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 eval "$3=\$ac_header_compiler" 2451fi 2452eval ac_res=\$$3 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2454$as_echo "$ac_res" >&6; } 2455fi 2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2457 2458} # ac_fn_c_check_header_mongrel 2459cat >config.log <<_ACEOF 2460This file contains any messages produced by compilers while 2461running configure, to aid debugging if configure makes a mistake. 2462 2463It was created by poppler $as_me 0.16.3, which was 2464generated by GNU Autoconf 2.69. Invocation command line was 2465 2466 $ $0 $@ 2467 2468_ACEOF 2469exec 5>>config.log 2470{ 2471cat <<_ASUNAME 2472## --------- ## 2473## Platform. ## 2474## --------- ## 2475 2476hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2477uname -m = `(uname -m) 2>/dev/null || echo unknown` 2478uname -r = `(uname -r) 2>/dev/null || echo unknown` 2479uname -s = `(uname -s) 2>/dev/null || echo unknown` 2480uname -v = `(uname -v) 2>/dev/null || echo unknown` 2481 2482/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2483/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2484 2485/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2486/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2487/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2488/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2489/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2490/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2491/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2492 2493_ASUNAME 2494 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 $as_echo "PATH: $as_dir" 2501 done 2502IFS=$as_save_IFS 2503 2504} >&5 2505 2506cat >&5 <<_ACEOF 2507 2508 2509## ----------- ## 2510## Core tests. ## 2511## ----------- ## 2512 2513_ACEOF 2514 2515 2516# Keep a trace of the command line. 2517# Strip out --no-create and --no-recursion so they do not pile up. 2518# Strip out --silent because we don't want to record it for future runs. 2519# Also quote any args containing shell meta-characters. 2520# Make two passes to allow for proper duplicate-argument suppression. 2521ac_configure_args= 2522ac_configure_args0= 2523ac_configure_args1= 2524ac_must_keep_next=false 2525for ac_pass in 1 2 2526do 2527 for ac_arg 2528 do 2529 case $ac_arg in 2530 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2532 | -silent | --silent | --silen | --sile | --sil) 2533 continue ;; 2534 *\'*) 2535 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2536 esac 2537 case $ac_pass in 2538 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2539 2) 2540 as_fn_append ac_configure_args1 " '$ac_arg'" 2541 if test $ac_must_keep_next = true; then 2542 ac_must_keep_next=false # Got value, back to normal. 2543 else 2544 case $ac_arg in 2545 *=* | --config-cache | -C | -disable-* | --disable-* \ 2546 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2547 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2548 | -with-* | --with-* | -without-* | --without-* | --x) 2549 case "$ac_configure_args0 " in 2550 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2551 esac 2552 ;; 2553 -* ) ac_must_keep_next=true ;; 2554 esac 2555 fi 2556 as_fn_append ac_configure_args " '$ac_arg'" 2557 ;; 2558 esac 2559 done 2560done 2561{ ac_configure_args0=; unset ac_configure_args0;} 2562{ ac_configure_args1=; unset ac_configure_args1;} 2563 2564# When interrupted or exit'd, cleanup temporary files, and complete 2565# config.log. We remove comments because anyway the quotes in there 2566# would cause problems or look ugly. 2567# WARNING: Use '\'' to represent an apostrophe within the trap. 2568# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2569trap 'exit_status=$? 2570 # Save into config.log some information that might help in debugging. 2571 { 2572 echo 2573 2574 $as_echo "## ---------------- ## 2575## Cache variables. ## 2576## ---------------- ##" 2577 echo 2578 # The following way of writing the cache mishandles newlines in values, 2579( 2580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2581 eval ac_val=\$$ac_var 2582 case $ac_val in #( 2583 *${as_nl}*) 2584 case $ac_var in #( 2585 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2586$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2587 esac 2588 case $ac_var in #( 2589 _ | IFS | as_nl) ;; #( 2590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2591 *) { eval $ac_var=; unset $ac_var;} ;; 2592 esac ;; 2593 esac 2594 done 2595 (set) 2>&1 | 2596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2597 *${as_nl}ac_space=\ *) 2598 sed -n \ 2599 "s/'\''/'\''\\\\'\'''\''/g; 2600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2601 ;; #( 2602 *) 2603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2604 ;; 2605 esac | 2606 sort 2607) 2608 echo 2609 2610 $as_echo "## ----------------- ## 2611## Output variables. ## 2612## ----------------- ##" 2613 echo 2614 for ac_var in $ac_subst_vars 2615 do 2616 eval ac_val=\$$ac_var 2617 case $ac_val in 2618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2619 esac 2620 $as_echo "$ac_var='\''$ac_val'\''" 2621 done | sort 2622 echo 2623 2624 if test -n "$ac_subst_files"; then 2625 $as_echo "## ------------------- ## 2626## File substitutions. ## 2627## ------------------- ##" 2628 echo 2629 for ac_var in $ac_subst_files 2630 do 2631 eval ac_val=\$$ac_var 2632 case $ac_val in 2633 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2634 esac 2635 $as_echo "$ac_var='\''$ac_val'\''" 2636 done | sort 2637 echo 2638 fi 2639 2640 if test -s confdefs.h; then 2641 $as_echo "## ----------- ## 2642## confdefs.h. ## 2643## ----------- ##" 2644 echo 2645 cat confdefs.h 2646 echo 2647 fi 2648 test "$ac_signal" != 0 && 2649 $as_echo "$as_me: caught signal $ac_signal" 2650 $as_echo "$as_me: exit $exit_status" 2651 } >&5 2652 rm -f core *.core core.conftest.* && 2653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2654 exit $exit_status 2655' 0 2656for ac_signal in 1 2 13 15; do 2657 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2658done 2659ac_signal=0 2660 2661# confdefs.h avoids OS command line length limits that DEFS can exceed. 2662rm -f -r conftest* confdefs.h 2663 2664$as_echo "/* confdefs.h */" > confdefs.h 2665 2666# Predefined preprocessor variables. 2667 2668cat >>confdefs.h <<_ACEOF 2669#define PACKAGE_NAME "$PACKAGE_NAME" 2670_ACEOF 2671 2672cat >>confdefs.h <<_ACEOF 2673#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2674_ACEOF 2675 2676cat >>confdefs.h <<_ACEOF 2677#define PACKAGE_VERSION "$PACKAGE_VERSION" 2678_ACEOF 2679 2680cat >>confdefs.h <<_ACEOF 2681#define PACKAGE_STRING "$PACKAGE_STRING" 2682_ACEOF 2683 2684cat >>confdefs.h <<_ACEOF 2685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2686_ACEOF 2687 2688cat >>confdefs.h <<_ACEOF 2689#define PACKAGE_URL "$PACKAGE_URL" 2690_ACEOF 2691 2692 2693# Let the site file select an alternate cache file if it wants to. 2694# Prefer an explicitly selected file to automatically selected ones. 2695ac_site_file1=NONE 2696ac_site_file2=NONE 2697if test -n "$CONFIG_SITE"; then 2698 # We do not want a PATH search for config.site. 2699 case $CONFIG_SITE in #(( 2700 -*) ac_site_file1=./$CONFIG_SITE;; 2701 */*) ac_site_file1=$CONFIG_SITE;; 2702 *) ac_site_file1=./$CONFIG_SITE;; 2703 esac 2704elif test "x$prefix" != xNONE; then 2705 ac_site_file1=$prefix/share/config.site 2706 ac_site_file2=$prefix/etc/config.site 2707else 2708 ac_site_file1=$ac_default_prefix/share/config.site 2709 ac_site_file2=$ac_default_prefix/etc/config.site 2710fi 2711for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2712do 2713 test "x$ac_site_file" = xNONE && continue 2714 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2716$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2717 sed 's/^/| /' "$ac_site_file" >&5 2718 . "$ac_site_file" \ 2719 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2721as_fn_error $? "failed to load site script $ac_site_file 2722See \`config.log' for more details" "$LINENO" 5; } 2723 fi 2724done 2725 2726if test -r "$cache_file"; then 2727 # Some versions of bash will fail to source /dev/null (special files 2728 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2729 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2731$as_echo "$as_me: loading cache $cache_file" >&6;} 2732 case $cache_file in 2733 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2734 *) . "./$cache_file";; 2735 esac 2736 fi 2737else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2739$as_echo "$as_me: creating cache $cache_file" >&6;} 2740 >$cache_file 2741fi 2742 2743# Check that the precious variables saved in the cache have kept the same 2744# value. 2745ac_cache_corrupted=false 2746for ac_var in $ac_precious_vars; do 2747 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2748 eval ac_new_set=\$ac_env_${ac_var}_set 2749 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2750 eval ac_new_val=\$ac_env_${ac_var}_value 2751 case $ac_old_set,$ac_new_set in 2752 set,) 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2754$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2755 ac_cache_corrupted=: ;; 2756 ,set) 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2758$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2759 ac_cache_corrupted=: ;; 2760 ,);; 2761 *) 2762 if test "x$ac_old_val" != "x$ac_new_val"; then 2763 # differences in whitespace do not lead to failure. 2764 ac_old_val_w=`echo x $ac_old_val` 2765 ac_new_val_w=`echo x $ac_new_val` 2766 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2768$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2769 ac_cache_corrupted=: 2770 else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2772$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2773 eval $ac_var=\$ac_old_val 2774 fi 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2776$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2778$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2779 fi;; 2780 esac 2781 # Pass precious variables to config.status. 2782 if test "$ac_new_set" = set; then 2783 case $ac_new_val in 2784 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2785 *) ac_arg=$ac_var=$ac_new_val ;; 2786 esac 2787 case " $ac_configure_args " in 2788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2789 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2790 esac 2791 fi 2792done 2793if $ac_cache_corrupted; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2797$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2798 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2799fi 2800## -------------------- ## 2801## Main body of script. ## 2802## -------------------- ## 2803 2804ac_ext=c 2805ac_cpp='$CPP $CPPFLAGS' 2806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2808ac_compiler_gnu=$ac_cv_c_compiler_gnu 2809 2810 2811 2812am__api_version='1.11' 2813 2814ac_aux_dir= 2815for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2816 if test -f "$ac_dir/install-sh"; then 2817 ac_aux_dir=$ac_dir 2818 ac_install_sh="$ac_aux_dir/install-sh -c" 2819 break 2820 elif test -f "$ac_dir/install.sh"; then 2821 ac_aux_dir=$ac_dir 2822 ac_install_sh="$ac_aux_dir/install.sh -c" 2823 break 2824 elif test -f "$ac_dir/shtool"; then 2825 ac_aux_dir=$ac_dir 2826 ac_install_sh="$ac_aux_dir/shtool install -c" 2827 break 2828 fi 2829done 2830if test -z "$ac_aux_dir"; then 2831 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2832fi 2833 2834# These three variables are undocumented and unsupported, 2835# and are intended to be withdrawn in a future Autoconf release. 2836# They can cause serious problems if a builder's source tree is in a directory 2837# whose full name contains unusual characters. 2838ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2839ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2840ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2841 2842 2843# Find a good install program. We prefer a C program (faster), 2844# so one script is as good as another. But avoid the broken or 2845# incompatible versions: 2846# SysV /etc/install, /usr/sbin/install 2847# SunOS /usr/etc/install 2848# IRIX /sbin/install 2849# AIX /bin/install 2850# AmigaOS /C/install, which installs bootblocks on floppy discs 2851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2852# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2854# OS/2's system install, which has a completely different semantic 2855# ./install, which can be erroneously created by make from ./install.sh. 2856# Reject install programs that cannot install multiple files. 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2858$as_echo_n "checking for a BSD-compatible install... " >&6; } 2859if test -z "$INSTALL"; then 2860if ${ac_cv_path_install+:} false; then : 2861 $as_echo_n "(cached) " >&6 2862else 2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH 2865do 2866 IFS=$as_save_IFS 2867 test -z "$as_dir" && as_dir=. 2868 # Account for people who put trailing slashes in PATH elements. 2869case $as_dir/ in #(( 2870 ./ | .// | /[cC]/* | \ 2871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2872 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2873 /usr/ucb/* ) ;; 2874 *) 2875 # OSF1 and SCO ODT 3.0 have their own names for install. 2876 # Don't use installbsd from OSF since it installs stuff as root 2877 # by default. 2878 for ac_prog in ginstall scoinst install; do 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2881 if test $ac_prog = install && 2882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2883 # AIX install. It has an incompatible calling convention. 2884 : 2885 elif test $ac_prog = install && 2886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2887 # program-specific install script used by HP pwplus--don't use. 2888 : 2889 else 2890 rm -rf conftest.one conftest.two conftest.dir 2891 echo one > conftest.one 2892 echo two > conftest.two 2893 mkdir conftest.dir 2894 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2895 test -s conftest.one && test -s conftest.two && 2896 test -s conftest.dir/conftest.one && 2897 test -s conftest.dir/conftest.two 2898 then 2899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2900 break 3 2901 fi 2902 fi 2903 fi 2904 done 2905 done 2906 ;; 2907esac 2908 2909 done 2910IFS=$as_save_IFS 2911 2912rm -rf conftest.one conftest.two conftest.dir 2913 2914fi 2915 if test "${ac_cv_path_install+set}" = set; then 2916 INSTALL=$ac_cv_path_install 2917 else 2918 # As a last resort, use the slow shell script. Don't cache a 2919 # value for INSTALL within a source directory, because that will 2920 # break other packages using the cache if that directory is 2921 # removed, or if the value is a relative name. 2922 INSTALL=$ac_install_sh 2923 fi 2924fi 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2926$as_echo "$INSTALL" >&6; } 2927 2928# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2929# It thinks the first close brace ends the variable substitution. 2930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2931 2932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2933 2934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2935 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2937$as_echo_n "checking whether build environment is sane... " >&6; } 2938# Just in case 2939sleep 1 2940echo timestamp > conftest.file 2941# Reject unsafe characters in $srcdir or the absolute working directory 2942# name. Accept space and tab only in the latter. 2943am_lf=' 2944' 2945case `pwd` in 2946 *[\\\"\#\$\&\'\`$am_lf]*) 2947 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2948esac 2949case $srcdir in 2950 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2951 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2952esac 2953 2954# Do `set' in a subshell so we don't clobber the current shell's 2955# arguments. Must try -L first in case configure is actually a 2956# symlink; some systems play weird games with the mod time of symlinks 2957# (eg FreeBSD returns the mod time of the symlink's containing 2958# directory). 2959if ( 2960 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2961 if test "$*" = "X"; then 2962 # -L didn't work. 2963 set X `ls -t "$srcdir/configure" conftest.file` 2964 fi 2965 rm -f conftest.file 2966 if test "$*" != "X $srcdir/configure conftest.file" \ 2967 && test "$*" != "X conftest.file $srcdir/configure"; then 2968 2969 # If neither matched, then we have a broken ls. This can happen 2970 # if, for instance, CONFIG_SHELL is bash and it inherits a 2971 # broken ls alias from the environment. This has actually 2972 # happened. Such a system could not be considered "sane". 2973 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2974alias in your environment" "$LINENO" 5 2975 fi 2976 2977 test "$2" = conftest.file 2978 ) 2979then 2980 # Ok. 2981 : 2982else 2983 as_fn_error $? "newly created file is older than distributed files! 2984Check your system clock" "$LINENO" 5 2985fi 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2987$as_echo "yes" >&6; } 2988test "$program_prefix" != NONE && 2989 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2990# Use a double $ so make ignores it. 2991test "$program_suffix" != NONE && 2992 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2993# Double any \ or $. 2994# By default was `s,x,x', remove it if useless. 2995ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2996program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2997 2998# expand $ac_aux_dir to an absolute path 2999am_aux_dir=`cd $ac_aux_dir && pwd` 3000 3001if test x"${MISSING+set}" != xset; then 3002 case $am_aux_dir in 3003 *\ * | *\ *) 3004 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3005 *) 3006 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3007 esac 3008fi 3009# Use eval to expand $SHELL 3010if eval "$MISSING --run true"; then 3011 am_missing_run="$MISSING --run " 3012else 3013 am_missing_run= 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3015$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3016fi 3017 3018if test x"${install_sh}" != xset; then 3019 case $am_aux_dir in 3020 *\ * | *\ *) 3021 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3022 *) 3023 install_sh="\${SHELL} $am_aux_dir/install-sh" 3024 esac 3025fi 3026 3027# Installed binaries are usually stripped using `strip' when the user 3028# run `make install-strip'. However `strip' might not be the right 3029# tool to use in cross-compilation environments, therefore Automake 3030# will honor the `STRIP' environment variable to overrule this program. 3031if test "$cross_compiling" != no; then 3032 if test -n "$ac_tool_prefix"; then 3033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3034set dummy ${ac_tool_prefix}strip; ac_word=$2 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3036$as_echo_n "checking for $ac_word... " >&6; } 3037if ${ac_cv_prog_STRIP+:} false; then : 3038 $as_echo_n "(cached) " >&6 3039else 3040 if test -n "$STRIP"; then 3041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3042else 3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3044for as_dir in $PATH 3045do 3046 IFS=$as_save_IFS 3047 test -z "$as_dir" && as_dir=. 3048 for ac_exec_ext in '' $ac_executable_extensions; do 3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3050 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3052 break 2 3053 fi 3054done 3055 done 3056IFS=$as_save_IFS 3057 3058fi 3059fi 3060STRIP=$ac_cv_prog_STRIP 3061if test -n "$STRIP"; then 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3063$as_echo "$STRIP" >&6; } 3064else 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066$as_echo "no" >&6; } 3067fi 3068 3069 3070fi 3071if test -z "$ac_cv_prog_STRIP"; then 3072 ac_ct_STRIP=$STRIP 3073 # Extract the first word of "strip", so it can be a program name with args. 3074set dummy strip; ac_word=$2 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3076$as_echo_n "checking for $ac_word... " >&6; } 3077if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3078 $as_echo_n "(cached) " >&6 3079else 3080 if test -n "$ac_ct_STRIP"; then 3081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3082else 3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3084for as_dir in $PATH 3085do 3086 IFS=$as_save_IFS 3087 test -z "$as_dir" && as_dir=. 3088 for ac_exec_ext in '' $ac_executable_extensions; do 3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3090 ac_cv_prog_ac_ct_STRIP="strip" 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094done 3095 done 3096IFS=$as_save_IFS 3097 3098fi 3099fi 3100ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3101if test -n "$ac_ct_STRIP"; then 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3103$as_echo "$ac_ct_STRIP" >&6; } 3104else 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3106$as_echo "no" >&6; } 3107fi 3108 3109 if test "x$ac_ct_STRIP" = x; then 3110 STRIP=":" 3111 else 3112 case $cross_compiling:$ac_tool_warned in 3113yes:) 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3116ac_tool_warned=yes ;; 3117esac 3118 STRIP=$ac_ct_STRIP 3119 fi 3120else 3121 STRIP="$ac_cv_prog_STRIP" 3122fi 3123 3124fi 3125INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3126 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3128$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3129if test -z "$MKDIR_P"; then 3130 if ${ac_cv_path_mkdir+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 for ac_prog in mkdir gmkdir; do 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3142 'mkdir (GNU coreutils) '* | \ 3143 'mkdir (coreutils) '* | \ 3144 'mkdir (fileutils) '4.1*) 3145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3146 break 3;; 3147 esac 3148 done 3149 done 3150 done 3151IFS=$as_save_IFS 3152 3153fi 3154 3155 test -d ./--version && rmdir ./--version 3156 if test "${ac_cv_path_mkdir+set}" = set; then 3157 MKDIR_P="$ac_cv_path_mkdir -p" 3158 else 3159 # As a last resort, use the slow shell script. Don't cache a 3160 # value for MKDIR_P within a source directory, because that will 3161 # break other packages using the cache if that directory is 3162 # removed, or if the value is a relative name. 3163 MKDIR_P="$ac_install_sh -d" 3164 fi 3165fi 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3167$as_echo "$MKDIR_P" >&6; } 3168 3169mkdir_p="$MKDIR_P" 3170case $mkdir_p in 3171 [\\/$]* | ?:[\\/]*) ;; 3172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3173esac 3174 3175for ac_prog in gawk mawk nawk awk 3176do 3177 # Extract the first word of "$ac_prog", so it can be a program name with args. 3178set dummy $ac_prog; ac_word=$2 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3180$as_echo_n "checking for $ac_word... " >&6; } 3181if ${ac_cv_prog_AWK+:} false; then : 3182 $as_echo_n "(cached) " >&6 3183else 3184 if test -n "$AWK"; then 3185 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3186else 3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188for as_dir in $PATH 3189do 3190 IFS=$as_save_IFS 3191 test -z "$as_dir" && as_dir=. 3192 for ac_exec_ext in '' $ac_executable_extensions; do 3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3194 ac_cv_prog_AWK="$ac_prog" 3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3196 break 2 3197 fi 3198done 3199 done 3200IFS=$as_save_IFS 3201 3202fi 3203fi 3204AWK=$ac_cv_prog_AWK 3205if test -n "$AWK"; then 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3207$as_echo "$AWK" >&6; } 3208else 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3210$as_echo "no" >&6; } 3211fi 3212 3213 3214 test -n "$AWK" && break 3215done 3216 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3218$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3219set x ${MAKE-make} 3220ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3221if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3222 $as_echo_n "(cached) " >&6 3223else 3224 cat >conftest.make <<\_ACEOF 3225SHELL = /bin/sh 3226all: 3227 @echo '@@@%%%=$(MAKE)=@@@%%%' 3228_ACEOF 3229# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3230case `${MAKE-make} -f conftest.make 2>/dev/null` in 3231 *@@@%%%=?*=@@@%%%*) 3232 eval ac_cv_prog_make_${ac_make}_set=yes;; 3233 *) 3234 eval ac_cv_prog_make_${ac_make}_set=no;; 3235esac 3236rm -f conftest.make 3237fi 3238if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3240$as_echo "yes" >&6; } 3241 SET_MAKE= 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245 SET_MAKE="MAKE=${MAKE-make}" 3246fi 3247 3248rm -rf .tst 2>/dev/null 3249mkdir .tst 2>/dev/null 3250if test -d .tst; then 3251 am__leading_dot=. 3252else 3253 am__leading_dot=_ 3254fi 3255rmdir .tst 2>/dev/null 3256 3257if test "`cd $srcdir && pwd`" != "`pwd`"; then 3258 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3259 # is not polluted with repeated "-I." 3260 am__isrc=' -I$(srcdir)' 3261 # test to see if srcdir already configured 3262 if test -f $srcdir/config.status; then 3263 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3264 fi 3265fi 3266 3267# test whether we have cygpath 3268if test -z "$CYGPATH_W"; then 3269 if (cygpath --version) >/dev/null 2>/dev/null; then 3270 CYGPATH_W='cygpath -w' 3271 else 3272 CYGPATH_W=echo 3273 fi 3274fi 3275 3276 3277# Define the identity of the package. 3278 PACKAGE='poppler' 3279 VERSION='0.16.3' 3280 3281 3282cat >>confdefs.h <<_ACEOF 3283#define PACKAGE "$PACKAGE" 3284_ACEOF 3285 3286 3287cat >>confdefs.h <<_ACEOF 3288#define VERSION "$VERSION" 3289_ACEOF 3290 3291# Some tools Automake needs. 3292 3293ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3294 3295 3296AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3297 3298 3299AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3300 3301 3302AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3303 3304 3305MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3306 3307# We need awk for the "check" target. The system "awk" is bad on 3308# some platforms. 3309# Always define AMTAR for backward compatibility. 3310 3311AMTAR=${AMTAR-"${am_missing_run}tar"} 3312 3313am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3314 3315 3316 3317 3318 3319# Check whether --enable-silent-rules was given. 3320if test "${enable_silent_rules+set}" = set; then : 3321 enableval=$enable_silent_rules; 3322fi 3323 3324case $enable_silent_rules in 3325yes) AM_DEFAULT_VERBOSITY=0;; 3326no) AM_DEFAULT_VERBOSITY=1;; 3327*) AM_DEFAULT_VERBOSITY=0;; 3328esac 3329AM_BACKSLASH='\' 3330 3331ac_config_headers="$ac_config_headers config.h" 3332 3333ac_config_headers="$ac_config_headers poppler/poppler-config.h" 3334 3335DEPDIR="${am__leading_dot}deps" 3336 3337ac_config_commands="$ac_config_commands depfiles" 3338 3339 3340am_make=${MAKE-make} 3341cat > confinc << 'END' 3342am__doit: 3343 @echo this is the am__doit target 3344.PHONY: am__doit 3345END 3346# If we don't find an include directive, just comment out the code. 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3348$as_echo_n "checking for style of include used by $am_make... " >&6; } 3349am__include="#" 3350am__quote= 3351_am_result=none 3352# First try GNU make style include. 3353echo "include confinc" > confmf 3354# Ignore all kinds of additional output from `make'. 3355case `$am_make -s -f confmf 2> /dev/null` in #( 3356*the\ am__doit\ target*) 3357 am__include=include 3358 am__quote= 3359 _am_result=GNU 3360 ;; 3361esac 3362# Now try BSD make style include. 3363if test "$am__include" = "#"; then 3364 echo '.include "confinc"' > confmf 3365 case `$am_make -s -f confmf 2> /dev/null` in #( 3366 *the\ am__doit\ target*) 3367 am__include=.include 3368 am__quote="\"" 3369 _am_result=BSD 3370 ;; 3371 esac 3372fi 3373 3374 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3376$as_echo "$_am_result" >&6; } 3377rm -f confinc confmf 3378 3379# Check whether --enable-dependency-tracking was given. 3380if test "${enable_dependency_tracking+set}" = set; then : 3381 enableval=$enable_dependency_tracking; 3382fi 3383 3384if test "x$enable_dependency_tracking" != xno; then 3385 am_depcomp="$ac_aux_dir/depcomp" 3386 AMDEPBACKSLASH='\' 3387fi 3388 if test "x$enable_dependency_tracking" != xno; then 3389 AMDEP_TRUE= 3390 AMDEP_FALSE='#' 3391else 3392 AMDEP_TRUE='#' 3393 AMDEP_FALSE= 3394fi 3395 3396 3397ac_ext=c 3398ac_cpp='$CPP $CPPFLAGS' 3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3401ac_compiler_gnu=$ac_cv_c_compiler_gnu 3402if test -n "$ac_tool_prefix"; then 3403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3404set dummy ${ac_tool_prefix}gcc; ac_word=$2 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3406$as_echo_n "checking for $ac_word... " >&6; } 3407if ${ac_cv_prog_CC+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 if test -n "$CC"; then 3411 ac_cv_prog_CC="$CC" # Let the user override the test. 3412else 3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3414for as_dir in $PATH 3415do 3416 IFS=$as_save_IFS 3417 test -z "$as_dir" && as_dir=. 3418 for ac_exec_ext in '' $ac_executable_extensions; do 3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3420 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3422 break 2 3423 fi 3424done 3425 done 3426IFS=$as_save_IFS 3427 3428fi 3429fi 3430CC=$ac_cv_prog_CC 3431if test -n "$CC"; then 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3433$as_echo "$CC" >&6; } 3434else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3436$as_echo "no" >&6; } 3437fi 3438 3439 3440fi 3441if test -z "$ac_cv_prog_CC"; then 3442 ac_ct_CC=$CC 3443 # Extract the first word of "gcc", so it can be a program name with args. 3444set dummy gcc; ac_word=$2 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3446$as_echo_n "checking for $ac_word... " >&6; } 3447if ${ac_cv_prog_ac_ct_CC+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 if test -n "$ac_ct_CC"; then 3451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3452else 3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3454for as_dir in $PATH 3455do 3456 IFS=$as_save_IFS 3457 test -z "$as_dir" && as_dir=. 3458 for ac_exec_ext in '' $ac_executable_extensions; do 3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3460 ac_cv_prog_ac_ct_CC="gcc" 3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3462 break 2 3463 fi 3464done 3465 done 3466IFS=$as_save_IFS 3467 3468fi 3469fi 3470ac_ct_CC=$ac_cv_prog_ac_ct_CC 3471if test -n "$ac_ct_CC"; then 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3473$as_echo "$ac_ct_CC" >&6; } 3474else 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476$as_echo "no" >&6; } 3477fi 3478 3479 if test "x$ac_ct_CC" = x; then 3480 CC="" 3481 else 3482 case $cross_compiling:$ac_tool_warned in 3483yes:) 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3486ac_tool_warned=yes ;; 3487esac 3488 CC=$ac_ct_CC 3489 fi 3490else 3491 CC="$ac_cv_prog_CC" 3492fi 3493 3494if test -z "$CC"; then 3495 if test -n "$ac_tool_prefix"; then 3496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3497set dummy ${ac_tool_prefix}cc; ac_word=$2 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3499$as_echo_n "checking for $ac_word... " >&6; } 3500if ${ac_cv_prog_CC+:} false; then : 3501 $as_echo_n "(cached) " >&6 3502else 3503 if test -n "$CC"; then 3504 ac_cv_prog_CC="$CC" # Let the user override the test. 3505else 3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3507for as_dir in $PATH 3508do 3509 IFS=$as_save_IFS 3510 test -z "$as_dir" && as_dir=. 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3513 ac_cv_prog_CC="${ac_tool_prefix}cc" 3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517done 3518 done 3519IFS=$as_save_IFS 3520 3521fi 3522fi 3523CC=$ac_cv_prog_CC 3524if test -n "$CC"; then 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3526$as_echo "$CC" >&6; } 3527else 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3529$as_echo "no" >&6; } 3530fi 3531 3532 3533 fi 3534fi 3535if test -z "$CC"; then 3536 # Extract the first word of "cc", so it can be a program name with args. 3537set dummy cc; ac_word=$2 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539$as_echo_n "checking for $ac_word... " >&6; } 3540if ${ac_cv_prog_CC+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 if test -n "$CC"; then 3544 ac_cv_prog_CC="$CC" # Let the user override the test. 3545else 3546 ac_prog_rejected=no 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 test -z "$as_dir" && as_dir=. 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3555 ac_prog_rejected=yes 3556 continue 3557 fi 3558 ac_cv_prog_CC="cc" 3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562done 3563 done 3564IFS=$as_save_IFS 3565 3566if test $ac_prog_rejected = yes; then 3567 # We found a bogon in the path, so make sure we never use it. 3568 set dummy $ac_cv_prog_CC 3569 shift 3570 if test $# != 0; then 3571 # We chose a different compiler from the bogus one. 3572 # However, it has the same basename, so the bogon will be chosen 3573 # first if we set CC to just the basename; use the full file name. 3574 shift 3575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3576 fi 3577fi 3578fi 3579fi 3580CC=$ac_cv_prog_CC 3581if test -n "$CC"; then 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3583$as_echo "$CC" >&6; } 3584else 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3586$as_echo "no" >&6; } 3587fi 3588 3589 3590fi 3591if test -z "$CC"; then 3592 if test -n "$ac_tool_prefix"; then 3593 for ac_prog in cl.exe 3594 do 3595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3596set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3598$as_echo_n "checking for $ac_word... " >&6; } 3599if ${ac_cv_prog_CC+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601else 3602 if test -n "$CC"; then 3603 ac_cv_prog_CC="$CC" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 test -z "$as_dir" && as_dir=. 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620fi 3621fi 3622CC=$ac_cv_prog_CC 3623if test -n "$CC"; then 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3625$as_echo "$CC" >&6; } 3626else 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629fi 3630 3631 3632 test -n "$CC" && break 3633 done 3634fi 3635if test -z "$CC"; then 3636 ac_ct_CC=$CC 3637 for ac_prog in cl.exe 3638do 3639 # Extract the first word of "$ac_prog", so it can be a program name with args. 3640set dummy $ac_prog; ac_word=$2 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3642$as_echo_n "checking for $ac_word... " >&6; } 3643if ${ac_cv_prog_ac_ct_CC+:} false; then : 3644 $as_echo_n "(cached) " >&6 3645else 3646 if test -n "$ac_ct_CC"; then 3647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3648else 3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH 3651do 3652 IFS=$as_save_IFS 3653 test -z "$as_dir" && as_dir=. 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_ac_ct_CC="$ac_prog" 3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661 done 3662IFS=$as_save_IFS 3663 3664fi 3665fi 3666ac_ct_CC=$ac_cv_prog_ac_ct_CC 3667if test -n "$ac_ct_CC"; then 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3669$as_echo "$ac_ct_CC" >&6; } 3670else 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3672$as_echo "no" >&6; } 3673fi 3674 3675 3676 test -n "$ac_ct_CC" && break 3677done 3678 3679 if test "x$ac_ct_CC" = x; then 3680 CC="" 3681 else 3682 case $cross_compiling:$ac_tool_warned in 3683yes:) 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3686ac_tool_warned=yes ;; 3687esac 3688 CC=$ac_ct_CC 3689 fi 3690fi 3691 3692fi 3693 3694 3695test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3697as_fn_error $? "no acceptable C compiler found in \$PATH 3698See \`config.log' for more details" "$LINENO" 5; } 3699 3700# Provide some information about the compiler. 3701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3702set X $ac_compile 3703ac_compiler=$2 3704for ac_option in --version -v -V -qversion; do 3705 { { ac_try="$ac_compiler $ac_option >&5" 3706case "(($ac_try" in 3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3708 *) ac_try_echo=$ac_try;; 3709esac 3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3711$as_echo "$ac_try_echo"; } >&5 3712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3713 ac_status=$? 3714 if test -s conftest.err; then 3715 sed '10a\ 3716... rest of stderr output deleted ... 3717 10q' conftest.err >conftest.er1 3718 cat conftest.er1 >&5 3719 fi 3720 rm -f conftest.er1 conftest.err 3721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3722 test $ac_status = 0; } 3723done 3724 3725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726/* end confdefs.h. */ 3727 3728int 3729main () 3730{ 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736ac_clean_files_save=$ac_clean_files 3737ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3738# Try to create an executable without -o first, disregard a.out. 3739# It will help us diagnose broken compilers, and finding out an intuition 3740# of exeext. 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3742$as_echo_n "checking whether the C compiler works... " >&6; } 3743ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3744 3745# The possible output files: 3746ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3747 3748ac_rmfiles= 3749for ac_file in $ac_files 3750do 3751 case $ac_file in 3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3753 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3754 esac 3755done 3756rm -f $ac_rmfiles 3757 3758if { { ac_try="$ac_link_default" 3759case "(($ac_try" in 3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3761 *) ac_try_echo=$ac_try;; 3762esac 3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3764$as_echo "$ac_try_echo"; } >&5 3765 (eval "$ac_link_default") 2>&5 3766 ac_status=$? 3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3768 test $ac_status = 0; }; then : 3769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3770# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3771# in a Makefile. We should not override ac_cv_exeext if it was cached, 3772# so that the user can short-circuit this test for compilers unknown to 3773# Autoconf. 3774for ac_file in $ac_files '' 3775do 3776 test -f "$ac_file" || continue 3777 case $ac_file in 3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3779 ;; 3780 [ab].out ) 3781 # We found the default executable, but exeext='' is most 3782 # certainly right. 3783 break;; 3784 *.* ) 3785 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3786 then :; else 3787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3788 fi 3789 # We set ac_cv_exeext here because the later test for it is not 3790 # safe: cross compilers may not add the suffix if given an `-o' 3791 # argument, so we may need to know it at that point already. 3792 # Even if this section looks crufty: it has the advantage of 3793 # actually working. 3794 break;; 3795 * ) 3796 break;; 3797 esac 3798done 3799test "$ac_cv_exeext" = no && ac_cv_exeext= 3800 3801else 3802 ac_file='' 3803fi 3804if test -z "$ac_file"; then : 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3806$as_echo "no" >&6; } 3807$as_echo "$as_me: failed program was:" >&5 3808sed 's/^/| /' conftest.$ac_ext >&5 3809 3810{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3812as_fn_error 77 "C compiler cannot create executables 3813See \`config.log' for more details" "$LINENO" 5; } 3814else 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3816$as_echo "yes" >&6; } 3817fi 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3819$as_echo_n "checking for C compiler default output file name... " >&6; } 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3821$as_echo "$ac_file" >&6; } 3822ac_exeext=$ac_cv_exeext 3823 3824rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3825ac_clean_files=$ac_clean_files_save 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3827$as_echo_n "checking for suffix of executables... " >&6; } 3828if { { ac_try="$ac_link" 3829case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832esac 3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3834$as_echo "$ac_try_echo"; } >&5 3835 (eval "$ac_link") 2>&5 3836 ac_status=$? 3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3838 test $ac_status = 0; }; then : 3839 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3840# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3841# work properly (i.e., refer to `conftest.exe'), while it won't with 3842# `rm'. 3843for ac_file in conftest.exe conftest conftest.*; do 3844 test -f "$ac_file" || continue 3845 case $ac_file in 3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3847 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3848 break;; 3849 * ) break;; 3850 esac 3851done 3852else 3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3855as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3856See \`config.log' for more details" "$LINENO" 5; } 3857fi 3858rm -f conftest conftest$ac_cv_exeext 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3860$as_echo "$ac_cv_exeext" >&6; } 3861 3862rm -f conftest.$ac_ext 3863EXEEXT=$ac_cv_exeext 3864ac_exeext=$EXEEXT 3865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3866/* end confdefs.h. */ 3867#include <stdio.h> 3868int 3869main () 3870{ 3871FILE *f = fopen ("conftest.out", "w"); 3872 return ferror (f) || fclose (f) != 0; 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878ac_clean_files="$ac_clean_files conftest.out" 3879# Check that the compiler produces executables we can run. If not, either 3880# the compiler is broken, or we cross compile. 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3882$as_echo_n "checking whether we are cross compiling... " >&6; } 3883if test "$cross_compiling" != yes; then 3884 { { ac_try="$ac_link" 3885case "(($ac_try" in 3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3887 *) ac_try_echo=$ac_try;; 3888esac 3889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3890$as_echo "$ac_try_echo"; } >&5 3891 (eval "$ac_link") 2>&5 3892 ac_status=$? 3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3894 test $ac_status = 0; } 3895 if { ac_try='./conftest$ac_cv_exeext' 3896 { { case "(($ac_try" in 3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3898 *) ac_try_echo=$ac_try;; 3899esac 3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3901$as_echo "$ac_try_echo"; } >&5 3902 (eval "$ac_try") 2>&5 3903 ac_status=$? 3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3905 test $ac_status = 0; }; }; then 3906 cross_compiling=no 3907 else 3908 if test "$cross_compiling" = maybe; then 3909 cross_compiling=yes 3910 else 3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3913as_fn_error $? "cannot run C compiled programs. 3914If you meant to cross compile, use \`--host'. 3915See \`config.log' for more details" "$LINENO" 5; } 3916 fi 3917 fi 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3920$as_echo "$cross_compiling" >&6; } 3921 3922rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3923ac_clean_files=$ac_clean_files_save 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3925$as_echo_n "checking for suffix of object files... " >&6; } 3926if ${ac_cv_objext+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931 3932int 3933main () 3934{ 3935 3936 ; 3937 return 0; 3938} 3939_ACEOF 3940rm -f conftest.o conftest.obj 3941if { { ac_try="$ac_compile" 3942case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945esac 3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3947$as_echo "$ac_try_echo"; } >&5 3948 (eval "$ac_compile") 2>&5 3949 ac_status=$? 3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; }; then : 3952 for ac_file in conftest.o conftest.obj conftest.*; do 3953 test -f "$ac_file" || continue; 3954 case $ac_file in 3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3957 break;; 3958 esac 3959done 3960else 3961 $as_echo "$as_me: failed program was:" >&5 3962sed 's/^/| /' conftest.$ac_ext >&5 3963 3964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3966as_fn_error $? "cannot compute suffix of object files: cannot compile 3967See \`config.log' for more details" "$LINENO" 5; } 3968fi 3969rm -f conftest.$ac_cv_objext conftest.$ac_ext 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3972$as_echo "$ac_cv_objext" >&6; } 3973OBJEXT=$ac_cv_objext 3974ac_objext=$OBJEXT 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3976$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3977if ${ac_cv_c_compiler_gnu+:} false; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982 3983int 3984main () 3985{ 3986#ifndef __GNUC__ 3987 choke me 3988#endif 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994if ac_fn_c_try_compile "$LINENO"; then : 3995 ac_compiler_gnu=yes 3996else 3997 ac_compiler_gnu=no 3998fi 3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4000ac_cv_c_compiler_gnu=$ac_compiler_gnu 4001 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4004$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4005if test $ac_compiler_gnu = yes; then 4006 GCC=yes 4007else 4008 GCC= 4009fi 4010ac_test_CFLAGS=${CFLAGS+set} 4011ac_save_CFLAGS=$CFLAGS 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4013$as_echo_n "checking whether $CC accepts -g... " >&6; } 4014if ${ac_cv_prog_cc_g+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 ac_save_c_werror_flag=$ac_c_werror_flag 4018 ac_c_werror_flag=yes 4019 ac_cv_prog_cc_g=no 4020 CFLAGS="-g" 4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4022/* end confdefs.h. */ 4023 4024int 4025main () 4026{ 4027 4028 ; 4029 return 0; 4030} 4031_ACEOF 4032if ac_fn_c_try_compile "$LINENO"; then : 4033 ac_cv_prog_cc_g=yes 4034else 4035 CFLAGS="" 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038 4039int 4040main () 4041{ 4042 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047if ac_fn_c_try_compile "$LINENO"; then : 4048 4049else 4050 ac_c_werror_flag=$ac_save_c_werror_flag 4051 CFLAGS="-g" 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054 4055int 4056main () 4057{ 4058 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063if ac_fn_c_try_compile "$LINENO"; then : 4064 ac_cv_prog_cc_g=yes 4065fi 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4067fi 4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4069fi 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071 ac_c_werror_flag=$ac_save_c_werror_flag 4072fi 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4074$as_echo "$ac_cv_prog_cc_g" >&6; } 4075if test "$ac_test_CFLAGS" = set; then 4076 CFLAGS=$ac_save_CFLAGS 4077elif test $ac_cv_prog_cc_g = yes; then 4078 if test "$GCC" = yes; then 4079 CFLAGS="-g -O2" 4080 else 4081 CFLAGS="-g" 4082 fi 4083else 4084 if test "$GCC" = yes; then 4085 CFLAGS="-O2" 4086 else 4087 CFLAGS= 4088 fi 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4091$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4092if ${ac_cv_prog_cc_c89+:} false; then : 4093 $as_echo_n "(cached) " >&6 4094else 4095 ac_cv_prog_cc_c89=no 4096ac_save_CC=$CC 4097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#include <stdarg.h> 4100#include <stdio.h> 4101struct stat; 4102/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4103struct buf { int x; }; 4104FILE * (*rcsopen) (struct buf *, struct stat *, int); 4105static char *e (p, i) 4106 char **p; 4107 int i; 4108{ 4109 return p[i]; 4110} 4111static char *f (char * (*g) (char **, int), char **p, ...) 4112{ 4113 char *s; 4114 va_list v; 4115 va_start (v,p); 4116 s = g (p, va_arg (v,int)); 4117 va_end (v); 4118 return s; 4119} 4120 4121/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4122 function prototypes and stuff, but not '\xHH' hex character constants. 4123 These don't provoke an error unfortunately, instead are silently treated 4124 as 'x'. The following induces an error, until -std is added to get 4125 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4126 array size at least. It's necessary to write '\x00'==0 to get something 4127 that's true only with -std. */ 4128int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4129 4130/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4131 inside strings and character constants. */ 4132#define FOO(x) 'x' 4133int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4134 4135int test (int i, double x); 4136struct s1 {int (*f) (int a);}; 4137struct s2 {int (*f) (double a);}; 4138int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4139int argc; 4140char **argv; 4141int 4142main () 4143{ 4144return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4150 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4151do 4152 CC="$ac_save_CC $ac_arg" 4153 if ac_fn_c_try_compile "$LINENO"; then : 4154 ac_cv_prog_cc_c89=$ac_arg 4155fi 4156rm -f core conftest.err conftest.$ac_objext 4157 test "x$ac_cv_prog_cc_c89" != "xno" && break 4158done 4159rm -f conftest.$ac_ext 4160CC=$ac_save_CC 4161 4162fi 4163# AC_CACHE_VAL 4164case "x$ac_cv_prog_cc_c89" in 4165 x) 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4167$as_echo "none needed" >&6; } ;; 4168 xno) 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4170$as_echo "unsupported" >&6; } ;; 4171 *) 4172 CC="$CC $ac_cv_prog_cc_c89" 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4174$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4175esac 4176if test "x$ac_cv_prog_cc_c89" != xno; then : 4177 4178fi 4179 4180ac_ext=c 4181ac_cpp='$CPP $CPPFLAGS' 4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4184ac_compiler_gnu=$ac_cv_c_compiler_gnu 4185 4186depcc="$CC" am_compiler_list= 4187 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4189$as_echo_n "checking dependency style of $depcc... " >&6; } 4190if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4194 # We make a subdir and do the tests there. Otherwise we can end up 4195 # making bogus files that we don't know about and never remove. For 4196 # instance it was reported that on HP-UX the gcc test will end up 4197 # making a dummy file named `D' -- because `-MD' means `put the output 4198 # in D'. 4199 mkdir conftest.dir 4200 # Copy depcomp to subdir because otherwise we won't find it if we're 4201 # using a relative directory. 4202 cp "$am_depcomp" conftest.dir 4203 cd conftest.dir 4204 # We will build objects and dependencies in a subdirectory because 4205 # it helps to detect inapplicable dependency modes. For instance 4206 # both Tru64's cc and ICC support -MD to output dependencies as a 4207 # side effect of compilation, but ICC will put the dependencies in 4208 # the current directory while Tru64 will put them in the object 4209 # directory. 4210 mkdir sub 4211 4212 am_cv_CC_dependencies_compiler_type=none 4213 if test "$am_compiler_list" = ""; then 4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4215 fi 4216 am__universal=false 4217 case " $depcc " in #( 4218 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4219 esac 4220 4221 for depmode in $am_compiler_list; do 4222 # Setup a source with many dependencies, because some compilers 4223 # like to wrap large dependency lists on column 80 (with \), and 4224 # we should not choose a depcomp mode which is confused by this. 4225 # 4226 # We need to recreate these files for each test, as the compiler may 4227 # overwrite some of them when testing with obscure command lines. 4228 # This happens at least with the AIX C compiler. 4229 : > sub/conftest.c 4230 for i in 1 2 3 4 5 6; do 4231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4233 # Solaris 8's {/usr,}/bin/sh. 4234 touch sub/conftst$i.h 4235 done 4236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4237 4238 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4239 # mode. It turns out that the SunPro C++ compiler does not properly 4240 # handle `-M -o', and we need to detect this. Also, some Intel 4241 # versions had trouble with output in subdirs 4242 am__obj=sub/conftest.${OBJEXT-o} 4243 am__minus_obj="-o $am__obj" 4244 case $depmode in 4245 gcc) 4246 # This depmode causes a compiler race in universal mode. 4247 test "$am__universal" = false || continue 4248 ;; 4249 nosideeffect) 4250 # after this tag, mechanisms are not by side-effect, so they'll 4251 # only be used when explicitly requested 4252 if test "x$enable_dependency_tracking" = xyes; then 4253 continue 4254 else 4255 break 4256 fi 4257 ;; 4258 msvisualcpp | msvcmsys) 4259 # This compiler won't grok `-c -o', but also, the minuso test has 4260 # not run yet. These depmodes are late enough in the game, and 4261 # so weak that their functioning should not be impacted. 4262 am__obj=conftest.${OBJEXT-o} 4263 am__minus_obj= 4264 ;; 4265 none) break ;; 4266 esac 4267 if depmode=$depmode \ 4268 source=sub/conftest.c object=$am__obj \ 4269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4271 >/dev/null 2>conftest.err && 4272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4276 # icc doesn't choke on unknown options, it will just issue warnings 4277 # or remarks (even with -Werror). So we grep stderr for any message 4278 # that says an option was ignored or not supported. 4279 # When given -MP, icc 7.0 and 7.1 complain thusly: 4280 # icc: Command line warning: ignoring option '-M'; no argument required 4281 # The diagnosis changed in icc 8.0: 4282 # icc: Command line remark: option '-MP' not supported 4283 if (grep 'ignoring option' conftest.err || 4284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4285 am_cv_CC_dependencies_compiler_type=$depmode 4286 break 4287 fi 4288 fi 4289 done 4290 4291 cd .. 4292 rm -rf conftest.dir 4293else 4294 am_cv_CC_dependencies_compiler_type=none 4295fi 4296 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4299$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4300CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4301 4302 if 4303 test "x$enable_dependency_tracking" != xno \ 4304 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4305 am__fastdepCC_TRUE= 4306 am__fastdepCC_FALSE='#' 4307else 4308 am__fastdepCC_TRUE='#' 4309 am__fastdepCC_FALSE= 4310fi 4311 4312 4313 4314ac_ext=c 4315ac_cpp='$CPP $CPPFLAGS' 4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4318ac_compiler_gnu=$ac_cv_c_compiler_gnu 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4320$as_echo_n "checking how to run the C preprocessor... " >&6; } 4321# On Suns, sometimes $CPP names a directory. 4322if test -n "$CPP" && test -d "$CPP"; then 4323 CPP= 4324fi 4325if test -z "$CPP"; then 4326 if ${ac_cv_prog_CPP+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 # Double quotes because CPP needs to be expanded 4330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4331 do 4332 ac_preproc_ok=false 4333for ac_c_preproc_warn_flag in '' yes 4334do 4335 # Use a header file that comes with gcc, so configuring glibc 4336 # with a fresh cross-compiler works. 4337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4338 # <limits.h> exists even on freestanding compilers. 4339 # On the NeXT, cc -E runs the code through the compiler's parser, 4340 # not just through cpp. "Syntax error" is here to catch this case. 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343#ifdef __STDC__ 4344# include <limits.h> 4345#else 4346# include <assert.h> 4347#endif 4348 Syntax error 4349_ACEOF 4350if ac_fn_c_try_cpp "$LINENO"; then : 4351 4352else 4353 # Broken: fails on valid input. 4354continue 4355fi 4356rm -f conftest.err conftest.i conftest.$ac_ext 4357 4358 # OK, works on sane cases. Now check whether nonexistent headers 4359 # can be detected and how. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <ac_nonexistent.h> 4363_ACEOF 4364if ac_fn_c_try_cpp "$LINENO"; then : 4365 # Broken: success on invalid input. 4366continue 4367else 4368 # Passes both tests. 4369ac_preproc_ok=: 4370break 4371fi 4372rm -f conftest.err conftest.i conftest.$ac_ext 4373 4374done 4375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4376rm -f conftest.i conftest.err conftest.$ac_ext 4377if $ac_preproc_ok; then : 4378 break 4379fi 4380 4381 done 4382 ac_cv_prog_CPP=$CPP 4383 4384fi 4385 CPP=$ac_cv_prog_CPP 4386else 4387 ac_cv_prog_CPP=$CPP 4388fi 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4390$as_echo "$CPP" >&6; } 4391ac_preproc_ok=false 4392for ac_c_preproc_warn_flag in '' yes 4393do 4394 # Use a header file that comes with gcc, so configuring glibc 4395 # with a fresh cross-compiler works. 4396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4397 # <limits.h> exists even on freestanding compilers. 4398 # On the NeXT, cc -E runs the code through the compiler's parser, 4399 # not just through cpp. "Syntax error" is here to catch this case. 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402#ifdef __STDC__ 4403# include <limits.h> 4404#else 4405# include <assert.h> 4406#endif 4407 Syntax error 4408_ACEOF 4409if ac_fn_c_try_cpp "$LINENO"; then : 4410 4411else 4412 # Broken: fails on valid input. 4413continue 4414fi 4415rm -f conftest.err conftest.i conftest.$ac_ext 4416 4417 # OK, works on sane cases. Now check whether nonexistent headers 4418 # can be detected and how. 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420/* end confdefs.h. */ 4421#include <ac_nonexistent.h> 4422_ACEOF 4423if ac_fn_c_try_cpp "$LINENO"; then : 4424 # Broken: success on invalid input. 4425continue 4426else 4427 # Passes both tests. 4428ac_preproc_ok=: 4429break 4430fi 4431rm -f conftest.err conftest.i conftest.$ac_ext 4432 4433done 4434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4435rm -f conftest.i conftest.err conftest.$ac_ext 4436if $ac_preproc_ok; then : 4437 4438else 4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4441as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4442See \`config.log' for more details" "$LINENO" 5; } 4443fi 4444 4445ac_ext=c 4446ac_cpp='$CPP $CPPFLAGS' 4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4449ac_compiler_gnu=$ac_cv_c_compiler_gnu 4450 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4453$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4454if ${ac_cv_path_GREP+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -z "$GREP"; then 4458 ac_path_GREP_found=false 4459 # Loop through the user's path and test for each of PROGNAME-LIST 4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4462do 4463 IFS=$as_save_IFS 4464 test -z "$as_dir" && as_dir=. 4465 for ac_prog in grep ggrep; do 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4468 as_fn_executable_p "$ac_path_GREP" || continue 4469# Check for GNU ac_path_GREP and select it if it is found. 4470 # Check for GNU $ac_path_GREP 4471case `"$ac_path_GREP" --version 2>&1` in 4472*GNU*) 4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4474*) 4475 ac_count=0 4476 $as_echo_n 0123456789 >"conftest.in" 4477 while : 4478 do 4479 cat "conftest.in" "conftest.in" >"conftest.tmp" 4480 mv "conftest.tmp" "conftest.in" 4481 cp "conftest.in" "conftest.nl" 4482 $as_echo 'GREP' >> "conftest.nl" 4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4485 as_fn_arith $ac_count + 1 && ac_count=$as_val 4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4487 # Best one so far, save it but keep looking for a better one 4488 ac_cv_path_GREP="$ac_path_GREP" 4489 ac_path_GREP_max=$ac_count 4490 fi 4491 # 10*(2^10) chars as input seems more than enough 4492 test $ac_count -gt 10 && break 4493 done 4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4495esac 4496 4497 $ac_path_GREP_found && break 3 4498 done 4499 done 4500 done 4501IFS=$as_save_IFS 4502 if test -z "$ac_cv_path_GREP"; then 4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4504 fi 4505else 4506 ac_cv_path_GREP=$GREP 4507fi 4508 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4511$as_echo "$ac_cv_path_GREP" >&6; } 4512 GREP="$ac_cv_path_GREP" 4513 4514 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4516$as_echo_n "checking for egrep... " >&6; } 4517if ${ac_cv_path_EGREP+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4521 then ac_cv_path_EGREP="$GREP -E" 4522 else 4523 if test -z "$EGREP"; then 4524 ac_path_EGREP_found=false 4525 # Loop through the user's path and test for each of PROGNAME-LIST 4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_prog in egrep; do 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4534 as_fn_executable_p "$ac_path_EGREP" || continue 4535# Check for GNU ac_path_EGREP and select it if it is found. 4536 # Check for GNU $ac_path_EGREP 4537case `"$ac_path_EGREP" --version 2>&1` in 4538*GNU*) 4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4540*) 4541 ac_count=0 4542 $as_echo_n 0123456789 >"conftest.in" 4543 while : 4544 do 4545 cat "conftest.in" "conftest.in" >"conftest.tmp" 4546 mv "conftest.tmp" "conftest.in" 4547 cp "conftest.in" "conftest.nl" 4548 $as_echo 'EGREP' >> "conftest.nl" 4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4551 as_fn_arith $ac_count + 1 && ac_count=$as_val 4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4553 # Best one so far, save it but keep looking for a better one 4554 ac_cv_path_EGREP="$ac_path_EGREP" 4555 ac_path_EGREP_max=$ac_count 4556 fi 4557 # 10*(2^10) chars as input seems more than enough 4558 test $ac_count -gt 10 && break 4559 done 4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4561esac 4562 4563 $ac_path_EGREP_found && break 3 4564 done 4565 done 4566 done 4567IFS=$as_save_IFS 4568 if test -z "$ac_cv_path_EGREP"; then 4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4570 fi 4571else 4572 ac_cv_path_EGREP=$EGREP 4573fi 4574 4575 fi 4576fi 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4578$as_echo "$ac_cv_path_EGREP" >&6; } 4579 EGREP="$ac_cv_path_EGREP" 4580 4581 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4583$as_echo_n "checking for ANSI C header files... " >&6; } 4584if ${ac_cv_header_stdc+:} false; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589#include <stdlib.h> 4590#include <stdarg.h> 4591#include <string.h> 4592#include <float.h> 4593 4594int 4595main () 4596{ 4597 4598 ; 4599 return 0; 4600} 4601_ACEOF 4602if ac_fn_c_try_compile "$LINENO"; then : 4603 ac_cv_header_stdc=yes 4604else 4605 ac_cv_header_stdc=no 4606fi 4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4608 4609if test $ac_cv_header_stdc = yes; then 4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613#include <string.h> 4614 4615_ACEOF 4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4617 $EGREP "memchr" >/dev/null 2>&1; then : 4618 4619else 4620 ac_cv_header_stdc=no 4621fi 4622rm -f conftest* 4623 4624fi 4625 4626if test $ac_cv_header_stdc = yes; then 4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630#include <stdlib.h> 4631 4632_ACEOF 4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4634 $EGREP "free" >/dev/null 2>&1; then : 4635 4636else 4637 ac_cv_header_stdc=no 4638fi 4639rm -f conftest* 4640 4641fi 4642 4643if test $ac_cv_header_stdc = yes; then 4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4645 if test "$cross_compiling" = yes; then : 4646 : 4647else 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650#include <ctype.h> 4651#include <stdlib.h> 4652#if ((' ' & 0x0FF) == 0x020) 4653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4655#else 4656# define ISLOWER(c) \ 4657 (('a' <= (c) && (c) <= 'i') \ 4658 || ('j' <= (c) && (c) <= 'r') \ 4659 || ('s' <= (c) && (c) <= 'z')) 4660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4661#endif 4662 4663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4664int 4665main () 4666{ 4667 int i; 4668 for (i = 0; i < 256; i++) 4669 if (XOR (islower (i), ISLOWER (i)) 4670 || toupper (i) != TOUPPER (i)) 4671 return 2; 4672 return 0; 4673} 4674_ACEOF 4675if ac_fn_c_try_run "$LINENO"; then : 4676 4677else 4678 ac_cv_header_stdc=no 4679fi 4680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4681 conftest.$ac_objext conftest.beam conftest.$ac_ext 4682fi 4683 4684fi 4685fi 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4687$as_echo "$ac_cv_header_stdc" >&6; } 4688if test $ac_cv_header_stdc = yes; then 4689 4690$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4691 4692fi 4693 4694# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4695for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4696 inttypes.h stdint.h unistd.h 4697do : 4698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4699ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4700" 4701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4702 cat >>confdefs.h <<_ACEOF 4703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4704_ACEOF 4705 4706fi 4707 4708done 4709 4710 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4712$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4713if ${ac_cv_c_bigendian+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 ac_cv_c_bigendian=unknown 4717 # See if we're dealing with a universal compiler. 4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4719/* end confdefs.h. */ 4720#ifndef __APPLE_CC__ 4721 not a universal capable compiler 4722 #endif 4723 typedef int dummy; 4724 4725_ACEOF 4726if ac_fn_c_try_compile "$LINENO"; then : 4727 4728 # Check for potential -arch flags. It is not universal unless 4729 # there are at least two -arch flags with different values. 4730 ac_arch= 4731 ac_prev= 4732 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4733 if test -n "$ac_prev"; then 4734 case $ac_word in 4735 i?86 | x86_64 | ppc | ppc64) 4736 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4737 ac_arch=$ac_word 4738 else 4739 ac_cv_c_bigendian=universal 4740 break 4741 fi 4742 ;; 4743 esac 4744 ac_prev= 4745 elif test "x$ac_word" = "x-arch"; then 4746 ac_prev=arch 4747 fi 4748 done 4749fi 4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4751 if test $ac_cv_c_bigendian = unknown; then 4752 # See if sys/param.h defines the BYTE_ORDER macro. 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755#include <sys/types.h> 4756 #include <sys/param.h> 4757 4758int 4759main () 4760{ 4761#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4762 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4763 && LITTLE_ENDIAN) 4764 bogus endian macros 4765 #endif 4766 4767 ; 4768 return 0; 4769} 4770_ACEOF 4771if ac_fn_c_try_compile "$LINENO"; then : 4772 # It does; now see whether it defined to BIG_ENDIAN or not. 4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774/* end confdefs.h. */ 4775#include <sys/types.h> 4776 #include <sys/param.h> 4777 4778int 4779main () 4780{ 4781#if BYTE_ORDER != BIG_ENDIAN 4782 not big endian 4783 #endif 4784 4785 ; 4786 return 0; 4787} 4788_ACEOF 4789if ac_fn_c_try_compile "$LINENO"; then : 4790 ac_cv_c_bigendian=yes 4791else 4792 ac_cv_c_bigendian=no 4793fi 4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4795fi 4796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4797 fi 4798 if test $ac_cv_c_bigendian = unknown; then 4799 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802#include <limits.h> 4803 4804int 4805main () 4806{ 4807#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4808 bogus endian macros 4809 #endif 4810 4811 ; 4812 return 0; 4813} 4814_ACEOF 4815if ac_fn_c_try_compile "$LINENO"; then : 4816 # It does; now see whether it defined to _BIG_ENDIAN or not. 4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4818/* end confdefs.h. */ 4819#include <limits.h> 4820 4821int 4822main () 4823{ 4824#ifndef _BIG_ENDIAN 4825 not big endian 4826 #endif 4827 4828 ; 4829 return 0; 4830} 4831_ACEOF 4832if ac_fn_c_try_compile "$LINENO"; then : 4833 ac_cv_c_bigendian=yes 4834else 4835 ac_cv_c_bigendian=no 4836fi 4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4838fi 4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4840 fi 4841 if test $ac_cv_c_bigendian = unknown; then 4842 # Compile a test program. 4843 if test "$cross_compiling" = yes; then : 4844 # Try to guess by grepping values from an object file. 4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4846/* end confdefs.h. */ 4847short int ascii_mm[] = 4848 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4849 short int ascii_ii[] = 4850 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4851 int use_ascii (int i) { 4852 return ascii_mm[i] + ascii_ii[i]; 4853 } 4854 short int ebcdic_ii[] = 4855 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4856 short int ebcdic_mm[] = 4857 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4858 int use_ebcdic (int i) { 4859 return ebcdic_mm[i] + ebcdic_ii[i]; 4860 } 4861 extern int foo; 4862 4863int 4864main () 4865{ 4866return use_ascii (foo) == use_ebcdic (foo); 4867 ; 4868 return 0; 4869} 4870_ACEOF 4871if ac_fn_c_try_compile "$LINENO"; then : 4872 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4873 ac_cv_c_bigendian=yes 4874 fi 4875 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4876 if test "$ac_cv_c_bigendian" = unknown; then 4877 ac_cv_c_bigendian=no 4878 else 4879 # finding both strings is unlikely to happen, but who knows? 4880 ac_cv_c_bigendian=unknown 4881 fi 4882 fi 4883fi 4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4885else 4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888$ac_includes_default 4889int 4890main () 4891{ 4892 4893 /* Are we little or big endian? From Harbison&Steele. */ 4894 union 4895 { 4896 long int l; 4897 char c[sizeof (long int)]; 4898 } u; 4899 u.l = 1; 4900 return u.c[sizeof (long int) - 1] == 1; 4901 4902 ; 4903 return 0; 4904} 4905_ACEOF 4906if ac_fn_c_try_run "$LINENO"; then : 4907 ac_cv_c_bigendian=no 4908else 4909 ac_cv_c_bigendian=yes 4910fi 4911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4912 conftest.$ac_objext conftest.beam conftest.$ac_ext 4913fi 4914 4915 fi 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4918$as_echo "$ac_cv_c_bigendian" >&6; } 4919 case $ac_cv_c_bigendian in #( 4920 yes) 4921 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4922;; #( 4923 no) 4924 ;; #( 4925 universal) 4926 4927$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4928 4929 ;; #( 4930 *) 4931 as_fn_error $? "unknown endianness 4932 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4933 esac 4934 4935 4936# Make sure we can run config.sub. 4937$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4938 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4939 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4941$as_echo_n "checking build system type... " >&6; } 4942if ${ac_cv_build+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 ac_build_alias=$build_alias 4946test "x$ac_build_alias" = x && 4947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4948test "x$ac_build_alias" = x && 4949 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4950ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4952 4953fi 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4955$as_echo "$ac_cv_build" >&6; } 4956case $ac_cv_build in 4957*-*-*) ;; 4958*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4959esac 4960build=$ac_cv_build 4961ac_save_IFS=$IFS; IFS='-' 4962set x $ac_cv_build 4963shift 4964build_cpu=$1 4965build_vendor=$2 4966shift; shift 4967# Remember, the first character of IFS is used to create $*, 4968# except with old shells: 4969build_os=$* 4970IFS=$ac_save_IFS 4971case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4972 4973 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4975$as_echo_n "checking host system type... " >&6; } 4976if ${ac_cv_host+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 if test "x$host_alias" = x; then 4980 ac_cv_host=$ac_cv_build 4981else 4982 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4983 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4984fi 4985 4986fi 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4988$as_echo "$ac_cv_host" >&6; } 4989case $ac_cv_host in 4990*-*-*) ;; 4991*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4992esac 4993host=$ac_cv_host 4994ac_save_IFS=$IFS; IFS='-' 4995set x $ac_cv_host 4996shift 4997host_cpu=$1 4998host_vendor=$2 4999shift; shift 5000# Remember, the first character of IFS is used to create $*, 5001# except with old shells: 5002host_os=$* 5003IFS=$ac_save_IFS 5004case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5005 5006 5007enable_win32_dll=yes 5008 5009case $host in 5010*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5011 if test -n "$ac_tool_prefix"; then 5012 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5013set dummy ${ac_tool_prefix}as; ac_word=$2 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5015$as_echo_n "checking for $ac_word... " >&6; } 5016if ${ac_cv_prog_AS+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 if test -n "$AS"; then 5020 ac_cv_prog_AS="$AS" # Let the user override the test. 5021else 5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5023for as_dir in $PATH 5024do 5025 IFS=$as_save_IFS 5026 test -z "$as_dir" && as_dir=. 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5029 ac_cv_prog_AS="${ac_tool_prefix}as" 5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5031 break 2 5032 fi 5033done 5034 done 5035IFS=$as_save_IFS 5036 5037fi 5038fi 5039AS=$ac_cv_prog_AS 5040if test -n "$AS"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5042$as_echo "$AS" >&6; } 5043else 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045$as_echo "no" >&6; } 5046fi 5047 5048 5049fi 5050if test -z "$ac_cv_prog_AS"; then 5051 ac_ct_AS=$AS 5052 # Extract the first word of "as", so it can be a program name with args. 5053set dummy as; ac_word=$2 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5055$as_echo_n "checking for $ac_word... " >&6; } 5056if ${ac_cv_prog_ac_ct_AS+:} false; then : 5057 $as_echo_n "(cached) " >&6 5058else 5059 if test -n "$ac_ct_AS"; then 5060 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5061else 5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5063for as_dir in $PATH 5064do 5065 IFS=$as_save_IFS 5066 test -z "$as_dir" && as_dir=. 5067 for ac_exec_ext in '' $ac_executable_extensions; do 5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5069 ac_cv_prog_ac_ct_AS="as" 5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5071 break 2 5072 fi 5073done 5074 done 5075IFS=$as_save_IFS 5076 5077fi 5078fi 5079ac_ct_AS=$ac_cv_prog_ac_ct_AS 5080if test -n "$ac_ct_AS"; then 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5082$as_echo "$ac_ct_AS" >&6; } 5083else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5085$as_echo "no" >&6; } 5086fi 5087 5088 if test "x$ac_ct_AS" = x; then 5089 AS="false" 5090 else 5091 case $cross_compiling:$ac_tool_warned in 5092yes:) 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5095ac_tool_warned=yes ;; 5096esac 5097 AS=$ac_ct_AS 5098 fi 5099else 5100 AS="$ac_cv_prog_AS" 5101fi 5102 5103 if test -n "$ac_tool_prefix"; then 5104 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5105set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5107$as_echo_n "checking for $ac_word... " >&6; } 5108if ${ac_cv_prog_DLLTOOL+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 if test -n "$DLLTOOL"; then 5112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5113else 5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5115for as_dir in $PATH 5116do 5117 IFS=$as_save_IFS 5118 test -z "$as_dir" && as_dir=. 5119 for ac_exec_ext in '' $ac_executable_extensions; do 5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5121 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5123 break 2 5124 fi 5125done 5126 done 5127IFS=$as_save_IFS 5128 5129fi 5130fi 5131DLLTOOL=$ac_cv_prog_DLLTOOL 5132if test -n "$DLLTOOL"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5134$as_echo "$DLLTOOL" >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5137$as_echo "no" >&6; } 5138fi 5139 5140 5141fi 5142if test -z "$ac_cv_prog_DLLTOOL"; then 5143 ac_ct_DLLTOOL=$DLLTOOL 5144 # Extract the first word of "dlltool", so it can be a program name with args. 5145set dummy dlltool; ac_word=$2 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5147$as_echo_n "checking for $ac_word... " >&6; } 5148if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if test -n "$ac_ct_DLLTOOL"; then 5152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5153else 5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5155for as_dir in $PATH 5156do 5157 IFS=$as_save_IFS 5158 test -z "$as_dir" && as_dir=. 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5161 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5163 break 2 5164 fi 5165done 5166 done 5167IFS=$as_save_IFS 5168 5169fi 5170fi 5171ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5172if test -n "$ac_ct_DLLTOOL"; then 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5174$as_echo "$ac_ct_DLLTOOL" >&6; } 5175else 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5177$as_echo "no" >&6; } 5178fi 5179 5180 if test "x$ac_ct_DLLTOOL" = x; then 5181 DLLTOOL="false" 5182 else 5183 case $cross_compiling:$ac_tool_warned in 5184yes:) 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5187ac_tool_warned=yes ;; 5188esac 5189 DLLTOOL=$ac_ct_DLLTOOL 5190 fi 5191else 5192 DLLTOOL="$ac_cv_prog_DLLTOOL" 5193fi 5194 5195 if test -n "$ac_tool_prefix"; then 5196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5197set dummy ${ac_tool_prefix}objdump; ac_word=$2 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5199$as_echo_n "checking for $ac_word... " >&6; } 5200if ${ac_cv_prog_OBJDUMP+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 if test -n "$OBJDUMP"; then 5204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5205else 5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5207for as_dir in $PATH 5208do 5209 IFS=$as_save_IFS 5210 test -z "$as_dir" && as_dir=. 5211 for ac_exec_ext in '' $ac_executable_extensions; do 5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5215 break 2 5216 fi 5217done 5218 done 5219IFS=$as_save_IFS 5220 5221fi 5222fi 5223OBJDUMP=$ac_cv_prog_OBJDUMP 5224if test -n "$OBJDUMP"; then 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5226$as_echo "$OBJDUMP" >&6; } 5227else 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5229$as_echo "no" >&6; } 5230fi 5231 5232 5233fi 5234if test -z "$ac_cv_prog_OBJDUMP"; then 5235 ac_ct_OBJDUMP=$OBJDUMP 5236 # Extract the first word of "objdump", so it can be a program name with args. 5237set dummy objdump; ac_word=$2 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5239$as_echo_n "checking for $ac_word... " >&6; } 5240if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5241 $as_echo_n "(cached) " >&6 5242else 5243 if test -n "$ac_ct_OBJDUMP"; then 5244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5245else 5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247for as_dir in $PATH 5248do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_exec_ext in '' $ac_executable_extensions; do 5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5253 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5255 break 2 5256 fi 5257done 5258 done 5259IFS=$as_save_IFS 5260 5261fi 5262fi 5263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5264if test -n "$ac_ct_OBJDUMP"; then 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5266$as_echo "$ac_ct_OBJDUMP" >&6; } 5267else 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5269$as_echo "no" >&6; } 5270fi 5271 5272 if test "x$ac_ct_OBJDUMP" = x; then 5273 OBJDUMP="false" 5274 else 5275 case $cross_compiling:$ac_tool_warned in 5276yes:) 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5279ac_tool_warned=yes ;; 5280esac 5281 OBJDUMP=$ac_ct_OBJDUMP 5282 fi 5283else 5284 OBJDUMP="$ac_cv_prog_OBJDUMP" 5285fi 5286 5287 ;; 5288esac 5289 5290test -z "$AS" && AS=as 5291 5292 5293 5294 5295 5296test -z "$DLLTOOL" && DLLTOOL=dlltool 5297 5298 5299 5300 5301 5302test -z "$OBJDUMP" && OBJDUMP=objdump 5303 5304 5305 5306 5307 5308 5309 5310 5311case `pwd` in 5312 *\ * | *\ *) 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5314$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5315esac 5316 5317 5318 5319macro_version='2.4' 5320macro_revision='1.3293' 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334ltmain="$ac_aux_dir/ltmain.sh" 5335 5336# Backslashify metacharacters that are still active within 5337# double-quoted strings. 5338sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5339 5340# Same as above, but do not quote variable references. 5341double_quote_subst='s/\(["`\\]\)/\\\1/g' 5342 5343# Sed substitution to delay expansion of an escaped shell variable in a 5344# double_quote_subst'ed string. 5345delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5346 5347# Sed substitution to delay expansion of an escaped single quote. 5348delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5349 5350# Sed substitution to avoid accidental globbing in evaled expressions 5351no_glob_subst='s/\*/\\\*/g' 5352 5353ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5354ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5355ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5356 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5358$as_echo_n "checking how to print strings... " >&6; } 5359# Test print first, because it will be a builtin if present. 5360if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5361 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5362 ECHO='print -r --' 5363elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5364 ECHO='printf %s\n' 5365else 5366 # Use this function as a fallback that always works. 5367 func_fallback_echo () 5368 { 5369 eval 'cat <<_LTECHO_EOF 5370$1 5371_LTECHO_EOF' 5372 } 5373 ECHO='func_fallback_echo' 5374fi 5375 5376# func_echo_all arg... 5377# Invoke $ECHO with all args, space-separated. 5378func_echo_all () 5379{ 5380 $ECHO "" 5381} 5382 5383case "$ECHO" in 5384 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5385$as_echo "printf" >&6; } ;; 5386 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5387$as_echo "print -r" >&6; } ;; 5388 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5389$as_echo "cat" >&6; } ;; 5390esac 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5406$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5407if ${ac_cv_path_SED+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5411 for ac_i in 1 2 3 4 5 6 7; do 5412 ac_script="$ac_script$as_nl$ac_script" 5413 done 5414 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5415 { ac_script=; unset ac_script;} 5416 if test -z "$SED"; then 5417 ac_path_SED_found=false 5418 # Loop through the user's path and test for each of PROGNAME-LIST 5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH 5421do 5422 IFS=$as_save_IFS 5423 test -z "$as_dir" && as_dir=. 5424 for ac_prog in sed gsed; do 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5427 as_fn_executable_p "$ac_path_SED" || continue 5428# Check for GNU ac_path_SED and select it if it is found. 5429 # Check for GNU $ac_path_SED 5430case `"$ac_path_SED" --version 2>&1` in 5431*GNU*) 5432 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5433*) 5434 ac_count=0 5435 $as_echo_n 0123456789 >"conftest.in" 5436 while : 5437 do 5438 cat "conftest.in" "conftest.in" >"conftest.tmp" 5439 mv "conftest.tmp" "conftest.in" 5440 cp "conftest.in" "conftest.nl" 5441 $as_echo '' >> "conftest.nl" 5442 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5444 as_fn_arith $ac_count + 1 && ac_count=$as_val 5445 if test $ac_count -gt ${ac_path_SED_max-0}; then 5446 # Best one so far, save it but keep looking for a better one 5447 ac_cv_path_SED="$ac_path_SED" 5448 ac_path_SED_max=$ac_count 5449 fi 5450 # 10*(2^10) chars as input seems more than enough 5451 test $ac_count -gt 10 && break 5452 done 5453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5454esac 5455 5456 $ac_path_SED_found && break 3 5457 done 5458 done 5459 done 5460IFS=$as_save_IFS 5461 if test -z "$ac_cv_path_SED"; then 5462 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5463 fi 5464else 5465 ac_cv_path_SED=$SED 5466fi 5467 5468fi 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5470$as_echo "$ac_cv_path_SED" >&6; } 5471 SED="$ac_cv_path_SED" 5472 rm -f conftest.sed 5473 5474test -z "$SED" && SED=sed 5475Xsed="$SED -e 1s/^X//" 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5488$as_echo_n "checking for fgrep... " >&6; } 5489if ${ac_cv_path_FGREP+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5493 then ac_cv_path_FGREP="$GREP -F" 5494 else 5495 if test -z "$FGREP"; then 5496 ac_path_FGREP_found=false 5497 # Loop through the user's path and test for each of PROGNAME-LIST 5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5500do 5501 IFS=$as_save_IFS 5502 test -z "$as_dir" && as_dir=. 5503 for ac_prog in fgrep; do 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5506 as_fn_executable_p "$ac_path_FGREP" || continue 5507# Check for GNU ac_path_FGREP and select it if it is found. 5508 # Check for GNU $ac_path_FGREP 5509case `"$ac_path_FGREP" --version 2>&1` in 5510*GNU*) 5511 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5512*) 5513 ac_count=0 5514 $as_echo_n 0123456789 >"conftest.in" 5515 while : 5516 do 5517 cat "conftest.in" "conftest.in" >"conftest.tmp" 5518 mv "conftest.tmp" "conftest.in" 5519 cp "conftest.in" "conftest.nl" 5520 $as_echo 'FGREP' >> "conftest.nl" 5521 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5523 as_fn_arith $ac_count + 1 && ac_count=$as_val 5524 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5525 # Best one so far, save it but keep looking for a better one 5526 ac_cv_path_FGREP="$ac_path_FGREP" 5527 ac_path_FGREP_max=$ac_count 5528 fi 5529 # 10*(2^10) chars as input seems more than enough 5530 test $ac_count -gt 10 && break 5531 done 5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5533esac 5534 5535 $ac_path_FGREP_found && break 3 5536 done 5537 done 5538 done 5539IFS=$as_save_IFS 5540 if test -z "$ac_cv_path_FGREP"; then 5541 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5542 fi 5543else 5544 ac_cv_path_FGREP=$FGREP 5545fi 5546 5547 fi 5548fi 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5550$as_echo "$ac_cv_path_FGREP" >&6; } 5551 FGREP="$ac_cv_path_FGREP" 5552 5553 5554test -z "$GREP" && GREP=grep 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574# Check whether --with-gnu-ld was given. 5575if test "${with_gnu_ld+set}" = set; then : 5576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5577else 5578 with_gnu_ld=no 5579fi 5580 5581ac_prog=ld 5582if test "$GCC" = yes; then 5583 # Check if gcc -print-prog-name=ld gives a path. 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5585$as_echo_n "checking for ld used by $CC... " >&6; } 5586 case $host in 5587 *-*-mingw*) 5588 # gcc leaves a trailing carriage return which upsets mingw 5589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5590 *) 5591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5592 esac 5593 case $ac_prog in 5594 # Accept absolute paths. 5595 [\\/]* | ?:[\\/]*) 5596 re_direlt='/[^/][^/]*/\.\./' 5597 # Canonicalize the pathname of ld 5598 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5599 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5600 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5601 done 5602 test -z "$LD" && LD="$ac_prog" 5603 ;; 5604 "") 5605 # If it fails, then pretend we aren't using GCC. 5606 ac_prog=ld 5607 ;; 5608 *) 5609 # If it is relative, then search for the first ld in PATH. 5610 with_gnu_ld=unknown 5611 ;; 5612 esac 5613elif test "$with_gnu_ld" = yes; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5615$as_echo_n "checking for GNU ld... " >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5618$as_echo_n "checking for non-GNU ld... " >&6; } 5619fi 5620if ${lt_cv_path_LD+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -z "$LD"; then 5624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5625 for ac_dir in $PATH; do 5626 IFS="$lt_save_ifs" 5627 test -z "$ac_dir" && ac_dir=. 5628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5629 lt_cv_path_LD="$ac_dir/$ac_prog" 5630 # Check to see if the program is GNU ld. I'd rather use --version, 5631 # but apparently some variants of GNU ld only accept -v. 5632 # Break only if it was the GNU/non-GNU ld that we prefer. 5633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5634 *GNU* | *'with BFD'*) 5635 test "$with_gnu_ld" != no && break 5636 ;; 5637 *) 5638 test "$with_gnu_ld" != yes && break 5639 ;; 5640 esac 5641 fi 5642 done 5643 IFS="$lt_save_ifs" 5644else 5645 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5646fi 5647fi 5648 5649LD="$lt_cv_path_LD" 5650if test -n "$LD"; then 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5652$as_echo "$LD" >&6; } 5653else 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5655$as_echo "no" >&6; } 5656fi 5657test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5659$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5660if ${lt_cv_prog_gnu_ld+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5664case `$LD -v 2>&1 </dev/null` in 5665*GNU* | *'with BFD'*) 5666 lt_cv_prog_gnu_ld=yes 5667 ;; 5668*) 5669 lt_cv_prog_gnu_ld=no 5670 ;; 5671esac 5672fi 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5674$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5675with_gnu_ld=$lt_cv_prog_gnu_ld 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5686$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5687if ${lt_cv_path_NM+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 if test -n "$NM"; then 5691 # Let the user override the test. 5692 lt_cv_path_NM="$NM" 5693else 5694 lt_nm_to_check="${ac_tool_prefix}nm" 5695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5696 lt_nm_to_check="$lt_nm_to_check nm" 5697 fi 5698 for lt_tmp_nm in $lt_nm_to_check; do 5699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5701 IFS="$lt_save_ifs" 5702 test -z "$ac_dir" && ac_dir=. 5703 tmp_nm="$ac_dir/$lt_tmp_nm" 5704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5705 # Check to see if the nm accepts a BSD-compat flag. 5706 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5707 # nm: unknown option "B" ignored 5708 # Tru64's nm complains that /dev/null is an invalid object file 5709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5710 */dev/null* | *'Invalid file or object type'*) 5711 lt_cv_path_NM="$tmp_nm -B" 5712 break 5713 ;; 5714 *) 5715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5716 */dev/null*) 5717 lt_cv_path_NM="$tmp_nm -p" 5718 break 5719 ;; 5720 *) 5721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5722 continue # so that we can try to find one that supports BSD flags 5723 ;; 5724 esac 5725 ;; 5726 esac 5727 fi 5728 done 5729 IFS="$lt_save_ifs" 5730 done 5731 : ${lt_cv_path_NM=no} 5732fi 5733fi 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5735$as_echo "$lt_cv_path_NM" >&6; } 5736if test "$lt_cv_path_NM" != "no"; then 5737 NM="$lt_cv_path_NM" 5738else 5739 # Didn't find any BSD compatible name lister, look for dumpbin. 5740 if test -n "$DUMPBIN"; then : 5741 # Let the user override the test. 5742 else 5743 if test -n "$ac_tool_prefix"; then 5744 for ac_prog in dumpbin "link -dump" 5745 do 5746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5747set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5749$as_echo_n "checking for $ac_word... " >&6; } 5750if ${ac_cv_prog_DUMPBIN+:} false; then : 5751 $as_echo_n "(cached) " >&6 5752else 5753 if test -n "$DUMPBIN"; then 5754 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5755else 5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5757for as_dir in $PATH 5758do 5759 IFS=$as_save_IFS 5760 test -z "$as_dir" && as_dir=. 5761 for ac_exec_ext in '' $ac_executable_extensions; do 5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5763 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5765 break 2 5766 fi 5767done 5768 done 5769IFS=$as_save_IFS 5770 5771fi 5772fi 5773DUMPBIN=$ac_cv_prog_DUMPBIN 5774if test -n "$DUMPBIN"; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5776$as_echo "$DUMPBIN" >&6; } 5777else 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5779$as_echo "no" >&6; } 5780fi 5781 5782 5783 test -n "$DUMPBIN" && break 5784 done 5785fi 5786if test -z "$DUMPBIN"; then 5787 ac_ct_DUMPBIN=$DUMPBIN 5788 for ac_prog in dumpbin "link -dump" 5789do 5790 # Extract the first word of "$ac_prog", so it can be a program name with args. 5791set dummy $ac_prog; ac_word=$2 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5793$as_echo_n "checking for $ac_word... " >&6; } 5794if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 if test -n "$ac_ct_DUMPBIN"; then 5798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5799else 5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801for as_dir in $PATH 5802do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811done 5812 done 5813IFS=$as_save_IFS 5814 5815fi 5816fi 5817ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5818if test -n "$ac_ct_DUMPBIN"; then 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5820$as_echo "$ac_ct_DUMPBIN" >&6; } 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5823$as_echo "no" >&6; } 5824fi 5825 5826 5827 test -n "$ac_ct_DUMPBIN" && break 5828done 5829 5830 if test "x$ac_ct_DUMPBIN" = x; then 5831 DUMPBIN=":" 5832 else 5833 case $cross_compiling:$ac_tool_warned in 5834yes:) 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5837ac_tool_warned=yes ;; 5838esac 5839 DUMPBIN=$ac_ct_DUMPBIN 5840 fi 5841fi 5842 5843 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5844 *COFF*) 5845 DUMPBIN="$DUMPBIN -symbols" 5846 ;; 5847 *) 5848 DUMPBIN=: 5849 ;; 5850 esac 5851 fi 5852 5853 if test "$DUMPBIN" != ":"; then 5854 NM="$DUMPBIN" 5855 fi 5856fi 5857test -z "$NM" && NM=nm 5858 5859 5860 5861 5862 5863 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5865$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5866if ${lt_cv_nm_interface+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 lt_cv_nm_interface="BSD nm" 5870 echo "int some_variable = 0;" > conftest.$ac_ext 5871 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5872 (eval "$ac_compile" 2>conftest.err) 5873 cat conftest.err >&5 5874 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5875 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5876 cat conftest.err >&5 5877 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5878 cat conftest.out >&5 5879 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5880 lt_cv_nm_interface="MS dumpbin" 5881 fi 5882 rm -f conftest* 5883fi 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5885$as_echo "$lt_cv_nm_interface" >&6; } 5886 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5888$as_echo_n "checking whether ln -s works... " >&6; } 5889LN_S=$as_ln_s 5890if test "$LN_S" = "ln -s"; then 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5892$as_echo "yes" >&6; } 5893else 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5895$as_echo "no, using $LN_S" >&6; } 5896fi 5897 5898# find the maximum length of command line arguments 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5900$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5901if ${lt_cv_sys_max_cmd_len+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 i=0 5905 teststring="ABCD" 5906 5907 case $build_os in 5908 msdosdjgpp*) 5909 # On DJGPP, this test can blow up pretty badly due to problems in libc 5910 # (any single argument exceeding 2000 bytes causes a buffer overrun 5911 # during glob expansion). Even if it were fixed, the result of this 5912 # check would be larger than it should be. 5913 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5914 ;; 5915 5916 gnu*) 5917 # Under GNU Hurd, this test is not required because there is 5918 # no limit to the length of command line arguments. 5919 # Libtool will interpret -1 as no limit whatsoever 5920 lt_cv_sys_max_cmd_len=-1; 5921 ;; 5922 5923 cygwin* | mingw* | cegcc*) 5924 # On Win9x/ME, this test blows up -- it succeeds, but takes 5925 # about 5 minutes as the teststring grows exponentially. 5926 # Worse, since 9x/ME are not pre-emptively multitasking, 5927 # you end up with a "frozen" computer, even though with patience 5928 # the test eventually succeeds (with a max line length of 256k). 5929 # Instead, let's just punt: use the minimum linelength reported by 5930 # all of the supported platforms: 8192 (on NT/2K/XP). 5931 lt_cv_sys_max_cmd_len=8192; 5932 ;; 5933 5934 mint*) 5935 # On MiNT this can take a long time and run out of memory. 5936 lt_cv_sys_max_cmd_len=8192; 5937 ;; 5938 5939 amigaos*) 5940 # On AmigaOS with pdksh, this test takes hours, literally. 5941 # So we just punt and use a minimum line length of 8192. 5942 lt_cv_sys_max_cmd_len=8192; 5943 ;; 5944 5945 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5946 # This has been around since 386BSD, at least. Likely further. 5947 if test -x /sbin/sysctl; then 5948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5949 elif test -x /usr/sbin/sysctl; then 5950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5951 else 5952 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5953 fi 5954 # And add a safety zone 5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5957 ;; 5958 5959 interix*) 5960 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5961 lt_cv_sys_max_cmd_len=196608 5962 ;; 5963 5964 osf*) 5965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5967 # nice to cause kernel panics so lets avoid the loop below. 5968 # First set a reasonable default. 5969 lt_cv_sys_max_cmd_len=16384 5970 # 5971 if test -x /sbin/sysconfig; then 5972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5973 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5974 esac 5975 fi 5976 ;; 5977 sco3.2v5*) 5978 lt_cv_sys_max_cmd_len=102400 5979 ;; 5980 sysv5* | sco5v6* | sysv4.2uw2*) 5981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5982 if test -n "$kargmax"; then 5983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5984 else 5985 lt_cv_sys_max_cmd_len=32768 5986 fi 5987 ;; 5988 *) 5989 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5990 if test -n "$lt_cv_sys_max_cmd_len"; then 5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5993 else 5994 # Make teststring a little bigger before we do anything with it. 5995 # a 1K string should be a reasonable start. 5996 for i in 1 2 3 4 5 6 7 8 ; do 5997 teststring=$teststring$teststring 5998 done 5999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6000 # If test is not a shell built-in, we'll probably end up computing a 6001 # maximum length that is only half of the actual maximum length, but 6002 # we can't tell. 6003 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6004 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6005 test $i != 17 # 1/2 MB should be enough 6006 do 6007 i=`expr $i + 1` 6008 teststring=$teststring$teststring 6009 done 6010 # Only check the string length outside the loop. 6011 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6012 teststring= 6013 # Add a significant safety factor because C++ compilers can tack on 6014 # massive amounts of additional arguments before passing them to the 6015 # linker. It appears as though 1/2 is a usable value. 6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6017 fi 6018 ;; 6019 esac 6020 6021fi 6022 6023if test -n $lt_cv_sys_max_cmd_len ; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6025$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6026else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6028$as_echo "none" >&6; } 6029fi 6030max_cmd_len=$lt_cv_sys_max_cmd_len 6031 6032 6033 6034 6035 6036 6037: ${CP="cp -f"} 6038: ${MV="mv -f"} 6039: ${RM="rm -f"} 6040 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6042$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6043# Try some XSI features 6044xsi_shell=no 6045( _lt_dummy="a/b/c" 6046 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6047 = c,a/b,b/c, \ 6048 && eval 'test $(( 1 + 1 )) -eq 2 \ 6049 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6050 && xsi_shell=yes 6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6052$as_echo "$xsi_shell" >&6; } 6053 6054 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6056$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6057lt_shell_append=no 6058( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6059 >/dev/null 2>&1 \ 6060 && lt_shell_append=yes 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6062$as_echo "$lt_shell_append" >&6; } 6063 6064 6065if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6066 lt_unset=unset 6067else 6068 lt_unset=false 6069fi 6070 6071 6072 6073 6074 6075# test EBCDIC or ASCII 6076case `echo X|tr X '\101'` in 6077 A) # ASCII based system 6078 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6079 lt_SP2NL='tr \040 \012' 6080 lt_NL2SP='tr \015\012 \040\040' 6081 ;; 6082 *) # EBCDIC based system 6083 lt_SP2NL='tr \100 \n' 6084 lt_NL2SP='tr \r\n \100\100' 6085 ;; 6086esac 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6097$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6098if ${lt_cv_to_host_file_cmd+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 case $host in 6102 *-*-mingw* ) 6103 case $build in 6104 *-*-mingw* ) # actually msys 6105 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6106 ;; 6107 *-*-cygwin* ) 6108 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6109 ;; 6110 * ) # otherwise, assume *nix 6111 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6112 ;; 6113 esac 6114 ;; 6115 *-*-cygwin* ) 6116 case $build in 6117 *-*-mingw* ) # actually msys 6118 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6119 ;; 6120 *-*-cygwin* ) 6121 lt_cv_to_host_file_cmd=func_convert_file_noop 6122 ;; 6123 * ) # otherwise, assume *nix 6124 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6125 ;; 6126 esac 6127 ;; 6128 * ) # unhandled hosts (and "normal" native builds) 6129 lt_cv_to_host_file_cmd=func_convert_file_noop 6130 ;; 6131esac 6132 6133fi 6134 6135to_host_file_cmd=$lt_cv_to_host_file_cmd 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6137$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6138 6139 6140 6141 6142 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6144$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6145if ${lt_cv_to_tool_file_cmd+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 #assume ordinary cross tools, or native build. 6149lt_cv_to_tool_file_cmd=func_convert_file_noop 6150case $host in 6151 *-*-mingw* ) 6152 case $build in 6153 *-*-mingw* ) # actually msys 6154 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6155 ;; 6156 esac 6157 ;; 6158esac 6159 6160fi 6161 6162to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6164$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6165 6166 6167 6168 6169 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6171$as_echo_n "checking for $LD option to reload object files... " >&6; } 6172if ${lt_cv_ld_reload_flag+:} false; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 lt_cv_ld_reload_flag='-r' 6176fi 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6178$as_echo "$lt_cv_ld_reload_flag" >&6; } 6179reload_flag=$lt_cv_ld_reload_flag 6180case $reload_flag in 6181"" | " "*) ;; 6182*) reload_flag=" $reload_flag" ;; 6183esac 6184reload_cmds='$LD$reload_flag -o $output$reload_objs' 6185case $host_os in 6186 cygwin* | mingw* | pw32* | cegcc*) 6187 if test "$GCC" != yes; then 6188 reload_cmds=false 6189 fi 6190 ;; 6191 darwin*) 6192 if test "$GCC" = yes; then 6193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6194 else 6195 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6196 fi 6197 ;; 6198esac 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208if test -n "$ac_tool_prefix"; then 6209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6210set dummy ${ac_tool_prefix}objdump; ac_word=$2 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6212$as_echo_n "checking for $ac_word... " >&6; } 6213if ${ac_cv_prog_OBJDUMP+:} false; then : 6214 $as_echo_n "(cached) " >&6 6215else 6216 if test -n "$OBJDUMP"; then 6217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6218else 6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220for as_dir in $PATH 6221do 6222 IFS=$as_save_IFS 6223 test -z "$as_dir" && as_dir=. 6224 for ac_exec_ext in '' $ac_executable_extensions; do 6225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6228 break 2 6229 fi 6230done 6231 done 6232IFS=$as_save_IFS 6233 6234fi 6235fi 6236OBJDUMP=$ac_cv_prog_OBJDUMP 6237if test -n "$OBJDUMP"; then 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6239$as_echo "$OBJDUMP" >&6; } 6240else 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6242$as_echo "no" >&6; } 6243fi 6244 6245 6246fi 6247if test -z "$ac_cv_prog_OBJDUMP"; then 6248 ac_ct_OBJDUMP=$OBJDUMP 6249 # Extract the first word of "objdump", so it can be a program name with args. 6250set dummy objdump; ac_word=$2 6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6252$as_echo_n "checking for $ac_word... " >&6; } 6253if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 if test -n "$ac_ct_OBJDUMP"; then 6257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6258else 6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6260for as_dir in $PATH 6261do 6262 IFS=$as_save_IFS 6263 test -z "$as_dir" && as_dir=. 6264 for ac_exec_ext in '' $ac_executable_extensions; do 6265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6266 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6268 break 2 6269 fi 6270done 6271 done 6272IFS=$as_save_IFS 6273 6274fi 6275fi 6276ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6277if test -n "$ac_ct_OBJDUMP"; then 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6279$as_echo "$ac_ct_OBJDUMP" >&6; } 6280else 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6282$as_echo "no" >&6; } 6283fi 6284 6285 if test "x$ac_ct_OBJDUMP" = x; then 6286 OBJDUMP="false" 6287 else 6288 case $cross_compiling:$ac_tool_warned in 6289yes:) 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6292ac_tool_warned=yes ;; 6293esac 6294 OBJDUMP=$ac_ct_OBJDUMP 6295 fi 6296else 6297 OBJDUMP="$ac_cv_prog_OBJDUMP" 6298fi 6299 6300test -z "$OBJDUMP" && OBJDUMP=objdump 6301 6302 6303 6304 6305 6306 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6308$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6309if ${lt_cv_deplibs_check_method+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 lt_cv_file_magic_cmd='$MAGIC_CMD' 6313lt_cv_file_magic_test_file= 6314lt_cv_deplibs_check_method='unknown' 6315# Need to set the preceding variable on all platforms that support 6316# interlibrary dependencies. 6317# 'none' -- dependencies not supported. 6318# `unknown' -- same as none, but documents that we really don't know. 6319# 'pass_all' -- all dependencies passed with no checks. 6320# 'test_compile' -- check by making test program. 6321# 'file_magic [[regex]]' -- check by looking for files in library path 6322# which responds to the $file_magic_cmd with a given extended regex. 6323# If you have `file' or equivalent on your system and you're not sure 6324# whether `pass_all' will *always* work, you probably want this one. 6325 6326case $host_os in 6327aix[4-9]*) 6328 lt_cv_deplibs_check_method=pass_all 6329 ;; 6330 6331beos*) 6332 lt_cv_deplibs_check_method=pass_all 6333 ;; 6334 6335bsdi[45]*) 6336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6337 lt_cv_file_magic_cmd='/usr/bin/file -L' 6338 lt_cv_file_magic_test_file=/shlib/libc.so 6339 ;; 6340 6341cygwin*) 6342 # func_win32_libid is a shell function defined in ltmain.sh 6343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6344 lt_cv_file_magic_cmd='func_win32_libid' 6345 ;; 6346 6347mingw* | pw32*) 6348 # Base MSYS/MinGW do not provide the 'file' command needed by 6349 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6350 # unless we find 'file', for example because we are cross-compiling. 6351 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6352 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6354 lt_cv_file_magic_cmd='func_win32_libid' 6355 else 6356 # Keep this pattern in sync with the one in func_win32_libid. 6357 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6358 lt_cv_file_magic_cmd='$OBJDUMP -f' 6359 fi 6360 ;; 6361 6362cegcc*) 6363 # use the weaker test based on 'objdump'. See mingw*. 6364 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6365 lt_cv_file_magic_cmd='$OBJDUMP -f' 6366 ;; 6367 6368darwin* | rhapsody*) 6369 lt_cv_deplibs_check_method=pass_all 6370 ;; 6371 6372freebsd* | dragonfly*) 6373 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6374 case $host_cpu in 6375 i*86 ) 6376 # Not sure whether the presence of OpenBSD here was a mistake. 6377 # Let's accept both of them until this is cleared up. 6378 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6379 lt_cv_file_magic_cmd=/usr/bin/file 6380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6381 ;; 6382 esac 6383 else 6384 lt_cv_deplibs_check_method=pass_all 6385 fi 6386 ;; 6387 6388gnu*) 6389 lt_cv_deplibs_check_method=pass_all 6390 ;; 6391 6392haiku*) 6393 lt_cv_deplibs_check_method=pass_all 6394 ;; 6395 6396hpux10.20* | hpux11*) 6397 lt_cv_file_magic_cmd=/usr/bin/file 6398 case $host_cpu in 6399 ia64*) 6400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6401 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6402 ;; 6403 hppa*64*) 6404 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]' 6405 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6406 ;; 6407 *) 6408 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6409 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6410 ;; 6411 esac 6412 ;; 6413 6414interix[3-9]*) 6415 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6417 ;; 6418 6419irix5* | irix6* | nonstopux*) 6420 case $LD in 6421 *-32|*"-32 ") libmagic=32-bit;; 6422 *-n32|*"-n32 ") libmagic=N32;; 6423 *-64|*"-64 ") libmagic=64-bit;; 6424 *) libmagic=never-match;; 6425 esac 6426 lt_cv_deplibs_check_method=pass_all 6427 ;; 6428 6429# This must be Linux ELF. 6430linux* | k*bsd*-gnu | kopensolaris*-gnu) 6431 lt_cv_deplibs_check_method=pass_all 6432 ;; 6433 6434netbsd*) 6435 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6437 else 6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6439 fi 6440 ;; 6441 6442newos6*) 6443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6444 lt_cv_file_magic_cmd=/usr/bin/file 6445 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6446 ;; 6447 6448*nto* | *qnx*) 6449 lt_cv_deplibs_check_method=pass_all 6450 ;; 6451 6452openbsd*) 6453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6455 else 6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6457 fi 6458 ;; 6459 6460osf3* | osf4* | osf5*) 6461 lt_cv_deplibs_check_method=pass_all 6462 ;; 6463 6464rdos*) 6465 lt_cv_deplibs_check_method=pass_all 6466 ;; 6467 6468solaris*) 6469 lt_cv_deplibs_check_method=pass_all 6470 ;; 6471 6472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6473 lt_cv_deplibs_check_method=pass_all 6474 ;; 6475 6476sysv4 | sysv4.3*) 6477 case $host_vendor in 6478 motorola) 6479 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]' 6480 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6481 ;; 6482 ncr) 6483 lt_cv_deplibs_check_method=pass_all 6484 ;; 6485 sequent) 6486 lt_cv_file_magic_cmd='/bin/file' 6487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6488 ;; 6489 sni) 6490 lt_cv_file_magic_cmd='/bin/file' 6491 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6492 lt_cv_file_magic_test_file=/lib/libc.so 6493 ;; 6494 siemens) 6495 lt_cv_deplibs_check_method=pass_all 6496 ;; 6497 pc) 6498 lt_cv_deplibs_check_method=pass_all 6499 ;; 6500 esac 6501 ;; 6502 6503tpf*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506esac 6507 6508fi 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6510$as_echo "$lt_cv_deplibs_check_method" >&6; } 6511 6512file_magic_glob= 6513want_nocaseglob=no 6514if test "$build" = "$host"; then 6515 case $host_os in 6516 mingw* | pw32*) 6517 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6518 want_nocaseglob=yes 6519 else 6520 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6521 fi 6522 ;; 6523 esac 6524fi 6525 6526file_magic_cmd=$lt_cv_file_magic_cmd 6527deplibs_check_method=$lt_cv_deplibs_check_method 6528test -z "$deplibs_check_method" && deplibs_check_method=unknown 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551if test -n "$ac_tool_prefix"; then 6552 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6553set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555$as_echo_n "checking for $ac_word... " >&6; } 6556if ${ac_cv_prog_DLLTOOL+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$DLLTOOL"; then 6560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577fi 6578fi 6579DLLTOOL=$ac_cv_prog_DLLTOOL 6580if test -n "$DLLTOOL"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6582$as_echo "$DLLTOOL" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 6589fi 6590if test -z "$ac_cv_prog_DLLTOOL"; then 6591 ac_ct_DLLTOOL=$DLLTOOL 6592 # Extract the first word of "dlltool", so it can be a program name with args. 6593set dummy dlltool; ac_word=$2 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595$as_echo_n "checking for $ac_word... " >&6; } 6596if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 if test -n "$ac_ct_DLLTOOL"; then 6600 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6601else 6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6603for as_dir in $PATH 6604do 6605 IFS=$as_save_IFS 6606 test -z "$as_dir" && as_dir=. 6607 for ac_exec_ext in '' $ac_executable_extensions; do 6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6609 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6611 break 2 6612 fi 6613done 6614 done 6615IFS=$as_save_IFS 6616 6617fi 6618fi 6619ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6620if test -n "$ac_ct_DLLTOOL"; then 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6622$as_echo "$ac_ct_DLLTOOL" >&6; } 6623else 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6625$as_echo "no" >&6; } 6626fi 6627 6628 if test "x$ac_ct_DLLTOOL" = x; then 6629 DLLTOOL="false" 6630 else 6631 case $cross_compiling:$ac_tool_warned in 6632yes:) 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6635ac_tool_warned=yes ;; 6636esac 6637 DLLTOOL=$ac_ct_DLLTOOL 6638 fi 6639else 6640 DLLTOOL="$ac_cv_prog_DLLTOOL" 6641fi 6642 6643test -z "$DLLTOOL" && DLLTOOL=dlltool 6644 6645 6646 6647 6648 6649 6650 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6652$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6653if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 lt_cv_sharedlib_from_linklib_cmd='unknown' 6657 6658case $host_os in 6659cygwin* | mingw* | pw32* | cegcc*) 6660 # two different shell functions defined in ltmain.sh 6661 # decide which to use based on capabilities of $DLLTOOL 6662 case `$DLLTOOL --help 2>&1` in 6663 *--identify-strict*) 6664 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6665 ;; 6666 *) 6667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6668 ;; 6669 esac 6670 ;; 6671*) 6672 # fallback: assume linklib IS sharedlib 6673 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6674 ;; 6675esac 6676 6677fi 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6679$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6680sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6681test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6682 6683 6684 6685 6686 6687 6688 6689if test -n "$ac_tool_prefix"; then 6690 for ac_prog in ar 6691 do 6692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6693set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695$as_echo_n "checking for $ac_word... " >&6; } 6696if ${ac_cv_prog_AR+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 if test -n "$AR"; then 6700 ac_cv_prog_AR="$AR" # Let the user override the test. 6701else 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6709 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713done 6714 done 6715IFS=$as_save_IFS 6716 6717fi 6718fi 6719AR=$ac_cv_prog_AR 6720if test -n "$AR"; then 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6722$as_echo "$AR" >&6; } 6723else 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725$as_echo "no" >&6; } 6726fi 6727 6728 6729 test -n "$AR" && break 6730 done 6731fi 6732if test -z "$AR"; then 6733 ac_ct_AR=$AR 6734 for ac_prog in ar 6735do 6736 # Extract the first word of "$ac_prog", so it can be a program name with args. 6737set dummy $ac_prog; ac_word=$2 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739$as_echo_n "checking for $ac_word... " >&6; } 6740if ${ac_cv_prog_ac_ct_AR+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 if test -n "$ac_ct_AR"; then 6744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 test -z "$as_dir" && as_dir=. 6751 for ac_exec_ext in '' $ac_executable_extensions; do 6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6753 ac_cv_prog_ac_ct_AR="$ac_prog" 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6755 break 2 6756 fi 6757done 6758 done 6759IFS=$as_save_IFS 6760 6761fi 6762fi 6763ac_ct_AR=$ac_cv_prog_ac_ct_AR 6764if test -n "$ac_ct_AR"; then 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6766$as_echo "$ac_ct_AR" >&6; } 6767else 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6769$as_echo "no" >&6; } 6770fi 6771 6772 6773 test -n "$ac_ct_AR" && break 6774done 6775 6776 if test "x$ac_ct_AR" = x; then 6777 AR="false" 6778 else 6779 case $cross_compiling:$ac_tool_warned in 6780yes:) 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6783ac_tool_warned=yes ;; 6784esac 6785 AR=$ac_ct_AR 6786 fi 6787fi 6788 6789: ${AR=ar} 6790: ${AR_FLAGS=cru} 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6803$as_echo_n "checking for archiver @FILE support... " >&6; } 6804if ${lt_cv_ar_at_file+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 lt_cv_ar_at_file=no 6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6809/* end confdefs.h. */ 6810 6811int 6812main () 6813{ 6814 6815 ; 6816 return 0; 6817} 6818_ACEOF 6819if ac_fn_c_try_compile "$LINENO"; then : 6820 echo conftest.$ac_objext > conftest.lst 6821 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6823 (eval $lt_ar_try) 2>&5 6824 ac_status=$? 6825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6826 test $ac_status = 0; } 6827 if test "$ac_status" -eq 0; then 6828 # Ensure the archiver fails upon bogus file names. 6829 rm -f conftest.$ac_objext libconftest.a 6830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6831 (eval $lt_ar_try) 2>&5 6832 ac_status=$? 6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6834 test $ac_status = 0; } 6835 if test "$ac_status" -ne 0; then 6836 lt_cv_ar_at_file=@ 6837 fi 6838 fi 6839 rm -f conftest.* libconftest.a 6840 6841fi 6842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6843 6844fi 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6846$as_echo "$lt_cv_ar_at_file" >&6; } 6847 6848if test "x$lt_cv_ar_at_file" = xno; then 6849 archiver_list_spec= 6850else 6851 archiver_list_spec=$lt_cv_ar_at_file 6852fi 6853 6854 6855 6856 6857 6858 6859 6860if test -n "$ac_tool_prefix"; then 6861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6862set dummy ${ac_tool_prefix}strip; ac_word=$2 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864$as_echo_n "checking for $ac_word... " >&6; } 6865if ${ac_cv_prog_STRIP+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 if test -n "$STRIP"; then 6869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6870else 6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6872for as_dir in $PATH 6873do 6874 IFS=$as_save_IFS 6875 test -z "$as_dir" && as_dir=. 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6878 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882done 6883 done 6884IFS=$as_save_IFS 6885 6886fi 6887fi 6888STRIP=$ac_cv_prog_STRIP 6889if test -n "$STRIP"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6891$as_echo "$STRIP" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896 6897 6898fi 6899if test -z "$ac_cv_prog_STRIP"; then 6900 ac_ct_STRIP=$STRIP 6901 # Extract the first word of "strip", so it can be a program name with args. 6902set dummy strip; ac_word=$2 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904$as_echo_n "checking for $ac_word... " >&6; } 6905if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 if test -n "$ac_ct_STRIP"; then 6909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6910else 6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912for as_dir in $PATH 6913do 6914 IFS=$as_save_IFS 6915 test -z "$as_dir" && as_dir=. 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6918 ac_cv_prog_ac_ct_STRIP="strip" 6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922done 6923 done 6924IFS=$as_save_IFS 6925 6926fi 6927fi 6928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6929if test -n "$ac_ct_STRIP"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6931$as_echo "$ac_ct_STRIP" >&6; } 6932else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934$as_echo "no" >&6; } 6935fi 6936 6937 if test "x$ac_ct_STRIP" = x; then 6938 STRIP=":" 6939 else 6940 case $cross_compiling:$ac_tool_warned in 6941yes:) 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6944ac_tool_warned=yes ;; 6945esac 6946 STRIP=$ac_ct_STRIP 6947 fi 6948else 6949 STRIP="$ac_cv_prog_STRIP" 6950fi 6951 6952test -z "$STRIP" && STRIP=: 6953 6954 6955 6956 6957 6958 6959if test -n "$ac_tool_prefix"; then 6960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6961set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if ${ac_cv_prog_RANLIB+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$RANLIB"; then 6968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987RANLIB=$ac_cv_prog_RANLIB 6988if test -n "$RANLIB"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6990$as_echo "$RANLIB" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 6997fi 6998if test -z "$ac_cv_prog_RANLIB"; then 6999 ac_ct_RANLIB=$RANLIB 7000 # Extract the first word of "ranlib", so it can be a program name with args. 7001set dummy ranlib; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if test -n "$ac_ct_RANLIB"; then 7008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7017 ac_cv_prog_ac_ct_RANLIB="ranlib" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021done 7022 done 7023IFS=$as_save_IFS 7024 7025fi 7026fi 7027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7028if test -n "$ac_ct_RANLIB"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7030$as_echo "$ac_ct_RANLIB" >&6; } 7031else 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7033$as_echo "no" >&6; } 7034fi 7035 7036 if test "x$ac_ct_RANLIB" = x; then 7037 RANLIB=":" 7038 else 7039 case $cross_compiling:$ac_tool_warned in 7040yes:) 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7043ac_tool_warned=yes ;; 7044esac 7045 RANLIB=$ac_ct_RANLIB 7046 fi 7047else 7048 RANLIB="$ac_cv_prog_RANLIB" 7049fi 7050 7051test -z "$RANLIB" && RANLIB=: 7052 7053 7054 7055 7056 7057 7058# Determine commands to create old-style static archives. 7059old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7060old_postinstall_cmds='chmod 644 $oldlib' 7061old_postuninstall_cmds= 7062 7063if test -n "$RANLIB"; then 7064 case $host_os in 7065 openbsd*) 7066 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7067 ;; 7068 *) 7069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7070 ;; 7071 esac 7072 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7073fi 7074 7075case $host_os in 7076 darwin*) 7077 lock_old_archive_extraction=yes ;; 7078 *) 7079 lock_old_archive_extraction=no ;; 7080esac 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120# If no C compiler was specified, use CC. 7121LTCC=${LTCC-"$CC"} 7122 7123# If no C compiler flags were specified, use CFLAGS. 7124LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7125 7126# Allow CC to be a program name with arguments. 7127compiler=$CC 7128 7129 7130# Check for command to grab the raw symbol name followed by C symbol from nm. 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7132$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7133if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 7137# These are sane defaults that work on at least a few old systems. 7138# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7139 7140# Character class describing NM global symbol codes. 7141symcode='[BCDEGRST]' 7142 7143# Regexp to match symbols that can be accessed directly from C. 7144sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7145 7146# Define system-specific variables. 7147case $host_os in 7148aix*) 7149 symcode='[BCDT]' 7150 ;; 7151cygwin* | mingw* | pw32* | cegcc*) 7152 symcode='[ABCDGISTW]' 7153 ;; 7154hpux*) 7155 if test "$host_cpu" = ia64; then 7156 symcode='[ABCDEGRST]' 7157 fi 7158 ;; 7159irix* | nonstopux*) 7160 symcode='[BCDEGRST]' 7161 ;; 7162osf*) 7163 symcode='[BCDEGQRST]' 7164 ;; 7165solaris*) 7166 symcode='[BDRT]' 7167 ;; 7168sco3.2v5*) 7169 symcode='[DT]' 7170 ;; 7171sysv4.2uw2*) 7172 symcode='[DT]' 7173 ;; 7174sysv5* | sco5v6* | unixware* | OpenUNIX*) 7175 symcode='[ABDT]' 7176 ;; 7177sysv4) 7178 symcode='[DFNSTU]' 7179 ;; 7180esac 7181 7182# If we're using GNU nm, then use its standard symbol codes. 7183case `$NM -V 2>&1` in 7184*GNU* | *'with BFD'*) 7185 symcode='[ABCDGIRSTW]' ;; 7186esac 7187 7188# Transform an extracted symbol line into a proper C declaration. 7189# Some systems (esp. on ia64) link data and code symbols differently, 7190# so use this general approach. 7191lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7192 7193# Transform an extracted symbol line into symbol name and symbol address 7194lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7195lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7196 7197# Handle CRLF in mingw tool chain 7198opt_cr= 7199case $build_os in 7200mingw*) 7201 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7202 ;; 7203esac 7204 7205# Try without a prefix underscore, then with it. 7206for ac_symprfx in "" "_"; do 7207 7208 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7209 symxfrm="\\1 $ac_symprfx\\2 \\2" 7210 7211 # Write the raw and C identifiers. 7212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7213 # Fake it for dumpbin and say T for any non-static function 7214 # and D for any global variable. 7215 # Also find C++ and __fastcall symbols from MSVC++, 7216 # which start with @ or ?. 7217 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7218" {last_section=section; section=\$ 3};"\ 7219" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7220" \$ 0!~/External *\|/{next};"\ 7221" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7222" {if(hide[section]) next};"\ 7223" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7224" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7225" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7226" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7227" ' prfx=^$ac_symprfx" 7228 else 7229 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7230 fi 7231 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7232 7233 # Check to see that the pipe works correctly. 7234 pipe_works=no 7235 7236 rm -f conftest* 7237 cat > conftest.$ac_ext <<_LT_EOF 7238#ifdef __cplusplus 7239extern "C" { 7240#endif 7241char nm_test_var; 7242void nm_test_func(void); 7243void nm_test_func(void){} 7244#ifdef __cplusplus 7245} 7246#endif 7247int main(){nm_test_var='a';nm_test_func();return(0);} 7248_LT_EOF 7249 7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7251 (eval $ac_compile) 2>&5 7252 ac_status=$? 7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7254 test $ac_status = 0; }; then 7255 # Now try to grab the symbols. 7256 nlist=conftest.nm 7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7258 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7259 ac_status=$? 7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7261 test $ac_status = 0; } && test -s "$nlist"; then 7262 # Try sorting and uniquifying the output. 7263 if sort "$nlist" | uniq > "$nlist"T; then 7264 mv -f "$nlist"T "$nlist" 7265 else 7266 rm -f "$nlist"T 7267 fi 7268 7269 # Make sure that we snagged all the symbols we need. 7270 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7271 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7272 cat <<_LT_EOF > conftest.$ac_ext 7273/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7274#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7275/* DATA imports from DLLs on WIN32 con't be const, because runtime 7276 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7277# define LT_DLSYM_CONST 7278#elif defined(__osf__) 7279/* This system does not cope well with relocations in const data. */ 7280# define LT_DLSYM_CONST 7281#else 7282# define LT_DLSYM_CONST const 7283#endif 7284 7285#ifdef __cplusplus 7286extern "C" { 7287#endif 7288 7289_LT_EOF 7290 # Now generate the symbol file. 7291 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7292 7293 cat <<_LT_EOF >> conftest.$ac_ext 7294 7295/* The mapping between symbol names and symbols. */ 7296LT_DLSYM_CONST struct { 7297 const char *name; 7298 void *address; 7299} 7300lt__PROGRAM__LTX_preloaded_symbols[] = 7301{ 7302 { "@PROGRAM@", (void *) 0 }, 7303_LT_EOF 7304 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7305 cat <<\_LT_EOF >> conftest.$ac_ext 7306 {0, (void *) 0} 7307}; 7308 7309/* This works around a problem in FreeBSD linker */ 7310#ifdef FREEBSD_WORKAROUND 7311static const void *lt_preloaded_setup() { 7312 return lt__PROGRAM__LTX_preloaded_symbols; 7313} 7314#endif 7315 7316#ifdef __cplusplus 7317} 7318#endif 7319_LT_EOF 7320 # Now try linking the two files. 7321 mv conftest.$ac_objext conftstm.$ac_objext 7322 lt_globsym_save_LIBS=$LIBS 7323 lt_globsym_save_CFLAGS=$CFLAGS 7324 LIBS="conftstm.$ac_objext" 7325 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7327 (eval $ac_link) 2>&5 7328 ac_status=$? 7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7330 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7331 pipe_works=yes 7332 fi 7333 LIBS=$lt_globsym_save_LIBS 7334 CFLAGS=$lt_globsym_save_CFLAGS 7335 else 7336 echo "cannot find nm_test_func in $nlist" >&5 7337 fi 7338 else 7339 echo "cannot find nm_test_var in $nlist" >&5 7340 fi 7341 else 7342 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7343 fi 7344 else 7345 echo "$progname: failed program was:" >&5 7346 cat conftest.$ac_ext >&5 7347 fi 7348 rm -rf conftest* conftst* 7349 7350 # Do not use the global_symbol_pipe unless it works. 7351 if test "$pipe_works" = yes; then 7352 break 7353 else 7354 lt_cv_sys_global_symbol_pipe= 7355 fi 7356done 7357 7358fi 7359 7360if test -z "$lt_cv_sys_global_symbol_pipe"; then 7361 lt_cv_sys_global_symbol_to_cdecl= 7362fi 7363if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7365$as_echo "failed" >&6; } 7366else 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7368$as_echo "ok" >&6; } 7369fi 7370 7371# Response file support. 7372if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7373 nm_file_list_spec='@' 7374elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7375 nm_file_list_spec='@' 7376fi 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7405$as_echo_n "checking for sysroot... " >&6; } 7406 7407# Check whether --with-sysroot was given. 7408if test "${with_sysroot+set}" = set; then : 7409 withval=$with_sysroot; 7410else 7411 with_sysroot=no 7412fi 7413 7414 7415lt_sysroot= 7416case ${with_sysroot} in #( 7417 yes) 7418 if test "$GCC" = yes; then 7419 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7420 fi 7421 ;; #( 7422 /*) 7423 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7424 ;; #( 7425 no|'') 7426 ;; #( 7427 *) 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7429$as_echo "${with_sysroot}" >&6; } 7430 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7431 ;; 7432esac 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7435$as_echo "${lt_sysroot:-no}" >&6; } 7436 7437 7438 7439 7440 7441# Check whether --enable-libtool-lock was given. 7442if test "${enable_libtool_lock+set}" = set; then : 7443 enableval=$enable_libtool_lock; 7444fi 7445 7446test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7447 7448# Some flags need to be propagated to the compiler or linker for good 7449# libtool support. 7450case $host in 7451ia64-*-hpux*) 7452 # Find out which ABI we are using. 7453 echo 'int i;' > conftest.$ac_ext 7454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7455 (eval $ac_compile) 2>&5 7456 ac_status=$? 7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7458 test $ac_status = 0; }; then 7459 case `/usr/bin/file conftest.$ac_objext` in 7460 *ELF-32*) 7461 HPUX_IA64_MODE="32" 7462 ;; 7463 *ELF-64*) 7464 HPUX_IA64_MODE="64" 7465 ;; 7466 esac 7467 fi 7468 rm -rf conftest* 7469 ;; 7470*-*-irix6*) 7471 # Find out which ABI we are using. 7472 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7474 (eval $ac_compile) 2>&5 7475 ac_status=$? 7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7477 test $ac_status = 0; }; then 7478 if test "$lt_cv_prog_gnu_ld" = yes; then 7479 case `/usr/bin/file conftest.$ac_objext` in 7480 *32-bit*) 7481 LD="${LD-ld} -melf32bsmip" 7482 ;; 7483 *N32*) 7484 LD="${LD-ld} -melf32bmipn32" 7485 ;; 7486 *64-bit*) 7487 LD="${LD-ld} -melf64bmip" 7488 ;; 7489 esac 7490 else 7491 case `/usr/bin/file conftest.$ac_objext` in 7492 *32-bit*) 7493 LD="${LD-ld} -32" 7494 ;; 7495 *N32*) 7496 LD="${LD-ld} -n32" 7497 ;; 7498 *64-bit*) 7499 LD="${LD-ld} -64" 7500 ;; 7501 esac 7502 fi 7503 fi 7504 rm -rf conftest* 7505 ;; 7506 7507x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7508s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7509 # Find out which ABI we are using. 7510 echo 'int i;' > conftest.$ac_ext 7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7512 (eval $ac_compile) 2>&5 7513 ac_status=$? 7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7515 test $ac_status = 0; }; then 7516 case `/usr/bin/file conftest.o` in 7517 *32-bit*) 7518 case $host in 7519 x86_64-*kfreebsd*-gnu) 7520 LD="${LD-ld} -m elf_i386_fbsd" 7521 ;; 7522 x86_64-*linux*) 7523 LD="${LD-ld} -m elf_i386" 7524 ;; 7525 ppc64-*linux*|powerpc64-*linux*) 7526 LD="${LD-ld} -m elf32ppclinux" 7527 ;; 7528 s390x-*linux*) 7529 LD="${LD-ld} -m elf_s390" 7530 ;; 7531 sparc64-*linux*) 7532 LD="${LD-ld} -m elf32_sparc" 7533 ;; 7534 esac 7535 ;; 7536 *64-bit*) 7537 case $host in 7538 x86_64-*kfreebsd*-gnu) 7539 LD="${LD-ld} -m elf_x86_64_fbsd" 7540 ;; 7541 x86_64-*linux*) 7542 LD="${LD-ld} -m elf_x86_64" 7543 ;; 7544 ppc*-*linux*|powerpc*-*linux*) 7545 LD="${LD-ld} -m elf64ppc" 7546 ;; 7547 s390*-*linux*|s390*-*tpf*) 7548 LD="${LD-ld} -m elf64_s390" 7549 ;; 7550 sparc*-*linux*) 7551 LD="${LD-ld} -m elf64_sparc" 7552 ;; 7553 esac 7554 ;; 7555 esac 7556 fi 7557 rm -rf conftest* 7558 ;; 7559 7560*-*-sco3.2v5*) 7561 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7562 SAVE_CFLAGS="$CFLAGS" 7563 CFLAGS="$CFLAGS -belf" 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7565$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7566if ${lt_cv_cc_needs_belf+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 ac_ext=c 7570ac_cpp='$CPP $CPPFLAGS' 7571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7573ac_compiler_gnu=$ac_cv_c_compiler_gnu 7574 7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576/* end confdefs.h. */ 7577 7578int 7579main () 7580{ 7581 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586if ac_fn_c_try_link "$LINENO"; then : 7587 lt_cv_cc_needs_belf=yes 7588else 7589 lt_cv_cc_needs_belf=no 7590fi 7591rm -f core conftest.err conftest.$ac_objext \ 7592 conftest$ac_exeext conftest.$ac_ext 7593 ac_ext=c 7594ac_cpp='$CPP $CPPFLAGS' 7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7597ac_compiler_gnu=$ac_cv_c_compiler_gnu 7598 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7601$as_echo "$lt_cv_cc_needs_belf" >&6; } 7602 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7603 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7604 CFLAGS="$SAVE_CFLAGS" 7605 fi 7606 ;; 7607sparc*-*solaris*) 7608 # Find out which ABI we are using. 7609 echo 'int i;' > conftest.$ac_ext 7610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7611 (eval $ac_compile) 2>&5 7612 ac_status=$? 7613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7614 test $ac_status = 0; }; then 7615 case `/usr/bin/file conftest.o` in 7616 *64-bit*) 7617 case $lt_cv_prog_gnu_ld in 7618 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7619 *) 7620 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7621 LD="${LD-ld} -64" 7622 fi 7623 ;; 7624 esac 7625 ;; 7626 esac 7627 fi 7628 rm -rf conftest* 7629 ;; 7630esac 7631 7632need_locks="$enable_libtool_lock" 7633 7634if test -n "$ac_tool_prefix"; then 7635 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7636set dummy ${ac_tool_prefix}mt; ac_word=$2 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7638$as_echo_n "checking for $ac_word... " >&6; } 7639if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 if test -n "$MANIFEST_TOOL"; then 7643 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7644else 7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7646for as_dir in $PATH 7647do 7648 IFS=$as_save_IFS 7649 test -z "$as_dir" && as_dir=. 7650 for ac_exec_ext in '' $ac_executable_extensions; do 7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7652 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7654 break 2 7655 fi 7656done 7657 done 7658IFS=$as_save_IFS 7659 7660fi 7661fi 7662MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7663if test -n "$MANIFEST_TOOL"; then 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7665$as_echo "$MANIFEST_TOOL" >&6; } 7666else 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7668$as_echo "no" >&6; } 7669fi 7670 7671 7672fi 7673if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7674 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7675 # Extract the first word of "mt", so it can be a program name with args. 7676set dummy mt; ac_word=$2 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7678$as_echo_n "checking for $ac_word... " >&6; } 7679if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681else 7682 if test -n "$ac_ct_MANIFEST_TOOL"; then 7683 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7684else 7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7686for as_dir in $PATH 7687do 7688 IFS=$as_save_IFS 7689 test -z "$as_dir" && as_dir=. 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7692 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7694 break 2 7695 fi 7696done 7697 done 7698IFS=$as_save_IFS 7699 7700fi 7701fi 7702ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7703if test -n "$ac_ct_MANIFEST_TOOL"; then 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7705$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7706else 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708$as_echo "no" >&6; } 7709fi 7710 7711 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7712 MANIFEST_TOOL=":" 7713 else 7714 case $cross_compiling:$ac_tool_warned in 7715yes:) 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7718ac_tool_warned=yes ;; 7719esac 7720 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7721 fi 7722else 7723 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7724fi 7725 7726test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7728$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7729if ${lt_cv_path_mainfest_tool+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 lt_cv_path_mainfest_tool=no 7733 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7734 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7735 cat conftest.err >&5 7736 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7737 lt_cv_path_mainfest_tool=yes 7738 fi 7739 rm -f conftest* 7740fi 7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7742$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7743if test "x$lt_cv_path_mainfest_tool" != xyes; then 7744 MANIFEST_TOOL=: 7745fi 7746 7747 7748 7749 7750 7751 7752 case $host_os in 7753 rhapsody* | darwin*) 7754 if test -n "$ac_tool_prefix"; then 7755 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7756set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7758$as_echo_n "checking for $ac_word... " >&6; } 7759if ${ac_cv_prog_DSYMUTIL+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 if test -n "$DSYMUTIL"; then 7763 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7764else 7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7766for as_dir in $PATH 7767do 7768 IFS=$as_save_IFS 7769 test -z "$as_dir" && as_dir=. 7770 for ac_exec_ext in '' $ac_executable_extensions; do 7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7772 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7774 break 2 7775 fi 7776done 7777 done 7778IFS=$as_save_IFS 7779 7780fi 7781fi 7782DSYMUTIL=$ac_cv_prog_DSYMUTIL 7783if test -n "$DSYMUTIL"; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7785$as_echo "$DSYMUTIL" >&6; } 7786else 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7788$as_echo "no" >&6; } 7789fi 7790 7791 7792fi 7793if test -z "$ac_cv_prog_DSYMUTIL"; then 7794 ac_ct_DSYMUTIL=$DSYMUTIL 7795 # Extract the first word of "dsymutil", so it can be a program name with args. 7796set dummy dsymutil; ac_word=$2 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7798$as_echo_n "checking for $ac_word... " >&6; } 7799if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7800 $as_echo_n "(cached) " >&6 7801else 7802 if test -n "$ac_ct_DSYMUTIL"; then 7803 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7804else 7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7806for as_dir in $PATH 7807do 7808 IFS=$as_save_IFS 7809 test -z "$as_dir" && as_dir=. 7810 for ac_exec_ext in '' $ac_executable_extensions; do 7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7812 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7814 break 2 7815 fi 7816done 7817 done 7818IFS=$as_save_IFS 7819 7820fi 7821fi 7822ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7823if test -n "$ac_ct_DSYMUTIL"; then 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7825$as_echo "$ac_ct_DSYMUTIL" >&6; } 7826else 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7828$as_echo "no" >&6; } 7829fi 7830 7831 if test "x$ac_ct_DSYMUTIL" = x; then 7832 DSYMUTIL=":" 7833 else 7834 case $cross_compiling:$ac_tool_warned in 7835yes:) 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7838ac_tool_warned=yes ;; 7839esac 7840 DSYMUTIL=$ac_ct_DSYMUTIL 7841 fi 7842else 7843 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7844fi 7845 7846 if test -n "$ac_tool_prefix"; then 7847 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7848set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7850$as_echo_n "checking for $ac_word... " >&6; } 7851if ${ac_cv_prog_NMEDIT+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 if test -n "$NMEDIT"; then 7855 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7856else 7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7858for as_dir in $PATH 7859do 7860 IFS=$as_save_IFS 7861 test -z "$as_dir" && as_dir=. 7862 for ac_exec_ext in '' $ac_executable_extensions; do 7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7864 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7866 break 2 7867 fi 7868done 7869 done 7870IFS=$as_save_IFS 7871 7872fi 7873fi 7874NMEDIT=$ac_cv_prog_NMEDIT 7875if test -n "$NMEDIT"; then 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7877$as_echo "$NMEDIT" >&6; } 7878else 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7880$as_echo "no" >&6; } 7881fi 7882 7883 7884fi 7885if test -z "$ac_cv_prog_NMEDIT"; then 7886 ac_ct_NMEDIT=$NMEDIT 7887 # Extract the first word of "nmedit", so it can be a program name with args. 7888set dummy nmedit; ac_word=$2 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7890$as_echo_n "checking for $ac_word... " >&6; } 7891if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 if test -n "$ac_ct_NMEDIT"; then 7895 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7896else 7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7898for as_dir in $PATH 7899do 7900 IFS=$as_save_IFS 7901 test -z "$as_dir" && as_dir=. 7902 for ac_exec_ext in '' $ac_executable_extensions; do 7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7904 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7906 break 2 7907 fi 7908done 7909 done 7910IFS=$as_save_IFS 7911 7912fi 7913fi 7914ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7915if test -n "$ac_ct_NMEDIT"; then 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7917$as_echo "$ac_ct_NMEDIT" >&6; } 7918else 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7920$as_echo "no" >&6; } 7921fi 7922 7923 if test "x$ac_ct_NMEDIT" = x; then 7924 NMEDIT=":" 7925 else 7926 case $cross_compiling:$ac_tool_warned in 7927yes:) 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7930ac_tool_warned=yes ;; 7931esac 7932 NMEDIT=$ac_ct_NMEDIT 7933 fi 7934else 7935 NMEDIT="$ac_cv_prog_NMEDIT" 7936fi 7937 7938 if test -n "$ac_tool_prefix"; then 7939 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7940set dummy ${ac_tool_prefix}lipo; ac_word=$2 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7942$as_echo_n "checking for $ac_word... " >&6; } 7943if ${ac_cv_prog_LIPO+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 if test -n "$LIPO"; then 7947 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7948else 7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7950for as_dir in $PATH 7951do 7952 IFS=$as_save_IFS 7953 test -z "$as_dir" && as_dir=. 7954 for ac_exec_ext in '' $ac_executable_extensions; do 7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7956 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7958 break 2 7959 fi 7960done 7961 done 7962IFS=$as_save_IFS 7963 7964fi 7965fi 7966LIPO=$ac_cv_prog_LIPO 7967if test -n "$LIPO"; then 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7969$as_echo "$LIPO" >&6; } 7970else 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7972$as_echo "no" >&6; } 7973fi 7974 7975 7976fi 7977if test -z "$ac_cv_prog_LIPO"; then 7978 ac_ct_LIPO=$LIPO 7979 # Extract the first word of "lipo", so it can be a program name with args. 7980set dummy lipo; ac_word=$2 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982$as_echo_n "checking for $ac_word... " >&6; } 7983if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 if test -n "$ac_ct_LIPO"; then 7987 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7988else 7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7990for as_dir in $PATH 7991do 7992 IFS=$as_save_IFS 7993 test -z "$as_dir" && as_dir=. 7994 for ac_exec_ext in '' $ac_executable_extensions; do 7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7996 ac_cv_prog_ac_ct_LIPO="lipo" 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7998 break 2 7999 fi 8000done 8001 done 8002IFS=$as_save_IFS 8003 8004fi 8005fi 8006ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8007if test -n "$ac_ct_LIPO"; then 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8009$as_echo "$ac_ct_LIPO" >&6; } 8010else 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8012$as_echo "no" >&6; } 8013fi 8014 8015 if test "x$ac_ct_LIPO" = x; then 8016 LIPO=":" 8017 else 8018 case $cross_compiling:$ac_tool_warned in 8019yes:) 8020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8022ac_tool_warned=yes ;; 8023esac 8024 LIPO=$ac_ct_LIPO 8025 fi 8026else 8027 LIPO="$ac_cv_prog_LIPO" 8028fi 8029 8030 if test -n "$ac_tool_prefix"; then 8031 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8032set dummy ${ac_tool_prefix}otool; ac_word=$2 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8034$as_echo_n "checking for $ac_word... " >&6; } 8035if ${ac_cv_prog_OTOOL+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 if test -n "$OTOOL"; then 8039 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8040else 8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8042for as_dir in $PATH 8043do 8044 IFS=$as_save_IFS 8045 test -z "$as_dir" && as_dir=. 8046 for ac_exec_ext in '' $ac_executable_extensions; do 8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8048 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8050 break 2 8051 fi 8052done 8053 done 8054IFS=$as_save_IFS 8055 8056fi 8057fi 8058OTOOL=$ac_cv_prog_OTOOL 8059if test -n "$OTOOL"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8061$as_echo "$OTOOL" >&6; } 8062else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064$as_echo "no" >&6; } 8065fi 8066 8067 8068fi 8069if test -z "$ac_cv_prog_OTOOL"; then 8070 ac_ct_OTOOL=$OTOOL 8071 # Extract the first word of "otool", so it can be a program name with args. 8072set dummy otool; ac_word=$2 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8074$as_echo_n "checking for $ac_word... " >&6; } 8075if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 if test -n "$ac_ct_OTOOL"; then 8079 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8080else 8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8082for as_dir in $PATH 8083do 8084 IFS=$as_save_IFS 8085 test -z "$as_dir" && as_dir=. 8086 for ac_exec_ext in '' $ac_executable_extensions; do 8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8088 ac_cv_prog_ac_ct_OTOOL="otool" 8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8090 break 2 8091 fi 8092done 8093 done 8094IFS=$as_save_IFS 8095 8096fi 8097fi 8098ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8099if test -n "$ac_ct_OTOOL"; then 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8101$as_echo "$ac_ct_OTOOL" >&6; } 8102else 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8104$as_echo "no" >&6; } 8105fi 8106 8107 if test "x$ac_ct_OTOOL" = x; then 8108 OTOOL=":" 8109 else 8110 case $cross_compiling:$ac_tool_warned in 8111yes:) 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8114ac_tool_warned=yes ;; 8115esac 8116 OTOOL=$ac_ct_OTOOL 8117 fi 8118else 8119 OTOOL="$ac_cv_prog_OTOOL" 8120fi 8121 8122 if test -n "$ac_tool_prefix"; then 8123 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8124set dummy ${ac_tool_prefix}otool64; ac_word=$2 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8126$as_echo_n "checking for $ac_word... " >&6; } 8127if ${ac_cv_prog_OTOOL64+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 if test -n "$OTOOL64"; then 8131 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8132else 8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8134for as_dir in $PATH 8135do 8136 IFS=$as_save_IFS 8137 test -z "$as_dir" && as_dir=. 8138 for ac_exec_ext in '' $ac_executable_extensions; do 8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8140 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8142 break 2 8143 fi 8144done 8145 done 8146IFS=$as_save_IFS 8147 8148fi 8149fi 8150OTOOL64=$ac_cv_prog_OTOOL64 8151if test -n "$OTOOL64"; then 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8153$as_echo "$OTOOL64" >&6; } 8154else 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8156$as_echo "no" >&6; } 8157fi 8158 8159 8160fi 8161if test -z "$ac_cv_prog_OTOOL64"; then 8162 ac_ct_OTOOL64=$OTOOL64 8163 # Extract the first word of "otool64", so it can be a program name with args. 8164set dummy otool64; ac_word=$2 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8166$as_echo_n "checking for $ac_word... " >&6; } 8167if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169else 8170 if test -n "$ac_ct_OTOOL64"; then 8171 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8172else 8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8174for as_dir in $PATH 8175do 8176 IFS=$as_save_IFS 8177 test -z "$as_dir" && as_dir=. 8178 for ac_exec_ext in '' $ac_executable_extensions; do 8179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8180 ac_cv_prog_ac_ct_OTOOL64="otool64" 8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8182 break 2 8183 fi 8184done 8185 done 8186IFS=$as_save_IFS 8187 8188fi 8189fi 8190ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8191if test -n "$ac_ct_OTOOL64"; then 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8193$as_echo "$ac_ct_OTOOL64" >&6; } 8194else 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8196$as_echo "no" >&6; } 8197fi 8198 8199 if test "x$ac_ct_OTOOL64" = x; then 8200 OTOOL64=":" 8201 else 8202 case $cross_compiling:$ac_tool_warned in 8203yes:) 8204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8206ac_tool_warned=yes ;; 8207esac 8208 OTOOL64=$ac_ct_OTOOL64 8209 fi 8210else 8211 OTOOL64="$ac_cv_prog_OTOOL64" 8212fi 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8241$as_echo_n "checking for -single_module linker flag... " >&6; } 8242if ${lt_cv_apple_cc_single_mod+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 lt_cv_apple_cc_single_mod=no 8246 if test -z "${LT_MULTI_MODULE}"; then 8247 # By default we will add the -single_module flag. You can override 8248 # by either setting the environment variable LT_MULTI_MODULE 8249 # non-empty at configure time, or by adding -multi_module to the 8250 # link flags. 8251 rm -rf libconftest.dylib* 8252 echo "int foo(void){return 1;}" > conftest.c 8253 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8254-dynamiclib -Wl,-single_module conftest.c" >&5 8255 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8256 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8257 _lt_result=$? 8258 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8259 lt_cv_apple_cc_single_mod=yes 8260 else 8261 cat conftest.err >&5 8262 fi 8263 rm -rf libconftest.dylib* 8264 rm -f conftest.* 8265 fi 8266fi 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8268$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8270$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8271if ${lt_cv_ld_exported_symbols_list+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 lt_cv_ld_exported_symbols_list=no 8275 save_LDFLAGS=$LDFLAGS 8276 echo "_main" > conftest.sym 8277 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280 8281int 8282main () 8283{ 8284 8285 ; 8286 return 0; 8287} 8288_ACEOF 8289if ac_fn_c_try_link "$LINENO"; then : 8290 lt_cv_ld_exported_symbols_list=yes 8291else 8292 lt_cv_ld_exported_symbols_list=no 8293fi 8294rm -f core conftest.err conftest.$ac_objext \ 8295 conftest$ac_exeext conftest.$ac_ext 8296 LDFLAGS="$save_LDFLAGS" 8297 8298fi 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8300$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8302$as_echo_n "checking for -force_load linker flag... " >&6; } 8303if ${lt_cv_ld_force_load+:} false; then : 8304 $as_echo_n "(cached) " >&6 8305else 8306 lt_cv_ld_force_load=no 8307 cat > conftest.c << _LT_EOF 8308int forced_loaded() { return 2;} 8309_LT_EOF 8310 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8311 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8312 echo "$AR cru libconftest.a conftest.o" >&5 8313 $AR cru libconftest.a conftest.o 2>&5 8314 echo "$RANLIB libconftest.a" >&5 8315 $RANLIB libconftest.a 2>&5 8316 cat > conftest.c << _LT_EOF 8317int main() { return 0;} 8318_LT_EOF 8319 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8320 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8321 _lt_result=$? 8322 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8323 lt_cv_ld_force_load=yes 8324 else 8325 cat conftest.err >&5 8326 fi 8327 rm -f conftest.err libconftest.a conftest conftest.c 8328 rm -rf conftest.dSYM 8329 8330fi 8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8332$as_echo "$lt_cv_ld_force_load" >&6; } 8333 case $host_os in 8334 rhapsody* | darwin1.[012]) 8335 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8336 darwin1.*) 8337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8338 darwin*) # darwin 5.x on 8339 # if running on 10.5 or later, the deployment target defaults 8340 # to the OS version, if on x86, and 10.4, the deployment 8341 # target defaults to 10.4. Don't you love it? 8342 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8343 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8345 10.[012]*) 8346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8347 10.*) 8348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8349 esac 8350 ;; 8351 esac 8352 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8353 _lt_dar_single_mod='$single_module' 8354 fi 8355 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8356 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8357 else 8358 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8359 fi 8360 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8361 _lt_dsymutil='~$DSYMUTIL $lib || :' 8362 else 8363 _lt_dsymutil= 8364 fi 8365 ;; 8366 esac 8367 8368for ac_header in dlfcn.h 8369do : 8370 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8371" 8372if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8373 cat >>confdefs.h <<_ACEOF 8374#define HAVE_DLFCN_H 1 8375_ACEOF 8376 8377fi 8378 8379done 8380 8381 8382 8383 8384 8385# Set options 8386 8387 8388 8389 enable_dlopen=no 8390 8391 8392 8393 # Check whether --enable-shared was given. 8394if test "${enable_shared+set}" = set; then : 8395 enableval=$enable_shared; p=${PACKAGE-default} 8396 case $enableval in 8397 yes) enable_shared=yes ;; 8398 no) enable_shared=no ;; 8399 *) 8400 enable_shared=no 8401 # Look at the argument we got. We use all the common list separators. 8402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8403 for pkg in $enableval; do 8404 IFS="$lt_save_ifs" 8405 if test "X$pkg" = "X$p"; then 8406 enable_shared=yes 8407 fi 8408 done 8409 IFS="$lt_save_ifs" 8410 ;; 8411 esac 8412else 8413 enable_shared=yes 8414fi 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 # Check whether --enable-static was given. 8425if test "${enable_static+set}" = set; then : 8426 enableval=$enable_static; p=${PACKAGE-default} 8427 case $enableval in 8428 yes) enable_static=yes ;; 8429 no) enable_static=no ;; 8430 *) 8431 enable_static=no 8432 # Look at the argument we got. We use all the common list separators. 8433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8434 for pkg in $enableval; do 8435 IFS="$lt_save_ifs" 8436 if test "X$pkg" = "X$p"; then 8437 enable_static=yes 8438 fi 8439 done 8440 IFS="$lt_save_ifs" 8441 ;; 8442 esac 8443else 8444 enable_static=yes 8445fi 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456# Check whether --with-pic was given. 8457if test "${with_pic+set}" = set; then : 8458 withval=$with_pic; pic_mode="$withval" 8459else 8460 pic_mode=default 8461fi 8462 8463 8464test -z "$pic_mode" && pic_mode=default 8465 8466 8467 8468 8469 8470 8471 8472 # Check whether --enable-fast-install was given. 8473if test "${enable_fast_install+set}" = set; then : 8474 enableval=$enable_fast_install; p=${PACKAGE-default} 8475 case $enableval in 8476 yes) enable_fast_install=yes ;; 8477 no) enable_fast_install=no ;; 8478 *) 8479 enable_fast_install=no 8480 # Look at the argument we got. We use all the common list separators. 8481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8482 for pkg in $enableval; do 8483 IFS="$lt_save_ifs" 8484 if test "X$pkg" = "X$p"; then 8485 enable_fast_install=yes 8486 fi 8487 done 8488 IFS="$lt_save_ifs" 8489 ;; 8490 esac 8491else 8492 enable_fast_install=yes 8493fi 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505# This can be used to rebuild libtool when needed 8506LIBTOOL_DEPS="$ltmain" 8507 8508# Always use our own libtool. 8509LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536test -z "$LN_S" && LN_S="ln -s" 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551if test -n "${ZSH_VERSION+set}" ; then 8552 setopt NO_GLOB_SUBST 8553fi 8554 8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8556$as_echo_n "checking for objdir... " >&6; } 8557if ${lt_cv_objdir+:} false; then : 8558 $as_echo_n "(cached) " >&6 8559else 8560 rm -f .libs 2>/dev/null 8561mkdir .libs 2>/dev/null 8562if test -d .libs; then 8563 lt_cv_objdir=.libs 8564else 8565 # MS-DOS does not allow filenames that begin with a dot. 8566 lt_cv_objdir=_libs 8567fi 8568rmdir .libs 2>/dev/null 8569fi 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8571$as_echo "$lt_cv_objdir" >&6; } 8572objdir=$lt_cv_objdir 8573 8574 8575 8576 8577 8578cat >>confdefs.h <<_ACEOF 8579#define LT_OBJDIR "$lt_cv_objdir/" 8580_ACEOF 8581 8582 8583 8584 8585case $host_os in 8586aix3*) 8587 # AIX sometimes has problems with the GCC collect2 program. For some 8588 # reason, if we set the COLLECT_NAMES environment variable, the problems 8589 # vanish in a puff of smoke. 8590 if test "X${COLLECT_NAMES+set}" != Xset; then 8591 COLLECT_NAMES= 8592 export COLLECT_NAMES 8593 fi 8594 ;; 8595esac 8596 8597# Global variables: 8598ofile=libtool 8599can_build_shared=yes 8600 8601# All known linkers require a `.a' archive for static linking (except MSVC, 8602# which needs '.lib'). 8603libext=a 8604 8605with_gnu_ld="$lt_cv_prog_gnu_ld" 8606 8607old_CC="$CC" 8608old_CFLAGS="$CFLAGS" 8609 8610# Set sane defaults for various variables 8611test -z "$CC" && CC=cc 8612test -z "$LTCC" && LTCC=$CC 8613test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8614test -z "$LD" && LD=ld 8615test -z "$ac_objext" && ac_objext=o 8616 8617for cc_temp in $compiler""; do 8618 case $cc_temp in 8619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8621 \-*) ;; 8622 *) break;; 8623 esac 8624done 8625cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8626 8627 8628# Only perform the check for file, if the check method requires it 8629test -z "$MAGIC_CMD" && MAGIC_CMD=file 8630case $deplibs_check_method in 8631file_magic*) 8632 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8634$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8635if ${lt_cv_path_MAGIC_CMD+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637else 8638 case $MAGIC_CMD in 8639[\\/*] | ?:[\\/]*) 8640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8641 ;; 8642*) 8643 lt_save_MAGIC_CMD="$MAGIC_CMD" 8644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8646 for ac_dir in $ac_dummy; do 8647 IFS="$lt_save_ifs" 8648 test -z "$ac_dir" && ac_dir=. 8649 if test -f $ac_dir/${ac_tool_prefix}file; then 8650 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8651 if test -n "$file_magic_test_file"; then 8652 case $deplibs_check_method in 8653 "file_magic "*) 8654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8657 $EGREP "$file_magic_regex" > /dev/null; then 8658 : 8659 else 8660 cat <<_LT_EOF 1>&2 8661 8662*** Warning: the command libtool uses to detect shared libraries, 8663*** $file_magic_cmd, produces output that libtool cannot recognize. 8664*** The result is that libtool may fail to recognize shared libraries 8665*** as such. This will affect the creation of libtool libraries that 8666*** depend on shared libraries, but programs linked with such libtool 8667*** libraries will work regardless of this problem. Nevertheless, you 8668*** may want to report the problem to your system manager and/or to 8669*** bug-libtool@gnu.org 8670 8671_LT_EOF 8672 fi ;; 8673 esac 8674 fi 8675 break 8676 fi 8677 done 8678 IFS="$lt_save_ifs" 8679 MAGIC_CMD="$lt_save_MAGIC_CMD" 8680 ;; 8681esac 8682fi 8683 8684MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8685if test -n "$MAGIC_CMD"; then 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8687$as_echo "$MAGIC_CMD" >&6; } 8688else 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8690$as_echo "no" >&6; } 8691fi 8692 8693 8694 8695 8696 8697if test -z "$lt_cv_path_MAGIC_CMD"; then 8698 if test -n "$ac_tool_prefix"; then 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8700$as_echo_n "checking for file... " >&6; } 8701if ${lt_cv_path_MAGIC_CMD+:} false; then : 8702 $as_echo_n "(cached) " >&6 8703else 8704 case $MAGIC_CMD in 8705[\\/*] | ?:[\\/]*) 8706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8707 ;; 8708*) 8709 lt_save_MAGIC_CMD="$MAGIC_CMD" 8710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8712 for ac_dir in $ac_dummy; do 8713 IFS="$lt_save_ifs" 8714 test -z "$ac_dir" && ac_dir=. 8715 if test -f $ac_dir/file; then 8716 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8717 if test -n "$file_magic_test_file"; then 8718 case $deplibs_check_method in 8719 "file_magic "*) 8720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8723 $EGREP "$file_magic_regex" > /dev/null; then 8724 : 8725 else 8726 cat <<_LT_EOF 1>&2 8727 8728*** Warning: the command libtool uses to detect shared libraries, 8729*** $file_magic_cmd, produces output that libtool cannot recognize. 8730*** The result is that libtool may fail to recognize shared libraries 8731*** as such. This will affect the creation of libtool libraries that 8732*** depend on shared libraries, but programs linked with such libtool 8733*** libraries will work regardless of this problem. Nevertheless, you 8734*** may want to report the problem to your system manager and/or to 8735*** bug-libtool@gnu.org 8736 8737_LT_EOF 8738 fi ;; 8739 esac 8740 fi 8741 break 8742 fi 8743 done 8744 IFS="$lt_save_ifs" 8745 MAGIC_CMD="$lt_save_MAGIC_CMD" 8746 ;; 8747esac 8748fi 8749 8750MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8751if test -n "$MAGIC_CMD"; then 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8753$as_echo "$MAGIC_CMD" >&6; } 8754else 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8756$as_echo "no" >&6; } 8757fi 8758 8759 8760 else 8761 MAGIC_CMD=: 8762 fi 8763fi 8764 8765 fi 8766 ;; 8767esac 8768 8769# Use C for the default configuration in the libtool script 8770 8771lt_save_CC="$CC" 8772ac_ext=c 8773ac_cpp='$CPP $CPPFLAGS' 8774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8776ac_compiler_gnu=$ac_cv_c_compiler_gnu 8777 8778 8779# Source file extension for C test sources. 8780ac_ext=c 8781 8782# Object file extension for compiled C test sources. 8783objext=o 8784objext=$objext 8785 8786# Code to be used in simple compile tests 8787lt_simple_compile_test_code="int some_variable = 0;" 8788 8789# Code to be used in simple link tests 8790lt_simple_link_test_code='int main(){return(0);}' 8791 8792 8793 8794 8795 8796 8797 8798# If no C compiler was specified, use CC. 8799LTCC=${LTCC-"$CC"} 8800 8801# If no C compiler flags were specified, use CFLAGS. 8802LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8803 8804# Allow CC to be a program name with arguments. 8805compiler=$CC 8806 8807# Save the default compiler, since it gets overwritten when the other 8808# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8809compiler_DEFAULT=$CC 8810 8811# save warnings/boilerplate of simple test code 8812ac_outfile=conftest.$ac_objext 8813echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8815_lt_compiler_boilerplate=`cat conftest.err` 8816$RM conftest* 8817 8818ac_outfile=conftest.$ac_objext 8819echo "$lt_simple_link_test_code" >conftest.$ac_ext 8820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8821_lt_linker_boilerplate=`cat conftest.err` 8822$RM -r conftest* 8823 8824 8825## CAVEAT EMPTOR: 8826## There is no encapsulation within the following macros, do not change 8827## the running order or otherwise move them around unless you know exactly 8828## what you are doing... 8829if test -n "$compiler"; then 8830 8831lt_prog_compiler_no_builtin_flag= 8832 8833if test "$GCC" = yes; then 8834 case $cc_basename in 8835 nvcc*) 8836 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8837 *) 8838 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8839 esac 8840 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8842$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8843if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 lt_cv_prog_compiler_rtti_exceptions=no 8847 ac_outfile=conftest.$ac_objext 8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8849 lt_compiler_flag="-fno-rtti -fno-exceptions" 8850 # Insert the option either (1) after the last *FLAGS variable, or 8851 # (2) before a word containing "conftest.", or (3) at the end. 8852 # Note that $ac_compile itself does not contain backslashes and begins 8853 # with a dollar sign (not a hyphen), so the echo should work correctly. 8854 # The option is referenced via a variable to avoid confusing sed. 8855 lt_compile=`echo "$ac_compile" | $SED \ 8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8858 -e 's:$: $lt_compiler_flag:'` 8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8860 (eval "$lt_compile" 2>conftest.err) 8861 ac_status=$? 8862 cat conftest.err >&5 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 if (exit $ac_status) && test -s "$ac_outfile"; then 8865 # The compiler can only warn and ignore the option if not recognized 8866 # So say no if there are warnings other than the usual output. 8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8870 lt_cv_prog_compiler_rtti_exceptions=yes 8871 fi 8872 fi 8873 $RM conftest* 8874 8875fi 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8877$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8878 8879if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8881else 8882 : 8883fi 8884 8885fi 8886 8887 8888 8889 8890 8891 8892 lt_prog_compiler_wl= 8893lt_prog_compiler_pic= 8894lt_prog_compiler_static= 8895 8896 8897 if test "$GCC" = yes; then 8898 lt_prog_compiler_wl='-Wl,' 8899 lt_prog_compiler_static='-static' 8900 8901 case $host_os in 8902 aix*) 8903 # All AIX code is PIC. 8904 if test "$host_cpu" = ia64; then 8905 # AIX 5 now supports IA64 processor 8906 lt_prog_compiler_static='-Bstatic' 8907 fi 8908 ;; 8909 8910 amigaos*) 8911 case $host_cpu in 8912 powerpc) 8913 # see comment about AmigaOS4 .so support 8914 lt_prog_compiler_pic='-fPIC' 8915 ;; 8916 m68k) 8917 # FIXME: we need at least 68020 code to build shared libraries, but 8918 # adding the `-m68020' flag to GCC prevents building anything better, 8919 # like `-m68040'. 8920 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8921 ;; 8922 esac 8923 ;; 8924 8925 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8926 # PIC is the default for these OSes. 8927 ;; 8928 8929 mingw* | cygwin* | pw32* | os2* | cegcc*) 8930 # This hack is so that the source file can tell whether it is being 8931 # built for inclusion in a dll (and should export symbols for example). 8932 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8933 # (--disable-auto-import) libraries 8934 lt_prog_compiler_pic='-DDLL_EXPORT' 8935 ;; 8936 8937 darwin* | rhapsody*) 8938 # PIC is the default on this platform 8939 # Common symbols not allowed in MH_DYLIB files 8940 lt_prog_compiler_pic='-fno-common' 8941 ;; 8942 8943 haiku*) 8944 # PIC is the default for Haiku. 8945 # The "-static" flag exists, but is broken. 8946 lt_prog_compiler_static= 8947 ;; 8948 8949 hpux*) 8950 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8951 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8952 # sets the default TLS model and affects inlining. 8953 case $host_cpu in 8954 hppa*64*) 8955 # +Z the default 8956 ;; 8957 *) 8958 lt_prog_compiler_pic='-fPIC' 8959 ;; 8960 esac 8961 ;; 8962 8963 interix[3-9]*) 8964 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8965 # Instead, we relocate shared libraries at runtime. 8966 ;; 8967 8968 msdosdjgpp*) 8969 # Just because we use GCC doesn't mean we suddenly get shared libraries 8970 # on systems that don't support them. 8971 lt_prog_compiler_can_build_shared=no 8972 enable_shared=no 8973 ;; 8974 8975 *nto* | *qnx*) 8976 # QNX uses GNU C++, but need to define -shared option too, otherwise 8977 # it will coredump. 8978 lt_prog_compiler_pic='-fPIC -shared' 8979 ;; 8980 8981 sysv4*MP*) 8982 if test -d /usr/nec; then 8983 lt_prog_compiler_pic=-Kconform_pic 8984 fi 8985 ;; 8986 8987 *) 8988 lt_prog_compiler_pic='-fPIC' 8989 ;; 8990 esac 8991 8992 case $cc_basename in 8993 nvcc*) # Cuda Compiler Driver 2.2 8994 lt_prog_compiler_wl='-Xlinker ' 8995 lt_prog_compiler_pic='-Xcompiler -fPIC' 8996 ;; 8997 esac 8998 else 8999 # PORTME Check for flag to pass linker flags through the system compiler. 9000 case $host_os in 9001 aix*) 9002 lt_prog_compiler_wl='-Wl,' 9003 if test "$host_cpu" = ia64; then 9004 # AIX 5 now supports IA64 processor 9005 lt_prog_compiler_static='-Bstatic' 9006 else 9007 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9008 fi 9009 ;; 9010 9011 mingw* | cygwin* | pw32* | os2* | cegcc*) 9012 # This hack is so that the source file can tell whether it is being 9013 # built for inclusion in a dll (and should export symbols for example). 9014 lt_prog_compiler_pic='-DDLL_EXPORT' 9015 ;; 9016 9017 hpux9* | hpux10* | hpux11*) 9018 lt_prog_compiler_wl='-Wl,' 9019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9020 # not for PA HP-UX. 9021 case $host_cpu in 9022 hppa*64*|ia64*) 9023 # +Z the default 9024 ;; 9025 *) 9026 lt_prog_compiler_pic='+Z' 9027 ;; 9028 esac 9029 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9030 lt_prog_compiler_static='${wl}-a ${wl}archive' 9031 ;; 9032 9033 irix5* | irix6* | nonstopux*) 9034 lt_prog_compiler_wl='-Wl,' 9035 # PIC (with -KPIC) is the default. 9036 lt_prog_compiler_static='-non_shared' 9037 ;; 9038 9039 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9040 case $cc_basename in 9041 # old Intel for x86_64 which still supported -KPIC. 9042 ecc*) 9043 lt_prog_compiler_wl='-Wl,' 9044 lt_prog_compiler_pic='-KPIC' 9045 lt_prog_compiler_static='-static' 9046 ;; 9047 # icc used to be incompatible with GCC. 9048 # ICC 10 doesn't accept -KPIC any more. 9049 icc* | ifort*) 9050 lt_prog_compiler_wl='-Wl,' 9051 lt_prog_compiler_pic='-fPIC' 9052 lt_prog_compiler_static='-static' 9053 ;; 9054 # Lahey Fortran 8.1. 9055 lf95*) 9056 lt_prog_compiler_wl='-Wl,' 9057 lt_prog_compiler_pic='--shared' 9058 lt_prog_compiler_static='--static' 9059 ;; 9060 nagfor*) 9061 # NAG Fortran compiler 9062 lt_prog_compiler_wl='-Wl,-Wl,,' 9063 lt_prog_compiler_pic='-PIC' 9064 lt_prog_compiler_static='-Bstatic' 9065 ;; 9066 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9067 # Portland Group compilers (*not* the Pentium gcc compiler, 9068 # which looks to be a dead project) 9069 lt_prog_compiler_wl='-Wl,' 9070 lt_prog_compiler_pic='-fpic' 9071 lt_prog_compiler_static='-Bstatic' 9072 ;; 9073 ccc*) 9074 lt_prog_compiler_wl='-Wl,' 9075 # All Alpha code is PIC. 9076 lt_prog_compiler_static='-non_shared' 9077 ;; 9078 xl* | bgxl* | bgf* | mpixl*) 9079 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9080 lt_prog_compiler_wl='-Wl,' 9081 lt_prog_compiler_pic='-qpic' 9082 lt_prog_compiler_static='-qstaticlink' 9083 ;; 9084 *) 9085 case `$CC -V 2>&1 | sed 5q` in 9086 *Sun\ F* | *Sun*Fortran*) 9087 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9088 lt_prog_compiler_pic='-KPIC' 9089 lt_prog_compiler_static='-Bstatic' 9090 lt_prog_compiler_wl='' 9091 ;; 9092 *Sun\ C*) 9093 # Sun C 5.9 9094 lt_prog_compiler_pic='-KPIC' 9095 lt_prog_compiler_static='-Bstatic' 9096 lt_prog_compiler_wl='-Wl,' 9097 ;; 9098 esac 9099 ;; 9100 esac 9101 ;; 9102 9103 newsos6) 9104 lt_prog_compiler_pic='-KPIC' 9105 lt_prog_compiler_static='-Bstatic' 9106 ;; 9107 9108 *nto* | *qnx*) 9109 # QNX uses GNU C++, but need to define -shared option too, otherwise 9110 # it will coredump. 9111 lt_prog_compiler_pic='-fPIC -shared' 9112 ;; 9113 9114 osf3* | osf4* | osf5*) 9115 lt_prog_compiler_wl='-Wl,' 9116 # All OSF/1 code is PIC. 9117 lt_prog_compiler_static='-non_shared' 9118 ;; 9119 9120 rdos*) 9121 lt_prog_compiler_static='-non_shared' 9122 ;; 9123 9124 solaris*) 9125 lt_prog_compiler_pic='-KPIC' 9126 lt_prog_compiler_static='-Bstatic' 9127 case $cc_basename in 9128 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9129 lt_prog_compiler_wl='-Qoption ld ';; 9130 *) 9131 lt_prog_compiler_wl='-Wl,';; 9132 esac 9133 ;; 9134 9135 sunos4*) 9136 lt_prog_compiler_wl='-Qoption ld ' 9137 lt_prog_compiler_pic='-PIC' 9138 lt_prog_compiler_static='-Bstatic' 9139 ;; 9140 9141 sysv4 | sysv4.2uw2* | sysv4.3*) 9142 lt_prog_compiler_wl='-Wl,' 9143 lt_prog_compiler_pic='-KPIC' 9144 lt_prog_compiler_static='-Bstatic' 9145 ;; 9146 9147 sysv4*MP*) 9148 if test -d /usr/nec ;then 9149 lt_prog_compiler_pic='-Kconform_pic' 9150 lt_prog_compiler_static='-Bstatic' 9151 fi 9152 ;; 9153 9154 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9155 lt_prog_compiler_wl='-Wl,' 9156 lt_prog_compiler_pic='-KPIC' 9157 lt_prog_compiler_static='-Bstatic' 9158 ;; 9159 9160 unicos*) 9161 lt_prog_compiler_wl='-Wl,' 9162 lt_prog_compiler_can_build_shared=no 9163 ;; 9164 9165 uts4*) 9166 lt_prog_compiler_pic='-pic' 9167 lt_prog_compiler_static='-Bstatic' 9168 ;; 9169 9170 *) 9171 lt_prog_compiler_can_build_shared=no 9172 ;; 9173 esac 9174 fi 9175 9176case $host_os in 9177 # For platforms which do not support PIC, -DPIC is meaningless: 9178 *djgpp*) 9179 lt_prog_compiler_pic= 9180 ;; 9181 *) 9182 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9183 ;; 9184esac 9185 9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9187$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9188if ${lt_cv_prog_compiler_pic+:} false; then : 9189 $as_echo_n "(cached) " >&6 9190else 9191 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9192fi 9193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9194$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9195lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9196 9197# 9198# Check to make sure the PIC flag actually works. 9199# 9200if test -n "$lt_prog_compiler_pic"; then 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9202$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9203if ${lt_cv_prog_compiler_pic_works+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 lt_cv_prog_compiler_pic_works=no 9207 ac_outfile=conftest.$ac_objext 9208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9209 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9210 # Insert the option either (1) after the last *FLAGS variable, or 9211 # (2) before a word containing "conftest.", or (3) at the end. 9212 # Note that $ac_compile itself does not contain backslashes and begins 9213 # with a dollar sign (not a hyphen), so the echo should work correctly. 9214 # The option is referenced via a variable to avoid confusing sed. 9215 lt_compile=`echo "$ac_compile" | $SED \ 9216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9218 -e 's:$: $lt_compiler_flag:'` 9219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9220 (eval "$lt_compile" 2>conftest.err) 9221 ac_status=$? 9222 cat conftest.err >&5 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 if (exit $ac_status) && test -s "$ac_outfile"; then 9225 # The compiler can only warn and ignore the option if not recognized 9226 # So say no if there are warnings other than the usual output. 9227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9230 lt_cv_prog_compiler_pic_works=yes 9231 fi 9232 fi 9233 $RM conftest* 9234 9235fi 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9237$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9238 9239if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9240 case $lt_prog_compiler_pic in 9241 "" | " "*) ;; 9242 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9243 esac 9244else 9245 lt_prog_compiler_pic= 9246 lt_prog_compiler_can_build_shared=no 9247fi 9248 9249fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261# 9262# Check to make sure the static flag actually works. 9263# 9264wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9266$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9267if ${lt_cv_prog_compiler_static_works+:} false; then : 9268 $as_echo_n "(cached) " >&6 9269else 9270 lt_cv_prog_compiler_static_works=no 9271 save_LDFLAGS="$LDFLAGS" 9272 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9273 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9275 # The linker can only warn and ignore the option if not recognized 9276 # So say no if there are warnings 9277 if test -s conftest.err; then 9278 # Append any errors to the config.log. 9279 cat conftest.err 1>&5 9280 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9282 if diff conftest.exp conftest.er2 >/dev/null; then 9283 lt_cv_prog_compiler_static_works=yes 9284 fi 9285 else 9286 lt_cv_prog_compiler_static_works=yes 9287 fi 9288 fi 9289 $RM -r conftest* 9290 LDFLAGS="$save_LDFLAGS" 9291 9292fi 9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9294$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9295 9296if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9297 : 9298else 9299 lt_prog_compiler_static= 9300fi 9301 9302 9303 9304 9305 9306 9307 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9309$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9310if ${lt_cv_prog_compiler_c_o+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 lt_cv_prog_compiler_c_o=no 9314 $RM -r conftest 2>/dev/null 9315 mkdir conftest 9316 cd conftest 9317 mkdir out 9318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9319 9320 lt_compiler_flag="-o out/conftest2.$ac_objext" 9321 # Insert the option either (1) after the last *FLAGS variable, or 9322 # (2) before a word containing "conftest.", or (3) at the end. 9323 # Note that $ac_compile itself does not contain backslashes and begins 9324 # with a dollar sign (not a hyphen), so the echo should work correctly. 9325 lt_compile=`echo "$ac_compile" | $SED \ 9326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9328 -e 's:$: $lt_compiler_flag:'` 9329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9330 (eval "$lt_compile" 2>out/conftest.err) 9331 ac_status=$? 9332 cat out/conftest.err >&5 9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9334 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9335 then 9336 # The compiler can only warn and ignore the option if not recognized 9337 # So say no if there are warnings 9338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9341 lt_cv_prog_compiler_c_o=yes 9342 fi 9343 fi 9344 chmod u+w . 2>&5 9345 $RM conftest* 9346 # SGI C++ compiler will create directory out/ii_files/ for 9347 # template instantiation 9348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9349 $RM out/* && rmdir out 9350 cd .. 9351 $RM -r conftest 9352 $RM conftest* 9353 9354fi 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9356$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9357 9358 9359 9360 9361 9362 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9364$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9365if ${lt_cv_prog_compiler_c_o+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 lt_cv_prog_compiler_c_o=no 9369 $RM -r conftest 2>/dev/null 9370 mkdir conftest 9371 cd conftest 9372 mkdir out 9373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9374 9375 lt_compiler_flag="-o out/conftest2.$ac_objext" 9376 # Insert the option either (1) after the last *FLAGS variable, or 9377 # (2) before a word containing "conftest.", or (3) at the end. 9378 # Note that $ac_compile itself does not contain backslashes and begins 9379 # with a dollar sign (not a hyphen), so the echo should work correctly. 9380 lt_compile=`echo "$ac_compile" | $SED \ 9381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9383 -e 's:$: $lt_compiler_flag:'` 9384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9385 (eval "$lt_compile" 2>out/conftest.err) 9386 ac_status=$? 9387 cat out/conftest.err >&5 9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9389 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9390 then 9391 # The compiler can only warn and ignore the option if not recognized 9392 # So say no if there are warnings 9393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9396 lt_cv_prog_compiler_c_o=yes 9397 fi 9398 fi 9399 chmod u+w . 2>&5 9400 $RM conftest* 9401 # SGI C++ compiler will create directory out/ii_files/ for 9402 # template instantiation 9403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9404 $RM out/* && rmdir out 9405 cd .. 9406 $RM -r conftest 9407 $RM conftest* 9408 9409fi 9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9411$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9412 9413 9414 9415 9416hard_links="nottested" 9417if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9418 # do not overwrite the value of need_locks provided by the user 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9420$as_echo_n "checking if we can lock with hard links... " >&6; } 9421 hard_links=yes 9422 $RM conftest* 9423 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9424 touch conftest.a 9425 ln conftest.a conftest.b 2>&5 || hard_links=no 9426 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9428$as_echo "$hard_links" >&6; } 9429 if test "$hard_links" = no; then 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9431$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9432 need_locks=warn 9433 fi 9434else 9435 need_locks=no 9436fi 9437 9438 9439 9440 9441 9442 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9444$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9445 9446 runpath_var= 9447 allow_undefined_flag= 9448 always_export_symbols=no 9449 archive_cmds= 9450 archive_expsym_cmds= 9451 compiler_needs_object=no 9452 enable_shared_with_static_runtimes=no 9453 export_dynamic_flag_spec= 9454 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9455 hardcode_automatic=no 9456 hardcode_direct=no 9457 hardcode_direct_absolute=no 9458 hardcode_libdir_flag_spec= 9459 hardcode_libdir_flag_spec_ld= 9460 hardcode_libdir_separator= 9461 hardcode_minus_L=no 9462 hardcode_shlibpath_var=unsupported 9463 inherit_rpath=no 9464 link_all_deplibs=unknown 9465 module_cmds= 9466 module_expsym_cmds= 9467 old_archive_from_new_cmds= 9468 old_archive_from_expsyms_cmds= 9469 thread_safe_flag_spec= 9470 whole_archive_flag_spec= 9471 # include_expsyms should be a list of space-separated symbols to be *always* 9472 # included in the symbol list 9473 include_expsyms= 9474 # exclude_expsyms can be an extended regexp of symbols to exclude 9475 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9477 # as well as any symbol that contains `d'. 9478 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9480 # platforms (ab)use it in PIC code, but their linkers get confused if 9481 # the symbol is explicitly referenced. Since portable code cannot 9482 # rely on this symbol name, it's probably fine to never include it in 9483 # preloaded symbol tables. 9484 # Exclude shared library initialization/finalization symbols. 9485 extract_expsyms_cmds= 9486 9487 case $host_os in 9488 cygwin* | mingw* | pw32* | cegcc*) 9489 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9490 # When not using gcc, we currently assume that we are using 9491 # Microsoft Visual C++. 9492 if test "$GCC" != yes; then 9493 with_gnu_ld=no 9494 fi 9495 ;; 9496 interix*) 9497 # we just hope/assume this is gcc and not c89 (= MSVC++) 9498 with_gnu_ld=yes 9499 ;; 9500 openbsd*) 9501 with_gnu_ld=no 9502 ;; 9503 esac 9504 9505 ld_shlibs=yes 9506 9507 # On some targets, GNU ld is compatible enough with the native linker 9508 # that we're better off using the native interface for both. 9509 lt_use_gnu_ld_interface=no 9510 if test "$with_gnu_ld" = yes; then 9511 case $host_os in 9512 aix*) 9513 # The AIX port of GNU ld has always aspired to compatibility 9514 # with the native linker. However, as the warning in the GNU ld 9515 # block says, versions before 2.19.5* couldn't really create working 9516 # shared libraries, regardless of the interface used. 9517 case `$LD -v 2>&1` in 9518 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9519 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9520 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9521 *) 9522 lt_use_gnu_ld_interface=yes 9523 ;; 9524 esac 9525 ;; 9526 *) 9527 lt_use_gnu_ld_interface=yes 9528 ;; 9529 esac 9530 fi 9531 9532 if test "$lt_use_gnu_ld_interface" = yes; then 9533 # If archive_cmds runs LD, not CC, wlarc should be empty 9534 wlarc='${wl}' 9535 9536 # Set some defaults for GNU ld with shared library support. These 9537 # are reset later if shared libraries are not supported. Putting them 9538 # here allows them to be overridden if necessary. 9539 runpath_var=LD_RUN_PATH 9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9541 export_dynamic_flag_spec='${wl}--export-dynamic' 9542 # ancient GNU ld didn't support --whole-archive et. al. 9543 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9544 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9545 else 9546 whole_archive_flag_spec= 9547 fi 9548 supports_anon_versioning=no 9549 case `$LD -v 2>&1` in 9550 *GNU\ gold*) supports_anon_versioning=yes ;; 9551 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9552 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9553 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9554 *\ 2.11.*) ;; # other 2.11 versions 9555 *) supports_anon_versioning=yes ;; 9556 esac 9557 9558 # See if GNU ld supports shared libraries. 9559 case $host_os in 9560 aix[3-9]*) 9561 # On AIX/PPC, the GNU linker is very broken 9562 if test "$host_cpu" != ia64; then 9563 ld_shlibs=no 9564 cat <<_LT_EOF 1>&2 9565 9566*** Warning: the GNU linker, at least up to release 2.19, is reported 9567*** to be unable to reliably create shared libraries on AIX. 9568*** Therefore, libtool is disabling shared libraries support. If you 9569*** really care for shared libraries, you may want to install binutils 9570*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9571*** You will then need to restart the configuration process. 9572 9573_LT_EOF 9574 fi 9575 ;; 9576 9577 amigaos*) 9578 case $host_cpu in 9579 powerpc) 9580 # see comment about AmigaOS4 .so support 9581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9582 archive_expsym_cmds='' 9583 ;; 9584 m68k) 9585 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)' 9586 hardcode_libdir_flag_spec='-L$libdir' 9587 hardcode_minus_L=yes 9588 ;; 9589 esac 9590 ;; 9591 9592 beos*) 9593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9594 allow_undefined_flag=unsupported 9595 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9596 # support --undefined. This deserves some investigation. FIXME 9597 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9598 else 9599 ld_shlibs=no 9600 fi 9601 ;; 9602 9603 cygwin* | mingw* | pw32* | cegcc*) 9604 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9605 # as there is no search path for DLLs. 9606 hardcode_libdir_flag_spec='-L$libdir' 9607 export_dynamic_flag_spec='${wl}--export-all-symbols' 9608 allow_undefined_flag=unsupported 9609 always_export_symbols=no 9610 enable_shared_with_static_runtimes=yes 9611 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' 9612 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9613 9614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9616 # If the export-symbols file already is a .def file (1st line 9617 # is EXPORTS), use it as is; otherwise, prepend... 9618 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9619 cp $export_symbols $output_objdir/$soname.def; 9620 else 9621 echo EXPORTS > $output_objdir/$soname.def; 9622 cat $export_symbols >> $output_objdir/$soname.def; 9623 fi~ 9624 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9625 else 9626 ld_shlibs=no 9627 fi 9628 ;; 9629 9630 haiku*) 9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9632 link_all_deplibs=yes 9633 ;; 9634 9635 interix[3-9]*) 9636 hardcode_direct=no 9637 hardcode_shlibpath_var=no 9638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9639 export_dynamic_flag_spec='${wl}-E' 9640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9641 # Instead, shared libraries are loaded at an image base (0x10000000 by 9642 # default) and relocated if they conflict, which is a slow very memory 9643 # consuming and fragmenting process. To avoid this, we pick a random, 9644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9645 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9647 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' 9648 ;; 9649 9650 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9651 tmp_diet=no 9652 if test "$host_os" = linux-dietlibc; then 9653 case $cc_basename in 9654 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9655 esac 9656 fi 9657 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9658 && test "$tmp_diet" = no 9659 then 9660 tmp_addflag=' $pic_flag' 9661 tmp_sharedflag='-shared' 9662 case $cc_basename,$host_cpu in 9663 pgcc*) # Portland Group C compiler 9664 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' 9665 tmp_addflag=' $pic_flag' 9666 ;; 9667 pgf77* | pgf90* | pgf95* | pgfortran*) 9668 # Portland Group f77 and f90 compilers 9669 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' 9670 tmp_addflag=' $pic_flag -Mnomain' ;; 9671 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9672 tmp_addflag=' -i_dynamic' ;; 9673 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9674 tmp_addflag=' -i_dynamic -nofor_main' ;; 9675 ifc* | ifort*) # Intel Fortran compiler 9676 tmp_addflag=' -nofor_main' ;; 9677 lf95*) # Lahey Fortran 8.1 9678 whole_archive_flag_spec= 9679 tmp_sharedflag='--shared' ;; 9680 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9681 tmp_sharedflag='-qmkshrobj' 9682 tmp_addflag= ;; 9683 nvcc*) # Cuda Compiler Driver 2.2 9684 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' 9685 compiler_needs_object=yes 9686 ;; 9687 esac 9688 case `$CC -V 2>&1 | sed 5q` in 9689 *Sun\ C*) # Sun C 5.9 9690 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' 9691 compiler_needs_object=yes 9692 tmp_sharedflag='-G' ;; 9693 *Sun\ F*) # Sun Fortran 8.3 9694 tmp_sharedflag='-G' ;; 9695 esac 9696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9697 9698 if test "x$supports_anon_versioning" = xyes; then 9699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9701 echo "local: *; };" >> $output_objdir/$libname.ver~ 9702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9703 fi 9704 9705 case $cc_basename in 9706 xlf* | bgf* | bgxlf* | mpixlf*) 9707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9708 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9709 hardcode_libdir_flag_spec= 9710 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9711 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9712 if test "x$supports_anon_versioning" = xyes; then 9713 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9715 echo "local: *; };" >> $output_objdir/$libname.ver~ 9716 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9717 fi 9718 ;; 9719 esac 9720 else 9721 ld_shlibs=no 9722 fi 9723 ;; 9724 9725 netbsd*) 9726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9727 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9728 wlarc= 9729 else 9730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9732 fi 9733 ;; 9734 9735 solaris*) 9736 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9737 ld_shlibs=no 9738 cat <<_LT_EOF 1>&2 9739 9740*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9741*** create shared libraries on Solaris systems. Therefore, libtool 9742*** is disabling shared libraries support. We urge you to upgrade GNU 9743*** binutils to release 2.9.1 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 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9750 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9751 else 9752 ld_shlibs=no 9753 fi 9754 ;; 9755 9756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9757 case `$LD -v 2>&1` in 9758 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9759 ld_shlibs=no 9760 cat <<_LT_EOF 1>&2 9761 9762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9763*** reliably create shared libraries on SCO systems. Therefore, libtool 9764*** is disabling shared libraries support. We urge you to upgrade GNU 9765*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9766*** your PATH or compiler configuration so that the native linker is 9767*** used, and then restart. 9768 9769_LT_EOF 9770 ;; 9771 *) 9772 # For security reasons, it is highly recommended that you always 9773 # use absolute paths for naming shared libraries, and exclude the 9774 # DT_RUNPATH tag from executables and libraries. But doing so 9775 # requires that you compile everything twice, which is a pain. 9776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9780 else 9781 ld_shlibs=no 9782 fi 9783 ;; 9784 esac 9785 ;; 9786 9787 sunos4*) 9788 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9789 wlarc= 9790 hardcode_direct=yes 9791 hardcode_shlibpath_var=no 9792 ;; 9793 9794 *) 9795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9798 else 9799 ld_shlibs=no 9800 fi 9801 ;; 9802 esac 9803 9804 if test "$ld_shlibs" = no; then 9805 runpath_var= 9806 hardcode_libdir_flag_spec= 9807 export_dynamic_flag_spec= 9808 whole_archive_flag_spec= 9809 fi 9810 else 9811 # PORTME fill in a description of your system's linker (not GNU ld) 9812 case $host_os in 9813 aix3*) 9814 allow_undefined_flag=unsupported 9815 always_export_symbols=yes 9816 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' 9817 # Note: this linker hardcodes the directories in LIBPATH if there 9818 # are no directories specified by -L. 9819 hardcode_minus_L=yes 9820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9821 # Neither direct hardcoding nor static linking is supported with a 9822 # broken collect2. 9823 hardcode_direct=unsupported 9824 fi 9825 ;; 9826 9827 aix[4-9]*) 9828 if test "$host_cpu" = ia64; then 9829 # On IA64, the linker does run time linking by default, so we don't 9830 # have to do anything special. 9831 aix_use_runtimelinking=no 9832 exp_sym_flag='-Bexport' 9833 no_entry_flag="" 9834 else 9835 # If we're using GNU nm, then we don't want the "-C" option. 9836 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9837 # Also, AIX nm treats weak defined symbols like other global 9838 # defined symbols, whereas GNU nm marks them as "W". 9839 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9840 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9841 else 9842 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9843 fi 9844 aix_use_runtimelinking=no 9845 9846 # Test if we are trying to use run time linking or normal 9847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9848 # need to do runtime linking. 9849 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9850 for ld_flag in $LDFLAGS; do 9851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9852 aix_use_runtimelinking=yes 9853 break 9854 fi 9855 done 9856 ;; 9857 esac 9858 9859 exp_sym_flag='-bexport' 9860 no_entry_flag='-bnoentry' 9861 fi 9862 9863 # When large executables or shared objects are built, AIX ld can 9864 # have problems creating the table of contents. If linking a library 9865 # or program results in "error TOC overflow" add -mminimal-toc to 9866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9868 9869 archive_cmds='' 9870 hardcode_direct=yes 9871 hardcode_direct_absolute=yes 9872 hardcode_libdir_separator=':' 9873 link_all_deplibs=yes 9874 file_list_spec='${wl}-f,' 9875 9876 if test "$GCC" = yes; then 9877 case $host_os in aix4.[012]|aix4.[012].*) 9878 # We only want to do this on AIX 4.2 and lower, the check 9879 # below for broken collect2 doesn't work under 4.3+ 9880 collect2name=`${CC} -print-prog-name=collect2` 9881 if test -f "$collect2name" && 9882 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9883 then 9884 # We have reworked collect2 9885 : 9886 else 9887 # We have old collect2 9888 hardcode_direct=unsupported 9889 # It fails to find uninstalled libraries when the uninstalled 9890 # path is not listed in the libpath. Setting hardcode_minus_L 9891 # to unsupported forces relinking 9892 hardcode_minus_L=yes 9893 hardcode_libdir_flag_spec='-L$libdir' 9894 hardcode_libdir_separator= 9895 fi 9896 ;; 9897 esac 9898 shared_flag='-shared' 9899 if test "$aix_use_runtimelinking" = yes; then 9900 shared_flag="$shared_flag "'${wl}-G' 9901 fi 9902 else 9903 # not using gcc 9904 if test "$host_cpu" = ia64; then 9905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9906 # chokes on -Wl,-G. The following line is correct: 9907 shared_flag='-G' 9908 else 9909 if test "$aix_use_runtimelinking" = yes; then 9910 shared_flag='${wl}-G' 9911 else 9912 shared_flag='${wl}-bM:SRE' 9913 fi 9914 fi 9915 fi 9916 9917 export_dynamic_flag_spec='${wl}-bexpall' 9918 # It seems that -bexpall does not export symbols beginning with 9919 # underscore (_), so it is better to generate a list of symbols to export. 9920 always_export_symbols=yes 9921 if test "$aix_use_runtimelinking" = yes; then 9922 # Warning - without using the other runtime loading flags (-brtl), 9923 # -berok will link without error, but may produce a broken library. 9924 allow_undefined_flag='-berok' 9925 # Determine the default libpath from the value encoded in an 9926 # empty executable. 9927 if test "${lt_cv_aix_libpath+set}" = set; then 9928 aix_libpath=$lt_cv_aix_libpath 9929else 9930 if ${lt_cv_aix_libpath_+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932else 9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9934/* end confdefs.h. */ 9935 9936int 9937main () 9938{ 9939 9940 ; 9941 return 0; 9942} 9943_ACEOF 9944if ac_fn_c_try_link "$LINENO"; then : 9945 9946 lt_aix_libpath_sed=' 9947 /Import File Strings/,/^$/ { 9948 /^0/ { 9949 s/^0 *\([^ ]*\) *$/\1/ 9950 p 9951 } 9952 }' 9953 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9954 # Check for a 64-bit object if we didn't find anything. 9955 if test -z "$lt_cv_aix_libpath_"; then 9956 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9957 fi 9958fi 9959rm -f core conftest.err conftest.$ac_objext \ 9960 conftest$ac_exeext conftest.$ac_ext 9961 if test -z "$lt_cv_aix_libpath_"; then 9962 lt_cv_aix_libpath_="/usr/lib:/lib" 9963 fi 9964 9965fi 9966 9967 aix_libpath=$lt_cv_aix_libpath_ 9968fi 9969 9970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9971 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9972 else 9973 if test "$host_cpu" = ia64; then 9974 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9975 allow_undefined_flag="-z nodefs" 9976 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" 9977 else 9978 # Determine the default libpath from the value encoded in an 9979 # empty executable. 9980 if test "${lt_cv_aix_libpath+set}" = set; then 9981 aix_libpath=$lt_cv_aix_libpath 9982else 9983 if ${lt_cv_aix_libpath_+:} false; then : 9984 $as_echo_n "(cached) " >&6 9985else 9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9987/* end confdefs.h. */ 9988 9989int 9990main () 9991{ 9992 9993 ; 9994 return 0; 9995} 9996_ACEOF 9997if ac_fn_c_try_link "$LINENO"; then : 9998 9999 lt_aix_libpath_sed=' 10000 /Import File Strings/,/^$/ { 10001 /^0/ { 10002 s/^0 *\([^ ]*\) *$/\1/ 10003 p 10004 } 10005 }' 10006 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10007 # Check for a 64-bit object if we didn't find anything. 10008 if test -z "$lt_cv_aix_libpath_"; then 10009 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10010 fi 10011fi 10012rm -f core conftest.err conftest.$ac_objext \ 10013 conftest$ac_exeext conftest.$ac_ext 10014 if test -z "$lt_cv_aix_libpath_"; then 10015 lt_cv_aix_libpath_="/usr/lib:/lib" 10016 fi 10017 10018fi 10019 10020 aix_libpath=$lt_cv_aix_libpath_ 10021fi 10022 10023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10024 # Warning - without using the other run time loading flags, 10025 # -berok will link without error, but may produce a broken library. 10026 no_undefined_flag=' ${wl}-bernotok' 10027 allow_undefined_flag=' ${wl}-berok' 10028 if test "$with_gnu_ld" = yes; then 10029 # We only use this code for GNU lds that support --whole-archive. 10030 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10031 else 10032 # Exported symbols can be pulled into shared objects from archives 10033 whole_archive_flag_spec='$convenience' 10034 fi 10035 archive_cmds_need_lc=yes 10036 # This is similar to how AIX traditionally builds its shared libraries. 10037 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10038 fi 10039 fi 10040 ;; 10041 10042 amigaos*) 10043 case $host_cpu in 10044 powerpc) 10045 # see comment about AmigaOS4 .so support 10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10047 archive_expsym_cmds='' 10048 ;; 10049 m68k) 10050 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)' 10051 hardcode_libdir_flag_spec='-L$libdir' 10052 hardcode_minus_L=yes 10053 ;; 10054 esac 10055 ;; 10056 10057 bsdi[45]*) 10058 export_dynamic_flag_spec=-rdynamic 10059 ;; 10060 10061 cygwin* | mingw* | pw32* | cegcc*) 10062 # When not using gcc, we currently assume that we are using 10063 # Microsoft Visual C++. 10064 # hardcode_libdir_flag_spec is actually meaningless, as there is 10065 # no search path for DLLs. 10066 case $cc_basename in 10067 cl*) 10068 # Native MSVC 10069 hardcode_libdir_flag_spec=' ' 10070 allow_undefined_flag=unsupported 10071 always_export_symbols=yes 10072 file_list_spec='@' 10073 # Tell ltmain to make .lib files, not .a files. 10074 libext=lib 10075 # Tell ltmain to make .dll files, not .so files. 10076 shrext_cmds=".dll" 10077 # FIXME: Setting linknames here is a bad hack. 10078 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10080 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10081 else 10082 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10083 fi~ 10084 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10085 linknames=' 10086 # The linker will not automatically build a static lib if we build a DLL. 10087 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10088 enable_shared_with_static_runtimes=yes 10089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10090 # Don't use ranlib 10091 old_postinstall_cmds='chmod 644 $oldlib' 10092 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10093 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10094 case $lt_outputfile in 10095 *.exe|*.EXE) ;; 10096 *) 10097 lt_outputfile="$lt_outputfile.exe" 10098 lt_tool_outputfile="$lt_tool_outputfile.exe" 10099 ;; 10100 esac~ 10101 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10102 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10103 $RM "$lt_outputfile.manifest"; 10104 fi' 10105 ;; 10106 *) 10107 # Assume MSVC wrapper 10108 hardcode_libdir_flag_spec=' ' 10109 allow_undefined_flag=unsupported 10110 # Tell ltmain to make .lib files, not .a files. 10111 libext=lib 10112 # Tell ltmain to make .dll files, not .so files. 10113 shrext_cmds=".dll" 10114 # FIXME: Setting linknames here is a bad hack. 10115 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10116 # The linker will automatically build a .lib file if we build a DLL. 10117 old_archive_from_new_cmds='true' 10118 # FIXME: Should let the user specify the lib program. 10119 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10120 enable_shared_with_static_runtimes=yes 10121 ;; 10122 esac 10123 ;; 10124 10125 darwin* | rhapsody*) 10126 10127 10128 archive_cmds_need_lc=no 10129 hardcode_direct=no 10130 hardcode_automatic=yes 10131 hardcode_shlibpath_var=unsupported 10132 if test "$lt_cv_ld_force_load" = "yes"; then 10133 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\"`' 10134 else 10135 whole_archive_flag_spec='' 10136 fi 10137 link_all_deplibs=yes 10138 allow_undefined_flag="$_lt_dar_allow_undefined" 10139 case $cc_basename in 10140 ifort*) _lt_dar_can_shared=yes ;; 10141 *) _lt_dar_can_shared=$GCC ;; 10142 esac 10143 if test "$_lt_dar_can_shared" = "yes"; then 10144 output_verbose_link_cmd=func_echo_all 10145 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10146 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10147 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}" 10148 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}" 10149 10150 else 10151 ld_shlibs=no 10152 fi 10153 10154 ;; 10155 10156 dgux*) 10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10158 hardcode_libdir_flag_spec='-L$libdir' 10159 hardcode_shlibpath_var=no 10160 ;; 10161 10162 freebsd1*) 10163 ld_shlibs=no 10164 ;; 10165 10166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10167 # support. Future versions do this automatically, but an explicit c++rt0.o 10168 # does not break anything, and helps significantly (at the cost of a little 10169 # extra space). 10170 freebsd2.2*) 10171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10172 hardcode_libdir_flag_spec='-R$libdir' 10173 hardcode_direct=yes 10174 hardcode_shlibpath_var=no 10175 ;; 10176 10177 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10178 freebsd2*) 10179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10180 hardcode_direct=yes 10181 hardcode_minus_L=yes 10182 hardcode_shlibpath_var=no 10183 ;; 10184 10185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10186 freebsd* | dragonfly*) 10187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10188 hardcode_libdir_flag_spec='-R$libdir' 10189 hardcode_direct=yes 10190 hardcode_shlibpath_var=no 10191 ;; 10192 10193 hpux9*) 10194 if test "$GCC" = yes; then 10195 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10196 else 10197 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10198 fi 10199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10200 hardcode_libdir_separator=: 10201 hardcode_direct=yes 10202 10203 # hardcode_minus_L: Not really in the search PATH, 10204 # but as the default location of the library. 10205 hardcode_minus_L=yes 10206 export_dynamic_flag_spec='${wl}-E' 10207 ;; 10208 10209 hpux10*) 10210 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10211 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10212 else 10213 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10214 fi 10215 if test "$with_gnu_ld" = no; then 10216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10217 hardcode_libdir_flag_spec_ld='+b $libdir' 10218 hardcode_libdir_separator=: 10219 hardcode_direct=yes 10220 hardcode_direct_absolute=yes 10221 export_dynamic_flag_spec='${wl}-E' 10222 # hardcode_minus_L: Not really in the search PATH, 10223 # but as the default location of the library. 10224 hardcode_minus_L=yes 10225 fi 10226 ;; 10227 10228 hpux11*) 10229 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10230 case $host_cpu in 10231 hppa*64*) 10232 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10233 ;; 10234 ia64*) 10235 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10236 ;; 10237 *) 10238 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10239 ;; 10240 esac 10241 else 10242 case $host_cpu in 10243 hppa*64*) 10244 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10245 ;; 10246 ia64*) 10247 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10248 ;; 10249 *) 10250 10251 # Older versions of the 11.00 compiler do not understand -b yet 10252 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10254$as_echo_n "checking if $CC understands -b... " >&6; } 10255if ${lt_cv_prog_compiler__b+:} false; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 lt_cv_prog_compiler__b=no 10259 save_LDFLAGS="$LDFLAGS" 10260 LDFLAGS="$LDFLAGS -b" 10261 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10263 # The linker can only warn and ignore the option if not recognized 10264 # So say no if there are warnings 10265 if test -s conftest.err; then 10266 # Append any errors to the config.log. 10267 cat conftest.err 1>&5 10268 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10270 if diff conftest.exp conftest.er2 >/dev/null; then 10271 lt_cv_prog_compiler__b=yes 10272 fi 10273 else 10274 lt_cv_prog_compiler__b=yes 10275 fi 10276 fi 10277 $RM -r conftest* 10278 LDFLAGS="$save_LDFLAGS" 10279 10280fi 10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10282$as_echo "$lt_cv_prog_compiler__b" >&6; } 10283 10284if test x"$lt_cv_prog_compiler__b" = xyes; then 10285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10286else 10287 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10288fi 10289 10290 ;; 10291 esac 10292 fi 10293 if test "$with_gnu_ld" = no; then 10294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10295 hardcode_libdir_separator=: 10296 10297 case $host_cpu in 10298 hppa*64*|ia64*) 10299 hardcode_direct=no 10300 hardcode_shlibpath_var=no 10301 ;; 10302 *) 10303 hardcode_direct=yes 10304 hardcode_direct_absolute=yes 10305 export_dynamic_flag_spec='${wl}-E' 10306 10307 # hardcode_minus_L: Not really in the search PATH, 10308 # but as the default location of the library. 10309 hardcode_minus_L=yes 10310 ;; 10311 esac 10312 fi 10313 ;; 10314 10315 irix5* | irix6* | nonstopux*) 10316 if test "$GCC" = yes; then 10317 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' 10318 # Try to use the -exported_symbol ld option, if it does not 10319 # work, assume that -exports_file does not work either and 10320 # implicitly export all symbols. 10321 # This should be the same for all languages, so no per-tag cache variable. 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10323$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10324if ${lt_cv_irix_exported_symbol+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 save_LDFLAGS="$LDFLAGS" 10328 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10330/* end confdefs.h. */ 10331int foo (void) { return 0; } 10332_ACEOF 10333if ac_fn_c_try_link "$LINENO"; then : 10334 lt_cv_irix_exported_symbol=yes 10335else 10336 lt_cv_irix_exported_symbol=no 10337fi 10338rm -f core conftest.err conftest.$ac_objext \ 10339 conftest$ac_exeext conftest.$ac_ext 10340 LDFLAGS="$save_LDFLAGS" 10341fi 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10343$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10344 if test "$lt_cv_irix_exported_symbol" = yes; then 10345 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' 10346 fi 10347 else 10348 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' 10349 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' 10350 fi 10351 archive_cmds_need_lc='no' 10352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10353 hardcode_libdir_separator=: 10354 inherit_rpath=yes 10355 link_all_deplibs=yes 10356 ;; 10357 10358 netbsd*) 10359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10361 else 10362 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10363 fi 10364 hardcode_libdir_flag_spec='-R$libdir' 10365 hardcode_direct=yes 10366 hardcode_shlibpath_var=no 10367 ;; 10368 10369 newsos6) 10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10371 hardcode_direct=yes 10372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10373 hardcode_libdir_separator=: 10374 hardcode_shlibpath_var=no 10375 ;; 10376 10377 *nto* | *qnx*) 10378 ;; 10379 10380 openbsd*) 10381 if test -f /usr/libexec/ld.so; then 10382 hardcode_direct=yes 10383 hardcode_shlibpath_var=no 10384 hardcode_direct_absolute=yes 10385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10387 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10388 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10389 export_dynamic_flag_spec='${wl}-E' 10390 else 10391 case $host_os in 10392 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10394 hardcode_libdir_flag_spec='-R$libdir' 10395 ;; 10396 *) 10397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10399 ;; 10400 esac 10401 fi 10402 else 10403 ld_shlibs=no 10404 fi 10405 ;; 10406 10407 os2*) 10408 hardcode_libdir_flag_spec='-L$libdir' 10409 hardcode_minus_L=yes 10410 allow_undefined_flag=unsupported 10411 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10412 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10413 ;; 10414 10415 osf3*) 10416 if test "$GCC" = yes; then 10417 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10418 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' 10419 else 10420 allow_undefined_flag=' -expect_unresolved \*' 10421 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' 10422 fi 10423 archive_cmds_need_lc='no' 10424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10425 hardcode_libdir_separator=: 10426 ;; 10427 10428 osf4* | osf5*) # as osf3* with the addition of -msym flag 10429 if test "$GCC" = yes; then 10430 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10431 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' 10432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10433 else 10434 allow_undefined_flag=' -expect_unresolved \*' 10435 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' 10436 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~ 10437 $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' 10438 10439 # Both c and cxx compiler support -rpath directly 10440 hardcode_libdir_flag_spec='-rpath $libdir' 10441 fi 10442 archive_cmds_need_lc='no' 10443 hardcode_libdir_separator=: 10444 ;; 10445 10446 solaris*) 10447 no_undefined_flag=' -z defs' 10448 if test "$GCC" = yes; then 10449 wlarc='${wl}' 10450 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10452 $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' 10453 else 10454 case `$CC -V 2>&1` in 10455 *"Compilers 5.0"*) 10456 wlarc='' 10457 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10458 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10460 ;; 10461 *) 10462 wlarc='${wl}' 10463 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10465 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10466 ;; 10467 esac 10468 fi 10469 hardcode_libdir_flag_spec='-R$libdir' 10470 hardcode_shlibpath_var=no 10471 case $host_os in 10472 solaris2.[0-5] | solaris2.[0-5].*) ;; 10473 *) 10474 # The compiler driver will combine and reorder linker options, 10475 # but understands `-z linker_flag'. GCC discards it without `$wl', 10476 # but is careful enough not to reorder. 10477 # Supported since Solaris 2.6 (maybe 2.5.1?) 10478 if test "$GCC" = yes; then 10479 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10480 else 10481 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10482 fi 10483 ;; 10484 esac 10485 link_all_deplibs=yes 10486 ;; 10487 10488 sunos4*) 10489 if test "x$host_vendor" = xsequent; then 10490 # Use $CC to link under sequent, because it throws in some extra .o 10491 # files that make .init and .fini sections work. 10492 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10493 else 10494 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10495 fi 10496 hardcode_libdir_flag_spec='-L$libdir' 10497 hardcode_direct=yes 10498 hardcode_minus_L=yes 10499 hardcode_shlibpath_var=no 10500 ;; 10501 10502 sysv4) 10503 case $host_vendor in 10504 sni) 10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10506 hardcode_direct=yes # is this really true??? 10507 ;; 10508 siemens) 10509 ## LD is ld it makes a PLAMLIB 10510 ## CC just makes a GrossModule. 10511 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10512 reload_cmds='$CC -r -o $output$reload_objs' 10513 hardcode_direct=no 10514 ;; 10515 motorola) 10516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10517 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10518 ;; 10519 esac 10520 runpath_var='LD_RUN_PATH' 10521 hardcode_shlibpath_var=no 10522 ;; 10523 10524 sysv4.3*) 10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10526 hardcode_shlibpath_var=no 10527 export_dynamic_flag_spec='-Bexport' 10528 ;; 10529 10530 sysv4*MP*) 10531 if test -d /usr/nec; then 10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10533 hardcode_shlibpath_var=no 10534 runpath_var=LD_RUN_PATH 10535 hardcode_runpath_var=yes 10536 ld_shlibs=yes 10537 fi 10538 ;; 10539 10540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10541 no_undefined_flag='${wl}-z,text' 10542 archive_cmds_need_lc=no 10543 hardcode_shlibpath_var=no 10544 runpath_var='LD_RUN_PATH' 10545 10546 if test "$GCC" = yes; then 10547 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10549 else 10550 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10551 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10552 fi 10553 ;; 10554 10555 sysv5* | sco3.2v5* | sco5v6*) 10556 # Note: We can NOT use -z defs as we might desire, because we do not 10557 # link with -lc, and that would cause any symbols used from libc to 10558 # always be unresolved, which means just about no library would 10559 # ever link correctly. If we're not using GNU ld we use -z text 10560 # though, which does catch some bad symbols but isn't as heavy-handed 10561 # as -z defs. 10562 no_undefined_flag='${wl}-z,text' 10563 allow_undefined_flag='${wl}-z,nodefs' 10564 archive_cmds_need_lc=no 10565 hardcode_shlibpath_var=no 10566 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10567 hardcode_libdir_separator=':' 10568 link_all_deplibs=yes 10569 export_dynamic_flag_spec='${wl}-Bexport' 10570 runpath_var='LD_RUN_PATH' 10571 10572 if test "$GCC" = yes; then 10573 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10574 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10575 else 10576 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10577 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10578 fi 10579 ;; 10580 10581 uts4*) 10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10583 hardcode_libdir_flag_spec='-L$libdir' 10584 hardcode_shlibpath_var=no 10585 ;; 10586 10587 *) 10588 ld_shlibs=no 10589 ;; 10590 esac 10591 10592 if test x$host_vendor = xsni; then 10593 case $host in 10594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10595 export_dynamic_flag_spec='${wl}-Blargedynsym' 10596 ;; 10597 esac 10598 fi 10599 fi 10600 10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10602$as_echo "$ld_shlibs" >&6; } 10603test "$ld_shlibs" = no && can_build_shared=no 10604 10605with_gnu_ld=$with_gnu_ld 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621# 10622# Do we need to explicitly link libc? 10623# 10624case "x$archive_cmds_need_lc" in 10625x|xyes) 10626 # Assume -lc should be added 10627 archive_cmds_need_lc=yes 10628 10629 if test "$enable_shared" = yes && test "$GCC" = yes; then 10630 case $archive_cmds in 10631 *'~'*) 10632 # FIXME: we may have to deal with multi-command sequences. 10633 ;; 10634 '$CC '*) 10635 # Test whether the compiler implicitly links with -lc since on some 10636 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10637 # to ld, don't add -lc before -lgcc. 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10639$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10640if ${lt_cv_archive_cmds_need_lc+:} false; then : 10641 $as_echo_n "(cached) " >&6 10642else 10643 $RM conftest* 10644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10645 10646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10647 (eval $ac_compile) 2>&5 10648 ac_status=$? 10649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10650 test $ac_status = 0; } 2>conftest.err; then 10651 soname=conftest 10652 lib=conftest 10653 libobjs=conftest.$ac_objext 10654 deplibs= 10655 wl=$lt_prog_compiler_wl 10656 pic_flag=$lt_prog_compiler_pic 10657 compiler_flags=-v 10658 linker_flags=-v 10659 verstring= 10660 output_objdir=. 10661 libname=conftest 10662 lt_save_allow_undefined_flag=$allow_undefined_flag 10663 allow_undefined_flag= 10664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10665 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10666 ac_status=$? 10667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10668 test $ac_status = 0; } 10669 then 10670 lt_cv_archive_cmds_need_lc=no 10671 else 10672 lt_cv_archive_cmds_need_lc=yes 10673 fi 10674 allow_undefined_flag=$lt_save_allow_undefined_flag 10675 else 10676 cat conftest.err 1>&5 10677 fi 10678 $RM conftest* 10679 10680fi 10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10682$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10683 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10684 ;; 10685 esac 10686 fi 10687 ;; 10688esac 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10847$as_echo_n "checking dynamic linker characteristics... " >&6; } 10848 10849if test "$GCC" = yes; then 10850 case $host_os in 10851 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10852 *) lt_awk_arg="/^libraries:/" ;; 10853 esac 10854 case $host_os in 10855 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10856 *) lt_sed_strip_eq="s,=/,/,g" ;; 10857 esac 10858 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10859 case $lt_search_path_spec in 10860 *\;*) 10861 # if the path contains ";" then we assume it to be the separator 10862 # otherwise default to the standard path separator (i.e. ":") - it is 10863 # assumed that no part of a normal pathname contains ";" but that should 10864 # okay in the real world where ";" in dirpaths is itself problematic. 10865 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10866 ;; 10867 *) 10868 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10869 ;; 10870 esac 10871 # Ok, now we have the path, separated by spaces, we can step through it 10872 # and add multilib dir if necessary. 10873 lt_tmp_lt_search_path_spec= 10874 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10875 for lt_sys_path in $lt_search_path_spec; do 10876 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10878 else 10879 test -d "$lt_sys_path" && \ 10880 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10881 fi 10882 done 10883 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10884BEGIN {RS=" "; FS="/|\n";} { 10885 lt_foo=""; 10886 lt_count=0; 10887 for (lt_i = NF; lt_i > 0; lt_i--) { 10888 if ($lt_i != "" && $lt_i != ".") { 10889 if ($lt_i == "..") { 10890 lt_count++; 10891 } else { 10892 if (lt_count == 0) { 10893 lt_foo="/" $lt_i lt_foo; 10894 } else { 10895 lt_count--; 10896 } 10897 } 10898 } 10899 } 10900 if (lt_foo != "") { lt_freq[lt_foo]++; } 10901 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10902}'` 10903 # AWK program above erroneously prepends '/' to C:/dos/paths 10904 # for these hosts. 10905 case $host_os in 10906 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10907 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10908 esac 10909 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10910else 10911 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10912fi 10913library_names_spec= 10914libname_spec='lib$name' 10915soname_spec= 10916shrext_cmds=".so" 10917postinstall_cmds= 10918postuninstall_cmds= 10919finish_cmds= 10920finish_eval= 10921shlibpath_var= 10922shlibpath_overrides_runpath=unknown 10923version_type=none 10924dynamic_linker="$host_os ld.so" 10925sys_lib_dlsearch_path_spec="/lib /usr/lib" 10926need_lib_prefix=unknown 10927hardcode_into_libs=no 10928 10929# when you set need_version to no, make sure it does not cause -set_version 10930# flags to be left without arguments 10931need_version=unknown 10932 10933case $host_os in 10934aix3*) 10935 version_type=linux 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10937 shlibpath_var=LIBPATH 10938 10939 # AIX 3 has no versioning support, so we append a major version to the name. 10940 soname_spec='${libname}${release}${shared_ext}$major' 10941 ;; 10942 10943aix[4-9]*) 10944 version_type=linux 10945 need_lib_prefix=no 10946 need_version=no 10947 hardcode_into_libs=yes 10948 if test "$host_cpu" = ia64; then 10949 # AIX 5 supports IA64 10950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10951 shlibpath_var=LD_LIBRARY_PATH 10952 else 10953 # With GCC up to 2.95.x, collect2 would create an import file 10954 # for dependence libraries. The import file would start with 10955 # the line `#! .'. This would cause the generated library to 10956 # depend on `.', always an invalid library. This was fixed in 10957 # development snapshots of GCC prior to 3.0. 10958 case $host_os in 10959 aix4 | aix4.[01] | aix4.[01].*) 10960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10961 echo ' yes ' 10962 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10963 : 10964 else 10965 can_build_shared=no 10966 fi 10967 ;; 10968 esac 10969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10970 # soname into executable. Probably we can add versioning support to 10971 # collect2, so additional links can be useful in future. 10972 if test "$aix_use_runtimelinking" = yes; then 10973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10974 # instead of lib<name>.a to let people know that these are not 10975 # typical AIX shared libraries. 10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10977 else 10978 # We preserve .a as extension for shared libraries through AIX4.2 10979 # and later when we are not doing run time linking. 10980 library_names_spec='${libname}${release}.a $libname.a' 10981 soname_spec='${libname}${release}${shared_ext}$major' 10982 fi 10983 shlibpath_var=LIBPATH 10984 fi 10985 ;; 10986 10987amigaos*) 10988 case $host_cpu in 10989 powerpc) 10990 # Since July 2007 AmigaOS4 officially supports .so libraries. 10991 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10993 ;; 10994 m68k) 10995 library_names_spec='$libname.ixlibrary $libname.a' 10996 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10997 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10998 ;; 10999 esac 11000 ;; 11001 11002beos*) 11003 library_names_spec='${libname}${shared_ext}' 11004 dynamic_linker="$host_os ld.so" 11005 shlibpath_var=LIBRARY_PATH 11006 ;; 11007 11008bsdi[45]*) 11009 version_type=linux 11010 need_version=no 11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11012 soname_spec='${libname}${release}${shared_ext}$major' 11013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11014 shlibpath_var=LD_LIBRARY_PATH 11015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11017 # the default ld.so.conf also contains /usr/contrib/lib and 11018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11019 # libtool to hard-code these into programs 11020 ;; 11021 11022cygwin* | mingw* | pw32* | cegcc*) 11023 version_type=windows 11024 shrext_cmds=".dll" 11025 need_version=no 11026 need_lib_prefix=no 11027 11028 case $GCC,$cc_basename in 11029 yes,*) 11030 # gcc 11031 library_names_spec='$libname.dll.a' 11032 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11033 postinstall_cmds='base_file=`basename \${file}`~ 11034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11035 dldir=$destdir/`dirname \$dlpath`~ 11036 test -d \$dldir || mkdir -p \$dldir~ 11037 $install_prog $dir/$dlname \$dldir/$dlname~ 11038 chmod a+x \$dldir/$dlname~ 11039 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11040 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11041 fi' 11042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11043 dlpath=$dir/\$dldll~ 11044 $RM \$dlpath' 11045 shlibpath_overrides_runpath=yes 11046 11047 case $host_os in 11048 cygwin*) 11049 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11050 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11051 11052 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11053 ;; 11054 mingw* | cegcc*) 11055 # MinGW DLLs use traditional 'lib' prefix 11056 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11057 ;; 11058 pw32*) 11059 # pw32 DLLs use 'pw' prefix rather than 'lib' 11060 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11061 ;; 11062 esac 11063 dynamic_linker='Win32 ld.exe' 11064 ;; 11065 11066 *,cl*) 11067 # Native MSVC 11068 libname_spec='$name' 11069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11070 library_names_spec='${libname}.dll.lib' 11071 11072 case $build_os in 11073 mingw*) 11074 sys_lib_search_path_spec= 11075 lt_save_ifs=$IFS 11076 IFS=';' 11077 for lt_path in $LIB 11078 do 11079 IFS=$lt_save_ifs 11080 # Let DOS variable expansion print the short 8.3 style file name. 11081 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11082 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11083 done 11084 IFS=$lt_save_ifs 11085 # Convert to MSYS style. 11086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11087 ;; 11088 cygwin*) 11089 # Convert to unix form, then to dos form, then back to unix form 11090 # but this time dos style (no spaces!) so that the unix form looks 11091 # like /cygdrive/c/PROGRA~1:/cygdr... 11092 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11093 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11094 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11095 ;; 11096 *) 11097 sys_lib_search_path_spec="$LIB" 11098 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11099 # It is most probably a Windows format PATH. 11100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11101 else 11102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11103 fi 11104 # FIXME: find the short name or the path components, as spaces are 11105 # common. (e.g. "Program Files" -> "PROGRA~1") 11106 ;; 11107 esac 11108 11109 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11110 postinstall_cmds='base_file=`basename \${file}`~ 11111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11112 dldir=$destdir/`dirname \$dlpath`~ 11113 test -d \$dldir || mkdir -p \$dldir~ 11114 $install_prog $dir/$dlname \$dldir/$dlname' 11115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11116 dlpath=$dir/\$dldll~ 11117 $RM \$dlpath' 11118 shlibpath_overrides_runpath=yes 11119 dynamic_linker='Win32 link.exe' 11120 ;; 11121 11122 *) 11123 # Assume MSVC wrapper 11124 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11125 dynamic_linker='Win32 ld.exe' 11126 ;; 11127 esac 11128 # FIXME: first we should search . and the directory the executable is in 11129 shlibpath_var=PATH 11130 ;; 11131 11132darwin* | rhapsody*) 11133 dynamic_linker="$host_os dyld" 11134 version_type=darwin 11135 need_lib_prefix=no 11136 need_version=no 11137 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11138 soname_spec='${libname}${release}${major}$shared_ext' 11139 shlibpath_overrides_runpath=yes 11140 shlibpath_var=DYLD_LIBRARY_PATH 11141 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11142 11143 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11145 ;; 11146 11147dgux*) 11148 version_type=linux 11149 need_lib_prefix=no 11150 need_version=no 11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11152 soname_spec='${libname}${release}${shared_ext}$major' 11153 shlibpath_var=LD_LIBRARY_PATH 11154 ;; 11155 11156freebsd1*) 11157 dynamic_linker=no 11158 ;; 11159 11160freebsd* | dragonfly*) 11161 # DragonFly does not have aout. When/if they implement a new 11162 # versioning mechanism, adjust this. 11163 if test -x /usr/bin/objformat; then 11164 objformat=`/usr/bin/objformat` 11165 else 11166 case $host_os in 11167 freebsd[123]*) objformat=aout ;; 11168 *) objformat=elf ;; 11169 esac 11170 fi 11171 version_type=freebsd-$objformat 11172 case $version_type in 11173 freebsd-elf*) 11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11175 need_version=no 11176 need_lib_prefix=no 11177 ;; 11178 freebsd-*) 11179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11180 need_version=yes 11181 ;; 11182 esac 11183 shlibpath_var=LD_LIBRARY_PATH 11184 case $host_os in 11185 freebsd2*) 11186 shlibpath_overrides_runpath=yes 11187 ;; 11188 freebsd3.[01]* | freebsdelf3.[01]*) 11189 shlibpath_overrides_runpath=yes 11190 hardcode_into_libs=yes 11191 ;; 11192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11194 shlibpath_overrides_runpath=no 11195 hardcode_into_libs=yes 11196 ;; 11197 *) # from 4.6 on, and DragonFly 11198 shlibpath_overrides_runpath=yes 11199 hardcode_into_libs=yes 11200 ;; 11201 esac 11202 ;; 11203 11204gnu*) 11205 version_type=linux 11206 need_lib_prefix=no 11207 need_version=no 11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11209 soname_spec='${libname}${release}${shared_ext}$major' 11210 shlibpath_var=LD_LIBRARY_PATH 11211 hardcode_into_libs=yes 11212 ;; 11213 11214haiku*) 11215 version_type=linux 11216 need_lib_prefix=no 11217 need_version=no 11218 dynamic_linker="$host_os runtime_loader" 11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11220 soname_spec='${libname}${release}${shared_ext}$major' 11221 shlibpath_var=LIBRARY_PATH 11222 shlibpath_overrides_runpath=yes 11223 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11224 hardcode_into_libs=yes 11225 ;; 11226 11227hpux9* | hpux10* | hpux11*) 11228 # Give a soname corresponding to the major version so that dld.sl refuses to 11229 # link against other versions. 11230 version_type=sunos 11231 need_lib_prefix=no 11232 need_version=no 11233 case $host_cpu in 11234 ia64*) 11235 shrext_cmds='.so' 11236 hardcode_into_libs=yes 11237 dynamic_linker="$host_os dld.so" 11238 shlibpath_var=LD_LIBRARY_PATH 11239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11241 soname_spec='${libname}${release}${shared_ext}$major' 11242 if test "X$HPUX_IA64_MODE" = X32; then 11243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11244 else 11245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11246 fi 11247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11248 ;; 11249 hppa*64*) 11250 shrext_cmds='.sl' 11251 hardcode_into_libs=yes 11252 dynamic_linker="$host_os dld.sl" 11253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11256 soname_spec='${libname}${release}${shared_ext}$major' 11257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11259 ;; 11260 *) 11261 shrext_cmds='.sl' 11262 dynamic_linker="$host_os dld.sl" 11263 shlibpath_var=SHLIB_PATH 11264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11266 soname_spec='${libname}${release}${shared_ext}$major' 11267 ;; 11268 esac 11269 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11270 postinstall_cmds='chmod 555 $lib' 11271 # or fails outright, so override atomically: 11272 install_override_mode=555 11273 ;; 11274 11275interix[3-9]*) 11276 version_type=linux 11277 need_lib_prefix=no 11278 need_version=no 11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11280 soname_spec='${libname}${release}${shared_ext}$major' 11281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11282 shlibpath_var=LD_LIBRARY_PATH 11283 shlibpath_overrides_runpath=no 11284 hardcode_into_libs=yes 11285 ;; 11286 11287irix5* | irix6* | nonstopux*) 11288 case $host_os in 11289 nonstopux*) version_type=nonstopux ;; 11290 *) 11291 if test "$lt_cv_prog_gnu_ld" = yes; then 11292 version_type=linux 11293 else 11294 version_type=irix 11295 fi ;; 11296 esac 11297 need_lib_prefix=no 11298 need_version=no 11299 soname_spec='${libname}${release}${shared_ext}$major' 11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11301 case $host_os in 11302 irix5* | nonstopux*) 11303 libsuff= shlibsuff= 11304 ;; 11305 *) 11306 case $LD in # libtool.m4 will add one of these switches to LD 11307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11308 libsuff= shlibsuff= libmagic=32-bit;; 11309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11310 libsuff=32 shlibsuff=N32 libmagic=N32;; 11311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11312 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11313 *) libsuff= shlibsuff= libmagic=never-match;; 11314 esac 11315 ;; 11316 esac 11317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11318 shlibpath_overrides_runpath=no 11319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11321 hardcode_into_libs=yes 11322 ;; 11323 11324# No shared lib support for Linux oldld, aout, or coff. 11325linux*oldld* | linux*aout* | linux*coff*) 11326 dynamic_linker=no 11327 ;; 11328 11329# This must be Linux ELF. 11330linux* | k*bsd*-gnu | kopensolaris*-gnu) 11331 version_type=linux 11332 need_lib_prefix=no 11333 need_version=no 11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11335 soname_spec='${libname}${release}${shared_ext}$major' 11336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11337 shlibpath_var=LD_LIBRARY_PATH 11338 shlibpath_overrides_runpath=no 11339 11340 # Some binutils ld are patched to set DT_RUNPATH 11341 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 lt_cv_shlibpath_overrides_runpath=no 11345 save_LDFLAGS=$LDFLAGS 11346 save_libdir=$libdir 11347 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11348 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351 11352int 11353main () 11354{ 11355 11356 ; 11357 return 0; 11358} 11359_ACEOF 11360if ac_fn_c_try_link "$LINENO"; then : 11361 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11362 lt_cv_shlibpath_overrides_runpath=yes 11363fi 11364fi 11365rm -f core conftest.err conftest.$ac_objext \ 11366 conftest$ac_exeext conftest.$ac_ext 11367 LDFLAGS=$save_LDFLAGS 11368 libdir=$save_libdir 11369 11370fi 11371 11372 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11373 11374 # This implies no fast_install, which is unacceptable. 11375 # Some rework will be needed to allow for fast_install 11376 # before this can be enabled. 11377 hardcode_into_libs=yes 11378 11379 # Append ld.so.conf contents to the search path 11380 if test -f /etc/ld.so.conf; then 11381 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' ' '` 11382 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11383 fi 11384 11385 # We used to test for /lib/ld.so.1 and disable shared libraries on 11386 # powerpc, because MkLinux only supported shared libraries with the 11387 # GNU dynamic linker. Since this was broken with cross compilers, 11388 # most powerpc-linux boxes support dynamic linking these days and 11389 # people can always --disable-shared, the test was removed, and we 11390 # assume the GNU/Linux dynamic linker is in use. 11391 dynamic_linker='GNU/Linux ld.so' 11392 ;; 11393 11394netbsd*) 11395 version_type=sunos 11396 need_lib_prefix=no 11397 need_version=no 11398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11401 dynamic_linker='NetBSD (a.out) ld.so' 11402 else 11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11404 soname_spec='${libname}${release}${shared_ext}$major' 11405 dynamic_linker='NetBSD ld.elf_so' 11406 fi 11407 shlibpath_var=LD_LIBRARY_PATH 11408 shlibpath_overrides_runpath=yes 11409 hardcode_into_libs=yes 11410 ;; 11411 11412newsos6) 11413 version_type=linux 11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11415 shlibpath_var=LD_LIBRARY_PATH 11416 shlibpath_overrides_runpath=yes 11417 ;; 11418 11419*nto* | *qnx*) 11420 version_type=qnx 11421 need_lib_prefix=no 11422 need_version=no 11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11424 soname_spec='${libname}${release}${shared_ext}$major' 11425 shlibpath_var=LD_LIBRARY_PATH 11426 shlibpath_overrides_runpath=no 11427 hardcode_into_libs=yes 11428 dynamic_linker='ldqnx.so' 11429 ;; 11430 11431openbsd*) 11432 version_type=sunos 11433 sys_lib_dlsearch_path_spec="/usr/lib" 11434 need_lib_prefix=no 11435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11436 case $host_os in 11437 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11438 *) need_version=no ;; 11439 esac 11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11442 shlibpath_var=LD_LIBRARY_PATH 11443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11444 case $host_os in 11445 openbsd2.[89] | openbsd2.[89].*) 11446 shlibpath_overrides_runpath=no 11447 ;; 11448 *) 11449 shlibpath_overrides_runpath=yes 11450 ;; 11451 esac 11452 else 11453 shlibpath_overrides_runpath=yes 11454 fi 11455 ;; 11456 11457os2*) 11458 libname_spec='$name' 11459 shrext_cmds=".dll" 11460 need_lib_prefix=no 11461 library_names_spec='$libname${shared_ext} $libname.a' 11462 dynamic_linker='OS/2 ld.exe' 11463 shlibpath_var=LIBPATH 11464 ;; 11465 11466osf3* | osf4* | osf5*) 11467 version_type=osf 11468 need_lib_prefix=no 11469 need_version=no 11470 soname_spec='${libname}${release}${shared_ext}$major' 11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11472 shlibpath_var=LD_LIBRARY_PATH 11473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11475 ;; 11476 11477rdos*) 11478 dynamic_linker=no 11479 ;; 11480 11481solaris*) 11482 version_type=linux 11483 need_lib_prefix=no 11484 need_version=no 11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11486 soname_spec='${libname}${release}${shared_ext}$major' 11487 shlibpath_var=LD_LIBRARY_PATH 11488 shlibpath_overrides_runpath=yes 11489 hardcode_into_libs=yes 11490 # ldd complains unless libraries are executable 11491 postinstall_cmds='chmod +x $lib' 11492 ;; 11493 11494sunos4*) 11495 version_type=sunos 11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11498 shlibpath_var=LD_LIBRARY_PATH 11499 shlibpath_overrides_runpath=yes 11500 if test "$with_gnu_ld" = yes; then 11501 need_lib_prefix=no 11502 fi 11503 need_version=yes 11504 ;; 11505 11506sysv4 | sysv4.3*) 11507 version_type=linux 11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11509 soname_spec='${libname}${release}${shared_ext}$major' 11510 shlibpath_var=LD_LIBRARY_PATH 11511 case $host_vendor in 11512 sni) 11513 shlibpath_overrides_runpath=no 11514 need_lib_prefix=no 11515 runpath_var=LD_RUN_PATH 11516 ;; 11517 siemens) 11518 need_lib_prefix=no 11519 ;; 11520 motorola) 11521 need_lib_prefix=no 11522 need_version=no 11523 shlibpath_overrides_runpath=no 11524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11525 ;; 11526 esac 11527 ;; 11528 11529sysv4*MP*) 11530 if test -d /usr/nec ;then 11531 version_type=linux 11532 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11533 soname_spec='$libname${shared_ext}.$major' 11534 shlibpath_var=LD_LIBRARY_PATH 11535 fi 11536 ;; 11537 11538sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11539 version_type=freebsd-elf 11540 need_lib_prefix=no 11541 need_version=no 11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11543 soname_spec='${libname}${release}${shared_ext}$major' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 shlibpath_overrides_runpath=yes 11546 hardcode_into_libs=yes 11547 if test "$with_gnu_ld" = yes; then 11548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11549 else 11550 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11551 case $host_os in 11552 sco3.2v5*) 11553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11554 ;; 11555 esac 11556 fi 11557 sys_lib_dlsearch_path_spec='/usr/lib' 11558 ;; 11559 11560tpf*) 11561 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11562 version_type=linux 11563 need_lib_prefix=no 11564 need_version=no 11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11566 shlibpath_var=LD_LIBRARY_PATH 11567 shlibpath_overrides_runpath=no 11568 hardcode_into_libs=yes 11569 ;; 11570 11571uts4*) 11572 version_type=linux 11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11574 soname_spec='${libname}${release}${shared_ext}$major' 11575 shlibpath_var=LD_LIBRARY_PATH 11576 ;; 11577 11578*) 11579 dynamic_linker=no 11580 ;; 11581esac 11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11583$as_echo "$dynamic_linker" >&6; } 11584test "$dynamic_linker" = no && can_build_shared=no 11585 11586variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11587if test "$GCC" = yes; then 11588 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11589fi 11590 11591if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11592 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11593fi 11594if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11595 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11596fi 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11690$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11691hardcode_action= 11692if test -n "$hardcode_libdir_flag_spec" || 11693 test -n "$runpath_var" || 11694 test "X$hardcode_automatic" = "Xyes" ; then 11695 11696 # We can hardcode non-existent directories. 11697 if test "$hardcode_direct" != no && 11698 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11699 # have to relink, otherwise we might link with an installed library 11700 # when we should be linking with a yet-to-be-installed one 11701 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11702 test "$hardcode_minus_L" != no; then 11703 # Linking always hardcodes the temporary library directory. 11704 hardcode_action=relink 11705 else 11706 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11707 hardcode_action=immediate 11708 fi 11709else 11710 # We cannot hardcode anything, or else we can only hardcode existing 11711 # directories. 11712 hardcode_action=unsupported 11713fi 11714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11715$as_echo "$hardcode_action" >&6; } 11716 11717if test "$hardcode_action" = relink || 11718 test "$inherit_rpath" = yes; then 11719 # Fast installation is not supported 11720 enable_fast_install=no 11721elif test "$shlibpath_overrides_runpath" = yes || 11722 test "$enable_shared" = no; then 11723 # Fast installation is not necessary 11724 enable_fast_install=needless 11725fi 11726 11727 11728 11729 11730 11731 11732 if test "x$enable_dlopen" != xyes; then 11733 enable_dlopen=unknown 11734 enable_dlopen_self=unknown 11735 enable_dlopen_self_static=unknown 11736else 11737 lt_cv_dlopen=no 11738 lt_cv_dlopen_libs= 11739 11740 case $host_os in 11741 beos*) 11742 lt_cv_dlopen="load_add_on" 11743 lt_cv_dlopen_libs= 11744 lt_cv_dlopen_self=yes 11745 ;; 11746 11747 mingw* | pw32* | cegcc*) 11748 lt_cv_dlopen="LoadLibrary" 11749 lt_cv_dlopen_libs= 11750 ;; 11751 11752 cygwin*) 11753 lt_cv_dlopen="dlopen" 11754 lt_cv_dlopen_libs= 11755 ;; 11756 11757 darwin*) 11758 # if libdl is installed we need to link against it 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11760$as_echo_n "checking for dlopen in -ldl... " >&6; } 11761if ${ac_cv_lib_dl_dlopen+:} false; then : 11762 $as_echo_n "(cached) " >&6 11763else 11764 ac_check_lib_save_LIBS=$LIBS 11765LIBS="-ldl $LIBS" 11766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11767/* end confdefs.h. */ 11768 11769/* Override any GCC internal prototype to avoid an error. 11770 Use char because int might match the return type of a GCC 11771 builtin and then its argument prototype would still apply. */ 11772#ifdef __cplusplus 11773extern "C" 11774#endif 11775char dlopen (); 11776int 11777main () 11778{ 11779return dlopen (); 11780 ; 11781 return 0; 11782} 11783_ACEOF 11784if ac_fn_c_try_link "$LINENO"; then : 11785 ac_cv_lib_dl_dlopen=yes 11786else 11787 ac_cv_lib_dl_dlopen=no 11788fi 11789rm -f core conftest.err conftest.$ac_objext \ 11790 conftest$ac_exeext conftest.$ac_ext 11791LIBS=$ac_check_lib_save_LIBS 11792fi 11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11794$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11795if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11797else 11798 11799 lt_cv_dlopen="dyld" 11800 lt_cv_dlopen_libs= 11801 lt_cv_dlopen_self=yes 11802 11803fi 11804 11805 ;; 11806 11807 *) 11808 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11809if test "x$ac_cv_func_shl_load" = xyes; then : 11810 lt_cv_dlopen="shl_load" 11811else 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11813$as_echo_n "checking for shl_load in -ldld... " >&6; } 11814if ${ac_cv_lib_dld_shl_load+:} false; then : 11815 $as_echo_n "(cached) " >&6 11816else 11817 ac_check_lib_save_LIBS=$LIBS 11818LIBS="-ldld $LIBS" 11819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11820/* end confdefs.h. */ 11821 11822/* Override any GCC internal prototype to avoid an error. 11823 Use char because int might match the return type of a GCC 11824 builtin and then its argument prototype would still apply. */ 11825#ifdef __cplusplus 11826extern "C" 11827#endif 11828char shl_load (); 11829int 11830main () 11831{ 11832return shl_load (); 11833 ; 11834 return 0; 11835} 11836_ACEOF 11837if ac_fn_c_try_link "$LINENO"; then : 11838 ac_cv_lib_dld_shl_load=yes 11839else 11840 ac_cv_lib_dld_shl_load=no 11841fi 11842rm -f core conftest.err conftest.$ac_objext \ 11843 conftest$ac_exeext conftest.$ac_ext 11844LIBS=$ac_check_lib_save_LIBS 11845fi 11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11847$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11848if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11850else 11851 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11852if test "x$ac_cv_func_dlopen" = xyes; then : 11853 lt_cv_dlopen="dlopen" 11854else 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11856$as_echo_n "checking for dlopen in -ldl... " >&6; } 11857if ${ac_cv_lib_dl_dlopen+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859else 11860 ac_check_lib_save_LIBS=$LIBS 11861LIBS="-ldl $LIBS" 11862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11863/* end confdefs.h. */ 11864 11865/* Override any GCC internal prototype to avoid an error. 11866 Use char because int might match the return type of a GCC 11867 builtin and then its argument prototype would still apply. */ 11868#ifdef __cplusplus 11869extern "C" 11870#endif 11871char dlopen (); 11872int 11873main () 11874{ 11875return dlopen (); 11876 ; 11877 return 0; 11878} 11879_ACEOF 11880if ac_fn_c_try_link "$LINENO"; then : 11881 ac_cv_lib_dl_dlopen=yes 11882else 11883 ac_cv_lib_dl_dlopen=no 11884fi 11885rm -f core conftest.err conftest.$ac_objext \ 11886 conftest$ac_exeext conftest.$ac_ext 11887LIBS=$ac_check_lib_save_LIBS 11888fi 11889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11890$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11891if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11893else 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11895$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11896if ${ac_cv_lib_svld_dlopen+:} false; then : 11897 $as_echo_n "(cached) " >&6 11898else 11899 ac_check_lib_save_LIBS=$LIBS 11900LIBS="-lsvld $LIBS" 11901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11902/* end confdefs.h. */ 11903 11904/* Override any GCC internal prototype to avoid an error. 11905 Use char because int might match the return type of a GCC 11906 builtin and then its argument prototype would still apply. */ 11907#ifdef __cplusplus 11908extern "C" 11909#endif 11910char dlopen (); 11911int 11912main () 11913{ 11914return dlopen (); 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919if ac_fn_c_try_link "$LINENO"; then : 11920 ac_cv_lib_svld_dlopen=yes 11921else 11922 ac_cv_lib_svld_dlopen=no 11923fi 11924rm -f core conftest.err conftest.$ac_objext \ 11925 conftest$ac_exeext conftest.$ac_ext 11926LIBS=$ac_check_lib_save_LIBS 11927fi 11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11929$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11930if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11932else 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11934$as_echo_n "checking for dld_link in -ldld... " >&6; } 11935if ${ac_cv_lib_dld_dld_link+:} false; then : 11936 $as_echo_n "(cached) " >&6 11937else 11938 ac_check_lib_save_LIBS=$LIBS 11939LIBS="-ldld $LIBS" 11940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11941/* end confdefs.h. */ 11942 11943/* Override any GCC internal prototype to avoid an error. 11944 Use char because int might match the return type of a GCC 11945 builtin and then its argument prototype would still apply. */ 11946#ifdef __cplusplus 11947extern "C" 11948#endif 11949char dld_link (); 11950int 11951main () 11952{ 11953return dld_link (); 11954 ; 11955 return 0; 11956} 11957_ACEOF 11958if ac_fn_c_try_link "$LINENO"; then : 11959 ac_cv_lib_dld_dld_link=yes 11960else 11961 ac_cv_lib_dld_dld_link=no 11962fi 11963rm -f core conftest.err conftest.$ac_objext \ 11964 conftest$ac_exeext conftest.$ac_ext 11965LIBS=$ac_check_lib_save_LIBS 11966fi 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11968$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11969if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11970 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11971fi 11972 11973 11974fi 11975 11976 11977fi 11978 11979 11980fi 11981 11982 11983fi 11984 11985 11986fi 11987 11988 ;; 11989 esac 11990 11991 if test "x$lt_cv_dlopen" != xno; then 11992 enable_dlopen=yes 11993 else 11994 enable_dlopen=no 11995 fi 11996 11997 case $lt_cv_dlopen in 11998 dlopen) 11999 save_CPPFLAGS="$CPPFLAGS" 12000 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12001 12002 save_LDFLAGS="$LDFLAGS" 12003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12004 12005 save_LIBS="$LIBS" 12006 LIBS="$lt_cv_dlopen_libs $LIBS" 12007 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12009$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12010if ${lt_cv_dlopen_self+:} false; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 if test "$cross_compiling" = yes; then : 12014 lt_cv_dlopen_self=cross 12015else 12016 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12017 lt_status=$lt_dlunknown 12018 cat > conftest.$ac_ext <<_LT_EOF 12019#line $LINENO "configure" 12020#include "confdefs.h" 12021 12022#if HAVE_DLFCN_H 12023#include <dlfcn.h> 12024#endif 12025 12026#include <stdio.h> 12027 12028#ifdef RTLD_GLOBAL 12029# define LT_DLGLOBAL RTLD_GLOBAL 12030#else 12031# ifdef DL_GLOBAL 12032# define LT_DLGLOBAL DL_GLOBAL 12033# else 12034# define LT_DLGLOBAL 0 12035# endif 12036#endif 12037 12038/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12039 find out it does not work in some platform. */ 12040#ifndef LT_DLLAZY_OR_NOW 12041# ifdef RTLD_LAZY 12042# define LT_DLLAZY_OR_NOW RTLD_LAZY 12043# else 12044# ifdef DL_LAZY 12045# define LT_DLLAZY_OR_NOW DL_LAZY 12046# else 12047# ifdef RTLD_NOW 12048# define LT_DLLAZY_OR_NOW RTLD_NOW 12049# else 12050# ifdef DL_NOW 12051# define LT_DLLAZY_OR_NOW DL_NOW 12052# else 12053# define LT_DLLAZY_OR_NOW 0 12054# endif 12055# endif 12056# endif 12057# endif 12058#endif 12059 12060/* When -fvisbility=hidden is used, assume the code has been annotated 12061 correspondingly for the symbols needed. */ 12062#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12063int fnord () __attribute__((visibility("default"))); 12064#endif 12065 12066int fnord () { return 42; } 12067int main () 12068{ 12069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12070 int status = $lt_dlunknown; 12071 12072 if (self) 12073 { 12074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12075 else 12076 { 12077 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12078 else puts (dlerror ()); 12079 } 12080 /* dlclose (self); */ 12081 } 12082 else 12083 puts (dlerror ()); 12084 12085 return status; 12086} 12087_LT_EOF 12088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12089 (eval $ac_link) 2>&5 12090 ac_status=$? 12091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12092 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12093 (./conftest; exit; ) >&5 2>/dev/null 12094 lt_status=$? 12095 case x$lt_status in 12096 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12097 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12098 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12099 esac 12100 else : 12101 # compilation failed 12102 lt_cv_dlopen_self=no 12103 fi 12104fi 12105rm -fr conftest* 12106 12107 12108fi 12109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12110$as_echo "$lt_cv_dlopen_self" >&6; } 12111 12112 if test "x$lt_cv_dlopen_self" = xyes; then 12113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12115$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12116if ${lt_cv_dlopen_self_static+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118else 12119 if test "$cross_compiling" = yes; then : 12120 lt_cv_dlopen_self_static=cross 12121else 12122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12123 lt_status=$lt_dlunknown 12124 cat > conftest.$ac_ext <<_LT_EOF 12125#line $LINENO "configure" 12126#include "confdefs.h" 12127 12128#if HAVE_DLFCN_H 12129#include <dlfcn.h> 12130#endif 12131 12132#include <stdio.h> 12133 12134#ifdef RTLD_GLOBAL 12135# define LT_DLGLOBAL RTLD_GLOBAL 12136#else 12137# ifdef DL_GLOBAL 12138# define LT_DLGLOBAL DL_GLOBAL 12139# else 12140# define LT_DLGLOBAL 0 12141# endif 12142#endif 12143 12144/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12145 find out it does not work in some platform. */ 12146#ifndef LT_DLLAZY_OR_NOW 12147# ifdef RTLD_LAZY 12148# define LT_DLLAZY_OR_NOW RTLD_LAZY 12149# else 12150# ifdef DL_LAZY 12151# define LT_DLLAZY_OR_NOW DL_LAZY 12152# else 12153# ifdef RTLD_NOW 12154# define LT_DLLAZY_OR_NOW RTLD_NOW 12155# else 12156# ifdef DL_NOW 12157# define LT_DLLAZY_OR_NOW DL_NOW 12158# else 12159# define LT_DLLAZY_OR_NOW 0 12160# endif 12161# endif 12162# endif 12163# endif 12164#endif 12165 12166/* When -fvisbility=hidden is used, assume the code has been annotated 12167 correspondingly for the symbols needed. */ 12168#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12169int fnord () __attribute__((visibility("default"))); 12170#endif 12171 12172int fnord () { return 42; } 12173int main () 12174{ 12175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12176 int status = $lt_dlunknown; 12177 12178 if (self) 12179 { 12180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12181 else 12182 { 12183 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12184 else puts (dlerror ()); 12185 } 12186 /* dlclose (self); */ 12187 } 12188 else 12189 puts (dlerror ()); 12190 12191 return status; 12192} 12193_LT_EOF 12194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12195 (eval $ac_link) 2>&5 12196 ac_status=$? 12197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12198 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12199 (./conftest; exit; ) >&5 2>/dev/null 12200 lt_status=$? 12201 case x$lt_status in 12202 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12203 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12204 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12205 esac 12206 else : 12207 # compilation failed 12208 lt_cv_dlopen_self_static=no 12209 fi 12210fi 12211rm -fr conftest* 12212 12213 12214fi 12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12216$as_echo "$lt_cv_dlopen_self_static" >&6; } 12217 fi 12218 12219 CPPFLAGS="$save_CPPFLAGS" 12220 LDFLAGS="$save_LDFLAGS" 12221 LIBS="$save_LIBS" 12222 ;; 12223 esac 12224 12225 case $lt_cv_dlopen_self in 12226 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12227 *) enable_dlopen_self=unknown ;; 12228 esac 12229 12230 case $lt_cv_dlopen_self_static in 12231 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12232 *) enable_dlopen_self_static=unknown ;; 12233 esac 12234fi 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252striplib= 12253old_striplib= 12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12255$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12256if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12257 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12258 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12260$as_echo "yes" >&6; } 12261else 12262# FIXME - insert some real tests, host_os isn't really good enough 12263 case $host_os in 12264 darwin*) 12265 if test -n "$STRIP" ; then 12266 striplib="$STRIP -x" 12267 old_striplib="$STRIP -S" 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12269$as_echo "yes" >&6; } 12270 else 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12272$as_echo "no" >&6; } 12273 fi 12274 ;; 12275 *) 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12277$as_echo "no" >&6; } 12278 ;; 12279 esac 12280fi 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 # Report which library types will actually be built 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12295$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12297$as_echo "$can_build_shared" >&6; } 12298 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12300$as_echo_n "checking whether to build shared libraries... " >&6; } 12301 test "$can_build_shared" = "no" && enable_shared=no 12302 12303 # On AIX, shared libraries and static libraries use the same namespace, and 12304 # are all built from PIC. 12305 case $host_os in 12306 aix3*) 12307 test "$enable_shared" = yes && enable_static=no 12308 if test -n "$RANLIB"; then 12309 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12310 postinstall_cmds='$RANLIB $lib' 12311 fi 12312 ;; 12313 12314 aix[4-9]*) 12315 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12316 test "$enable_shared" = yes && enable_static=no 12317 fi 12318 ;; 12319 esac 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12321$as_echo "$enable_shared" >&6; } 12322 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12324$as_echo_n "checking whether to build static libraries... " >&6; } 12325 # Make sure either enable_shared or enable_static is yes. 12326 test "$enable_shared" = yes || enable_static=yes 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12328$as_echo "$enable_static" >&6; } 12329 12330 12331 12332 12333fi 12334ac_ext=c 12335ac_cpp='$CPP $CPPFLAGS' 12336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12338ac_compiler_gnu=$ac_cv_c_compiler_gnu 12339 12340CC="$lt_save_CC" 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 ac_config_commands="$ac_config_commands libtool" 12355 12356 12357 12358 12359# Only expand once: 12360 12361 12362 12363ac_ext=c 12364ac_cpp='$CPP $CPPFLAGS' 12365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12367ac_compiler_gnu=$ac_cv_c_compiler_gnu 12368if test -n "$ac_tool_prefix"; then 12369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12370set dummy ${ac_tool_prefix}gcc; ac_word=$2 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12372$as_echo_n "checking for $ac_word... " >&6; } 12373if ${ac_cv_prog_CC+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 if test -n "$CC"; then 12377 ac_cv_prog_CC="$CC" # Let the user override the test. 12378else 12379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12380for as_dir in $PATH 12381do 12382 IFS=$as_save_IFS 12383 test -z "$as_dir" && as_dir=. 12384 for ac_exec_ext in '' $ac_executable_extensions; do 12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12386 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12388 break 2 12389 fi 12390done 12391 done 12392IFS=$as_save_IFS 12393 12394fi 12395fi 12396CC=$ac_cv_prog_CC 12397if test -n "$CC"; then 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12399$as_echo "$CC" >&6; } 12400else 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12402$as_echo "no" >&6; } 12403fi 12404 12405 12406fi 12407if test -z "$ac_cv_prog_CC"; then 12408 ac_ct_CC=$CC 12409 # Extract the first word of "gcc", so it can be a program name with args. 12410set dummy gcc; ac_word=$2 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12412$as_echo_n "checking for $ac_word... " >&6; } 12413if ${ac_cv_prog_ac_ct_CC+:} false; then : 12414 $as_echo_n "(cached) " >&6 12415else 12416 if test -n "$ac_ct_CC"; then 12417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12418else 12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12420for as_dir in $PATH 12421do 12422 IFS=$as_save_IFS 12423 test -z "$as_dir" && as_dir=. 12424 for ac_exec_ext in '' $ac_executable_extensions; do 12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12426 ac_cv_prog_ac_ct_CC="gcc" 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12428 break 2 12429 fi 12430done 12431 done 12432IFS=$as_save_IFS 12433 12434fi 12435fi 12436ac_ct_CC=$ac_cv_prog_ac_ct_CC 12437if test -n "$ac_ct_CC"; then 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12439$as_echo "$ac_ct_CC" >&6; } 12440else 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12442$as_echo "no" >&6; } 12443fi 12444 12445 if test "x$ac_ct_CC" = x; then 12446 CC="" 12447 else 12448 case $cross_compiling:$ac_tool_warned in 12449yes:) 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12452ac_tool_warned=yes ;; 12453esac 12454 CC=$ac_ct_CC 12455 fi 12456else 12457 CC="$ac_cv_prog_CC" 12458fi 12459 12460if test -z "$CC"; then 12461 if test -n "$ac_tool_prefix"; then 12462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12463set dummy ${ac_tool_prefix}cc; ac_word=$2 12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12465$as_echo_n "checking for $ac_word... " >&6; } 12466if ${ac_cv_prog_CC+:} false; then : 12467 $as_echo_n "(cached) " >&6 12468else 12469 if test -n "$CC"; then 12470 ac_cv_prog_CC="$CC" # Let the user override the test. 12471else 12472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12473for as_dir in $PATH 12474do 12475 IFS=$as_save_IFS 12476 test -z "$as_dir" && as_dir=. 12477 for ac_exec_ext in '' $ac_executable_extensions; do 12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12479 ac_cv_prog_CC="${ac_tool_prefix}cc" 12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12481 break 2 12482 fi 12483done 12484 done 12485IFS=$as_save_IFS 12486 12487fi 12488fi 12489CC=$ac_cv_prog_CC 12490if test -n "$CC"; then 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12492$as_echo "$CC" >&6; } 12493else 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12495$as_echo "no" >&6; } 12496fi 12497 12498 12499 fi 12500fi 12501if test -z "$CC"; then 12502 # Extract the first word of "cc", so it can be a program name with args. 12503set dummy cc; ac_word=$2 12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12505$as_echo_n "checking for $ac_word... " >&6; } 12506if ${ac_cv_prog_CC+:} false; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 if test -n "$CC"; then 12510 ac_cv_prog_CC="$CC" # Let the user override the test. 12511else 12512 ac_prog_rejected=no 12513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12514for as_dir in $PATH 12515do 12516 IFS=$as_save_IFS 12517 test -z "$as_dir" && as_dir=. 12518 for ac_exec_ext in '' $ac_executable_extensions; do 12519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12521 ac_prog_rejected=yes 12522 continue 12523 fi 12524 ac_cv_prog_CC="cc" 12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12526 break 2 12527 fi 12528done 12529 done 12530IFS=$as_save_IFS 12531 12532if test $ac_prog_rejected = yes; then 12533 # We found a bogon in the path, so make sure we never use it. 12534 set dummy $ac_cv_prog_CC 12535 shift 12536 if test $# != 0; then 12537 # We chose a different compiler from the bogus one. 12538 # However, it has the same basename, so the bogon will be chosen 12539 # first if we set CC to just the basename; use the full file name. 12540 shift 12541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12542 fi 12543fi 12544fi 12545fi 12546CC=$ac_cv_prog_CC 12547if test -n "$CC"; then 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12549$as_echo "$CC" >&6; } 12550else 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12552$as_echo "no" >&6; } 12553fi 12554 12555 12556fi 12557if test -z "$CC"; then 12558 if test -n "$ac_tool_prefix"; then 12559 for ac_prog in cl.exe 12560 do 12561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12562set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12564$as_echo_n "checking for $ac_word... " >&6; } 12565if ${ac_cv_prog_CC+:} false; then : 12566 $as_echo_n "(cached) " >&6 12567else 12568 if test -n "$CC"; then 12569 ac_cv_prog_CC="$CC" # Let the user override the test. 12570else 12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12572for as_dir in $PATH 12573do 12574 IFS=$as_save_IFS 12575 test -z "$as_dir" && as_dir=. 12576 for ac_exec_ext in '' $ac_executable_extensions; do 12577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12580 break 2 12581 fi 12582done 12583 done 12584IFS=$as_save_IFS 12585 12586fi 12587fi 12588CC=$ac_cv_prog_CC 12589if test -n "$CC"; then 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12591$as_echo "$CC" >&6; } 12592else 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12594$as_echo "no" >&6; } 12595fi 12596 12597 12598 test -n "$CC" && break 12599 done 12600fi 12601if test -z "$CC"; then 12602 ac_ct_CC=$CC 12603 for ac_prog in cl.exe 12604do 12605 # Extract the first word of "$ac_prog", so it can be a program name with args. 12606set dummy $ac_prog; ac_word=$2 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12608$as_echo_n "checking for $ac_word... " >&6; } 12609if ${ac_cv_prog_ac_ct_CC+:} false; then : 12610 $as_echo_n "(cached) " >&6 12611else 12612 if test -n "$ac_ct_CC"; then 12613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12614else 12615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12616for as_dir in $PATH 12617do 12618 IFS=$as_save_IFS 12619 test -z "$as_dir" && as_dir=. 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12622 ac_cv_prog_ac_ct_CC="$ac_prog" 12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12624 break 2 12625 fi 12626done 12627 done 12628IFS=$as_save_IFS 12629 12630fi 12631fi 12632ac_ct_CC=$ac_cv_prog_ac_ct_CC 12633if test -n "$ac_ct_CC"; then 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12635$as_echo "$ac_ct_CC" >&6; } 12636else 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12638$as_echo "no" >&6; } 12639fi 12640 12641 12642 test -n "$ac_ct_CC" && break 12643done 12644 12645 if test "x$ac_ct_CC" = x; then 12646 CC="" 12647 else 12648 case $cross_compiling:$ac_tool_warned in 12649yes:) 12650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12652ac_tool_warned=yes ;; 12653esac 12654 CC=$ac_ct_CC 12655 fi 12656fi 12657 12658fi 12659 12660 12661test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12663as_fn_error $? "no acceptable C compiler found in \$PATH 12664See \`config.log' for more details" "$LINENO" 5; } 12665 12666# Provide some information about the compiler. 12667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12668set X $ac_compile 12669ac_compiler=$2 12670for ac_option in --version -v -V -qversion; do 12671 { { ac_try="$ac_compiler $ac_option >&5" 12672case "(($ac_try" in 12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12674 *) ac_try_echo=$ac_try;; 12675esac 12676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12677$as_echo "$ac_try_echo"; } >&5 12678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12679 ac_status=$? 12680 if test -s conftest.err; then 12681 sed '10a\ 12682... rest of stderr output deleted ... 12683 10q' conftest.err >conftest.er1 12684 cat conftest.er1 >&5 12685 fi 12686 rm -f conftest.er1 conftest.err 12687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12688 test $ac_status = 0; } 12689done 12690 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12692$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12693if ${ac_cv_c_compiler_gnu+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698 12699int 12700main () 12701{ 12702#ifndef __GNUC__ 12703 choke me 12704#endif 12705 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710if ac_fn_c_try_compile "$LINENO"; then : 12711 ac_compiler_gnu=yes 12712else 12713 ac_compiler_gnu=no 12714fi 12715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12716ac_cv_c_compiler_gnu=$ac_compiler_gnu 12717 12718fi 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12720$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12721if test $ac_compiler_gnu = yes; then 12722 GCC=yes 12723else 12724 GCC= 12725fi 12726ac_test_CFLAGS=${CFLAGS+set} 12727ac_save_CFLAGS=$CFLAGS 12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12729$as_echo_n "checking whether $CC accepts -g... " >&6; } 12730if ${ac_cv_prog_cc_g+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 ac_save_c_werror_flag=$ac_c_werror_flag 12734 ac_c_werror_flag=yes 12735 ac_cv_prog_cc_g=no 12736 CFLAGS="-g" 12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12738/* end confdefs.h. */ 12739 12740int 12741main () 12742{ 12743 12744 ; 12745 return 0; 12746} 12747_ACEOF 12748if ac_fn_c_try_compile "$LINENO"; then : 12749 ac_cv_prog_cc_g=yes 12750else 12751 CFLAGS="" 12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12753/* end confdefs.h. */ 12754 12755int 12756main () 12757{ 12758 12759 ; 12760 return 0; 12761} 12762_ACEOF 12763if ac_fn_c_try_compile "$LINENO"; then : 12764 12765else 12766 ac_c_werror_flag=$ac_save_c_werror_flag 12767 CFLAGS="-g" 12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770 12771int 12772main () 12773{ 12774 12775 ; 12776 return 0; 12777} 12778_ACEOF 12779if ac_fn_c_try_compile "$LINENO"; then : 12780 ac_cv_prog_cc_g=yes 12781fi 12782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12783fi 12784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12785fi 12786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12787 ac_c_werror_flag=$ac_save_c_werror_flag 12788fi 12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12790$as_echo "$ac_cv_prog_cc_g" >&6; } 12791if test "$ac_test_CFLAGS" = set; then 12792 CFLAGS=$ac_save_CFLAGS 12793elif test $ac_cv_prog_cc_g = yes; then 12794 if test "$GCC" = yes; then 12795 CFLAGS="-g -O2" 12796 else 12797 CFLAGS="-g" 12798 fi 12799else 12800 if test "$GCC" = yes; then 12801 CFLAGS="-O2" 12802 else 12803 CFLAGS= 12804 fi 12805fi 12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12807$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12808if ${ac_cv_prog_cc_c89+:} false; then : 12809 $as_echo_n "(cached) " >&6 12810else 12811 ac_cv_prog_cc_c89=no 12812ac_save_CC=$CC 12813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12814/* end confdefs.h. */ 12815#include <stdarg.h> 12816#include <stdio.h> 12817struct stat; 12818/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12819struct buf { int x; }; 12820FILE * (*rcsopen) (struct buf *, struct stat *, int); 12821static char *e (p, i) 12822 char **p; 12823 int i; 12824{ 12825 return p[i]; 12826} 12827static char *f (char * (*g) (char **, int), char **p, ...) 12828{ 12829 char *s; 12830 va_list v; 12831 va_start (v,p); 12832 s = g (p, va_arg (v,int)); 12833 va_end (v); 12834 return s; 12835} 12836 12837/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12838 function prototypes and stuff, but not '\xHH' hex character constants. 12839 These don't provoke an error unfortunately, instead are silently treated 12840 as 'x'. The following induces an error, until -std is added to get 12841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12842 array size at least. It's necessary to write '\x00'==0 to get something 12843 that's true only with -std. */ 12844int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12845 12846/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12847 inside strings and character constants. */ 12848#define FOO(x) 'x' 12849int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12850 12851int test (int i, double x); 12852struct s1 {int (*f) (int a);}; 12853struct s2 {int (*f) (double a);}; 12854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12855int argc; 12856char **argv; 12857int 12858main () 12859{ 12860return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12861 ; 12862 return 0; 12863} 12864_ACEOF 12865for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12867do 12868 CC="$ac_save_CC $ac_arg" 12869 if ac_fn_c_try_compile "$LINENO"; then : 12870 ac_cv_prog_cc_c89=$ac_arg 12871fi 12872rm -f core conftest.err conftest.$ac_objext 12873 test "x$ac_cv_prog_cc_c89" != "xno" && break 12874done 12875rm -f conftest.$ac_ext 12876CC=$ac_save_CC 12877 12878fi 12879# AC_CACHE_VAL 12880case "x$ac_cv_prog_cc_c89" in 12881 x) 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12883$as_echo "none needed" >&6; } ;; 12884 xno) 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12886$as_echo "unsupported" >&6; } ;; 12887 *) 12888 CC="$CC $ac_cv_prog_cc_c89" 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12890$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12891esac 12892if test "x$ac_cv_prog_cc_c89" != xno; then : 12893 12894fi 12895 12896ac_ext=c 12897ac_cpp='$CPP $CPPFLAGS' 12898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12900ac_compiler_gnu=$ac_cv_c_compiler_gnu 12901 12902depcc="$CC" am_compiler_list= 12903 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12905$as_echo_n "checking dependency style of $depcc... " >&6; } 12906if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12907 $as_echo_n "(cached) " >&6 12908else 12909 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12910 # We make a subdir and do the tests there. Otherwise we can end up 12911 # making bogus files that we don't know about and never remove. For 12912 # instance it was reported that on HP-UX the gcc test will end up 12913 # making a dummy file named `D' -- because `-MD' means `put the output 12914 # in D'. 12915 mkdir conftest.dir 12916 # Copy depcomp to subdir because otherwise we won't find it if we're 12917 # using a relative directory. 12918 cp "$am_depcomp" conftest.dir 12919 cd conftest.dir 12920 # We will build objects and dependencies in a subdirectory because 12921 # it helps to detect inapplicable dependency modes. For instance 12922 # both Tru64's cc and ICC support -MD to output dependencies as a 12923 # side effect of compilation, but ICC will put the dependencies in 12924 # the current directory while Tru64 will put them in the object 12925 # directory. 12926 mkdir sub 12927 12928 am_cv_CC_dependencies_compiler_type=none 12929 if test "$am_compiler_list" = ""; then 12930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12931 fi 12932 am__universal=false 12933 case " $depcc " in #( 12934 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12935 esac 12936 12937 for depmode in $am_compiler_list; do 12938 # Setup a source with many dependencies, because some compilers 12939 # like to wrap large dependency lists on column 80 (with \), and 12940 # we should not choose a depcomp mode which is confused by this. 12941 # 12942 # We need to recreate these files for each test, as the compiler may 12943 # overwrite some of them when testing with obscure command lines. 12944 # This happens at least with the AIX C compiler. 12945 : > sub/conftest.c 12946 for i in 1 2 3 4 5 6; do 12947 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12948 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12949 # Solaris 8's {/usr,}/bin/sh. 12950 touch sub/conftst$i.h 12951 done 12952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12953 12954 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12955 # mode. It turns out that the SunPro C++ compiler does not properly 12956 # handle `-M -o', and we need to detect this. Also, some Intel 12957 # versions had trouble with output in subdirs 12958 am__obj=sub/conftest.${OBJEXT-o} 12959 am__minus_obj="-o $am__obj" 12960 case $depmode in 12961 gcc) 12962 # This depmode causes a compiler race in universal mode. 12963 test "$am__universal" = false || continue 12964 ;; 12965 nosideeffect) 12966 # after this tag, mechanisms are not by side-effect, so they'll 12967 # only be used when explicitly requested 12968 if test "x$enable_dependency_tracking" = xyes; then 12969 continue 12970 else 12971 break 12972 fi 12973 ;; 12974 msvisualcpp | msvcmsys) 12975 # This compiler won't grok `-c -o', but also, the minuso test has 12976 # not run yet. These depmodes are late enough in the game, and 12977 # so weak that their functioning should not be impacted. 12978 am__obj=conftest.${OBJEXT-o} 12979 am__minus_obj= 12980 ;; 12981 none) break ;; 12982 esac 12983 if depmode=$depmode \ 12984 source=sub/conftest.c object=$am__obj \ 12985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12987 >/dev/null 2>conftest.err && 12988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12992 # icc doesn't choke on unknown options, it will just issue warnings 12993 # or remarks (even with -Werror). So we grep stderr for any message 12994 # that says an option was ignored or not supported. 12995 # When given -MP, icc 7.0 and 7.1 complain thusly: 12996 # icc: Command line warning: ignoring option '-M'; no argument required 12997 # The diagnosis changed in icc 8.0: 12998 # icc: Command line remark: option '-MP' not supported 12999 if (grep 'ignoring option' conftest.err || 13000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13001 am_cv_CC_dependencies_compiler_type=$depmode 13002 break 13003 fi 13004 fi 13005 done 13006 13007 cd .. 13008 rm -rf conftest.dir 13009else 13010 am_cv_CC_dependencies_compiler_type=none 13011fi 13012 13013fi 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13015$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13016CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13017 13018 if 13019 test "x$enable_dependency_tracking" != xno \ 13020 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13021 am__fastdepCC_TRUE= 13022 am__fastdepCC_FALSE='#' 13023else 13024 am__fastdepCC_TRUE='#' 13025 am__fastdepCC_FALSE= 13026fi 13027 13028 13029ac_ext=cpp 13030ac_cpp='$CXXCPP $CPPFLAGS' 13031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13034if test -z "$CXX"; then 13035 if test -n "$CCC"; then 13036 CXX=$CCC 13037 else 13038 if test -n "$ac_tool_prefix"; then 13039 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13040 do 13041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13042set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13044$as_echo_n "checking for $ac_word... " >&6; } 13045if ${ac_cv_prog_CXX+:} false; then : 13046 $as_echo_n "(cached) " >&6 13047else 13048 if test -n "$CXX"; then 13049 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13050else 13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13052for as_dir in $PATH 13053do 13054 IFS=$as_save_IFS 13055 test -z "$as_dir" && as_dir=. 13056 for ac_exec_ext in '' $ac_executable_extensions; do 13057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13058 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13060 break 2 13061 fi 13062done 13063 done 13064IFS=$as_save_IFS 13065 13066fi 13067fi 13068CXX=$ac_cv_prog_CXX 13069if test -n "$CXX"; then 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13071$as_echo "$CXX" >&6; } 13072else 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13074$as_echo "no" >&6; } 13075fi 13076 13077 13078 test -n "$CXX" && break 13079 done 13080fi 13081if test -z "$CXX"; then 13082 ac_ct_CXX=$CXX 13083 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13084do 13085 # Extract the first word of "$ac_prog", so it can be a program name with args. 13086set dummy $ac_prog; ac_word=$2 13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13088$as_echo_n "checking for $ac_word... " >&6; } 13089if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 if test -n "$ac_ct_CXX"; then 13093 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13094else 13095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13096for as_dir in $PATH 13097do 13098 IFS=$as_save_IFS 13099 test -z "$as_dir" && as_dir=. 13100 for ac_exec_ext in '' $ac_executable_extensions; do 13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13102 ac_cv_prog_ac_ct_CXX="$ac_prog" 13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13104 break 2 13105 fi 13106done 13107 done 13108IFS=$as_save_IFS 13109 13110fi 13111fi 13112ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13113if test -n "$ac_ct_CXX"; then 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13115$as_echo "$ac_ct_CXX" >&6; } 13116else 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13118$as_echo "no" >&6; } 13119fi 13120 13121 13122 test -n "$ac_ct_CXX" && break 13123done 13124 13125 if test "x$ac_ct_CXX" = x; then 13126 CXX="g++" 13127 else 13128 case $cross_compiling:$ac_tool_warned in 13129yes:) 13130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13132ac_tool_warned=yes ;; 13133esac 13134 CXX=$ac_ct_CXX 13135 fi 13136fi 13137 13138 fi 13139fi 13140# Provide some information about the compiler. 13141$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13142set X $ac_compile 13143ac_compiler=$2 13144for ac_option in --version -v -V -qversion; do 13145 { { ac_try="$ac_compiler $ac_option >&5" 13146case "(($ac_try" in 13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13148 *) ac_try_echo=$ac_try;; 13149esac 13150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13151$as_echo "$ac_try_echo"; } >&5 13152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13153 ac_status=$? 13154 if test -s conftest.err; then 13155 sed '10a\ 13156... rest of stderr output deleted ... 13157 10q' conftest.err >conftest.er1 13158 cat conftest.er1 >&5 13159 fi 13160 rm -f conftest.er1 conftest.err 13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13162 test $ac_status = 0; } 13163done 13164 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13166$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13167if ${ac_cv_cxx_compiler_gnu+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172 13173int 13174main () 13175{ 13176#ifndef __GNUC__ 13177 choke me 13178#endif 13179 13180 ; 13181 return 0; 13182} 13183_ACEOF 13184if ac_fn_cxx_try_compile "$LINENO"; then : 13185 ac_compiler_gnu=yes 13186else 13187 ac_compiler_gnu=no 13188fi 13189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13190ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13191 13192fi 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13194$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13195if test $ac_compiler_gnu = yes; then 13196 GXX=yes 13197else 13198 GXX= 13199fi 13200ac_test_CXXFLAGS=${CXXFLAGS+set} 13201ac_save_CXXFLAGS=$CXXFLAGS 13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13203$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13204if ${ac_cv_prog_cxx_g+:} false; then : 13205 $as_echo_n "(cached) " >&6 13206else 13207 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13208 ac_cxx_werror_flag=yes 13209 ac_cv_prog_cxx_g=no 13210 CXXFLAGS="-g" 13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213 13214int 13215main () 13216{ 13217 13218 ; 13219 return 0; 13220} 13221_ACEOF 13222if ac_fn_cxx_try_compile "$LINENO"; then : 13223 ac_cv_prog_cxx_g=yes 13224else 13225 CXXFLAGS="" 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228 13229int 13230main () 13231{ 13232 13233 ; 13234 return 0; 13235} 13236_ACEOF 13237if ac_fn_cxx_try_compile "$LINENO"; then : 13238 13239else 13240 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13241 CXXFLAGS="-g" 13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13243/* end confdefs.h. */ 13244 13245int 13246main () 13247{ 13248 13249 ; 13250 return 0; 13251} 13252_ACEOF 13253if ac_fn_cxx_try_compile "$LINENO"; then : 13254 ac_cv_prog_cxx_g=yes 13255fi 13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13257fi 13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13259fi 13260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13262fi 13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13264$as_echo "$ac_cv_prog_cxx_g" >&6; } 13265if test "$ac_test_CXXFLAGS" = set; then 13266 CXXFLAGS=$ac_save_CXXFLAGS 13267elif test $ac_cv_prog_cxx_g = yes; then 13268 if test "$GXX" = yes; then 13269 CXXFLAGS="-g -O2" 13270 else 13271 CXXFLAGS="-g" 13272 fi 13273else 13274 if test "$GXX" = yes; then 13275 CXXFLAGS="-O2" 13276 else 13277 CXXFLAGS= 13278 fi 13279fi 13280ac_ext=c 13281ac_cpp='$CPP $CPPFLAGS' 13282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13284ac_compiler_gnu=$ac_cv_c_compiler_gnu 13285 13286depcc="$CXX" am_compiler_list= 13287 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13289$as_echo_n "checking dependency style of $depcc... " >&6; } 13290if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13291 $as_echo_n "(cached) " >&6 13292else 13293 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13294 # We make a subdir and do the tests there. Otherwise we can end up 13295 # making bogus files that we don't know about and never remove. For 13296 # instance it was reported that on HP-UX the gcc test will end up 13297 # making a dummy file named `D' -- because `-MD' means `put the output 13298 # in D'. 13299 mkdir conftest.dir 13300 # Copy depcomp to subdir because otherwise we won't find it if we're 13301 # using a relative directory. 13302 cp "$am_depcomp" conftest.dir 13303 cd conftest.dir 13304 # We will build objects and dependencies in a subdirectory because 13305 # it helps to detect inapplicable dependency modes. For instance 13306 # both Tru64's cc and ICC support -MD to output dependencies as a 13307 # side effect of compilation, but ICC will put the dependencies in 13308 # the current directory while Tru64 will put them in the object 13309 # directory. 13310 mkdir sub 13311 13312 am_cv_CXX_dependencies_compiler_type=none 13313 if test "$am_compiler_list" = ""; then 13314 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13315 fi 13316 am__universal=false 13317 case " $depcc " in #( 13318 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13319 esac 13320 13321 for depmode in $am_compiler_list; do 13322 # Setup a source with many dependencies, because some compilers 13323 # like to wrap large dependency lists on column 80 (with \), and 13324 # we should not choose a depcomp mode which is confused by this. 13325 # 13326 # We need to recreate these files for each test, as the compiler may 13327 # overwrite some of them when testing with obscure command lines. 13328 # This happens at least with the AIX C compiler. 13329 : > sub/conftest.c 13330 for i in 1 2 3 4 5 6; do 13331 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 13333 # Solaris 8's {/usr,}/bin/sh. 13334 touch sub/conftst$i.h 13335 done 13336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13337 13338 # We check with `-c' and `-o' for the sake of the "dashmstdout" 13339 # mode. It turns out that the SunPro C++ compiler does not properly 13340 # handle `-M -o', and we need to detect this. Also, some Intel 13341 # versions had trouble with output in subdirs 13342 am__obj=sub/conftest.${OBJEXT-o} 13343 am__minus_obj="-o $am__obj" 13344 case $depmode in 13345 gcc) 13346 # This depmode causes a compiler race in universal mode. 13347 test "$am__universal" = false || continue 13348 ;; 13349 nosideeffect) 13350 # after this tag, mechanisms are not by side-effect, so they'll 13351 # only be used when explicitly requested 13352 if test "x$enable_dependency_tracking" = xyes; then 13353 continue 13354 else 13355 break 13356 fi 13357 ;; 13358 msvisualcpp | msvcmsys) 13359 # This compiler won't grok `-c -o', but also, the minuso test has 13360 # not run yet. These depmodes are late enough in the game, and 13361 # so weak that their functioning should not be impacted. 13362 am__obj=conftest.${OBJEXT-o} 13363 am__minus_obj= 13364 ;; 13365 none) break ;; 13366 esac 13367 if depmode=$depmode \ 13368 source=sub/conftest.c object=$am__obj \ 13369 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13370 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13371 >/dev/null 2>conftest.err && 13372 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13374 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13376 # icc doesn't choke on unknown options, it will just issue warnings 13377 # or remarks (even with -Werror). So we grep stderr for any message 13378 # that says an option was ignored or not supported. 13379 # When given -MP, icc 7.0 and 7.1 complain thusly: 13380 # icc: Command line warning: ignoring option '-M'; no argument required 13381 # The diagnosis changed in icc 8.0: 13382 # icc: Command line remark: option '-MP' not supported 13383 if (grep 'ignoring option' conftest.err || 13384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13385 am_cv_CXX_dependencies_compiler_type=$depmode 13386 break 13387 fi 13388 fi 13389 done 13390 13391 cd .. 13392 rm -rf conftest.dir 13393else 13394 am_cv_CXX_dependencies_compiler_type=none 13395fi 13396 13397fi 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13399$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13400CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13401 13402 if 13403 test "x$enable_dependency_tracking" != xno \ 13404 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13405 am__fastdepCXX_TRUE= 13406 am__fastdepCXX_FALSE='#' 13407else 13408 am__fastdepCXX_TRUE='#' 13409 am__fastdepCXX_FALSE= 13410fi 13411 13412 13413 13414 13415func_stripname_cnf () 13416{ 13417 case ${2} in 13418 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13419 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13420 esac 13421} # func_stripname_cnf 13422 13423 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13424 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13425 (test "X$CXX" != "Xg++"))) ; then 13426 ac_ext=cpp 13427ac_cpp='$CXXCPP $CPPFLAGS' 13428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13432$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13433if test -z "$CXXCPP"; then 13434 if ${ac_cv_prog_CXXCPP+:} false; then : 13435 $as_echo_n "(cached) " >&6 13436else 13437 # Double quotes because CXXCPP needs to be expanded 13438 for CXXCPP in "$CXX -E" "/lib/cpp" 13439 do 13440 ac_preproc_ok=false 13441for ac_cxx_preproc_warn_flag in '' yes 13442do 13443 # Use a header file that comes with gcc, so configuring glibc 13444 # with a fresh cross-compiler works. 13445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13446 # <limits.h> exists even on freestanding compilers. 13447 # On the NeXT, cc -E runs the code through the compiler's parser, 13448 # not just through cpp. "Syntax error" is here to catch this case. 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450/* end confdefs.h. */ 13451#ifdef __STDC__ 13452# include <limits.h> 13453#else 13454# include <assert.h> 13455#endif 13456 Syntax error 13457_ACEOF 13458if ac_fn_cxx_try_cpp "$LINENO"; then : 13459 13460else 13461 # Broken: fails on valid input. 13462continue 13463fi 13464rm -f conftest.err conftest.i conftest.$ac_ext 13465 13466 # OK, works on sane cases. Now check whether nonexistent headers 13467 # can be detected and how. 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13469/* end confdefs.h. */ 13470#include <ac_nonexistent.h> 13471_ACEOF 13472if ac_fn_cxx_try_cpp "$LINENO"; then : 13473 # Broken: success on invalid input. 13474continue 13475else 13476 # Passes both tests. 13477ac_preproc_ok=: 13478break 13479fi 13480rm -f conftest.err conftest.i conftest.$ac_ext 13481 13482done 13483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13484rm -f conftest.i conftest.err conftest.$ac_ext 13485if $ac_preproc_ok; then : 13486 break 13487fi 13488 13489 done 13490 ac_cv_prog_CXXCPP=$CXXCPP 13491 13492fi 13493 CXXCPP=$ac_cv_prog_CXXCPP 13494else 13495 ac_cv_prog_CXXCPP=$CXXCPP 13496fi 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13498$as_echo "$CXXCPP" >&6; } 13499ac_preproc_ok=false 13500for ac_cxx_preproc_warn_flag in '' yes 13501do 13502 # Use a header file that comes with gcc, so configuring glibc 13503 # with a fresh cross-compiler works. 13504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13505 # <limits.h> exists even on freestanding compilers. 13506 # On the NeXT, cc -E runs the code through the compiler's parser, 13507 # not just through cpp. "Syntax error" is here to catch this case. 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510#ifdef __STDC__ 13511# include <limits.h> 13512#else 13513# include <assert.h> 13514#endif 13515 Syntax error 13516_ACEOF 13517if ac_fn_cxx_try_cpp "$LINENO"; then : 13518 13519else 13520 # Broken: fails on valid input. 13521continue 13522fi 13523rm -f conftest.err conftest.i conftest.$ac_ext 13524 13525 # OK, works on sane cases. Now check whether nonexistent headers 13526 # can be detected and how. 13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13528/* end confdefs.h. */ 13529#include <ac_nonexistent.h> 13530_ACEOF 13531if ac_fn_cxx_try_cpp "$LINENO"; then : 13532 # Broken: success on invalid input. 13533continue 13534else 13535 # Passes both tests. 13536ac_preproc_ok=: 13537break 13538fi 13539rm -f conftest.err conftest.i conftest.$ac_ext 13540 13541done 13542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13543rm -f conftest.i conftest.err conftest.$ac_ext 13544if $ac_preproc_ok; then : 13545 13546else 13547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13549as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13550See \`config.log' for more details" "$LINENO" 5; } 13551fi 13552 13553ac_ext=c 13554ac_cpp='$CPP $CPPFLAGS' 13555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13557ac_compiler_gnu=$ac_cv_c_compiler_gnu 13558 13559else 13560 _lt_caught_CXX_error=yes 13561fi 13562 13563ac_ext=cpp 13564ac_cpp='$CXXCPP $CPPFLAGS' 13565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13568 13569archive_cmds_need_lc_CXX=no 13570allow_undefined_flag_CXX= 13571always_export_symbols_CXX=no 13572archive_expsym_cmds_CXX= 13573compiler_needs_object_CXX=no 13574export_dynamic_flag_spec_CXX= 13575hardcode_direct_CXX=no 13576hardcode_direct_absolute_CXX=no 13577hardcode_libdir_flag_spec_CXX= 13578hardcode_libdir_flag_spec_ld_CXX= 13579hardcode_libdir_separator_CXX= 13580hardcode_minus_L_CXX=no 13581hardcode_shlibpath_var_CXX=unsupported 13582hardcode_automatic_CXX=no 13583inherit_rpath_CXX=no 13584module_cmds_CXX= 13585module_expsym_cmds_CXX= 13586link_all_deplibs_CXX=unknown 13587old_archive_cmds_CXX=$old_archive_cmds 13588reload_flag_CXX=$reload_flag 13589reload_cmds_CXX=$reload_cmds 13590no_undefined_flag_CXX= 13591whole_archive_flag_spec_CXX= 13592enable_shared_with_static_runtimes_CXX=no 13593 13594# Source file extension for C++ test sources. 13595ac_ext=cpp 13596 13597# Object file extension for compiled C++ test sources. 13598objext=o 13599objext_CXX=$objext 13600 13601# No sense in running all these tests if we already determined that 13602# the CXX compiler isn't working. Some variables (like enable_shared) 13603# are currently assumed to apply to all compilers on this platform, 13604# and will be corrupted by setting them based on a non-working compiler. 13605if test "$_lt_caught_CXX_error" != yes; then 13606 # Code to be used in simple compile tests 13607 lt_simple_compile_test_code="int some_variable = 0;" 13608 13609 # Code to be used in simple link tests 13610 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13611 13612 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13613 13614 13615 13616 13617 13618 13619# If no C compiler was specified, use CC. 13620LTCC=${LTCC-"$CC"} 13621 13622# If no C compiler flags were specified, use CFLAGS. 13623LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13624 13625# Allow CC to be a program name with arguments. 13626compiler=$CC 13627 13628 13629 # save warnings/boilerplate of simple test code 13630 ac_outfile=conftest.$ac_objext 13631echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13633_lt_compiler_boilerplate=`cat conftest.err` 13634$RM conftest* 13635 13636 ac_outfile=conftest.$ac_objext 13637echo "$lt_simple_link_test_code" >conftest.$ac_ext 13638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13639_lt_linker_boilerplate=`cat conftest.err` 13640$RM -r conftest* 13641 13642 13643 # Allow CC to be a program name with arguments. 13644 lt_save_CC=$CC 13645 lt_save_CFLAGS=$CFLAGS 13646 lt_save_LD=$LD 13647 lt_save_GCC=$GCC 13648 GCC=$GXX 13649 lt_save_with_gnu_ld=$with_gnu_ld 13650 lt_save_path_LD=$lt_cv_path_LD 13651 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13652 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13653 else 13654 $as_unset lt_cv_prog_gnu_ld 13655 fi 13656 if test -n "${lt_cv_path_LDCXX+set}"; then 13657 lt_cv_path_LD=$lt_cv_path_LDCXX 13658 else 13659 $as_unset lt_cv_path_LD 13660 fi 13661 test -z "${LDCXX+set}" || LD=$LDCXX 13662 CC=${CXX-"c++"} 13663 CFLAGS=$CXXFLAGS 13664 compiler=$CC 13665 compiler_CXX=$CC 13666 for cc_temp in $compiler""; do 13667 case $cc_temp in 13668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13670 \-*) ;; 13671 *) break;; 13672 esac 13673done 13674cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13675 13676 13677 if test -n "$compiler"; then 13678 # We don't want -fno-exception when compiling C++ code, so set the 13679 # no_builtin_flag separately 13680 if test "$GXX" = yes; then 13681 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13682 else 13683 lt_prog_compiler_no_builtin_flag_CXX= 13684 fi 13685 13686 if test "$GXX" = yes; then 13687 # Set up default GNU C++ configuration 13688 13689 13690 13691# Check whether --with-gnu-ld was given. 13692if test "${with_gnu_ld+set}" = set; then : 13693 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13694else 13695 with_gnu_ld=no 13696fi 13697 13698ac_prog=ld 13699if test "$GCC" = yes; then 13700 # Check if gcc -print-prog-name=ld gives a path. 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13702$as_echo_n "checking for ld used by $CC... " >&6; } 13703 case $host in 13704 *-*-mingw*) 13705 # gcc leaves a trailing carriage return which upsets mingw 13706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13707 *) 13708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13709 esac 13710 case $ac_prog in 13711 # Accept absolute paths. 13712 [\\/]* | ?:[\\/]*) 13713 re_direlt='/[^/][^/]*/\.\./' 13714 # Canonicalize the pathname of ld 13715 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13716 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13717 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13718 done 13719 test -z "$LD" && LD="$ac_prog" 13720 ;; 13721 "") 13722 # If it fails, then pretend we aren't using GCC. 13723 ac_prog=ld 13724 ;; 13725 *) 13726 # If it is relative, then search for the first ld in PATH. 13727 with_gnu_ld=unknown 13728 ;; 13729 esac 13730elif test "$with_gnu_ld" = yes; then 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13732$as_echo_n "checking for GNU ld... " >&6; } 13733else 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13735$as_echo_n "checking for non-GNU ld... " >&6; } 13736fi 13737if ${lt_cv_path_LD+:} false; then : 13738 $as_echo_n "(cached) " >&6 13739else 13740 if test -z "$LD"; then 13741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13742 for ac_dir in $PATH; do 13743 IFS="$lt_save_ifs" 13744 test -z "$ac_dir" && ac_dir=. 13745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13746 lt_cv_path_LD="$ac_dir/$ac_prog" 13747 # Check to see if the program is GNU ld. I'd rather use --version, 13748 # but apparently some variants of GNU ld only accept -v. 13749 # Break only if it was the GNU/non-GNU ld that we prefer. 13750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13751 *GNU* | *'with BFD'*) 13752 test "$with_gnu_ld" != no && break 13753 ;; 13754 *) 13755 test "$with_gnu_ld" != yes && break 13756 ;; 13757 esac 13758 fi 13759 done 13760 IFS="$lt_save_ifs" 13761else 13762 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13763fi 13764fi 13765 13766LD="$lt_cv_path_LD" 13767if test -n "$LD"; then 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13769$as_echo "$LD" >&6; } 13770else 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13772$as_echo "no" >&6; } 13773fi 13774test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13776$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13777if ${lt_cv_prog_gnu_ld+:} false; then : 13778 $as_echo_n "(cached) " >&6 13779else 13780 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13781case `$LD -v 2>&1 </dev/null` in 13782*GNU* | *'with BFD'*) 13783 lt_cv_prog_gnu_ld=yes 13784 ;; 13785*) 13786 lt_cv_prog_gnu_ld=no 13787 ;; 13788esac 13789fi 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13791$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13792with_gnu_ld=$lt_cv_prog_gnu_ld 13793 13794 13795 13796 13797 13798 13799 13800 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13801 # archiving commands below assume that GNU ld is being used. 13802 if test "$with_gnu_ld" = yes; then 13803 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13804 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13805 13806 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13808 13809 # If archive_cmds runs LD, not CC, wlarc should be empty 13810 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13811 # investigate it a little bit more. (MM) 13812 wlarc='${wl}' 13813 13814 # ancient GNU ld didn't support --whole-archive et. al. 13815 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13816 $GREP 'no-whole-archive' > /dev/null; then 13817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13818 else 13819 whole_archive_flag_spec_CXX= 13820 fi 13821 else 13822 with_gnu_ld=no 13823 wlarc= 13824 13825 # A generic and very simple default shared library creation 13826 # command for GNU C++ for the case where it uses the native 13827 # linker, instead of GNU ld. If possible, this setting should 13828 # overridden to take advantage of the native linker features on 13829 # the platform it is being used on. 13830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13831 fi 13832 13833 # Commands to make compiler produce verbose output that lists 13834 # what "hidden" libraries, object files and flags are used when 13835 # linking a shared library. 13836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13837 13838 else 13839 GXX=no 13840 with_gnu_ld=no 13841 wlarc= 13842 fi 13843 13844 # PORTME: fill in a description of your system's C++ link characteristics 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13846$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13847 ld_shlibs_CXX=yes 13848 case $host_os in 13849 aix3*) 13850 # FIXME: insert proper C++ library support 13851 ld_shlibs_CXX=no 13852 ;; 13853 aix[4-9]*) 13854 if test "$host_cpu" = ia64; then 13855 # On IA64, the linker does run time linking by default, so we don't 13856 # have to do anything special. 13857 aix_use_runtimelinking=no 13858 exp_sym_flag='-Bexport' 13859 no_entry_flag="" 13860 else 13861 aix_use_runtimelinking=no 13862 13863 # Test if we are trying to use run time linking or normal 13864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13865 # need to do runtime linking. 13866 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13867 for ld_flag in $LDFLAGS; do 13868 case $ld_flag in 13869 *-brtl*) 13870 aix_use_runtimelinking=yes 13871 break 13872 ;; 13873 esac 13874 done 13875 ;; 13876 esac 13877 13878 exp_sym_flag='-bexport' 13879 no_entry_flag='-bnoentry' 13880 fi 13881 13882 # When large executables or shared objects are built, AIX ld can 13883 # have problems creating the table of contents. If linking a library 13884 # or program results in "error TOC overflow" add -mminimal-toc to 13885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13887 13888 archive_cmds_CXX='' 13889 hardcode_direct_CXX=yes 13890 hardcode_direct_absolute_CXX=yes 13891 hardcode_libdir_separator_CXX=':' 13892 link_all_deplibs_CXX=yes 13893 file_list_spec_CXX='${wl}-f,' 13894 13895 if test "$GXX" = yes; then 13896 case $host_os in aix4.[012]|aix4.[012].*) 13897 # We only want to do this on AIX 4.2 and lower, the check 13898 # below for broken collect2 doesn't work under 4.3+ 13899 collect2name=`${CC} -print-prog-name=collect2` 13900 if test -f "$collect2name" && 13901 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13902 then 13903 # We have reworked collect2 13904 : 13905 else 13906 # We have old collect2 13907 hardcode_direct_CXX=unsupported 13908 # It fails to find uninstalled libraries when the uninstalled 13909 # path is not listed in the libpath. Setting hardcode_minus_L 13910 # to unsupported forces relinking 13911 hardcode_minus_L_CXX=yes 13912 hardcode_libdir_flag_spec_CXX='-L$libdir' 13913 hardcode_libdir_separator_CXX= 13914 fi 13915 esac 13916 shared_flag='-shared' 13917 if test "$aix_use_runtimelinking" = yes; then 13918 shared_flag="$shared_flag "'${wl}-G' 13919 fi 13920 else 13921 # not using gcc 13922 if test "$host_cpu" = ia64; then 13923 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13924 # chokes on -Wl,-G. The following line is correct: 13925 shared_flag='-G' 13926 else 13927 if test "$aix_use_runtimelinking" = yes; then 13928 shared_flag='${wl}-G' 13929 else 13930 shared_flag='${wl}-bM:SRE' 13931 fi 13932 fi 13933 fi 13934 13935 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13936 # It seems that -bexpall does not export symbols beginning with 13937 # underscore (_), so it is better to generate a list of symbols to 13938 # export. 13939 always_export_symbols_CXX=yes 13940 if test "$aix_use_runtimelinking" = yes; then 13941 # Warning - without using the other runtime loading flags (-brtl), 13942 # -berok will link without error, but may produce a broken library. 13943 allow_undefined_flag_CXX='-berok' 13944 # Determine the default libpath from the value encoded in an empty 13945 # executable. 13946 if test "${lt_cv_aix_libpath+set}" = set; then 13947 aix_libpath=$lt_cv_aix_libpath 13948else 13949 if ${lt_cv_aix_libpath__CXX+:} false; then : 13950 $as_echo_n "(cached) " >&6 13951else 13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13953/* end confdefs.h. */ 13954 13955int 13956main () 13957{ 13958 13959 ; 13960 return 0; 13961} 13962_ACEOF 13963if ac_fn_cxx_try_link "$LINENO"; then : 13964 13965 lt_aix_libpath_sed=' 13966 /Import File Strings/,/^$/ { 13967 /^0/ { 13968 s/^0 *\([^ ]*\) *$/\1/ 13969 p 13970 } 13971 }' 13972 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13973 # Check for a 64-bit object if we didn't find anything. 13974 if test -z "$lt_cv_aix_libpath__CXX"; then 13975 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13976 fi 13977fi 13978rm -f core conftest.err conftest.$ac_objext \ 13979 conftest$ac_exeext conftest.$ac_ext 13980 if test -z "$lt_cv_aix_libpath__CXX"; then 13981 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13982 fi 13983 13984fi 13985 13986 aix_libpath=$lt_cv_aix_libpath__CXX 13987fi 13988 13989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13990 13991 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13992 else 13993 if test "$host_cpu" = ia64; then 13994 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13995 allow_undefined_flag_CXX="-z nodefs" 13996 archive_expsym_cmds_CXX="\$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" 13997 else 13998 # Determine the default libpath from the value encoded in an 13999 # empty executable. 14000 if test "${lt_cv_aix_libpath+set}" = set; then 14001 aix_libpath=$lt_cv_aix_libpath 14002else 14003 if ${lt_cv_aix_libpath__CXX+:} false; then : 14004 $as_echo_n "(cached) " >&6 14005else 14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14007/* end confdefs.h. */ 14008 14009int 14010main () 14011{ 14012 14013 ; 14014 return 0; 14015} 14016_ACEOF 14017if ac_fn_cxx_try_link "$LINENO"; then : 14018 14019 lt_aix_libpath_sed=' 14020 /Import File Strings/,/^$/ { 14021 /^0/ { 14022 s/^0 *\([^ ]*\) *$/\1/ 14023 p 14024 } 14025 }' 14026 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14027 # Check for a 64-bit object if we didn't find anything. 14028 if test -z "$lt_cv_aix_libpath__CXX"; then 14029 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14030 fi 14031fi 14032rm -f core conftest.err conftest.$ac_objext \ 14033 conftest$ac_exeext conftest.$ac_ext 14034 if test -z "$lt_cv_aix_libpath__CXX"; then 14035 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14036 fi 14037 14038fi 14039 14040 aix_libpath=$lt_cv_aix_libpath__CXX 14041fi 14042 14043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14044 # Warning - without using the other run time loading flags, 14045 # -berok will link without error, but may produce a broken library. 14046 no_undefined_flag_CXX=' ${wl}-bernotok' 14047 allow_undefined_flag_CXX=' ${wl}-berok' 14048 if test "$with_gnu_ld" = yes; then 14049 # We only use this code for GNU lds that support --whole-archive. 14050 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14051 else 14052 # Exported symbols can be pulled into shared objects from archives 14053 whole_archive_flag_spec_CXX='$convenience' 14054 fi 14055 archive_cmds_need_lc_CXX=yes 14056 # This is similar to how AIX traditionally builds its shared 14057 # libraries. 14058 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14059 fi 14060 fi 14061 ;; 14062 14063 beos*) 14064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14065 allow_undefined_flag_CXX=unsupported 14066 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14067 # support --undefined. This deserves some investigation. FIXME 14068 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14069 else 14070 ld_shlibs_CXX=no 14071 fi 14072 ;; 14073 14074 chorus*) 14075 case $cc_basename in 14076 *) 14077 # FIXME: insert proper C++ library support 14078 ld_shlibs_CXX=no 14079 ;; 14080 esac 14081 ;; 14082 14083 cygwin* | mingw* | pw32* | cegcc*) 14084 case $GXX,$cc_basename in 14085 ,cl* | no,cl*) 14086 # Native MSVC 14087 # hardcode_libdir_flag_spec is actually meaningless, as there is 14088 # no search path for DLLs. 14089 hardcode_libdir_flag_spec_CXX=' ' 14090 allow_undefined_flag_CXX=unsupported 14091 always_export_symbols_CXX=yes 14092 file_list_spec_CXX='@' 14093 # Tell ltmain to make .lib files, not .a files. 14094 libext=lib 14095 # Tell ltmain to make .dll files, not .so files. 14096 shrext_cmds=".dll" 14097 # FIXME: Setting linknames here is a bad hack. 14098 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14099 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14100 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14101 else 14102 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14103 fi~ 14104 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14105 linknames=' 14106 # The linker will not automatically build a static lib if we build a DLL. 14107 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14108 enable_shared_with_static_runtimes_CXX=yes 14109 # Don't use ranlib 14110 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14111 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14112 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14113 case $lt_outputfile in 14114 *.exe|*.EXE) ;; 14115 *) 14116 lt_outputfile="$lt_outputfile.exe" 14117 lt_tool_outputfile="$lt_tool_outputfile.exe" 14118 ;; 14119 esac~ 14120 func_to_tool_file "$lt_outputfile"~ 14121 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14122 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14123 $RM "$lt_outputfile.manifest"; 14124 fi' 14125 ;; 14126 *) 14127 # g++ 14128 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14129 # as there is no search path for DLLs. 14130 hardcode_libdir_flag_spec_CXX='-L$libdir' 14131 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14132 allow_undefined_flag_CXX=unsupported 14133 always_export_symbols_CXX=no 14134 enable_shared_with_static_runtimes_CXX=yes 14135 14136 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14138 # If the export-symbols file already is a .def file (1st line 14139 # is EXPORTS), use it as is; otherwise, prepend... 14140 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14141 cp $export_symbols $output_objdir/$soname.def; 14142 else 14143 echo EXPORTS > $output_objdir/$soname.def; 14144 cat $export_symbols >> $output_objdir/$soname.def; 14145 fi~ 14146 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14147 else 14148 ld_shlibs_CXX=no 14149 fi 14150 ;; 14151 esac 14152 ;; 14153 darwin* | rhapsody*) 14154 14155 14156 archive_cmds_need_lc_CXX=no 14157 hardcode_direct_CXX=no 14158 hardcode_automatic_CXX=yes 14159 hardcode_shlibpath_var_CXX=unsupported 14160 if test "$lt_cv_ld_force_load" = "yes"; then 14161 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14162 else 14163 whole_archive_flag_spec_CXX='' 14164 fi 14165 link_all_deplibs_CXX=yes 14166 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14167 case $cc_basename in 14168 ifort*) _lt_dar_can_shared=yes ;; 14169 *) _lt_dar_can_shared=$GCC ;; 14170 esac 14171 if test "$_lt_dar_can_shared" = "yes"; then 14172 output_verbose_link_cmd=func_echo_all 14173 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14174 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14175 archive_expsym_cmds_CXX="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}" 14176 module_expsym_cmds_CXX="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}" 14177 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14178 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 14179 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 14180 fi 14181 14182 else 14183 ld_shlibs_CXX=no 14184 fi 14185 14186 ;; 14187 14188 dgux*) 14189 case $cc_basename in 14190 ec++*) 14191 # FIXME: insert proper C++ library support 14192 ld_shlibs_CXX=no 14193 ;; 14194 ghcx*) 14195 # Green Hills C++ Compiler 14196 # FIXME: insert proper C++ library support 14197 ld_shlibs_CXX=no 14198 ;; 14199 *) 14200 # FIXME: insert proper C++ library support 14201 ld_shlibs_CXX=no 14202 ;; 14203 esac 14204 ;; 14205 14206 freebsd[12]*) 14207 # C++ shared libraries reported to be fairly broken before 14208 # switch to ELF 14209 ld_shlibs_CXX=no 14210 ;; 14211 14212 freebsd-elf*) 14213 archive_cmds_need_lc_CXX=no 14214 ;; 14215 14216 freebsd* | dragonfly*) 14217 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14218 # conventions 14219 ld_shlibs_CXX=yes 14220 ;; 14221 14222 gnu*) 14223 ;; 14224 14225 haiku*) 14226 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14227 link_all_deplibs_CXX=yes 14228 ;; 14229 14230 hpux9*) 14231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14232 hardcode_libdir_separator_CXX=: 14233 export_dynamic_flag_spec_CXX='${wl}-E' 14234 hardcode_direct_CXX=yes 14235 hardcode_minus_L_CXX=yes # Not in the search PATH, 14236 # but as the default 14237 # location of the library. 14238 14239 case $cc_basename in 14240 CC*) 14241 # FIXME: insert proper C++ library support 14242 ld_shlibs_CXX=no 14243 ;; 14244 aCC*) 14245 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14246 # Commands to make compiler produce verbose output that lists 14247 # what "hidden" libraries, object files and flags are used when 14248 # linking a shared library. 14249 # 14250 # There doesn't appear to be a way to prevent this compiler from 14251 # explicitly linking system object files so we need to strip them 14252 # from the output so that they don't get included in the library 14253 # dependencies. 14254 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14255 ;; 14256 *) 14257 if test "$GXX" = yes; then 14258 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14259 else 14260 # FIXME: insert proper C++ library support 14261 ld_shlibs_CXX=no 14262 fi 14263 ;; 14264 esac 14265 ;; 14266 14267 hpux10*|hpux11*) 14268 if test $with_gnu_ld = no; then 14269 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14270 hardcode_libdir_separator_CXX=: 14271 14272 case $host_cpu in 14273 hppa*64*|ia64*) 14274 ;; 14275 *) 14276 export_dynamic_flag_spec_CXX='${wl}-E' 14277 ;; 14278 esac 14279 fi 14280 case $host_cpu in 14281 hppa*64*|ia64*) 14282 hardcode_direct_CXX=no 14283 hardcode_shlibpath_var_CXX=no 14284 ;; 14285 *) 14286 hardcode_direct_CXX=yes 14287 hardcode_direct_absolute_CXX=yes 14288 hardcode_minus_L_CXX=yes # Not in the search PATH, 14289 # but as the default 14290 # location of the library. 14291 ;; 14292 esac 14293 14294 case $cc_basename in 14295 CC*) 14296 # FIXME: insert proper C++ library support 14297 ld_shlibs_CXX=no 14298 ;; 14299 aCC*) 14300 case $host_cpu in 14301 hppa*64*) 14302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14303 ;; 14304 ia64*) 14305 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14306 ;; 14307 *) 14308 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14309 ;; 14310 esac 14311 # Commands to make compiler produce verbose output that lists 14312 # what "hidden" libraries, object files and flags are used when 14313 # linking a shared library. 14314 # 14315 # There doesn't appear to be a way to prevent this compiler from 14316 # explicitly linking system object files so we need to strip them 14317 # from the output so that they don't get included in the library 14318 # dependencies. 14319 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14320 ;; 14321 *) 14322 if test "$GXX" = yes; then 14323 if test $with_gnu_ld = no; then 14324 case $host_cpu in 14325 hppa*64*) 14326 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14327 ;; 14328 ia64*) 14329 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14330 ;; 14331 *) 14332 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14333 ;; 14334 esac 14335 fi 14336 else 14337 # FIXME: insert proper C++ library support 14338 ld_shlibs_CXX=no 14339 fi 14340 ;; 14341 esac 14342 ;; 14343 14344 interix[3-9]*) 14345 hardcode_direct_CXX=no 14346 hardcode_shlibpath_var_CXX=no 14347 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14348 export_dynamic_flag_spec_CXX='${wl}-E' 14349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14350 # Instead, shared libraries are loaded at an image base (0x10000000 by 14351 # default) and relocated if they conflict, which is a slow very memory 14352 # consuming and fragmenting process. To avoid this, we pick a random, 14353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14354 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14355 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14356 archive_expsym_cmds_CXX='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' 14357 ;; 14358 irix5* | irix6*) 14359 case $cc_basename in 14360 CC*) 14361 # SGI C++ 14362 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14363 14364 # Archives containing C++ object files must be created using 14365 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14366 # necessary to make sure instantiated templates are included 14367 # in the archive. 14368 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14369 ;; 14370 *) 14371 if test "$GXX" = yes; then 14372 if test "$with_gnu_ld" = no; then 14373 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 14374 else 14375 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 14376 fi 14377 fi 14378 link_all_deplibs_CXX=yes 14379 ;; 14380 esac 14381 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14382 hardcode_libdir_separator_CXX=: 14383 inherit_rpath_CXX=yes 14384 ;; 14385 14386 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14387 case $cc_basename in 14388 KCC*) 14389 # Kuck and Associates, Inc. (KAI) C++ Compiler 14390 14391 # KCC will only create a shared library if the output file 14392 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14393 # to its proper name (with version) after linking. 14394 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14395 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 14396 # Commands to make compiler produce verbose output that lists 14397 # what "hidden" libraries, object files and flags are used when 14398 # linking a shared library. 14399 # 14400 # There doesn't appear to be a way to prevent this compiler from 14401 # explicitly linking system object files so we need to strip them 14402 # from the output so that they don't get included in the library 14403 # dependencies. 14404 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14405 14406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14407 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14408 14409 # Archives containing C++ object files must be created using 14410 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14411 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14412 ;; 14413 icpc* | ecpc* ) 14414 # Intel C++ 14415 with_gnu_ld=yes 14416 # version 8.0 and above of icpc choke on multiply defined symbols 14417 # if we add $predep_objects and $postdep_objects, however 7.1 and 14418 # earlier do not add the objects themselves. 14419 case `$CC -V 2>&1` in 14420 *"Version 7."*) 14421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14422 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14423 ;; 14424 *) # Version 8.0 or newer 14425 tmp_idyn= 14426 case $host_cpu in 14427 ia64*) tmp_idyn=' -i_dynamic';; 14428 esac 14429 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14430 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14431 ;; 14432 esac 14433 archive_cmds_need_lc_CXX=no 14434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14436 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14437 ;; 14438 pgCC* | pgcpp*) 14439 # Portland Group C++ compiler 14440 case `$CC -V` in 14441 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14442 prelink_cmds_CXX='tpldir=Template.dir~ 14443 rm -rf $tpldir~ 14444 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14445 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14446 old_archive_cmds_CXX='tpldir=Template.dir~ 14447 rm -rf $tpldir~ 14448 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14449 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14450 $RANLIB $oldlib' 14451 archive_cmds_CXX='tpldir=Template.dir~ 14452 rm -rf $tpldir~ 14453 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14454 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14455 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14456 rm -rf $tpldir~ 14457 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14458 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14459 ;; 14460 *) # Version 6 and above use weak symbols 14461 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14462 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14463 ;; 14464 esac 14465 14466 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14468 whole_archive_flag_spec_CXX='${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' 14469 ;; 14470 cxx*) 14471 # Compaq C++ 14472 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14473 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 14474 14475 runpath_var=LD_RUN_PATH 14476 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14477 hardcode_libdir_separator_CXX=: 14478 14479 # Commands to make compiler produce verbose output that lists 14480 # what "hidden" libraries, object files and flags are used when 14481 # linking a shared library. 14482 # 14483 # There doesn't appear to be a way to prevent this compiler from 14484 # explicitly linking system object files so we need to strip them 14485 # from the output so that they don't get included in the library 14486 # dependencies. 14487 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14488 ;; 14489 xl* | mpixl* | bgxl*) 14490 # IBM XL 8.0 on PPC, with GNU ld 14491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14492 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14493 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14494 if test "x$supports_anon_versioning" = xyes; then 14495 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14497 echo "local: *; };" >> $output_objdir/$libname.ver~ 14498 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14499 fi 14500 ;; 14501 *) 14502 case `$CC -V 2>&1 | sed 5q` in 14503 *Sun\ C*) 14504 # Sun C++ 5.9 14505 no_undefined_flag_CXX=' -zdefs' 14506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14507 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 14508 hardcode_libdir_flag_spec_CXX='-R$libdir' 14509 whole_archive_flag_spec_CXX='${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' 14510 compiler_needs_object_CXX=yes 14511 14512 # Not sure whether something based on 14513 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14514 # would be better. 14515 output_verbose_link_cmd='func_echo_all' 14516 14517 # Archives containing C++ object files must be created using 14518 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14519 # necessary to make sure instantiated templates are included 14520 # in the archive. 14521 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14522 ;; 14523 esac 14524 ;; 14525 esac 14526 ;; 14527 14528 lynxos*) 14529 # FIXME: insert proper C++ library support 14530 ld_shlibs_CXX=no 14531 ;; 14532 14533 m88k*) 14534 # FIXME: insert proper C++ library support 14535 ld_shlibs_CXX=no 14536 ;; 14537 14538 mvs*) 14539 case $cc_basename in 14540 cxx*) 14541 # FIXME: insert proper C++ library support 14542 ld_shlibs_CXX=no 14543 ;; 14544 *) 14545 # FIXME: insert proper C++ library support 14546 ld_shlibs_CXX=no 14547 ;; 14548 esac 14549 ;; 14550 14551 netbsd*) 14552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14553 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14554 wlarc= 14555 hardcode_libdir_flag_spec_CXX='-R$libdir' 14556 hardcode_direct_CXX=yes 14557 hardcode_shlibpath_var_CXX=no 14558 fi 14559 # Workaround some broken pre-1.5 toolchains 14560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14561 ;; 14562 14563 *nto* | *qnx*) 14564 ld_shlibs_CXX=yes 14565 ;; 14566 14567 openbsd2*) 14568 # C++ shared libraries are fairly broken 14569 ld_shlibs_CXX=no 14570 ;; 14571 14572 openbsd*) 14573 if test -f /usr/libexec/ld.so; then 14574 hardcode_direct_CXX=yes 14575 hardcode_shlibpath_var_CXX=no 14576 hardcode_direct_absolute_CXX=yes 14577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14581 export_dynamic_flag_spec_CXX='${wl}-E' 14582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14583 fi 14584 output_verbose_link_cmd=func_echo_all 14585 else 14586 ld_shlibs_CXX=no 14587 fi 14588 ;; 14589 14590 osf3* | osf4* | osf5*) 14591 case $cc_basename in 14592 KCC*) 14593 # Kuck and Associates, Inc. (KAI) C++ Compiler 14594 14595 # KCC will only create a shared library if the output file 14596 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14597 # to its proper name (with version) after linking. 14598 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14599 14600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14601 hardcode_libdir_separator_CXX=: 14602 14603 # Archives containing C++ object files must be created using 14604 # the KAI C++ compiler. 14605 case $host in 14606 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14607 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14608 esac 14609 ;; 14610 RCC*) 14611 # Rational C++ 2.4.1 14612 # FIXME: insert proper C++ library support 14613 ld_shlibs_CXX=no 14614 ;; 14615 cxx*) 14616 case $host in 14617 osf3*) 14618 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14619 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14621 ;; 14622 *) 14623 allow_undefined_flag_CXX=' -expect_unresolved \*' 14624 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14625 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14626 echo "-hidden">> $lib.exp~ 14627 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 14628 $RM $lib.exp' 14629 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14630 ;; 14631 esac 14632 14633 hardcode_libdir_separator_CXX=: 14634 14635 # Commands to make compiler produce verbose output that lists 14636 # what "hidden" libraries, object files and flags are used when 14637 # linking a shared library. 14638 # 14639 # There doesn't appear to be a way to prevent this compiler from 14640 # explicitly linking system object files so we need to strip them 14641 # from the output so that they don't get included in the library 14642 # dependencies. 14643 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14644 ;; 14645 *) 14646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14648 case $host in 14649 osf3*) 14650 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 14651 ;; 14652 *) 14653 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 14654 ;; 14655 esac 14656 14657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14658 hardcode_libdir_separator_CXX=: 14659 14660 # Commands to make compiler produce verbose output that lists 14661 # what "hidden" libraries, object files and flags are used when 14662 # linking a shared library. 14663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14664 14665 else 14666 # FIXME: insert proper C++ library support 14667 ld_shlibs_CXX=no 14668 fi 14669 ;; 14670 esac 14671 ;; 14672 14673 psos*) 14674 # FIXME: insert proper C++ library support 14675 ld_shlibs_CXX=no 14676 ;; 14677 14678 sunos4*) 14679 case $cc_basename in 14680 CC*) 14681 # Sun C++ 4.x 14682 # FIXME: insert proper C++ library support 14683 ld_shlibs_CXX=no 14684 ;; 14685 lcc*) 14686 # Lucid 14687 # FIXME: insert proper C++ library support 14688 ld_shlibs_CXX=no 14689 ;; 14690 *) 14691 # FIXME: insert proper C++ library support 14692 ld_shlibs_CXX=no 14693 ;; 14694 esac 14695 ;; 14696 14697 solaris*) 14698 case $cc_basename in 14699 CC* | sunCC*) 14700 # Sun C++ 4.2, 5.x and Centerline C++ 14701 archive_cmds_need_lc_CXX=yes 14702 no_undefined_flag_CXX=' -zdefs' 14703 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14704 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14705 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14706 14707 hardcode_libdir_flag_spec_CXX='-R$libdir' 14708 hardcode_shlibpath_var_CXX=no 14709 case $host_os in 14710 solaris2.[0-5] | solaris2.[0-5].*) ;; 14711 *) 14712 # The compiler driver will combine and reorder linker options, 14713 # but understands `-z linker_flag'. 14714 # Supported since Solaris 2.6 (maybe 2.5.1?) 14715 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14716 ;; 14717 esac 14718 link_all_deplibs_CXX=yes 14719 14720 output_verbose_link_cmd='func_echo_all' 14721 14722 # Archives containing C++ object files must be created using 14723 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14724 # necessary to make sure instantiated templates are included 14725 # in the archive. 14726 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14727 ;; 14728 gcx*) 14729 # Green Hills C++ Compiler 14730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14731 14732 # The C++ compiler must be used to create the archive. 14733 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14734 ;; 14735 *) 14736 # GNU C++ compiler with Solaris linker 14737 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14738 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14739 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14740 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14741 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14742 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14743 14744 # Commands to make compiler produce verbose output that lists 14745 # what "hidden" libraries, object files and flags are used when 14746 # linking a shared library. 14747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14748 else 14749 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14750 # platform. 14751 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14752 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14753 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14754 14755 # Commands to make compiler produce verbose output that lists 14756 # what "hidden" libraries, object files and flags are used when 14757 # linking a shared library. 14758 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14759 fi 14760 14761 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14762 case $host_os in 14763 solaris2.[0-5] | solaris2.[0-5].*) ;; 14764 *) 14765 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14766 ;; 14767 esac 14768 fi 14769 ;; 14770 esac 14771 ;; 14772 14773 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14774 no_undefined_flag_CXX='${wl}-z,text' 14775 archive_cmds_need_lc_CXX=no 14776 hardcode_shlibpath_var_CXX=no 14777 runpath_var='LD_RUN_PATH' 14778 14779 case $cc_basename in 14780 CC*) 14781 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14782 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14783 ;; 14784 *) 14785 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14786 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14787 ;; 14788 esac 14789 ;; 14790 14791 sysv5* | sco3.2v5* | sco5v6*) 14792 # Note: We can NOT use -z defs as we might desire, because we do not 14793 # link with -lc, and that would cause any symbols used from libc to 14794 # always be unresolved, which means just about no library would 14795 # ever link correctly. If we're not using GNU ld we use -z text 14796 # though, which does catch some bad symbols but isn't as heavy-handed 14797 # as -z defs. 14798 no_undefined_flag_CXX='${wl}-z,text' 14799 allow_undefined_flag_CXX='${wl}-z,nodefs' 14800 archive_cmds_need_lc_CXX=no 14801 hardcode_shlibpath_var_CXX=no 14802 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14803 hardcode_libdir_separator_CXX=':' 14804 link_all_deplibs_CXX=yes 14805 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14806 runpath_var='LD_RUN_PATH' 14807 14808 case $cc_basename in 14809 CC*) 14810 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14811 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14812 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14813 '"$old_archive_cmds_CXX" 14814 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14815 '"$reload_cmds_CXX" 14816 ;; 14817 *) 14818 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14819 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14820 ;; 14821 esac 14822 ;; 14823 14824 tandem*) 14825 case $cc_basename in 14826 NCC*) 14827 # NonStop-UX NCC 3.20 14828 # FIXME: insert proper C++ library support 14829 ld_shlibs_CXX=no 14830 ;; 14831 *) 14832 # FIXME: insert proper C++ library support 14833 ld_shlibs_CXX=no 14834 ;; 14835 esac 14836 ;; 14837 14838 vxworks*) 14839 # FIXME: insert proper C++ library support 14840 ld_shlibs_CXX=no 14841 ;; 14842 14843 *) 14844 # FIXME: insert proper C++ library support 14845 ld_shlibs_CXX=no 14846 ;; 14847 esac 14848 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14850$as_echo "$ld_shlibs_CXX" >&6; } 14851 test "$ld_shlibs_CXX" = no && can_build_shared=no 14852 14853 GCC_CXX="$GXX" 14854 LD_CXX="$LD" 14855 14856 ## CAVEAT EMPTOR: 14857 ## There is no encapsulation within the following macros, do not change 14858 ## the running order or otherwise move them around unless you know exactly 14859 ## what you are doing... 14860 # Dependencies to place before and after the object being linked: 14861predep_objects_CXX= 14862postdep_objects_CXX= 14863predeps_CXX= 14864postdeps_CXX= 14865compiler_lib_search_path_CXX= 14866 14867cat > conftest.$ac_ext <<_LT_EOF 14868class Foo 14869{ 14870public: 14871 Foo (void) { a = 0; } 14872private: 14873 int a; 14874}; 14875_LT_EOF 14876 14877 14878_lt_libdeps_save_CFLAGS=$CFLAGS 14879case "$CC $CFLAGS " in #( 14880*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14881*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14882esac 14883 14884if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14885 (eval $ac_compile) 2>&5 14886 ac_status=$? 14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14888 test $ac_status = 0; }; then 14889 # Parse the compiler output and extract the necessary 14890 # objects, libraries and library flags. 14891 14892 # Sentinel used to keep track of whether or not we are before 14893 # the conftest object file. 14894 pre_test_object_deps_done=no 14895 14896 for p in `eval "$output_verbose_link_cmd"`; do 14897 case ${prev}${p} in 14898 14899 -L* | -R* | -l*) 14900 # Some compilers place space between "-{L,R}" and the path. 14901 # Remove the space. 14902 if test $p = "-L" || 14903 test $p = "-R"; then 14904 prev=$p 14905 continue 14906 fi 14907 14908 # Expand the sysroot to ease extracting the directories later. 14909 if test -z "$prev"; then 14910 case $p in 14911 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14912 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14913 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14914 esac 14915 fi 14916 case $p in 14917 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14918 esac 14919 if test "$pre_test_object_deps_done" = no; then 14920 case ${prev} in 14921 -L | -R) 14922 # Internal compiler library paths should come after those 14923 # provided the user. The postdeps already come after the 14924 # user supplied libs so there is no need to process them. 14925 if test -z "$compiler_lib_search_path_CXX"; then 14926 compiler_lib_search_path_CXX="${prev}${p}" 14927 else 14928 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14929 fi 14930 ;; 14931 # The "-l" case would never come before the object being 14932 # linked, so don't bother handling this case. 14933 esac 14934 else 14935 if test -z "$postdeps_CXX"; then 14936 postdeps_CXX="${prev}${p}" 14937 else 14938 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14939 fi 14940 fi 14941 prev= 14942 ;; 14943 14944 *.lto.$objext) ;; # Ignore GCC LTO objects 14945 *.$objext) 14946 # This assumes that the test object file only shows up 14947 # once in the compiler output. 14948 if test "$p" = "conftest.$objext"; then 14949 pre_test_object_deps_done=yes 14950 continue 14951 fi 14952 14953 if test "$pre_test_object_deps_done" = no; then 14954 if test -z "$predep_objects_CXX"; then 14955 predep_objects_CXX="$p" 14956 else 14957 predep_objects_CXX="$predep_objects_CXX $p" 14958 fi 14959 else 14960 if test -z "$postdep_objects_CXX"; then 14961 postdep_objects_CXX="$p" 14962 else 14963 postdep_objects_CXX="$postdep_objects_CXX $p" 14964 fi 14965 fi 14966 ;; 14967 14968 *) ;; # Ignore the rest. 14969 14970 esac 14971 done 14972 14973 # Clean up. 14974 rm -f a.out a.exe 14975else 14976 echo "libtool.m4: error: problem compiling CXX test program" 14977fi 14978 14979$RM -f confest.$objext 14980CFLAGS=$_lt_libdeps_save_CFLAGS 14981 14982# PORTME: override above test on systems where it is broken 14983case $host_os in 14984interix[3-9]*) 14985 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14986 # hack all around it, let's just trust "g++" to DTRT. 14987 predep_objects_CXX= 14988 postdep_objects_CXX= 14989 postdeps_CXX= 14990 ;; 14991 14992linux*) 14993 case `$CC -V 2>&1 | sed 5q` in 14994 *Sun\ C*) 14995 # Sun C++ 5.9 14996 14997 # The more standards-conforming stlport4 library is 14998 # incompatible with the Cstd library. Avoid specifying 14999 # it if it's in CXXFLAGS. Ignore libCrun as 15000 # -library=stlport4 depends on it. 15001 case " $CXX $CXXFLAGS " in 15002 *" -library=stlport4 "*) 15003 solaris_use_stlport4=yes 15004 ;; 15005 esac 15006 15007 if test "$solaris_use_stlport4" != yes; then 15008 postdeps_CXX='-library=Cstd -library=Crun' 15009 fi 15010 ;; 15011 esac 15012 ;; 15013 15014solaris*) 15015 case $cc_basename in 15016 CC* | sunCC*) 15017 # The more standards-conforming stlport4 library is 15018 # incompatible with the Cstd library. Avoid specifying 15019 # it if it's in CXXFLAGS. Ignore libCrun as 15020 # -library=stlport4 depends on it. 15021 case " $CXX $CXXFLAGS " in 15022 *" -library=stlport4 "*) 15023 solaris_use_stlport4=yes 15024 ;; 15025 esac 15026 15027 # Adding this requires a known-good setup of shared libraries for 15028 # Sun compiler versions before 5.6, else PIC objects from an old 15029 # archive will be linked into the output, leading to subtle bugs. 15030 if test "$solaris_use_stlport4" != yes; then 15031 postdeps_CXX='-library=Cstd -library=Crun' 15032 fi 15033 ;; 15034 esac 15035 ;; 15036esac 15037 15038 15039case " $postdeps_CXX " in 15040*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15041esac 15042 compiler_lib_search_dirs_CXX= 15043if test -n "${compiler_lib_search_path_CXX}"; then 15044 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15045fi 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 lt_prog_compiler_wl_CXX= 15078lt_prog_compiler_pic_CXX= 15079lt_prog_compiler_static_CXX= 15080 15081 15082 # C++ specific cases for pic, static, wl, etc. 15083 if test "$GXX" = yes; then 15084 lt_prog_compiler_wl_CXX='-Wl,' 15085 lt_prog_compiler_static_CXX='-static' 15086 15087 case $host_os in 15088 aix*) 15089 # All AIX code is PIC. 15090 if test "$host_cpu" = ia64; then 15091 # AIX 5 now supports IA64 processor 15092 lt_prog_compiler_static_CXX='-Bstatic' 15093 fi 15094 ;; 15095 15096 amigaos*) 15097 case $host_cpu in 15098 powerpc) 15099 # see comment about AmigaOS4 .so support 15100 lt_prog_compiler_pic_CXX='-fPIC' 15101 ;; 15102 m68k) 15103 # FIXME: we need at least 68020 code to build shared libraries, but 15104 # adding the `-m68020' flag to GCC prevents building anything better, 15105 # like `-m68040'. 15106 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15107 ;; 15108 esac 15109 ;; 15110 15111 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15112 # PIC is the default for these OSes. 15113 ;; 15114 mingw* | cygwin* | os2* | pw32* | cegcc*) 15115 # This hack is so that the source file can tell whether it is being 15116 # built for inclusion in a dll (and should export symbols for example). 15117 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15118 # (--disable-auto-import) libraries 15119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15120 ;; 15121 darwin* | rhapsody*) 15122 # PIC is the default on this platform 15123 # Common symbols not allowed in MH_DYLIB files 15124 lt_prog_compiler_pic_CXX='-fno-common' 15125 ;; 15126 *djgpp*) 15127 # DJGPP does not support shared libraries at all 15128 lt_prog_compiler_pic_CXX= 15129 ;; 15130 haiku*) 15131 # PIC is the default for Haiku. 15132 # The "-static" flag exists, but is broken. 15133 lt_prog_compiler_static_CXX= 15134 ;; 15135 interix[3-9]*) 15136 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15137 # Instead, we relocate shared libraries at runtime. 15138 ;; 15139 sysv4*MP*) 15140 if test -d /usr/nec; then 15141 lt_prog_compiler_pic_CXX=-Kconform_pic 15142 fi 15143 ;; 15144 hpux*) 15145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15147 # sets the default TLS model and affects inlining. 15148 case $host_cpu in 15149 hppa*64*) 15150 ;; 15151 *) 15152 lt_prog_compiler_pic_CXX='-fPIC' 15153 ;; 15154 esac 15155 ;; 15156 *qnx* | *nto*) 15157 # QNX uses GNU C++, but need to define -shared option too, otherwise 15158 # it will coredump. 15159 lt_prog_compiler_pic_CXX='-fPIC -shared' 15160 ;; 15161 *) 15162 lt_prog_compiler_pic_CXX='-fPIC' 15163 ;; 15164 esac 15165 else 15166 case $host_os in 15167 aix[4-9]*) 15168 # All AIX code is PIC. 15169 if test "$host_cpu" = ia64; then 15170 # AIX 5 now supports IA64 processor 15171 lt_prog_compiler_static_CXX='-Bstatic' 15172 else 15173 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15174 fi 15175 ;; 15176 chorus*) 15177 case $cc_basename in 15178 cxch68*) 15179 # Green Hills C++ Compiler 15180 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15181 ;; 15182 esac 15183 ;; 15184 mingw* | cygwin* | os2* | pw32* | cegcc*) 15185 # This hack is so that the source file can tell whether it is being 15186 # built for inclusion in a dll (and should export symbols for example). 15187 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15188 ;; 15189 dgux*) 15190 case $cc_basename in 15191 ec++*) 15192 lt_prog_compiler_pic_CXX='-KPIC' 15193 ;; 15194 ghcx*) 15195 # Green Hills C++ Compiler 15196 lt_prog_compiler_pic_CXX='-pic' 15197 ;; 15198 *) 15199 ;; 15200 esac 15201 ;; 15202 freebsd* | dragonfly*) 15203 # FreeBSD uses GNU C++ 15204 ;; 15205 hpux9* | hpux10* | hpux11*) 15206 case $cc_basename in 15207 CC*) 15208 lt_prog_compiler_wl_CXX='-Wl,' 15209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15210 if test "$host_cpu" != ia64; then 15211 lt_prog_compiler_pic_CXX='+Z' 15212 fi 15213 ;; 15214 aCC*) 15215 lt_prog_compiler_wl_CXX='-Wl,' 15216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15217 case $host_cpu in 15218 hppa*64*|ia64*) 15219 # +Z the default 15220 ;; 15221 *) 15222 lt_prog_compiler_pic_CXX='+Z' 15223 ;; 15224 esac 15225 ;; 15226 *) 15227 ;; 15228 esac 15229 ;; 15230 interix*) 15231 # This is c89, which is MS Visual C++ (no shared libs) 15232 # Anyone wants to do a port? 15233 ;; 15234 irix5* | irix6* | nonstopux*) 15235 case $cc_basename in 15236 CC*) 15237 lt_prog_compiler_wl_CXX='-Wl,' 15238 lt_prog_compiler_static_CXX='-non_shared' 15239 # CC pic flag -KPIC is the default. 15240 ;; 15241 *) 15242 ;; 15243 esac 15244 ;; 15245 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15246 case $cc_basename in 15247 KCC*) 15248 # KAI C++ Compiler 15249 lt_prog_compiler_wl_CXX='--backend -Wl,' 15250 lt_prog_compiler_pic_CXX='-fPIC' 15251 ;; 15252 ecpc* ) 15253 # old Intel C++ for x86_64 which still supported -KPIC. 15254 lt_prog_compiler_wl_CXX='-Wl,' 15255 lt_prog_compiler_pic_CXX='-KPIC' 15256 lt_prog_compiler_static_CXX='-static' 15257 ;; 15258 icpc* ) 15259 # Intel C++, used to be incompatible with GCC. 15260 # ICC 10 doesn't accept -KPIC any more. 15261 lt_prog_compiler_wl_CXX='-Wl,' 15262 lt_prog_compiler_pic_CXX='-fPIC' 15263 lt_prog_compiler_static_CXX='-static' 15264 ;; 15265 pgCC* | pgcpp*) 15266 # Portland Group C++ compiler 15267 lt_prog_compiler_wl_CXX='-Wl,' 15268 lt_prog_compiler_pic_CXX='-fpic' 15269 lt_prog_compiler_static_CXX='-Bstatic' 15270 ;; 15271 cxx*) 15272 # Compaq C++ 15273 # Make sure the PIC flag is empty. It appears that all Alpha 15274 # Linux and Compaq Tru64 Unix objects are PIC. 15275 lt_prog_compiler_pic_CXX= 15276 lt_prog_compiler_static_CXX='-non_shared' 15277 ;; 15278 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15279 # IBM XL 8.0, 9.0 on PPC and BlueGene 15280 lt_prog_compiler_wl_CXX='-Wl,' 15281 lt_prog_compiler_pic_CXX='-qpic' 15282 lt_prog_compiler_static_CXX='-qstaticlink' 15283 ;; 15284 *) 15285 case `$CC -V 2>&1 | sed 5q` in 15286 *Sun\ C*) 15287 # Sun C++ 5.9 15288 lt_prog_compiler_pic_CXX='-KPIC' 15289 lt_prog_compiler_static_CXX='-Bstatic' 15290 lt_prog_compiler_wl_CXX='-Qoption ld ' 15291 ;; 15292 esac 15293 ;; 15294 esac 15295 ;; 15296 lynxos*) 15297 ;; 15298 m88k*) 15299 ;; 15300 mvs*) 15301 case $cc_basename in 15302 cxx*) 15303 lt_prog_compiler_pic_CXX='-W c,exportall' 15304 ;; 15305 *) 15306 ;; 15307 esac 15308 ;; 15309 netbsd*) 15310 ;; 15311 *qnx* | *nto*) 15312 # QNX uses GNU C++, but need to define -shared option too, otherwise 15313 # it will coredump. 15314 lt_prog_compiler_pic_CXX='-fPIC -shared' 15315 ;; 15316 osf3* | osf4* | osf5*) 15317 case $cc_basename in 15318 KCC*) 15319 lt_prog_compiler_wl_CXX='--backend -Wl,' 15320 ;; 15321 RCC*) 15322 # Rational C++ 2.4.1 15323 lt_prog_compiler_pic_CXX='-pic' 15324 ;; 15325 cxx*) 15326 # Digital/Compaq C++ 15327 lt_prog_compiler_wl_CXX='-Wl,' 15328 # Make sure the PIC flag is empty. It appears that all Alpha 15329 # Linux and Compaq Tru64 Unix objects are PIC. 15330 lt_prog_compiler_pic_CXX= 15331 lt_prog_compiler_static_CXX='-non_shared' 15332 ;; 15333 *) 15334 ;; 15335 esac 15336 ;; 15337 psos*) 15338 ;; 15339 solaris*) 15340 case $cc_basename in 15341 CC* | sunCC*) 15342 # Sun C++ 4.2, 5.x and Centerline C++ 15343 lt_prog_compiler_pic_CXX='-KPIC' 15344 lt_prog_compiler_static_CXX='-Bstatic' 15345 lt_prog_compiler_wl_CXX='-Qoption ld ' 15346 ;; 15347 gcx*) 15348 # Green Hills C++ Compiler 15349 lt_prog_compiler_pic_CXX='-PIC' 15350 ;; 15351 *) 15352 ;; 15353 esac 15354 ;; 15355 sunos4*) 15356 case $cc_basename in 15357 CC*) 15358 # Sun C++ 4.x 15359 lt_prog_compiler_pic_CXX='-pic' 15360 lt_prog_compiler_static_CXX='-Bstatic' 15361 ;; 15362 lcc*) 15363 # Lucid 15364 lt_prog_compiler_pic_CXX='-pic' 15365 ;; 15366 *) 15367 ;; 15368 esac 15369 ;; 15370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15371 case $cc_basename in 15372 CC*) 15373 lt_prog_compiler_wl_CXX='-Wl,' 15374 lt_prog_compiler_pic_CXX='-KPIC' 15375 lt_prog_compiler_static_CXX='-Bstatic' 15376 ;; 15377 esac 15378 ;; 15379 tandem*) 15380 case $cc_basename in 15381 NCC*) 15382 # NonStop-UX NCC 3.20 15383 lt_prog_compiler_pic_CXX='-KPIC' 15384 ;; 15385 *) 15386 ;; 15387 esac 15388 ;; 15389 vxworks*) 15390 ;; 15391 *) 15392 lt_prog_compiler_can_build_shared_CXX=no 15393 ;; 15394 esac 15395 fi 15396 15397case $host_os in 15398 # For platforms which do not support PIC, -DPIC is meaningless: 15399 *djgpp*) 15400 lt_prog_compiler_pic_CXX= 15401 ;; 15402 *) 15403 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15404 ;; 15405esac 15406 15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15408$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15409if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15415$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15416lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15417 15418# 15419# Check to make sure the PIC flag actually works. 15420# 15421if test -n "$lt_prog_compiler_pic_CXX"; then 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15423$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15424if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15425 $as_echo_n "(cached) " >&6 15426else 15427 lt_cv_prog_compiler_pic_works_CXX=no 15428 ac_outfile=conftest.$ac_objext 15429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15430 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15431 # Insert the option either (1) after the last *FLAGS variable, or 15432 # (2) before a word containing "conftest.", or (3) at the end. 15433 # Note that $ac_compile itself does not contain backslashes and begins 15434 # with a dollar sign (not a hyphen), so the echo should work correctly. 15435 # The option is referenced via a variable to avoid confusing sed. 15436 lt_compile=`echo "$ac_compile" | $SED \ 15437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15439 -e 's:$: $lt_compiler_flag:'` 15440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15441 (eval "$lt_compile" 2>conftest.err) 15442 ac_status=$? 15443 cat conftest.err >&5 15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15445 if (exit $ac_status) && test -s "$ac_outfile"; then 15446 # The compiler can only warn and ignore the option if not recognized 15447 # So say no if there are warnings other than the usual output. 15448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15451 lt_cv_prog_compiler_pic_works_CXX=yes 15452 fi 15453 fi 15454 $RM conftest* 15455 15456fi 15457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15458$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15459 15460if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15461 case $lt_prog_compiler_pic_CXX in 15462 "" | " "*) ;; 15463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15464 esac 15465else 15466 lt_prog_compiler_pic_CXX= 15467 lt_prog_compiler_can_build_shared_CXX=no 15468fi 15469 15470fi 15471 15472 15473 15474 15475 15476# 15477# Check to make sure the static flag actually works. 15478# 15479wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15481$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15482if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15483 $as_echo_n "(cached) " >&6 15484else 15485 lt_cv_prog_compiler_static_works_CXX=no 15486 save_LDFLAGS="$LDFLAGS" 15487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15488 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15490 # The linker can only warn and ignore the option if not recognized 15491 # So say no if there are warnings 15492 if test -s conftest.err; then 15493 # Append any errors to the config.log. 15494 cat conftest.err 1>&5 15495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15497 if diff conftest.exp conftest.er2 >/dev/null; then 15498 lt_cv_prog_compiler_static_works_CXX=yes 15499 fi 15500 else 15501 lt_cv_prog_compiler_static_works_CXX=yes 15502 fi 15503 fi 15504 $RM -r conftest* 15505 LDFLAGS="$save_LDFLAGS" 15506 15507fi 15508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15509$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15510 15511if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15512 : 15513else 15514 lt_prog_compiler_static_CXX= 15515fi 15516 15517 15518 15519 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15522if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15523 $as_echo_n "(cached) " >&6 15524else 15525 lt_cv_prog_compiler_c_o_CXX=no 15526 $RM -r conftest 2>/dev/null 15527 mkdir conftest 15528 cd conftest 15529 mkdir out 15530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15531 15532 lt_compiler_flag="-o out/conftest2.$ac_objext" 15533 # Insert the option either (1) after the last *FLAGS variable, or 15534 # (2) before a word containing "conftest.", or (3) at the end. 15535 # Note that $ac_compile itself does not contain backslashes and begins 15536 # with a dollar sign (not a hyphen), so the echo should work correctly. 15537 lt_compile=`echo "$ac_compile" | $SED \ 15538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15540 -e 's:$: $lt_compiler_flag:'` 15541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15542 (eval "$lt_compile" 2>out/conftest.err) 15543 ac_status=$? 15544 cat out/conftest.err >&5 15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15547 then 15548 # The compiler can only warn and ignore the option if not recognized 15549 # So say no if there are warnings 15550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15553 lt_cv_prog_compiler_c_o_CXX=yes 15554 fi 15555 fi 15556 chmod u+w . 2>&5 15557 $RM conftest* 15558 # SGI C++ compiler will create directory out/ii_files/ for 15559 # template instantiation 15560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15561 $RM out/* && rmdir out 15562 cd .. 15563 $RM -r conftest 15564 $RM conftest* 15565 15566fi 15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15568$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15569 15570 15571 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15573$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15574if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15575 $as_echo_n "(cached) " >&6 15576else 15577 lt_cv_prog_compiler_c_o_CXX=no 15578 $RM -r conftest 2>/dev/null 15579 mkdir conftest 15580 cd conftest 15581 mkdir out 15582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15583 15584 lt_compiler_flag="-o out/conftest2.$ac_objext" 15585 # Insert the option either (1) after the last *FLAGS variable, or 15586 # (2) before a word containing "conftest.", or (3) at the end. 15587 # Note that $ac_compile itself does not contain backslashes and begins 15588 # with a dollar sign (not a hyphen), so the echo should work correctly. 15589 lt_compile=`echo "$ac_compile" | $SED \ 15590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15592 -e 's:$: $lt_compiler_flag:'` 15593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15594 (eval "$lt_compile" 2>out/conftest.err) 15595 ac_status=$? 15596 cat out/conftest.err >&5 15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15598 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15599 then 15600 # The compiler can only warn and ignore the option if not recognized 15601 # So say no if there are warnings 15602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15605 lt_cv_prog_compiler_c_o_CXX=yes 15606 fi 15607 fi 15608 chmod u+w . 2>&5 15609 $RM conftest* 15610 # SGI C++ compiler will create directory out/ii_files/ for 15611 # template instantiation 15612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15613 $RM out/* && rmdir out 15614 cd .. 15615 $RM -r conftest 15616 $RM conftest* 15617 15618fi 15619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15620$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15621 15622 15623 15624 15625hard_links="nottested" 15626if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15627 # do not overwrite the value of need_locks provided by the user 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15629$as_echo_n "checking if we can lock with hard links... " >&6; } 15630 hard_links=yes 15631 $RM conftest* 15632 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15633 touch conftest.a 15634 ln conftest.a conftest.b 2>&5 || hard_links=no 15635 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15637$as_echo "$hard_links" >&6; } 15638 if test "$hard_links" = no; then 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15640$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15641 need_locks=warn 15642 fi 15643else 15644 need_locks=no 15645fi 15646 15647 15648 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15650$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15651 15652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15653 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15654 case $host_os in 15655 aix[4-9]*) 15656 # If we're using GNU nm, then we don't want the "-C" option. 15657 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15658 # Also, AIX nm treats weak defined symbols like other global defined 15659 # symbols, whereas GNU nm marks them as "W". 15660 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15661 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15662 else 15663 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15664 fi 15665 ;; 15666 pw32*) 15667 export_symbols_cmds_CXX="$ltdll_cmds" 15668 ;; 15669 cygwin* | mingw* | cegcc*) 15670 case $cc_basename in 15671 cl*) ;; 15672 *) 15673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15674 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15675 ;; 15676 esac 15677 ;; 15678 *) 15679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15680 ;; 15681 esac 15682 15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15684$as_echo "$ld_shlibs_CXX" >&6; } 15685test "$ld_shlibs_CXX" = no && can_build_shared=no 15686 15687with_gnu_ld_CXX=$with_gnu_ld 15688 15689 15690 15691 15692 15693 15694# 15695# Do we need to explicitly link libc? 15696# 15697case "x$archive_cmds_need_lc_CXX" in 15698x|xyes) 15699 # Assume -lc should be added 15700 archive_cmds_need_lc_CXX=yes 15701 15702 if test "$enable_shared" = yes && test "$GCC" = yes; then 15703 case $archive_cmds_CXX in 15704 *'~'*) 15705 # FIXME: we may have to deal with multi-command sequences. 15706 ;; 15707 '$CC '*) 15708 # Test whether the compiler implicitly links with -lc since on some 15709 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15710 # to ld, don't add -lc before -lgcc. 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15712$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15713if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15714 $as_echo_n "(cached) " >&6 15715else 15716 $RM conftest* 15717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15718 15719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15720 (eval $ac_compile) 2>&5 15721 ac_status=$? 15722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15723 test $ac_status = 0; } 2>conftest.err; then 15724 soname=conftest 15725 lib=conftest 15726 libobjs=conftest.$ac_objext 15727 deplibs= 15728 wl=$lt_prog_compiler_wl_CXX 15729 pic_flag=$lt_prog_compiler_pic_CXX 15730 compiler_flags=-v 15731 linker_flags=-v 15732 verstring= 15733 output_objdir=. 15734 libname=conftest 15735 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15736 allow_undefined_flag_CXX= 15737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15738 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15739 ac_status=$? 15740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15741 test $ac_status = 0; } 15742 then 15743 lt_cv_archive_cmds_need_lc_CXX=no 15744 else 15745 lt_cv_archive_cmds_need_lc_CXX=yes 15746 fi 15747 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15748 else 15749 cat conftest.err 1>&5 15750 fi 15751 $RM conftest* 15752 15753fi 15754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15755$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15756 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15757 ;; 15758 esac 15759 fi 15760 ;; 15761esac 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15827$as_echo_n "checking dynamic linker characteristics... " >&6; } 15828 15829library_names_spec= 15830libname_spec='lib$name' 15831soname_spec= 15832shrext_cmds=".so" 15833postinstall_cmds= 15834postuninstall_cmds= 15835finish_cmds= 15836finish_eval= 15837shlibpath_var= 15838shlibpath_overrides_runpath=unknown 15839version_type=none 15840dynamic_linker="$host_os ld.so" 15841sys_lib_dlsearch_path_spec="/lib /usr/lib" 15842need_lib_prefix=unknown 15843hardcode_into_libs=no 15844 15845# when you set need_version to no, make sure it does not cause -set_version 15846# flags to be left without arguments 15847need_version=unknown 15848 15849case $host_os in 15850aix3*) 15851 version_type=linux 15852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15853 shlibpath_var=LIBPATH 15854 15855 # AIX 3 has no versioning support, so we append a major version to the name. 15856 soname_spec='${libname}${release}${shared_ext}$major' 15857 ;; 15858 15859aix[4-9]*) 15860 version_type=linux 15861 need_lib_prefix=no 15862 need_version=no 15863 hardcode_into_libs=yes 15864 if test "$host_cpu" = ia64; then 15865 # AIX 5 supports IA64 15866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15867 shlibpath_var=LD_LIBRARY_PATH 15868 else 15869 # With GCC up to 2.95.x, collect2 would create an import file 15870 # for dependence libraries. The import file would start with 15871 # the line `#! .'. This would cause the generated library to 15872 # depend on `.', always an invalid library. This was fixed in 15873 # development snapshots of GCC prior to 3.0. 15874 case $host_os in 15875 aix4 | aix4.[01] | aix4.[01].*) 15876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15877 echo ' yes ' 15878 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15879 : 15880 else 15881 can_build_shared=no 15882 fi 15883 ;; 15884 esac 15885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15886 # soname into executable. Probably we can add versioning support to 15887 # collect2, so additional links can be useful in future. 15888 if test "$aix_use_runtimelinking" = yes; then 15889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15890 # instead of lib<name>.a to let people know that these are not 15891 # typical AIX shared libraries. 15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15893 else 15894 # We preserve .a as extension for shared libraries through AIX4.2 15895 # and later when we are not doing run time linking. 15896 library_names_spec='${libname}${release}.a $libname.a' 15897 soname_spec='${libname}${release}${shared_ext}$major' 15898 fi 15899 shlibpath_var=LIBPATH 15900 fi 15901 ;; 15902 15903amigaos*) 15904 case $host_cpu in 15905 powerpc) 15906 # Since July 2007 AmigaOS4 officially supports .so libraries. 15907 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15909 ;; 15910 m68k) 15911 library_names_spec='$libname.ixlibrary $libname.a' 15912 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15913 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 15914 ;; 15915 esac 15916 ;; 15917 15918beos*) 15919 library_names_spec='${libname}${shared_ext}' 15920 dynamic_linker="$host_os ld.so" 15921 shlibpath_var=LIBRARY_PATH 15922 ;; 15923 15924bsdi[45]*) 15925 version_type=linux 15926 need_version=no 15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15928 soname_spec='${libname}${release}${shared_ext}$major' 15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15930 shlibpath_var=LD_LIBRARY_PATH 15931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15933 # the default ld.so.conf also contains /usr/contrib/lib and 15934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15935 # libtool to hard-code these into programs 15936 ;; 15937 15938cygwin* | mingw* | pw32* | cegcc*) 15939 version_type=windows 15940 shrext_cmds=".dll" 15941 need_version=no 15942 need_lib_prefix=no 15943 15944 case $GCC,$cc_basename in 15945 yes,*) 15946 # gcc 15947 library_names_spec='$libname.dll.a' 15948 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15949 postinstall_cmds='base_file=`basename \${file}`~ 15950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15951 dldir=$destdir/`dirname \$dlpath`~ 15952 test -d \$dldir || mkdir -p \$dldir~ 15953 $install_prog $dir/$dlname \$dldir/$dlname~ 15954 chmod a+x \$dldir/$dlname~ 15955 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15956 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15957 fi' 15958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15959 dlpath=$dir/\$dldll~ 15960 $RM \$dlpath' 15961 shlibpath_overrides_runpath=yes 15962 15963 case $host_os in 15964 cygwin*) 15965 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15966 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15967 15968 ;; 15969 mingw* | cegcc*) 15970 # MinGW DLLs use traditional 'lib' prefix 15971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15972 ;; 15973 pw32*) 15974 # pw32 DLLs use 'pw' prefix rather than 'lib' 15975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15976 ;; 15977 esac 15978 dynamic_linker='Win32 ld.exe' 15979 ;; 15980 15981 *,cl*) 15982 # Native MSVC 15983 libname_spec='$name' 15984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15985 library_names_spec='${libname}.dll.lib' 15986 15987 case $build_os in 15988 mingw*) 15989 sys_lib_search_path_spec= 15990 lt_save_ifs=$IFS 15991 IFS=';' 15992 for lt_path in $LIB 15993 do 15994 IFS=$lt_save_ifs 15995 # Let DOS variable expansion print the short 8.3 style file name. 15996 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15997 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15998 done 15999 IFS=$lt_save_ifs 16000 # Convert to MSYS style. 16001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16002 ;; 16003 cygwin*) 16004 # Convert to unix form, then to dos form, then back to unix form 16005 # but this time dos style (no spaces!) so that the unix form looks 16006 # like /cygdrive/c/PROGRA~1:/cygdr... 16007 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16008 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16009 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16010 ;; 16011 *) 16012 sys_lib_search_path_spec="$LIB" 16013 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16014 # It is most probably a Windows format PATH. 16015 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16016 else 16017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16018 fi 16019 # FIXME: find the short name or the path components, as spaces are 16020 # common. (e.g. "Program Files" -> "PROGRA~1") 16021 ;; 16022 esac 16023 16024 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16025 postinstall_cmds='base_file=`basename \${file}`~ 16026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16027 dldir=$destdir/`dirname \$dlpath`~ 16028 test -d \$dldir || mkdir -p \$dldir~ 16029 $install_prog $dir/$dlname \$dldir/$dlname' 16030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16031 dlpath=$dir/\$dldll~ 16032 $RM \$dlpath' 16033 shlibpath_overrides_runpath=yes 16034 dynamic_linker='Win32 link.exe' 16035 ;; 16036 16037 *) 16038 # Assume MSVC wrapper 16039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16040 dynamic_linker='Win32 ld.exe' 16041 ;; 16042 esac 16043 # FIXME: first we should search . and the directory the executable is in 16044 shlibpath_var=PATH 16045 ;; 16046 16047darwin* | rhapsody*) 16048 dynamic_linker="$host_os dyld" 16049 version_type=darwin 16050 need_lib_prefix=no 16051 need_version=no 16052 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16053 soname_spec='${libname}${release}${major}$shared_ext' 16054 shlibpath_overrides_runpath=yes 16055 shlibpath_var=DYLD_LIBRARY_PATH 16056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16057 16058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16059 ;; 16060 16061dgux*) 16062 version_type=linux 16063 need_lib_prefix=no 16064 need_version=no 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16066 soname_spec='${libname}${release}${shared_ext}$major' 16067 shlibpath_var=LD_LIBRARY_PATH 16068 ;; 16069 16070freebsd1*) 16071 dynamic_linker=no 16072 ;; 16073 16074freebsd* | dragonfly*) 16075 # DragonFly does not have aout. When/if they implement a new 16076 # versioning mechanism, adjust this. 16077 if test -x /usr/bin/objformat; then 16078 objformat=`/usr/bin/objformat` 16079 else 16080 case $host_os in 16081 freebsd[123]*) objformat=aout ;; 16082 *) objformat=elf ;; 16083 esac 16084 fi 16085 version_type=freebsd-$objformat 16086 case $version_type in 16087 freebsd-elf*) 16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16089 need_version=no 16090 need_lib_prefix=no 16091 ;; 16092 freebsd-*) 16093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16094 need_version=yes 16095 ;; 16096 esac 16097 shlibpath_var=LD_LIBRARY_PATH 16098 case $host_os in 16099 freebsd2*) 16100 shlibpath_overrides_runpath=yes 16101 ;; 16102 freebsd3.[01]* | freebsdelf3.[01]*) 16103 shlibpath_overrides_runpath=yes 16104 hardcode_into_libs=yes 16105 ;; 16106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16108 shlibpath_overrides_runpath=no 16109 hardcode_into_libs=yes 16110 ;; 16111 *) # from 4.6 on, and DragonFly 16112 shlibpath_overrides_runpath=yes 16113 hardcode_into_libs=yes 16114 ;; 16115 esac 16116 ;; 16117 16118gnu*) 16119 version_type=linux 16120 need_lib_prefix=no 16121 need_version=no 16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16123 soname_spec='${libname}${release}${shared_ext}$major' 16124 shlibpath_var=LD_LIBRARY_PATH 16125 hardcode_into_libs=yes 16126 ;; 16127 16128haiku*) 16129 version_type=linux 16130 need_lib_prefix=no 16131 need_version=no 16132 dynamic_linker="$host_os runtime_loader" 16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16134 soname_spec='${libname}${release}${shared_ext}$major' 16135 shlibpath_var=LIBRARY_PATH 16136 shlibpath_overrides_runpath=yes 16137 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16138 hardcode_into_libs=yes 16139 ;; 16140 16141hpux9* | hpux10* | hpux11*) 16142 # Give a soname corresponding to the major version so that dld.sl refuses to 16143 # link against other versions. 16144 version_type=sunos 16145 need_lib_prefix=no 16146 need_version=no 16147 case $host_cpu in 16148 ia64*) 16149 shrext_cmds='.so' 16150 hardcode_into_libs=yes 16151 dynamic_linker="$host_os dld.so" 16152 shlibpath_var=LD_LIBRARY_PATH 16153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16155 soname_spec='${libname}${release}${shared_ext}$major' 16156 if test "X$HPUX_IA64_MODE" = X32; then 16157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16158 else 16159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16160 fi 16161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16162 ;; 16163 hppa*64*) 16164 shrext_cmds='.sl' 16165 hardcode_into_libs=yes 16166 dynamic_linker="$host_os dld.sl" 16167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16170 soname_spec='${libname}${release}${shared_ext}$major' 16171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16173 ;; 16174 *) 16175 shrext_cmds='.sl' 16176 dynamic_linker="$host_os dld.sl" 16177 shlibpath_var=SHLIB_PATH 16178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16180 soname_spec='${libname}${release}${shared_ext}$major' 16181 ;; 16182 esac 16183 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16184 postinstall_cmds='chmod 555 $lib' 16185 # or fails outright, so override atomically: 16186 install_override_mode=555 16187 ;; 16188 16189interix[3-9]*) 16190 version_type=linux 16191 need_lib_prefix=no 16192 need_version=no 16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16194 soname_spec='${libname}${release}${shared_ext}$major' 16195 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16196 shlibpath_var=LD_LIBRARY_PATH 16197 shlibpath_overrides_runpath=no 16198 hardcode_into_libs=yes 16199 ;; 16200 16201irix5* | irix6* | nonstopux*) 16202 case $host_os in 16203 nonstopux*) version_type=nonstopux ;; 16204 *) 16205 if test "$lt_cv_prog_gnu_ld" = yes; then 16206 version_type=linux 16207 else 16208 version_type=irix 16209 fi ;; 16210 esac 16211 need_lib_prefix=no 16212 need_version=no 16213 soname_spec='${libname}${release}${shared_ext}$major' 16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16215 case $host_os in 16216 irix5* | nonstopux*) 16217 libsuff= shlibsuff= 16218 ;; 16219 *) 16220 case $LD in # libtool.m4 will add one of these switches to LD 16221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16222 libsuff= shlibsuff= libmagic=32-bit;; 16223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16224 libsuff=32 shlibsuff=N32 libmagic=N32;; 16225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16226 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16227 *) libsuff= shlibsuff= libmagic=never-match;; 16228 esac 16229 ;; 16230 esac 16231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16232 shlibpath_overrides_runpath=no 16233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16235 hardcode_into_libs=yes 16236 ;; 16237 16238# No shared lib support for Linux oldld, aout, or coff. 16239linux*oldld* | linux*aout* | linux*coff*) 16240 dynamic_linker=no 16241 ;; 16242 16243# This must be Linux ELF. 16244linux* | k*bsd*-gnu | kopensolaris*-gnu) 16245 version_type=linux 16246 need_lib_prefix=no 16247 need_version=no 16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16249 soname_spec='${libname}${release}${shared_ext}$major' 16250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16251 shlibpath_var=LD_LIBRARY_PATH 16252 shlibpath_overrides_runpath=no 16253 16254 # Some binutils ld are patched to set DT_RUNPATH 16255 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16256 $as_echo_n "(cached) " >&6 16257else 16258 lt_cv_shlibpath_overrides_runpath=no 16259 save_LDFLAGS=$LDFLAGS 16260 save_libdir=$libdir 16261 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16262 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16264/* end confdefs.h. */ 16265 16266int 16267main () 16268{ 16269 16270 ; 16271 return 0; 16272} 16273_ACEOF 16274if ac_fn_cxx_try_link "$LINENO"; then : 16275 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16276 lt_cv_shlibpath_overrides_runpath=yes 16277fi 16278fi 16279rm -f core conftest.err conftest.$ac_objext \ 16280 conftest$ac_exeext conftest.$ac_ext 16281 LDFLAGS=$save_LDFLAGS 16282 libdir=$save_libdir 16283 16284fi 16285 16286 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16287 16288 # This implies no fast_install, which is unacceptable. 16289 # Some rework will be needed to allow for fast_install 16290 # before this can be enabled. 16291 hardcode_into_libs=yes 16292 16293 # Append ld.so.conf contents to the search path 16294 if test -f /etc/ld.so.conf; then 16295 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' ' '` 16296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16297 fi 16298 16299 # We used to test for /lib/ld.so.1 and disable shared libraries on 16300 # powerpc, because MkLinux only supported shared libraries with the 16301 # GNU dynamic linker. Since this was broken with cross compilers, 16302 # most powerpc-linux boxes support dynamic linking these days and 16303 # people can always --disable-shared, the test was removed, and we 16304 # assume the GNU/Linux dynamic linker is in use. 16305 dynamic_linker='GNU/Linux ld.so' 16306 ;; 16307 16308netbsd*) 16309 version_type=sunos 16310 need_lib_prefix=no 16311 need_version=no 16312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16315 dynamic_linker='NetBSD (a.out) ld.so' 16316 else 16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16318 soname_spec='${libname}${release}${shared_ext}$major' 16319 dynamic_linker='NetBSD ld.elf_so' 16320 fi 16321 shlibpath_var=LD_LIBRARY_PATH 16322 shlibpath_overrides_runpath=yes 16323 hardcode_into_libs=yes 16324 ;; 16325 16326newsos6) 16327 version_type=linux 16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16329 shlibpath_var=LD_LIBRARY_PATH 16330 shlibpath_overrides_runpath=yes 16331 ;; 16332 16333*nto* | *qnx*) 16334 version_type=qnx 16335 need_lib_prefix=no 16336 need_version=no 16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16338 soname_spec='${libname}${release}${shared_ext}$major' 16339 shlibpath_var=LD_LIBRARY_PATH 16340 shlibpath_overrides_runpath=no 16341 hardcode_into_libs=yes 16342 dynamic_linker='ldqnx.so' 16343 ;; 16344 16345openbsd*) 16346 version_type=sunos 16347 sys_lib_dlsearch_path_spec="/usr/lib" 16348 need_lib_prefix=no 16349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16350 case $host_os in 16351 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16352 *) need_version=no ;; 16353 esac 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16356 shlibpath_var=LD_LIBRARY_PATH 16357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16358 case $host_os in 16359 openbsd2.[89] | openbsd2.[89].*) 16360 shlibpath_overrides_runpath=no 16361 ;; 16362 *) 16363 shlibpath_overrides_runpath=yes 16364 ;; 16365 esac 16366 else 16367 shlibpath_overrides_runpath=yes 16368 fi 16369 ;; 16370 16371os2*) 16372 libname_spec='$name' 16373 shrext_cmds=".dll" 16374 need_lib_prefix=no 16375 library_names_spec='$libname${shared_ext} $libname.a' 16376 dynamic_linker='OS/2 ld.exe' 16377 shlibpath_var=LIBPATH 16378 ;; 16379 16380osf3* | osf4* | osf5*) 16381 version_type=osf 16382 need_lib_prefix=no 16383 need_version=no 16384 soname_spec='${libname}${release}${shared_ext}$major' 16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16386 shlibpath_var=LD_LIBRARY_PATH 16387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16389 ;; 16390 16391rdos*) 16392 dynamic_linker=no 16393 ;; 16394 16395solaris*) 16396 version_type=linux 16397 need_lib_prefix=no 16398 need_version=no 16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16400 soname_spec='${libname}${release}${shared_ext}$major' 16401 shlibpath_var=LD_LIBRARY_PATH 16402 shlibpath_overrides_runpath=yes 16403 hardcode_into_libs=yes 16404 # ldd complains unless libraries are executable 16405 postinstall_cmds='chmod +x $lib' 16406 ;; 16407 16408sunos4*) 16409 version_type=sunos 16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16412 shlibpath_var=LD_LIBRARY_PATH 16413 shlibpath_overrides_runpath=yes 16414 if test "$with_gnu_ld" = yes; then 16415 need_lib_prefix=no 16416 fi 16417 need_version=yes 16418 ;; 16419 16420sysv4 | sysv4.3*) 16421 version_type=linux 16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16423 soname_spec='${libname}${release}${shared_ext}$major' 16424 shlibpath_var=LD_LIBRARY_PATH 16425 case $host_vendor in 16426 sni) 16427 shlibpath_overrides_runpath=no 16428 need_lib_prefix=no 16429 runpath_var=LD_RUN_PATH 16430 ;; 16431 siemens) 16432 need_lib_prefix=no 16433 ;; 16434 motorola) 16435 need_lib_prefix=no 16436 need_version=no 16437 shlibpath_overrides_runpath=no 16438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16439 ;; 16440 esac 16441 ;; 16442 16443sysv4*MP*) 16444 if test -d /usr/nec ;then 16445 version_type=linux 16446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16447 soname_spec='$libname${shared_ext}.$major' 16448 shlibpath_var=LD_LIBRARY_PATH 16449 fi 16450 ;; 16451 16452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16453 version_type=freebsd-elf 16454 need_lib_prefix=no 16455 need_version=no 16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16457 soname_spec='${libname}${release}${shared_ext}$major' 16458 shlibpath_var=LD_LIBRARY_PATH 16459 shlibpath_overrides_runpath=yes 16460 hardcode_into_libs=yes 16461 if test "$with_gnu_ld" = yes; then 16462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16463 else 16464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16465 case $host_os in 16466 sco3.2v5*) 16467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16468 ;; 16469 esac 16470 fi 16471 sys_lib_dlsearch_path_spec='/usr/lib' 16472 ;; 16473 16474tpf*) 16475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16476 version_type=linux 16477 need_lib_prefix=no 16478 need_version=no 16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16480 shlibpath_var=LD_LIBRARY_PATH 16481 shlibpath_overrides_runpath=no 16482 hardcode_into_libs=yes 16483 ;; 16484 16485uts4*) 16486 version_type=linux 16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16488 soname_spec='${libname}${release}${shared_ext}$major' 16489 shlibpath_var=LD_LIBRARY_PATH 16490 ;; 16491 16492*) 16493 dynamic_linker=no 16494 ;; 16495esac 16496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16497$as_echo "$dynamic_linker" >&6; } 16498test "$dynamic_linker" = no && can_build_shared=no 16499 16500variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16501if test "$GCC" = yes; then 16502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16503fi 16504 16505if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16506 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16507fi 16508if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16509 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16510fi 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16550$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16551hardcode_action_CXX= 16552if test -n "$hardcode_libdir_flag_spec_CXX" || 16553 test -n "$runpath_var_CXX" || 16554 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16555 16556 # We can hardcode non-existent directories. 16557 if test "$hardcode_direct_CXX" != no && 16558 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16559 # have to relink, otherwise we might link with an installed library 16560 # when we should be linking with a yet-to-be-installed one 16561 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16562 test "$hardcode_minus_L_CXX" != no; then 16563 # Linking always hardcodes the temporary library directory. 16564 hardcode_action_CXX=relink 16565 else 16566 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16567 hardcode_action_CXX=immediate 16568 fi 16569else 16570 # We cannot hardcode anything, or else we can only hardcode existing 16571 # directories. 16572 hardcode_action_CXX=unsupported 16573fi 16574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16575$as_echo "$hardcode_action_CXX" >&6; } 16576 16577if test "$hardcode_action_CXX" = relink || 16578 test "$inherit_rpath_CXX" = yes; then 16579 # Fast installation is not supported 16580 enable_fast_install=no 16581elif test "$shlibpath_overrides_runpath" = yes || 16582 test "$enable_shared" = no; then 16583 # Fast installation is not necessary 16584 enable_fast_install=needless 16585fi 16586 16587 16588 16589 16590 16591 16592 16593 fi # test -n "$compiler" 16594 16595 CC=$lt_save_CC 16596 CFLAGS=$lt_save_CFLAGS 16597 LDCXX=$LD 16598 LD=$lt_save_LD 16599 GCC=$lt_save_GCC 16600 with_gnu_ld=$lt_save_with_gnu_ld 16601 lt_cv_path_LDCXX=$lt_cv_path_LD 16602 lt_cv_path_LD=$lt_save_path_LD 16603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16605fi # test "$_lt_caught_CXX_error" != yes 16606 16607ac_ext=c 16608ac_cpp='$CPP $CPPFLAGS' 16609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16611ac_compiler_gnu=$ac_cv_c_compiler_gnu 16612 16613 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 16615$as_echo_n "checking for library containing strerror... " >&6; } 16616if ${ac_cv_search_strerror+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 ac_func_search_save_LIBS=$LIBS 16620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622 16623/* Override any GCC internal prototype to avoid an error. 16624 Use char because int might match the return type of a GCC 16625 builtin and then its argument prototype would still apply. */ 16626#ifdef __cplusplus 16627extern "C" 16628#endif 16629char strerror (); 16630int 16631main () 16632{ 16633return strerror (); 16634 ; 16635 return 0; 16636} 16637_ACEOF 16638for ac_lib in '' cposix; do 16639 if test -z "$ac_lib"; then 16640 ac_res="none required" 16641 else 16642 ac_res=-l$ac_lib 16643 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16644 fi 16645 if ac_fn_c_try_link "$LINENO"; then : 16646 ac_cv_search_strerror=$ac_res 16647fi 16648rm -f core conftest.err conftest.$ac_objext \ 16649 conftest$ac_exeext 16650 if ${ac_cv_search_strerror+:} false; then : 16651 break 16652fi 16653done 16654if ${ac_cv_search_strerror+:} false; then : 16655 16656else 16657 ac_cv_search_strerror=no 16658fi 16659rm conftest.$ac_ext 16660LIBS=$ac_func_search_save_LIBS 16661fi 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 16663$as_echo "$ac_cv_search_strerror" >&6; } 16664ac_res=$ac_cv_search_strerror 16665if test "$ac_res" != no; then : 16666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16667 16668fi 16669 16670 case $ac_cv_prog_cc_stdc in #( 16671 no) : 16672 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 16673 *) : 16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 16675$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 16676if ${ac_cv_prog_cc_c99+:} false; then : 16677 $as_echo_n "(cached) " >&6 16678else 16679 ac_cv_prog_cc_c99=no 16680ac_save_CC=$CC 16681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682/* end confdefs.h. */ 16683#include <stdarg.h> 16684#include <stdbool.h> 16685#include <stdlib.h> 16686#include <wchar.h> 16687#include <stdio.h> 16688 16689// Check varargs macros. These examples are taken from C99 6.10.3.5. 16690#define debug(...) fprintf (stderr, __VA_ARGS__) 16691#define showlist(...) puts (#__VA_ARGS__) 16692#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 16693static void 16694test_varargs_macros (void) 16695{ 16696 int x = 1234; 16697 int y = 5678; 16698 debug ("Flag"); 16699 debug ("X = %d\n", x); 16700 showlist (The first, second, and third items.); 16701 report (x>y, "x is %d but y is %d", x, y); 16702} 16703 16704// Check long long types. 16705#define BIG64 18446744073709551615ull 16706#define BIG32 4294967295ul 16707#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 16708#if !BIG_OK 16709 your preprocessor is broken; 16710#endif 16711#if BIG_OK 16712#else 16713 your preprocessor is broken; 16714#endif 16715static long long int bignum = -9223372036854775807LL; 16716static unsigned long long int ubignum = BIG64; 16717 16718struct incomplete_array 16719{ 16720 int datasize; 16721 double data[]; 16722}; 16723 16724struct named_init { 16725 int number; 16726 const wchar_t *name; 16727 double average; 16728}; 16729 16730typedef const char *ccp; 16731 16732static inline int 16733test_restrict (ccp restrict text) 16734{ 16735 // See if C++-style comments work. 16736 // Iterate through items via the restricted pointer. 16737 // Also check for declarations in for loops. 16738 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 16739 continue; 16740 return 0; 16741} 16742 16743// Check varargs and va_copy. 16744static void 16745test_varargs (const char *format, ...) 16746{ 16747 va_list args; 16748 va_start (args, format); 16749 va_list args_copy; 16750 va_copy (args_copy, args); 16751 16752 const char *str; 16753 int number; 16754 float fnumber; 16755 16756 while (*format) 16757 { 16758 switch (*format++) 16759 { 16760 case 's': // string 16761 str = va_arg (args_copy, const char *); 16762 break; 16763 case 'd': // int 16764 number = va_arg (args_copy, int); 16765 break; 16766 case 'f': // float 16767 fnumber = va_arg (args_copy, double); 16768 break; 16769 default: 16770 break; 16771 } 16772 } 16773 va_end (args_copy); 16774 va_end (args); 16775} 16776 16777int 16778main () 16779{ 16780 16781 // Check bool. 16782 _Bool success = false; 16783 16784 // Check restrict. 16785 if (test_restrict ("String literal") == 0) 16786 success = true; 16787 char *restrict newvar = "Another string"; 16788 16789 // Check varargs. 16790 test_varargs ("s, d' f .", "string", 65, 34.234); 16791 test_varargs_macros (); 16792 16793 // Check flexible array members. 16794 struct incomplete_array *ia = 16795 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 16796 ia->datasize = 10; 16797 for (int i = 0; i < ia->datasize; ++i) 16798 ia->data[i] = i * 1.234; 16799 16800 // Check named initializers. 16801 struct named_init ni = { 16802 .number = 34, 16803 .name = L"Test wide string", 16804 .average = 543.34343, 16805 }; 16806 16807 ni.number = 58; 16808 16809 int dynamic_array[ni.number]; 16810 dynamic_array[ni.number - 1] = 543; 16811 16812 // work around unused variable warnings 16813 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 16814 || dynamic_array[ni.number - 1] != 543); 16815 16816 ; 16817 return 0; 16818} 16819_ACEOF 16820for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 16821do 16822 CC="$ac_save_CC $ac_arg" 16823 if ac_fn_c_try_compile "$LINENO"; then : 16824 ac_cv_prog_cc_c99=$ac_arg 16825fi 16826rm -f core conftest.err conftest.$ac_objext 16827 test "x$ac_cv_prog_cc_c99" != "xno" && break 16828done 16829rm -f conftest.$ac_ext 16830CC=$ac_save_CC 16831 16832fi 16833# AC_CACHE_VAL 16834case "x$ac_cv_prog_cc_c99" in 16835 x) 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16837$as_echo "none needed" >&6; } ;; 16838 xno) 16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16840$as_echo "unsupported" >&6; } ;; 16841 *) 16842 CC="$CC $ac_cv_prog_cc_c99" 16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 16844$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 16845esac 16846if test "x$ac_cv_prog_cc_c99" != xno; then : 16847 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 16848else 16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 16850$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 16851if ${ac_cv_prog_cc_c89+:} false; then : 16852 $as_echo_n "(cached) " >&6 16853else 16854 ac_cv_prog_cc_c89=no 16855ac_save_CC=$CC 16856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858#include <stdarg.h> 16859#include <stdio.h> 16860struct stat; 16861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 16862struct buf { int x; }; 16863FILE * (*rcsopen) (struct buf *, struct stat *, int); 16864static char *e (p, i) 16865 char **p; 16866 int i; 16867{ 16868 return p[i]; 16869} 16870static char *f (char * (*g) (char **, int), char **p, ...) 16871{ 16872 char *s; 16873 va_list v; 16874 va_start (v,p); 16875 s = g (p, va_arg (v,int)); 16876 va_end (v); 16877 return s; 16878} 16879 16880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 16881 function prototypes and stuff, but not '\xHH' hex character constants. 16882 These don't provoke an error unfortunately, instead are silently treated 16883 as 'x'. The following induces an error, until -std is added to get 16884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 16885 array size at least. It's necessary to write '\x00'==0 to get something 16886 that's true only with -std. */ 16887int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 16888 16889/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 16890 inside strings and character constants. */ 16891#define FOO(x) 'x' 16892int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 16893 16894int test (int i, double x); 16895struct s1 {int (*f) (int a);}; 16896struct s2 {int (*f) (double a);}; 16897int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 16898int argc; 16899char **argv; 16900int 16901main () 16902{ 16903return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 16904 ; 16905 return 0; 16906} 16907_ACEOF 16908for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 16909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 16910do 16911 CC="$ac_save_CC $ac_arg" 16912 if ac_fn_c_try_compile "$LINENO"; then : 16913 ac_cv_prog_cc_c89=$ac_arg 16914fi 16915rm -f core conftest.err conftest.$ac_objext 16916 test "x$ac_cv_prog_cc_c89" != "xno" && break 16917done 16918rm -f conftest.$ac_ext 16919CC=$ac_save_CC 16920 16921fi 16922# AC_CACHE_VAL 16923case "x$ac_cv_prog_cc_c89" in 16924 x) 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16926$as_echo "none needed" >&6; } ;; 16927 xno) 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16929$as_echo "unsupported" >&6; } ;; 16930 *) 16931 CC="$CC $ac_cv_prog_cc_c89" 16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 16933$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 16934esac 16935if test "x$ac_cv_prog_cc_c89" != xno; then : 16936 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 16937else 16938 ac_cv_prog_cc_stdc=no 16939fi 16940 16941fi 16942 ;; 16943esac 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 16945$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 16946 if ${ac_cv_prog_cc_stdc+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948fi 16949 16950 case $ac_cv_prog_cc_stdc in #( 16951 no) : 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16953$as_echo "unsupported" >&6; } ;; #( 16954 '') : 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16956$as_echo "none needed" >&6; } ;; #( 16957 *) : 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 16959$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 16960esac 16961 16962#if test -z "$CXX" -a "$CC" = "gcc"; then 16963# CXX="gcc" 16964#fi 16965ac_ext=cpp 16966ac_cpp='$CXXCPP $CPPFLAGS' 16967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16970if test -z "$CXX"; then 16971 if test -n "$CCC"; then 16972 CXX=$CCC 16973 else 16974 if test -n "$ac_tool_prefix"; then 16975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16976 do 16977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16978set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16980$as_echo_n "checking for $ac_word... " >&6; } 16981if ${ac_cv_prog_CXX+:} false; then : 16982 $as_echo_n "(cached) " >&6 16983else 16984 if test -n "$CXX"; then 16985 ac_cv_prog_CXX="$CXX" # Let the user override the test. 16986else 16987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16988for as_dir in $PATH 16989do 16990 IFS=$as_save_IFS 16991 test -z "$as_dir" && as_dir=. 16992 for ac_exec_ext in '' $ac_executable_extensions; do 16993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16994 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 16995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16996 break 2 16997 fi 16998done 16999 done 17000IFS=$as_save_IFS 17001 17002fi 17003fi 17004CXX=$ac_cv_prog_CXX 17005if test -n "$CXX"; then 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 17007$as_echo "$CXX" >&6; } 17008else 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17010$as_echo "no" >&6; } 17011fi 17012 17013 17014 test -n "$CXX" && break 17015 done 17016fi 17017if test -z "$CXX"; then 17018 ac_ct_CXX=$CXX 17019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 17020do 17021 # Extract the first word of "$ac_prog", so it can be a program name with args. 17022set dummy $ac_prog; ac_word=$2 17023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17024$as_echo_n "checking for $ac_word... " >&6; } 17025if ${ac_cv_prog_ac_ct_CXX+:} false; then : 17026 $as_echo_n "(cached) " >&6 17027else 17028 if test -n "$ac_ct_CXX"; then 17029 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 17030else 17031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17032for as_dir in $PATH 17033do 17034 IFS=$as_save_IFS 17035 test -z "$as_dir" && as_dir=. 17036 for ac_exec_ext in '' $ac_executable_extensions; do 17037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17038 ac_cv_prog_ac_ct_CXX="$ac_prog" 17039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17040 break 2 17041 fi 17042done 17043 done 17044IFS=$as_save_IFS 17045 17046fi 17047fi 17048ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 17049if test -n "$ac_ct_CXX"; then 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 17051$as_echo "$ac_ct_CXX" >&6; } 17052else 17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17054$as_echo "no" >&6; } 17055fi 17056 17057 17058 test -n "$ac_ct_CXX" && break 17059done 17060 17061 if test "x$ac_ct_CXX" = x; then 17062 CXX="g++" 17063 else 17064 case $cross_compiling:$ac_tool_warned in 17065yes:) 17066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17068ac_tool_warned=yes ;; 17069esac 17070 CXX=$ac_ct_CXX 17071 fi 17072fi 17073 17074 fi 17075fi 17076# Provide some information about the compiler. 17077$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 17078set X $ac_compile 17079ac_compiler=$2 17080for ac_option in --version -v -V -qversion; do 17081 { { ac_try="$ac_compiler $ac_option >&5" 17082case "(($ac_try" in 17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17084 *) ac_try_echo=$ac_try;; 17085esac 17086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17087$as_echo "$ac_try_echo"; } >&5 17088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 17089 ac_status=$? 17090 if test -s conftest.err; then 17091 sed '10a\ 17092... rest of stderr output deleted ... 17093 10q' conftest.err >conftest.er1 17094 cat conftest.er1 >&5 17095 fi 17096 rm -f conftest.er1 conftest.err 17097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17098 test $ac_status = 0; } 17099done 17100 17101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 17102$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 17103if ${ac_cv_cxx_compiler_gnu+:} false; then : 17104 $as_echo_n "(cached) " >&6 17105else 17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17107/* end confdefs.h. */ 17108 17109int 17110main () 17111{ 17112#ifndef __GNUC__ 17113 choke me 17114#endif 17115 17116 ; 17117 return 0; 17118} 17119_ACEOF 17120if ac_fn_cxx_try_compile "$LINENO"; then : 17121 ac_compiler_gnu=yes 17122else 17123 ac_compiler_gnu=no 17124fi 17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17126ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 17127 17128fi 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 17130$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 17131if test $ac_compiler_gnu = yes; then 17132 GXX=yes 17133else 17134 GXX= 17135fi 17136ac_test_CXXFLAGS=${CXXFLAGS+set} 17137ac_save_CXXFLAGS=$CXXFLAGS 17138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 17139$as_echo_n "checking whether $CXX accepts -g... " >&6; } 17140if ${ac_cv_prog_cxx_g+:} false; then : 17141 $as_echo_n "(cached) " >&6 17142else 17143 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 17144 ac_cxx_werror_flag=yes 17145 ac_cv_prog_cxx_g=no 17146 CXXFLAGS="-g" 17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148/* end confdefs.h. */ 17149 17150int 17151main () 17152{ 17153 17154 ; 17155 return 0; 17156} 17157_ACEOF 17158if ac_fn_cxx_try_compile "$LINENO"; then : 17159 ac_cv_prog_cxx_g=yes 17160else 17161 CXXFLAGS="" 17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17163/* end confdefs.h. */ 17164 17165int 17166main () 17167{ 17168 17169 ; 17170 return 0; 17171} 17172_ACEOF 17173if ac_fn_cxx_try_compile "$LINENO"; then : 17174 17175else 17176 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17177 CXXFLAGS="-g" 17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17179/* end confdefs.h. */ 17180 17181int 17182main () 17183{ 17184 17185 ; 17186 return 0; 17187} 17188_ACEOF 17189if ac_fn_cxx_try_compile "$LINENO"; then : 17190 ac_cv_prog_cxx_g=yes 17191fi 17192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17193fi 17194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17195fi 17196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17198fi 17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 17200$as_echo "$ac_cv_prog_cxx_g" >&6; } 17201if test "$ac_test_CXXFLAGS" = set; then 17202 CXXFLAGS=$ac_save_CXXFLAGS 17203elif test $ac_cv_prog_cxx_g = yes; then 17204 if test "$GXX" = yes; then 17205 CXXFLAGS="-g -O2" 17206 else 17207 CXXFLAGS="-g" 17208 fi 17209else 17210 if test "$GXX" = yes; then 17211 CXXFLAGS="-O2" 17212 else 17213 CXXFLAGS= 17214 fi 17215fi 17216ac_ext=c 17217ac_cpp='$CPP $CPPFLAGS' 17218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17220ac_compiler_gnu=$ac_cv_c_compiler_gnu 17221 17222depcc="$CXX" am_compiler_list= 17223 17224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17225$as_echo_n "checking dependency style of $depcc... " >&6; } 17226if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 17227 $as_echo_n "(cached) " >&6 17228else 17229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17230 # We make a subdir and do the tests there. Otherwise we can end up 17231 # making bogus files that we don't know about and never remove. For 17232 # instance it was reported that on HP-UX the gcc test will end up 17233 # making a dummy file named `D' -- because `-MD' means `put the output 17234 # in D'. 17235 mkdir conftest.dir 17236 # Copy depcomp to subdir because otherwise we won't find it if we're 17237 # using a relative directory. 17238 cp "$am_depcomp" conftest.dir 17239 cd conftest.dir 17240 # We will build objects and dependencies in a subdirectory because 17241 # it helps to detect inapplicable dependency modes. For instance 17242 # both Tru64's cc and ICC support -MD to output dependencies as a 17243 # side effect of compilation, but ICC will put the dependencies in 17244 # the current directory while Tru64 will put them in the object 17245 # directory. 17246 mkdir sub 17247 17248 am_cv_CXX_dependencies_compiler_type=none 17249 if test "$am_compiler_list" = ""; then 17250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17251 fi 17252 am__universal=false 17253 case " $depcc " in #( 17254 *\ -arch\ *\ -arch\ *) am__universal=true ;; 17255 esac 17256 17257 for depmode in $am_compiler_list; do 17258 # Setup a source with many dependencies, because some compilers 17259 # like to wrap large dependency lists on column 80 (with \), and 17260 # we should not choose a depcomp mode which is confused by this. 17261 # 17262 # We need to recreate these files for each test, as the compiler may 17263 # overwrite some of them when testing with obscure command lines. 17264 # This happens at least with the AIX C compiler. 17265 : > sub/conftest.c 17266 for i in 1 2 3 4 5 6; do 17267 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17268 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 17269 # Solaris 8's {/usr,}/bin/sh. 17270 touch sub/conftst$i.h 17271 done 17272 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17273 17274 # We check with `-c' and `-o' for the sake of the "dashmstdout" 17275 # mode. It turns out that the SunPro C++ compiler does not properly 17276 # handle `-M -o', and we need to detect this. Also, some Intel 17277 # versions had trouble with output in subdirs 17278 am__obj=sub/conftest.${OBJEXT-o} 17279 am__minus_obj="-o $am__obj" 17280 case $depmode in 17281 gcc) 17282 # This depmode causes a compiler race in universal mode. 17283 test "$am__universal" = false || continue 17284 ;; 17285 nosideeffect) 17286 # after this tag, mechanisms are not by side-effect, so they'll 17287 # only be used when explicitly requested 17288 if test "x$enable_dependency_tracking" = xyes; then 17289 continue 17290 else 17291 break 17292 fi 17293 ;; 17294 msvisualcpp | msvcmsys) 17295 # This compiler won't grok `-c -o', but also, the minuso test has 17296 # not run yet. These depmodes are late enough in the game, and 17297 # so weak that their functioning should not be impacted. 17298 am__obj=conftest.${OBJEXT-o} 17299 am__minus_obj= 17300 ;; 17301 none) break ;; 17302 esac 17303 if depmode=$depmode \ 17304 source=sub/conftest.c object=$am__obj \ 17305 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17306 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17307 >/dev/null 2>conftest.err && 17308 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17310 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17312 # icc doesn't choke on unknown options, it will just issue warnings 17313 # or remarks (even with -Werror). So we grep stderr for any message 17314 # that says an option was ignored or not supported. 17315 # When given -MP, icc 7.0 and 7.1 complain thusly: 17316 # icc: Command line warning: ignoring option '-M'; no argument required 17317 # The diagnosis changed in icc 8.0: 17318 # icc: Command line remark: option '-MP' not supported 17319 if (grep 'ignoring option' conftest.err || 17320 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17321 am_cv_CXX_dependencies_compiler_type=$depmode 17322 break 17323 fi 17324 fi 17325 done 17326 17327 cd .. 17328 rm -rf conftest.dir 17329else 17330 am_cv_CXX_dependencies_compiler_type=none 17331fi 17332 17333fi 17334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 17335$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 17336CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 17337 17338 if 17339 test "x$enable_dependency_tracking" != xno \ 17340 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 17341 am__fastdepCXX_TRUE= 17342 am__fastdepCXX_FALSE='#' 17343else 17344 am__fastdepCXX_TRUE='#' 17345 am__fastdepCXX_FALSE= 17346fi 17347 17348 17349if test "x$GXX" = "xyes"; then 17350 case "$host_os" in 17351 cygwin* | mingw*) 17352 ;; 17353 *) 17354 CXXFLAGS="$CXXFLAGS -ansi" 17355 ;; 17356 esac 17357fi 17358 17359 17360 17361 17362 17363 17364 17365 17366if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17367 if test -n "$ac_tool_prefix"; then 17368 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17369set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17371$as_echo_n "checking for $ac_word... " >&6; } 17372if ${ac_cv_path_PKG_CONFIG+:} false; then : 17373 $as_echo_n "(cached) " >&6 17374else 17375 case $PKG_CONFIG in 17376 [\\/]* | ?:[\\/]*) 17377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17378 ;; 17379 *) 17380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17381for as_dir in $PATH 17382do 17383 IFS=$as_save_IFS 17384 test -z "$as_dir" && as_dir=. 17385 for ac_exec_ext in '' $ac_executable_extensions; do 17386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17389 break 2 17390 fi 17391done 17392 done 17393IFS=$as_save_IFS 17394 17395 ;; 17396esac 17397fi 17398PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17399if test -n "$PKG_CONFIG"; then 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17401$as_echo "$PKG_CONFIG" >&6; } 17402else 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17404$as_echo "no" >&6; } 17405fi 17406 17407 17408fi 17409if test -z "$ac_cv_path_PKG_CONFIG"; then 17410 ac_pt_PKG_CONFIG=$PKG_CONFIG 17411 # Extract the first word of "pkg-config", so it can be a program name with args. 17412set dummy pkg-config; ac_word=$2 17413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17414$as_echo_n "checking for $ac_word... " >&6; } 17415if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17416 $as_echo_n "(cached) " >&6 17417else 17418 case $ac_pt_PKG_CONFIG in 17419 [\\/]* | ?:[\\/]*) 17420 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17421 ;; 17422 *) 17423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17424for as_dir in $PATH 17425do 17426 IFS=$as_save_IFS 17427 test -z "$as_dir" && as_dir=. 17428 for ac_exec_ext in '' $ac_executable_extensions; do 17429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17430 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17432 break 2 17433 fi 17434done 17435 done 17436IFS=$as_save_IFS 17437 17438 ;; 17439esac 17440fi 17441ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17442if test -n "$ac_pt_PKG_CONFIG"; then 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17444$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17445else 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17447$as_echo "no" >&6; } 17448fi 17449 17450 if test "x$ac_pt_PKG_CONFIG" = x; then 17451 PKG_CONFIG="" 17452 else 17453 case $cross_compiling:$ac_tool_warned in 17454yes:) 17455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17457ac_tool_warned=yes ;; 17458esac 17459 PKG_CONFIG=$ac_pt_PKG_CONFIG 17460 fi 17461else 17462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17463fi 17464 17465fi 17466if test -n "$PKG_CONFIG"; then 17467 _pkg_min_version=0.9.0 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17469$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17470 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17472$as_echo "yes" >&6; } 17473 else 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17475$as_echo "no" >&6; } 17476 PKG_CONFIG="" 17477 fi 17478fi 17479 17480 17481$as_echo "#define OPI_SUPPORT 1" >>confdefs.h 17482 17483 17484$as_echo "#define MULTITHREADED 1" >>confdefs.h 17485 17486 17487$as_echo "#define TEXTOUT_WORD_LIST 1" >>confdefs.h 17488 17489 17490win32_libs="" 17491create_shared_lib="" 17492auto_import_flags="" 17493case "$host_os" in 17494 cygwin*) 17495 create_shared_lib="-no-undefined" 17496 ;; 17497 mingw*) 17498 os_win32=yes 17499 win32_libs="-lgdi32" 17500 create_shared_lib="-no-undefined" 17501 auto_import_flags="-Wl,--enable-auto-import" 17502 ;; 17503esac 17504 17505 17506 17507 17508 17509 17510 17511 17512ac_ext=c 17513ac_cpp='$CPP $CPPFLAGS' 17514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17516ac_compiler_gnu=$ac_cv_c_compiler_gnu 17517 17518acx_pthread_ok=no 17519 17520# We used to check for pthread.h first, but this fails if pthread.h 17521# requires special compiler flags (e.g. on True64 or Sequent). 17522# It gets checked for in the link test anyway. 17523 17524# First of all, check if the user has set any of the PTHREAD_LIBS, 17525# etcetera environment variables, and if threads linking works using 17526# them: 17527if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 17528 save_CFLAGS="$CFLAGS" 17529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17530 save_LIBS="$LIBS" 17531 LIBS="$PTHREAD_LIBS $LIBS" 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 17533$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17535/* end confdefs.h. */ 17536 17537/* Override any GCC internal prototype to avoid an error. 17538 Use char because int might match the return type of a GCC 17539 builtin and then its argument prototype would still apply. */ 17540#ifdef __cplusplus 17541extern "C" 17542#endif 17543char pthread_join (); 17544int 17545main () 17546{ 17547return pthread_join (); 17548 ; 17549 return 0; 17550} 17551_ACEOF 17552if ac_fn_c_try_link "$LINENO"; then : 17553 acx_pthread_ok=yes 17554fi 17555rm -f core conftest.err conftest.$ac_objext \ 17556 conftest$ac_exeext conftest.$ac_ext 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 17558$as_echo "$acx_pthread_ok" >&6; } 17559 if test x"$acx_pthread_ok" = xno; then 17560 PTHREAD_LIBS="" 17561 PTHREAD_CFLAGS="" 17562 fi 17563 LIBS="$save_LIBS" 17564 CFLAGS="$save_CFLAGS" 17565fi 17566 17567# We must check for the threads library under a number of different 17568# names; the ordering is very important because some systems 17569# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17570# libraries is broken (non-POSIX). 17571 17572# Create a list of thread flags to try. Items starting with a "-" are 17573# C compiler flags, and other items are library names, except for "none" 17574# which indicates that we try without any flags at all, and "pthread-config" 17575# which is a program returning the flags for the Pth emulation library. 17576 17577acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17578 17579# The ordering *is* (sometimes) important. Some notes on the 17580# individual items follow: 17581 17582# pthreads: AIX (must check this before -lpthread) 17583# none: in case threads are in libc; should be tried before -Kthread and 17584# other compiler flags to prevent continual compiler warnings 17585# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17586# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17587# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17588# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 17589# -pthreads: Solaris/gcc 17590# -mthreads: Mingw32/gcc, Lynx/gcc 17591# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17592# doesn't hurt to check since this sometimes defines pthreads too; 17593# also defines -D_REENTRANT) 17594# ... -mt is also the pthreads flag for HP/aCC 17595# pthread: Linux, etcetera 17596# --thread-safe: KAI C++ 17597# pthread-config: use pthread-config program (for GNU Pth library) 17598 17599case "${host_cpu}-${host_os}" in 17600 *solaris*) 17601 17602 # On Solaris (at least, for some versions), libc contains stubbed 17603 # (non-functional) versions of the pthreads routines, so link-based 17604 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 17605 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 17606 # a function called by this macro, so we could check for that, but 17607 # who knows whether they'll stub that too in a future libc.) So, 17608 # we'll just look for -pthreads and -lpthread first: 17609 17610 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 17611 ;; 17612esac 17613 17614if test x"$acx_pthread_ok" = xno; then 17615for flag in $acx_pthread_flags; do 17616 17617 case $flag in 17618 none) 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 17620$as_echo_n "checking whether pthreads work without any flags... " >&6; } 17621 ;; 17622 17623 -*) 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 17625$as_echo_n "checking whether pthreads work with $flag... " >&6; } 17626 PTHREAD_CFLAGS="$flag" 17627 ;; 17628 17629 pthread-config) 17630 # Extract the first word of "pthread-config", so it can be a program name with args. 17631set dummy pthread-config; ac_word=$2 17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17633$as_echo_n "checking for $ac_word... " >&6; } 17634if ${ac_cv_prog_acx_pthread_config+:} false; then : 17635 $as_echo_n "(cached) " >&6 17636else 17637 if test -n "$acx_pthread_config"; then 17638 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 17639else 17640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17641for as_dir in $PATH 17642do 17643 IFS=$as_save_IFS 17644 test -z "$as_dir" && as_dir=. 17645 for ac_exec_ext in '' $ac_executable_extensions; do 17646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17647 ac_cv_prog_acx_pthread_config="yes" 17648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17649 break 2 17650 fi 17651done 17652 done 17653IFS=$as_save_IFS 17654 17655 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 17656fi 17657fi 17658acx_pthread_config=$ac_cv_prog_acx_pthread_config 17659if test -n "$acx_pthread_config"; then 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 17661$as_echo "$acx_pthread_config" >&6; } 17662else 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17664$as_echo "no" >&6; } 17665fi 17666 17667 17668 if test x"$acx_pthread_config" = xno; then continue; fi 17669 PTHREAD_CFLAGS="`pthread-config --cflags`" 17670 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 17671 ;; 17672 17673 *) 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 17675$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 17676 PTHREAD_LIBS="-l$flag" 17677 ;; 17678 esac 17679 17680 save_LIBS="$LIBS" 17681 save_CFLAGS="$CFLAGS" 17682 LIBS="$PTHREAD_LIBS $LIBS" 17683 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17684 17685 # Check for various functions. We must include pthread.h, 17686 # since some functions may be macros. (On the Sequent, we 17687 # need a special flag -Kthread to make this header compile.) 17688 # We check for pthread_join because it is in -lpthread on IRIX 17689 # while pthread_create is in libc. We check for pthread_attr_init 17690 # due to DEC craziness with -lpthreads. We check for 17691 # pthread_cleanup_push because it is one of the few pthread 17692 # functions on Solaris that doesn't have a non-functional libc stub. 17693 # We try pthread_create on general principles. 17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17695/* end confdefs.h. */ 17696#include <pthread.h> 17697int 17698main () 17699{ 17700pthread_t th; pthread_join(th, 0); 17701 pthread_attr_init(0); pthread_cleanup_push(0, 0); 17702 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 17703 ; 17704 return 0; 17705} 17706_ACEOF 17707if ac_fn_c_try_link "$LINENO"; then : 17708 acx_pthread_ok=yes 17709fi 17710rm -f core conftest.err conftest.$ac_objext \ 17711 conftest$ac_exeext conftest.$ac_ext 17712 17713 LIBS="$save_LIBS" 17714 CFLAGS="$save_CFLAGS" 17715 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 17717$as_echo "$acx_pthread_ok" >&6; } 17718 if test "x$acx_pthread_ok" = xyes; then 17719 break; 17720 fi 17721 17722 PTHREAD_LIBS="" 17723 PTHREAD_CFLAGS="" 17724done 17725fi 17726 17727# Various other checks: 17728if test "x$acx_pthread_ok" = xyes; then 17729 save_LIBS="$LIBS" 17730 LIBS="$PTHREAD_LIBS $LIBS" 17731 save_CFLAGS="$CFLAGS" 17732 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17733 17734 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 17736$as_echo_n "checking for joinable pthread attribute... " >&6; } 17737 attr_name=unknown 17738 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17740/* end confdefs.h. */ 17741#include <pthread.h> 17742int 17743main () 17744{ 17745int attr=$attr; return attr; 17746 ; 17747 return 0; 17748} 17749_ACEOF 17750if ac_fn_c_try_link "$LINENO"; then : 17751 attr_name=$attr; break 17752fi 17753rm -f core conftest.err conftest.$ac_objext \ 17754 conftest$ac_exeext conftest.$ac_ext 17755 done 17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 17757$as_echo "$attr_name" >&6; } 17758 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 17759 17760cat >>confdefs.h <<_ACEOF 17761#define PTHREAD_CREATE_JOINABLE $attr_name 17762_ACEOF 17763 17764 fi 17765 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 17767$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 17768 flag=no 17769 case "${host_cpu}-${host_os}" in 17770 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 17771 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 17772 esac 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 17774$as_echo "${flag}" >&6; } 17775 if test "x$flag" != xno; then 17776 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 17777 fi 17778 17779 LIBS="$save_LIBS" 17780 CFLAGS="$save_CFLAGS" 17781 17782 # More AIX lossage: must compile with xlc_r or cc_r 17783 if test x"$GCC" != xyes; then 17784 for ac_prog in xlc_r cc_r 17785do 17786 # Extract the first word of "$ac_prog", so it can be a program name with args. 17787set dummy $ac_prog; ac_word=$2 17788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17789$as_echo_n "checking for $ac_word... " >&6; } 17790if ${ac_cv_prog_PTHREAD_CC+:} false; then : 17791 $as_echo_n "(cached) " >&6 17792else 17793 if test -n "$PTHREAD_CC"; then 17794 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 17795else 17796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17797for as_dir in $PATH 17798do 17799 IFS=$as_save_IFS 17800 test -z "$as_dir" && as_dir=. 17801 for ac_exec_ext in '' $ac_executable_extensions; do 17802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17803 ac_cv_prog_PTHREAD_CC="$ac_prog" 17804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17805 break 2 17806 fi 17807done 17808 done 17809IFS=$as_save_IFS 17810 17811fi 17812fi 17813PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 17814if test -n "$PTHREAD_CC"; then 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 17816$as_echo "$PTHREAD_CC" >&6; } 17817else 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17819$as_echo "no" >&6; } 17820fi 17821 17822 17823 test -n "$PTHREAD_CC" && break 17824done 17825test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 17826 17827 else 17828 PTHREAD_CC=$CC 17829 fi 17830else 17831 PTHREAD_CC="$CC" 17832fi 17833 17834 17835 17836 17837 17838# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17839if test x"$acx_pthread_ok" = xyes; then 17840 17841$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 17842 17843 : 17844else 17845 acx_pthread_ok=no 17846 17847fi 17848ac_ext=c 17849ac_cpp='$CPP $CPPFLAGS' 17850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17852ac_compiler_gnu=$ac_cv_c_compiler_gnu 17853 17854 17855 17856# Check whether --enable-xpdf-headers was given. 17857if test "${enable_xpdf_headers+set}" = set; then : 17858 enableval=$enable_xpdf_headers; enable_xpdf_headers=$enableval 17859else 17860 enable_xpdf_headers="no" 17861fi 17862 17863 if test x$enable_xpdf_headers = xyes; then 17864 ENABLE_XPDF_HEADERS_TRUE= 17865 ENABLE_XPDF_HEADERS_FALSE='#' 17866else 17867 ENABLE_XPDF_HEADERS_TRUE='#' 17868 ENABLE_XPDF_HEADERS_FALSE= 17869fi 17870 17871 17872# Check whether --enable-single-precision was given. 17873if test "${enable_single_precision+set}" = set; then : 17874 enableval=$enable_single_precision; 17875$as_echo "#define USE_FLOAT 1" >>confdefs.h 17876 17877fi 17878 17879 17880# Check whether --enable-fixedpoint was given. 17881if test "${enable_fixedpoint+set}" = set; then : 17882 enableval=$enable_fixedpoint; 17883$as_echo "#define USE_FIXEDPOINT 1" >>confdefs.h 17884 17885fi 17886 17887 17888# Check whether --enable-relocatable was given. 17889if test "${enable_relocatable+set}" = set; then : 17890 enableval=$enable_relocatable; enable_relocatable=$enableval 17891else 17892 if test x$os_win32 = xyes; then 17893 # default to yes on native Windows. 17894 enable_relocatable="yes" 17895 else 17896 # default to no everywhere else. 17897 enable_relocatable="no" 17898 fi 17899 17900 17901fi 17902 17903 17904if test x$enable_relocatable = xyes; then 17905 if test x$os_win32 = xyes; then 17906 17907$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h 17908 17909 else 17910 as_fn_error $? "Invalid setting for relocatable, only supported on windows" "$LINENO" 5 17911 17912 fi 17913fi 17914 17915 17916 prefix_NONE= 17917 exec_prefix_NONE= 17918 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 17919 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 17920 eval ac_define_dir="\"$"{datarootdir}/poppler"\"" 17921 eval ac_define_dir="\"$ac_define_dir\"" 17922 POPPLER_DATADIR="$ac_define_dir" 17923 17924 17925cat >>confdefs.h <<_ACEOF 17926#define POPPLER_DATADIR "$ac_define_dir" 17927_ACEOF 17928 17929 test "$prefix_NONE" && prefix=NONE 17930 test "$exec_prefix_NONE" && exec_prefix=NONE 17931 17932 17933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17934$as_echo_n "checking for X... " >&6; } 17935 17936 17937# Check whether --with-x was given. 17938if test "${with_x+set}" = set; then : 17939 withval=$with_x; 17940fi 17941 17942# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17943if test "x$with_x" = xno; then 17944 # The user explicitly disabled X. 17945 have_x=disabled 17946else 17947 case $x_includes,$x_libraries in #( 17948 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 17949 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17950 $as_echo_n "(cached) " >&6 17951else 17952 # One or both of the vars are not set, and there is no cached value. 17953ac_x_includes=no ac_x_libraries=no 17954rm -f -r conftest.dir 17955if mkdir conftest.dir; then 17956 cd conftest.dir 17957 cat >Imakefile <<'_ACEOF' 17958incroot: 17959 @echo incroot='${INCROOT}' 17960usrlibdir: 17961 @echo usrlibdir='${USRLIBDIR}' 17962libdir: 17963 @echo libdir='${LIBDIR}' 17964_ACEOF 17965 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17966 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17967 for ac_var in incroot usrlibdir libdir; do 17968 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17969 done 17970 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17971 for ac_extension in a so sl dylib la dll; do 17972 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17973 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17974 ac_im_usrlibdir=$ac_im_libdir; break 17975 fi 17976 done 17977 # Screen out bogus values from the imake configuration. They are 17978 # bogus both because they are the default anyway, and because 17979 # using them would break gcc on systems where it needs fixed includes. 17980 case $ac_im_incroot in 17981 /usr/include) ac_x_includes= ;; 17982 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 17983 esac 17984 case $ac_im_usrlibdir in 17985 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 17986 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 17987 esac 17988 fi 17989 cd .. 17990 rm -f -r conftest.dir 17991fi 17992 17993# Standard set of common directories for X headers. 17994# Check X11 before X11Rn because it is often a symlink to the current release. 17995ac_x_header_dirs=' 17996/usr/X11/include 17997/usr/X11R7/include 17998/usr/X11R6/include 17999/usr/X11R5/include 18000/usr/X11R4/include 18001 18002/usr/include/X11 18003/usr/include/X11R7 18004/usr/include/X11R6 18005/usr/include/X11R5 18006/usr/include/X11R4 18007 18008/usr/local/X11/include 18009/usr/local/X11R7/include 18010/usr/local/X11R6/include 18011/usr/local/X11R5/include 18012/usr/local/X11R4/include 18013 18014/usr/local/include/X11 18015/usr/local/include/X11R7 18016/usr/local/include/X11R6 18017/usr/local/include/X11R5 18018/usr/local/include/X11R4 18019 18020/usr/X386/include 18021/usr/x386/include 18022/usr/XFree86/include/X11 18023 18024/usr/include 18025/usr/local/include 18026/usr/unsupported/include 18027/usr/athena/include 18028/usr/local/x11r5/include 18029/usr/lpp/Xamples/include 18030 18031/usr/openwin/include 18032/usr/openwin/share/include' 18033 18034if test "$ac_x_includes" = no; then 18035 # Guess where to find include files, by looking for Xlib.h. 18036 # First, try using that file with no special directory specified. 18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18038/* end confdefs.h. */ 18039#include <X11/Xlib.h> 18040_ACEOF 18041if ac_fn_c_try_cpp "$LINENO"; then : 18042 # We can compile using X headers with no special include directory. 18043ac_x_includes= 18044else 18045 for ac_dir in $ac_x_header_dirs; do 18046 if test -r "$ac_dir/X11/Xlib.h"; then 18047 ac_x_includes=$ac_dir 18048 break 18049 fi 18050done 18051fi 18052rm -f conftest.err conftest.i conftest.$ac_ext 18053fi # $ac_x_includes = no 18054 18055if test "$ac_x_libraries" = no; then 18056 # Check for the libraries. 18057 # See if we find them without any special options. 18058 # Don't add to $LIBS permanently. 18059 ac_save_LIBS=$LIBS 18060 LIBS="-lX11 $LIBS" 18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18062/* end confdefs.h. */ 18063#include <X11/Xlib.h> 18064int 18065main () 18066{ 18067XrmInitialize () 18068 ; 18069 return 0; 18070} 18071_ACEOF 18072if ac_fn_c_try_link "$LINENO"; then : 18073 LIBS=$ac_save_LIBS 18074# We can link X programs with no special library path. 18075ac_x_libraries= 18076else 18077 LIBS=$ac_save_LIBS 18078for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18079do 18080 # Don't even attempt the hair of trying to link an X program! 18081 for ac_extension in a so sl dylib la dll; do 18082 if test -r "$ac_dir/libX11.$ac_extension"; then 18083 ac_x_libraries=$ac_dir 18084 break 2 18085 fi 18086 done 18087done 18088fi 18089rm -f core conftest.err conftest.$ac_objext \ 18090 conftest$ac_exeext conftest.$ac_ext 18091fi # $ac_x_libraries = no 18092 18093case $ac_x_includes,$ac_x_libraries in #( 18094 no,* | *,no | *\'*) 18095 # Didn't find X, or a directory has "'" in its name. 18096 ac_cv_have_x="have_x=no";; #( 18097 *) 18098 # Record where we found X for the cache. 18099 ac_cv_have_x="have_x=yes\ 18100 ac_x_includes='$ac_x_includes'\ 18101 ac_x_libraries='$ac_x_libraries'" 18102esac 18103fi 18104;; #( 18105 *) have_x=yes;; 18106 esac 18107 eval "$ac_cv_have_x" 18108fi # $with_x != no 18109 18110if test "$have_x" != yes; then 18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18112$as_echo "$have_x" >&6; } 18113 no_x=yes 18114else 18115 # If each of the values was on the command line, it overrides each guess. 18116 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18117 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18118 # Update the cache value to reflect the command line values. 18119 ac_cv_have_x="have_x=yes\ 18120 ac_x_includes='$x_includes'\ 18121 ac_x_libraries='$x_libraries'" 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18123$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18124fi 18125 18126if test "$no_x" = yes; then 18127 # Not all programs may use this symbol, but it does not hurt to define it. 18128 18129$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18130 18131 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18132else 18133 if test -n "$x_includes"; then 18134 X_CFLAGS="$X_CFLAGS -I$x_includes" 18135 fi 18136 18137 # It would also be nice to do this for all -L options, not just this one. 18138 if test -n "$x_libraries"; then 18139 X_LIBS="$X_LIBS -L$x_libraries" 18140 # For Solaris; some versions of Sun CC require a space after -R and 18141 # others require no space. Words are not sufficient . . . . 18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18143$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18144 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18145 ac_xsave_c_werror_flag=$ac_c_werror_flag 18146 ac_c_werror_flag=yes 18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18148/* end confdefs.h. */ 18149 18150int 18151main () 18152{ 18153 18154 ; 18155 return 0; 18156} 18157_ACEOF 18158if ac_fn_c_try_link "$LINENO"; then : 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18160$as_echo "no" >&6; } 18161 X_LIBS="$X_LIBS -R$x_libraries" 18162else 18163 LIBS="$ac_xsave_LIBS -R $x_libraries" 18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18165/* end confdefs.h. */ 18166 18167int 18168main () 18169{ 18170 18171 ; 18172 return 0; 18173} 18174_ACEOF 18175if ac_fn_c_try_link "$LINENO"; then : 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18177$as_echo "yes" >&6; } 18178 X_LIBS="$X_LIBS -R $x_libraries" 18179else 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18181$as_echo "neither works" >&6; } 18182fi 18183rm -f core conftest.err conftest.$ac_objext \ 18184 conftest$ac_exeext conftest.$ac_ext 18185fi 18186rm -f core conftest.err conftest.$ac_objext \ 18187 conftest$ac_exeext conftest.$ac_ext 18188 ac_c_werror_flag=$ac_xsave_c_werror_flag 18189 LIBS=$ac_xsave_LIBS 18190 fi 18191 18192 # Check for system-dependent libraries X programs must link with. 18193 # Do this before checking for the system-independent R6 libraries 18194 # (-lICE), since we may need -lsocket or whatever for X linking. 18195 18196 if test "$ISC" = yes; then 18197 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18198 else 18199 # Martyn Johnson says this is needed for Ultrix, if the X 18200 # libraries were built with DECnet support. And Karl Berry says 18201 # the Alpha needs dnet_stub (dnet does not exist). 18202 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18204/* end confdefs.h. */ 18205 18206/* Override any GCC internal prototype to avoid an error. 18207 Use char because int might match the return type of a GCC 18208 builtin and then its argument prototype would still apply. */ 18209#ifdef __cplusplus 18210extern "C" 18211#endif 18212char XOpenDisplay (); 18213int 18214main () 18215{ 18216return XOpenDisplay (); 18217 ; 18218 return 0; 18219} 18220_ACEOF 18221if ac_fn_c_try_link "$LINENO"; then : 18222 18223else 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18225$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18226if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18227 $as_echo_n "(cached) " >&6 18228else 18229 ac_check_lib_save_LIBS=$LIBS 18230LIBS="-ldnet $LIBS" 18231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18232/* end confdefs.h. */ 18233 18234/* Override any GCC internal prototype to avoid an error. 18235 Use char because int might match the return type of a GCC 18236 builtin and then its argument prototype would still apply. */ 18237#ifdef __cplusplus 18238extern "C" 18239#endif 18240char dnet_ntoa (); 18241int 18242main () 18243{ 18244return dnet_ntoa (); 18245 ; 18246 return 0; 18247} 18248_ACEOF 18249if ac_fn_c_try_link "$LINENO"; then : 18250 ac_cv_lib_dnet_dnet_ntoa=yes 18251else 18252 ac_cv_lib_dnet_dnet_ntoa=no 18253fi 18254rm -f core conftest.err conftest.$ac_objext \ 18255 conftest$ac_exeext conftest.$ac_ext 18256LIBS=$ac_check_lib_save_LIBS 18257fi 18258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18259$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18260if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18261 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18262fi 18263 18264 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18266$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18267if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18268 $as_echo_n "(cached) " >&6 18269else 18270 ac_check_lib_save_LIBS=$LIBS 18271LIBS="-ldnet_stub $LIBS" 18272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18273/* end confdefs.h. */ 18274 18275/* Override any GCC internal prototype to avoid an error. 18276 Use char because int might match the return type of a GCC 18277 builtin and then its argument prototype would still apply. */ 18278#ifdef __cplusplus 18279extern "C" 18280#endif 18281char dnet_ntoa (); 18282int 18283main () 18284{ 18285return dnet_ntoa (); 18286 ; 18287 return 0; 18288} 18289_ACEOF 18290if ac_fn_c_try_link "$LINENO"; then : 18291 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18292else 18293 ac_cv_lib_dnet_stub_dnet_ntoa=no 18294fi 18295rm -f core conftest.err conftest.$ac_objext \ 18296 conftest$ac_exeext conftest.$ac_ext 18297LIBS=$ac_check_lib_save_LIBS 18298fi 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18300$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18301if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18302 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18303fi 18304 18305 fi 18306fi 18307rm -f core conftest.err conftest.$ac_objext \ 18308 conftest$ac_exeext conftest.$ac_ext 18309 LIBS="$ac_xsave_LIBS" 18310 18311 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 18312 # to get the SysV transport functions. 18313 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18314 # needs -lnsl. 18315 # The nsl library prevents programs from opening the X display 18316 # on Irix 5.2, according to T.E. Dickey. 18317 # The functions gethostbyname, getservbyname, and inet_addr are 18318 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18319 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18320if test "x$ac_cv_func_gethostbyname" = xyes; then : 18321 18322fi 18323 18324 if test $ac_cv_func_gethostbyname = no; then 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18326$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18327if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18328 $as_echo_n "(cached) " >&6 18329else 18330 ac_check_lib_save_LIBS=$LIBS 18331LIBS="-lnsl $LIBS" 18332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18333/* end confdefs.h. */ 18334 18335/* Override any GCC internal prototype to avoid an error. 18336 Use char because int might match the return type of a GCC 18337 builtin and then its argument prototype would still apply. */ 18338#ifdef __cplusplus 18339extern "C" 18340#endif 18341char gethostbyname (); 18342int 18343main () 18344{ 18345return gethostbyname (); 18346 ; 18347 return 0; 18348} 18349_ACEOF 18350if ac_fn_c_try_link "$LINENO"; then : 18351 ac_cv_lib_nsl_gethostbyname=yes 18352else 18353 ac_cv_lib_nsl_gethostbyname=no 18354fi 18355rm -f core conftest.err conftest.$ac_objext \ 18356 conftest$ac_exeext conftest.$ac_ext 18357LIBS=$ac_check_lib_save_LIBS 18358fi 18359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18360$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18361if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18363fi 18364 18365 if test $ac_cv_lib_nsl_gethostbyname = no; then 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18367$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18368if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18369 $as_echo_n "(cached) " >&6 18370else 18371 ac_check_lib_save_LIBS=$LIBS 18372LIBS="-lbsd $LIBS" 18373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18374/* end confdefs.h. */ 18375 18376/* Override any GCC internal prototype to avoid an error. 18377 Use char because int might match the return type of a GCC 18378 builtin and then its argument prototype would still apply. */ 18379#ifdef __cplusplus 18380extern "C" 18381#endif 18382char gethostbyname (); 18383int 18384main () 18385{ 18386return gethostbyname (); 18387 ; 18388 return 0; 18389} 18390_ACEOF 18391if ac_fn_c_try_link "$LINENO"; then : 18392 ac_cv_lib_bsd_gethostbyname=yes 18393else 18394 ac_cv_lib_bsd_gethostbyname=no 18395fi 18396rm -f core conftest.err conftest.$ac_objext \ 18397 conftest$ac_exeext conftest.$ac_ext 18398LIBS=$ac_check_lib_save_LIBS 18399fi 18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18401$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18402if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18404fi 18405 18406 fi 18407 fi 18408 18409 # lieder@skyler.mavd.honeywell.com says without -lsocket, 18410 # socket/setsockopt and other routines are undefined under SCO ODT 18411 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 18412 # on later versions), says Simon Leinen: it contains gethostby* 18413 # variants that don't use the name server (or something). -lsocket 18414 # must be given before -lnsl if both are needed. We assume that 18415 # if connect needs -lnsl, so does gethostbyname. 18416 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18417if test "x$ac_cv_func_connect" = xyes; then : 18418 18419fi 18420 18421 if test $ac_cv_func_connect = no; then 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18423$as_echo_n "checking for connect in -lsocket... " >&6; } 18424if ${ac_cv_lib_socket_connect+:} false; then : 18425 $as_echo_n "(cached) " >&6 18426else 18427 ac_check_lib_save_LIBS=$LIBS 18428LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 18429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18430/* end confdefs.h. */ 18431 18432/* Override any GCC internal prototype to avoid an error. 18433 Use char because int might match the return type of a GCC 18434 builtin and then its argument prototype would still apply. */ 18435#ifdef __cplusplus 18436extern "C" 18437#endif 18438char connect (); 18439int 18440main () 18441{ 18442return connect (); 18443 ; 18444 return 0; 18445} 18446_ACEOF 18447if ac_fn_c_try_link "$LINENO"; then : 18448 ac_cv_lib_socket_connect=yes 18449else 18450 ac_cv_lib_socket_connect=no 18451fi 18452rm -f core conftest.err conftest.$ac_objext \ 18453 conftest$ac_exeext conftest.$ac_ext 18454LIBS=$ac_check_lib_save_LIBS 18455fi 18456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18457$as_echo "$ac_cv_lib_socket_connect" >&6; } 18458if test "x$ac_cv_lib_socket_connect" = xyes; then : 18459 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18460fi 18461 18462 fi 18463 18464 # Guillermo Gomez says -lposix is necessary on A/UX. 18465 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18466if test "x$ac_cv_func_remove" = xyes; then : 18467 18468fi 18469 18470 if test $ac_cv_func_remove = no; then 18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18472$as_echo_n "checking for remove in -lposix... " >&6; } 18473if ${ac_cv_lib_posix_remove+:} false; then : 18474 $as_echo_n "(cached) " >&6 18475else 18476 ac_check_lib_save_LIBS=$LIBS 18477LIBS="-lposix $LIBS" 18478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18479/* end confdefs.h. */ 18480 18481/* Override any GCC internal prototype to avoid an error. 18482 Use char because int might match the return type of a GCC 18483 builtin and then its argument prototype would still apply. */ 18484#ifdef __cplusplus 18485extern "C" 18486#endif 18487char remove (); 18488int 18489main () 18490{ 18491return remove (); 18492 ; 18493 return 0; 18494} 18495_ACEOF 18496if ac_fn_c_try_link "$LINENO"; then : 18497 ac_cv_lib_posix_remove=yes 18498else 18499 ac_cv_lib_posix_remove=no 18500fi 18501rm -f core conftest.err conftest.$ac_objext \ 18502 conftest$ac_exeext conftest.$ac_ext 18503LIBS=$ac_check_lib_save_LIBS 18504fi 18505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18506$as_echo "$ac_cv_lib_posix_remove" >&6; } 18507if test "x$ac_cv_lib_posix_remove" = xyes; then : 18508 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18509fi 18510 18511 fi 18512 18513 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18514 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18515if test "x$ac_cv_func_shmat" = xyes; then : 18516 18517fi 18518 18519 if test $ac_cv_func_shmat = no; then 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18521$as_echo_n "checking for shmat in -lipc... " >&6; } 18522if ${ac_cv_lib_ipc_shmat+:} false; then : 18523 $as_echo_n "(cached) " >&6 18524else 18525 ac_check_lib_save_LIBS=$LIBS 18526LIBS="-lipc $LIBS" 18527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18528/* end confdefs.h. */ 18529 18530/* Override any GCC internal prototype to avoid an error. 18531 Use char because int might match the return type of a GCC 18532 builtin and then its argument prototype would still apply. */ 18533#ifdef __cplusplus 18534extern "C" 18535#endif 18536char shmat (); 18537int 18538main () 18539{ 18540return shmat (); 18541 ; 18542 return 0; 18543} 18544_ACEOF 18545if ac_fn_c_try_link "$LINENO"; then : 18546 ac_cv_lib_ipc_shmat=yes 18547else 18548 ac_cv_lib_ipc_shmat=no 18549fi 18550rm -f core conftest.err conftest.$ac_objext \ 18551 conftest$ac_exeext conftest.$ac_ext 18552LIBS=$ac_check_lib_save_LIBS 18553fi 18554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 18555$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18556if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 18557 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18558fi 18559 18560 fi 18561 fi 18562 18563 # Check for libraries that X11R6 Xt/Xaw programs need. 18564 ac_save_LDFLAGS=$LDFLAGS 18565 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 18566 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 18567 # check for ICE first), but we must link in the order -lSM -lICE or 18568 # we get undefined symbols. So assume we have SM if we have ICE. 18569 # These have to be linked with before -lX11, unlike the other 18570 # libraries we check for below, so use a different variable. 18571 # John Interrante, Karl Berry 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 18573$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18574if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 18575 $as_echo_n "(cached) " >&6 18576else 18577 ac_check_lib_save_LIBS=$LIBS 18578LIBS="-lICE $X_EXTRA_LIBS $LIBS" 18579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18580/* end confdefs.h. */ 18581 18582/* Override any GCC internal prototype to avoid an error. 18583 Use char because int might match the return type of a GCC 18584 builtin and then its argument prototype would still apply. */ 18585#ifdef __cplusplus 18586extern "C" 18587#endif 18588char IceConnectionNumber (); 18589int 18590main () 18591{ 18592return IceConnectionNumber (); 18593 ; 18594 return 0; 18595} 18596_ACEOF 18597if ac_fn_c_try_link "$LINENO"; then : 18598 ac_cv_lib_ICE_IceConnectionNumber=yes 18599else 18600 ac_cv_lib_ICE_IceConnectionNumber=no 18601fi 18602rm -f core conftest.err conftest.$ac_objext \ 18603 conftest$ac_exeext conftest.$ac_ext 18604LIBS=$ac_check_lib_save_LIBS 18605fi 18606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18607$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18608if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 18609 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18610fi 18611 18612 LDFLAGS=$ac_save_LDFLAGS 18613 18614fi 18615 18616ac_header_dirent=no 18617for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18618 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18620$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18621if eval \${$as_ac_Header+:} false; then : 18622 $as_echo_n "(cached) " >&6 18623else 18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625/* end confdefs.h. */ 18626#include <sys/types.h> 18627#include <$ac_hdr> 18628 18629int 18630main () 18631{ 18632if ((DIR *) 0) 18633return 0; 18634 ; 18635 return 0; 18636} 18637_ACEOF 18638if ac_fn_c_try_compile "$LINENO"; then : 18639 eval "$as_ac_Header=yes" 18640else 18641 eval "$as_ac_Header=no" 18642fi 18643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18644fi 18645eval ac_res=\$$as_ac_Header 18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18647$as_echo "$ac_res" >&6; } 18648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18649 cat >>confdefs.h <<_ACEOF 18650#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18651_ACEOF 18652 18653ac_header_dirent=$ac_hdr; break 18654fi 18655 18656done 18657# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18658if test $ac_header_dirent = dirent.h; then 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18660$as_echo_n "checking for library containing opendir... " >&6; } 18661if ${ac_cv_search_opendir+:} false; then : 18662 $as_echo_n "(cached) " >&6 18663else 18664 ac_func_search_save_LIBS=$LIBS 18665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18666/* end confdefs.h. */ 18667 18668/* Override any GCC internal prototype to avoid an error. 18669 Use char because int might match the return type of a GCC 18670 builtin and then its argument prototype would still apply. */ 18671#ifdef __cplusplus 18672extern "C" 18673#endif 18674char opendir (); 18675int 18676main () 18677{ 18678return opendir (); 18679 ; 18680 return 0; 18681} 18682_ACEOF 18683for ac_lib in '' dir; do 18684 if test -z "$ac_lib"; then 18685 ac_res="none required" 18686 else 18687 ac_res=-l$ac_lib 18688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18689 fi 18690 if ac_fn_c_try_link "$LINENO"; then : 18691 ac_cv_search_opendir=$ac_res 18692fi 18693rm -f core conftest.err conftest.$ac_objext \ 18694 conftest$ac_exeext 18695 if ${ac_cv_search_opendir+:} false; then : 18696 break 18697fi 18698done 18699if ${ac_cv_search_opendir+:} false; then : 18700 18701else 18702 ac_cv_search_opendir=no 18703fi 18704rm conftest.$ac_ext 18705LIBS=$ac_func_search_save_LIBS 18706fi 18707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18708$as_echo "$ac_cv_search_opendir" >&6; } 18709ac_res=$ac_cv_search_opendir 18710if test "$ac_res" != no; then : 18711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18712 18713fi 18714 18715else 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18717$as_echo_n "checking for library containing opendir... " >&6; } 18718if ${ac_cv_search_opendir+:} false; then : 18719 $as_echo_n "(cached) " >&6 18720else 18721 ac_func_search_save_LIBS=$LIBS 18722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18723/* end confdefs.h. */ 18724 18725/* Override any GCC internal prototype to avoid an error. 18726 Use char because int might match the return type of a GCC 18727 builtin and then its argument prototype would still apply. */ 18728#ifdef __cplusplus 18729extern "C" 18730#endif 18731char opendir (); 18732int 18733main () 18734{ 18735return opendir (); 18736 ; 18737 return 0; 18738} 18739_ACEOF 18740for ac_lib in '' x; do 18741 if test -z "$ac_lib"; then 18742 ac_res="none required" 18743 else 18744 ac_res=-l$ac_lib 18745 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18746 fi 18747 if ac_fn_c_try_link "$LINENO"; then : 18748 ac_cv_search_opendir=$ac_res 18749fi 18750rm -f core conftest.err conftest.$ac_objext \ 18751 conftest$ac_exeext 18752 if ${ac_cv_search_opendir+:} false; then : 18753 break 18754fi 18755done 18756if ${ac_cv_search_opendir+:} false; then : 18757 18758else 18759 ac_cv_search_opendir=no 18760fi 18761rm conftest.$ac_ext 18762LIBS=$ac_func_search_save_LIBS 18763fi 18764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18765$as_echo "$ac_cv_search_opendir" >&6; } 18766ac_res=$ac_cv_search_opendir 18767if test "$ac_res" != no; then : 18768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18769 18770fi 18771 18772fi 18773 18774 18775ac_ext=cpp 18776ac_cpp='$CXXCPP $CPPFLAGS' 18777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18780 18781 18782ac_fn_cxx_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "#include <sys/time.h> 18783" 18784if test "x$ac_cv_have_decl_gettimeofday" = xyes; then : 18785 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 18786if test "x$ac_cv_func_gettimeofday" = xyes; then : 18787 18788$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 18789 18790fi 18791 18792fi 18793 18794ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 18795if test "x$ac_cv_func_localtime_r" = xyes; then : 18796 18797$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 18798 18799fi 18800 18801ac_fn_cxx_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18802if test "x$ac_cv_func_gmtime_r" = xyes; then : 18803 18804$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 18805 18806fi 18807 18808 18809ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18810if test "x$ac_cv_func_gethostbyname" = xyes; then : 18811 18812fi 18813 18814if test $ac_cv_func_gethostbyname = no; then 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18816$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18817if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18818 $as_echo_n "(cached) " >&6 18819else 18820 ac_check_lib_save_LIBS=$LIBS 18821LIBS="-lbsd $LIBS" 18822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18823/* end confdefs.h. */ 18824 18825/* Override any GCC internal prototype to avoid an error. 18826 Use char because int might match the return type of a GCC 18827 builtin and then its argument prototype would still apply. */ 18828#ifdef __cplusplus 18829extern "C" 18830#endif 18831char gethostbyname (); 18832int 18833main () 18834{ 18835return gethostbyname (); 18836 ; 18837 return 0; 18838} 18839_ACEOF 18840if ac_fn_cxx_try_link "$LINENO"; then : 18841 ac_cv_lib_bsd_gethostbyname=yes 18842else 18843 ac_cv_lib_bsd_gethostbyname=no 18844fi 18845rm -f core conftest.err conftest.$ac_objext \ 18846 conftest$ac_exeext conftest.$ac_ext 18847LIBS=$ac_check_lib_save_LIBS 18848fi 18849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18850$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18851if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18853fi 18854 18855fi 18856 18857ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 18858if test "x$ac_cv_func_nanosleep" = xyes; then : 18859 18860fi 18861 18862if test x$ac_cv_func_nanosleep = xno 18863then 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 18865$as_echo_n "checking for nanosleep in -lrt... " >&6; } 18866if ${ac_cv_lib_rt_nanosleep+:} false; then : 18867 $as_echo_n "(cached) " >&6 18868else 18869 ac_check_lib_save_LIBS=$LIBS 18870LIBS="-lrt $LIBS" 18871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18872/* end confdefs.h. */ 18873 18874/* Override any GCC internal prototype to avoid an error. 18875 Use char because int might match the return type of a GCC 18876 builtin and then its argument prototype would still apply. */ 18877#ifdef __cplusplus 18878extern "C" 18879#endif 18880char nanosleep (); 18881int 18882main () 18883{ 18884return nanosleep (); 18885 ; 18886 return 0; 18887} 18888_ACEOF 18889if ac_fn_cxx_try_link "$LINENO"; then : 18890 ac_cv_lib_rt_nanosleep=yes 18891else 18892 ac_cv_lib_rt_nanosleep=no 18893fi 18894rm -f core conftest.err conftest.$ac_objext \ 18895 conftest$ac_exeext conftest.$ac_ext 18896LIBS=$ac_check_lib_save_LIBS 18897fi 18898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 18899$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 18900if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 18901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lrt" 18902fi 18903 18904fi 18905 18906if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno 18907then 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 18909$as_echo_n "checking for nanosleep in -lposix4... " >&6; } 18910if ${ac_cv_lib_posix4_nanosleep+:} false; then : 18911 $as_echo_n "(cached) " >&6 18912else 18913 ac_check_lib_save_LIBS=$LIBS 18914LIBS="-lposix4 $LIBS" 18915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18916/* end confdefs.h. */ 18917 18918/* Override any GCC internal prototype to avoid an error. 18919 Use char because int might match the return type of a GCC 18920 builtin and then its argument prototype would still apply. */ 18921#ifdef __cplusplus 18922extern "C" 18923#endif 18924char nanosleep (); 18925int 18926main () 18927{ 18928return nanosleep (); 18929 ; 18930 return 0; 18931} 18932_ACEOF 18933if ac_fn_cxx_try_link "$LINENO"; then : 18934 ac_cv_lib_posix4_nanosleep=yes 18935else 18936 ac_cv_lib_posix4_nanosleep=no 18937fi 18938rm -f core conftest.err conftest.$ac_objext \ 18939 conftest$ac_exeext conftest.$ac_ext 18940LIBS=$ac_check_lib_save_LIBS 18941fi 18942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 18943$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } 18944if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : 18945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix4" 18946fi 18947 18948fi 18949 18950 18951# Check whether --enable-libopenjpeg was given. 18952if test "${enable_libopenjpeg+set}" = set; then : 18953 enableval=$enable_libopenjpeg; enable_libopenjpeg=$enableval 18954else 18955 enable_libopenjpeg="try" 18956fi 18957 18958if test x$enable_libopenjpeg = xyes; then 18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_cio_open in -lopenjpeg" >&5 18960$as_echo_n "checking for opj_cio_open in -lopenjpeg... " >&6; } 18961if ${ac_cv_lib_openjpeg_opj_cio_open+:} false; then : 18962 $as_echo_n "(cached) " >&6 18963else 18964 ac_check_lib_save_LIBS=$LIBS 18965LIBS="-lopenjpeg $LIBS" 18966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18967/* end confdefs.h. */ 18968 18969/* Override any GCC internal prototype to avoid an error. 18970 Use char because int might match the return type of a GCC 18971 builtin and then its argument prototype would still apply. */ 18972#ifdef __cplusplus 18973extern "C" 18974#endif 18975char opj_cio_open (); 18976int 18977main () 18978{ 18979return opj_cio_open (); 18980 ; 18981 return 0; 18982} 18983_ACEOF 18984if ac_fn_cxx_try_link "$LINENO"; then : 18985 ac_cv_lib_openjpeg_opj_cio_open=yes 18986else 18987 ac_cv_lib_openjpeg_opj_cio_open=no 18988fi 18989rm -f core conftest.err conftest.$ac_objext \ 18990 conftest$ac_exeext conftest.$ac_ext 18991LIBS=$ac_check_lib_save_LIBS 18992fi 18993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_cio_open" >&5 18994$as_echo "$ac_cv_lib_openjpeg_opj_cio_open" >&6; } 18995if test "x$ac_cv_lib_openjpeg_opj_cio_open" = xyes; then : 18996 cat >>confdefs.h <<_ACEOF 18997#define HAVE_LIBOPENJPEG 1 18998_ACEOF 18999 19000 LIBS="-lopenjpeg $LIBS" 19001 19002else 19003 as_fn_error $? "\"*** libopenjpeg library not found ***\"" "$LINENO" 5 19004fi 19005 19006 19007for ac_header in openjpeg.h 19008do : 19009 ac_fn_cxx_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default" 19010if test "x$ac_cv_header_openjpeg_h" = xyes; then : 19011 cat >>confdefs.h <<_ACEOF 19012#define HAVE_OPENJPEG_H 1 19013_ACEOF 19014 19015else 19016 as_fn_error $? "\"*** libopenjpeg headers not found ***\"" "$LINENO" 5 19017fi 19018 19019done 19020 19021elif test x$enable_libopenjpeg = xtry; then 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_cio_open in -lopenjpeg" >&5 19023$as_echo_n "checking for opj_cio_open in -lopenjpeg... " >&6; } 19024if ${ac_cv_lib_openjpeg_opj_cio_open+:} false; then : 19025 $as_echo_n "(cached) " >&6 19026else 19027 ac_check_lib_save_LIBS=$LIBS 19028LIBS="-lopenjpeg $LIBS" 19029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19030/* end confdefs.h. */ 19031 19032/* Override any GCC internal prototype to avoid an error. 19033 Use char because int might match the return type of a GCC 19034 builtin and then its argument prototype would still apply. */ 19035#ifdef __cplusplus 19036extern "C" 19037#endif 19038char opj_cio_open (); 19039int 19040main () 19041{ 19042return opj_cio_open (); 19043 ; 19044 return 0; 19045} 19046_ACEOF 19047if ac_fn_cxx_try_link "$LINENO"; then : 19048 ac_cv_lib_openjpeg_opj_cio_open=yes 19049else 19050 ac_cv_lib_openjpeg_opj_cio_open=no 19051fi 19052rm -f core conftest.err conftest.$ac_objext \ 19053 conftest$ac_exeext conftest.$ac_ext 19054LIBS=$ac_check_lib_save_LIBS 19055fi 19056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_cio_open" >&5 19057$as_echo "$ac_cv_lib_openjpeg_opj_cio_open" >&6; } 19058if test "x$ac_cv_lib_openjpeg_opj_cio_open" = xyes; then : 19059 enable_libopenjpeg="yes" 19060else 19061 enable_libopenjpeg="no" 19062fi 19063 19064 for ac_header in openjpeg.h 19065do : 19066 ac_fn_cxx_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default" 19067if test "x$ac_cv_header_openjpeg_h" = xyes; then : 19068 cat >>confdefs.h <<_ACEOF 19069#define HAVE_OPENJPEG_H 1 19070_ACEOF 19071 19072else 19073 enable_libopenjpeg="no" 19074fi 19075 19076done 19077 19078fi 19079 19080if test x$enable_libopenjpeg = xyes; then 19081 LIBOPENJPEG_LIBS="-lopenjpeg" 19082 19083 $as_echo "#define ENABLE_LIBOPENJPEG 1" >>confdefs.h 19084 19085fi 19086 19087 if test x$enable_libopenjpeg = xyes; then 19088 BUILD_LIBOPENJPEG_TRUE= 19089 BUILD_LIBOPENJPEG_FALSE='#' 19090else 19091 BUILD_LIBOPENJPEG_TRUE='#' 19092 BUILD_LIBOPENJPEG_FALSE= 19093fi 19094 19095 19096 19097 19098for ac_func in popen mkstemp mkstemps 19099do : 19100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19101ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 19102if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19103 cat >>confdefs.h <<_ACEOF 19104#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19105_ACEOF 19106 19107fi 19108done 19109 19110 19111ac_ext=c 19112ac_cpp='$CPP $CPPFLAGS' 19113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19115ac_compiler_gnu=$ac_cv_c_compiler_gnu 19116 19117 19118# Check whether --enable-largefile was given. 19119if test "${enable_largefile+set}" = set; then : 19120 enableval=$enable_largefile; 19121fi 19122 19123if test "$enable_largefile" != no; then 19124 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19126$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 19127if ${ac_cv_sys_largefile_CC+:} false; then : 19128 $as_echo_n "(cached) " >&6 19129else 19130 ac_cv_sys_largefile_CC=no 19131 if test "$GCC" != yes; then 19132 ac_save_CC=$CC 19133 while :; do 19134 # IRIX 6.2 and later do not support large files by default, 19135 # so use the C compiler's -n32 option if that helps. 19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19137/* end confdefs.h. */ 19138#include <sys/types.h> 19139 /* Check that off_t can represent 2**63 - 1 correctly. 19140 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19141 since some C++ compilers masquerading as C compilers 19142 incorrectly reject 9223372036854775807. */ 19143#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19145 && LARGE_OFF_T % 2147483647 == 1) 19146 ? 1 : -1]; 19147int 19148main () 19149{ 19150 19151 ; 19152 return 0; 19153} 19154_ACEOF 19155 if ac_fn_c_try_compile "$LINENO"; then : 19156 break 19157fi 19158rm -f core conftest.err conftest.$ac_objext 19159 CC="$CC -n32" 19160 if ac_fn_c_try_compile "$LINENO"; then : 19161 ac_cv_sys_largefile_CC=' -n32'; break 19162fi 19163rm -f core conftest.err conftest.$ac_objext 19164 break 19165 done 19166 CC=$ac_save_CC 19167 rm -f conftest.$ac_ext 19168 fi 19169fi 19170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19171$as_echo "$ac_cv_sys_largefile_CC" >&6; } 19172 if test "$ac_cv_sys_largefile_CC" != no; then 19173 CC=$CC$ac_cv_sys_largefile_CC 19174 fi 19175 19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19177$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19178if ${ac_cv_sys_file_offset_bits+:} false; then : 19179 $as_echo_n "(cached) " >&6 19180else 19181 while :; do 19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19183/* end confdefs.h. */ 19184#include <sys/types.h> 19185 /* Check that off_t can represent 2**63 - 1 correctly. 19186 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19187 since some C++ compilers masquerading as C compilers 19188 incorrectly reject 9223372036854775807. */ 19189#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19191 && LARGE_OFF_T % 2147483647 == 1) 19192 ? 1 : -1]; 19193int 19194main () 19195{ 19196 19197 ; 19198 return 0; 19199} 19200_ACEOF 19201if ac_fn_c_try_compile "$LINENO"; then : 19202 ac_cv_sys_file_offset_bits=no; break 19203fi 19204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19206/* end confdefs.h. */ 19207#define _FILE_OFFSET_BITS 64 19208#include <sys/types.h> 19209 /* Check that off_t can represent 2**63 - 1 correctly. 19210 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19211 since some C++ compilers masquerading as C compilers 19212 incorrectly reject 9223372036854775807. */ 19213#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19215 && LARGE_OFF_T % 2147483647 == 1) 19216 ? 1 : -1]; 19217int 19218main () 19219{ 19220 19221 ; 19222 return 0; 19223} 19224_ACEOF 19225if ac_fn_c_try_compile "$LINENO"; then : 19226 ac_cv_sys_file_offset_bits=64; break 19227fi 19228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19229 ac_cv_sys_file_offset_bits=unknown 19230 break 19231done 19232fi 19233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19234$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 19235case $ac_cv_sys_file_offset_bits in #( 19236 no | unknown) ;; 19237 *) 19238cat >>confdefs.h <<_ACEOF 19239#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 19240_ACEOF 19241;; 19242esac 19243rm -rf conftest* 19244 if test $ac_cv_sys_file_offset_bits = unknown; then 19245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19246$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 19247if ${ac_cv_sys_large_files+:} false; then : 19248 $as_echo_n "(cached) " >&6 19249else 19250 while :; do 19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19252/* end confdefs.h. */ 19253#include <sys/types.h> 19254 /* Check that off_t can represent 2**63 - 1 correctly. 19255 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19256 since some C++ compilers masquerading as C compilers 19257 incorrectly reject 9223372036854775807. */ 19258#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19260 && LARGE_OFF_T % 2147483647 == 1) 19261 ? 1 : -1]; 19262int 19263main () 19264{ 19265 19266 ; 19267 return 0; 19268} 19269_ACEOF 19270if ac_fn_c_try_compile "$LINENO"; then : 19271 ac_cv_sys_large_files=no; break 19272fi 19273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19275/* end confdefs.h. */ 19276#define _LARGE_FILES 1 19277#include <sys/types.h> 19278 /* Check that off_t can represent 2**63 - 1 correctly. 19279 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19280 since some C++ compilers masquerading as C compilers 19281 incorrectly reject 9223372036854775807. */ 19282#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19284 && LARGE_OFF_T % 2147483647 == 1) 19285 ? 1 : -1]; 19286int 19287main () 19288{ 19289 19290 ; 19291 return 0; 19292} 19293_ACEOF 19294if ac_fn_c_try_compile "$LINENO"; then : 19295 ac_cv_sys_large_files=1; break 19296fi 19297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19298 ac_cv_sys_large_files=unknown 19299 break 19300done 19301fi 19302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 19303$as_echo "$ac_cv_sys_large_files" >&6; } 19304case $ac_cv_sys_large_files in #( 19305 no | unknown) ;; 19306 *) 19307cat >>confdefs.h <<_ACEOF 19308#define _LARGE_FILES $ac_cv_sys_large_files 19309_ACEOF 19310;; 19311esac 19312rm -rf conftest* 19313 fi 19314 19315 19316fi 19317 19318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 19319$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 19320if ${ac_cv_sys_largefile_source+:} false; then : 19321 $as_echo_n "(cached) " >&6 19322else 19323 while :; do 19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19325/* end confdefs.h. */ 19326#include <sys/types.h> /* for off_t */ 19327 #include <stdio.h> 19328int 19329main () 19330{ 19331int (*fp) (FILE *, off_t, int) = fseeko; 19332 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 19333 ; 19334 return 0; 19335} 19336_ACEOF 19337if ac_fn_c_try_link "$LINENO"; then : 19338 ac_cv_sys_largefile_source=no; break 19339fi 19340rm -f core conftest.err conftest.$ac_objext \ 19341 conftest$ac_exeext conftest.$ac_ext 19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19343/* end confdefs.h. */ 19344#define _LARGEFILE_SOURCE 1 19345#include <sys/types.h> /* for off_t */ 19346 #include <stdio.h> 19347int 19348main () 19349{ 19350int (*fp) (FILE *, off_t, int) = fseeko; 19351 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 19352 ; 19353 return 0; 19354} 19355_ACEOF 19356if ac_fn_c_try_link "$LINENO"; then : 19357 ac_cv_sys_largefile_source=1; break 19358fi 19359rm -f core conftest.err conftest.$ac_objext \ 19360 conftest$ac_exeext conftest.$ac_ext 19361 ac_cv_sys_largefile_source=unknown 19362 break 19363done 19364fi 19365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 19366$as_echo "$ac_cv_sys_largefile_source" >&6; } 19367case $ac_cv_sys_largefile_source in #( 19368 no | unknown) ;; 19369 *) 19370cat >>confdefs.h <<_ACEOF 19371#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 19372_ACEOF 19373;; 19374esac 19375rm -rf conftest* 19376 19377# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 19378# in glibc 2.1.3, but that breaks too many other things. 19379# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 19380if test $ac_cv_sys_largefile_source != unknown; then 19381 19382$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 19383 19384fi 19385 19386for ac_func in fseek64 19387do : 19388 ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64" 19389if test "x$ac_cv_func_fseek64" = xyes; then : 19390 cat >>confdefs.h <<_ACEOF 19391#define HAVE_FSEEK64 1 19392_ACEOF 19393 xpdf_cv_func_fseek64=yes 19394else 19395 xpdf_cv_func_fseek64=no 19396fi 19397done 19398 19399for ac_func in ftell64 19400do : 19401 ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64" 19402if test "x$ac_cv_func_ftell64" = xyes; then : 19403 cat >>confdefs.h <<_ACEOF 19404#define HAVE_FTELL64 1 19405_ACEOF 19406 xpdf_cv_func_ftell64=yes 19407else 19408 xpdf_cv_func_ftell64=no 19409fi 19410done 19411 19412if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then 19413 $as_echo "#define HAVE_FSEEK64 1" >>confdefs.h 19414 19415fi 19416 19417# Check whether --enable-zlib was given. 19418if test "${enable_zlib+set}" = set; then : 19419 enableval=$enable_zlib; 19420else 19421 enable_zlib="no" 19422fi 19423 19424if test x$enable_zlib = xyes; then 19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 19426$as_echo_n "checking for inflate in -lz... " >&6; } 19427if ${ac_cv_lib_z_inflate+:} false; then : 19428 $as_echo_n "(cached) " >&6 19429else 19430 ac_check_lib_save_LIBS=$LIBS 19431LIBS="-lz $LIBS" 19432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19433/* end confdefs.h. */ 19434 19435/* Override any GCC internal prototype to avoid an error. 19436 Use char because int might match the return type of a GCC 19437 builtin and then its argument prototype would still apply. */ 19438#ifdef __cplusplus 19439extern "C" 19440#endif 19441char inflate (); 19442int 19443main () 19444{ 19445return inflate (); 19446 ; 19447 return 0; 19448} 19449_ACEOF 19450if ac_fn_c_try_link "$LINENO"; then : 19451 ac_cv_lib_z_inflate=yes 19452else 19453 ac_cv_lib_z_inflate=no 19454fi 19455rm -f core conftest.err conftest.$ac_objext \ 19456 conftest$ac_exeext conftest.$ac_ext 19457LIBS=$ac_check_lib_save_LIBS 19458fi 19459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 19460$as_echo "$ac_cv_lib_z_inflate" >&6; } 19461if test "x$ac_cv_lib_z_inflate" = xyes; then : 19462 cat >>confdefs.h <<_ACEOF 19463#define HAVE_LIBZ 1 19464_ACEOF 19465 19466 LIBS="-lz $LIBS" 19467 19468else 19469 as_fn_error $? "\"*** zlib library not found ***\"" "$LINENO" 5 19470fi 19471 19472 for ac_header in zlib.h 19473do : 19474 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 19475if test "x$ac_cv_header_zlib_h" = xyes; then : 19476 cat >>confdefs.h <<_ACEOF 19477#define HAVE_ZLIB_H 1 19478_ACEOF 19479 19480else 19481 as_fn_error $? "\"*** zlib headers not found ***\"" "$LINENO" 5 19482fi 19483 19484done 19485 19486elif test x$enable_zlib = xtry; then 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 19488$as_echo_n "checking for inflate in -lz... " >&6; } 19489if ${ac_cv_lib_z_inflate+:} false; then : 19490 $as_echo_n "(cached) " >&6 19491else 19492 ac_check_lib_save_LIBS=$LIBS 19493LIBS="-lz $LIBS" 19494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19495/* end confdefs.h. */ 19496 19497/* Override any GCC internal prototype to avoid an error. 19498 Use char because int might match the return type of a GCC 19499 builtin and then its argument prototype would still apply. */ 19500#ifdef __cplusplus 19501extern "C" 19502#endif 19503char inflate (); 19504int 19505main () 19506{ 19507return inflate (); 19508 ; 19509 return 0; 19510} 19511_ACEOF 19512if ac_fn_c_try_link "$LINENO"; then : 19513 ac_cv_lib_z_inflate=yes 19514else 19515 ac_cv_lib_z_inflate=no 19516fi 19517rm -f core conftest.err conftest.$ac_objext \ 19518 conftest$ac_exeext conftest.$ac_ext 19519LIBS=$ac_check_lib_save_LIBS 19520fi 19521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 19522$as_echo "$ac_cv_lib_z_inflate" >&6; } 19523if test "x$ac_cv_lib_z_inflate" = xyes; then : 19524 enable_zlib="yes" 19525else 19526 enable_zlib="no" 19527fi 19528 19529 for ac_header in zlib.h 19530do : 19531 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 19532if test "x$ac_cv_header_zlib_h" = xyes; then : 19533 cat >>confdefs.h <<_ACEOF 19534#define HAVE_ZLIB_H 1 19535_ACEOF 19536 19537else 19538 enable_zlib="no" 19539fi 19540 19541done 19542 19543fi 19544 19545if test x$enable_zlib = xyes; then 19546 ZLIB_LIBS="-lz" 19547 19548 $as_echo "#define ENABLE_ZLIB 1" >>confdefs.h 19549 19550fi 19551 19552 if test x$enable_zlib = xyes; then 19553 BUILD_ZLIB_TRUE= 19554 BUILD_ZLIB_FALSE='#' 19555else 19556 BUILD_ZLIB_TRUE='#' 19557 BUILD_ZLIB_FALSE= 19558fi 19559 19560 19561 19562# Check whether --enable-libcurl was given. 19563if test "${enable_libcurl+set}" = set; then : 19564 enableval=$enable_libcurl; enable_libcurl=$enableval 19565else 19566 enable_libcurl="no" 19567fi 19568 19569 19570if test x$enable_libcurl = xyes; then 19571 19572pkg_failed=no 19573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5 19574$as_echo_n "checking for LIBCURL... " >&6; } 19575 19576if test -n "$LIBCURL_CFLAGS"; then 19577 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS" 19578 elif test -n "$PKG_CONFIG"; then 19579 if test -n "$PKG_CONFIG" && \ 19580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 19581 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 19582 ac_status=$? 19583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19584 test $ac_status = 0; }; then 19585 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` 19586else 19587 pkg_failed=yes 19588fi 19589 else 19590 pkg_failed=untried 19591fi 19592if test -n "$LIBCURL_LIBS"; then 19593 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS" 19594 elif test -n "$PKG_CONFIG"; then 19595 if test -n "$PKG_CONFIG" && \ 19596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 19597 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 19598 ac_status=$? 19599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19600 test $ac_status = 0; }; then 19601 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` 19602else 19603 pkg_failed=yes 19604fi 19605 else 19606 pkg_failed=untried 19607fi 19608 19609 19610 19611if test $pkg_failed = yes; then 19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19613$as_echo "no" >&6; } 19614 19615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19616 _pkg_short_errors_supported=yes 19617else 19618 _pkg_short_errors_supported=no 19619fi 19620 if test $_pkg_short_errors_supported = yes; then 19621 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1` 19622 else 19623 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1` 19624 fi 19625 # Put the nasty error message in config.log where it belongs 19626 echo "$LIBCURL_PKG_ERRORS" >&5 19627 19628 as_fn_error $? "Package requirements (libcurl) were not met: 19629 19630$LIBCURL_PKG_ERRORS 19631 19632Consider adjusting the PKG_CONFIG_PATH environment variable if you 19633installed software in a non-standard prefix. 19634 19635Alternatively, you may set the environment variables LIBCURL_CFLAGS 19636and LIBCURL_LIBS to avoid the need to call pkg-config. 19637See the pkg-config man page for more details." "$LINENO" 5 19638elif test $pkg_failed = untried; then 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19640$as_echo "no" >&6; } 19641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19643as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19644is in your PATH or set the PKG_CONFIG environment variable to the full 19645path to pkg-config. 19646 19647Alternatively, you may set the environment variables LIBCURL_CFLAGS 19648and LIBCURL_LIBS to avoid the need to call pkg-config. 19649See the pkg-config man page for more details. 19650 19651To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19652See \`config.log' for more details" "$LINENO" 5; } 19653else 19654 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS 19655 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19657$as_echo "yes" >&6; } 19658 19659fi 19660 19661$as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h 19662 19663 19664$as_echo "#define POPPLER_HAS_CURL_SUPPORT 1" >>confdefs.h 19665 19666fi 19667 19668 if test x$enable_libcurl = xyes; then 19669 BUILD_LIBCURL_TRUE= 19670 BUILD_LIBCURL_FALSE='#' 19671else 19672 BUILD_LIBCURL_TRUE='#' 19673 BUILD_LIBCURL_FALSE= 19674fi 19675 19676 19677# Check whether --enable-libjpeg was given. 19678if test "${enable_libjpeg+set}" = set; then : 19679 enableval=$enable_libjpeg; enable_libjpeg=$enableval 19680else 19681 enable_libjpeg="try" 19682fi 19683 19684if test x$enable_libjpeg != xno; then 19685 19686 19687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg6b" >&5 19688$as_echo_n "checking for libjpeg6b... " >&6; } 19689if ${ac_cv_lib_jpeg_6b+:} false; then : 19690 $as_echo_n "(cached) " >&6 19691else 19692 19693ac_save_LIBS="$LIBS" 19694LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm" 19695ac_save_CFLAGS="$CFLAGS" 19696CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" 19697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19698/* end confdefs.h. */ 19699 19700#ifdef __cplusplus 19701extern "C" { 19702#endif 19703void jpeg_CreateDecompress(); 19704#ifdef __cplusplus 19705} 19706#endif 19707 19708int 19709main () 19710{ 19711jpeg_CreateDecompress(); 19712 ; 19713 return 0; 19714} 19715_ACEOF 19716if ac_fn_c_try_link "$LINENO"; then : 19717 eval "ac_cv_lib_jpeg_6b=-ljpeg6b" 19718else 19719 eval "ac_cv_lib_jpeg_6b=no" 19720fi 19721rm -f core conftest.err conftest.$ac_objext \ 19722 conftest$ac_exeext conftest.$ac_ext 19723LIBS="$ac_save_LIBS" 19724CFLAGS="$ac_save_CFLAGS" 19725 19726fi 19727 19728 19729if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then 19730 enable_libjpeg=yes 19731 LIBJPEG_LIBS="$ac_cv_lib_jpeg_6b" 19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_6b" >&5 19733$as_echo "$ac_cv_lib_jpeg_6b" >&6; } 19734else 19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19736$as_echo "no" >&6; } 19737 19738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 19739$as_echo_n "checking for libjpeg... " >&6; } 19740if ${ac_cv_lib_jpeg_normal+:} false; then : 19741 $as_echo_n "(cached) " >&6 19742else 19743 19744ac_save_LIBS="$LIBS" 19745LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm" 19746ac_save_CFLAGS="$CFLAGS" 19747CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" 19748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19749/* end confdefs.h. */ 19750 19751#ifdef __cplusplus 19752extern "C" { 19753#endif 19754void jpeg_CreateDecompress(); 19755#ifdef __cplusplus 19756} 19757#endif 19758 19759int 19760main () 19761{ 19762jpeg_CreateDecompress(); 19763 ; 19764 return 0; 19765} 19766_ACEOF 19767if ac_fn_c_try_link "$LINENO"; then : 19768 eval "ac_cv_lib_jpeg_normal=-ljpeg" 19769else 19770 eval "ac_cv_lib_jpeg_normal=no" 19771fi 19772rm -f core conftest.err conftest.$ac_objext \ 19773 conftest$ac_exeext conftest.$ac_ext 19774LIBS="$ac_save_LIBS" 19775CFLAGS="$ac_save_CFLAGS" 19776 19777fi 19778 19779 19780if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then 19781 enable_libjpeg=yes 19782 LIBJPEG_LIBS="$ac_cv_lib_jpeg_normal" 19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_normal" >&5 19784$as_echo "$ac_cv_lib_jpeg_normal" >&6; } 19785else 19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19787$as_echo "no" >&6; } 19788 19789 LIBJPEG_LIBS= 19790 19791 19792fi 19793 19794 19795fi 19796 19797 19798ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 19799if test "x$ac_cv_header_jpeglib_h" = xyes; then : 19800 jpeg_incdir=yes 19801else 19802 jpeg_incdir=NO 19803fi 19804 19805 19806test "x$jpeg_incdir" = xNO && jpeg_incdir= 19807 19808if test -n "$jpeg_incdir" && test -n "$LIBJPEG_LIBS" ; then 19809 19810cat >>confdefs.h <<_ACEOF 19811#define ENABLE_LIBJPEG 1 19812_ACEOF 19813 19814else 19815 if test -n "$jpeg_incdir" || test -n "$LIBJPEG_LIBS" ; then 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 19817There is an installation error in jpeg support. You seem to have only one 19818of either the headers _or_ the libraries installed. You may need to either 19819provide correct --with-extra-... options, or the development package of 19820libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/ 19821Disabling JPEG support. 19822" >&5 19823$as_echo "$as_me: WARNING: 19824There is an installation error in jpeg support. You seem to have only one 19825of either the headers _or_ the libraries installed. You may need to either 19826provide correct --with-extra-... options, or the development package of 19827libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/ 19828Disabling JPEG support. 19829" >&2;} 19830 else 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg not found. disable JPEG support." >&5 19832$as_echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;} 19833 fi 19834 jpeg_incdir= 19835 enable_libjpeg=no 19836 LIBJPEG_LIBS= 19837fi 19838 19839 19840 19841 19842fi 19843 19844 if test x$enable_libjpeg = xyes; then 19845 BUILD_LIBJPEG_TRUE= 19846 BUILD_LIBJPEG_FALSE='#' 19847else 19848 BUILD_LIBJPEG_TRUE='#' 19849 BUILD_LIBJPEG_FALSE= 19850fi 19851 19852 19853 19854# Check whether --enable-libpng was given. 19855if test "${enable_libpng+set}" = set; then : 19856 enableval=$enable_libpng; enable_libpng=$enableval 19857else 19858 enable_libpng="try" 19859fi 19860 19861 19862if test x$enable_libpng != xno; then 19863 19864pkg_failed=no 19865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5 19866$as_echo_n "checking for LIBPNG... " >&6; } 19867 19868if test -n "$LIBPNG_CFLAGS"; then 19869 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS" 19870 elif test -n "$PKG_CONFIG"; then 19871 if test -n "$PKG_CONFIG" && \ 19872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 19873 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 19874 ac_status=$? 19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19876 test $ac_status = 0; }; then 19877 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 19878else 19879 pkg_failed=yes 19880fi 19881 else 19882 pkg_failed=untried 19883fi 19884if test -n "$LIBPNG_LIBS"; then 19885 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS" 19886 elif test -n "$PKG_CONFIG"; then 19887 if test -n "$PKG_CONFIG" && \ 19888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 19889 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 19890 ac_status=$? 19891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19892 test $ac_status = 0; }; then 19893 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 19894else 19895 pkg_failed=yes 19896fi 19897 else 19898 pkg_failed=untried 19899fi 19900 19901 19902 19903if test $pkg_failed = yes; then 19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19905$as_echo "no" >&6; } 19906 19907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19908 _pkg_short_errors_supported=yes 19909else 19910 _pkg_short_errors_supported=no 19911fi 19912 if test $_pkg_short_errors_supported = yes; then 19913 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 19914 else 19915 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 19916 fi 19917 # Put the nasty error message in config.log where it belongs 19918 echo "$LIBPNG_PKG_ERRORS" >&5 19919 19920 enable_libpng="no" 19921elif test $pkg_failed = untried; then 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19923$as_echo "no" >&6; } 19924 enable_libpng="no" 19925else 19926 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS 19927 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19929$as_echo "yes" >&6; } 19930 enable_libpng="yes" 19931fi 19932fi 19933 19934if test x$enable_libpng = xyes; then 19935 19936$as_echo "#define ENABLE_LIBPNG 1" >>confdefs.h 19937 19938fi 19939 19940 if test x$enable_libpng = xyes; then 19941 BUILD_LIBPNG_TRUE= 19942 BUILD_LIBPNG_FALSE='#' 19943else 19944 BUILD_LIBPNG_TRUE='#' 19945 BUILD_LIBPNG_FALSE= 19946fi 19947 19948 19949FREETYPE_LIBS= 19950FREETYPE_CFLAGS= 19951 19952# XXX EMSCRIPTEN: Force freetype detection 19953 19954$as_echo "#define HAVE_FREETYPE_H 1" >>confdefs.h 19955 19956#PKG_CHECK_MODULES(FREETYPE, freetype2, 19957# [freetype_pkgconfig=yes], [freetype_pkgconfig=no]) 19958# 19959#if test "x$freetype_pkgconfig" = "xyes"; then 19960# 19961# AC_DEFINE(HAVE_FREETYPE_H, 1, [Have FreeType2 include files]) 19962# 19963#else 19964# 19965# AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) 19966# if test "x$FREETYPE_CONFIG" != "xno" ; then 19967# 19968# FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags` 19969# FREETYPE_LIBS=`$FREETYPE_CONFIG --libs` 19970# AC_DEFINE(HAVE_FREETYPE_H, 1, [Have FreeType2 include files]) 19971# 19972# fi 19973# 19974#fi 19975 19976 19977 19978 19979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which font configuration to use" >&5 19980$as_echo_n "checking which font configuration to use... " >&6; } 19981 19982# Check whether --with-font_configuration was given. 19983if test "${with_font_configuration+set}" = set; then : 19984 withval=$with_font_configuration; 19985else 19986 if test x$os_win32 = xyes; then 19987 # default to win32 on native Windows. 19988 with_font_configuration=win32 19989 else 19990 # default to fontconig everywhere else. 19991 with_font_configuration=fontconfig 19992 fi 19993 19994 19995fi 19996 19997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_font_configuration" >&5 19998$as_echo "$with_font_configuration" >&6; } 19999 20000case $with_font_configuration in 20001 win32) 20002 20003$as_echo "#define WITH_FONTCONFIGURATION_WIN32 1" >>confdefs.h 20004 20005 # Set the minimum required Internet Explorer version to 5.0 20006 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x0500" 20007 ;; 20008 fontconfig) 20009 20010$as_echo "#define WITH_FONTCONFIGURATION_FONTCONFIG 1" >>confdefs.h 20011 20012 20013pkg_failed=no 20014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 20015$as_echo_n "checking for FONTCONFIG... " >&6; } 20016 20017if test -n "$FONTCONFIG_CFLAGS"; then 20018 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 20019 elif test -n "$PKG_CONFIG"; then 20020 if test -n "$PKG_CONFIG" && \ 20021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5 20022 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5 20023 ac_status=$? 20024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20025 test $ac_status = 0; }; then 20026 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.0.0" 2>/dev/null` 20027else 20028 pkg_failed=yes 20029fi 20030 else 20031 pkg_failed=untried 20032fi 20033if test -n "$FONTCONFIG_LIBS"; then 20034 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 20035 elif test -n "$PKG_CONFIG"; then 20036 if test -n "$PKG_CONFIG" && \ 20037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5 20038 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5 20039 ac_status=$? 20040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20041 test $ac_status = 0; }; then 20042 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.0.0" 2>/dev/null` 20043else 20044 pkg_failed=yes 20045fi 20046 else 20047 pkg_failed=untried 20048fi 20049 20050 20051 20052if test $pkg_failed = yes; then 20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20054$as_echo "no" >&6; } 20055 20056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20057 _pkg_short_errors_supported=yes 20058else 20059 _pkg_short_errors_supported=no 20060fi 20061 if test $_pkg_short_errors_supported = yes; then 20062 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.0.0" 2>&1` 20063 else 20064 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.0.0" 2>&1` 20065 fi 20066 # Put the nasty error message in config.log where it belongs 20067 echo "$FONTCONFIG_PKG_ERRORS" >&5 20068 20069 as_fn_error $? "Package requirements (fontconfig >= 2.0.0) were not met: 20070 20071$FONTCONFIG_PKG_ERRORS 20072 20073Consider adjusting the PKG_CONFIG_PATH environment variable if you 20074installed software in a non-standard prefix. 20075 20076Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 20077and FONTCONFIG_LIBS to avoid the need to call pkg-config. 20078See the pkg-config man page for more details." "$LINENO" 5 20079elif test $pkg_failed = untried; then 20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20081$as_echo "no" >&6; } 20082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20084as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20085is in your PATH or set the PKG_CONFIG environment variable to the full 20086path to pkg-config. 20087 20088Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 20089and FONTCONFIG_LIBS to avoid the need to call pkg-config. 20090See the pkg-config man page for more details. 20091 20092To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20093See \`config.log' for more details" "$LINENO" 5; } 20094else 20095 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 20096 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20098$as_echo "yes" >&6; } 20099 20100fi 20101 ;; 20102 *) 20103 as_fn_error $? "Invalid font configuration setting: $with_font_configuration" "$LINENO" 5 20104 ;; 20105esac 20106 20107 if test x$with_font_configuration = xwin32; then 20108 BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE= 20109 BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE='#' 20110else 20111 BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE='#' 20112 BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE= 20113fi 20114 20115 20116# Check whether --enable-splash-output was given. 20117if test "${enable_splash_output+set}" = set; then : 20118 enableval=$enable_splash_output; 20119else 20120 enable_splash_output="yes" 20121fi 20122 20123 if test x$enable_splash_output = xyes; then 20124 BUILD_SPLASH_OUTPUT_TRUE= 20125 BUILD_SPLASH_OUTPUT_FALSE='#' 20126else 20127 BUILD_SPLASH_OUTPUT_TRUE='#' 20128 BUILD_SPLASH_OUTPUT_FALSE= 20129fi 20130 20131 20132if test x$enable_splash_output = xyes; then 20133 $as_echo "#define HAVE_SPLASH 1" >>confdefs.h 20134 20135fi 20136 20137CAIRO_VERSION="1.10.0" 20138 20139# Check whether --enable-cairo-output was given. 20140if test "${enable_cairo_output+set}" = set; then : 20141 enableval=$enable_cairo_output; enable_cairo_output=$enableval 20142else 20143 enable_cairo_output="try" 20144fi 20145 20146if test x$enable_cairo_output = xyes; then 20147 20148pkg_failed=no 20149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 20150$as_echo_n "checking for CAIRO... " >&6; } 20151 20152if test -n "$CAIRO_CFLAGS"; then 20153 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" 20154 elif test -n "$PKG_CONFIG"; then 20155 if test -n "$PKG_CONFIG" && \ 20156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5 20157 ($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5 20158 ac_status=$? 20159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20160 test $ac_status = 0; }; then 20161 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION" 2>/dev/null` 20162else 20163 pkg_failed=yes 20164fi 20165 else 20166 pkg_failed=untried 20167fi 20168if test -n "$CAIRO_LIBS"; then 20169 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" 20170 elif test -n "$PKG_CONFIG"; then 20171 if test -n "$PKG_CONFIG" && \ 20172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5 20173 ($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5 20174 ac_status=$? 20175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20176 test $ac_status = 0; }; then 20177 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= $CAIRO_VERSION" 2>/dev/null` 20178else 20179 pkg_failed=yes 20180fi 20181 else 20182 pkg_failed=untried 20183fi 20184 20185 20186 20187if test $pkg_failed = yes; then 20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20189$as_echo "no" >&6; } 20190 20191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20192 _pkg_short_errors_supported=yes 20193else 20194 _pkg_short_errors_supported=no 20195fi 20196 if test $_pkg_short_errors_supported = yes; then 20197 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= $CAIRO_VERSION" 2>&1` 20198 else 20199 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= $CAIRO_VERSION" 2>&1` 20200 fi 20201 # Put the nasty error message in config.log where it belongs 20202 echo "$CAIRO_PKG_ERRORS" >&5 20203 20204 as_fn_error $? "Package requirements (cairo >= $CAIRO_VERSION) were not met: 20205 20206$CAIRO_PKG_ERRORS 20207 20208Consider adjusting the PKG_CONFIG_PATH environment variable if you 20209installed software in a non-standard prefix. 20210 20211Alternatively, you may set the environment variables CAIRO_CFLAGS 20212and CAIRO_LIBS to avoid the need to call pkg-config. 20213See the pkg-config man page for more details." "$LINENO" 5 20214elif test $pkg_failed = untried; then 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20216$as_echo "no" >&6; } 20217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20219as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20220is in your PATH or set the PKG_CONFIG environment variable to the full 20221path to pkg-config. 20222 20223Alternatively, you may set the environment variables CAIRO_CFLAGS 20224and CAIRO_LIBS to avoid the need to call pkg-config. 20225See the pkg-config man page for more details. 20226 20227To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20228See \`config.log' for more details" "$LINENO" 5; } 20229else 20230 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS 20231 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS 20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20233$as_echo "yes" >&6; } 20234 20235fi 20236elif test x$enable_cairo_output = xtry; then 20237 20238pkg_failed=no 20239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 20240$as_echo_n "checking for CAIRO... " >&6; } 20241 20242if test -n "$CAIRO_CFLAGS"; then 20243 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" 20244 elif test -n "$PKG_CONFIG"; then 20245 if test -n "$PKG_CONFIG" && \ 20246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5 20247 ($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5 20248 ac_status=$? 20249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20250 test $ac_status = 0; }; then 20251 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION" 2>/dev/null` 20252else 20253 pkg_failed=yes 20254fi 20255 else 20256 pkg_failed=untried 20257fi 20258if test -n "$CAIRO_LIBS"; then 20259 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" 20260 elif test -n "$PKG_CONFIG"; then 20261 if test -n "$PKG_CONFIG" && \ 20262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5 20263 ($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5 20264 ac_status=$? 20265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20266 test $ac_status = 0; }; then 20267 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= $CAIRO_VERSION" 2>/dev/null` 20268else 20269 pkg_failed=yes 20270fi 20271 else 20272 pkg_failed=untried 20273fi 20274 20275 20276 20277if test $pkg_failed = yes; then 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20279$as_echo "no" >&6; } 20280 20281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20282 _pkg_short_errors_supported=yes 20283else 20284 _pkg_short_errors_supported=no 20285fi 20286 if test $_pkg_short_errors_supported = yes; then 20287 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= $CAIRO_VERSION" 2>&1` 20288 else 20289 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= $CAIRO_VERSION" 2>&1` 20290 fi 20291 # Put the nasty error message in config.log where it belongs 20292 echo "$CAIRO_PKG_ERRORS" >&5 20293 20294 enable_cairo_output="no" 20295elif test $pkg_failed = untried; then 20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20297$as_echo "no" >&6; } 20298 enable_cairo_output="no" 20299else 20300 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS 20301 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS 20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20303$as_echo "yes" >&6; } 20304 enable_cairo_output="yes" 20305fi 20306fi 20307 20308 20309 20310 20311 if test x$enable_cairo_output = xyes; then 20312 BUILD_CAIRO_OUTPUT_TRUE= 20313 BUILD_CAIRO_OUTPUT_FALSE='#' 20314else 20315 BUILD_CAIRO_OUTPUT_TRUE='#' 20316 BUILD_CAIRO_OUTPUT_FALSE= 20317fi 20318 20319 20320if test x$enable_cairo_output = xyes; then 20321 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h 20322 20323 CAIRO_FEATURE="#define POPPLER_HAS_CAIRO 1" 20324 CAIRO_REQ="cairo" 20325 for ac_header in fcntl.h sys/mman.h sys/stat.h 20326do : 20327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20328ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20329if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20330 cat >>confdefs.h <<_ACEOF 20331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20332_ACEOF 20333 20334fi 20335 20336done 20337 20338else 20339 CAIRO_FEATURE="#undef POPPLER_HAS_CAIRO" 20340 CAIRO_REQ="" 20341fi 20342 20343 20344 20345found_introspection=no 20346if test x$enable_cairo_output = xyes; then 20347 POPPLER_GLIB_DISABLE_DEPRECATED="" 20348 POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="" 20349 20350 GLIB_REQUIRED=2.18 20351 # Check whether --enable-poppler-glib was given. 20352if test "${enable_poppler_glib+set}" = set; then : 20353 enableval=$enable_poppler_glib; enable_poppler_glib=$enableval 20354else 20355 enable_poppler_glib="try" 20356fi 20357 20358 if test x$enable_poppler_glib = xyes; then 20359 20360pkg_failed=no 20361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_GLIB" >&5 20362$as_echo_n "checking for POPPLER_GLIB... " >&6; } 20363 20364if test -n "$POPPLER_GLIB_CFLAGS"; then 20365 pkg_cv_POPPLER_GLIB_CFLAGS="$POPPLER_GLIB_CFLAGS" 20366 elif test -n "$PKG_CONFIG"; then 20367 if test -n "$PKG_CONFIG" && \ 20368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5 20369 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5 20370 ac_status=$? 20371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20372 test $ac_status = 0; }; then 20373 pkg_cv_POPPLER_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null` 20374else 20375 pkg_failed=yes 20376fi 20377 else 20378 pkg_failed=untried 20379fi 20380if test -n "$POPPLER_GLIB_LIBS"; then 20381 pkg_cv_POPPLER_GLIB_LIBS="$POPPLER_GLIB_LIBS" 20382 elif test -n "$PKG_CONFIG"; then 20383 if test -n "$PKG_CONFIG" && \ 20384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5 20385 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5 20386 ac_status=$? 20387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20388 test $ac_status = 0; }; then 20389 pkg_cv_POPPLER_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null` 20390else 20391 pkg_failed=yes 20392fi 20393 else 20394 pkg_failed=untried 20395fi 20396 20397 20398 20399if test $pkg_failed = yes; then 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20401$as_echo "no" >&6; } 20402 20403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20404 _pkg_short_errors_supported=yes 20405else 20406 _pkg_short_errors_supported=no 20407fi 20408 if test $_pkg_short_errors_supported = yes; then 20409 POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1` 20410 else 20411 POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1` 20412 fi 20413 # Put the nasty error message in config.log where it belongs 20414 echo "$POPPLER_GLIB_PKG_ERRORS" >&5 20415 20416 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION) were not met: 20417 20418$POPPLER_GLIB_PKG_ERRORS 20419 20420Consider adjusting the PKG_CONFIG_PATH environment variable if you 20421installed software in a non-standard prefix. 20422 20423Alternatively, you may set the environment variables POPPLER_GLIB_CFLAGS 20424and POPPLER_GLIB_LIBS to avoid the need to call pkg-config. 20425See the pkg-config man page for more details." "$LINENO" 5 20426elif test $pkg_failed = untried; then 20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20428$as_echo "no" >&6; } 20429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20431as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20432is in your PATH or set the PKG_CONFIG environment variable to the full 20433path to pkg-config. 20434 20435Alternatively, you may set the environment variables POPPLER_GLIB_CFLAGS 20436and POPPLER_GLIB_LIBS to avoid the need to call pkg-config. 20437See the pkg-config man page for more details. 20438 20439To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20440See \`config.log' for more details" "$LINENO" 5; } 20441else 20442 POPPLER_GLIB_CFLAGS=$pkg_cv_POPPLER_GLIB_CFLAGS 20443 POPPLER_GLIB_LIBS=$pkg_cv_POPPLER_GLIB_LIBS 20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20445$as_echo "yes" >&6; } 20446 20447fi 20448 elif test x$enable_poppler_glib = xtry; then 20449 20450pkg_failed=no 20451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_GLIB" >&5 20452$as_echo_n "checking for POPPLER_GLIB... " >&6; } 20453 20454if test -n "$POPPLER_GLIB_CFLAGS"; then 20455 pkg_cv_POPPLER_GLIB_CFLAGS="$POPPLER_GLIB_CFLAGS" 20456 elif test -n "$PKG_CONFIG"; then 20457 if test -n "$PKG_CONFIG" && \ 20458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5 20459 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5 20460 ac_status=$? 20461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20462 test $ac_status = 0; }; then 20463 pkg_cv_POPPLER_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null` 20464else 20465 pkg_failed=yes 20466fi 20467 else 20468 pkg_failed=untried 20469fi 20470if test -n "$POPPLER_GLIB_LIBS"; then 20471 pkg_cv_POPPLER_GLIB_LIBS="$POPPLER_GLIB_LIBS" 20472 elif test -n "$PKG_CONFIG"; then 20473 if test -n "$PKG_CONFIG" && \ 20474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5 20475 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5 20476 ac_status=$? 20477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20478 test $ac_status = 0; }; then 20479 pkg_cv_POPPLER_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null` 20480else 20481 pkg_failed=yes 20482fi 20483 else 20484 pkg_failed=untried 20485fi 20486 20487 20488 20489if test $pkg_failed = yes; then 20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20491$as_echo "no" >&6; } 20492 20493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20494 _pkg_short_errors_supported=yes 20495else 20496 _pkg_short_errors_supported=no 20497fi 20498 if test $_pkg_short_errors_supported = yes; then 20499 POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1` 20500 else 20501 POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1` 20502 fi 20503 # Put the nasty error message in config.log where it belongs 20504 echo "$POPPLER_GLIB_PKG_ERRORS" >&5 20505 20506 enable_poppler_glib="no" 20507elif test $pkg_failed = untried; then 20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20509$as_echo "no" >&6; } 20510 enable_poppler_glib="no" 20511else 20512 POPPLER_GLIB_CFLAGS=$pkg_cv_POPPLER_GLIB_CFLAGS 20513 POPPLER_GLIB_LIBS=$pkg_cv_POPPLER_GLIB_LIBS 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20515$as_echo "yes" >&6; } 20516 enable_poppler_glib="yes" 20517fi 20518 fi 20519 if test x$enable_poppler_glib = xyes; then 20520 # Check for introspection 20521 20522 20523 20524 # Check whether --enable-introspection was given. 20525if test "${enable_introspection+set}" = set; then : 20526 enableval=$enable_introspection; 20527else 20528 enable_introspection=auto 20529fi 20530 20531 20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 20533$as_echo_n "checking for gobject-introspection... " >&6; } 20534 20535 case $enable_introspection in #( 20536 no) : 20537 found_introspection="no (disabled, use --enable-introspection to enable)" 20538 ;; #( 20539 yes) : 20540 if test -n "$PKG_CONFIG" && \ 20541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 20542 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 20543 ac_status=$? 20544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20545 test $ac_status = 0; }; then 20546 : 20547else 20548 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 20549fi 20550 if test -n "$PKG_CONFIG" && \ 20551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5 20552 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5 20553 ac_status=$? 20554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20555 test $ac_status = 0; }; then 20556 found_introspection=yes 20557else 20558 as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build poppler" "$LINENO" 5 20559fi 20560 ;; #( 20561 auto) : 20562 if test -n "$PKG_CONFIG" && \ 20563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5 20564 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5 20565 ac_status=$? 20566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20567 test $ac_status = 0; }; then 20568 found_introspection=yes 20569else 20570 found_introspection=no 20571fi 20572 ;; #( 20573 *) : 20574 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 20575 ;; 20576esac 20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 20578$as_echo "$found_introspection" >&6; } 20579 20580 INTROSPECTION_SCANNER= 20581 INTROSPECTION_COMPILER= 20582 INTROSPECTION_GENERATE= 20583 INTROSPECTION_GIRDIR= 20584 INTROSPECTION_TYPELIBDIR= 20585 if test "x$found_introspection" = "xyes"; then 20586 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 20587 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 20588 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 20589 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` 20590 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" 20591 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 20592 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 20593 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 20594 fi 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 if test "x$found_introspection" = "xyes"; then 20605 HAVE_INTROSPECTION_TRUE= 20606 HAVE_INTROSPECTION_FALSE='#' 20607else 20608 HAVE_INTROSPECTION_TRUE='#' 20609 HAVE_INTROSPECTION_FALSE= 20610fi 20611 20612 20613 20614 20615 GLIB_REQ="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 20616 # Extract the first word of "glib-mkenums", so it can be a program name with args. 20617set dummy glib-mkenums; ac_word=$2 20618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20619$as_echo_n "checking for $ac_word... " >&6; } 20620if ${ac_cv_path_GLIB_MKENUMS+:} false; then : 20621 $as_echo_n "(cached) " >&6 20622else 20623 case $GLIB_MKENUMS in 20624 [\\/]* | ?:[\\/]*) 20625 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path. 20626 ;; 20627 *) 20628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20629for as_dir in $PATH 20630do 20631 IFS=$as_save_IFS 20632 test -z "$as_dir" && as_dir=. 20633 for ac_exec_ext in '' $ac_executable_extensions; do 20634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20635 ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext" 20636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20637 break 2 20638 fi 20639done 20640 done 20641IFS=$as_save_IFS 20642 20643 ;; 20644esac 20645fi 20646GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS 20647if test -n "$GLIB_MKENUMS"; then 20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5 20649$as_echo "$GLIB_MKENUMS" >&6; } 20650else 20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20652$as_echo "no" >&6; } 20653fi 20654 20655 20656 POPPLER_GLIB_DISABLE_DEPRECATED="$POPPLER_GLIB_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED" 20657 POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="$POPPLER_GLIB_DISABLE_SINGLE_INCLUDES -DG_DISABLE_SINGLE_INCLUDES" 20658 fi 20659else 20660 if test x$enable_poppler_glib = xyes; then 20661 as_fn_error $? "\"Cairo output is required to build glib frontend\"" "$LINENO" 5 20662 fi 20663 enable_poppler_glib="no" 20664 GLIB_REQ="" 20665fi 20666 if test x$enable_poppler_glib = xyes; then 20667 BUILD_POPPLER_GLIB_TRUE= 20668 BUILD_POPPLER_GLIB_FALSE='#' 20669else 20670 BUILD_POPPLER_GLIB_TRUE='#' 20671 BUILD_POPPLER_GLIB_FALSE= 20672fi 20673 20674 if test "x$found_introspection" = "xyes"; then 20675 HAVE_INTROSPECTION_TRUE= 20676 HAVE_INTROSPECTION_FALSE='#' 20677else 20678 HAVE_INTROSPECTION_TRUE='#' 20679 HAVE_INTROSPECTION_FALSE= 20680fi 20681 20682 20683 20684 20685 20686 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 20687set dummy gtkdoc-check; ac_word=$2 20688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20689$as_echo_n "checking for $ac_word... " >&6; } 20690if ${ac_cv_path_GTKDOC_CHECK+:} false; then : 20691 $as_echo_n "(cached) " >&6 20692else 20693 case $GTKDOC_CHECK in 20694 [\\/]* | ?:[\\/]*) 20695 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. 20696 ;; 20697 *) 20698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20699for as_dir in $PATH 20700do 20701 IFS=$as_save_IFS 20702 test -z "$as_dir" && as_dir=. 20703 for ac_exec_ext in '' $ac_executable_extensions; do 20704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20705 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" 20706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20707 break 2 20708 fi 20709done 20710 done 20711IFS=$as_save_IFS 20712 20713 ;; 20714esac 20715fi 20716GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK 20717if test -n "$GTKDOC_CHECK"; then 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 20719$as_echo "$GTKDOC_CHECK" >&6; } 20720else 20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20722$as_echo "no" >&6; } 20723fi 20724 20725 20726 for ac_prog in gtkdoc-rebase 20727do 20728 # Extract the first word of "$ac_prog", so it can be a program name with args. 20729set dummy $ac_prog; ac_word=$2 20730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20731$as_echo_n "checking for $ac_word... " >&6; } 20732if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 20733 $as_echo_n "(cached) " >&6 20734else 20735 case $GTKDOC_REBASE in 20736 [\\/]* | ?:[\\/]*) 20737 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 20738 ;; 20739 *) 20740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20741for as_dir in $PATH 20742do 20743 IFS=$as_save_IFS 20744 test -z "$as_dir" && as_dir=. 20745 for ac_exec_ext in '' $ac_executable_extensions; do 20746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20747 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 20748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20749 break 2 20750 fi 20751done 20752 done 20753IFS=$as_save_IFS 20754 20755 ;; 20756esac 20757fi 20758GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 20759if test -n "$GTKDOC_REBASE"; then 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 20761$as_echo "$GTKDOC_REBASE" >&6; } 20762else 20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20764$as_echo "no" >&6; } 20765fi 20766 20767 20768 test -n "$GTKDOC_REBASE" && break 20769done 20770test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 20771 20772 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 20773set dummy gtkdoc-mkpdf; ac_word=$2 20774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20775$as_echo_n "checking for $ac_word... " >&6; } 20776if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 20777 $as_echo_n "(cached) " >&6 20778else 20779 case $GTKDOC_MKPDF in 20780 [\\/]* | ?:[\\/]*) 20781 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 20782 ;; 20783 *) 20784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20785for as_dir in $PATH 20786do 20787 IFS=$as_save_IFS 20788 test -z "$as_dir" && as_dir=. 20789 for ac_exec_ext in '' $ac_executable_extensions; do 20790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20791 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 20792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20793 break 2 20794 fi 20795done 20796 done 20797IFS=$as_save_IFS 20798 20799 ;; 20800esac 20801fi 20802GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 20803if test -n "$GTKDOC_MKPDF"; then 20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 20805$as_echo "$GTKDOC_MKPDF" >&6; } 20806else 20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20808$as_echo "no" >&6; } 20809fi 20810 20811 20812 20813 20814# Check whether --with-html-dir was given. 20815if test "${with_html_dir+set}" = set; then : 20816 withval=$with_html_dir; 20817else 20818 with_html_dir='${datadir}/gtk-doc/html' 20819fi 20820 20821 HTML_DIR="$with_html_dir" 20822 20823 20824 # Check whether --enable-gtk-doc was given. 20825if test "${enable_gtk_doc+set}" = set; then : 20826 enableval=$enable_gtk_doc; 20827else 20828 enable_gtk_doc=no 20829fi 20830 20831 20832 if test x$enable_gtk_doc = xyes; then 20833 if test -n "$PKG_CONFIG" && \ 20834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.14\""; } >&5 20835 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.14") 2>&5 20836 ac_status=$? 20837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20838 test $ac_status = 0; }; then 20839 : 20840else 20841 as_fn_error $? "You need to have gtk-doc >= 1.14 installed to build $PACKAGE_NAME" "$LINENO" 5 20842fi 20843 fi 20844 20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 20846$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 20848$as_echo "$enable_gtk_doc" >&6; } 20849 20850 # Check whether --enable-gtk-doc-html was given. 20851if test "${enable_gtk_doc_html+set}" = set; then : 20852 enableval=$enable_gtk_doc_html; 20853else 20854 enable_gtk_doc_html=yes 20855fi 20856 20857 # Check whether --enable-gtk-doc-pdf was given. 20858if test "${enable_gtk_doc_pdf+set}" = set; then : 20859 enableval=$enable_gtk_doc_pdf; 20860else 20861 enable_gtk_doc_pdf=no 20862fi 20863 20864 20865 if test -z "$GTKDOC_MKPDF"; then 20866 enable_gtk_doc_pdf=no 20867 fi 20868 20869 20870 if test x$enable_gtk_doc = xyes; then 20871 ENABLE_GTK_DOC_TRUE= 20872 ENABLE_GTK_DOC_FALSE='#' 20873else 20874 ENABLE_GTK_DOC_TRUE='#' 20875 ENABLE_GTK_DOC_FALSE= 20876fi 20877 20878 if test x$enable_gtk_doc_html = xyes; then 20879 GTK_DOC_BUILD_HTML_TRUE= 20880 GTK_DOC_BUILD_HTML_FALSE='#' 20881else 20882 GTK_DOC_BUILD_HTML_TRUE='#' 20883 GTK_DOC_BUILD_HTML_FALSE= 20884fi 20885 20886 if test x$enable_gtk_doc_pdf = xyes; then 20887 GTK_DOC_BUILD_PDF_TRUE= 20888 GTK_DOC_BUILD_PDF_FALSE='#' 20889else 20890 GTK_DOC_BUILD_PDF_TRUE='#' 20891 GTK_DOC_BUILD_PDF_FALSE= 20892fi 20893 20894 if test -n "$LIBTOOL"; then 20895 GTK_DOC_USE_LIBTOOL_TRUE= 20896 GTK_DOC_USE_LIBTOOL_FALSE='#' 20897else 20898 GTK_DOC_USE_LIBTOOL_TRUE='#' 20899 GTK_DOC_USE_LIBTOOL_FALSE= 20900fi 20901 20902 if test -n "$GTKDOC_REBASE"; then 20903 GTK_DOC_USE_REBASE_TRUE= 20904 GTK_DOC_USE_REBASE_FALSE='#' 20905else 20906 GTK_DOC_USE_REBASE_TRUE='#' 20907 GTK_DOC_USE_REBASE_FALSE= 20908fi 20909 20910 20911 20912# Check whether --enable-gdk was given. 20913if test "${enable_gdk+set}" = set; then : 20914 enableval=$enable_gdk; enable_gdk=$enableval 20915else 20916 enable_gdk="try" 20917fi 20918 20919 20920if test x$enable_poppler_glib = xyes; then 20921 if test x$enable_gdk = xyes; then 20922 20923pkg_failed=no 20924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5 20925$as_echo_n "checking for GDK... " >&6; } 20926 20927if test -n "$GDK_CFLAGS"; then 20928 pkg_cv_GDK_CFLAGS="$GDK_CFLAGS" 20929 elif test -n "$PKG_CONFIG"; then 20930 if test -n "$PKG_CONFIG" && \ 20931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5 20932 ($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5 20933 ac_status=$? 20934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20935 test $ac_status = 0; }; then 20936 pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0" 2>/dev/null` 20937else 20938 pkg_failed=yes 20939fi 20940 else 20941 pkg_failed=untried 20942fi 20943if test -n "$GDK_LIBS"; then 20944 pkg_cv_GDK_LIBS="$GDK_LIBS" 20945 elif test -n "$PKG_CONFIG"; then 20946 if test -n "$PKG_CONFIG" && \ 20947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5 20948 ($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5 20949 ac_status=$? 20950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20951 test $ac_status = 0; }; then 20952 pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0" 2>/dev/null` 20953else 20954 pkg_failed=yes 20955fi 20956 else 20957 pkg_failed=untried 20958fi 20959 20960 20961 20962if test $pkg_failed = yes; then 20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20964$as_echo "no" >&6; } 20965 20966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20967 _pkg_short_errors_supported=yes 20968else 20969 _pkg_short_errors_supported=no 20970fi 20971 if test $_pkg_short_errors_supported = yes; then 20972 GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-2.0" 2>&1` 20973 else 20974 GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-2.0" 2>&1` 20975 fi 20976 # Put the nasty error message in config.log where it belongs 20977 echo "$GDK_PKG_ERRORS" >&5 20978 20979 as_fn_error $? "Package requirements (gdk-2.0) were not met: 20980 20981$GDK_PKG_ERRORS 20982 20983Consider adjusting the PKG_CONFIG_PATH environment variable if you 20984installed software in a non-standard prefix. 20985 20986Alternatively, you may set the environment variables GDK_CFLAGS 20987and GDK_LIBS to avoid the need to call pkg-config. 20988See the pkg-config man page for more details." "$LINENO" 5 20989elif test $pkg_failed = untried; then 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20991$as_echo "no" >&6; } 20992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20994as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20995is in your PATH or set the PKG_CONFIG environment variable to the full 20996path to pkg-config. 20997 20998Alternatively, you may set the environment variables GDK_CFLAGS 20999and GDK_LIBS to avoid the need to call pkg-config. 21000See the pkg-config man page for more details. 21001 21002To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21003See \`config.log' for more details" "$LINENO" 5; } 21004else 21005 GDK_CFLAGS=$pkg_cv_GDK_CFLAGS 21006 GDK_LIBS=$pkg_cv_GDK_LIBS 21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21008$as_echo "yes" >&6; } 21009 21010fi 21011 elif test x$enable_gdk = xtry; then 21012 21013pkg_failed=no 21014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5 21015$as_echo_n "checking for GDK... " >&6; } 21016 21017if test -n "$GDK_CFLAGS"; then 21018 pkg_cv_GDK_CFLAGS="$GDK_CFLAGS" 21019 elif test -n "$PKG_CONFIG"; then 21020 if test -n "$PKG_CONFIG" && \ 21021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5 21022 ($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5 21023 ac_status=$? 21024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21025 test $ac_status = 0; }; then 21026 pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0" 2>/dev/null` 21027else 21028 pkg_failed=yes 21029fi 21030 else 21031 pkg_failed=untried 21032fi 21033if test -n "$GDK_LIBS"; then 21034 pkg_cv_GDK_LIBS="$GDK_LIBS" 21035 elif test -n "$PKG_CONFIG"; then 21036 if test -n "$PKG_CONFIG" && \ 21037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5 21038 ($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5 21039 ac_status=$? 21040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21041 test $ac_status = 0; }; then 21042 pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0" 2>/dev/null` 21043else 21044 pkg_failed=yes 21045fi 21046 else 21047 pkg_failed=untried 21048fi 21049 21050 21051 21052if test $pkg_failed = yes; then 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21054$as_echo "no" >&6; } 21055 21056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21057 _pkg_short_errors_supported=yes 21058else 21059 _pkg_short_errors_supported=no 21060fi 21061 if test $_pkg_short_errors_supported = yes; then 21062 GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-2.0" 2>&1` 21063 else 21064 GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-2.0" 2>&1` 21065 fi 21066 # Put the nasty error message in config.log where it belongs 21067 echo "$GDK_PKG_ERRORS" >&5 21068 21069 enable_gdk="no" 21070elif test $pkg_failed = untried; then 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21072$as_echo "no" >&6; } 21073 enable_gdk="no" 21074else 21075 GDK_CFLAGS=$pkg_cv_GDK_CFLAGS 21076 GDK_LIBS=$pkg_cv_GDK_LIBS 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21078$as_echo "yes" >&6; } 21079 enable_gdk="yes" 21080fi 21081 fi 21082 if test x$enable_gdk = xyes; then 21083 GDK_REQ="gdk-2.0 gdk-pixbuf-2.0" 21084 21085$as_echo "#define POPPLER_WITH_GDK 1" >>confdefs.h 21086 21087 GDK_FEATURE="#define POPPLER_WITH_GDK 1" 21088 POPPLER_GLIB_DISABLE_DEPRECATED="$POPPLER_GLIB_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED" 21089 POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="$POPPLER_GLIB_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" 21090 else 21091 enable_gdk="no" 21092 GDK_FEATURE="" 21093 GDK_REQ="" 21094 fi 21095else 21096 enable_gdk="no" 21097 GDK_REQ="" 21098fi 21099 if test x$enable_gdk = xyes; then 21100 BUILD_WITH_GDK_TRUE= 21101 BUILD_WITH_GDK_FALSE='#' 21102else 21103 BUILD_WITH_GDK_TRUE='#' 21104 BUILD_WITH_GDK_FALSE= 21105fi 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115# Check whether --enable-poppler-qt was given. 21116if test "${enable_poppler_qt+set}" = set; then : 21117 enableval=$enable_poppler_qt; enable_poppler_qt=$enableval 21118else 21119 enable_poppler_qt="try" 21120fi 21121 21122 21123if test x$enable_poppler_qt = xyes; then 21124 21125 21126pkg_failed=no 21127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libqt3" >&5 21128$as_echo_n "checking for libqt3... " >&6; } 21129 21130if test -n "$libqt3_CFLAGS"; then 21131 pkg_cv_libqt3_CFLAGS="$libqt3_CFLAGS" 21132 elif test -n "$PKG_CONFIG"; then 21133 if test -n "$PKG_CONFIG" && \ 21134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5 21135 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5 21136 ac_status=$? 21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21138 test $ac_status = 0; }; then 21139 pkg_cv_libqt3_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null` 21140else 21141 pkg_failed=yes 21142fi 21143 else 21144 pkg_failed=untried 21145fi 21146if test -n "$libqt3_LIBS"; then 21147 pkg_cv_libqt3_LIBS="$libqt3_LIBS" 21148 elif test -n "$PKG_CONFIG"; then 21149 if test -n "$PKG_CONFIG" && \ 21150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5 21151 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5 21152 ac_status=$? 21153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21154 test $ac_status = 0; }; then 21155 pkg_cv_libqt3_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null` 21156else 21157 pkg_failed=yes 21158fi 21159 else 21160 pkg_failed=untried 21161fi 21162 21163 21164 21165if test $pkg_failed = yes; then 21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21167$as_echo "no" >&6; } 21168 21169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21170 _pkg_short_errors_supported=yes 21171else 21172 _pkg_short_errors_supported=no 21173fi 21174 if test $_pkg_short_errors_supported = yes; then 21175 libqt3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "qt-mt" 2>&1` 21176 else 21177 libqt3_PKG_ERRORS=`$PKG_CONFIG --print-errors "qt-mt" 2>&1` 21178 fi 21179 # Put the nasty error message in config.log where it belongs 21180 echo "$libqt3_PKG_ERRORS" >&5 21181 21182 21183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21185as_fn_error $? "Qt development libraries not found 21186See \`config.log' for more details" "$LINENO" 5; } 21187 21188elif test $pkg_failed = untried; then 21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21190$as_echo "no" >&6; } 21191 21192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21194as_fn_error $? "Qt development libraries not found 21195See \`config.log' for more details" "$LINENO" 5; } 21196 21197else 21198 libqt3_CFLAGS=$pkg_cv_libqt3_CFLAGS 21199 libqt3_LIBS=$pkg_cv_libqt3_LIBS 21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21201$as_echo "yes" >&6; } 21202 21203 : 21204 21205fi 21206 21207 21208elif test x$enable_poppler_qt = xtry; then 21209 21210 21211pkg_failed=no 21212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libqt3" >&5 21213$as_echo_n "checking for libqt3... " >&6; } 21214 21215if test -n "$libqt3_CFLAGS"; then 21216 pkg_cv_libqt3_CFLAGS="$libqt3_CFLAGS" 21217 elif test -n "$PKG_CONFIG"; then 21218 if test -n "$PKG_CONFIG" && \ 21219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5 21220 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5 21221 ac_status=$? 21222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21223 test $ac_status = 0; }; then 21224 pkg_cv_libqt3_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null` 21225else 21226 pkg_failed=yes 21227fi 21228 else 21229 pkg_failed=untried 21230fi 21231if test -n "$libqt3_LIBS"; then 21232 pkg_cv_libqt3_LIBS="$libqt3_LIBS" 21233 elif test -n "$PKG_CONFIG"; then 21234 if test -n "$PKG_CONFIG" && \ 21235 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5 21236 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5 21237 ac_status=$? 21238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21239 test $ac_status = 0; }; then 21240 pkg_cv_libqt3_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null` 21241else 21242 pkg_failed=yes 21243fi 21244 else 21245 pkg_failed=untried 21246fi 21247 21248 21249 21250if test $pkg_failed = yes; then 21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21252$as_echo "no" >&6; } 21253 21254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21255 _pkg_short_errors_supported=yes 21256else 21257 _pkg_short_errors_supported=no 21258fi 21259 if test $_pkg_short_errors_supported = yes; then 21260 libqt3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "qt-mt" 2>&1` 21261 else 21262 libqt3_PKG_ERRORS=`$PKG_CONFIG --print-errors "qt-mt" 2>&1` 21263 fi 21264 # Put the nasty error message in config.log where it belongs 21265 echo "$libqt3_PKG_ERRORS" >&5 21266 21267 21268 enable_poppler_qt="no" 21269 21270elif test $pkg_failed = untried; then 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21272$as_echo "no" >&6; } 21273 21274 enable_poppler_qt="no" 21275 21276else 21277 libqt3_CFLAGS=$pkg_cv_libqt3_CFLAGS 21278 libqt3_LIBS=$pkg_cv_libqt3_LIBS 21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21280$as_echo "yes" >&6; } 21281 21282 enable_poppler_qt="yes" 21283 21284fi 21285 21286 21287fi 21288 21289 21290 21291 if test "x$enable_poppler_qt" = "xyes"; then 21292 BUILD_POPPLER_QT_TRUE= 21293 BUILD_POPPLER_QT_FALSE='#' 21294else 21295 BUILD_POPPLER_QT_TRUE='#' 21296 BUILD_POPPLER_QT_FALSE= 21297fi 21298 21299 21300 21301# Check whether --enable-poppler-qt4 was given. 21302if test "${enable_poppler_qt4+set}" = set; then : 21303 enableval=$enable_poppler_qt4; enable_poppler_qt4=$enableval 21304else 21305 enable_poppler_qt4="try" 21306fi 21307 21308if test x$enable_poppler_qt4 = xyes; then 21309 21310pkg_failed=no 21311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4" >&5 21312$as_echo_n "checking for POPPLER_QT4... " >&6; } 21313 21314if test -n "$POPPLER_QT4_CFLAGS"; then 21315 pkg_cv_POPPLER_QT4_CFLAGS="$POPPLER_QT4_CFLAGS" 21316 elif test -n "$PKG_CONFIG"; then 21317 if test -n "$PKG_CONFIG" && \ 21318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5 21319 ($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5 21320 ac_status=$? 21321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21322 test $ac_status = 0; }; then 21323 pkg_cv_POPPLER_QT4_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null` 21324else 21325 pkg_failed=yes 21326fi 21327 else 21328 pkg_failed=untried 21329fi 21330if test -n "$POPPLER_QT4_LIBS"; then 21331 pkg_cv_POPPLER_QT4_LIBS="$POPPLER_QT4_LIBS" 21332 elif test -n "$PKG_CONFIG"; then 21333 if test -n "$PKG_CONFIG" && \ 21334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5 21335 ($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5 21336 ac_status=$? 21337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21338 test $ac_status = 0; }; then 21339 pkg_cv_POPPLER_QT4_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null` 21340else 21341 pkg_failed=yes 21342fi 21343 else 21344 pkg_failed=untried 21345fi 21346 21347 21348 21349if test $pkg_failed = yes; then 21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21351$as_echo "no" >&6; } 21352 21353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21354 _pkg_short_errors_supported=yes 21355else 21356 _pkg_short_errors_supported=no 21357fi 21358 if test $_pkg_short_errors_supported = yes; then 21359 POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1` 21360 else 21361 POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1` 21362 fi 21363 # Put the nasty error message in config.log where it belongs 21364 echo "$POPPLER_QT4_PKG_ERRORS" >&5 21365 21366 as_fn_error $? "Package requirements (QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0) were not met: 21367 21368$POPPLER_QT4_PKG_ERRORS 21369 21370Consider adjusting the PKG_CONFIG_PATH environment variable if you 21371installed software in a non-standard prefix. 21372 21373Alternatively, you may set the environment variables POPPLER_QT4_CFLAGS 21374and POPPLER_QT4_LIBS to avoid the need to call pkg-config. 21375See the pkg-config man page for more details." "$LINENO" 5 21376elif test $pkg_failed = untried; then 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21378$as_echo "no" >&6; } 21379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21381as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21382is in your PATH or set the PKG_CONFIG environment variable to the full 21383path to pkg-config. 21384 21385Alternatively, you may set the environment variables POPPLER_QT4_CFLAGS 21386and POPPLER_QT4_LIBS to avoid the need to call pkg-config. 21387See the pkg-config man page for more details. 21388 21389To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21390See \`config.log' for more details" "$LINENO" 5; } 21391else 21392 POPPLER_QT4_CFLAGS=$pkg_cv_POPPLER_QT4_CFLAGS 21393 POPPLER_QT4_LIBS=$pkg_cv_POPPLER_QT4_LIBS 21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21395$as_echo "yes" >&6; } 21396 21397fi 21398 21399pkg_failed=no 21400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4_TEST" >&5 21401$as_echo_n "checking for POPPLER_QT4_TEST... " >&6; } 21402 21403if test -n "$POPPLER_QT4_TEST_CFLAGS"; then 21404 pkg_cv_POPPLER_QT4_TEST_CFLAGS="$POPPLER_QT4_TEST_CFLAGS" 21405 elif test -n "$PKG_CONFIG"; then 21406 if test -n "$PKG_CONFIG" && \ 21407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5 21408 ($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5 21409 ac_status=$? 21410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21411 test $ac_status = 0; }; then 21412 pkg_cv_POPPLER_QT4_TEST_CFLAGS=`$PKG_CONFIG --cflags "QtTest >= 4.4.0" 2>/dev/null` 21413else 21414 pkg_failed=yes 21415fi 21416 else 21417 pkg_failed=untried 21418fi 21419if test -n "$POPPLER_QT4_TEST_LIBS"; then 21420 pkg_cv_POPPLER_QT4_TEST_LIBS="$POPPLER_QT4_TEST_LIBS" 21421 elif test -n "$PKG_CONFIG"; then 21422 if test -n "$PKG_CONFIG" && \ 21423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5 21424 ($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5 21425 ac_status=$? 21426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21427 test $ac_status = 0; }; then 21428 pkg_cv_POPPLER_QT4_TEST_LIBS=`$PKG_CONFIG --libs "QtTest >= 4.4.0" 2>/dev/null` 21429else 21430 pkg_failed=yes 21431fi 21432 else 21433 pkg_failed=untried 21434fi 21435 21436 21437 21438if test $pkg_failed = yes; then 21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21440$as_echo "no" >&6; } 21441 21442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21443 _pkg_short_errors_supported=yes 21444else 21445 _pkg_short_errors_supported=no 21446fi 21447 if test $_pkg_short_errors_supported = yes; then 21448 POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtTest >= 4.4.0" 2>&1` 21449 else 21450 POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtTest >= 4.4.0" 2>&1` 21451 fi 21452 # Put the nasty error message in config.log where it belongs 21453 echo "$POPPLER_QT4_TEST_PKG_ERRORS" >&5 21454 21455 as_fn_error $? "Package requirements (QtTest >= 4.4.0) were not met: 21456 21457$POPPLER_QT4_TEST_PKG_ERRORS 21458 21459Consider adjusting the PKG_CONFIG_PATH environment variable if you 21460installed software in a non-standard prefix. 21461 21462Alternatively, you may set the environment variables POPPLER_QT4_TEST_CFLAGS 21463and POPPLER_QT4_TEST_LIBS to avoid the need to call pkg-config. 21464See the pkg-config man page for more details." "$LINENO" 5 21465elif test $pkg_failed = untried; then 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21467$as_echo "no" >&6; } 21468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21470as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21471is in your PATH or set the PKG_CONFIG environment variable to the full 21472path to pkg-config. 21473 21474Alternatively, you may set the environment variables POPPLER_QT4_TEST_CFLAGS 21475and POPPLER_QT4_TEST_LIBS to avoid the need to call pkg-config. 21476See the pkg-config man page for more details. 21477 21478To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21479See \`config.log' for more details" "$LINENO" 5; } 21480else 21481 POPPLER_QT4_TEST_CFLAGS=$pkg_cv_POPPLER_QT4_TEST_CFLAGS 21482 POPPLER_QT4_TEST_LIBS=$pkg_cv_POPPLER_QT4_TEST_LIBS 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21484$as_echo "yes" >&6; } 21485 21486fi 21487elif test x$enable_poppler_qt4 = xtry; then 21488 21489pkg_failed=no 21490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4" >&5 21491$as_echo_n "checking for POPPLER_QT4... " >&6; } 21492 21493if test -n "$POPPLER_QT4_CFLAGS"; then 21494 pkg_cv_POPPLER_QT4_CFLAGS="$POPPLER_QT4_CFLAGS" 21495 elif test -n "$PKG_CONFIG"; then 21496 if test -n "$PKG_CONFIG" && \ 21497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5 21498 ($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5 21499 ac_status=$? 21500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21501 test $ac_status = 0; }; then 21502 pkg_cv_POPPLER_QT4_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null` 21503else 21504 pkg_failed=yes 21505fi 21506 else 21507 pkg_failed=untried 21508fi 21509if test -n "$POPPLER_QT4_LIBS"; then 21510 pkg_cv_POPPLER_QT4_LIBS="$POPPLER_QT4_LIBS" 21511 elif test -n "$PKG_CONFIG"; then 21512 if test -n "$PKG_CONFIG" && \ 21513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5 21514 ($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5 21515 ac_status=$? 21516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21517 test $ac_status = 0; }; then 21518 pkg_cv_POPPLER_QT4_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null` 21519else 21520 pkg_failed=yes 21521fi 21522 else 21523 pkg_failed=untried 21524fi 21525 21526 21527 21528if test $pkg_failed = yes; then 21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21530$as_echo "no" >&6; } 21531 21532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21533 _pkg_short_errors_supported=yes 21534else 21535 _pkg_short_errors_supported=no 21536fi 21537 if test $_pkg_short_errors_supported = yes; then 21538 POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1` 21539 else 21540 POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1` 21541 fi 21542 # Put the nasty error message in config.log where it belongs 21543 echo "$POPPLER_QT4_PKG_ERRORS" >&5 21544 21545 enable_poppler_qt4="no" 21546elif test $pkg_failed = untried; then 21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21548$as_echo "no" >&6; } 21549 enable_poppler_qt4="no" 21550else 21551 POPPLER_QT4_CFLAGS=$pkg_cv_POPPLER_QT4_CFLAGS 21552 POPPLER_QT4_LIBS=$pkg_cv_POPPLER_QT4_LIBS 21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21554$as_echo "yes" >&6; } 21555 enable_poppler_qt4="yes" 21556fi 21557 if test x$enable_poppler_qt4 = xyes; then 21558 21559pkg_failed=no 21560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4_TEST" >&5 21561$as_echo_n "checking for POPPLER_QT4_TEST... " >&6; } 21562 21563if test -n "$POPPLER_QT4_TEST_CFLAGS"; then 21564 pkg_cv_POPPLER_QT4_TEST_CFLAGS="$POPPLER_QT4_TEST_CFLAGS" 21565 elif test -n "$PKG_CONFIG"; then 21566 if test -n "$PKG_CONFIG" && \ 21567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5 21568 ($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5 21569 ac_status=$? 21570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21571 test $ac_status = 0; }; then 21572 pkg_cv_POPPLER_QT4_TEST_CFLAGS=`$PKG_CONFIG --cflags "QtTest >= 4.4.0" 2>/dev/null` 21573else 21574 pkg_failed=yes 21575fi 21576 else 21577 pkg_failed=untried 21578fi 21579if test -n "$POPPLER_QT4_TEST_LIBS"; then 21580 pkg_cv_POPPLER_QT4_TEST_LIBS="$POPPLER_QT4_TEST_LIBS" 21581 elif test -n "$PKG_CONFIG"; then 21582 if test -n "$PKG_CONFIG" && \ 21583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5 21584 ($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5 21585 ac_status=$? 21586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21587 test $ac_status = 0; }; then 21588 pkg_cv_POPPLER_QT4_TEST_LIBS=`$PKG_CONFIG --libs "QtTest >= 4.4.0" 2>/dev/null` 21589else 21590 pkg_failed=yes 21591fi 21592 else 21593 pkg_failed=untried 21594fi 21595 21596 21597 21598if test $pkg_failed = yes; then 21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21600$as_echo "no" >&6; } 21601 21602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21603 _pkg_short_errors_supported=yes 21604else 21605 _pkg_short_errors_supported=no 21606fi 21607 if test $_pkg_short_errors_supported = yes; then 21608 POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtTest >= 4.4.0" 2>&1` 21609 else 21610 POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtTest >= 4.4.0" 2>&1` 21611 fi 21612 # Put the nasty error message in config.log where it belongs 21613 echo "$POPPLER_QT4_TEST_PKG_ERRORS" >&5 21614 21615 enable_poppler_qt4="no" 21616elif test $pkg_failed = untried; then 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21618$as_echo "no" >&6; } 21619 enable_poppler_qt4="no" 21620else 21621 POPPLER_QT4_TEST_CFLAGS=$pkg_cv_POPPLER_QT4_TEST_CFLAGS 21622 POPPLER_QT4_TEST_LIBS=$pkg_cv_POPPLER_QT4_TEST_LIBS 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21624$as_echo "yes" >&6; } 21625 enable_poppler_qt4="yes" 21626fi 21627 fi 21628fi 21629 21630 21631 21632 21633 21634if test x$enable_poppler_qt4 = xyes; then 21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 moc" >&5 21636$as_echo_n "checking for Qt4 moc... " >&6; } 21637 MOCQT4=`which moc` 21638 mocversion=`$MOCQT4 -v 2>&1` 21639 mocversiongrep=`echo $mocversion | grep "Qt 4"` 21640 if test x"$mocversiongrep" != x"$mocversion"; then 21641 # moc was not the qt4 one, try with moc-qt4 21642 MOCQT4=`which moc-qt4` 21643 mocversion=`$MOCQT4 -v 2>&1` 21644 mocversiongrep=`echo $mocversion | grep "Qt 4"` 21645 if test x"$mocversiongrep" != x"$mocversion"; then 21646 # no valid moc found 21647 enable_poppler_qt4=no; 21648 MOCQT4="not found" 21649 fi 21650 fi 21651 21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOCQT4" >&5 21653$as_echo "$MOCQT4" >&6; } 21654fi 21655 21656 if test "x$enable_poppler_qt4" = "xyes"; then 21657 BUILD_POPPLER_QT4_TRUE= 21658 BUILD_POPPLER_QT4_FALSE='#' 21659else 21660 BUILD_POPPLER_QT4_TRUE='#' 21661 BUILD_POPPLER_QT4_FALSE= 21662fi 21663 21664 21665 21666# Check whether --enable-poppler-cpp was given. 21667if test "${enable_poppler_cpp+set}" = set; then : 21668 enableval=$enable_poppler_cpp; enable_poppler_cpp=$enableval 21669else 21670 enable_poppler_cpp="yes" 21671fi 21672 21673if test x$enable_poppler_cpp = xyes; then 21674 21675 if test "X$prefix" = "XNONE"; then 21676 acl_final_prefix="$ac_default_prefix" 21677 else 21678 acl_final_prefix="$prefix" 21679 fi 21680 if test "X$exec_prefix" = "XNONE"; then 21681 acl_final_exec_prefix='${prefix}' 21682 else 21683 acl_final_exec_prefix="$exec_prefix" 21684 fi 21685 acl_save_prefix="$prefix" 21686 prefix="$acl_final_prefix" 21687 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 21688 prefix="$acl_save_prefix" 21689 21690 21691 21692 acl_libdirstem=lib 21693 acl_libdirstem2= 21694 case "$host_os" in 21695 solaris*) 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 21697$as_echo_n "checking for 64-bit host... " >&6; } 21698if ${gl_cv_solaris_64bit+:} false; then : 21699 $as_echo_n "(cached) " >&6 21700else 21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21702/* end confdefs.h. */ 21703 21704#ifdef _LP64 21705sixtyfour bits 21706#endif 21707 21708_ACEOF 21709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21710 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 21711 gl_cv_solaris_64bit=yes 21712else 21713 gl_cv_solaris_64bit=no 21714fi 21715rm -f conftest* 21716 21717 21718fi 21719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 21720$as_echo "$gl_cv_solaris_64bit" >&6; } 21721 if test $gl_cv_solaris_64bit = yes; then 21722 acl_libdirstem=lib/64 21723 case "$host_cpu" in 21724 sparc*) acl_libdirstem2=lib/sparcv9 ;; 21725 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 21726 esac 21727 fi 21728 ;; 21729 *) 21730 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 21731 if test -n "$searchpath"; then 21732 acl_save_IFS="${IFS= }"; IFS=":" 21733 for searchdir in $searchpath; do 21734 if test -d "$searchdir"; then 21735 case "$searchdir" in 21736 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 21737 */../ | */.. ) 21738 # Better ignore directories of this form. They are misleading. 21739 ;; 21740 *) searchdir=`cd "$searchdir" && pwd` 21741 case "$searchdir" in 21742 */lib64 ) acl_libdirstem=lib64 ;; 21743 esac ;; 21744 esac 21745 fi 21746 done 21747 IFS="$acl_save_IFS" 21748 fi 21749 ;; 21750 esac 21751 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 use_additional=yes 21764 21765 acl_save_prefix="$prefix" 21766 prefix="$acl_final_prefix" 21767 acl_save_exec_prefix="$exec_prefix" 21768 exec_prefix="$acl_final_exec_prefix" 21769 21770 eval additional_includedir=\"$includedir\" 21771 eval additional_libdir=\"$libdir\" 21772 21773 exec_prefix="$acl_save_exec_prefix" 21774 prefix="$acl_save_prefix" 21775 21776 21777# Check whether --with-libiconv-prefix was given. 21778if test "${with_libiconv_prefix+set}" = set; then : 21779 withval=$with_libiconv_prefix; 21780 if test "X$withval" = "Xno"; then 21781 use_additional=no 21782 else 21783 if test "X$withval" = "X"; then 21784 21785 acl_save_prefix="$prefix" 21786 prefix="$acl_final_prefix" 21787 acl_save_exec_prefix="$exec_prefix" 21788 exec_prefix="$acl_final_exec_prefix" 21789 21790 eval additional_includedir=\"$includedir\" 21791 eval additional_libdir=\"$libdir\" 21792 21793 exec_prefix="$acl_save_exec_prefix" 21794 prefix="$acl_save_prefix" 21795 21796 else 21797 additional_includedir="$withval/include" 21798 additional_libdir="$withval/$acl_libdirstem" 21799 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 21800 && ! test -d "$withval/$acl_libdirstem"; then 21801 additional_libdir="$withval/$acl_libdirstem2" 21802 fi 21803 fi 21804 fi 21805 21806fi 21807 21808 LIBICONV= 21809 LTLIBICONV= 21810 INCICONV= 21811 LIBICONV_PREFIX= 21812 HAVE_LIBICONV= 21813 rpathdirs= 21814 ltrpathdirs= 21815 names_already_handled= 21816 names_next_round='iconv ' 21817 while test -n "$names_next_round"; do 21818 names_this_round="$names_next_round" 21819 names_next_round= 21820 for name in $names_this_round; do 21821 already_handled= 21822 for n in $names_already_handled; do 21823 if test "$n" = "$name"; then 21824 already_handled=yes 21825 break 21826 fi 21827 done 21828 if test -z "$already_handled"; then 21829 names_already_handled="$names_already_handled $name" 21830 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 21831 eval value=\"\$HAVE_LIB$uppername\" 21832 if test -n "$value"; then 21833 if test "$value" = yes; then 21834 eval value=\"\$LIB$uppername\" 21835 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 21836 eval value=\"\$LTLIB$uppername\" 21837 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 21838 else 21839 : 21840 fi 21841 else 21842 found_dir= 21843 found_la= 21844 found_so= 21845 found_a= 21846 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 21847 if test -n "$acl_shlibext"; then 21848 shrext=".$acl_shlibext" # typically: shrext=.so 21849 else 21850 shrext= 21851 fi 21852 if test $use_additional = yes; then 21853 dir="$additional_libdir" 21854 if test -n "$acl_shlibext"; then 21855 if test -f "$dir/$libname$shrext"; then 21856 found_dir="$dir" 21857 found_so="$dir/$libname$shrext" 21858 else 21859 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 21860 ver=`(cd "$dir" && \ 21861 for f in "$libname$shrext".*; do echo "$f"; done \ 21862 | sed -e "s,^$libname$shrext\\\\.,," \ 21863 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 21864 | sed 1q ) 2>/dev/null` 21865 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 21866 found_dir="$dir" 21867 found_so="$dir/$libname$shrext.$ver" 21868 fi 21869 else 21870 eval library_names=\"$acl_library_names_spec\" 21871 for f in $library_names; do 21872 if test -f "$dir/$f"; then 21873 found_dir="$dir" 21874 found_so="$dir/$f" 21875 break 21876 fi 21877 done 21878 fi 21879 fi 21880 fi 21881 if test "X$found_dir" = "X"; then 21882 if test -f "$dir/$libname.$acl_libext"; then 21883 found_dir="$dir" 21884 found_a="$dir/$libname.$acl_libext" 21885 fi 21886 fi 21887 if test "X$found_dir" != "X"; then 21888 if test -f "$dir/$libname.la"; then 21889 found_la="$dir/$libname.la" 21890 fi 21891 fi 21892 fi 21893 if test "X$found_dir" = "X"; then 21894 for x in $LDFLAGS $LTLIBICONV; do 21895 21896 acl_save_prefix="$prefix" 21897 prefix="$acl_final_prefix" 21898 acl_save_exec_prefix="$exec_prefix" 21899 exec_prefix="$acl_final_exec_prefix" 21900 eval x=\"$x\" 21901 exec_prefix="$acl_save_exec_prefix" 21902 prefix="$acl_save_prefix" 21903 21904 case "$x" in 21905 -L*) 21906 dir=`echo "X$x" | sed -e 's/^X-L//'` 21907 if test -n "$acl_shlibext"; then 21908 if test -f "$dir/$libname$shrext"; then 21909 found_dir="$dir" 21910 found_so="$dir/$libname$shrext" 21911 else 21912 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 21913 ver=`(cd "$dir" && \ 21914 for f in "$libname$shrext".*; do echo "$f"; done \ 21915 | sed -e "s,^$libname$shrext\\\\.,," \ 21916 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 21917 | sed 1q ) 2>/dev/null` 21918 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 21919 found_dir="$dir" 21920 found_so="$dir/$libname$shrext.$ver" 21921 fi 21922 else 21923 eval library_names=\"$acl_library_names_spec\" 21924 for f in $library_names; do 21925 if test -f "$dir/$f"; then 21926 found_dir="$dir" 21927 found_so="$dir/$f" 21928 break 21929 fi 21930 done 21931 fi 21932 fi 21933 fi 21934 if test "X$found_dir" = "X"; then 21935 if test -f "$dir/$libname.$acl_libext"; then 21936 found_dir="$dir" 21937 found_a="$dir/$libname.$acl_libext" 21938 fi 21939 fi 21940 if test "X$found_dir" != "X"; then 21941 if test -f "$dir/$libname.la"; then 21942 found_la="$dir/$libname.la" 21943 fi 21944 fi 21945 ;; 21946 esac 21947 if test "X$found_dir" != "X"; then 21948 break 21949 fi 21950 done 21951 fi 21952 if test "X$found_dir" != "X"; then 21953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 21954 if test "X$found_so" != "X"; then 21955 if test "$enable_rpath" = no \ 21956 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 21957 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 21958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21959 else 21960 haveit= 21961 for x in $ltrpathdirs; do 21962 if test "X$x" = "X$found_dir"; then 21963 haveit=yes 21964 break 21965 fi 21966 done 21967 if test -z "$haveit"; then 21968 ltrpathdirs="$ltrpathdirs $found_dir" 21969 fi 21970 if test "$acl_hardcode_direct" = yes; then 21971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21972 else 21973 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 21974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21975 haveit= 21976 for x in $rpathdirs; do 21977 if test "X$x" = "X$found_dir"; then 21978 haveit=yes 21979 break 21980 fi 21981 done 21982 if test -z "$haveit"; then 21983 rpathdirs="$rpathdirs $found_dir" 21984 fi 21985 else 21986 haveit= 21987 for x in $LDFLAGS $LIBICONV; do 21988 21989 acl_save_prefix="$prefix" 21990 prefix="$acl_final_prefix" 21991 acl_save_exec_prefix="$exec_prefix" 21992 exec_prefix="$acl_final_exec_prefix" 21993 eval x=\"$x\" 21994 exec_prefix="$acl_save_exec_prefix" 21995 prefix="$acl_save_prefix" 21996 21997 if test "X$x" = "X-L$found_dir"; then 21998 haveit=yes 21999 break 22000 fi 22001 done 22002 if test -z "$haveit"; then 22003 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 22004 fi 22005 if test "$acl_hardcode_minus_L" != no; then 22006 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22007 else 22008 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 22009 fi 22010 fi 22011 fi 22012 fi 22013 else 22014 if test "X$found_a" != "X"; then 22015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 22016 else 22017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 22018 fi 22019 fi 22020 additional_includedir= 22021 case "$found_dir" in 22022 */$acl_libdirstem | */$acl_libdirstem/) 22023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 22024 if test "$name" = 'iconv'; then 22025 LIBICONV_PREFIX="$basedir" 22026 fi 22027 additional_includedir="$basedir/include" 22028 ;; 22029 */$acl_libdirstem2 | */$acl_libdirstem2/) 22030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 22031 if test "$name" = 'iconv'; then 22032 LIBICONV_PREFIX="$basedir" 22033 fi 22034 additional_includedir="$basedir/include" 22035 ;; 22036 esac 22037 if test "X$additional_includedir" != "X"; then 22038 if test "X$additional_includedir" != "X/usr/include"; then 22039 haveit= 22040 if test "X$additional_includedir" = "X/usr/local/include"; then 22041 if test -n "$GCC"; then 22042 case $host_os in 22043 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22044 esac 22045 fi 22046 fi 22047 if test -z "$haveit"; then 22048 for x in $CPPFLAGS $INCICONV; do 22049 22050 acl_save_prefix="$prefix" 22051 prefix="$acl_final_prefix" 22052 acl_save_exec_prefix="$exec_prefix" 22053 exec_prefix="$acl_final_exec_prefix" 22054 eval x=\"$x\" 22055 exec_prefix="$acl_save_exec_prefix" 22056 prefix="$acl_save_prefix" 22057 22058 if test "X$x" = "X-I$additional_includedir"; then 22059 haveit=yes 22060 break 22061 fi 22062 done 22063 if test -z "$haveit"; then 22064 if test -d "$additional_includedir"; then 22065 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 22066 fi 22067 fi 22068 fi 22069 fi 22070 fi 22071 if test -n "$found_la"; then 22072 save_libdir="$libdir" 22073 case "$found_la" in 22074 */* | *\\*) . "$found_la" ;; 22075 *) . "./$found_la" ;; 22076 esac 22077 libdir="$save_libdir" 22078 for dep in $dependency_libs; do 22079 case "$dep" in 22080 -L*) 22081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 22082 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 22083 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 22084 haveit= 22085 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 22086 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 22087 if test -n "$GCC"; then 22088 case $host_os in 22089 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22090 esac 22091 fi 22092 fi 22093 if test -z "$haveit"; then 22094 haveit= 22095 for x in $LDFLAGS $LIBICONV; do 22096 22097 acl_save_prefix="$prefix" 22098 prefix="$acl_final_prefix" 22099 acl_save_exec_prefix="$exec_prefix" 22100 exec_prefix="$acl_final_exec_prefix" 22101 eval x=\"$x\" 22102 exec_prefix="$acl_save_exec_prefix" 22103 prefix="$acl_save_prefix" 22104 22105 if test "X$x" = "X-L$additional_libdir"; then 22106 haveit=yes 22107 break 22108 fi 22109 done 22110 if test -z "$haveit"; then 22111 if test -d "$additional_libdir"; then 22112 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 22113 fi 22114 fi 22115 haveit= 22116 for x in $LDFLAGS $LTLIBICONV; do 22117 22118 acl_save_prefix="$prefix" 22119 prefix="$acl_final_prefix" 22120 acl_save_exec_prefix="$exec_prefix" 22121 exec_prefix="$acl_final_exec_prefix" 22122 eval x=\"$x\" 22123 exec_prefix="$acl_save_exec_prefix" 22124 prefix="$acl_save_prefix" 22125 22126 if test "X$x" = "X-L$additional_libdir"; then 22127 haveit=yes 22128 break 22129 fi 22130 done 22131 if test -z "$haveit"; then 22132 if test -d "$additional_libdir"; then 22133 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 22134 fi 22135 fi 22136 fi 22137 fi 22138 ;; 22139 -R*) 22140 dir=`echo "X$dep" | sed -e 's/^X-R//'` 22141 if test "$enable_rpath" != no; then 22142 haveit= 22143 for x in $rpathdirs; do 22144 if test "X$x" = "X$dir"; then 22145 haveit=yes 22146 break 22147 fi 22148 done 22149 if test -z "$haveit"; then 22150 rpathdirs="$rpathdirs $dir" 22151 fi 22152 haveit= 22153 for x in $ltrpathdirs; do 22154 if test "X$x" = "X$dir"; then 22155 haveit=yes 22156 break 22157 fi 22158 done 22159 if test -z "$haveit"; then 22160 ltrpathdirs="$ltrpathdirs $dir" 22161 fi 22162 fi 22163 ;; 22164 -l*) 22165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 22166 ;; 22167 *.la) 22168 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 22169 ;; 22170 *) 22171 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 22172 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 22173 ;; 22174 esac 22175 done 22176 fi 22177 else 22178 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 22179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 22180 fi 22181 fi 22182 fi 22183 done 22184 done 22185 if test "X$rpathdirs" != "X"; then 22186 if test -n "$acl_hardcode_libdir_separator"; then 22187 alldirs= 22188 for found_dir in $rpathdirs; do 22189 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 22190 done 22191 acl_save_libdir="$libdir" 22192 libdir="$alldirs" 22193 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22194 libdir="$acl_save_libdir" 22195 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 22196 else 22197 for found_dir in $rpathdirs; do 22198 acl_save_libdir="$libdir" 22199 libdir="$found_dir" 22200 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22201 libdir="$acl_save_libdir" 22202 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 22203 done 22204 fi 22205 fi 22206 if test "X$ltrpathdirs" != "X"; then 22207 for found_dir in $ltrpathdirs; do 22208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 22209 done 22210 fi 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 am_save_CPPFLAGS="$CPPFLAGS" 22224 22225 for element in $INCICONV; do 22226 haveit= 22227 for x in $CPPFLAGS; do 22228 22229 acl_save_prefix="$prefix" 22230 prefix="$acl_final_prefix" 22231 acl_save_exec_prefix="$exec_prefix" 22232 exec_prefix="$acl_final_exec_prefix" 22233 eval x=\"$x\" 22234 exec_prefix="$acl_save_exec_prefix" 22235 prefix="$acl_save_prefix" 22236 22237 if test "X$x" = "X$element"; then 22238 haveit=yes 22239 break 22240 fi 22241 done 22242 if test -z "$haveit"; then 22243 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 22244 fi 22245 done 22246 22247 22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 22249$as_echo_n "checking for iconv... " >&6; } 22250if ${am_cv_func_iconv+:} false; then : 22251 $as_echo_n "(cached) " >&6 22252else 22253 22254 am_cv_func_iconv="no, consider installing GNU libiconv" 22255 am_cv_lib_iconv=no 22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22257/* end confdefs.h. */ 22258#include <stdlib.h> 22259#include <iconv.h> 22260int 22261main () 22262{ 22263iconv_t cd = iconv_open("",""); 22264 iconv(cd,NULL,NULL,NULL,NULL); 22265 iconv_close(cd); 22266 ; 22267 return 0; 22268} 22269_ACEOF 22270if ac_fn_c_try_link "$LINENO"; then : 22271 am_cv_func_iconv=yes 22272fi 22273rm -f core conftest.err conftest.$ac_objext \ 22274 conftest$ac_exeext conftest.$ac_ext 22275 if test "$am_cv_func_iconv" != yes; then 22276 am_save_LIBS="$LIBS" 22277 LIBS="$LIBS $LIBICONV" 22278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22279/* end confdefs.h. */ 22280#include <stdlib.h> 22281#include <iconv.h> 22282int 22283main () 22284{ 22285iconv_t cd = iconv_open("",""); 22286 iconv(cd,NULL,NULL,NULL,NULL); 22287 iconv_close(cd); 22288 ; 22289 return 0; 22290} 22291_ACEOF 22292if ac_fn_c_try_link "$LINENO"; then : 22293 am_cv_lib_iconv=yes 22294 am_cv_func_iconv=yes 22295fi 22296rm -f core conftest.err conftest.$ac_objext \ 22297 conftest$ac_exeext conftest.$ac_ext 22298 LIBS="$am_save_LIBS" 22299 fi 22300 22301fi 22302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 22303$as_echo "$am_cv_func_iconv" >&6; } 22304 if test "$am_cv_func_iconv" = yes; then 22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 22306$as_echo_n "checking for working iconv... " >&6; } 22307if ${am_cv_func_iconv_works+:} false; then : 22308 $as_echo_n "(cached) " >&6 22309else 22310 22311 am_save_LIBS="$LIBS" 22312 if test $am_cv_lib_iconv = yes; then 22313 LIBS="$LIBS $LIBICONV" 22314 fi 22315 if test "$cross_compiling" = yes; then : 22316 case "$host_os" in 22317 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 22318 *) am_cv_func_iconv_works="guessing yes" ;; 22319 esac 22320else 22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22322/* end confdefs.h. */ 22323 22324#include <iconv.h> 22325#include <string.h> 22326int main () 22327{ 22328 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 22329 returns. */ 22330 { 22331 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 22332 if (cd_utf8_to_88591 != (iconv_t)(-1)) 22333 { 22334 static const char input[] = "\342\202\254"; /* EURO SIGN */ 22335 char buf[10]; 22336 const char *inptr = input; 22337 size_t inbytesleft = strlen (input); 22338 char *outptr = buf; 22339 size_t outbytesleft = sizeof (buf); 22340 size_t res = iconv (cd_utf8_to_88591, 22341 (char **) &inptr, &inbytesleft, 22342 &outptr, &outbytesleft); 22343 if (res == 0) 22344 return 1; 22345 } 22346 } 22347#if 0 /* This bug could be worked around by the caller. */ 22348 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 22349 { 22350 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 22351 if (cd_88591_to_utf8 != (iconv_t)(-1)) 22352 { 22353 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 22354 char buf[50]; 22355 const char *inptr = input; 22356 size_t inbytesleft = strlen (input); 22357 char *outptr = buf; 22358 size_t outbytesleft = sizeof (buf); 22359 size_t res = iconv (cd_88591_to_utf8, 22360 (char **) &inptr, &inbytesleft, 22361 &outptr, &outbytesleft); 22362 if ((int)res > 0) 22363 return 1; 22364 } 22365 } 22366#endif 22367 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 22368 provided. */ 22369 if (/* Try standardized names. */ 22370 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 22371 /* Try IRIX, OSF/1 names. */ 22372 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 22373 /* Try AIX names. */ 22374 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 22375 /* Try HP-UX names. */ 22376 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 22377 return 1; 22378 return 0; 22379} 22380_ACEOF 22381if ac_fn_c_try_run "$LINENO"; then : 22382 am_cv_func_iconv_works=yes 22383else 22384 am_cv_func_iconv_works=no 22385fi 22386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22387 conftest.$ac_objext conftest.beam conftest.$ac_ext 22388fi 22389 22390 LIBS="$am_save_LIBS" 22391 22392fi 22393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 22394$as_echo "$am_cv_func_iconv_works" >&6; } 22395 case "$am_cv_func_iconv_works" in 22396 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 22397 *) am_func_iconv=yes ;; 22398 esac 22399 else 22400 am_func_iconv=no am_cv_lib_iconv=no 22401 fi 22402 if test "$am_func_iconv" = yes; then 22403 22404$as_echo "#define HAVE_ICONV 1" >>confdefs.h 22405 22406 fi 22407 if test "$am_cv_lib_iconv" = yes; then 22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 22409$as_echo_n "checking how to link with libiconv... " >&6; } 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 22411$as_echo "$LIBICONV" >&6; } 22412 else 22413 CPPFLAGS="$am_save_CPPFLAGS" 22414 LIBICONV= 22415 LTLIBICONV= 22416 fi 22417 22418 22419 22420 if test "$am_cv_func_iconv" = yes; then 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 22422$as_echo_n "checking for iconv declaration... " >&6; } 22423 if ${am_cv_proto_iconv+:} false; then : 22424 $as_echo_n "(cached) " >&6 22425else 22426 22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22428/* end confdefs.h. */ 22429 22430#include <stdlib.h> 22431#include <iconv.h> 22432extern 22433#ifdef __cplusplus 22434"C" 22435#endif 22436#if defined(__STDC__) || defined(__cplusplus) 22437size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 22438#else 22439size_t iconv(); 22440#endif 22441 22442int 22443main () 22444{ 22445 22446 ; 22447 return 0; 22448} 22449_ACEOF 22450if ac_fn_c_try_compile "$LINENO"; then : 22451 am_cv_proto_iconv_arg1="" 22452else 22453 am_cv_proto_iconv_arg1="const" 22454fi 22455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22456 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 22457fi 22458 22459 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 22461 }$am_cv_proto_iconv" >&5 22462$as_echo "${ac_t:- 22463 }$am_cv_proto_iconv" >&6; } 22464 22465cat >>confdefs.h <<_ACEOF 22466#define ICONV_CONST $am_cv_proto_iconv_arg1 22467_ACEOF 22468 22469 fi 22470 22471 if test x$am_func_iconv != xyes; then 22472 enable_poppler_cpp=no 22473 fi 22474fi 22475 22476 if test "x$enable_poppler_cpp" = "xyes"; then 22477 BUILD_POPPLER_CPP_TRUE= 22478 BUILD_POPPLER_CPP_FALSE='#' 22479else 22480 BUILD_POPPLER_CPP_TRUE='#' 22481 BUILD_POPPLER_CPP_FALSE= 22482fi 22483 22484 22485 22486# Check whether --enable-gtk-test was given. 22487if test "${enable_gtk_test+set}" = set; then : 22488 enableval=$enable_gtk_test; enable_gtk_test=$enableval 22489else 22490 enable_gtk_test="try" 22491fi 22492 22493if test x$enable_gtk_test = xyes; then 22494 22495pkg_failed=no 22496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_TEST" >&5 22497$as_echo_n "checking for GTK_TEST... " >&6; } 22498 22499if test -n "$GTK_TEST_CFLAGS"; then 22500 pkg_cv_GTK_TEST_CFLAGS="$GTK_TEST_CFLAGS" 22501 elif test -n "$PKG_CONFIG"; then 22502 if test -n "$PKG_CONFIG" && \ 22503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5 22504 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5 22505 ac_status=$? 22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22507 test $ac_status = 0; }; then 22508 pkg_cv_GTK_TEST_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null` 22509else 22510 pkg_failed=yes 22511fi 22512 else 22513 pkg_failed=untried 22514fi 22515if test -n "$GTK_TEST_LIBS"; then 22516 pkg_cv_GTK_TEST_LIBS="$GTK_TEST_LIBS" 22517 elif test -n "$PKG_CONFIG"; then 22518 if test -n "$PKG_CONFIG" && \ 22519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5 22520 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5 22521 ac_status=$? 22522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22523 test $ac_status = 0; }; then 22524 pkg_cv_GTK_TEST_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null` 22525else 22526 pkg_failed=yes 22527fi 22528 else 22529 pkg_failed=untried 22530fi 22531 22532 22533 22534if test $pkg_failed = yes; then 22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22536$as_echo "no" >&6; } 22537 22538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22539 _pkg_short_errors_supported=yes 22540else 22541 _pkg_short_errors_supported=no 22542fi 22543 if test $_pkg_short_errors_supported = yes; then 22544 GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1` 22545 else 22546 GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1` 22547 fi 22548 # Put the nasty error message in config.log where it belongs 22549 echo "$GTK_TEST_PKG_ERRORS" >&5 22550 22551 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0) were not met: 22552 22553$GTK_TEST_PKG_ERRORS 22554 22555Consider adjusting the PKG_CONFIG_PATH environment variable if you 22556installed software in a non-standard prefix. 22557 22558Alternatively, you may set the environment variables GTK_TEST_CFLAGS 22559and GTK_TEST_LIBS to avoid the need to call pkg-config. 22560See the pkg-config man page for more details." "$LINENO" 5 22561elif test $pkg_failed = untried; then 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22563$as_echo "no" >&6; } 22564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22566as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22567is in your PATH or set the PKG_CONFIG environment variable to the full 22568path to pkg-config. 22569 22570Alternatively, you may set the environment variables GTK_TEST_CFLAGS 22571and GTK_TEST_LIBS to avoid the need to call pkg-config. 22572See the pkg-config man page for more details. 22573 22574To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22575See \`config.log' for more details" "$LINENO" 5; } 22576else 22577 GTK_TEST_CFLAGS=$pkg_cv_GTK_TEST_CFLAGS 22578 GTK_TEST_LIBS=$pkg_cv_GTK_TEST_LIBS 22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22580$as_echo "yes" >&6; } 22581 22582fi 22583elif test x$enable_gtk_test = xtry; then 22584 22585pkg_failed=no 22586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_TEST" >&5 22587$as_echo_n "checking for GTK_TEST... " >&6; } 22588 22589if test -n "$GTK_TEST_CFLAGS"; then 22590 pkg_cv_GTK_TEST_CFLAGS="$GTK_TEST_CFLAGS" 22591 elif test -n "$PKG_CONFIG"; then 22592 if test -n "$PKG_CONFIG" && \ 22593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5 22594 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5 22595 ac_status=$? 22596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22597 test $ac_status = 0; }; then 22598 pkg_cv_GTK_TEST_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null` 22599else 22600 pkg_failed=yes 22601fi 22602 else 22603 pkg_failed=untried 22604fi 22605if test -n "$GTK_TEST_LIBS"; then 22606 pkg_cv_GTK_TEST_LIBS="$GTK_TEST_LIBS" 22607 elif test -n "$PKG_CONFIG"; then 22608 if test -n "$PKG_CONFIG" && \ 22609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5 22610 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5 22611 ac_status=$? 22612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22613 test $ac_status = 0; }; then 22614 pkg_cv_GTK_TEST_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null` 22615else 22616 pkg_failed=yes 22617fi 22618 else 22619 pkg_failed=untried 22620fi 22621 22622 22623 22624if test $pkg_failed = yes; then 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22626$as_echo "no" >&6; } 22627 22628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22629 _pkg_short_errors_supported=yes 22630else 22631 _pkg_short_errors_supported=no 22632fi 22633 if test $_pkg_short_errors_supported = yes; then 22634 GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1` 22635 else 22636 GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1` 22637 fi 22638 # Put the nasty error message in config.log where it belongs 22639 echo "$GTK_TEST_PKG_ERRORS" >&5 22640 22641 enable_gtk_test="no" 22642elif test $pkg_failed = untried; then 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22644$as_echo "no" >&6; } 22645 enable_gtk_test="no" 22646else 22647 GTK_TEST_CFLAGS=$pkg_cv_GTK_TEST_CFLAGS 22648 GTK_TEST_LIBS=$pkg_cv_GTK_TEST_LIBS 22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22650$as_echo "yes" >&6; } 22651 enable_gtk_test="yes" 22652fi 22653fi 22654 if test x$enable_gtk_test = xyes -a x$enable_poppler_glib = xyes; then 22655 BUILD_GTK_TEST_TRUE= 22656 BUILD_GTK_TEST_FALSE='#' 22657else 22658 BUILD_GTK_TEST_TRUE='#' 22659 BUILD_GTK_TEST_FALSE= 22660fi 22661 22662 22663# Check whether --enable-abiword-output was given. 22664if test "${enable_abiword_output+set}" = set; then : 22665 enableval=$enable_abiword_output; enable_abiword_output=$enableval 22666else 22667 enable_abiword_output="try" 22668fi 22669 22670if test x$enable_abiword_output = xyes; then 22671 22672pkg_failed=no 22673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABIWORD" >&5 22674$as_echo_n "checking for ABIWORD... " >&6; } 22675 22676if test -n "$ABIWORD_CFLAGS"; then 22677 pkg_cv_ABIWORD_CFLAGS="$ABIWORD_CFLAGS" 22678 elif test -n "$PKG_CONFIG"; then 22679 if test -n "$PKG_CONFIG" && \ 22680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 22681 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 22682 ac_status=$? 22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22684 test $ac_status = 0; }; then 22685 pkg_cv_ABIWORD_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 22686else 22687 pkg_failed=yes 22688fi 22689 else 22690 pkg_failed=untried 22691fi 22692if test -n "$ABIWORD_LIBS"; then 22693 pkg_cv_ABIWORD_LIBS="$ABIWORD_LIBS" 22694 elif test -n "$PKG_CONFIG"; then 22695 if test -n "$PKG_CONFIG" && \ 22696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 22697 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 22698 ac_status=$? 22699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22700 test $ac_status = 0; }; then 22701 pkg_cv_ABIWORD_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 22702else 22703 pkg_failed=yes 22704fi 22705 else 22706 pkg_failed=untried 22707fi 22708 22709 22710 22711if test $pkg_failed = yes; then 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22713$as_echo "no" >&6; } 22714 22715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22716 _pkg_short_errors_supported=yes 22717else 22718 _pkg_short_errors_supported=no 22719fi 22720 if test $_pkg_short_errors_supported = yes; then 22721 ABIWORD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1` 22722 else 22723 ABIWORD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1` 22724 fi 22725 # Put the nasty error message in config.log where it belongs 22726 echo "$ABIWORD_PKG_ERRORS" >&5 22727 22728 as_fn_error $? "Package requirements (libxml-2.0) were not met: 22729 22730$ABIWORD_PKG_ERRORS 22731 22732Consider adjusting the PKG_CONFIG_PATH environment variable if you 22733installed software in a non-standard prefix. 22734 22735Alternatively, you may set the environment variables ABIWORD_CFLAGS 22736and ABIWORD_LIBS to avoid the need to call pkg-config. 22737See the pkg-config man page for more details." "$LINENO" 5 22738elif test $pkg_failed = untried; then 22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22740$as_echo "no" >&6; } 22741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22743as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22744is in your PATH or set the PKG_CONFIG environment variable to the full 22745path to pkg-config. 22746 22747Alternatively, you may set the environment variables ABIWORD_CFLAGS 22748and ABIWORD_LIBS to avoid the need to call pkg-config. 22749See the pkg-config man page for more details. 22750 22751To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22752See \`config.log' for more details" "$LINENO" 5; } 22753else 22754 ABIWORD_CFLAGS=$pkg_cv_ABIWORD_CFLAGS 22755 ABIWORD_LIBS=$pkg_cv_ABIWORD_LIBS 22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22757$as_echo "yes" >&6; } 22758 22759fi 22760elif test x$enable_abiword_output = xtry; then 22761 22762pkg_failed=no 22763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABIWORD" >&5 22764$as_echo_n "checking for ABIWORD... " >&6; } 22765 22766if test -n "$ABIWORD_CFLAGS"; then 22767 pkg_cv_ABIWORD_CFLAGS="$ABIWORD_CFLAGS" 22768 elif test -n "$PKG_CONFIG"; then 22769 if test -n "$PKG_CONFIG" && \ 22770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 22771 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 22772 ac_status=$? 22773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22774 test $ac_status = 0; }; then 22775 pkg_cv_ABIWORD_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 22776else 22777 pkg_failed=yes 22778fi 22779 else 22780 pkg_failed=untried 22781fi 22782if test -n "$ABIWORD_LIBS"; then 22783 pkg_cv_ABIWORD_LIBS="$ABIWORD_LIBS" 22784 elif test -n "$PKG_CONFIG"; then 22785 if test -n "$PKG_CONFIG" && \ 22786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 22787 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 22788 ac_status=$? 22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22790 test $ac_status = 0; }; then 22791 pkg_cv_ABIWORD_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 22792else 22793 pkg_failed=yes 22794fi 22795 else 22796 pkg_failed=untried 22797fi 22798 22799 22800 22801if test $pkg_failed = yes; then 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22803$as_echo "no" >&6; } 22804 22805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22806 _pkg_short_errors_supported=yes 22807else 22808 _pkg_short_errors_supported=no 22809fi 22810 if test $_pkg_short_errors_supported = yes; then 22811 ABIWORD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1` 22812 else 22813 ABIWORD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1` 22814 fi 22815 # Put the nasty error message in config.log where it belongs 22816 echo "$ABIWORD_PKG_ERRORS" >&5 22817 22818 enable_abiword_output="no" 22819elif test $pkg_failed = untried; then 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22821$as_echo "no" >&6; } 22822 enable_abiword_output="no" 22823else 22824 ABIWORD_CFLAGS=$pkg_cv_ABIWORD_CFLAGS 22825 ABIWORD_LIBS=$pkg_cv_ABIWORD_LIBS 22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22827$as_echo "yes" >&6; } 22828 enable_abiword_output="yes" 22829fi 22830fi 22831 22832 if test x$enable_abiword_output = xyes; then 22833 BUILD_ABIWORD_OUTPUT_TRUE= 22834 BUILD_ABIWORD_OUTPUT_FALSE='#' 22835else 22836 BUILD_ABIWORD_OUTPUT_TRUE='#' 22837 BUILD_ABIWORD_OUTPUT_FALSE= 22838fi 22839 22840 22841# Check whether --enable-utils was given. 22842if test "${enable_utils+set}" = set; then : 22843 enableval=$enable_utils; enable_utils=$enableval 22844else 22845 enable_utils="yes" 22846fi 22847 22848 if test x$enable_utils = xyes; then 22849 BUILD_UTILS_TRUE= 22850 BUILD_UTILS_FALSE='#' 22851else 22852 BUILD_UTILS_TRUE='#' 22853 BUILD_UTILS_FALSE= 22854fi 22855 22856 22857# Check whether --enable-compile-warnings was given. 22858if test "${enable_compile_warnings+set}" = set; then : 22859 enableval=$enable_compile_warnings; 22860else 22861 enable_compile_warnings="yes" 22862fi 22863 22864 22865 22866# Check whether --enable-cms was given. 22867if test "${enable_cms+set}" = set; then : 22868 enableval=$enable_cms; enable_cms=$enableval 22869else 22870 enable_cms="try" 22871fi 22872 22873if test x$enable_cms = xyes; then 22874 22875pkg_failed=no 22876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 22877$as_echo_n "checking for LCMS... " >&6; } 22878 22879if test -n "$LCMS_CFLAGS"; then 22880 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 22881 elif test -n "$PKG_CONFIG"; then 22882 if test -n "$PKG_CONFIG" && \ 22883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5 22884 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5 22885 ac_status=$? 22886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22887 test $ac_status = 0; }; then 22888 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null` 22889else 22890 pkg_failed=yes 22891fi 22892 else 22893 pkg_failed=untried 22894fi 22895if test -n "$LCMS_LIBS"; then 22896 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 22897 elif test -n "$PKG_CONFIG"; then 22898 if test -n "$PKG_CONFIG" && \ 22899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5 22900 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5 22901 ac_status=$? 22902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22903 test $ac_status = 0; }; then 22904 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null` 22905else 22906 pkg_failed=yes 22907fi 22908 else 22909 pkg_failed=untried 22910fi 22911 22912 22913 22914if test $pkg_failed = yes; then 22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22916$as_echo "no" >&6; } 22917 22918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22919 _pkg_short_errors_supported=yes 22920else 22921 _pkg_short_errors_supported=no 22922fi 22923 if test $_pkg_short_errors_supported = yes; then 22924 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1` 22925 else 22926 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1` 22927 fi 22928 # Put the nasty error message in config.log where it belongs 22929 echo "$LCMS_PKG_ERRORS" >&5 22930 22931 as_fn_error $? "Package requirements (lcms) were not met: 22932 22933$LCMS_PKG_ERRORS 22934 22935Consider adjusting the PKG_CONFIG_PATH environment variable if you 22936installed software in a non-standard prefix. 22937 22938Alternatively, you may set the environment variables LCMS_CFLAGS 22939and LCMS_LIBS to avoid the need to call pkg-config. 22940See the pkg-config man page for more details." "$LINENO" 5 22941elif test $pkg_failed = untried; then 22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22943$as_echo "no" >&6; } 22944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22946as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22947is in your PATH or set the PKG_CONFIG environment variable to the full 22948path to pkg-config. 22949 22950Alternatively, you may set the environment variables LCMS_CFLAGS 22951and LCMS_LIBS to avoid the need to call pkg-config. 22952See the pkg-config man page for more details. 22953 22954To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22955See \`config.log' for more details" "$LINENO" 5; } 22956else 22957 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 22958 LCMS_LIBS=$pkg_cv_LCMS_LIBS 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22960$as_echo "yes" >&6; } 22961 22962fi 22963elif test x$enable_cms = xtry; then 22964 22965pkg_failed=no 22966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 22967$as_echo_n "checking for LCMS... " >&6; } 22968 22969if test -n "$LCMS_CFLAGS"; then 22970 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 22971 elif test -n "$PKG_CONFIG"; then 22972 if test -n "$PKG_CONFIG" && \ 22973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5 22974 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5 22975 ac_status=$? 22976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22977 test $ac_status = 0; }; then 22978 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null` 22979else 22980 pkg_failed=yes 22981fi 22982 else 22983 pkg_failed=untried 22984fi 22985if test -n "$LCMS_LIBS"; then 22986 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 22987 elif test -n "$PKG_CONFIG"; then 22988 if test -n "$PKG_CONFIG" && \ 22989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5 22990 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5 22991 ac_status=$? 22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22993 test $ac_status = 0; }; then 22994 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null` 22995else 22996 pkg_failed=yes 22997fi 22998 else 22999 pkg_failed=untried 23000fi 23001 23002 23003 23004if test $pkg_failed = yes; then 23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23006$as_echo "no" >&6; } 23007 23008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23009 _pkg_short_errors_supported=yes 23010else 23011 _pkg_short_errors_supported=no 23012fi 23013 if test $_pkg_short_errors_supported = yes; then 23014 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1` 23015 else 23016 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1` 23017 fi 23018 # Put the nasty error message in config.log where it belongs 23019 echo "$LCMS_PKG_ERRORS" >&5 23020 23021 enable_cms=no 23022elif test $pkg_failed = untried; then 23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23024$as_echo "no" >&6; } 23025 enable_cms=no 23026else 23027 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 23028 LCMS_LIBS=$pkg_cv_LCMS_LIBS 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23030$as_echo "yes" >&6; } 23031 enable_cms=yes 23032fi 23033fi 23034 23035if test "x$enable_cms" = "xyes"; then 23036 23037$as_echo "#define USE_CMS 1" >>confdefs.h 23038 23039fi 23040 if test x$enable_cms = xyes; then 23041 USE_CMS_TRUE= 23042 USE_CMS_FALSE='#' 23043else 23044 USE_CMS_TRUE='#' 23045 USE_CMS_FALSE= 23046fi 23047 23048 23049if test "x$GCC" != xyes; then 23050 enable_compile_warnings=no 23051fi 23052case "$enable_compile_warnings" in 23053 no) ;; 23054 yes) CXXFLAGS="-Wall -Wno-write-strings -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-common $CXXFLAGS" ;; 23055 kde) CXXFLAGS="-Wnon-virtual-dtor -Wno-long-long -Wundef \ 23056 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align \ 23057 -Wconversion -Wall -W -Wpointer-arith \ 23058 -Wwrite-strings -O2 -Wformat-security \ 23059 -Wmissing-format-attribute -fno-exceptions \ 23060 -fno-common $CXXFLAGS" ;; 23061esac 23062 23063case $($PKG_CONFIG --version) in 23064 0.?|0.10-7) 23065 PC_REQUIRES_PRIVATE=""; 23066 PC_REQUIRES="poppler = $VERSION";; 23067 *) 23068 PC_REQUIRES_PRIVATE="Requires.private: poppler = $VERSION"; 23069 PC_REQUIRES="";; 23070esac 23071 23072 23073 23074 23075POPPLER_MAJOR_VERSION=0 23076 23077POPPLER_MINOR_VERSION=16 23078 23079POPPLER_MICRO_VERSION=3 23080 23081POPPLER_VERSION=0.16.3 23082 23083 23084ac_config_files="$ac_config_files Makefile goo/Makefile fofi/Makefile splash/Makefile poppler/Makefile utils/Makefile glib/Makefile glib/poppler-features.h glib/reference/Makefile glib/reference/version.xml glib/demo/Makefile test/Makefile qt/Makefile qt4/Makefile qt4/src/Makefile qt4/tests/Makefile qt4/demos/Makefile cpp/Makefile cpp/poppler-version.h cpp/tests/Makefile poppler.pc poppler-uninstalled.pc poppler-cairo.pc poppler-cairo-uninstalled.pc poppler-splash.pc poppler-splash-uninstalled.pc poppler-glib.pc poppler-glib-uninstalled.pc poppler-qt.pc poppler-qt-uninstalled.pc poppler-qt4.pc poppler-qt4-uninstalled.pc poppler-cpp.pc poppler-cpp-uninstalled.pc" 23085 23086cat >confcache <<\_ACEOF 23087# This file is a shell script that caches the results of configure 23088# tests run on this system so they can be shared between configure 23089# scripts and configure runs, see configure's option --config-cache. 23090# It is not useful on other systems. If it contains results you don't 23091# want to keep, you may remove or edit it. 23092# 23093# config.status only pays attention to the cache file if you give it 23094# the --recheck option to rerun configure. 23095# 23096# `ac_cv_env_foo' variables (set or unset) will be overridden when 23097# loading this file, other *unset* `ac_cv_foo' will be assigned the 23098# following values. 23099 23100_ACEOF 23101 23102# The following way of writing the cache mishandles newlines in values, 23103# but we know of no workaround that is simple, portable, and efficient. 23104# So, we kill variables containing newlines. 23105# Ultrix sh set writes to stderr and can't be redirected directly, 23106# and sets the high bit in the cache file unless we assign to the vars. 23107( 23108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23109 eval ac_val=\$$ac_var 23110 case $ac_val in #( 23111 *${as_nl}*) 23112 case $ac_var in #( 23113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23115 esac 23116 case $ac_var in #( 23117 _ | IFS | as_nl) ;; #( 23118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23119 *) { eval $ac_var=; unset $ac_var;} ;; 23120 esac ;; 23121 esac 23122 done 23123 23124 (set) 2>&1 | 23125 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23126 *${as_nl}ac_space=\ *) 23127 # `set' does not quote correctly, so add quotes: double-quote 23128 # substitution turns \\\\ into \\, and sed turns \\ into \. 23129 sed -n \ 23130 "s/'/'\\\\''/g; 23131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23132 ;; #( 23133 *) 23134 # `set' quotes correctly as required by POSIX, so do not add quotes. 23135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23136 ;; 23137 esac | 23138 sort 23139) | 23140 sed ' 23141 /^ac_cv_env_/b end 23142 t clear 23143 :clear 23144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23145 t end 23146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23147 :end' >>confcache 23148if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23149 if test -w "$cache_file"; then 23150 if test "x$cache_file" != "x/dev/null"; then 23151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23152$as_echo "$as_me: updating cache $cache_file" >&6;} 23153 if test ! -f "$cache_file" || test -h "$cache_file"; then 23154 cat confcache >"$cache_file" 23155 else 23156 case $cache_file in #( 23157 */* | ?:*) 23158 mv -f confcache "$cache_file"$$ && 23159 mv -f "$cache_file"$$ "$cache_file" ;; #( 23160 *) 23161 mv -f confcache "$cache_file" ;; 23162 esac 23163 fi 23164 fi 23165 else 23166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23167$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23168 fi 23169fi 23170rm -f confcache 23171 23172test "x$prefix" = xNONE && prefix=$ac_default_prefix 23173# Let make expand exec_prefix. 23174test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23175 23176DEFS=-DHAVE_CONFIG_H 23177 23178ac_libobjs= 23179ac_ltlibobjs= 23180U= 23181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23182 # 1. Remove the extension, and $U if already installed. 23183 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23184 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 23185 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23186 # will be set to the directory where LIBOBJS objects are built. 23187 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23188 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23189done 23190LIBOBJS=$ac_libobjs 23191 23192LTLIBOBJS=$ac_ltlibobjs 23193 23194 23195 if test -n "$EXEEXT"; then 23196 am__EXEEXT_TRUE= 23197 am__EXEEXT_FALSE='#' 23198else 23199 am__EXEEXT_TRUE='#' 23200 am__EXEEXT_FALSE= 23201fi 23202 23203if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23204 as_fn_error $? "conditional \"AMDEP\" was never defined. 23205Usually this means the macro was only invoked conditionally." "$LINENO" 5 23206fi 23207if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23208 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23209Usually this means the macro was only invoked conditionally." "$LINENO" 5 23210fi 23211 23212if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23213 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23214Usually this means the macro was only invoked conditionally." "$LINENO" 5 23215fi 23216if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23217 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 23218Usually this means the macro was only invoked conditionally." "$LINENO" 5 23219fi 23220if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23221 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 23222Usually this means the macro was only invoked conditionally." "$LINENO" 5 23223fi 23224if test -z "${ENABLE_XPDF_HEADERS_TRUE}" && test -z "${ENABLE_XPDF_HEADERS_FALSE}"; then 23225 as_fn_error $? "conditional \"ENABLE_XPDF_HEADERS\" was never defined. 23226Usually this means the macro was only invoked conditionally." "$LINENO" 5 23227fi 23228if test -z "${BUILD_LIBOPENJPEG_TRUE}" && test -z "${BUILD_LIBOPENJPEG_FALSE}"; then 23229 as_fn_error $? "conditional \"BUILD_LIBOPENJPEG\" was never defined. 23230Usually this means the macro was only invoked conditionally." "$LINENO" 5 23231fi 23232if test -z "${BUILD_ZLIB_TRUE}" && test -z "${BUILD_ZLIB_FALSE}"; then 23233 as_fn_error $? "conditional \"BUILD_ZLIB\" was never defined. 23234Usually this means the macro was only invoked conditionally." "$LINENO" 5 23235fi 23236if test -z "${BUILD_LIBCURL_TRUE}" && test -z "${BUILD_LIBCURL_FALSE}"; then 23237 as_fn_error $? "conditional \"BUILD_LIBCURL\" was never defined. 23238Usually this means the macro was only invoked conditionally." "$LINENO" 5 23239fi 23240if test -z "${BUILD_LIBJPEG_TRUE}" && test -z "${BUILD_LIBJPEG_FALSE}"; then 23241 as_fn_error $? "conditional \"BUILD_LIBJPEG\" was never defined. 23242Usually this means the macro was only invoked conditionally." "$LINENO" 5 23243fi 23244if test -z "${BUILD_LIBPNG_TRUE}" && test -z "${BUILD_LIBPNG_FALSE}"; then 23245 as_fn_error $? "conditional \"BUILD_LIBPNG\" was never defined. 23246Usually this means the macro was only invoked conditionally." "$LINENO" 5 23247fi 23248if test -z "${BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE}" && test -z "${BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE}"; then 23249 as_fn_error $? "conditional \"BUILD_WITH_WIN32_FONTCONFIGURATION\" was never defined. 23250Usually this means the macro was only invoked conditionally." "$LINENO" 5 23251fi 23252if test -z "${BUILD_SPLASH_OUTPUT_TRUE}" && test -z "${BUILD_SPLASH_OUTPUT_FALSE}"; then 23253 as_fn_error $? "conditional \"BUILD_SPLASH_OUTPUT\" was never defined. 23254Usually this means the macro was only invoked conditionally." "$LINENO" 5 23255fi 23256if test -z "${BUILD_CAIRO_OUTPUT_TRUE}" && test -z "${BUILD_CAIRO_OUTPUT_FALSE}"; then 23257 as_fn_error $? "conditional \"BUILD_CAIRO_OUTPUT\" was never defined. 23258Usually this means the macro was only invoked conditionally." "$LINENO" 5 23259fi 23260if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 23261 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 23262Usually this means the macro was only invoked conditionally." "$LINENO" 5 23263fi 23264if test -z "${BUILD_POPPLER_GLIB_TRUE}" && test -z "${BUILD_POPPLER_GLIB_FALSE}"; then 23265 as_fn_error $? "conditional \"BUILD_POPPLER_GLIB\" was never defined. 23266Usually this means the macro was only invoked conditionally." "$LINENO" 5 23267fi 23268if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 23269 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 23270Usually this means the macro was only invoked conditionally." "$LINENO" 5 23271fi 23272if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 23273 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 23274Usually this means the macro was only invoked conditionally." "$LINENO" 5 23275fi 23276if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 23277 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 23278Usually this means the macro was only invoked conditionally." "$LINENO" 5 23279fi 23280if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 23281 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 23282Usually this means the macro was only invoked conditionally." "$LINENO" 5 23283fi 23284if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 23285 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 23286Usually this means the macro was only invoked conditionally." "$LINENO" 5 23287fi 23288if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 23289 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 23290Usually this means the macro was only invoked conditionally." "$LINENO" 5 23291fi 23292if test -z "${BUILD_WITH_GDK_TRUE}" && test -z "${BUILD_WITH_GDK_FALSE}"; then 23293 as_fn_error $? "conditional \"BUILD_WITH_GDK\" was never defined. 23294Usually this means the macro was only invoked conditionally." "$LINENO" 5 23295fi 23296if test -z "${BUILD_POPPLER_QT_TRUE}" && test -z "${BUILD_POPPLER_QT_FALSE}"; then 23297 as_fn_error $? "conditional \"BUILD_POPPLER_QT\" was never defined. 23298Usually this means the macro was only invoked conditionally." "$LINENO" 5 23299fi 23300if test -z "${BUILD_POPPLER_QT4_TRUE}" && test -z "${BUILD_POPPLER_QT4_FALSE}"; then 23301 as_fn_error $? "conditional \"BUILD_POPPLER_QT4\" was never defined. 23302Usually this means the macro was only invoked conditionally." "$LINENO" 5 23303fi 23304if test -z "${BUILD_POPPLER_CPP_TRUE}" && test -z "${BUILD_POPPLER_CPP_FALSE}"; then 23305 as_fn_error $? "conditional \"BUILD_POPPLER_CPP\" was never defined. 23306Usually this means the macro was only invoked conditionally." "$LINENO" 5 23307fi 23308if test -z "${BUILD_GTK_TEST_TRUE}" && test -z "${BUILD_GTK_TEST_FALSE}"; then 23309 as_fn_error $? "conditional \"BUILD_GTK_TEST\" was never defined. 23310Usually this means the macro was only invoked conditionally." "$LINENO" 5 23311fi 23312if test -z "${BUILD_ABIWORD_OUTPUT_TRUE}" && test -z "${BUILD_ABIWORD_OUTPUT_FALSE}"; then 23313 as_fn_error $? "conditional \"BUILD_ABIWORD_OUTPUT\" was never defined. 23314Usually this means the macro was only invoked conditionally." "$LINENO" 5 23315fi 23316if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then 23317 as_fn_error $? "conditional \"BUILD_UTILS\" was never defined. 23318Usually this means the macro was only invoked conditionally." "$LINENO" 5 23319fi 23320if test -z "${USE_CMS_TRUE}" && test -z "${USE_CMS_FALSE}"; then 23321 as_fn_error $? "conditional \"USE_CMS\" was never defined. 23322Usually this means the macro was only invoked conditionally." "$LINENO" 5 23323fi 23324 23325: "${CONFIG_STATUS=./config.status}" 23326ac_write_fail=0 23327ac_clean_files_save=$ac_clean_files 23328ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23329{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23330$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23331as_write_fail=0 23332cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23333#! $SHELL 23334# Generated by $as_me. 23335# Run this file to recreate the current configuration. 23336# Compiler output produced by configure, useful for debugging 23337# configure, is in config.log if it exists. 23338 23339debug=false 23340ac_cs_recheck=false 23341ac_cs_silent=false 23342 23343SHELL=\${CONFIG_SHELL-$SHELL} 23344export SHELL 23345_ASEOF 23346cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23347## -------------------- ## 23348## M4sh Initialization. ## 23349## -------------------- ## 23350 23351# Be more Bourne compatible 23352DUALCASE=1; export DUALCASE # for MKS sh 23353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23354 emulate sh 23355 NULLCMD=: 23356 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23357 # is contrary to our usage. Disable this feature. 23358 alias -g '${1+"$@"}'='"$@"' 23359 setopt NO_GLOB_SUBST 23360else 23361 case `(set -o) 2>/dev/null` in #( 23362 *posix*) : 23363 set -o posix ;; #( 23364 *) : 23365 ;; 23366esac 23367fi 23368 23369 23370as_nl=' 23371' 23372export as_nl 23373# Printing a long string crashes Solaris 7 /usr/bin/printf. 23374as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23375as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23377# Prefer a ksh shell builtin over an external printf program on Solaris, 23378# but without wasting forks for bash or zsh. 23379if test -z "$BASH_VERSION$ZSH_VERSION" \ 23380 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 23381 as_echo='print -r --' 23382 as_echo_n='print -rn --' 23383elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23384 as_echo='printf %s\n' 23385 as_echo_n='printf %s' 23386else 23387 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23388 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23389 as_echo_n='/usr/ucb/echo -n' 23390 else 23391 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23392 as_echo_n_body='eval 23393 arg=$1; 23394 case $arg in #( 23395 *"$as_nl"*) 23396 expr "X$arg" : "X\\(.*\\)$as_nl"; 23397 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23398 esac; 23399 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23400 ' 23401 export as_echo_n_body 23402 as_echo_n='sh -c $as_echo_n_body as_echo' 23403 fi 23404 export as_echo_body 23405 as_echo='sh -c $as_echo_body as_echo' 23406fi 23407 23408# The user is always right. 23409if test "${PATH_SEPARATOR+set}" != set; then 23410 PATH_SEPARATOR=: 23411 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23412 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23413 PATH_SEPARATOR=';' 23414 } 23415fi 23416 23417 23418# IFS 23419# We need space, tab and new line, in precisely that order. Quoting is 23420# there to prevent editors from complaining about space-tab. 23421# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23422# splitting by setting IFS to empty value.) 23423IFS=" "" $as_nl" 23424 23425# Find who we are. Look in the path if we contain no directory separator. 23426as_myself= 23427case $0 in #(( 23428 *[\\/]* ) as_myself=$0 ;; 23429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23430for as_dir in $PATH 23431do 23432 IFS=$as_save_IFS 23433 test -z "$as_dir" && as_dir=. 23434 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23435 done 23436IFS=$as_save_IFS 23437 23438 ;; 23439esac 23440# We did not find ourselves, most probably we were run as `sh COMMAND' 23441# in which case we are not to be found in the path. 23442if test "x$as_myself" = x; then 23443 as_myself=$0 23444fi 23445if test ! -f "$as_myself"; then 23446 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23447 exit 1 23448fi 23449 23450# Unset variables that we do not need and which cause bugs (e.g. in 23451# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23452# suppresses any "Segmentation fault" message there. '((' could 23453# trigger a bug in pdksh 5.2.14. 23454for as_var in BASH_ENV ENV MAIL MAILPATH 23455do eval test x\${$as_var+set} = xset \ 23456 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23457done 23458PS1='$ ' 23459PS2='> ' 23460PS4='+ ' 23461 23462# NLS nuisances. 23463LC_ALL=C 23464export LC_ALL 23465LANGUAGE=C 23466export LANGUAGE 23467 23468# CDPATH. 23469(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23470 23471 23472# as_fn_error STATUS ERROR [LINENO LOG_FD] 23473# ---------------------------------------- 23474# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23475# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23476# script with STATUS, using 1 if that was 0. 23477as_fn_error () 23478{ 23479 as_status=$1; test $as_status -eq 0 && as_status=1 23480 if test "$4"; then 23481 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23482 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23483 fi 23484 $as_echo "$as_me: error: $2" >&2 23485 as_fn_exit $as_status 23486} # as_fn_error 23487 23488 23489# as_fn_set_status STATUS 23490# ----------------------- 23491# Set $? to STATUS, without forking. 23492as_fn_set_status () 23493{ 23494 return $1 23495} # as_fn_set_status 23496 23497# as_fn_exit STATUS 23498# ----------------- 23499# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23500as_fn_exit () 23501{ 23502 set +e 23503 as_fn_set_status $1 23504 exit $1 23505} # as_fn_exit 23506 23507# as_fn_unset VAR 23508# --------------- 23509# Portably unset VAR. 23510as_fn_unset () 23511{ 23512 { eval $1=; unset $1;} 23513} 23514as_unset=as_fn_unset 23515# as_fn_append VAR VALUE 23516# ---------------------- 23517# Append the text in VALUE to the end of the definition contained in VAR. Take 23518# advantage of any shell optimizations that allow amortized linear growth over 23519# repeated appends, instead of the typical quadratic growth present in naive 23520# implementations. 23521if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23522 eval 'as_fn_append () 23523 { 23524 eval $1+=\$2 23525 }' 23526else 23527 as_fn_append () 23528 { 23529 eval $1=\$$1\$2 23530 } 23531fi # as_fn_append 23532 23533# as_fn_arith ARG... 23534# ------------------ 23535# Perform arithmetic evaluation on the ARGs, and store the result in the 23536# global $as_val. Take advantage of shells that can avoid forks. The arguments 23537# must be portable across $(()) and expr. 23538if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23539 eval 'as_fn_arith () 23540 { 23541 as_val=$(( $* )) 23542 }' 23543else 23544 as_fn_arith () 23545 { 23546 as_val=`expr "$@" || test $? -eq 1` 23547 } 23548fi # as_fn_arith 23549 23550 23551if expr a : '\(a\)' >/dev/null 2>&1 && 23552 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23553 as_expr=expr 23554else 23555 as_expr=false 23556fi 23557 23558if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23559 as_basename=basename 23560else 23561 as_basename=false 23562fi 23563 23564if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23565 as_dirname=dirname 23566else 23567 as_dirname=false 23568fi 23569 23570as_me=`$as_basename -- "$0" || 23571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23572 X"$0" : 'X\(//\)$' \| \ 23573 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23574$as_echo X/"$0" | 23575 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23576 s//\1/ 23577 q 23578 } 23579 /^X\/\(\/\/\)$/{ 23580 s//\1/ 23581 q 23582 } 23583 /^X\/\(\/\).*/{ 23584 s//\1/ 23585 q 23586 } 23587 s/.*/./; q'` 23588 23589# Avoid depending upon Character Ranges. 23590as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23591as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23592as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23593as_cr_digits='0123456789' 23594as_cr_alnum=$as_cr_Letters$as_cr_digits 23595 23596ECHO_C= ECHO_N= ECHO_T= 23597case `echo -n x` in #((((( 23598-n*) 23599 case `echo 'xy\c'` in 23600 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23601 xy) ECHO_C='\c';; 23602 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23603 ECHO_T=' ';; 23604 esac;; 23605*) 23606 ECHO_N='-n';; 23607esac 23608 23609rm -f conf$$ conf$$.exe conf$$.file 23610if test -d conf$$.dir; then 23611 rm -f conf$$.dir/conf$$.file 23612else 23613 rm -f conf$$.dir 23614 mkdir conf$$.dir 2>/dev/null 23615fi 23616if (echo >conf$$.file) 2>/dev/null; then 23617 if ln -s conf$$.file conf$$ 2>/dev/null; then 23618 as_ln_s='ln -s' 23619 # ... but there are two gotchas: 23620 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23621 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23622 # In both cases, we have to default to `cp -pR'. 23623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23624 as_ln_s='cp -pR' 23625 elif ln conf$$.file conf$$ 2>/dev/null; then 23626 as_ln_s=ln 23627 else 23628 as_ln_s='cp -pR' 23629 fi 23630else 23631 as_ln_s='cp -pR' 23632fi 23633rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23634rmdir conf$$.dir 2>/dev/null 23635 23636 23637# as_fn_mkdir_p 23638# ------------- 23639# Create "$as_dir" as a directory, including parents if necessary. 23640as_fn_mkdir_p () 23641{ 23642 23643 case $as_dir in #( 23644 -*) as_dir=./$as_dir;; 23645 esac 23646 test -d "$as_dir" || eval $as_mkdir_p || { 23647 as_dirs= 23648 while :; do 23649 case $as_dir in #( 23650 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23651 *) as_qdir=$as_dir;; 23652 esac 23653 as_dirs="'$as_qdir' $as_dirs" 23654 as_dir=`$as_dirname -- "$as_dir" || 23655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23656 X"$as_dir" : 'X\(//\)[^/]' \| \ 23657 X"$as_dir" : 'X\(//\)$' \| \ 23658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23659$as_echo X"$as_dir" | 23660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23661 s//\1/ 23662 q 23663 } 23664 /^X\(\/\/\)[^/].*/{ 23665 s//\1/ 23666 q 23667 } 23668 /^X\(\/\/\)$/{ 23669 s//\1/ 23670 q 23671 } 23672 /^X\(\/\).*/{ 23673 s//\1/ 23674 q 23675 } 23676 s/.*/./; q'` 23677 test -d "$as_dir" && break 23678 done 23679 test -z "$as_dirs" || eval "mkdir $as_dirs" 23680 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23681 23682 23683} # as_fn_mkdir_p 23684if mkdir -p . 2>/dev/null; then 23685 as_mkdir_p='mkdir -p "$as_dir"' 23686else 23687 test -d ./-p && rmdir ./-p 23688 as_mkdir_p=false 23689fi 23690 23691 23692# as_fn_executable_p FILE 23693# ----------------------- 23694# Test if FILE is an executable regular file. 23695as_fn_executable_p () 23696{ 23697 test -f "$1" && test -x "$1" 23698} # as_fn_executable_p 23699as_test_x='test -x' 23700as_executable_p=as_fn_executable_p 23701 23702# Sed expression to map a string onto a valid CPP name. 23703as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23704 23705# Sed expression to map a string onto a valid variable name. 23706as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23707 23708 23709exec 6>&1 23710## ----------------------------------- ## 23711## Main body of $CONFIG_STATUS script. ## 23712## ----------------------------------- ## 23713_ASEOF 23714test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23715 23716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23717# Save the log message, to keep $0 and so on meaningful, and to 23718# report actual input values of CONFIG_FILES etc. instead of their 23719# values after options handling. 23720ac_log=" 23721This file was extended by poppler $as_me 0.16.3, which was 23722generated by GNU Autoconf 2.69. Invocation command line was 23723 23724 CONFIG_FILES = $CONFIG_FILES 23725 CONFIG_HEADERS = $CONFIG_HEADERS 23726 CONFIG_LINKS = $CONFIG_LINKS 23727 CONFIG_COMMANDS = $CONFIG_COMMANDS 23728 $ $0 $@ 23729 23730on `(hostname || uname -n) 2>/dev/null | sed 1q` 23731" 23732 23733_ACEOF 23734 23735case $ac_config_files in *" 23736"*) set x $ac_config_files; shift; ac_config_files=$*;; 23737esac 23738 23739case $ac_config_headers in *" 23740"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23741esac 23742 23743 23744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23745# Files that config.status was made for. 23746config_files="$ac_config_files" 23747config_headers="$ac_config_headers" 23748config_commands="$ac_config_commands" 23749 23750_ACEOF 23751 23752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23753ac_cs_usage="\ 23754\`$as_me' instantiates files and other configuration actions 23755from templates according to the current configuration. Unless the files 23756and actions are specified as TAGs, all are instantiated by default. 23757 23758Usage: $0 [OPTION]... [TAG]... 23759 23760 -h, --help print this help, then exit 23761 -V, --version print version number and configuration settings, then exit 23762 --config print configuration, then exit 23763 -q, --quiet, --silent 23764 do not print progress messages 23765 -d, --debug don't remove temporary files 23766 --recheck update $as_me by reconfiguring in the same conditions 23767 --file=FILE[:TEMPLATE] 23768 instantiate the configuration file FILE 23769 --header=FILE[:TEMPLATE] 23770 instantiate the configuration header FILE 23771 23772Configuration files: 23773$config_files 23774 23775Configuration headers: 23776$config_headers 23777 23778Configuration commands: 23779$config_commands 23780 23781Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=poppler>." 23782 23783_ACEOF 23784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23785ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23786ac_cs_version="\\ 23787poppler config.status 0.16.3 23788configured by $0, generated by GNU Autoconf 2.69, 23789 with options \\"\$ac_cs_config\\" 23790 23791Copyright (C) 2012 Free Software Foundation, Inc. 23792This config.status script is free software; the Free Software Foundation 23793gives unlimited permission to copy, distribute and modify it." 23794 23795ac_pwd='$ac_pwd' 23796srcdir='$srcdir' 23797INSTALL='$INSTALL' 23798MKDIR_P='$MKDIR_P' 23799AWK='$AWK' 23800test -n "\$AWK" || AWK=awk 23801_ACEOF 23802 23803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23804# The default lists apply if the user does not specify any file. 23805ac_need_defaults=: 23806while test $# != 0 23807do 23808 case $1 in 23809 --*=?*) 23810 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23812 ac_shift=: 23813 ;; 23814 --*=) 23815 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23816 ac_optarg= 23817 ac_shift=: 23818 ;; 23819 *) 23820 ac_option=$1 23821 ac_optarg=$2 23822 ac_shift=shift 23823 ;; 23824 esac 23825 23826 case $ac_option in 23827 # Handling of the options. 23828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23829 ac_cs_recheck=: ;; 23830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23831 $as_echo "$ac_cs_version"; exit ;; 23832 --config | --confi | --conf | --con | --co | --c ) 23833 $as_echo "$ac_cs_config"; exit ;; 23834 --debug | --debu | --deb | --de | --d | -d ) 23835 debug=: ;; 23836 --file | --fil | --fi | --f ) 23837 $ac_shift 23838 case $ac_optarg in 23839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23840 '') as_fn_error $? "missing file argument" ;; 23841 esac 23842 as_fn_append CONFIG_FILES " '$ac_optarg'" 23843 ac_need_defaults=false;; 23844 --header | --heade | --head | --hea ) 23845 $ac_shift 23846 case $ac_optarg in 23847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23848 esac 23849 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23850 ac_need_defaults=false;; 23851 --he | --h) 23852 # Conflict between --help and --header 23853 as_fn_error $? "ambiguous option: \`$1' 23854Try \`$0 --help' for more information.";; 23855 --help | --hel | -h ) 23856 $as_echo "$ac_cs_usage"; exit ;; 23857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23858 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23859 ac_cs_silent=: ;; 23860 23861 # This is an error. 23862 -*) as_fn_error $? "unrecognized option: \`$1' 23863Try \`$0 --help' for more information." ;; 23864 23865 *) as_fn_append ac_config_targets " $1" 23866 ac_need_defaults=false ;; 23867 23868 esac 23869 shift 23870done 23871 23872ac_configure_extra_args= 23873 23874if $ac_cs_silent; then 23875 exec 6>/dev/null 23876 ac_configure_extra_args="$ac_configure_extra_args --silent" 23877fi 23878 23879_ACEOF 23880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23881if \$ac_cs_recheck; then 23882 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23883 shift 23884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23885 CONFIG_SHELL='$SHELL' 23886 export CONFIG_SHELL 23887 exec "\$@" 23888fi 23889 23890_ACEOF 23891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23892exec 5>>config.log 23893{ 23894 echo 23895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23896## Running $as_me. ## 23897_ASBOX 23898 $as_echo "$ac_log" 23899} >&5 23900 23901_ACEOF 23902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23903# 23904# INIT-COMMANDS 23905# 23906AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23907 23908 23909# The HP-UX ksh and POSIX shell print the target directory to stdout 23910# if CDPATH is set. 23911(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23912 23913sed_quote_subst='$sed_quote_subst' 23914double_quote_subst='$double_quote_subst' 23915delay_variable_subst='$delay_variable_subst' 23916AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 23917DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23918OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23919macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23920macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23921enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23922enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23923pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23924enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23927host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23928host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23929host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23930build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23931build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23932build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23933SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23934Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23935GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23936EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23937FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23938LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23939NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23940LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23941max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23942ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23943exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23944lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23945lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23946lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23947lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23948lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23949reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23950reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23951deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23952file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23953file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23954want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23955sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23956AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23957AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23958archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23959STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23960RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23961old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23962old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23963old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23964lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23965CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23966CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23967compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23968GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23969lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23970lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23971lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23972lt_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"`' 23973nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23974lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23975objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23976MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23977lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23978lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23979lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23980lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23981lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23982need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23983MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23984DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23985NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23986LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23987OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23988OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23989libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23990shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23991extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23992archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23993enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23994export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23995whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23996compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23997old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23998old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23999archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24000archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24001module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24002module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24003with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24004allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24005no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24006hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24007hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 24008hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24009hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24010hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24011hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24012hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24013hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24014inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24015link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24016always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24017export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24018exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24019include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24020prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24021postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24022file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24023variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24024need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24025need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24026version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24027runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24028shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24029shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24030libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24031library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24032soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24033install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24034postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24035postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24036finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24037finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24038hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24039sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24040sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 24041hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24042enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24043enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24044enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24045old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24046striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24047compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 24048predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 24049postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 24050predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 24051postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 24052compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 24053LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 24054reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 24055reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24056old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24057compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 24058GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 24059lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 24060lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 24061lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 24062lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 24063lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 24064archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 24065enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 24066export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24067whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24068compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 24069old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24070old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24071archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24072archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24073module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24074module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24075with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 24076allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 24077no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 24078hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24079hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 24080hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 24081hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 24082hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 24083hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 24084hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 24085hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 24086inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 24087link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 24088always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 24089export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24090exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 24091include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 24092prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24093postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24094file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 24095hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 24096compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 24097predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 24098postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 24099predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 24100postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 24101compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 24102 24103LTCC='$LTCC' 24104LTCFLAGS='$LTCFLAGS' 24105compiler='$compiler_DEFAULT' 24106 24107# A function that is used when there is no print builtin or printf. 24108func_fallback_echo () 24109{ 24110 eval 'cat <<_LTECHO_EOF 24111\$1 24112_LTECHO_EOF' 24113} 24114 24115# Quote evaled strings. 24116for var in AS \ 24117DLLTOOL \ 24118OBJDUMP \ 24119SHELL \ 24120ECHO \ 24121SED \ 24122GREP \ 24123EGREP \ 24124FGREP \ 24125LD \ 24126NM \ 24127LN_S \ 24128lt_SP2NL \ 24129lt_NL2SP \ 24130reload_flag \ 24131deplibs_check_method \ 24132file_magic_cmd \ 24133file_magic_glob \ 24134want_nocaseglob \ 24135sharedlib_from_linklib_cmd \ 24136AR \ 24137AR_FLAGS \ 24138archiver_list_spec \ 24139STRIP \ 24140RANLIB \ 24141CC \ 24142CFLAGS \ 24143compiler \ 24144lt_cv_sys_global_symbol_pipe \ 24145lt_cv_sys_global_symbol_to_cdecl \ 24146lt_cv_sys_global_symbol_to_c_name_address \ 24147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24148nm_file_list_spec \ 24149lt_prog_compiler_no_builtin_flag \ 24150lt_prog_compiler_pic \ 24151lt_prog_compiler_wl \ 24152lt_prog_compiler_static \ 24153lt_cv_prog_compiler_c_o \ 24154need_locks \ 24155MANIFEST_TOOL \ 24156DSYMUTIL \ 24157NMEDIT \ 24158LIPO \ 24159OTOOL \ 24160OTOOL64 \ 24161shrext_cmds \ 24162export_dynamic_flag_spec \ 24163whole_archive_flag_spec \ 24164compiler_needs_object \ 24165with_gnu_ld \ 24166allow_undefined_flag \ 24167no_undefined_flag \ 24168hardcode_libdir_flag_spec \ 24169hardcode_libdir_flag_spec_ld \ 24170hardcode_libdir_separator \ 24171exclude_expsyms \ 24172include_expsyms \ 24173file_list_spec \ 24174variables_saved_for_relink \ 24175libname_spec \ 24176library_names_spec \ 24177soname_spec \ 24178install_override_mode \ 24179finish_eval \ 24180old_striplib \ 24181striplib \ 24182compiler_lib_search_dirs \ 24183predep_objects \ 24184postdep_objects \ 24185predeps \ 24186postdeps \ 24187compiler_lib_search_path \ 24188LD_CXX \ 24189reload_flag_CXX \ 24190compiler_CXX \ 24191lt_prog_compiler_no_builtin_flag_CXX \ 24192lt_prog_compiler_pic_CXX \ 24193lt_prog_compiler_wl_CXX \ 24194lt_prog_compiler_static_CXX \ 24195lt_cv_prog_compiler_c_o_CXX \ 24196export_dynamic_flag_spec_CXX \ 24197whole_archive_flag_spec_CXX \ 24198compiler_needs_object_CXX \ 24199with_gnu_ld_CXX \ 24200allow_undefined_flag_CXX \ 24201no_undefined_flag_CXX \ 24202hardcode_libdir_flag_spec_CXX \ 24203hardcode_libdir_flag_spec_ld_CXX \ 24204hardcode_libdir_separator_CXX \ 24205exclude_expsyms_CXX \ 24206include_expsyms_CXX \ 24207file_list_spec_CXX \ 24208compiler_lib_search_dirs_CXX \ 24209predep_objects_CXX \ 24210postdep_objects_CXX \ 24211predeps_CXX \ 24212postdeps_CXX \ 24213compiler_lib_search_path_CXX; do 24214 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24215 *[\\\\\\\`\\"\\\$]*) 24216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 24217 ;; 24218 *) 24219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24220 ;; 24221 esac 24222done 24223 24224# Double-quote double-evaled strings. 24225for var in reload_cmds \ 24226old_postinstall_cmds \ 24227old_postuninstall_cmds \ 24228old_archive_cmds \ 24229extract_expsyms_cmds \ 24230old_archive_from_new_cmds \ 24231old_archive_from_expsyms_cmds \ 24232archive_cmds \ 24233archive_expsym_cmds \ 24234module_cmds \ 24235module_expsym_cmds \ 24236export_symbols_cmds \ 24237prelink_cmds \ 24238postlink_cmds \ 24239postinstall_cmds \ 24240postuninstall_cmds \ 24241finish_cmds \ 24242sys_lib_search_path_spec \ 24243sys_lib_dlsearch_path_spec \ 24244reload_cmds_CXX \ 24245old_archive_cmds_CXX \ 24246old_archive_from_new_cmds_CXX \ 24247old_archive_from_expsyms_cmds_CXX \ 24248archive_cmds_CXX \ 24249archive_expsym_cmds_CXX \ 24250module_cmds_CXX \ 24251module_expsym_cmds_CXX \ 24252export_symbols_cmds_CXX \ 24253prelink_cmds_CXX \ 24254postlink_cmds_CXX; do 24255 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24256 *[\\\\\\\`\\"\\\$]*) 24257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 24258 ;; 24259 *) 24260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24261 ;; 24262 esac 24263done 24264 24265ac_aux_dir='$ac_aux_dir' 24266xsi_shell='$xsi_shell' 24267lt_shell_append='$lt_shell_append' 24268 24269# See if we are running on zsh, and set the options which allow our 24270# commands through without removal of \ escapes INIT. 24271if test -n "\${ZSH_VERSION+set}" ; then 24272 setopt NO_GLOB_SUBST 24273fi 24274 24275 24276 PACKAGE='$PACKAGE' 24277 VERSION='$VERSION' 24278 TIMESTAMP='$TIMESTAMP' 24279 RM='$RM' 24280 ofile='$ofile' 24281 24282 24283 24284 24285 24286 24287_ACEOF 24288 24289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24290 24291# Handling of arguments. 24292for ac_config_target in $ac_config_targets 24293do 24294 case $ac_config_target in 24295 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24296 "poppler/poppler-config.h") CONFIG_HEADERS="$CONFIG_HEADERS poppler/poppler-config.h" ;; 24297 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24298 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24299 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24300 "goo/Makefile") CONFIG_FILES="$CONFIG_FILES goo/Makefile" ;; 24301 "fofi/Makefile") CONFIG_FILES="$CONFIG_FILES fofi/Makefile" ;; 24302 "splash/Makefile") CONFIG_FILES="$CONFIG_FILES splash/Makefile" ;; 24303 "poppler/Makefile") CONFIG_FILES="$CONFIG_FILES poppler/Makefile" ;; 24304 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 24305 "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;; 24306 "glib/poppler-features.h") CONFIG_FILES="$CONFIG_FILES glib/poppler-features.h" ;; 24307 "glib/reference/Makefile") CONFIG_FILES="$CONFIG_FILES glib/reference/Makefile" ;; 24308 "glib/reference/version.xml") CONFIG_FILES="$CONFIG_FILES glib/reference/version.xml" ;; 24309 "glib/demo/Makefile") CONFIG_FILES="$CONFIG_FILES glib/demo/Makefile" ;; 24310 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 24311 "qt/Makefile") CONFIG_FILES="$CONFIG_FILES qt/Makefile" ;; 24312 "qt4/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/Makefile" ;; 24313 "qt4/src/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/src/Makefile" ;; 24314 "qt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/tests/Makefile" ;; 24315 "qt4/demos/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/demos/Makefile" ;; 24316 "cpp/Makefile") CONFIG_FILES="$CONFIG_FILES cpp/Makefile" ;; 24317 "cpp/poppler-version.h") CONFIG_FILES="$CONFIG_FILES cpp/poppler-version.h" ;; 24318 "cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cpp/tests/Makefile" ;; 24319 "poppler.pc") CONFIG_FILES="$CONFIG_FILES poppler.pc" ;; 24320 "poppler-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-uninstalled.pc" ;; 24321 "poppler-cairo.pc") CONFIG_FILES="$CONFIG_FILES poppler-cairo.pc" ;; 24322 "poppler-cairo-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-cairo-uninstalled.pc" ;; 24323 "poppler-splash.pc") CONFIG_FILES="$CONFIG_FILES poppler-splash.pc" ;; 24324 "poppler-splash-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-splash-uninstalled.pc" ;; 24325 "poppler-glib.pc") CONFIG_FILES="$CONFIG_FILES poppler-glib.pc" ;; 24326 "poppler-glib-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-glib-uninstalled.pc" ;; 24327 "poppler-qt.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt.pc" ;; 24328 "poppler-qt-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt-uninstalled.pc" ;; 24329 "poppler-qt4.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt4.pc" ;; 24330 "poppler-qt4-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt4-uninstalled.pc" ;; 24331 "poppler-cpp.pc") CONFIG_FILES="$CONFIG_FILES poppler-cpp.pc" ;; 24332 "poppler-cpp-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-cpp-uninstalled.pc" ;; 24333 24334 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24335 esac 24336done 24337 24338 24339# If the user did not use the arguments to specify the items to instantiate, 24340# then the envvar interface is used. Set only those that are not. 24341# We use the long form for the default assignment because of an extremely 24342# bizarre bug on SunOS 4.1.3. 24343if $ac_need_defaults; then 24344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24347fi 24348 24349# Have a temporary directory for convenience. Make it in the build tree 24350# simply because there is no reason against having it here, and in addition, 24351# creating and moving files from /tmp can sometimes cause problems. 24352# Hook for its removal unless debugging. 24353# Note that there is a small window in which the directory will not be cleaned: 24354# after its creation but before its name has been assigned to `$tmp'. 24355$debug || 24356{ 24357 tmp= ac_tmp= 24358 trap 'exit_status=$? 24359 : "${ac_tmp:=$tmp}" 24360 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24361' 0 24362 trap 'as_fn_exit 1' 1 2 13 15 24363} 24364# Create a (secure) tmp directory for tmp files. 24365 24366{ 24367 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24368 test -d "$tmp" 24369} || 24370{ 24371 tmp=./conf$$-$RANDOM 24372 (umask 077 && mkdir "$tmp") 24373} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24374ac_tmp=$tmp 24375 24376# Set up the scripts for CONFIG_FILES section. 24377# No need to generate them if there are no CONFIG_FILES. 24378# This happens for instance with `./config.status config.h'. 24379if test -n "$CONFIG_FILES"; then 24380 24381 24382ac_cr=`echo X | tr X '\015'` 24383# On cygwin, bash can eat \r inside `` if the user requested igncr. 24384# But we know of no other shell where ac_cr would be empty at this 24385# point, so we can use a bashism as a fallback. 24386if test "x$ac_cr" = x; then 24387 eval ac_cr=\$\'\\r\' 24388fi 24389ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24390if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24391 ac_cs_awk_cr='\\r' 24392else 24393 ac_cs_awk_cr=$ac_cr 24394fi 24395 24396echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24397_ACEOF 24398 24399 24400{ 24401 echo "cat >conf$$subs.awk <<_ACEOF" && 24402 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24403 echo "_ACEOF" 24404} >conf$$subs.sh || 24405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24406ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24407ac_delim='%!_!# ' 24408for ac_last_try in false false false false false :; do 24409 . ./conf$$subs.sh || 24410 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24411 24412 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24413 if test $ac_delim_n = $ac_delim_num; then 24414 break 24415 elif $ac_last_try; then 24416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24417 else 24418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24419 fi 24420done 24421rm -f conf$$subs.sh 24422 24423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24424cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24425_ACEOF 24426sed -n ' 24427h 24428s/^/S["/; s/!.*/"]=/ 24429p 24430g 24431s/^[^!]*!// 24432:repl 24433t repl 24434s/'"$ac_delim"'$// 24435t delim 24436:nl 24437h 24438s/\(.\{148\}\)..*/\1/ 24439t more1 24440s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24441p 24442n 24443b repl 24444:more1 24445s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24446p 24447g 24448s/.\{148\}// 24449t nl 24450:delim 24451h 24452s/\(.\{148\}\)..*/\1/ 24453t more2 24454s/["\\]/\\&/g; s/^/"/; s/$/"/ 24455p 24456b 24457:more2 24458s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24459p 24460g 24461s/.\{148\}// 24462t delim 24463' <conf$$subs.awk | sed ' 24464/^[^""]/{ 24465 N 24466 s/\n// 24467} 24468' >>$CONFIG_STATUS || ac_write_fail=1 24469rm -f conf$$subs.awk 24470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24471_ACAWK 24472cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24473 for (key in S) S_is_set[key] = 1 24474 FS = "" 24475 24476} 24477{ 24478 line = $ 0 24479 nfields = split(line, field, "@") 24480 substed = 0 24481 len = length(field[1]) 24482 for (i = 2; i < nfields; i++) { 24483 key = field[i] 24484 keylen = length(key) 24485 if (S_is_set[key]) { 24486 value = S[key] 24487 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24488 len += length(value) + length(field[++i]) 24489 substed = 1 24490 } else 24491 len += 1 + keylen 24492 } 24493 24494 print line 24495} 24496 24497_ACAWK 24498_ACEOF 24499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24500if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24501 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24502else 24503 cat 24504fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24505 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24506_ACEOF 24507 24508# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24509# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24510# trailing colons and then remove the whole line if VPATH becomes empty 24511# (actually we leave an empty line to preserve line numbers). 24512if test "x$srcdir" = x.; then 24513 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24514h 24515s/// 24516s/^/:/ 24517s/[ ]*$/:/ 24518s/:\$(srcdir):/:/g 24519s/:\${srcdir}:/:/g 24520s/:@srcdir@:/:/g 24521s/^:*// 24522s/:*$// 24523x 24524s/\(=[ ]*\).*/\1/ 24525G 24526s/\n// 24527s/^[^=]*=[ ]*$// 24528}' 24529fi 24530 24531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24532fi # test -n "$CONFIG_FILES" 24533 24534# Set up the scripts for CONFIG_HEADERS section. 24535# No need to generate them if there are no CONFIG_HEADERS. 24536# This happens for instance with `./config.status Makefile'. 24537if test -n "$CONFIG_HEADERS"; then 24538cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24539BEGIN { 24540_ACEOF 24541 24542# Transform confdefs.h into an awk script `defines.awk', embedded as 24543# here-document in config.status, that substitutes the proper values into 24544# config.h.in to produce config.h. 24545 24546# Create a delimiter string that does not exist in confdefs.h, to ease 24547# handling of long lines. 24548ac_delim='%!_!# ' 24549for ac_last_try in false false :; do 24550 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24551 if test -z "$ac_tt"; then 24552 break 24553 elif $ac_last_try; then 24554 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24555 else 24556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24557 fi 24558done 24559 24560# For the awk script, D is an array of macro values keyed by name, 24561# likewise P contains macro parameters if any. Preserve backslash 24562# newline sequences. 24563 24564ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24565sed -n ' 24566s/.\{148\}/&'"$ac_delim"'/g 24567t rset 24568:rset 24569s/^[ ]*#[ ]*define[ ][ ]*/ / 24570t def 24571d 24572:def 24573s/\\$// 24574t bsnl 24575s/["\\]/\\&/g 24576s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24577D["\1"]=" \3"/p 24578s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24579d 24580:bsnl 24581s/["\\]/\\&/g 24582s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24583D["\1"]=" \3\\\\\\n"\\/p 24584t cont 24585s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24586t cont 24587d 24588:cont 24589n 24590s/.\{148\}/&'"$ac_delim"'/g 24591t clear 24592:clear 24593s/\\$// 24594t bsnlc 24595s/["\\]/\\&/g; s/^/"/; s/$/"/p 24596d 24597:bsnlc 24598s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24599b cont 24600' <confdefs.h | sed ' 24601s/'"$ac_delim"'/"\\\ 24602"/g' >>$CONFIG_STATUS || ac_write_fail=1 24603 24604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24605 for (key in D) D_is_set[key] = 1 24606 FS = "" 24607} 24608/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24609 line = \$ 0 24610 split(line, arg, " ") 24611 if (arg[1] == "#") { 24612 defundef = arg[2] 24613 mac1 = arg[3] 24614 } else { 24615 defundef = substr(arg[1], 2) 24616 mac1 = arg[2] 24617 } 24618 split(mac1, mac2, "(") #) 24619 macro = mac2[1] 24620 prefix = substr(line, 1, index(line, defundef) - 1) 24621 if (D_is_set[macro]) { 24622 # Preserve the white space surrounding the "#". 24623 print prefix "define", macro P[macro] D[macro] 24624 next 24625 } else { 24626 # Replace #undef with comments. This is necessary, for example, 24627 # in the case of _POSIX_SOURCE, which is predefined and required 24628 # on some systems where configure will not decide to define it. 24629 if (defundef == "undef") { 24630 print "/*", prefix defundef, macro, "*/" 24631 next 24632 } 24633 } 24634} 24635{ print } 24636_ACAWK 24637_ACEOF 24638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24639 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24640fi # test -n "$CONFIG_HEADERS" 24641 24642 24643eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24644shift 24645for ac_tag 24646do 24647 case $ac_tag in 24648 :[FHLC]) ac_mode=$ac_tag; continue;; 24649 esac 24650 case $ac_mode$ac_tag in 24651 :[FHL]*:*);; 24652 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24653 :[FH]-) ac_tag=-:-;; 24654 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24655 esac 24656 ac_save_IFS=$IFS 24657 IFS=: 24658 set x $ac_tag 24659 IFS=$ac_save_IFS 24660 shift 24661 ac_file=$1 24662 shift 24663 24664 case $ac_mode in 24665 :L) ac_source=$1;; 24666 :[FH]) 24667 ac_file_inputs= 24668 for ac_f 24669 do 24670 case $ac_f in 24671 -) ac_f="$ac_tmp/stdin";; 24672 *) # Look for the file first in the build tree, then in the source tree 24673 # (if the path is not absolute). The absolute path cannot be DOS-style, 24674 # because $ac_f cannot contain `:'. 24675 test -f "$ac_f" || 24676 case $ac_f in 24677 [\\/$]*) false;; 24678 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24679 esac || 24680 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24681 esac 24682 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24683 as_fn_append ac_file_inputs " '$ac_f'" 24684 done 24685 24686 # Let's still pretend it is `configure' which instantiates (i.e., don't 24687 # use $as_me), people would be surprised to read: 24688 # /* config.h. Generated by config.status. */ 24689 configure_input='Generated from '` 24690 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24691 `' by configure.' 24692 if test x"$ac_file" != x-; then 24693 configure_input="$ac_file. $configure_input" 24694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24695$as_echo "$as_me: creating $ac_file" >&6;} 24696 fi 24697 # Neutralize special characters interpreted by sed in replacement strings. 24698 case $configure_input in #( 24699 *\&* | *\|* | *\\* ) 24700 ac_sed_conf_input=`$as_echo "$configure_input" | 24701 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24702 *) ac_sed_conf_input=$configure_input;; 24703 esac 24704 24705 case $ac_tag in 24706 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24708 esac 24709 ;; 24710 esac 24711 24712 ac_dir=`$as_dirname -- "$ac_file" || 24713$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24714 X"$ac_file" : 'X\(//\)[^/]' \| \ 24715 X"$ac_file" : 'X\(//\)$' \| \ 24716 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24717$as_echo X"$ac_file" | 24718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24719 s//\1/ 24720 q 24721 } 24722 /^X\(\/\/\)[^/].*/{ 24723 s//\1/ 24724 q 24725 } 24726 /^X\(\/\/\)$/{ 24727 s//\1/ 24728 q 24729 } 24730 /^X\(\/\).*/{ 24731 s//\1/ 24732 q 24733 } 24734 s/.*/./; q'` 24735 as_dir="$ac_dir"; as_fn_mkdir_p 24736 ac_builddir=. 24737 24738case "$ac_dir" in 24739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24740*) 24741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24742 # A ".." for each directory in $ac_dir_suffix. 24743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24744 case $ac_top_builddir_sub in 24745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24747 esac ;; 24748esac 24749ac_abs_top_builddir=$ac_pwd 24750ac_abs_builddir=$ac_pwd$ac_dir_suffix 24751# for backward compatibility: 24752ac_top_builddir=$ac_top_build_prefix 24753 24754case $srcdir in 24755 .) # We are building in place. 24756 ac_srcdir=. 24757 ac_top_srcdir=$ac_top_builddir_sub 24758 ac_abs_top_srcdir=$ac_pwd ;; 24759 [\\/]* | ?:[\\/]* ) # Absolute name. 24760 ac_srcdir=$srcdir$ac_dir_suffix; 24761 ac_top_srcdir=$srcdir 24762 ac_abs_top_srcdir=$srcdir ;; 24763 *) # Relative name. 24764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24765 ac_top_srcdir=$ac_top_build_prefix$srcdir 24766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24767esac 24768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24769 24770 24771 case $ac_mode in 24772 :F) 24773 # 24774 # CONFIG_FILE 24775 # 24776 24777 case $INSTALL in 24778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24779 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24780 esac 24781 ac_MKDIR_P=$MKDIR_P 24782 case $MKDIR_P in 24783 [\\/$]* | ?:[\\/]* ) ;; 24784 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24785 esac 24786_ACEOF 24787 24788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24789# If the template does not know about datarootdir, expand it. 24790# FIXME: This hack should be removed a few years after 2.60. 24791ac_datarootdir_hack=; ac_datarootdir_seen= 24792ac_sed_dataroot=' 24793/datarootdir/ { 24794 p 24795 q 24796} 24797/@datadir@/p 24798/@docdir@/p 24799/@infodir@/p 24800/@localedir@/p 24801/@mandir@/p' 24802case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24803*datarootdir*) ac_datarootdir_seen=yes;; 24804*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24806$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24807_ACEOF 24808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24809 ac_datarootdir_hack=' 24810 s&@datadir@&$datadir&g 24811 s&@docdir@&$docdir&g 24812 s&@infodir@&$infodir&g 24813 s&@localedir@&$localedir&g 24814 s&@mandir@&$mandir&g 24815 s&\\\${datarootdir}&$datarootdir&g' ;; 24816esac 24817_ACEOF 24818 24819# Neutralize VPATH when `$srcdir' = `.'. 24820# Shell code in configure.ac might set extrasub. 24821# FIXME: do we really want to maintain this feature? 24822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24823ac_sed_extra="$ac_vpsub 24824$extrasub 24825_ACEOF 24826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24827:t 24828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24829s|@configure_input@|$ac_sed_conf_input|;t t 24830s&@top_builddir@&$ac_top_builddir_sub&;t t 24831s&@top_build_prefix@&$ac_top_build_prefix&;t t 24832s&@srcdir@&$ac_srcdir&;t t 24833s&@abs_srcdir@&$ac_abs_srcdir&;t t 24834s&@top_srcdir@&$ac_top_srcdir&;t t 24835s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24836s&@builddir@&$ac_builddir&;t t 24837s&@abs_builddir@&$ac_abs_builddir&;t t 24838s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24839s&@INSTALL@&$ac_INSTALL&;t t 24840s&@MKDIR_P@&$ac_MKDIR_P&;t t 24841$ac_datarootdir_hack 24842" 24843eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24844 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24845 24846test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24847 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24848 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24849 "$ac_tmp/out"`; test -z "$ac_out"; } && 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24851which seems to be undefined. Please make sure it is defined" >&5 24852$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24853which seems to be undefined. Please make sure it is defined" >&2;} 24854 24855 rm -f "$ac_tmp/stdin" 24856 case $ac_file in 24857 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24858 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24859 esac \ 24860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24861 ;; 24862 :H) 24863 # 24864 # CONFIG_HEADER 24865 # 24866 if test x"$ac_file" != x-; then 24867 { 24868 $as_echo "/* $configure_input */" \ 24869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24870 } >"$ac_tmp/config.h" \ 24871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24872 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24874$as_echo "$as_me: $ac_file is unchanged" >&6;} 24875 else 24876 rm -f "$ac_file" 24877 mv "$ac_tmp/config.h" "$ac_file" \ 24878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24879 fi 24880 else 24881 $as_echo "/* $configure_input */" \ 24882 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24883 || as_fn_error $? "could not create -" "$LINENO" 5 24884 fi 24885# Compute "$ac_file"'s index in $config_headers. 24886_am_arg="$ac_file" 24887_am_stamp_count=1 24888for _am_header in $config_headers :; do 24889 case $_am_header in 24890 $_am_arg | $_am_arg:* ) 24891 break ;; 24892 * ) 24893 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24894 esac 24895done 24896echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24897$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24898 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24899 X"$_am_arg" : 'X\(//\)$' \| \ 24900 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24901$as_echo X"$_am_arg" | 24902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24903 s//\1/ 24904 q 24905 } 24906 /^X\(\/\/\)[^/].*/{ 24907 s//\1/ 24908 q 24909 } 24910 /^X\(\/\/\)$/{ 24911 s//\1/ 24912 q 24913 } 24914 /^X\(\/\).*/{ 24915 s//\1/ 24916 q 24917 } 24918 s/.*/./; q'`/stamp-h$_am_stamp_count 24919 ;; 24920 24921 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24922$as_echo "$as_me: executing $ac_file commands" >&6;} 24923 ;; 24924 esac 24925 24926 24927 case $ac_file$ac_mode in 24928 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24929 # Autoconf 2.62 quotes --file arguments for eval, but not when files 24930 # are listed without --file. Let's play safe and only enable the eval 24931 # if we detect the quoting. 24932 case $CONFIG_FILES in 24933 *\'*) eval set x "$CONFIG_FILES" ;; 24934 *) set x $CONFIG_FILES ;; 24935 esac 24936 shift 24937 for mf 24938 do 24939 # Strip MF so we end up with the name of the file. 24940 mf=`echo "$mf" | sed -e 's/:.*$//'` 24941 # Check whether this is an Automake generated Makefile or not. 24942 # We used to match only the files named `Makefile.in', but 24943 # some people rename them; so instead we look at the file content. 24944 # Grep'ing the first line is not enough: some people post-process 24945 # each Makefile.in and add a new line on top of each file to say so. 24946 # Grep'ing the whole file is not good either: AIX grep has a line 24947 # limit of 2048, but all sed's we know have understand at least 4000. 24948 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24949 dirpart=`$as_dirname -- "$mf" || 24950$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24951 X"$mf" : 'X\(//\)[^/]' \| \ 24952 X"$mf" : 'X\(//\)$' \| \ 24953 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24954$as_echo X"$mf" | 24955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24956 s//\1/ 24957 q 24958 } 24959 /^X\(\/\/\)[^/].*/{ 24960 s//\1/ 24961 q 24962 } 24963 /^X\(\/\/\)$/{ 24964 s//\1/ 24965 q 24966 } 24967 /^X\(\/\).*/{ 24968 s//\1/ 24969 q 24970 } 24971 s/.*/./; q'` 24972 else 24973 continue 24974 fi 24975 # Extract the definition of DEPDIR, am__include, and am__quote 24976 # from the Makefile without running `make'. 24977 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24978 test -z "$DEPDIR" && continue 24979 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24980 test -z "am__include" && continue 24981 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24982 # When using ansi2knr, U may be empty or an underscore; expand it 24983 U=`sed -n 's/^U = //p' < "$mf"` 24984 # Find all dependency output files, they are included files with 24985 # $(DEPDIR) in their names. We invoke sed twice because it is the 24986 # simplest approach to changing $(DEPDIR) to its actual value in the 24987 # expansion. 24988 for file in `sed -n " 24989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24991 # Make sure the directory exists. 24992 test -f "$dirpart/$file" && continue 24993 fdir=`$as_dirname -- "$file" || 24994$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24995 X"$file" : 'X\(//\)[^/]' \| \ 24996 X"$file" : 'X\(//\)$' \| \ 24997 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24998$as_echo X"$file" | 24999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25000 s//\1/ 25001 q 25002 } 25003 /^X\(\/\/\)[^/].*/{ 25004 s//\1/ 25005 q 25006 } 25007 /^X\(\/\/\)$/{ 25008 s//\1/ 25009 q 25010 } 25011 /^X\(\/\).*/{ 25012 s//\1/ 25013 q 25014 } 25015 s/.*/./; q'` 25016 as_dir=$dirpart/$fdir; as_fn_mkdir_p 25017 # echo "creating $dirpart/$file" 25018 echo '# dummy' > "$dirpart/$file" 25019 done 25020 done 25021} 25022 ;; 25023 "libtool":C) 25024 25025 # See if we are running on zsh, and set the options which allow our 25026 # commands through without removal of \ escapes. 25027 if test -n "${ZSH_VERSION+set}" ; then 25028 setopt NO_GLOB_SUBST 25029 fi 25030 25031 cfgfile="${ofile}T" 25032 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25033 $RM "$cfgfile" 25034 25035 cat <<_LT_EOF >> "$cfgfile" 25036#! $SHELL 25037 25038# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 25039# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 25040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25041# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25042# 25043# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 25044# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 25045# Inc. 25046# Written by Gordon Matzigkeit, 1996 25047# 25048# This file is part of GNU Libtool. 25049# 25050# GNU Libtool is free software; you can redistribute it and/or 25051# modify it under the terms of the GNU General Public License as 25052# published by the Free Software Foundation; either version 2 of 25053# the License, or (at your option) any later version. 25054# 25055# As a special exception to the GNU General Public License, 25056# if you distribute this file as part of a program or library that 25057# is built using GNU Libtool, you may include this file under the 25058# same distribution terms that you use for the rest of that program. 25059# 25060# GNU Libtool is distributed in the hope that it will be useful, 25061# but WITHOUT ANY WARRANTY; without even the implied warranty of 25062# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25063# GNU General Public License for more details. 25064# 25065# You should have received a copy of the GNU General Public License 25066# along with GNU Libtool; see the file COPYING. If not, a copy 25067# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 25068# obtained by writing to the Free Software Foundation, Inc., 25069# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25070 25071 25072# The names of the tagged configurations supported by this script. 25073available_tags="CXX " 25074 25075# ### BEGIN LIBTOOL CONFIG 25076 25077# Assembler program. 25078AS=$lt_AS 25079 25080# DLL creation program. 25081DLLTOOL=$lt_DLLTOOL 25082 25083# Object dumper program. 25084OBJDUMP=$lt_OBJDUMP 25085 25086# Which release of libtool.m4 was used? 25087macro_version=$macro_version 25088macro_revision=$macro_revision 25089 25090# Whether or not to build shared libraries. 25091build_libtool_libs=$enable_shared 25092 25093# Whether or not to build static libraries. 25094build_old_libs=$enable_static 25095 25096# What type of objects to build. 25097pic_mode=$pic_mode 25098 25099# Whether or not to optimize for fast installation. 25100fast_install=$enable_fast_install 25101 25102# Shell to use when invoking shell scripts. 25103SHELL=$lt_SHELL 25104 25105# An echo program that protects backslashes. 25106ECHO=$lt_ECHO 25107 25108# The host system. 25109host_alias=$host_alias 25110host=$host 25111host_os=$host_os 25112 25113# The build system. 25114build_alias=$build_alias 25115build=$build 25116build_os=$build_os 25117 25118# A sed program that does not truncate output. 25119SED=$lt_SED 25120 25121# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25122Xsed="\$SED -e 1s/^X//" 25123 25124# A grep program that handles long lines. 25125GREP=$lt_GREP 25126 25127# An ERE matcher. 25128EGREP=$lt_EGREP 25129 25130# A literal string matcher. 25131FGREP=$lt_FGREP 25132 25133# A BSD- or MS-compatible name lister. 25134NM=$lt_NM 25135 25136# Whether we need soft or hard links. 25137LN_S=$lt_LN_S 25138 25139# What is the maximum length of a command? 25140max_cmd_len=$max_cmd_len 25141 25142# Object file suffix (normally "o"). 25143objext=$ac_objext 25144 25145# Executable file suffix (normally ""). 25146exeext=$exeext 25147 25148# whether the shell understands "unset". 25149lt_unset=$lt_unset 25150 25151# turn spaces into newlines. 25152SP2NL=$lt_lt_SP2NL 25153 25154# turn newlines into spaces. 25155NL2SP=$lt_lt_NL2SP 25156 25157# convert \$build file names to \$host format. 25158to_host_file_cmd=$lt_cv_to_host_file_cmd 25159 25160# convert \$build files to toolchain format. 25161to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25162 25163# Method to check whether dependent libraries are shared objects. 25164deplibs_check_method=$lt_deplibs_check_method 25165 25166# Command to use when deplibs_check_method = "file_magic". 25167file_magic_cmd=$lt_file_magic_cmd 25168 25169# How to find potential files when deplibs_check_method = "file_magic". 25170file_magic_glob=$lt_file_magic_glob 25171 25172# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25173want_nocaseglob=$lt_want_nocaseglob 25174 25175# Command to associate shared and link libraries. 25176sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25177 25178# The archiver. 25179AR=$lt_AR 25180 25181# Flags to create an archive. 25182AR_FLAGS=$lt_AR_FLAGS 25183 25184# How to feed a file listing to the archiver. 25185archiver_list_spec=$lt_archiver_list_spec 25186 25187# A symbol stripping program. 25188STRIP=$lt_STRIP 25189 25190# Commands used to install an old-style archive. 25191RANLIB=$lt_RANLIB 25192old_postinstall_cmds=$lt_old_postinstall_cmds 25193old_postuninstall_cmds=$lt_old_postuninstall_cmds 25194 25195# Whether to use a lock for old archive extraction. 25196lock_old_archive_extraction=$lock_old_archive_extraction 25197 25198# A C compiler. 25199LTCC=$lt_CC 25200 25201# LTCC compiler flags. 25202LTCFLAGS=$lt_CFLAGS 25203 25204# Take the output of nm and produce a listing of raw symbols and C names. 25205global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25206 25207# Transform the output of nm in a proper C declaration. 25208global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25209 25210# Transform the output of nm in a C name address pair. 25211global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25212 25213# Transform the output of nm in a C name address pair when lib prefix is needed. 25214global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25215 25216# Specify filename containing input files for \$NM. 25217nm_file_list_spec=$lt_nm_file_list_spec 25218 25219# The root where to search for dependent libraries,and in which our libraries should be installed. 25220lt_sysroot=$lt_sysroot 25221 25222# The name of the directory that contains temporary libtool files. 25223objdir=$objdir 25224 25225# Used to examine libraries when file_magic_cmd begins with "file". 25226MAGIC_CMD=$MAGIC_CMD 25227 25228# Must we lock files when doing compilation? 25229need_locks=$lt_need_locks 25230 25231# Manifest tool. 25232MANIFEST_TOOL=$lt_MANIFEST_TOOL 25233 25234# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25235DSYMUTIL=$lt_DSYMUTIL 25236 25237# Tool to change global to local symbols on Mac OS X. 25238NMEDIT=$lt_NMEDIT 25239 25240# Tool to manipulate fat objects and archives on Mac OS X. 25241LIPO=$lt_LIPO 25242 25243# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25244OTOOL=$lt_OTOOL 25245 25246# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25247OTOOL64=$lt_OTOOL64 25248 25249# Old archive suffix (normally "a"). 25250libext=$libext 25251 25252# Shared library suffix (normally ".so"). 25253shrext_cmds=$lt_shrext_cmds 25254 25255# The commands to extract the exported symbol list from a shared archive. 25256extract_expsyms_cmds=$lt_extract_expsyms_cmds 25257 25258# Variables whose values should be saved in libtool wrapper scripts and 25259# restored at link time. 25260variables_saved_for_relink=$lt_variables_saved_for_relink 25261 25262# Do we need the "lib" prefix for modules? 25263need_lib_prefix=$need_lib_prefix 25264 25265# Do we need a version for libraries? 25266need_version=$need_version 25267 25268# Library versioning type. 25269version_type=$version_type 25270 25271# Shared library runtime path variable. 25272runpath_var=$runpath_var 25273 25274# Shared library path variable. 25275shlibpath_var=$shlibpath_var 25276 25277# Is shlibpath searched before the hard-coded library search path? 25278shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25279 25280# Format of library name prefix. 25281libname_spec=$lt_libname_spec 25282 25283# List of archive names. First name is the real one, the rest are links. 25284# The last name is the one that the linker finds with -lNAME 25285library_names_spec=$lt_library_names_spec 25286 25287# The coded name of the library, if different from the real name. 25288soname_spec=$lt_soname_spec 25289 25290# Permission mode override for installation of shared libraries. 25291install_override_mode=$lt_install_override_mode 25292 25293# Command to use after installation of a shared archive. 25294postinstall_cmds=$lt_postinstall_cmds 25295 25296# Command to use after uninstallation of a shared archive. 25297postuninstall_cmds=$lt_postuninstall_cmds 25298 25299# Commands used to finish a libtool library installation in a directory. 25300finish_cmds=$lt_finish_cmds 25301 25302# As "finish_cmds", except a single script fragment to be evaled but 25303# not shown. 25304finish_eval=$lt_finish_eval 25305 25306# Whether we should hardcode library paths into libraries. 25307hardcode_into_libs=$hardcode_into_libs 25308 25309# Compile-time system search path for libraries. 25310sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25311 25312# Run-time system search path for libraries. 25313sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 25314 25315# Whether dlopen is supported. 25316dlopen_support=$enable_dlopen 25317 25318# Whether dlopen of programs is supported. 25319dlopen_self=$enable_dlopen_self 25320 25321# Whether dlopen of statically linked programs is supported. 25322dlopen_self_static=$enable_dlopen_self_static 25323 25324# Commands to strip libraries. 25325old_striplib=$lt_old_striplib 25326striplib=$lt_striplib 25327 25328 25329# The linker used to build libraries. 25330LD=$lt_LD 25331 25332# How to create reloadable object files. 25333reload_flag=$lt_reload_flag 25334reload_cmds=$lt_reload_cmds 25335 25336# Commands used to build an old-style archive. 25337old_archive_cmds=$lt_old_archive_cmds 25338 25339# A language specific compiler. 25340CC=$lt_compiler 25341 25342# Is the compiler the GNU compiler? 25343with_gcc=$GCC 25344 25345# Compiler flag to turn off builtin functions. 25346no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25347 25348# Additional compiler flags for building library objects. 25349pic_flag=$lt_lt_prog_compiler_pic 25350 25351# How to pass a linker flag through the compiler. 25352wl=$lt_lt_prog_compiler_wl 25353 25354# Compiler flag to prevent dynamic linking. 25355link_static_flag=$lt_lt_prog_compiler_static 25356 25357# Does compiler simultaneously support -c and -o options? 25358compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25359 25360# Whether or not to add -lc for building shared libraries. 25361build_libtool_need_lc=$archive_cmds_need_lc 25362 25363# Whether or not to disallow shared libs when runtime libs are static. 25364allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25365 25366# Compiler flag to allow reflexive dlopens. 25367export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25368 25369# Compiler flag to generate shared objects directly from archives. 25370whole_archive_flag_spec=$lt_whole_archive_flag_spec 25371 25372# Whether the compiler copes with passing no objects directly. 25373compiler_needs_object=$lt_compiler_needs_object 25374 25375# Create an old-style archive from a shared archive. 25376old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25377 25378# Create a temporary old-style archive to link instead of a shared archive. 25379old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25380 25381# Commands used to build a shared archive. 25382archive_cmds=$lt_archive_cmds 25383archive_expsym_cmds=$lt_archive_expsym_cmds 25384 25385# Commands used to build a loadable module if different from building 25386# a shared archive. 25387module_cmds=$lt_module_cmds 25388module_expsym_cmds=$lt_module_expsym_cmds 25389 25390# Whether we are building with GNU ld or not. 25391with_gnu_ld=$lt_with_gnu_ld 25392 25393# Flag that allows shared libraries with undefined symbols to be built. 25394allow_undefined_flag=$lt_allow_undefined_flag 25395 25396# Flag that enforces no undefined symbols. 25397no_undefined_flag=$lt_no_undefined_flag 25398 25399# Flag to hardcode \$libdir into a binary during linking. 25400# This must work even if \$libdir does not exist 25401hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25402 25403# If ld is used when linking, flag to hardcode \$libdir into a binary 25404# during linking. This must work even if \$libdir does not exist. 25405hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 25406 25407# Whether we need a single "-rpath" flag with a separated argument. 25408hardcode_libdir_separator=$lt_hardcode_libdir_separator 25409 25410# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25411# DIR into the resulting binary. 25412hardcode_direct=$hardcode_direct 25413 25414# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25415# DIR into the resulting binary and the resulting library dependency is 25416# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 25417# library is relocated. 25418hardcode_direct_absolute=$hardcode_direct_absolute 25419 25420# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25421# into the resulting binary. 25422hardcode_minus_L=$hardcode_minus_L 25423 25424# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25425# into the resulting binary. 25426hardcode_shlibpath_var=$hardcode_shlibpath_var 25427 25428# Set to "yes" if building a shared library automatically hardcodes DIR 25429# into the library and all subsequent libraries and executables linked 25430# against it. 25431hardcode_automatic=$hardcode_automatic 25432 25433# Set to yes if linker adds runtime paths of dependent libraries 25434# to runtime path list. 25435inherit_rpath=$inherit_rpath 25436 25437# Whether libtool must link a program against all its dependency libraries. 25438link_all_deplibs=$link_all_deplibs 25439 25440# Set to "yes" if exported symbols are required. 25441always_export_symbols=$always_export_symbols 25442 25443# The commands to list exported symbols. 25444export_symbols_cmds=$lt_export_symbols_cmds 25445 25446# Symbols that should not be listed in the preloaded symbols. 25447exclude_expsyms=$lt_exclude_expsyms 25448 25449# Symbols that must always be exported. 25450include_expsyms=$lt_include_expsyms 25451 25452# Commands necessary for linking programs (against libraries) with templates. 25453prelink_cmds=$lt_prelink_cmds 25454 25455# Commands necessary for finishing linking programs. 25456postlink_cmds=$lt_postlink_cmds 25457 25458# Specify filename containing input files. 25459file_list_spec=$lt_file_list_spec 25460 25461# How to hardcode a shared library path into an executable. 25462hardcode_action=$hardcode_action 25463 25464# The directories searched by this compiler when creating a shared library. 25465compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 25466 25467# Dependencies to place before and after the objects being linked to 25468# create a shared library. 25469predep_objects=$lt_predep_objects 25470postdep_objects=$lt_postdep_objects 25471predeps=$lt_predeps 25472postdeps=$lt_postdeps 25473 25474# The library search path used internally by the compiler when linking 25475# a shared library. 25476compiler_lib_search_path=$lt_compiler_lib_search_path 25477 25478# ### END LIBTOOL CONFIG 25479 25480_LT_EOF 25481 25482 case $host_os in 25483 aix3*) 25484 cat <<\_LT_EOF >> "$cfgfile" 25485# AIX sometimes has problems with the GCC collect2 program. For some 25486# reason, if we set the COLLECT_NAMES environment variable, the problems 25487# vanish in a puff of smoke. 25488if test "X${COLLECT_NAMES+set}" != Xset; then 25489 COLLECT_NAMES= 25490 export COLLECT_NAMES 25491fi 25492_LT_EOF 25493 ;; 25494 esac 25495 25496 25497ltmain="$ac_aux_dir/ltmain.sh" 25498 25499 25500 # We use sed instead of cat because bash on DJGPP gets confused if 25501 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25502 # text mode, it properly converts lines to CR/LF. This bash problem 25503 # is reportedly fixed, but why not run on old versions too? 25504 sed '$q' "$ltmain" >> "$cfgfile" \ 25505 || (rm -f "$cfgfile"; exit 1) 25506 25507 if test x"$xsi_shell" = xyes; then 25508 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 25509func_dirname ()\ 25510{\ 25511\ case ${1} in\ 25512\ */*) func_dirname_result="${1%/*}${2}" ;;\ 25513\ * ) func_dirname_result="${3}" ;;\ 25514\ esac\ 25515} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 25516 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25518test 0 -eq $? || _lt_function_replace_fail=: 25519 25520 25521 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 25522func_basename ()\ 25523{\ 25524\ func_basename_result="${1##*/}"\ 25525} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 25526 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25528test 0 -eq $? || _lt_function_replace_fail=: 25529 25530 25531 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 25532func_dirname_and_basename ()\ 25533{\ 25534\ case ${1} in\ 25535\ */*) func_dirname_result="${1%/*}${2}" ;;\ 25536\ * ) func_dirname_result="${3}" ;;\ 25537\ esac\ 25538\ func_basename_result="${1##*/}"\ 25539} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 25540 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25541 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25542test 0 -eq $? || _lt_function_replace_fail=: 25543 25544 25545 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 25546func_stripname ()\ 25547{\ 25548\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 25549\ # positional parameters, so assign one to ordinary parameter first.\ 25550\ func_stripname_result=${3}\ 25551\ func_stripname_result=${func_stripname_result#"${1}"}\ 25552\ func_stripname_result=${func_stripname_result%"${2}"}\ 25553} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 25554 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25556test 0 -eq $? || _lt_function_replace_fail=: 25557 25558 25559 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 25560func_split_long_opt ()\ 25561{\ 25562\ func_split_long_opt_name=${1%%=*}\ 25563\ func_split_long_opt_arg=${1#*=}\ 25564} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 25565 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25567test 0 -eq $? || _lt_function_replace_fail=: 25568 25569 25570 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 25571func_split_short_opt ()\ 25572{\ 25573\ func_split_short_opt_arg=${1#??}\ 25574\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 25575} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 25576 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25578test 0 -eq $? || _lt_function_replace_fail=: 25579 25580 25581 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 25582func_lo2o ()\ 25583{\ 25584\ case ${1} in\ 25585\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 25586\ *) func_lo2o_result=${1} ;;\ 25587\ esac\ 25588} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 25589 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25591test 0 -eq $? || _lt_function_replace_fail=: 25592 25593 25594 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 25595func_xform ()\ 25596{\ 25597 func_xform_result=${1%.*}.lo\ 25598} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 25599 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25601test 0 -eq $? || _lt_function_replace_fail=: 25602 25603 25604 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 25605func_arith ()\ 25606{\ 25607 func_arith_result=$(( $* ))\ 25608} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 25609 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25610 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25611test 0 -eq $? || _lt_function_replace_fail=: 25612 25613 25614 sed -e '/^func_len ()$/,/^} # func_len /c\ 25615func_len ()\ 25616{\ 25617 func_len_result=${#1}\ 25618} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 25619 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25621test 0 -eq $? || _lt_function_replace_fail=: 25622 25623fi 25624 25625if test x"$lt_shell_append" = xyes; then 25626 sed -e '/^func_append ()$/,/^} # func_append /c\ 25627func_append ()\ 25628{\ 25629 eval "${1}+=\\${2}"\ 25630} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 25631 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25633test 0 -eq $? || _lt_function_replace_fail=: 25634 25635 25636 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 25637func_append_quoted ()\ 25638{\ 25639\ func_quote_for_eval "${2}"\ 25640\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 25641} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 25642 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25644test 0 -eq $? || _lt_function_replace_fail=: 25645 25646 25647 # Save a `func_append' function call where possible by direct use of '+=' 25648 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 25649 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25650 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25651 test 0 -eq $? || _lt_function_replace_fail=: 25652else 25653 # Save a `func_append' function call even when '+=' is not available 25654 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 25655 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25657 test 0 -eq $? || _lt_function_replace_fail=: 25658fi 25659 25660if test x"$_lt_function_replace_fail" = x":"; then 25661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 25662$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 25663fi 25664 25665 25666 mv -f "$cfgfile" "$ofile" || 25667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25668 chmod +x "$ofile" 25669 25670 25671 cat <<_LT_EOF >> "$ofile" 25672 25673# ### BEGIN LIBTOOL TAG CONFIG: CXX 25674 25675# The linker used to build libraries. 25676LD=$lt_LD_CXX 25677 25678# How to create reloadable object files. 25679reload_flag=$lt_reload_flag_CXX 25680reload_cmds=$lt_reload_cmds_CXX 25681 25682# Commands used to build an old-style archive. 25683old_archive_cmds=$lt_old_archive_cmds_CXX 25684 25685# A language specific compiler. 25686CC=$lt_compiler_CXX 25687 25688# Is the compiler the GNU compiler? 25689with_gcc=$GCC_CXX 25690 25691# Compiler flag to turn off builtin functions. 25692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 25693 25694# Additional compiler flags for building library objects. 25695pic_flag=$lt_lt_prog_compiler_pic_CXX 25696 25697# How to pass a linker flag through the compiler. 25698wl=$lt_lt_prog_compiler_wl_CXX 25699 25700# Compiler flag to prevent dynamic linking. 25701link_static_flag=$lt_lt_prog_compiler_static_CXX 25702 25703# Does compiler simultaneously support -c and -o options? 25704compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 25705 25706# Whether or not to add -lc for building shared libraries. 25707build_libtool_need_lc=$archive_cmds_need_lc_CXX 25708 25709# Whether or not to disallow shared libs when runtime libs are static. 25710allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 25711 25712# Compiler flag to allow reflexive dlopens. 25713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 25714 25715# Compiler flag to generate shared objects directly from archives. 25716whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 25717 25718# Whether the compiler copes with passing no objects directly. 25719compiler_needs_object=$lt_compiler_needs_object_CXX 25720 25721# Create an old-style archive from a shared archive. 25722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 25723 25724# Create a temporary old-style archive to link instead of a shared archive. 25725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 25726 25727# Commands used to build a shared archive. 25728archive_cmds=$lt_archive_cmds_CXX 25729archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 25730 25731# Commands used to build a loadable module if different from building 25732# a shared archive. 25733module_cmds=$lt_module_cmds_CXX 25734module_expsym_cmds=$lt_module_expsym_cmds_CXX 25735 25736# Whether we are building with GNU ld or not. 25737with_gnu_ld=$lt_with_gnu_ld_CXX 25738 25739# Flag that allows shared libraries with undefined symbols to be built. 25740allow_undefined_flag=$lt_allow_undefined_flag_CXX 25741 25742# Flag that enforces no undefined symbols. 25743no_undefined_flag=$lt_no_undefined_flag_CXX 25744 25745# Flag to hardcode \$libdir into a binary during linking. 25746# This must work even if \$libdir does not exist 25747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 25748 25749# If ld is used when linking, flag to hardcode \$libdir into a binary 25750# during linking. This must work even if \$libdir does not exist. 25751hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 25752 25753# Whether we need a single "-rpath" flag with a separated argument. 25754hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 25755 25756# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25757# DIR into the resulting binary. 25758hardcode_direct=$hardcode_direct_CXX 25759 25760# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25761# DIR into the resulting binary and the resulting library dependency is 25762# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 25763# library is relocated. 25764hardcode_direct_absolute=$hardcode_direct_absolute_CXX 25765 25766# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25767# into the resulting binary. 25768hardcode_minus_L=$hardcode_minus_L_CXX 25769 25770# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25771# into the resulting binary. 25772hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 25773 25774# Set to "yes" if building a shared library automatically hardcodes DIR 25775# into the library and all subsequent libraries and executables linked 25776# against it. 25777hardcode_automatic=$hardcode_automatic_CXX 25778 25779# Set to yes if linker adds runtime paths of dependent libraries 25780# to runtime path list. 25781inherit_rpath=$inherit_rpath_CXX 25782 25783# Whether libtool must link a program against all its dependency libraries. 25784link_all_deplibs=$link_all_deplibs_CXX 25785 25786# Set to "yes" if exported symbols are required. 25787always_export_symbols=$always_export_symbols_CXX 25788 25789# The commands to list exported symbols. 25790export_symbols_cmds=$lt_export_symbols_cmds_CXX 25791 25792# Symbols that should not be listed in the preloaded symbols. 25793exclude_expsyms=$lt_exclude_expsyms_CXX 25794 25795# Symbols that must always be exported. 25796include_expsyms=$lt_include_expsyms_CXX 25797 25798# Commands necessary for linking programs (against libraries) with templates. 25799prelink_cmds=$lt_prelink_cmds_CXX 25800 25801# Commands necessary for finishing linking programs. 25802postlink_cmds=$lt_postlink_cmds_CXX 25803 25804# Specify filename containing input files. 25805file_list_spec=$lt_file_list_spec_CXX 25806 25807# How to hardcode a shared library path into an executable. 25808hardcode_action=$hardcode_action_CXX 25809 25810# The directories searched by this compiler when creating a shared library. 25811compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 25812 25813# Dependencies to place before and after the objects being linked to 25814# create a shared library. 25815predep_objects=$lt_predep_objects_CXX 25816postdep_objects=$lt_postdep_objects_CXX 25817predeps=$lt_predeps_CXX 25818postdeps=$lt_postdeps_CXX 25819 25820# The library search path used internally by the compiler when linking 25821# a shared library. 25822compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 25823 25824# ### END LIBTOOL TAG CONFIG: CXX 25825_LT_EOF 25826 25827 ;; 25828 25829 esac 25830done # for ac_tag 25831 25832 25833as_fn_exit 0 25834_ACEOF 25835ac_clean_files=$ac_clean_files_save 25836 25837test $ac_write_fail = 0 || 25838 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25839 25840 25841# configure is writing to config.log, and then calls config.status. 25842# config.status does its own redirection, appending to config.log. 25843# Unfortunately, on DOS this fails, as config.log is still kept open 25844# by configure, so config.status won't be able to write to it; its 25845# output is simply discarded. So we exec the FD to /dev/null, 25846# effectively closing config.log, so it can be properly (re)opened and 25847# appended to by config.status. When coming back to configure, we 25848# need to make the FD available again. 25849if test "$no_create" != yes; then 25850 ac_cs_success=: 25851 ac_config_status_args= 25852 test "$silent" = yes && 25853 ac_config_status_args="$ac_config_status_args --quiet" 25854 exec 5>/dev/null 25855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25856 exec 5>>config.log 25857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25858 # would make configure fail if this is the last instruction. 25859 $ac_cs_success || as_fn_exit 1 25860fi 25861if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25863$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25864fi 25865 25866 25867 25868echo "" 25869echo "Building poppler with support for:" 25870echo " font configuration: $with_font_configuration" 25871echo " splash output: $enable_splash_output" 25872echo " cairo output: $enable_cairo_output" 25873echo " abiword output: $enable_abiword_output" 25874echo " qt wrapper: $enable_poppler_qt" 25875echo " qt4 wrapper: $enable_poppler_qt4" 25876echo " glib wrapper: $enable_poppler_glib" 25877echo " use GDK: $enable_gdk" 25878echo " introspection: $found_introspection" 25879echo " cpp wrapper: $enable_poppler_cpp" 25880echo " use gtk-doc: $enable_gtk_doc" 25881echo " use libjpeg: $enable_libjpeg" 25882echo " use libpng: $enable_libpng" 25883echo " use zlib: $enable_zlib" 25884echo " use libcurl: $enable_libcurl" 25885echo " use libopenjpeg: $enable_libopenjpeg" 25886echo " use cms: $enable_cms" 25887echo " command line utils: $enable_utils" 25888echo "" 25889 25890if test x$enable_splash_output = xno -a x$enable_cairo_output = xno; then 25891 echo " Warning: There is no rendering backend enabled" 25892fi 25893 25894if test x$enable_single_precision = xyes -a x$enable_fixedpoint = xyes; then 25895 echo " Warning: Single precision and fixed point options should not be enabled at the same time" 25896fi 25897 25898if test x$enable_libjpeg != xyes; then 25899 echo " Warning: Using libjpeg is recommended" 25900fi 25901 25902if test x$enable_zlib != xno; then 25903 echo " Warning: Using zlib is not totally safe" 25904fi 25905 25906if test x$enable_libopenjpeg != xyes; then 25907 echo " Warning: Using libopenjpeg is recommended" 25908fi 25909