1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xcb-util-xrm 1.3. 4# 5# Report bugs to <xcb@lists.freedesktop.org>. 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: xcb@lists.freedesktop.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='xcb-util-xrm' 592PACKAGE_TARNAME='xcb-util-xrm' 593PACKAGE_VERSION='1.3' 594PACKAGE_STRING='xcb-util-xrm 1.3' 595PACKAGE_BUGREPORT='xcb@lists.freedesktop.org' 596PACKAGE_URL='' 597 598ac_unique_file="Makefile.am" 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 639XLIB_LIBS 640XLIB_CFLAGS 641XCB_AUX_LIBS 642XCB_AUX_CFLAGS 643HAVE_DOXYGEN_FALSE 644HAVE_DOXYGEN_TRUE 645HAVE_DOT_FALSE 646HAVE_DOT_TRUE 647HAVE_DOT 648DOT 649DOXYGEN 650ENABLE_DEVEL_DOCS_FALSE 651ENABLE_DEVEL_DOCS_TRUE 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666INSTALL_CMD 667CHANGELOG_CMD 668STRICT_CFLAGS 669CWARNFLAGS 670BASE_CFLAGS 671XCB_LIBS 672XCB_CFLAGS 673PKG_CONFIG_LIBDIR 674PKG_CONFIG_PATH 675PKG_CONFIG 676pkgconfigdir 677xcbincludedir 678LT_SYS_LIBRARY_PATH 679OTOOL64 680OTOOL 681LIPO 682NMEDIT 683DSYMUTIL 684MANIFEST_TOOL 685RANLIB 686ac_ct_AR 687AR 688DLLTOOL 689OBJDUMP 690LN_S 691NM 692ac_ct_DUMPBIN 693DUMPBIN 694LD 695FGREP 696SED 697host_os 698host_vendor 699host_cpu 700host 701build_os 702build_vendor 703build_cpu 704build 705LIBTOOL 706M4 707MAINT 708MAINTAINER_MODE_FALSE 709MAINTAINER_MODE_TRUE 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714am__fastdepCC_FALSE 715am__fastdepCC_TRUE 716CCDEPMODE 717am__nodep 718AMDEPBACKSLASH 719AMDEP_FALSE 720AMDEP_TRUE 721am__quote 722am__include 723DEPDIR 724am__untar 725am__tar 726AMTAR 727am__leading_dot 728SET_MAKE 729AWK 730mkdir_p 731MKDIR_P 732INSTALL_STRIP_PROGRAM 733STRIP 734install_sh 735MAKEINFO 736AUTOHEADER 737AUTOMAKE 738AUTOCONF 739ACLOCAL 740VERSION 741PACKAGE 742CYGPATH_W 743am__isrc 744INSTALL_DATA 745INSTALL_SCRIPT 746INSTALL_PROGRAM 747EGREP 748GREP 749CPP 750OBJEXT 751EXEEXT 752ac_ct_CC 753CPPFLAGS 754LDFLAGS 755CFLAGS 756CC 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776localstatedir 777sharedstatedir 778sysconfdir 779datadir 780datarootdir 781libexecdir 782sbindir 783bindir 784program_transform_name 785prefix 786exec_prefix 787PACKAGE_URL 788PACKAGE_BUGREPORT 789PACKAGE_STRING 790PACKAGE_VERSION 791PACKAGE_TARNAME 792PACKAGE_NAME 793PATH_SEPARATOR 794SHELL' 795ac_subst_files='' 796ac_user_opts=' 797enable_option_checking 798enable_dependency_tracking 799enable_silent_rules 800enable_maintainer_mode 801enable_shared 802enable_static 803with_pic 804enable_fast_install 805with_aix_soname 806with_gnu_ld 807with_sysroot 808enable_libtool_lock 809enable_selective_werror 810enable_strict_compilation 811enable_devel_docs 812with_doxygen 813' 814 ac_precious_vars='build_alias 815host_alias 816target_alias 817CC 818CFLAGS 819LDFLAGS 820LIBS 821CPPFLAGS 822CPP 823LT_SYS_LIBRARY_PATH 824PKG_CONFIG 825PKG_CONFIG_PATH 826PKG_CONFIG_LIBDIR 827XCB_CFLAGS 828XCB_LIBS 829DOXYGEN 830DOT 831XCB_AUX_CFLAGS 832XCB_AUX_LIBS 833XLIB_CFLAGS 834XLIB_LIBS' 835 836 837# Initialize some variables set by options. 838ac_init_help= 839ac_init_version=false 840ac_unrecognized_opts= 841ac_unrecognized_sep= 842# The variables have the same names as the options, with 843# dashes changed to underlines. 844cache_file=/dev/null 845exec_prefix=NONE 846no_create= 847no_recursion= 848prefix=NONE 849program_prefix=NONE 850program_suffix=NONE 851program_transform_name=s,x,x, 852silent= 853site= 854srcdir= 855verbose= 856x_includes=NONE 857x_libraries=NONE 858 859# Installation directory options. 860# These are left unexpanded so users can "make install exec_prefix=/foo" 861# and all the variables that are supposed to be based on exec_prefix 862# by default will actually change. 863# Use braces instead of parens because sh, perl, etc. also accept them. 864# (The list follows the same order as the GNU Coding Standards.) 865bindir='${exec_prefix}/bin' 866sbindir='${exec_prefix}/sbin' 867libexecdir='${exec_prefix}/libexec' 868datarootdir='${prefix}/share' 869datadir='${datarootdir}' 870sysconfdir='${prefix}/etc' 871sharedstatedir='${prefix}/com' 872localstatedir='${prefix}/var' 873includedir='${prefix}/include' 874oldincludedir='/usr/include' 875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 876infodir='${datarootdir}/info' 877htmldir='${docdir}' 878dvidir='${docdir}' 879pdfdir='${docdir}' 880psdir='${docdir}' 881libdir='${exec_prefix}/lib' 882localedir='${datarootdir}/locale' 883mandir='${datarootdir}/man' 884 885ac_prev= 886ac_dashdash= 887for ac_option 888do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1126 ac_prev=sbindir ;; 1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1128 | --sbi=* | --sb=*) 1129 sbindir=$ac_optarg ;; 1130 1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1133 | --sharedst | --shareds | --shared | --share | --shar \ 1134 | --sha | --sh) 1135 ac_prev=sharedstatedir ;; 1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1139 | --sha=* | --sh=*) 1140 sharedstatedir=$ac_optarg ;; 1141 1142 -site | --site | --sit) 1143 ac_prev=site ;; 1144 -site=* | --site=* | --sit=*) 1145 site=$ac_optarg ;; 1146 1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1148 ac_prev=srcdir ;; 1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1150 srcdir=$ac_optarg ;; 1151 1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1153 | --syscon | --sysco | --sysc | --sys | --sy) 1154 ac_prev=sysconfdir ;; 1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1157 sysconfdir=$ac_optarg ;; 1158 1159 -target | --target | --targe | --targ | --tar | --ta | --t) 1160 ac_prev=target_alias ;; 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1162 target_alias=$ac_optarg ;; 1163 1164 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1165 verbose=yes ;; 1166 1167 -version | --version | --versio | --versi | --vers | -V) 1168 ac_init_version=: ;; 1169 1170 -with-* | --with-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=\$ac_optarg ;; 1185 1186 -without-* | --without-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=no ;; 1201 1202 --x) 1203 # Obsolete; use --with-x. 1204 with_x=yes ;; 1205 1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1207 | --x-incl | --x-inc | --x-in | --x-i) 1208 ac_prev=x_includes ;; 1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1211 x_includes=$ac_optarg ;; 1212 1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1215 ac_prev=x_libraries ;; 1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1218 x_libraries=$ac_optarg ;; 1219 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1221Try \`$0 --help' for more information" 1222 ;; 1223 1224 *=*) 1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1226 # Reject names that are not valid shell variable names. 1227 case $ac_envvar in #( 1228 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1230 esac 1231 eval $ac_envvar=\$ac_optarg 1232 export $ac_envvar ;; 1233 1234 *) 1235 # FIXME: should be removed in autoconf 3.0. 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1240 ;; 1241 1242 esac 1243done 1244 1245if test -n "$ac_prev"; then 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1247 as_fn_error $? "missing argument to $ac_option" 1248fi 1249 1250if test -n "$ac_unrecognized_opts"; then 1251 case $enable_option_checking in 1252 no) ;; 1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1255 esac 1256fi 1257 1258# Check all directory arguments for consistency. 1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1260 datadir sysconfdir sharedstatedir localstatedir includedir \ 1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1262 libdir localedir mandir 1263do 1264 eval ac_val=\$$ac_var 1265 # Remove trailing slashes. 1266 case $ac_val in 1267 */ ) 1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1269 eval $ac_var=\$ac_val;; 1270 esac 1271 # Be sure to have absolute directory names. 1272 case $ac_val in 1273 [\\/$]* | ?:[\\/]* ) continue;; 1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1275 esac 1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1277done 1278 1279# There might be people who depend on the old broken behavior: `$host' 1280# used to hold the argument of --host etc. 1281# FIXME: To remove some day. 1282build=$build_alias 1283host=$host_alias 1284target=$target_alias 1285 1286# FIXME: To remove some day. 1287if test "x$host_alias" != x; then 1288 if test "x$build_alias" = x; then 1289 cross_compiling=maybe 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293fi 1294 1295ac_tool_prefix= 1296test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298test "$silent" = yes && exec 6>/dev/null 1299 1300 1301ac_pwd=`pwd` && test -n "$ac_pwd" && 1302ac_ls_di=`ls -di .` && 1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 as_fn_error $? "working directory cannot be determined" 1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1306 as_fn_error $? "pwd does not report name of working directory" 1307 1308 1309# Find the source files, if location was not specified. 1310if test -z "$srcdir"; then 1311 ac_srcdir_defaulted=yes 1312 # Try the directory containing this script, then the parent directory. 1313 ac_confdir=`$as_dirname -- "$as_myself" || 1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1315 X"$as_myself" : 'X\(//\)[^/]' \| \ 1316 X"$as_myself" : 'X\(//\)$' \| \ 1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1318$as_echo X"$as_myself" | 1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)[^/].*/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\).*/{ 1332 s//\1/ 1333 q 1334 } 1335 s/.*/./; q'` 1336 srcdir=$ac_confdir 1337 if test ! -r "$srcdir/$ac_unique_file"; then 1338 srcdir=.. 1339 fi 1340else 1341 ac_srcdir_defaulted=no 1342fi 1343if test ! -r "$srcdir/$ac_unique_file"; then 1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1346fi 1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1348ac_abs_confdir=`( 1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1350 pwd)` 1351# When building in place, set srcdir=. 1352if test "$ac_abs_confdir" = "$ac_pwd"; then 1353 srcdir=. 1354fi 1355# Remove unnecessary trailing slashes from srcdir. 1356# Double slashes in file names in object file debugging info 1357# mess up M-x gdb in Emacs. 1358case $srcdir in 1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1360esac 1361for ac_var in $ac_precious_vars; do 1362 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_env_${ac_var}_value=\$${ac_var} 1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1366done 1367 1368# 1369# Report the --help message. 1370# 1371if test "$ac_init_help" = "long"; then 1372 # Omit some internal or obsolete options to make the list less imposing. 1373 # This message is too long to be a string in the A/UX 3.1 sh. 1374 cat <<_ACEOF 1375\`configure' configures xcb-util-xrm 1.3 to adapt to many kinds of systems. 1376 1377Usage: $0 [OPTION]... [VAR=VALUE]... 1378 1379To assign environment variables (e.g., CC, CFLAGS...), specify them as 1380VAR=VALUE. See below for descriptions of some of the useful variables. 1381 1382Defaults for the options are specified in brackets. 1383 1384Configuration: 1385 -h, --help display this help and exit 1386 --help=short display options specific to this package 1387 --help=recursive display the short help of all the included packages 1388 -V, --version display version information and exit 1389 -q, --quiet, --silent do not print \`checking ...' messages 1390 --cache-file=FILE cache test results in FILE [disabled] 1391 -C, --config-cache alias for \`--cache-file=config.cache' 1392 -n, --no-create do not create output files 1393 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1394 1395Installation directories: 1396 --prefix=PREFIX install architecture-independent files in PREFIX 1397 [$ac_default_prefix] 1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1399 [PREFIX] 1400 1401By default, \`make install' will install all the files in 1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1403an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1404for instance \`--prefix=\$HOME'. 1405 1406For better control, use the options below. 1407 1408Fine tuning of the installation directories: 1409 --bindir=DIR user executables [EPREFIX/bin] 1410 --sbindir=DIR system admin executables [EPREFIX/sbin] 1411 --libexecdir=DIR program executables [EPREFIX/libexec] 1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1415 --libdir=DIR object code libraries [EPREFIX/lib] 1416 --includedir=DIR C header files [PREFIX/include] 1417 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1420 --infodir=DIR info documentation [DATAROOTDIR/info] 1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1422 --mandir=DIR man documentation [DATAROOTDIR/man] 1423 --docdir=DIR documentation root [DATAROOTDIR/doc/xcb-util-xrm] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428_ACEOF 1429 1430 cat <<\_ACEOF 1431 1432Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of xcb-util-xrm 1.3:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-dependency-tracking 1454 do not reject slow dependency extractors 1455 --disable-dependency-tracking 1456 speeds up one-time build 1457 --enable-silent-rules less verbose build output (undo: "make V=1") 1458 --disable-silent-rules verbose build output (undo: "make V=0") 1459 --enable-maintainer-mode 1460 enable make rules and dependencies not useful (and 1461 sometimes confusing) to the casual installer 1462 --enable-shared[=PKGS] build shared libraries [default=yes] 1463 --enable-static[=PKGS] build static libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --disable-selective-werror 1468 Turn off selective compiler errors. (default: 1469 enabled) 1470 --enable-strict-compilation 1471 Enable all warnings from compiler and make them 1472 errors (default: disabled) 1473 --enable-devel-docs Enable building the developer documentation 1474 (default: yes) 1475 1476Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1480 both] 1481 --with-aix-soname=aix|svr4|both 1482 shared library versioning (aka "SONAME") variant to 1483 provide on AIX, [default=aix]. 1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1485 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1486 compiler's sysroot if not specified). 1487 --with-doxygen Use doxygen to regenerate documentation (default: 1488 auto) 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 LT_SYS_LIBRARY_PATH 1500 User-defined run-time library search path. 1501 PKG_CONFIG path to pkg-config utility 1502 PKG_CONFIG_PATH 1503 directories to add to pkg-config's search path 1504 PKG_CONFIG_LIBDIR 1505 path overriding pkg-config's built-in search path 1506 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config 1507 XCB_LIBS linker flags for XCB, overriding pkg-config 1508 DOXYGEN Path to doxygen command 1509 DOT Path to the dot graphics utility 1510 XCB_AUX_CFLAGS 1511 C compiler flags for XCB_AUX, overriding pkg-config 1512 XCB_AUX_LIBS 1513 linker flags for XCB_AUX, overriding pkg-config 1514 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 1515 XLIB_LIBS linker flags for XLIB, overriding pkg-config 1516 1517Use these variables to override the choices made by `configure' or to help 1518it to find libraries and programs with nonstandard names/locations. 1519 1520Report bugs to <xcb@lists.freedesktop.org>. 1521_ACEOF 1522ac_status=$? 1523fi 1524 1525if test "$ac_init_help" = "recursive"; then 1526 # If there are subdirs, report their specific --help. 1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1528 test -d "$ac_dir" || 1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1530 continue 1531 ac_builddir=. 1532 1533case "$ac_dir" in 1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535*) 1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1537 # A ".." for each directory in $ac_dir_suffix. 1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1539 case $ac_top_builddir_sub in 1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1542 esac ;; 1543esac 1544ac_abs_top_builddir=$ac_pwd 1545ac_abs_builddir=$ac_pwd$ac_dir_suffix 1546# for backward compatibility: 1547ac_top_builddir=$ac_top_build_prefix 1548 1549case $srcdir in 1550 .) # We are building in place. 1551 ac_srcdir=. 1552 ac_top_srcdir=$ac_top_builddir_sub 1553 ac_abs_top_srcdir=$ac_pwd ;; 1554 [\\/]* | ?:[\\/]* ) # Absolute name. 1555 ac_srcdir=$srcdir$ac_dir_suffix; 1556 ac_top_srcdir=$srcdir 1557 ac_abs_top_srcdir=$srcdir ;; 1558 *) # Relative name. 1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1560 ac_top_srcdir=$ac_top_build_prefix$srcdir 1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1562esac 1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1564 1565 cd "$ac_dir" || { ac_status=$?; continue; } 1566 # Check for guested configure. 1567 if test -f "$ac_srcdir/configure.gnu"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1570 elif test -f "$ac_srcdir/configure"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure" --help=recursive 1573 else 1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1575 fi || ac_status=$? 1576 cd "$ac_pwd" || { ac_status=$?; break; } 1577 done 1578fi 1579 1580test -n "$ac_init_help" && exit $ac_status 1581if $ac_init_version; then 1582 cat <<\_ACEOF 1583xcb-util-xrm configure 1.3 1584generated by GNU Autoconf 2.69 1585 1586Copyright (C) 2012 Free Software Foundation, Inc. 1587This configure script is free software; the Free Software Foundation 1588gives unlimited permission to copy, distribute and modify it. 1589_ACEOF 1590 exit 1591fi 1592 1593## ------------------------ ## 1594## Autoconf initialization. ## 1595## ------------------------ ## 1596 1597# ac_fn_c_try_compile LINENO 1598# -------------------------- 1599# Try to compile conftest.$ac_ext, and return whether this succeeded. 1600ac_fn_c_try_compile () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 rm -f conftest.$ac_objext 1604 if { { ac_try="$ac_compile" 1605case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608esac 1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610$as_echo "$ac_try_echo"; } >&5 1611 (eval "$ac_compile") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { 1620 test -z "$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 } && test -s conftest.$ac_objext; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 as_fn_set_status $ac_retval 1632 1633} # ac_fn_c_try_compile 1634 1635# ac_fn_c_try_cpp LINENO 1636# ---------------------- 1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1638ac_fn_c_try_cpp () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 if { { ac_try="$ac_cpp conftest.$ac_ext" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } > conftest.i && { 1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 }; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_cpp 1671 1672# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1673# ------------------------------------------------------- 1674# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1675# the include files in INCLUDES and setting the cache variable VAR 1676# accordingly. 1677ac_fn_c_check_header_mongrel () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 if eval \${$3+:} false; then : 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1682$as_echo_n "checking for $2... " >&6; } 1683if eval \${$3+:} false; then : 1684 $as_echo_n "(cached) " >&6 1685fi 1686eval ac_res=\$$3 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688$as_echo "$ac_res" >&6; } 1689else 1690 # Is the header compilable? 1691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1692$as_echo_n "checking $2 usability... " >&6; } 1693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1694/* end confdefs.h. */ 1695$4 1696#include <$2> 1697_ACEOF 1698if ac_fn_c_try_compile "$LINENO"; then : 1699 ac_header_compiler=yes 1700else 1701 ac_header_compiler=no 1702fi 1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1705$as_echo "$ac_header_compiler" >&6; } 1706 1707# Is the header present? 1708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1709$as_echo_n "checking $2 presence... " >&6; } 1710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712#include <$2> 1713_ACEOF 1714if ac_fn_c_try_cpp "$LINENO"; then : 1715 ac_header_preproc=yes 1716else 1717 ac_header_preproc=no 1718fi 1719rm -f conftest.err conftest.i conftest.$ac_ext 1720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1721$as_echo "$ac_header_preproc" >&6; } 1722 1723# So? What about this header? 1724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1725 yes:no: ) 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1727$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1729$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1730 ;; 1731 no:yes:* ) 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1733$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1735$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1737$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1739$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1742( $as_echo "## ---------------------------------------- ## 1743## Report this to xcb@lists.freedesktop.org ## 1744## ---------------------------------------- ##" 1745 ) | sed "s/^/$as_me: WARNING: /" >&2 1746 ;; 1747esac 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749$as_echo_n "checking for $2... " >&6; } 1750if eval \${$3+:} false; then : 1751 $as_echo_n "(cached) " >&6 1752else 1753 eval "$3=\$ac_header_compiler" 1754fi 1755eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757$as_echo "$ac_res" >&6; } 1758fi 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 1761} # ac_fn_c_check_header_mongrel 1762 1763# ac_fn_c_try_run LINENO 1764# ---------------------- 1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1766# that executables *can* be run. 1767ac_fn_c_try_run () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 if { { ac_try="$ac_link" 1771case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_link") 2>&5 1778 ac_status=$? 1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1781 { { case "(($ac_try" in 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1783 *) ac_try_echo=$ac_try;; 1784esac 1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1786$as_echo "$ac_try_echo"; } >&5 1787 (eval "$ac_try") 2>&5 1788 ac_status=$? 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; }; }; then : 1791 ac_retval=0 1792else 1793 $as_echo "$as_me: program exited with status $ac_status" >&5 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=$ac_status 1798fi 1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_run 1804 1805# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1806# ------------------------------------------------------- 1807# Tests whether HEADER exists and can be compiled using the include files in 1808# INCLUDES, setting the cache variable VAR accordingly. 1809ac_fn_c_check_header_compile () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1813$as_echo_n "checking for $2... " >&6; } 1814if eval \${$3+:} false; then : 1815 $as_echo_n "(cached) " >&6 1816else 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819$4 1820#include <$2> 1821_ACEOF 1822if ac_fn_c_try_compile "$LINENO"; then : 1823 eval "$3=yes" 1824else 1825 eval "$3=no" 1826fi 1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_header_compile 1835 1836# ac_fn_c_try_link LINENO 1837# ----------------------- 1838# Try to link conftest.$ac_ext, and return whether this succeeded. 1839ac_fn_c_try_link () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 rm -f conftest.$ac_objext conftest$ac_exeext 1843 if { { ac_try="$ac_link" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_link") 2>conftest.err 1851 ac_status=$? 1852 if test -s conftest.err; then 1853 grep -v '^ *+' conftest.err >conftest.er1 1854 cat conftest.er1 >&5 1855 mv -f conftest.er1 conftest.err 1856 fi 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { 1859 test -z "$ac_c_werror_flag" || 1860 test ! -s conftest.err 1861 } && test -s conftest$ac_exeext && { 1862 test "$cross_compiling" = yes || 1863 test -x conftest$ac_exeext 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1874 # interfere with the next link command; also delete a directory that is 1875 # left behind by Apple's compiler. We do this before executing the actions. 1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 as_fn_set_status $ac_retval 1879 1880} # ac_fn_c_try_link 1881 1882# ac_fn_c_check_func LINENO FUNC VAR 1883# ---------------------------------- 1884# Tests whether FUNC exists, setting the cache variable VAR accordingly 1885ac_fn_c_check_func () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889$as_echo_n "checking for $2... " >&6; } 1890if eval \${$3+:} false; then : 1891 $as_echo_n "(cached) " >&6 1892else 1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894/* end confdefs.h. */ 1895/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1897#define $2 innocuous_$2 1898 1899/* System header to define __stub macros and hopefully few prototypes, 1900 which can conflict with char $2 (); below. 1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1902 <limits.h> exists even on freestanding compilers. */ 1903 1904#ifdef __STDC__ 1905# include <limits.h> 1906#else 1907# include <assert.h> 1908#endif 1909 1910#undef $2 1911 1912/* Override any GCC internal prototype to avoid an error. 1913 Use char because int might match the return type of a GCC 1914 builtin and then its argument prototype would still apply. */ 1915#ifdef __cplusplus 1916extern "C" 1917#endif 1918char $2 (); 1919/* The GNU C library defines this for functions which it implements 1920 to always fail with ENOSYS. Some functions are actually named 1921 something starting with __ and the normal name is an alias. */ 1922#if defined __stub_$2 || defined __stub___$2 1923choke me 1924#endif 1925 1926int 1927main () 1928{ 1929return $2 (); 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934if ac_fn_c_try_link "$LINENO"; then : 1935 eval "$3=yes" 1936else 1937 eval "$3=no" 1938fi 1939rm -f core conftest.err conftest.$ac_objext \ 1940 conftest$ac_exeext conftest.$ac_ext 1941fi 1942eval ac_res=\$$3 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1944$as_echo "$ac_res" >&6; } 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 1947} # ac_fn_c_check_func 1948 1949# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1950# --------------------------------------------- 1951# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1952# accordingly. 1953ac_fn_c_check_decl () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 as_decl_name=`echo $2|sed 's/ *(.*//'` 1957 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1959$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1960if eval \${$3+:} false; then : 1961 $as_echo_n "(cached) " >&6 1962else 1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964/* end confdefs.h. */ 1965$4 1966int 1967main () 1968{ 1969#ifndef $as_decl_name 1970#ifdef __cplusplus 1971 (void) $as_decl_use; 1972#else 1973 (void) $as_decl_name; 1974#endif 1975#endif 1976 1977 ; 1978 return 0; 1979} 1980_ACEOF 1981if ac_fn_c_try_compile "$LINENO"; then : 1982 eval "$3=yes" 1983else 1984 eval "$3=no" 1985fi 1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1987fi 1988eval ac_res=\$$3 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1990$as_echo "$ac_res" >&6; } 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 1993} # ac_fn_c_check_decl 1994cat >config.log <<_ACEOF 1995This file contains any messages produced by compilers while 1996running configure, to aid debugging if configure makes a mistake. 1997 1998It was created by xcb-util-xrm $as_me 1.3, which was 1999generated by GNU Autoconf 2.69. Invocation command line was 2000 2001 $ $0 $@ 2002 2003_ACEOF 2004exec 5>>config.log 2005{ 2006cat <<_ASUNAME 2007## --------- ## 2008## Platform. ## 2009## --------- ## 2010 2011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2012uname -m = `(uname -m) 2>/dev/null || echo unknown` 2013uname -r = `(uname -r) 2>/dev/null || echo unknown` 2014uname -s = `(uname -s) 2>/dev/null || echo unknown` 2015uname -v = `(uname -v) 2>/dev/null || echo unknown` 2016 2017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2019 2020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2023/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2027 2028_ASUNAME 2029 2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031for as_dir in $PATH 2032do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 $as_echo "PATH: $as_dir" 2036 done 2037IFS=$as_save_IFS 2038 2039} >&5 2040 2041cat >&5 <<_ACEOF 2042 2043 2044## ----------- ## 2045## Core tests. ## 2046## ----------- ## 2047 2048_ACEOF 2049 2050 2051# Keep a trace of the command line. 2052# Strip out --no-create and --no-recursion so they do not pile up. 2053# Strip out --silent because we don't want to record it for future runs. 2054# Also quote any args containing shell meta-characters. 2055# Make two passes to allow for proper duplicate-argument suppression. 2056ac_configure_args= 2057ac_configure_args0= 2058ac_configure_args1= 2059ac_must_keep_next=false 2060for ac_pass in 1 2 2061do 2062 for ac_arg 2063 do 2064 case $ac_arg in 2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2067 | -silent | --silent | --silen | --sile | --sil) 2068 continue ;; 2069 *\'*) 2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2071 esac 2072 case $ac_pass in 2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2074 2) 2075 as_fn_append ac_configure_args1 " '$ac_arg'" 2076 if test $ac_must_keep_next = true; then 2077 ac_must_keep_next=false # Got value, back to normal. 2078 else 2079 case $ac_arg in 2080 *=* | --config-cache | -C | -disable-* | --disable-* \ 2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2083 | -with-* | --with-* | -without-* | --without-* | --x) 2084 case "$ac_configure_args0 " in 2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2086 esac 2087 ;; 2088 -* ) ac_must_keep_next=true ;; 2089 esac 2090 fi 2091 as_fn_append ac_configure_args " '$ac_arg'" 2092 ;; 2093 esac 2094 done 2095done 2096{ ac_configure_args0=; unset ac_configure_args0;} 2097{ ac_configure_args1=; unset ac_configure_args1;} 2098 2099# When interrupted or exit'd, cleanup temporary files, and complete 2100# config.log. We remove comments because anyway the quotes in there 2101# would cause problems or look ugly. 2102# WARNING: Use '\'' to represent an apostrophe within the trap. 2103# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2104trap 'exit_status=$? 2105 # Save into config.log some information that might help in debugging. 2106 { 2107 echo 2108 2109 $as_echo "## ---------------- ## 2110## Cache variables. ## 2111## ---------------- ##" 2112 echo 2113 # The following way of writing the cache mishandles newlines in values, 2114( 2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2116 eval ac_val=\$$ac_var 2117 case $ac_val in #( 2118 *${as_nl}*) 2119 case $ac_var in #( 2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2121$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2122 esac 2123 case $ac_var in #( 2124 _ | IFS | as_nl) ;; #( 2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2126 *) { eval $ac_var=; unset $ac_var;} ;; 2127 esac ;; 2128 esac 2129 done 2130 (set) 2>&1 | 2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2132 *${as_nl}ac_space=\ *) 2133 sed -n \ 2134 "s/'\''/'\''\\\\'\'''\''/g; 2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2136 ;; #( 2137 *) 2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2139 ;; 2140 esac | 2141 sort 2142) 2143 echo 2144 2145 $as_echo "## ----------------- ## 2146## Output variables. ## 2147## ----------------- ##" 2148 echo 2149 for ac_var in $ac_subst_vars 2150 do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in 2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2154 esac 2155 $as_echo "$ac_var='\''$ac_val'\''" 2156 done | sort 2157 echo 2158 2159 if test -n "$ac_subst_files"; then 2160 $as_echo "## ------------------- ## 2161## File substitutions. ## 2162## ------------------- ##" 2163 echo 2164 for ac_var in $ac_subst_files 2165 do 2166 eval ac_val=\$$ac_var 2167 case $ac_val in 2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2169 esac 2170 $as_echo "$ac_var='\''$ac_val'\''" 2171 done | sort 2172 echo 2173 fi 2174 2175 if test -s confdefs.h; then 2176 $as_echo "## ----------- ## 2177## confdefs.h. ## 2178## ----------- ##" 2179 echo 2180 cat confdefs.h 2181 echo 2182 fi 2183 test "$ac_signal" != 0 && 2184 $as_echo "$as_me: caught signal $ac_signal" 2185 $as_echo "$as_me: exit $exit_status" 2186 } >&5 2187 rm -f core *.core core.conftest.* && 2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2189 exit $exit_status 2190' 0 2191for ac_signal in 1 2 13 15; do 2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2193done 2194ac_signal=0 2195 2196# confdefs.h avoids OS command line length limits that DEFS can exceed. 2197rm -f -r conftest* confdefs.h 2198 2199$as_echo "/* confdefs.h */" > confdefs.h 2200 2201# Predefined preprocessor variables. 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_NAME "$PACKAGE_NAME" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_VERSION "$PACKAGE_VERSION" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_STRING "$PACKAGE_STRING" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_URL "$PACKAGE_URL" 2225_ACEOF 2226 2227 2228# Let the site file select an alternate cache file if it wants to. 2229# Prefer an explicitly selected file to automatically selected ones. 2230ac_site_file1=NONE 2231ac_site_file2=NONE 2232if test -n "$CONFIG_SITE"; then 2233 # We do not want a PATH search for config.site. 2234 case $CONFIG_SITE in #(( 2235 -*) ac_site_file1=./$CONFIG_SITE;; 2236 */*) ac_site_file1=$CONFIG_SITE;; 2237 *) ac_site_file1=./$CONFIG_SITE;; 2238 esac 2239elif test "x$prefix" != xNONE; then 2240 ac_site_file1=$prefix/share/config.site 2241 ac_site_file2=$prefix/etc/config.site 2242else 2243 ac_site_file1=$ac_default_prefix/share/config.site 2244 ac_site_file2=$ac_default_prefix/etc/config.site 2245fi 2246for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2247do 2248 test "x$ac_site_file" = xNONE && continue 2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2251$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2252 sed 's/^/| /' "$ac_site_file" >&5 2253 . "$ac_site_file" \ 2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2256as_fn_error $? "failed to load site script $ac_site_file 2257See \`config.log' for more details" "$LINENO" 5; } 2258 fi 2259done 2260 2261if test -r "$cache_file"; then 2262 # Some versions of bash will fail to source /dev/null (special files 2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2266$as_echo "$as_me: loading cache $cache_file" >&6;} 2267 case $cache_file in 2268 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2269 *) . "./$cache_file";; 2270 esac 2271 fi 2272else 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2274$as_echo "$as_me: creating cache $cache_file" >&6;} 2275 >$cache_file 2276fi 2277 2278# Check that the precious variables saved in the cache have kept the same 2279# value. 2280ac_cache_corrupted=false 2281for ac_var in $ac_precious_vars; do 2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2283 eval ac_new_set=\$ac_env_${ac_var}_set 2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2285 eval ac_new_val=\$ac_env_${ac_var}_value 2286 case $ac_old_set,$ac_new_set in 2287 set,) 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2289$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2290 ac_cache_corrupted=: ;; 2291 ,set) 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2293$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2294 ac_cache_corrupted=: ;; 2295 ,);; 2296 *) 2297 if test "x$ac_old_val" != "x$ac_new_val"; then 2298 # differences in whitespace do not lead to failure. 2299 ac_old_val_w=`echo x $ac_old_val` 2300 ac_new_val_w=`echo x $ac_new_val` 2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2303$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2304 ac_cache_corrupted=: 2305 else 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2307$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2308 eval $ac_var=\$ac_old_val 2309 fi 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2311$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2313$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2314 fi;; 2315 esac 2316 # Pass precious variables to config.status. 2317 if test "$ac_new_set" = set; then 2318 case $ac_new_val in 2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2320 *) ac_arg=$ac_var=$ac_new_val ;; 2321 esac 2322 case " $ac_configure_args " in 2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2325 esac 2326 fi 2327done 2328if $ac_cache_corrupted; then 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2332$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2334fi 2335## -------------------- ## 2336## Main body of script. ## 2337## -------------------- ## 2338 2339ac_ext=c 2340ac_cpp='$CPP $CPPFLAGS' 2341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2343ac_compiler_gnu=$ac_cv_c_compiler_gnu 2344 2345 2346 2347 2348 2349# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2350# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2351# to avoid autoconf errors. 2352ac_aux_dir= 2353for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2354 if test -f "$ac_dir/install-sh"; then 2355 ac_aux_dir=$ac_dir 2356 ac_install_sh="$ac_aux_dir/install-sh -c" 2357 break 2358 elif test -f "$ac_dir/install.sh"; then 2359 ac_aux_dir=$ac_dir 2360 ac_install_sh="$ac_aux_dir/install.sh -c" 2361 break 2362 elif test -f "$ac_dir/shtool"; then 2363 ac_aux_dir=$ac_dir 2364 ac_install_sh="$ac_aux_dir/shtool install -c" 2365 break 2366 fi 2367done 2368if test -z "$ac_aux_dir"; then 2369 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2370fi 2371 2372# These three variables are undocumented and unsupported, 2373# and are intended to be withdrawn in a future Autoconf release. 2374# They can cause serious problems if a builder's source tree is in a directory 2375# whose full name contains unusual characters. 2376ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2377ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2378ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2379 2380 2381# Expand $ac_aux_dir to an absolute path. 2382am_aux_dir=`cd "$ac_aux_dir" && pwd` 2383 2384ac_ext=c 2385ac_cpp='$CPP $CPPFLAGS' 2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2388ac_compiler_gnu=$ac_cv_c_compiler_gnu 2389if test -n "$ac_tool_prefix"; then 2390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2391set dummy ${ac_tool_prefix}gcc; ac_word=$2 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2393$as_echo_n "checking for $ac_word... " >&6; } 2394if ${ac_cv_prog_CC+:} false; then : 2395 $as_echo_n "(cached) " >&6 2396else 2397 if test -n "$CC"; then 2398 ac_cv_prog_CC="$CC" # Let the user override the test. 2399else 2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2401for as_dir in $PATH 2402do 2403 IFS=$as_save_IFS 2404 test -z "$as_dir" && as_dir=. 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2407 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2409 break 2 2410 fi 2411done 2412 done 2413IFS=$as_save_IFS 2414 2415fi 2416fi 2417CC=$ac_cv_prog_CC 2418if test -n "$CC"; then 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2420$as_echo "$CC" >&6; } 2421else 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2423$as_echo "no" >&6; } 2424fi 2425 2426 2427fi 2428if test -z "$ac_cv_prog_CC"; then 2429 ac_ct_CC=$CC 2430 # Extract the first word of "gcc", so it can be a program name with args. 2431set dummy gcc; ac_word=$2 2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2433$as_echo_n "checking for $ac_word... " >&6; } 2434if ${ac_cv_prog_ac_ct_CC+:} false; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 if test -n "$ac_ct_CC"; then 2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2447 ac_cv_prog_ac_ct_CC="gcc" 2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452 done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457ac_ct_CC=$ac_cv_prog_ac_ct_CC 2458if test -n "$ac_ct_CC"; then 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2460$as_echo "$ac_ct_CC" >&6; } 2461else 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2463$as_echo "no" >&6; } 2464fi 2465 2466 if test "x$ac_ct_CC" = x; then 2467 CC="" 2468 else 2469 case $cross_compiling:$ac_tool_warned in 2470yes:) 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2473ac_tool_warned=yes ;; 2474esac 2475 CC=$ac_ct_CC 2476 fi 2477else 2478 CC="$ac_cv_prog_CC" 2479fi 2480 2481if test -z "$CC"; then 2482 if test -n "$ac_tool_prefix"; then 2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2484set dummy ${ac_tool_prefix}cc; ac_word=$2 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if ${ac_cv_prog_CC+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$CC"; then 2491 ac_cv_prog_CC="$CC" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 ac_cv_prog_CC="${ac_tool_prefix}cc" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505 done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510CC=$ac_cv_prog_CC 2511if test -n "$CC"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2513$as_echo "$CC" >&6; } 2514else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 2520 fi 2521fi 2522if test -z "$CC"; then 2523 # Extract the first word of "cc", so it can be a program name with args. 2524set dummy cc; ac_word=$2 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526$as_echo_n "checking for $ac_word... " >&6; } 2527if ${ac_cv_prog_CC+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529else 2530 if test -n "$CC"; then 2531 ac_cv_prog_CC="$CC" # Let the user override the test. 2532else 2533 ac_prog_rejected=no 2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535for as_dir in $PATH 2536do 2537 IFS=$as_save_IFS 2538 test -z "$as_dir" && as_dir=. 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2542 ac_prog_rejected=yes 2543 continue 2544 fi 2545 ac_cv_prog_CC="cc" 2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550 done 2551IFS=$as_save_IFS 2552 2553if test $ac_prog_rejected = yes; then 2554 # We found a bogon in the path, so make sure we never use it. 2555 set dummy $ac_cv_prog_CC 2556 shift 2557 if test $# != 0; then 2558 # We chose a different compiler from the bogus one. 2559 # However, it has the same basename, so the bogon will be chosen 2560 # first if we set CC to just the basename; use the full file name. 2561 shift 2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2563 fi 2564fi 2565fi 2566fi 2567CC=$ac_cv_prog_CC 2568if test -n "$CC"; then 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2570$as_echo "$CC" >&6; } 2571else 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2573$as_echo "no" >&6; } 2574fi 2575 2576 2577fi 2578if test -z "$CC"; then 2579 if test -n "$ac_tool_prefix"; then 2580 for ac_prog in cl.exe 2581 do 2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2583set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2585$as_echo_n "checking for $ac_word... " >&6; } 2586if ${ac_cv_prog_CC+:} false; then : 2587 $as_echo_n "(cached) " >&6 2588else 2589 if test -n "$CC"; then 2590 ac_cv_prog_CC="$CC" # Let the user override the test. 2591else 2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2593for as_dir in $PATH 2594do 2595 IFS=$as_save_IFS 2596 test -z "$as_dir" && as_dir=. 2597 for ac_exec_ext in '' $ac_executable_extensions; do 2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2601 break 2 2602 fi 2603done 2604 done 2605IFS=$as_save_IFS 2606 2607fi 2608fi 2609CC=$ac_cv_prog_CC 2610if test -n "$CC"; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2612$as_echo "$CC" >&6; } 2613else 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2615$as_echo "no" >&6; } 2616fi 2617 2618 2619 test -n "$CC" && break 2620 done 2621fi 2622if test -z "$CC"; then 2623 ac_ct_CC=$CC 2624 for ac_prog in cl.exe 2625do 2626 # Extract the first word of "$ac_prog", so it can be a program name with args. 2627set dummy $ac_prog; ac_word=$2 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2629$as_echo_n "checking for $ac_word... " >&6; } 2630if ${ac_cv_prog_ac_ct_CC+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test -n "$ac_ct_CC"; then 2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2635else 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2643 ac_cv_prog_ac_ct_CC="$ac_prog" 2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647done 2648 done 2649IFS=$as_save_IFS 2650 2651fi 2652fi 2653ac_ct_CC=$ac_cv_prog_ac_ct_CC 2654if test -n "$ac_ct_CC"; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2656$as_echo "$ac_ct_CC" >&6; } 2657else 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2659$as_echo "no" >&6; } 2660fi 2661 2662 2663 test -n "$ac_ct_CC" && break 2664done 2665 2666 if test "x$ac_ct_CC" = x; then 2667 CC="" 2668 else 2669 case $cross_compiling:$ac_tool_warned in 2670yes:) 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2673ac_tool_warned=yes ;; 2674esac 2675 CC=$ac_ct_CC 2676 fi 2677fi 2678 2679fi 2680 2681 2682test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2684as_fn_error $? "no acceptable C compiler found in \$PATH 2685See \`config.log' for more details" "$LINENO" 5; } 2686 2687# Provide some information about the compiler. 2688$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2689set X $ac_compile 2690ac_compiler=$2 2691for ac_option in --version -v -V -qversion; do 2692 { { ac_try="$ac_compiler $ac_option >&5" 2693case "(($ac_try" in 2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2695 *) ac_try_echo=$ac_try;; 2696esac 2697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2698$as_echo "$ac_try_echo"; } >&5 2699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2700 ac_status=$? 2701 if test -s conftest.err; then 2702 sed '10a\ 2703... rest of stderr output deleted ... 2704 10q' conftest.err >conftest.er1 2705 cat conftest.er1 >&5 2706 fi 2707 rm -f conftest.er1 conftest.err 2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2709 test $ac_status = 0; } 2710done 2711 2712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2713/* end confdefs.h. */ 2714 2715int 2716main () 2717{ 2718 2719 ; 2720 return 0; 2721} 2722_ACEOF 2723ac_clean_files_save=$ac_clean_files 2724ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2725# Try to create an executable without -o first, disregard a.out. 2726# It will help us diagnose broken compilers, and finding out an intuition 2727# of exeext. 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2729$as_echo_n "checking whether the C compiler works... " >&6; } 2730ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2731 2732# The possible output files: 2733ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2734 2735ac_rmfiles= 2736for ac_file in $ac_files 2737do 2738 case $ac_file in 2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2741 esac 2742done 2743rm -f $ac_rmfiles 2744 2745if { { ac_try="$ac_link_default" 2746case "(($ac_try" in 2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2748 *) ac_try_echo=$ac_try;; 2749esac 2750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2751$as_echo "$ac_try_echo"; } >&5 2752 (eval "$ac_link_default") 2>&5 2753 ac_status=$? 2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2755 test $ac_status = 0; }; then : 2756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2757# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2758# in a Makefile. We should not override ac_cv_exeext if it was cached, 2759# so that the user can short-circuit this test for compilers unknown to 2760# Autoconf. 2761for ac_file in $ac_files '' 2762do 2763 test -f "$ac_file" || continue 2764 case $ac_file in 2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2766 ;; 2767 [ab].out ) 2768 # We found the default executable, but exeext='' is most 2769 # certainly right. 2770 break;; 2771 *.* ) 2772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2773 then :; else 2774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2775 fi 2776 # We set ac_cv_exeext here because the later test for it is not 2777 # safe: cross compilers may not add the suffix if given an `-o' 2778 # argument, so we may need to know it at that point already. 2779 # Even if this section looks crufty: it has the advantage of 2780 # actually working. 2781 break;; 2782 * ) 2783 break;; 2784 esac 2785done 2786test "$ac_cv_exeext" = no && ac_cv_exeext= 2787 2788else 2789 ac_file='' 2790fi 2791if test -z "$ac_file"; then : 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794$as_echo "$as_me: failed program was:" >&5 2795sed 's/^/| /' conftest.$ac_ext >&5 2796 2797{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2799as_fn_error 77 "C compiler cannot create executables 2800See \`config.log' for more details" "$LINENO" 5; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2803$as_echo "yes" >&6; } 2804fi 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2806$as_echo_n "checking for C compiler default output file name... " >&6; } 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2808$as_echo "$ac_file" >&6; } 2809ac_exeext=$ac_cv_exeext 2810 2811rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2812ac_clean_files=$ac_clean_files_save 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2814$as_echo_n "checking for suffix of executables... " >&6; } 2815if { { ac_try="$ac_link" 2816case "(($ac_try" in 2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2818 *) ac_try_echo=$ac_try;; 2819esac 2820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2821$as_echo "$ac_try_echo"; } >&5 2822 (eval "$ac_link") 2>&5 2823 ac_status=$? 2824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2825 test $ac_status = 0; }; then : 2826 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2827# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2828# work properly (i.e., refer to `conftest.exe'), while it won't with 2829# `rm'. 2830for ac_file in conftest.exe conftest conftest.*; do 2831 test -f "$ac_file" || continue 2832 case $ac_file in 2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2835 break;; 2836 * ) break;; 2837 esac 2838done 2839else 2840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2842as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2843See \`config.log' for more details" "$LINENO" 5; } 2844fi 2845rm -f conftest conftest$ac_cv_exeext 2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2847$as_echo "$ac_cv_exeext" >&6; } 2848 2849rm -f conftest.$ac_ext 2850EXEEXT=$ac_cv_exeext 2851ac_exeext=$EXEEXT 2852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2853/* end confdefs.h. */ 2854#include <stdio.h> 2855int 2856main () 2857{ 2858FILE *f = fopen ("conftest.out", "w"); 2859 return ferror (f) || fclose (f) != 0; 2860 2861 ; 2862 return 0; 2863} 2864_ACEOF 2865ac_clean_files="$ac_clean_files conftest.out" 2866# Check that the compiler produces executables we can run. If not, either 2867# the compiler is broken, or we cross compile. 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2869$as_echo_n "checking whether we are cross compiling... " >&6; } 2870if test "$cross_compiling" != yes; then 2871 { { ac_try="$ac_link" 2872case "(($ac_try" in 2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2874 *) ac_try_echo=$ac_try;; 2875esac 2876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2877$as_echo "$ac_try_echo"; } >&5 2878 (eval "$ac_link") 2>&5 2879 ac_status=$? 2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2881 test $ac_status = 0; } 2882 if { ac_try='./conftest$ac_cv_exeext' 2883 { { case "(($ac_try" in 2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2885 *) ac_try_echo=$ac_try;; 2886esac 2887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2888$as_echo "$ac_try_echo"; } >&5 2889 (eval "$ac_try") 2>&5 2890 ac_status=$? 2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2892 test $ac_status = 0; }; }; then 2893 cross_compiling=no 2894 else 2895 if test "$cross_compiling" = maybe; then 2896 cross_compiling=yes 2897 else 2898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2900as_fn_error $? "cannot run C compiled programs. 2901If you meant to cross compile, use \`--host'. 2902See \`config.log' for more details" "$LINENO" 5; } 2903 fi 2904 fi 2905fi 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2907$as_echo "$cross_compiling" >&6; } 2908 2909rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2910ac_clean_files=$ac_clean_files_save 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2912$as_echo_n "checking for suffix of object files... " >&6; } 2913if ${ac_cv_objext+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2917/* end confdefs.h. */ 2918 2919int 2920main () 2921{ 2922 2923 ; 2924 return 0; 2925} 2926_ACEOF 2927rm -f conftest.o conftest.obj 2928if { { ac_try="$ac_compile" 2929case "(($ac_try" in 2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2931 *) ac_try_echo=$ac_try;; 2932esac 2933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2934$as_echo "$ac_try_echo"; } >&5 2935 (eval "$ac_compile") 2>&5 2936 ac_status=$? 2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2938 test $ac_status = 0; }; then : 2939 for ac_file in conftest.o conftest.obj conftest.*; do 2940 test -f "$ac_file" || continue; 2941 case $ac_file in 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2944 break;; 2945 esac 2946done 2947else 2948 $as_echo "$as_me: failed program was:" >&5 2949sed 's/^/| /' conftest.$ac_ext >&5 2950 2951{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2953as_fn_error $? "cannot compute suffix of object files: cannot compile 2954See \`config.log' for more details" "$LINENO" 5; } 2955fi 2956rm -f conftest.$ac_cv_objext conftest.$ac_ext 2957fi 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2959$as_echo "$ac_cv_objext" >&6; } 2960OBJEXT=$ac_cv_objext 2961ac_objext=$OBJEXT 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2963$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2964if ${ac_cv_c_compiler_gnu+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2968/* end confdefs.h. */ 2969 2970int 2971main () 2972{ 2973#ifndef __GNUC__ 2974 choke me 2975#endif 2976 2977 ; 2978 return 0; 2979} 2980_ACEOF 2981if ac_fn_c_try_compile "$LINENO"; then : 2982 ac_compiler_gnu=yes 2983else 2984 ac_compiler_gnu=no 2985fi 2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2987ac_cv_c_compiler_gnu=$ac_compiler_gnu 2988 2989fi 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2991$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2992if test $ac_compiler_gnu = yes; then 2993 GCC=yes 2994else 2995 GCC= 2996fi 2997ac_test_CFLAGS=${CFLAGS+set} 2998ac_save_CFLAGS=$CFLAGS 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3000$as_echo_n "checking whether $CC accepts -g... " >&6; } 3001if ${ac_cv_prog_cc_g+:} false; then : 3002 $as_echo_n "(cached) " >&6 3003else 3004 ac_save_c_werror_flag=$ac_c_werror_flag 3005 ac_c_werror_flag=yes 3006 ac_cv_prog_cc_g=no 3007 CFLAGS="-g" 3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3009/* end confdefs.h. */ 3010 3011int 3012main () 3013{ 3014 3015 ; 3016 return 0; 3017} 3018_ACEOF 3019if ac_fn_c_try_compile "$LINENO"; then : 3020 ac_cv_prog_cc_g=yes 3021else 3022 CFLAGS="" 3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3024/* end confdefs.h. */ 3025 3026int 3027main () 3028{ 3029 3030 ; 3031 return 0; 3032} 3033_ACEOF 3034if ac_fn_c_try_compile "$LINENO"; then : 3035 3036else 3037 ac_c_werror_flag=$ac_save_c_werror_flag 3038 CFLAGS="-g" 3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3040/* end confdefs.h. */ 3041 3042int 3043main () 3044{ 3045 3046 ; 3047 return 0; 3048} 3049_ACEOF 3050if ac_fn_c_try_compile "$LINENO"; then : 3051 ac_cv_prog_cc_g=yes 3052fi 3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3054fi 3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3056fi 3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3058 ac_c_werror_flag=$ac_save_c_werror_flag 3059fi 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3061$as_echo "$ac_cv_prog_cc_g" >&6; } 3062if test "$ac_test_CFLAGS" = set; then 3063 CFLAGS=$ac_save_CFLAGS 3064elif test $ac_cv_prog_cc_g = yes; then 3065 if test "$GCC" = yes; then 3066 CFLAGS="-g -O2" 3067 else 3068 CFLAGS="-g" 3069 fi 3070else 3071 if test "$GCC" = yes; then 3072 CFLAGS="-O2" 3073 else 3074 CFLAGS= 3075 fi 3076fi 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3078$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3079if ${ac_cv_prog_cc_c89+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 ac_cv_prog_cc_c89=no 3083ac_save_CC=$CC 3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3085/* end confdefs.h. */ 3086#include <stdarg.h> 3087#include <stdio.h> 3088struct stat; 3089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3090struct buf { int x; }; 3091FILE * (*rcsopen) (struct buf *, struct stat *, int); 3092static char *e (p, i) 3093 char **p; 3094 int i; 3095{ 3096 return p[i]; 3097} 3098static char *f (char * (*g) (char **, int), char **p, ...) 3099{ 3100 char *s; 3101 va_list v; 3102 va_start (v,p); 3103 s = g (p, va_arg (v,int)); 3104 va_end (v); 3105 return s; 3106} 3107 3108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3109 function prototypes and stuff, but not '\xHH' hex character constants. 3110 These don't provoke an error unfortunately, instead are silently treated 3111 as 'x'. The following induces an error, until -std is added to get 3112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3113 array size at least. It's necessary to write '\x00'==0 to get something 3114 that's true only with -std. */ 3115int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3116 3117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3118 inside strings and character constants. */ 3119#define FOO(x) 'x' 3120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3121 3122int test (int i, double x); 3123struct s1 {int (*f) (int a);}; 3124struct s2 {int (*f) (double a);}; 3125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3126int argc; 3127char **argv; 3128int 3129main () 3130{ 3131return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3132 ; 3133 return 0; 3134} 3135_ACEOF 3136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3138do 3139 CC="$ac_save_CC $ac_arg" 3140 if ac_fn_c_try_compile "$LINENO"; then : 3141 ac_cv_prog_cc_c89=$ac_arg 3142fi 3143rm -f core conftest.err conftest.$ac_objext 3144 test "x$ac_cv_prog_cc_c89" != "xno" && break 3145done 3146rm -f conftest.$ac_ext 3147CC=$ac_save_CC 3148 3149fi 3150# AC_CACHE_VAL 3151case "x$ac_cv_prog_cc_c89" in 3152 x) 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3154$as_echo "none needed" >&6; } ;; 3155 xno) 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3157$as_echo "unsupported" >&6; } ;; 3158 *) 3159 CC="$CC $ac_cv_prog_cc_c89" 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3161$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3162esac 3163if test "x$ac_cv_prog_cc_c89" != xno; then : 3164 3165fi 3166 3167ac_ext=c 3168ac_cpp='$CPP $CPPFLAGS' 3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3171ac_compiler_gnu=$ac_cv_c_compiler_gnu 3172 3173ac_ext=c 3174ac_cpp='$CPP $CPPFLAGS' 3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3177ac_compiler_gnu=$ac_cv_c_compiler_gnu 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3179$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3180if ${am_cv_prog_cc_c_o+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194 # Make sure it works both with $CC and with simple cc. 3195 # Following AC_PROG_CC_C_O, we do the test twice because some 3196 # compilers refuse to overwrite an existing .o file with -o, 3197 # though they will create one. 3198 am_cv_prog_cc_c_o=yes 3199 for am_i in 1 2; do 3200 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3201 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); } \ 3205 && test -f conftest2.$ac_objext; then 3206 : OK 3207 else 3208 am_cv_prog_cc_c_o=no 3209 break 3210 fi 3211 done 3212 rm -f core conftest* 3213 unset am_i 3214fi 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3216$as_echo "$am_cv_prog_cc_c_o" >&6; } 3217if test "$am_cv_prog_cc_c_o" != yes; then 3218 # Losing compiler, so override with the script. 3219 # FIXME: It is wrong to rewrite CC. 3220 # But if we don't then we get into trouble of one sort or another. 3221 # A longer-term fix would be to have automake use am__CC in this case, 3222 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3223 CC="$am_aux_dir/compile $CC" 3224fi 3225ac_ext=c 3226ac_cpp='$CPP $CPPFLAGS' 3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229ac_compiler_gnu=$ac_cv_c_compiler_gnu 3230 3231 3232 3233ac_ext=c 3234ac_cpp='$CPP $CPPFLAGS' 3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3237ac_compiler_gnu=$ac_cv_c_compiler_gnu 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3239$as_echo_n "checking how to run the C preprocessor... " >&6; } 3240# On Suns, sometimes $CPP names a directory. 3241if test -n "$CPP" && test -d "$CPP"; then 3242 CPP= 3243fi 3244if test -z "$CPP"; then 3245 if ${ac_cv_prog_CPP+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 # Double quotes because CPP needs to be expanded 3249 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3250 do 3251 ac_preproc_ok=false 3252for ac_c_preproc_warn_flag in '' yes 3253do 3254 # Use a header file that comes with gcc, so configuring glibc 3255 # with a fresh cross-compiler works. 3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3257 # <limits.h> exists even on freestanding compilers. 3258 # On the NeXT, cc -E runs the code through the compiler's parser, 3259 # not just through cpp. "Syntax error" is here to catch this case. 3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3261/* end confdefs.h. */ 3262#ifdef __STDC__ 3263# include <limits.h> 3264#else 3265# include <assert.h> 3266#endif 3267 Syntax error 3268_ACEOF 3269if ac_fn_c_try_cpp "$LINENO"; then : 3270 3271else 3272 # Broken: fails on valid input. 3273continue 3274fi 3275rm -f conftest.err conftest.i conftest.$ac_ext 3276 3277 # OK, works on sane cases. Now check whether nonexistent headers 3278 # can be detected and how. 3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3280/* end confdefs.h. */ 3281#include <ac_nonexistent.h> 3282_ACEOF 3283if ac_fn_c_try_cpp "$LINENO"; then : 3284 # Broken: success on invalid input. 3285continue 3286else 3287 # Passes both tests. 3288ac_preproc_ok=: 3289break 3290fi 3291rm -f conftest.err conftest.i conftest.$ac_ext 3292 3293done 3294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3295rm -f conftest.i conftest.err conftest.$ac_ext 3296if $ac_preproc_ok; then : 3297 break 3298fi 3299 3300 done 3301 ac_cv_prog_CPP=$CPP 3302 3303fi 3304 CPP=$ac_cv_prog_CPP 3305else 3306 ac_cv_prog_CPP=$CPP 3307fi 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3309$as_echo "$CPP" >&6; } 3310ac_preproc_ok=false 3311for ac_c_preproc_warn_flag in '' yes 3312do 3313 # Use a header file that comes with gcc, so configuring glibc 3314 # with a fresh cross-compiler works. 3315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3316 # <limits.h> exists even on freestanding compilers. 3317 # On the NeXT, cc -E runs the code through the compiler's parser, 3318 # not just through cpp. "Syntax error" is here to catch this case. 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321#ifdef __STDC__ 3322# include <limits.h> 3323#else 3324# include <assert.h> 3325#endif 3326 Syntax error 3327_ACEOF 3328if ac_fn_c_try_cpp "$LINENO"; then : 3329 3330else 3331 # Broken: fails on valid input. 3332continue 3333fi 3334rm -f conftest.err conftest.i conftest.$ac_ext 3335 3336 # OK, works on sane cases. Now check whether nonexistent headers 3337 # can be detected and how. 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340#include <ac_nonexistent.h> 3341_ACEOF 3342if ac_fn_c_try_cpp "$LINENO"; then : 3343 # Broken: success on invalid input. 3344continue 3345else 3346 # Passes both tests. 3347ac_preproc_ok=: 3348break 3349fi 3350rm -f conftest.err conftest.i conftest.$ac_ext 3351 3352done 3353# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3354rm -f conftest.i conftest.err conftest.$ac_ext 3355if $ac_preproc_ok; then : 3356 3357else 3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3360as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3361See \`config.log' for more details" "$LINENO" 5; } 3362fi 3363 3364ac_ext=c 3365ac_cpp='$CPP $CPPFLAGS' 3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3368ac_compiler_gnu=$ac_cv_c_compiler_gnu 3369 3370 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3372$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3373if ${ac_cv_path_GREP+:} false; then : 3374 $as_echo_n "(cached) " >&6 3375else 3376 if test -z "$GREP"; then 3377 ac_path_GREP_found=false 3378 # Loop through the user's path and test for each of PROGNAME-LIST 3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3381do 3382 IFS=$as_save_IFS 3383 test -z "$as_dir" && as_dir=. 3384 for ac_prog in grep ggrep; do 3385 for ac_exec_ext in '' $ac_executable_extensions; do 3386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3387 as_fn_executable_p "$ac_path_GREP" || continue 3388# Check for GNU ac_path_GREP and select it if it is found. 3389 # Check for GNU $ac_path_GREP 3390case `"$ac_path_GREP" --version 2>&1` in 3391*GNU*) 3392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3393*) 3394 ac_count=0 3395 $as_echo_n 0123456789 >"conftest.in" 3396 while : 3397 do 3398 cat "conftest.in" "conftest.in" >"conftest.tmp" 3399 mv "conftest.tmp" "conftest.in" 3400 cp "conftest.in" "conftest.nl" 3401 $as_echo 'GREP' >> "conftest.nl" 3402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3404 as_fn_arith $ac_count + 1 && ac_count=$as_val 3405 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3406 # Best one so far, save it but keep looking for a better one 3407 ac_cv_path_GREP="$ac_path_GREP" 3408 ac_path_GREP_max=$ac_count 3409 fi 3410 # 10*(2^10) chars as input seems more than enough 3411 test $ac_count -gt 10 && break 3412 done 3413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3414esac 3415 3416 $ac_path_GREP_found && break 3 3417 done 3418 done 3419 done 3420IFS=$as_save_IFS 3421 if test -z "$ac_cv_path_GREP"; then 3422 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3423 fi 3424else 3425 ac_cv_path_GREP=$GREP 3426fi 3427 3428fi 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3430$as_echo "$ac_cv_path_GREP" >&6; } 3431 GREP="$ac_cv_path_GREP" 3432 3433 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3435$as_echo_n "checking for egrep... " >&6; } 3436if ${ac_cv_path_EGREP+:} false; then : 3437 $as_echo_n "(cached) " >&6 3438else 3439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3440 then ac_cv_path_EGREP="$GREP -E" 3441 else 3442 if test -z "$EGREP"; then 3443 ac_path_EGREP_found=false 3444 # Loop through the user's path and test for each of PROGNAME-LIST 3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3447do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_prog in egrep; do 3451 for ac_exec_ext in '' $ac_executable_extensions; do 3452 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3453 as_fn_executable_p "$ac_path_EGREP" || continue 3454# Check for GNU ac_path_EGREP and select it if it is found. 3455 # Check for GNU $ac_path_EGREP 3456case `"$ac_path_EGREP" --version 2>&1` in 3457*GNU*) 3458 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3459*) 3460 ac_count=0 3461 $as_echo_n 0123456789 >"conftest.in" 3462 while : 3463 do 3464 cat "conftest.in" "conftest.in" >"conftest.tmp" 3465 mv "conftest.tmp" "conftest.in" 3466 cp "conftest.in" "conftest.nl" 3467 $as_echo 'EGREP' >> "conftest.nl" 3468 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3470 as_fn_arith $ac_count + 1 && ac_count=$as_val 3471 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3472 # Best one so far, save it but keep looking for a better one 3473 ac_cv_path_EGREP="$ac_path_EGREP" 3474 ac_path_EGREP_max=$ac_count 3475 fi 3476 # 10*(2^10) chars as input seems more than enough 3477 test $ac_count -gt 10 && break 3478 done 3479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3480esac 3481 3482 $ac_path_EGREP_found && break 3 3483 done 3484 done 3485 done 3486IFS=$as_save_IFS 3487 if test -z "$ac_cv_path_EGREP"; then 3488 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3489 fi 3490else 3491 ac_cv_path_EGREP=$EGREP 3492fi 3493 3494 fi 3495fi 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3497$as_echo "$ac_cv_path_EGREP" >&6; } 3498 EGREP="$ac_cv_path_EGREP" 3499 3500 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3502$as_echo_n "checking for ANSI C header files... " >&6; } 3503if ${ac_cv_header_stdc+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508#include <stdlib.h> 3509#include <stdarg.h> 3510#include <string.h> 3511#include <float.h> 3512 3513int 3514main () 3515{ 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521if ac_fn_c_try_compile "$LINENO"; then : 3522 ac_cv_header_stdc=yes 3523else 3524 ac_cv_header_stdc=no 3525fi 3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3527 3528if test $ac_cv_header_stdc = yes; then 3529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3531/* end confdefs.h. */ 3532#include <string.h> 3533 3534_ACEOF 3535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3536 $EGREP "memchr" >/dev/null 2>&1; then : 3537 3538else 3539 ac_cv_header_stdc=no 3540fi 3541rm -f conftest* 3542 3543fi 3544 3545if test $ac_cv_header_stdc = yes; then 3546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549#include <stdlib.h> 3550 3551_ACEOF 3552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3553 $EGREP "free" >/dev/null 2>&1; then : 3554 3555else 3556 ac_cv_header_stdc=no 3557fi 3558rm -f conftest* 3559 3560fi 3561 3562if test $ac_cv_header_stdc = yes; then 3563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3564 if test "$cross_compiling" = yes; then : 3565 : 3566else 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568/* end confdefs.h. */ 3569#include <ctype.h> 3570#include <stdlib.h> 3571#if ((' ' & 0x0FF) == 0x020) 3572# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3573# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3574#else 3575# define ISLOWER(c) \ 3576 (('a' <= (c) && (c) <= 'i') \ 3577 || ('j' <= (c) && (c) <= 'r') \ 3578 || ('s' <= (c) && (c) <= 'z')) 3579# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3580#endif 3581 3582#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3583int 3584main () 3585{ 3586 int i; 3587 for (i = 0; i < 256; i++) 3588 if (XOR (islower (i), ISLOWER (i)) 3589 || toupper (i) != TOUPPER (i)) 3590 return 2; 3591 return 0; 3592} 3593_ACEOF 3594if ac_fn_c_try_run "$LINENO"; then : 3595 3596else 3597 ac_cv_header_stdc=no 3598fi 3599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3600 conftest.$ac_objext conftest.beam conftest.$ac_ext 3601fi 3602 3603fi 3604fi 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3606$as_echo "$ac_cv_header_stdc" >&6; } 3607if test $ac_cv_header_stdc = yes; then 3608 3609$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3610 3611fi 3612 3613# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3614for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3615 inttypes.h stdint.h unistd.h 3616do : 3617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3618ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3619" 3620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3621 cat >>confdefs.h <<_ACEOF 3622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3623_ACEOF 3624 3625fi 3626 3627done 3628 3629 3630 3631 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3632if test "x$ac_cv_header_minix_config_h" = xyes; then : 3633 MINIX=yes 3634else 3635 MINIX= 3636fi 3637 3638 3639 if test "$MINIX" = yes; then 3640 3641$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3642 3643 3644$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3645 3646 3647$as_echo "#define _MINIX 1" >>confdefs.h 3648 3649 fi 3650 3651 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3653$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3654if ${ac_cv_safe_to_define___extensions__+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659 3660# define __EXTENSIONS__ 1 3661 $ac_includes_default 3662int 3663main () 3664{ 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670if ac_fn_c_try_compile "$LINENO"; then : 3671 ac_cv_safe_to_define___extensions__=yes 3672else 3673 ac_cv_safe_to_define___extensions__=no 3674fi 3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3678$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3679 test $ac_cv_safe_to_define___extensions__ = yes && 3680 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3681 3682 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3683 3684 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3685 3686 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3687 3688 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3689 3690 3691 3692am__api_version='1.15' 3693 3694# Find a good install program. We prefer a C program (faster), 3695# so one script is as good as another. But avoid the broken or 3696# incompatible versions: 3697# SysV /etc/install, /usr/sbin/install 3698# SunOS /usr/etc/install 3699# IRIX /sbin/install 3700# AIX /bin/install 3701# AmigaOS /C/install, which installs bootblocks on floppy discs 3702# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3703# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3704# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3705# OS/2's system install, which has a completely different semantic 3706# ./install, which can be erroneously created by make from ./install.sh. 3707# Reject install programs that cannot install multiple files. 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3709$as_echo_n "checking for a BSD-compatible install... " >&6; } 3710if test -z "$INSTALL"; then 3711if ${ac_cv_path_install+:} false; then : 3712 $as_echo_n "(cached) " >&6 3713else 3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3715for as_dir in $PATH 3716do 3717 IFS=$as_save_IFS 3718 test -z "$as_dir" && as_dir=. 3719 # Account for people who put trailing slashes in PATH elements. 3720case $as_dir/ in #(( 3721 ./ | .// | /[cC]/* | \ 3722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3723 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3724 /usr/ucb/* ) ;; 3725 *) 3726 # OSF1 and SCO ODT 3.0 have their own names for install. 3727 # Don't use installbsd from OSF since it installs stuff as root 3728 # by default. 3729 for ac_prog in ginstall scoinst install; do 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3732 if test $ac_prog = install && 3733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3734 # AIX install. It has an incompatible calling convention. 3735 : 3736 elif test $ac_prog = install && 3737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3738 # program-specific install script used by HP pwplus--don't use. 3739 : 3740 else 3741 rm -rf conftest.one conftest.two conftest.dir 3742 echo one > conftest.one 3743 echo two > conftest.two 3744 mkdir conftest.dir 3745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3746 test -s conftest.one && test -s conftest.two && 3747 test -s conftest.dir/conftest.one && 3748 test -s conftest.dir/conftest.two 3749 then 3750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3751 break 3 3752 fi 3753 fi 3754 fi 3755 done 3756 done 3757 ;; 3758esac 3759 3760 done 3761IFS=$as_save_IFS 3762 3763rm -rf conftest.one conftest.two conftest.dir 3764 3765fi 3766 if test "${ac_cv_path_install+set}" = set; then 3767 INSTALL=$ac_cv_path_install 3768 else 3769 # As a last resort, use the slow shell script. Don't cache a 3770 # value for INSTALL within a source directory, because that will 3771 # break other packages using the cache if that directory is 3772 # removed, or if the value is a relative name. 3773 INSTALL=$ac_install_sh 3774 fi 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3777$as_echo "$INSTALL" >&6; } 3778 3779# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3780# It thinks the first close brace ends the variable substitution. 3781test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3782 3783test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3784 3785test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3786 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3788$as_echo_n "checking whether build environment is sane... " >&6; } 3789# Reject unsafe characters in $srcdir or the absolute working directory 3790# name. Accept space and tab only in the latter. 3791am_lf=' 3792' 3793case `pwd` in 3794 *[\\\"\#\$\&\'\`$am_lf]*) 3795 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3796esac 3797case $srcdir in 3798 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3799 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3800esac 3801 3802# Do 'set' in a subshell so we don't clobber the current shell's 3803# arguments. Must try -L first in case configure is actually a 3804# symlink; some systems play weird games with the mod time of symlinks 3805# (eg FreeBSD returns the mod time of the symlink's containing 3806# directory). 3807if ( 3808 am_has_slept=no 3809 for am_try in 1 2; do 3810 echo "timestamp, slept: $am_has_slept" > conftest.file 3811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3812 if test "$*" = "X"; then 3813 # -L didn't work. 3814 set X `ls -t "$srcdir/configure" conftest.file` 3815 fi 3816 if test "$*" != "X $srcdir/configure conftest.file" \ 3817 && test "$*" != "X conftest.file $srcdir/configure"; then 3818 3819 # If neither matched, then we have a broken ls. This can happen 3820 # if, for instance, CONFIG_SHELL is bash and it inherits a 3821 # broken ls alias from the environment. This has actually 3822 # happened. Such a system could not be considered "sane". 3823 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3824 alias in your environment" "$LINENO" 5 3825 fi 3826 if test "$2" = conftest.file || test $am_try -eq 2; then 3827 break 3828 fi 3829 # Just in case. 3830 sleep 1 3831 am_has_slept=yes 3832 done 3833 test "$2" = conftest.file 3834 ) 3835then 3836 # Ok. 3837 : 3838else 3839 as_fn_error $? "newly created file is older than distributed files! 3840Check your system clock" "$LINENO" 5 3841fi 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3843$as_echo "yes" >&6; } 3844# If we didn't sleep, we still need to ensure time stamps of config.status and 3845# generated files are strictly newer. 3846am_sleep_pid= 3847if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3848 ( sleep 1 ) & 3849 am_sleep_pid=$! 3850fi 3851 3852rm -f conftest.file 3853 3854test "$program_prefix" != NONE && 3855 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3856# Use a double $ so make ignores it. 3857test "$program_suffix" != NONE && 3858 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3859# Double any \ or $. 3860# By default was `s,x,x', remove it if useless. 3861ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3862program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3863 3864if test x"${MISSING+set}" != xset; then 3865 case $am_aux_dir in 3866 *\ * | *\ *) 3867 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3868 *) 3869 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3870 esac 3871fi 3872# Use eval to expand $SHELL 3873if eval "$MISSING --is-lightweight"; then 3874 am_missing_run="$MISSING " 3875else 3876 am_missing_run= 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3878$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3879fi 3880 3881if test x"${install_sh+set}" != xset; then 3882 case $am_aux_dir in 3883 *\ * | *\ *) 3884 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3885 *) 3886 install_sh="\${SHELL} $am_aux_dir/install-sh" 3887 esac 3888fi 3889 3890# Installed binaries are usually stripped using 'strip' when the user 3891# run "make install-strip". However 'strip' might not be the right 3892# tool to use in cross-compilation environments, therefore Automake 3893# will honor the 'STRIP' environment variable to overrule this program. 3894if test "$cross_compiling" != no; then 3895 if test -n "$ac_tool_prefix"; then 3896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3897set dummy ${ac_tool_prefix}strip; ac_word=$2 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3899$as_echo_n "checking for $ac_word... " >&6; } 3900if ${ac_cv_prog_STRIP+:} false; then : 3901 $as_echo_n "(cached) " >&6 3902else 3903 if test -n "$STRIP"; then 3904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3905else 3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3907for as_dir in $PATH 3908do 3909 IFS=$as_save_IFS 3910 test -z "$as_dir" && as_dir=. 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3913 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3915 break 2 3916 fi 3917done 3918 done 3919IFS=$as_save_IFS 3920 3921fi 3922fi 3923STRIP=$ac_cv_prog_STRIP 3924if test -n "$STRIP"; then 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3926$as_echo "$STRIP" >&6; } 3927else 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929$as_echo "no" >&6; } 3930fi 3931 3932 3933fi 3934if test -z "$ac_cv_prog_STRIP"; then 3935 ac_ct_STRIP=$STRIP 3936 # Extract the first word of "strip", so it can be a program name with args. 3937set dummy strip; ac_word=$2 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3939$as_echo_n "checking for $ac_word... " >&6; } 3940if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 if test -n "$ac_ct_STRIP"; then 3944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3945else 3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3947for as_dir in $PATH 3948do 3949 IFS=$as_save_IFS 3950 test -z "$as_dir" && as_dir=. 3951 for ac_exec_ext in '' $ac_executable_extensions; do 3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3953 ac_cv_prog_ac_ct_STRIP="strip" 3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3955 break 2 3956 fi 3957done 3958 done 3959IFS=$as_save_IFS 3960 3961fi 3962fi 3963ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3964if test -n "$ac_ct_STRIP"; then 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3966$as_echo "$ac_ct_STRIP" >&6; } 3967else 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969$as_echo "no" >&6; } 3970fi 3971 3972 if test "x$ac_ct_STRIP" = x; then 3973 STRIP=":" 3974 else 3975 case $cross_compiling:$ac_tool_warned in 3976yes:) 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3979ac_tool_warned=yes ;; 3980esac 3981 STRIP=$ac_ct_STRIP 3982 fi 3983else 3984 STRIP="$ac_cv_prog_STRIP" 3985fi 3986 3987fi 3988INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3989 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3991$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3992if test -z "$MKDIR_P"; then 3993 if ${ac_cv_path_mkdir+:} false; then : 3994 $as_echo_n "(cached) " >&6 3995else 3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3997for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3998do 3999 IFS=$as_save_IFS 4000 test -z "$as_dir" && as_dir=. 4001 for ac_prog in mkdir gmkdir; do 4002 for ac_exec_ext in '' $ac_executable_extensions; do 4003 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4004 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4005 'mkdir (GNU coreutils) '* | \ 4006 'mkdir (coreutils) '* | \ 4007 'mkdir (fileutils) '4.1*) 4008 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4009 break 3;; 4010 esac 4011 done 4012 done 4013 done 4014IFS=$as_save_IFS 4015 4016fi 4017 4018 test -d ./--version && rmdir ./--version 4019 if test "${ac_cv_path_mkdir+set}" = set; then 4020 MKDIR_P="$ac_cv_path_mkdir -p" 4021 else 4022 # As a last resort, use the slow shell script. Don't cache a 4023 # value for MKDIR_P within a source directory, because that will 4024 # break other packages using the cache if that directory is 4025 # removed, or if the value is a relative name. 4026 MKDIR_P="$ac_install_sh -d" 4027 fi 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4030$as_echo "$MKDIR_P" >&6; } 4031 4032for ac_prog in gawk mawk nawk awk 4033do 4034 # Extract the first word of "$ac_prog", so it can be a program name with args. 4035set dummy $ac_prog; ac_word=$2 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037$as_echo_n "checking for $ac_word... " >&6; } 4038if ${ac_cv_prog_AWK+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -n "$AWK"; then 4042 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4043else 4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_exec_ext in '' $ac_executable_extensions; do 4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4051 ac_cv_prog_AWK="$ac_prog" 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4053 break 2 4054 fi 4055done 4056 done 4057IFS=$as_save_IFS 4058 4059fi 4060fi 4061AWK=$ac_cv_prog_AWK 4062if test -n "$AWK"; then 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4064$as_echo "$AWK" >&6; } 4065else 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067$as_echo "no" >&6; } 4068fi 4069 4070 4071 test -n "$AWK" && break 4072done 4073 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4075$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4076set x ${MAKE-make} 4077ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4078if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 cat >conftest.make <<\_ACEOF 4082SHELL = /bin/sh 4083all: 4084 @echo '@@@%%%=$(MAKE)=@@@%%%' 4085_ACEOF 4086# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4087case `${MAKE-make} -f conftest.make 2>/dev/null` in 4088 *@@@%%%=?*=@@@%%%*) 4089 eval ac_cv_prog_make_${ac_make}_set=yes;; 4090 *) 4091 eval ac_cv_prog_make_${ac_make}_set=no;; 4092esac 4093rm -f conftest.make 4094fi 4095if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4097$as_echo "yes" >&6; } 4098 SET_MAKE= 4099else 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4101$as_echo "no" >&6; } 4102 SET_MAKE="MAKE=${MAKE-make}" 4103fi 4104 4105rm -rf .tst 2>/dev/null 4106mkdir .tst 2>/dev/null 4107if test -d .tst; then 4108 am__leading_dot=. 4109else 4110 am__leading_dot=_ 4111fi 4112rmdir .tst 2>/dev/null 4113 4114DEPDIR="${am__leading_dot}deps" 4115 4116ac_config_commands="$ac_config_commands depfiles" 4117 4118 4119am_make=${MAKE-make} 4120cat > confinc << 'END' 4121am__doit: 4122 @echo this is the am__doit target 4123.PHONY: am__doit 4124END 4125# If we don't find an include directive, just comment out the code. 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4127$as_echo_n "checking for style of include used by $am_make... " >&6; } 4128am__include="#" 4129am__quote= 4130_am_result=none 4131# First try GNU make style include. 4132echo "include confinc" > confmf 4133# Ignore all kinds of additional output from 'make'. 4134case `$am_make -s -f confmf 2> /dev/null` in #( 4135*the\ am__doit\ target*) 4136 am__include=include 4137 am__quote= 4138 _am_result=GNU 4139 ;; 4140esac 4141# Now try BSD make style include. 4142if test "$am__include" = "#"; then 4143 echo '.include "confinc"' > confmf 4144 case `$am_make -s -f confmf 2> /dev/null` in #( 4145 *the\ am__doit\ target*) 4146 am__include=.include 4147 am__quote="\"" 4148 _am_result=BSD 4149 ;; 4150 esac 4151fi 4152 4153 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4155$as_echo "$_am_result" >&6; } 4156rm -f confinc confmf 4157 4158# Check whether --enable-dependency-tracking was given. 4159if test "${enable_dependency_tracking+set}" = set; then : 4160 enableval=$enable_dependency_tracking; 4161fi 4162 4163if test "x$enable_dependency_tracking" != xno; then 4164 am_depcomp="$ac_aux_dir/depcomp" 4165 AMDEPBACKSLASH='\' 4166 am__nodep='_no' 4167fi 4168 if test "x$enable_dependency_tracking" != xno; then 4169 AMDEP_TRUE= 4170 AMDEP_FALSE='#' 4171else 4172 AMDEP_TRUE='#' 4173 AMDEP_FALSE= 4174fi 4175 4176 4177# Check whether --enable-silent-rules was given. 4178if test "${enable_silent_rules+set}" = set; then : 4179 enableval=$enable_silent_rules; 4180fi 4181 4182case $enable_silent_rules in # ((( 4183 yes) AM_DEFAULT_VERBOSITY=0;; 4184 no) AM_DEFAULT_VERBOSITY=1;; 4185 *) AM_DEFAULT_VERBOSITY=1;; 4186esac 4187am_make=${MAKE-make} 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4189$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4190if ${am_cv_make_support_nested_variables+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 if $as_echo 'TRUE=$(BAR$(V)) 4194BAR0=false 4195BAR1=true 4196V=1 4197am__doit: 4198 @$(TRUE) 4199.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4200 am_cv_make_support_nested_variables=yes 4201else 4202 am_cv_make_support_nested_variables=no 4203fi 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4206$as_echo "$am_cv_make_support_nested_variables" >&6; } 4207if test $am_cv_make_support_nested_variables = yes; then 4208 AM_V='$(V)' 4209 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4210else 4211 AM_V=$AM_DEFAULT_VERBOSITY 4212 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4213fi 4214AM_BACKSLASH='\' 4215 4216if test "`cd $srcdir && pwd`" != "`pwd`"; then 4217 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4218 # is not polluted with repeated "-I." 4219 am__isrc=' -I$(srcdir)' 4220 # test to see if srcdir already configured 4221 if test -f $srcdir/config.status; then 4222 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4223 fi 4224fi 4225 4226# test whether we have cygpath 4227if test -z "$CYGPATH_W"; then 4228 if (cygpath --version) >/dev/null 2>/dev/null; then 4229 CYGPATH_W='cygpath -w' 4230 else 4231 CYGPATH_W=echo 4232 fi 4233fi 4234 4235 4236# Define the identity of the package. 4237 PACKAGE='xcb-util-xrm' 4238 VERSION='1.3' 4239 4240 4241cat >>confdefs.h <<_ACEOF 4242#define PACKAGE "$PACKAGE" 4243_ACEOF 4244 4245 4246cat >>confdefs.h <<_ACEOF 4247#define VERSION "$VERSION" 4248_ACEOF 4249 4250# Some tools Automake needs. 4251 4252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4253 4254 4255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4256 4257 4258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4259 4260 4261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4262 4263 4264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4265 4266# For better backward compatibility. To be removed once Automake 1.9.x 4267# dies out for good. For more background, see: 4268# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4269# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4270mkdir_p='$(MKDIR_P)' 4271 4272# We need awk for the "check" target (and possibly the TAP driver). The 4273# system "awk" is bad on some platforms. 4274# Always define AMTAR for backward compatibility. Yes, it's still used 4275# in the wild :-( We should find a proper way to deprecate it ... 4276AMTAR='$${TAR-tar}' 4277 4278 4279# We'll loop over all known methods to create a tar archive until one works. 4280_am_tools='gnutar pax cpio none' 4281 4282am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4283 4284 4285 4286 4287 4288depcc="$CC" am_compiler_list= 4289 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4291$as_echo_n "checking dependency style of $depcc... " >&6; } 4292if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4296 # We make a subdir and do the tests there. Otherwise we can end up 4297 # making bogus files that we don't know about and never remove. For 4298 # instance it was reported that on HP-UX the gcc test will end up 4299 # making a dummy file named 'D' -- because '-MD' means "put the output 4300 # in D". 4301 rm -rf conftest.dir 4302 mkdir conftest.dir 4303 # Copy depcomp to subdir because otherwise we won't find it if we're 4304 # using a relative directory. 4305 cp "$am_depcomp" conftest.dir 4306 cd conftest.dir 4307 # We will build objects and dependencies in a subdirectory because 4308 # it helps to detect inapplicable dependency modes. For instance 4309 # both Tru64's cc and ICC support -MD to output dependencies as a 4310 # side effect of compilation, but ICC will put the dependencies in 4311 # the current directory while Tru64 will put them in the object 4312 # directory. 4313 mkdir sub 4314 4315 am_cv_CC_dependencies_compiler_type=none 4316 if test "$am_compiler_list" = ""; then 4317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4318 fi 4319 am__universal=false 4320 case " $depcc " in #( 4321 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4322 esac 4323 4324 for depmode in $am_compiler_list; do 4325 # Setup a source with many dependencies, because some compilers 4326 # like to wrap large dependency lists on column 80 (with \), and 4327 # we should not choose a depcomp mode which is confused by this. 4328 # 4329 # We need to recreate these files for each test, as the compiler may 4330 # overwrite some of them when testing with obscure command lines. 4331 # This happens at least with the AIX C compiler. 4332 : > sub/conftest.c 4333 for i in 1 2 3 4 5 6; do 4334 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4335 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4336 # Solaris 10 /bin/sh. 4337 echo '/* dummy */' > sub/conftst$i.h 4338 done 4339 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4340 4341 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4342 # mode. It turns out that the SunPro C++ compiler does not properly 4343 # handle '-M -o', and we need to detect this. Also, some Intel 4344 # versions had trouble with output in subdirs. 4345 am__obj=sub/conftest.${OBJEXT-o} 4346 am__minus_obj="-o $am__obj" 4347 case $depmode in 4348 gcc) 4349 # This depmode causes a compiler race in universal mode. 4350 test "$am__universal" = false || continue 4351 ;; 4352 nosideeffect) 4353 # After this tag, mechanisms are not by side-effect, so they'll 4354 # only be used when explicitly requested. 4355 if test "x$enable_dependency_tracking" = xyes; then 4356 continue 4357 else 4358 break 4359 fi 4360 ;; 4361 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4362 # This compiler won't grok '-c -o', but also, the minuso test has 4363 # not run yet. These depmodes are late enough in the game, and 4364 # so weak that their functioning should not be impacted. 4365 am__obj=conftest.${OBJEXT-o} 4366 am__minus_obj= 4367 ;; 4368 none) break ;; 4369 esac 4370 if depmode=$depmode \ 4371 source=sub/conftest.c object=$am__obj \ 4372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4373 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4374 >/dev/null 2>conftest.err && 4375 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4376 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4377 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4379 # icc doesn't choke on unknown options, it will just issue warnings 4380 # or remarks (even with -Werror). So we grep stderr for any message 4381 # that says an option was ignored or not supported. 4382 # When given -MP, icc 7.0 and 7.1 complain thusly: 4383 # icc: Command line warning: ignoring option '-M'; no argument required 4384 # The diagnosis changed in icc 8.0: 4385 # icc: Command line remark: option '-MP' not supported 4386 if (grep 'ignoring option' conftest.err || 4387 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4388 am_cv_CC_dependencies_compiler_type=$depmode 4389 break 4390 fi 4391 fi 4392 done 4393 4394 cd .. 4395 rm -rf conftest.dir 4396else 4397 am_cv_CC_dependencies_compiler_type=none 4398fi 4399 4400fi 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4402$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4403CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4404 4405 if 4406 test "x$enable_dependency_tracking" != xno \ 4407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4408 am__fastdepCC_TRUE= 4409 am__fastdepCC_FALSE='#' 4410else 4411 am__fastdepCC_TRUE='#' 4412 am__fastdepCC_FALSE= 4413fi 4414 4415 4416 4417# POSIX will say in a future version that running "rm -f" with no argument 4418# is OK; and we want to be able to make that assumption in our Makefile 4419# recipes. So use an aggressive probe to check that the usage we want is 4420# actually supported "in the wild" to an acceptable degree. 4421# See automake bug#10828. 4422# To make any issue more visible, cause the running configure to be aborted 4423# by default if the 'rm' program in use doesn't match our expectations; the 4424# user can still override this though. 4425if rm -f && rm -fr && rm -rf; then : OK; else 4426 cat >&2 <<'END' 4427Oops! 4428 4429Your 'rm' program seems unable to run without file operands specified 4430on the command line, even when the '-f' option is present. This is contrary 4431to the behaviour of most rm programs out there, and not conforming with 4432the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4433 4434Please tell bug-automake@gnu.org about your system, including the value 4435of your $PATH and any error possibly output before this message. This 4436can help us improve future automake versions. 4437 4438END 4439 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4440 echo 'Configuration will proceed anyway, since you have set the' >&2 4441 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4442 echo >&2 4443 else 4444 cat >&2 <<'END' 4445Aborting the configuration process, to ensure you take notice of the issue. 4446 4447You can download and install GNU coreutils to get an 'rm' implementation 4448that behaves properly: <http://www.gnu.org/software/coreutils/>. 4449 4450If you want to complete the configuration process using your problematic 4451'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4452to "yes", and re-run configure. 4453 4454END 4455 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4456 fi 4457fi 4458 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4461$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4462 # Check whether --enable-maintainer-mode was given. 4463if test "${enable_maintainer_mode+set}" = set; then : 4464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4465else 4466 USE_MAINTAINER_MODE=no 4467fi 4468 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4470$as_echo "$USE_MAINTAINER_MODE" >&6; } 4471 if test $USE_MAINTAINER_MODE = yes; then 4472 MAINTAINER_MODE_TRUE= 4473 MAINTAINER_MODE_FALSE='#' 4474else 4475 MAINTAINER_MODE_TRUE='#' 4476 MAINTAINER_MODE_FALSE= 4477fi 4478 4479 MAINT=$MAINTAINER_MODE_TRUE 4480 4481 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -I option" >&5 4485$as_echo_n "checking for m4 that supports -I option... " >&6; } 4486if ${ac_cv_path_M4+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test -z "$M4"; then 4490 ac_path_M4_found=false 4491 # Loop through the user's path and test for each of PROGNAME-LIST 4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493as_dummy="$PATH:/usr/gnu/bin" 4494for as_dir in $as_dummy 4495do 4496 IFS=$as_save_IFS 4497 test -z "$as_dir" && as_dir=. 4498 for ac_prog in m4 gm4; do 4499 for ac_exec_ext in '' $ac_executable_extensions; do 4500 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext" 4501 as_fn_executable_p "$ac_path_M4" || continue 4502$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \ 4503 ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=: 4504 $ac_path_M4_found && break 3 4505 done 4506 done 4507 done 4508IFS=$as_save_IFS 4509 if test -z "$ac_cv_path_M4"; then 4510 as_fn_error $? "could not find m4 that supports -I option" "$LINENO" 5 4511 fi 4512else 4513 ac_cv_path_M4=$M4 4514fi 4515 4516fi 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5 4518$as_echo "$ac_cv_path_M4" >&6; } 4519 4520M4=$ac_cv_path_M4 4521 4522 4523case `pwd` in 4524 *\ * | *\ *) 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4526$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4527esac 4528 4529 4530 4531macro_version='2.4.6.40-6ca5-dirty' 4532macro_revision='2.4.6.40' 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546ltmain=$ac_aux_dir/ltmain.sh 4547 4548# Make sure we can run config.sub. 4549$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4553$as_echo_n "checking build system type... " >&6; } 4554if ${ac_cv_build+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 ac_build_alias=$build_alias 4558test "x$ac_build_alias" = x && 4559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4560test "x$ac_build_alias" = x && 4561 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4564 4565fi 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4567$as_echo "$ac_cv_build" >&6; } 4568case $ac_cv_build in 4569*-*-*) ;; 4570*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4571esac 4572build=$ac_cv_build 4573ac_save_IFS=$IFS; IFS='-' 4574set x $ac_cv_build 4575shift 4576build_cpu=$1 4577build_vendor=$2 4578shift; shift 4579# Remember, the first character of IFS is used to create $*, 4580# except with old shells: 4581build_os=$* 4582IFS=$ac_save_IFS 4583case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4584 4585 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4587$as_echo_n "checking host system type... " >&6; } 4588if ${ac_cv_host+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if test "x$host_alias" = x; then 4592 ac_cv_host=$ac_cv_build 4593else 4594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4596fi 4597 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4600$as_echo "$ac_cv_host" >&6; } 4601case $ac_cv_host in 4602*-*-*) ;; 4603*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4604esac 4605host=$ac_cv_host 4606ac_save_IFS=$IFS; IFS='-' 4607set x $ac_cv_host 4608shift 4609host_cpu=$1 4610host_vendor=$2 4611shift; shift 4612# Remember, the first character of IFS is used to create $*, 4613# except with old shells: 4614host_os=$* 4615IFS=$ac_save_IFS 4616case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4617 4618 4619# Backslashify metacharacters that are still active within 4620# double-quoted strings. 4621sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4622 4623# Same as above, but do not quote variable references. 4624double_quote_subst='s/\(["`\\]\)/\\\1/g' 4625 4626# Sed substitution to delay expansion of an escaped shell variable in a 4627# double_quote_subst'ed string. 4628delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4629 4630# Sed substitution to delay expansion of an escaped single quote. 4631delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4632 4633# Sed substitution to avoid accidental globbing in evaled expressions 4634no_glob_subst='s/\*/\\\*/g' 4635 4636ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4637ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4638ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4639 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4641$as_echo_n "checking how to print strings... " >&6; } 4642# Test print first, because it will be a builtin if present. 4643if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4645 ECHO='print -r --' 4646elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4647 ECHO='printf %s\n' 4648else 4649 # Use this function as a fallback that always works. 4650 func_fallback_echo () 4651 { 4652 eval 'cat <<_LTECHO_EOF 4653$1 4654_LTECHO_EOF' 4655 } 4656 ECHO='func_fallback_echo' 4657fi 4658 4659# func_echo_all arg... 4660# Invoke $ECHO with all args, space-separated. 4661func_echo_all () 4662{ 4663 $ECHO "" 4664} 4665 4666case $ECHO in 4667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4668$as_echo "printf" >&6; } ;; 4669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4670$as_echo "print -r" >&6; } ;; 4671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4672$as_echo "cat" >&6; } ;; 4673esac 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4689$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4690if ${ac_cv_path_SED+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4694 for ac_i in 1 2 3 4 5 6 7; do 4695 ac_script="$ac_script$as_nl$ac_script" 4696 done 4697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4698 { ac_script=; unset ac_script;} 4699 if test -z "$SED"; then 4700 ac_path_SED_found=false 4701 # Loop through the user's path and test for each of PROGNAME-LIST 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH 4704do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_prog in sed gsed; do 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4710 as_fn_executable_p "$ac_path_SED" || continue 4711# Check for GNU ac_path_SED and select it if it is found. 4712 # Check for GNU $ac_path_SED 4713case `"$ac_path_SED" --version 2>&1` in 4714*GNU*) 4715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4716*) 4717 ac_count=0 4718 $as_echo_n 0123456789 >"conftest.in" 4719 while : 4720 do 4721 cat "conftest.in" "conftest.in" >"conftest.tmp" 4722 mv "conftest.tmp" "conftest.in" 4723 cp "conftest.in" "conftest.nl" 4724 $as_echo '' >> "conftest.nl" 4725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4727 as_fn_arith $ac_count + 1 && ac_count=$as_val 4728 if test $ac_count -gt ${ac_path_SED_max-0}; then 4729 # Best one so far, save it but keep looking for a better one 4730 ac_cv_path_SED="$ac_path_SED" 4731 ac_path_SED_max=$ac_count 4732 fi 4733 # 10*(2^10) chars as input seems more than enough 4734 test $ac_count -gt 10 && break 4735 done 4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4737esac 4738 4739 $ac_path_SED_found && break 3 4740 done 4741 done 4742 done 4743IFS=$as_save_IFS 4744 if test -z "$ac_cv_path_SED"; then 4745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4746 fi 4747else 4748 ac_cv_path_SED=$SED 4749fi 4750 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4753$as_echo "$ac_cv_path_SED" >&6; } 4754 SED="$ac_cv_path_SED" 4755 rm -f conftest.sed 4756 4757test -z "$SED" && SED=sed 4758Xsed="$SED -e 1s/^X//" 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4771$as_echo_n "checking for fgrep... " >&6; } 4772if ${ac_cv_path_FGREP+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4776 then ac_cv_path_FGREP="$GREP -F" 4777 else 4778 if test -z "$FGREP"; then 4779 ac_path_FGREP_found=false 4780 # Loop through the user's path and test for each of PROGNAME-LIST 4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4783do 4784 IFS=$as_save_IFS 4785 test -z "$as_dir" && as_dir=. 4786 for ac_prog in fgrep; do 4787 for ac_exec_ext in '' $ac_executable_extensions; do 4788 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4789 as_fn_executable_p "$ac_path_FGREP" || continue 4790# Check for GNU ac_path_FGREP and select it if it is found. 4791 # Check for GNU $ac_path_FGREP 4792case `"$ac_path_FGREP" --version 2>&1` in 4793*GNU*) 4794 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4795*) 4796 ac_count=0 4797 $as_echo_n 0123456789 >"conftest.in" 4798 while : 4799 do 4800 cat "conftest.in" "conftest.in" >"conftest.tmp" 4801 mv "conftest.tmp" "conftest.in" 4802 cp "conftest.in" "conftest.nl" 4803 $as_echo 'FGREP' >> "conftest.nl" 4804 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4806 as_fn_arith $ac_count + 1 && ac_count=$as_val 4807 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4808 # Best one so far, save it but keep looking for a better one 4809 ac_cv_path_FGREP="$ac_path_FGREP" 4810 ac_path_FGREP_max=$ac_count 4811 fi 4812 # 10*(2^10) chars as input seems more than enough 4813 test $ac_count -gt 10 && break 4814 done 4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4816esac 4817 4818 $ac_path_FGREP_found && break 3 4819 done 4820 done 4821 done 4822IFS=$as_save_IFS 4823 if test -z "$ac_cv_path_FGREP"; then 4824 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4825 fi 4826else 4827 ac_cv_path_FGREP=$FGREP 4828fi 4829 4830 fi 4831fi 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4833$as_echo "$ac_cv_path_FGREP" >&6; } 4834 FGREP="$ac_cv_path_FGREP" 4835 4836 4837test -z "$GREP" && GREP=grep 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857# Check whether --with-gnu-ld was given. 4858if test "${with_gnu_ld+set}" = set; then : 4859 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4860else 4861 with_gnu_ld=no 4862fi 4863 4864ac_prog=ld 4865if test yes = "$GCC"; then 4866 # Check if gcc -print-prog-name=ld gives a path. 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4868$as_echo_n "checking for ld used by $CC... " >&6; } 4869 case $host in 4870 *-*-mingw*) 4871 # gcc leaves a trailing carriage return, which upsets mingw 4872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4873 *) 4874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4875 esac 4876 case $ac_prog in 4877 # Accept absolute paths. 4878 [\\/]* | ?:[\\/]*) 4879 re_direlt='/[^/][^/]*/\.\./' 4880 # Canonicalize the pathname of ld 4881 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4882 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4883 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4884 done 4885 test -z "$LD" && LD=$ac_prog 4886 ;; 4887 "") 4888 # If it fails, then pretend we aren't using GCC. 4889 ac_prog=ld 4890 ;; 4891 *) 4892 # If it is relative, then search for the first ld in PATH. 4893 with_gnu_ld=unknown 4894 ;; 4895 esac 4896elif test yes = "$with_gnu_ld"; then 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4898$as_echo_n "checking for GNU ld... " >&6; } 4899else 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4901$as_echo_n "checking for non-GNU ld... " >&6; } 4902fi 4903if ${lt_cv_path_LD+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 if test -z "$LD"; then 4907 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4908 for ac_dir in $PATH; do 4909 IFS=$lt_save_ifs 4910 test -z "$ac_dir" && ac_dir=. 4911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4912 lt_cv_path_LD=$ac_dir/$ac_prog 4913 # Check to see if the program is GNU ld. I'd rather use --version, 4914 # but apparently some variants of GNU ld only accept -v. 4915 # Break only if it was the GNU/non-GNU ld that we prefer. 4916 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4917 *GNU* | *'with BFD'*) 4918 test no != "$with_gnu_ld" && break 4919 ;; 4920 *) 4921 test yes != "$with_gnu_ld" && break 4922 ;; 4923 esac 4924 fi 4925 done 4926 IFS=$lt_save_ifs 4927else 4928 lt_cv_path_LD=$LD # Let the user override the test with a path. 4929fi 4930fi 4931 4932LD=$lt_cv_path_LD 4933if test -n "$LD"; then 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4935$as_echo "$LD" >&6; } 4936else 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4938$as_echo "no" >&6; } 4939fi 4940test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4942$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4943if ${lt_cv_prog_gnu_ld+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4947case `$LD -v 2>&1 </dev/null` in 4948*GNU* | *'with BFD'*) 4949 lt_cv_prog_gnu_ld=yes 4950 ;; 4951*) 4952 lt_cv_prog_gnu_ld=no 4953 ;; 4954esac 4955fi 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4957$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4958with_gnu_ld=$lt_cv_prog_gnu_ld 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4969$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4970if ${lt_cv_path_NM+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 if test -n "$NM"; then 4974 # Let the user override the test. 4975 lt_cv_path_NM=$NM 4976else 4977 lt_nm_to_check=${ac_tool_prefix}nm 4978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4979 lt_nm_to_check="$lt_nm_to_check nm" 4980 fi 4981 for lt_tmp_nm in $lt_nm_to_check; do 4982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4983 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4984 IFS=$lt_save_ifs 4985 test -z "$ac_dir" && ac_dir=. 4986 tmp_nm=$ac_dir/$lt_tmp_nm 4987 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4988 # Check to see if the nm accepts a BSD-compat flag. 4989 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4990 # nm: unknown option "B" ignored 4991 # Tru64's nm complains that /dev/null is an invalid object file 4992 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4993 case $build_os in 4994 mingw*) lt_bad_file=conftest.nm/nofile ;; 4995 *) lt_bad_file=/dev/null ;; 4996 esac 4997 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4998 *$lt_bad_file* | *'Invalid file or object type'*) 4999 lt_cv_path_NM="$tmp_nm -B" 5000 break 2 5001 ;; 5002 *) 5003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5004 */dev/null*) 5005 lt_cv_path_NM="$tmp_nm -p" 5006 break 2 5007 ;; 5008 *) 5009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5010 continue # so that we can try to find one that supports BSD flags 5011 ;; 5012 esac 5013 ;; 5014 esac 5015 fi 5016 done 5017 IFS=$lt_save_ifs 5018 done 5019 : ${lt_cv_path_NM=no} 5020fi 5021fi 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5023$as_echo "$lt_cv_path_NM" >&6; } 5024if test no != "$lt_cv_path_NM"; then 5025 NM=$lt_cv_path_NM 5026else 5027 # Didn't find any BSD compatible name lister, look for dumpbin. 5028 if test -n "$DUMPBIN"; then : 5029 # Let the user override the test. 5030 else 5031 if test -n "$ac_tool_prefix"; then 5032 for ac_prog in dumpbin "link -dump" 5033 do 5034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5035set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5037$as_echo_n "checking for $ac_word... " >&6; } 5038if ${ac_cv_prog_DUMPBIN+:} false; then : 5039 $as_echo_n "(cached) " >&6 5040else 5041 if test -n "$DUMPBIN"; then 5042 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5043else 5044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5045for as_dir in $PATH 5046do 5047 IFS=$as_save_IFS 5048 test -z "$as_dir" && as_dir=. 5049 for ac_exec_ext in '' $ac_executable_extensions; do 5050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5051 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5053 break 2 5054 fi 5055done 5056 done 5057IFS=$as_save_IFS 5058 5059fi 5060fi 5061DUMPBIN=$ac_cv_prog_DUMPBIN 5062if test -n "$DUMPBIN"; then 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5064$as_echo "$DUMPBIN" >&6; } 5065else 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5067$as_echo "no" >&6; } 5068fi 5069 5070 5071 test -n "$DUMPBIN" && break 5072 done 5073fi 5074if test -z "$DUMPBIN"; then 5075 ac_ct_DUMPBIN=$DUMPBIN 5076 for ac_prog in dumpbin "link -dump" 5077do 5078 # Extract the first word of "$ac_prog", so it can be a program name with args. 5079set dummy $ac_prog; ac_word=$2 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5081$as_echo_n "checking for $ac_word... " >&6; } 5082if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 if test -n "$ac_ct_DUMPBIN"; then 5086 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5087else 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5095 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099done 5100 done 5101IFS=$as_save_IFS 5102 5103fi 5104fi 5105ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5106if test -n "$ac_ct_DUMPBIN"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5108$as_echo "$ac_ct_DUMPBIN" >&6; } 5109else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 5115 test -n "$ac_ct_DUMPBIN" && break 5116done 5117 5118 if test "x$ac_ct_DUMPBIN" = x; then 5119 DUMPBIN=":" 5120 else 5121 case $cross_compiling:$ac_tool_warned in 5122yes:) 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5125ac_tool_warned=yes ;; 5126esac 5127 DUMPBIN=$ac_ct_DUMPBIN 5128 fi 5129fi 5130 5131 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5132 *COFF*) 5133 DUMPBIN="$DUMPBIN -symbols -headers" 5134 ;; 5135 *) 5136 DUMPBIN=: 5137 ;; 5138 esac 5139 fi 5140 5141 if test : != "$DUMPBIN"; then 5142 NM=$DUMPBIN 5143 fi 5144fi 5145test -z "$NM" && NM=nm 5146 5147 5148 5149 5150 5151 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5153$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5154if ${lt_cv_nm_interface+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 lt_cv_nm_interface="BSD nm" 5158 echo "int some_variable = 0;" > conftest.$ac_ext 5159 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5160 (eval "$ac_compile" 2>conftest.err) 5161 cat conftest.err >&5 5162 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5164 cat conftest.err >&5 5165 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5166 cat conftest.out >&5 5167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5168 lt_cv_nm_interface="MS dumpbin" 5169 fi 5170 rm -f conftest* 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5173$as_echo "$lt_cv_nm_interface" >&6; } 5174 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5176$as_echo_n "checking whether ln -s works... " >&6; } 5177LN_S=$as_ln_s 5178if test "$LN_S" = "ln -s"; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5180$as_echo "yes" >&6; } 5181else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5183$as_echo "no, using $LN_S" >&6; } 5184fi 5185 5186# find the maximum length of command line arguments 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5188$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5189if ${lt_cv_sys_max_cmd_len+:} false; then : 5190 $as_echo_n "(cached) " >&6 5191else 5192 i=0 5193 teststring=ABCD 5194 5195 case $build_os in 5196 msdosdjgpp*) 5197 # On DJGPP, this test can blow up pretty badly due to problems in libc 5198 # (any single argument exceeding 2000 bytes causes a buffer overrun 5199 # during glob expansion). Even if it were fixed, the result of this 5200 # check would be larger than it should be. 5201 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5202 ;; 5203 5204 gnu*) 5205 # Under GNU Hurd, this test is not required because there is 5206 # no limit to the length of command line arguments. 5207 # Libtool will interpret -1 as no limit whatsoever 5208 lt_cv_sys_max_cmd_len=-1; 5209 ;; 5210 5211 cygwin* | mingw* | cegcc*) 5212 # On Win9x/ME, this test blows up -- it succeeds, but takes 5213 # about 5 minutes as the teststring grows exponentially. 5214 # Worse, since 9x/ME are not pre-emptively multitasking, 5215 # you end up with a "frozen" computer, even though with patience 5216 # the test eventually succeeds (with a max line length of 256k). 5217 # Instead, let's just punt: use the minimum linelength reported by 5218 # all of the supported platforms: 8192 (on NT/2K/XP). 5219 lt_cv_sys_max_cmd_len=8192; 5220 ;; 5221 5222 mint*) 5223 # On MiNT this can take a long time and run out of memory. 5224 lt_cv_sys_max_cmd_len=8192; 5225 ;; 5226 5227 amigaos*) 5228 # On AmigaOS with pdksh, this test takes hours, literally. 5229 # So we just punt and use a minimum line length of 8192. 5230 lt_cv_sys_max_cmd_len=8192; 5231 ;; 5232 5233 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5234 # This has been around since 386BSD, at least. Likely further. 5235 if test -x /sbin/sysctl; then 5236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5237 elif test -x /usr/sbin/sysctl; then 5238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5239 else 5240 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5241 fi 5242 # And add a safety zone 5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5245 ;; 5246 5247 interix*) 5248 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5249 lt_cv_sys_max_cmd_len=196608 5250 ;; 5251 5252 os2*) 5253 # The test takes a long time on OS/2. 5254 lt_cv_sys_max_cmd_len=8192 5255 ;; 5256 5257 osf*) 5258 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5259 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5260 # nice to cause kernel panics so lets avoid the loop below. 5261 # First set a reasonable default. 5262 lt_cv_sys_max_cmd_len=16384 5263 # 5264 if test -x /sbin/sysconfig; then 5265 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5266 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5267 esac 5268 fi 5269 ;; 5270 sco3.2v5*) 5271 lt_cv_sys_max_cmd_len=102400 5272 ;; 5273 sysv5* | sco5v6* | sysv4.2uw2*) 5274 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5275 if test -n "$kargmax"; then 5276 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5277 else 5278 lt_cv_sys_max_cmd_len=32768 5279 fi 5280 ;; 5281 *) 5282 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5283 if test -n "$lt_cv_sys_max_cmd_len" && \ 5284 test undefined != "$lt_cv_sys_max_cmd_len"; then 5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5287 else 5288 # Make teststring a little bigger before we do anything with it. 5289 # a 1K string should be a reasonable start. 5290 for i in 1 2 3 4 5 6 7 8; do 5291 teststring=$teststring$teststring 5292 done 5293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5294 # If test is not a shell built-in, we'll probably end up computing a 5295 # maximum length that is only half of the actual maximum length, but 5296 # we can't tell. 5297 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5298 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5299 test 17 != "$i" # 1/2 MB should be enough 5300 do 5301 i=`expr $i + 1` 5302 teststring=$teststring$teststring 5303 done 5304 # Only check the string length outside the loop. 5305 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5306 teststring= 5307 # Add a significant safety factor because C++ compilers can tack on 5308 # massive amounts of additional arguments before passing them to the 5309 # linker. It appears as though 1/2 is a usable value. 5310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5311 fi 5312 ;; 5313 esac 5314 5315fi 5316 5317if test -n "$lt_cv_sys_max_cmd_len"; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5319$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5320else 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5322$as_echo "none" >&6; } 5323fi 5324max_cmd_len=$lt_cv_sys_max_cmd_len 5325 5326 5327 5328 5329 5330 5331: ${CP="cp -f"} 5332: ${MV="mv -f"} 5333: ${RM="rm -f"} 5334 5335if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5336 lt_unset=unset 5337else 5338 lt_unset=false 5339fi 5340 5341 5342 5343 5344 5345# test EBCDIC or ASCII 5346case `echo X|tr X '\101'` in 5347 A) # ASCII based system 5348 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5349 lt_SP2NL='tr \040 \012' 5350 lt_NL2SP='tr \015\012 \040\040' 5351 ;; 5352 *) # EBCDIC based system 5353 lt_SP2NL='tr \100 \n' 5354 lt_NL2SP='tr \r\n \100\100' 5355 ;; 5356esac 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5367$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5368if ${lt_cv_to_host_file_cmd+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 case $host in 5372 *-*-mingw* ) 5373 case $build in 5374 *-*-mingw* ) # actually msys 5375 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5376 ;; 5377 *-*-cygwin* ) 5378 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5379 ;; 5380 * ) # otherwise, assume *nix 5381 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5382 ;; 5383 esac 5384 ;; 5385 *-*-cygwin* ) 5386 case $build in 5387 *-*-mingw* ) # actually msys 5388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5389 ;; 5390 *-*-cygwin* ) 5391 lt_cv_to_host_file_cmd=func_convert_file_noop 5392 ;; 5393 * ) # otherwise, assume *nix 5394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5395 ;; 5396 esac 5397 ;; 5398 * ) # unhandled hosts (and "normal" native builds) 5399 lt_cv_to_host_file_cmd=func_convert_file_noop 5400 ;; 5401esac 5402 5403fi 5404 5405to_host_file_cmd=$lt_cv_to_host_file_cmd 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5407$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5408 5409 5410 5411 5412 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5414$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5415if ${lt_cv_to_tool_file_cmd+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 #assume ordinary cross tools, or native build. 5419lt_cv_to_tool_file_cmd=func_convert_file_noop 5420case $host in 5421 *-*-mingw* ) 5422 case $build in 5423 *-*-mingw* ) # actually msys 5424 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5425 ;; 5426 esac 5427 ;; 5428esac 5429 5430fi 5431 5432to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5434$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5435 5436 5437 5438 5439 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5441$as_echo_n "checking for $LD option to reload object files... " >&6; } 5442if ${lt_cv_ld_reload_flag+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 lt_cv_ld_reload_flag='-r' 5446fi 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5448$as_echo "$lt_cv_ld_reload_flag" >&6; } 5449reload_flag=$lt_cv_ld_reload_flag 5450case $reload_flag in 5451"" | " "*) ;; 5452*) reload_flag=" $reload_flag" ;; 5453esac 5454reload_cmds='$LD$reload_flag -o $output$reload_objs' 5455case $host_os in 5456 cygwin* | mingw* | pw32* | cegcc*) 5457 if test yes != "$GCC"; then 5458 reload_cmds=false 5459 fi 5460 ;; 5461 darwin*) 5462 if test yes = "$GCC"; then 5463 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5464 else 5465 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5466 fi 5467 ;; 5468esac 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478if test -n "$ac_tool_prefix"; then 5479 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5480set dummy ${ac_tool_prefix}objdump; ac_word=$2 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5482$as_echo_n "checking for $ac_word... " >&6; } 5483if ${ac_cv_prog_OBJDUMP+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 if test -n "$OBJDUMP"; then 5487 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5488else 5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490for as_dir in $PATH 5491do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5496 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5498 break 2 5499 fi 5500done 5501 done 5502IFS=$as_save_IFS 5503 5504fi 5505fi 5506OBJDUMP=$ac_cv_prog_OBJDUMP 5507if test -n "$OBJDUMP"; then 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5509$as_echo "$OBJDUMP" >&6; } 5510else 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5512$as_echo "no" >&6; } 5513fi 5514 5515 5516fi 5517if test -z "$ac_cv_prog_OBJDUMP"; then 5518 ac_ct_OBJDUMP=$OBJDUMP 5519 # Extract the first word of "objdump", so it can be a program name with args. 5520set dummy objdump; ac_word=$2 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522$as_echo_n "checking for $ac_word... " >&6; } 5523if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 if test -n "$ac_ct_OBJDUMP"; then 5527 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5528else 5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5530for as_dir in $PATH 5531do 5532 IFS=$as_save_IFS 5533 test -z "$as_dir" && as_dir=. 5534 for ac_exec_ext in '' $ac_executable_extensions; do 5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5536 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5538 break 2 5539 fi 5540done 5541 done 5542IFS=$as_save_IFS 5543 5544fi 5545fi 5546ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5547if test -n "$ac_ct_OBJDUMP"; then 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5549$as_echo "$ac_ct_OBJDUMP" >&6; } 5550else 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5552$as_echo "no" >&6; } 5553fi 5554 5555 if test "x$ac_ct_OBJDUMP" = x; then 5556 OBJDUMP="false" 5557 else 5558 case $cross_compiling:$ac_tool_warned in 5559yes:) 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5562ac_tool_warned=yes ;; 5563esac 5564 OBJDUMP=$ac_ct_OBJDUMP 5565 fi 5566else 5567 OBJDUMP="$ac_cv_prog_OBJDUMP" 5568fi 5569 5570test -z "$OBJDUMP" && OBJDUMP=objdump 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5581$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5582if ${lt_cv_deplibs_check_method+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584else 5585 lt_cv_file_magic_cmd='$MAGIC_CMD' 5586lt_cv_file_magic_test_file= 5587lt_cv_deplibs_check_method='unknown' 5588# Need to set the preceding variable on all platforms that support 5589# interlibrary dependencies. 5590# 'none' -- dependencies not supported. 5591# 'unknown' -- same as none, but documents that we really don't know. 5592# 'pass_all' -- all dependencies passed with no checks. 5593# 'test_compile' -- check by making test program. 5594# 'file_magic [[regex]]' -- check by looking for files in library path 5595# that responds to the $file_magic_cmd with a given extended regex. 5596# If you have 'file' or equivalent on your system and you're not sure 5597# whether 'pass_all' will *always* work, you probably want this one. 5598 5599case $host_os in 5600aix[4-9]*) 5601 lt_cv_deplibs_check_method=pass_all 5602 ;; 5603 5604beos*) 5605 lt_cv_deplibs_check_method=pass_all 5606 ;; 5607 5608bsdi[45]*) 5609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5610 lt_cv_file_magic_cmd='/usr/bin/file -L' 5611 lt_cv_file_magic_test_file=/shlib/libc.so 5612 ;; 5613 5614cygwin*) 5615 # func_win32_libid is a shell function defined in ltmain.sh 5616 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5617 lt_cv_file_magic_cmd='func_win32_libid' 5618 ;; 5619 5620mingw* | pw32*) 5621 # Base MSYS/MinGW do not provide the 'file' command needed by 5622 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5623 # unless we find 'file', for example because we are cross-compiling. 5624 if ( file / ) >/dev/null 2>&1; then 5625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5626 lt_cv_file_magic_cmd='func_win32_libid' 5627 else 5628 # Keep this pattern in sync with the one in func_win32_libid. 5629 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5630 lt_cv_file_magic_cmd='$OBJDUMP -f' 5631 fi 5632 ;; 5633 5634cegcc*) 5635 # use the weaker test based on 'objdump'. See mingw*. 5636 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5637 lt_cv_file_magic_cmd='$OBJDUMP -f' 5638 ;; 5639 5640darwin* | rhapsody*) 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 5644freebsd* | dragonfly*) 5645 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5646 case $host_cpu in 5647 i*86 ) 5648 # Not sure whether the presence of OpenBSD here was a mistake. 5649 # Let's accept both of them until this is cleared up. 5650 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5651 lt_cv_file_magic_cmd=/usr/bin/file 5652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5653 ;; 5654 esac 5655 else 5656 lt_cv_deplibs_check_method=pass_all 5657 fi 5658 ;; 5659 5660haiku*) 5661 lt_cv_deplibs_check_method=pass_all 5662 ;; 5663 5664hpux10.20* | hpux11*) 5665 lt_cv_file_magic_cmd=/usr/bin/file 5666 case $host_cpu in 5667 ia64*) 5668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5669 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5670 ;; 5671 hppa*64*) 5672 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]' 5673 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5674 ;; 5675 *) 5676 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5677 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5678 ;; 5679 esac 5680 ;; 5681 5682interix[3-9]*) 5683 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5685 ;; 5686 5687irix5* | irix6* | nonstopux*) 5688 case $LD in 5689 *-32|*"-32 ") libmagic=32-bit;; 5690 *-n32|*"-n32 ") libmagic=N32;; 5691 *-64|*"-64 ") libmagic=64-bit;; 5692 *) libmagic=never-match;; 5693 esac 5694 lt_cv_deplibs_check_method=pass_all 5695 ;; 5696 5697# This must be glibc/ELF. 5698linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5699 lt_cv_deplibs_check_method=pass_all 5700 ;; 5701 5702netbsd*) 5703 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5705 else 5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5707 fi 5708 ;; 5709 5710newos6*) 5711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5712 lt_cv_file_magic_cmd=/usr/bin/file 5713 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5714 ;; 5715 5716*nto* | *qnx*) 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720openbsd* | bitrig*) 5721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5723 else 5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5725 fi 5726 ;; 5727 5728osf3* | osf4* | osf5*) 5729 lt_cv_deplibs_check_method=pass_all 5730 ;; 5731 5732rdos*) 5733 lt_cv_deplibs_check_method=pass_all 5734 ;; 5735 5736solaris*) 5737 lt_cv_deplibs_check_method=pass_all 5738 ;; 5739 5740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5741 lt_cv_deplibs_check_method=pass_all 5742 ;; 5743 5744sysv4 | sysv4.3*) 5745 case $host_vendor in 5746 motorola) 5747 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]' 5748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5749 ;; 5750 ncr) 5751 lt_cv_deplibs_check_method=pass_all 5752 ;; 5753 sequent) 5754 lt_cv_file_magic_cmd='/bin/file' 5755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5756 ;; 5757 sni) 5758 lt_cv_file_magic_cmd='/bin/file' 5759 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5760 lt_cv_file_magic_test_file=/lib/libc.so 5761 ;; 5762 siemens) 5763 lt_cv_deplibs_check_method=pass_all 5764 ;; 5765 pc) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 esac 5769 ;; 5770 5771tpf*) 5772 lt_cv_deplibs_check_method=pass_all 5773 ;; 5774os2*) 5775 lt_cv_deplibs_check_method=pass_all 5776 ;; 5777esac 5778 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5781$as_echo "$lt_cv_deplibs_check_method" >&6; } 5782 5783file_magic_glob= 5784want_nocaseglob=no 5785if test "$build" = "$host"; then 5786 case $host_os in 5787 mingw* | pw32*) 5788 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5789 want_nocaseglob=yes 5790 else 5791 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5792 fi 5793 ;; 5794 esac 5795fi 5796 5797file_magic_cmd=$lt_cv_file_magic_cmd 5798deplibs_check_method=$lt_cv_deplibs_check_method 5799test -z "$deplibs_check_method" && deplibs_check_method=unknown 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822if test -n "$ac_tool_prefix"; then 5823 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5824set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5826$as_echo_n "checking for $ac_word... " >&6; } 5827if ${ac_cv_prog_DLLTOOL+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 if test -n "$DLLTOOL"; then 5831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5832else 5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834for as_dir in $PATH 5835do 5836 IFS=$as_save_IFS 5837 test -z "$as_dir" && as_dir=. 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5840 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844done 5845 done 5846IFS=$as_save_IFS 5847 5848fi 5849fi 5850DLLTOOL=$ac_cv_prog_DLLTOOL 5851if test -n "$DLLTOOL"; then 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5853$as_echo "$DLLTOOL" >&6; } 5854else 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5856$as_echo "no" >&6; } 5857fi 5858 5859 5860fi 5861if test -z "$ac_cv_prog_DLLTOOL"; then 5862 ac_ct_DLLTOOL=$DLLTOOL 5863 # Extract the first word of "dlltool", so it can be a program name with args. 5864set dummy dlltool; ac_word=$2 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866$as_echo_n "checking for $ac_word... " >&6; } 5867if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 if test -n "$ac_ct_DLLTOOL"; then 5871 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5872else 5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874for as_dir in $PATH 5875do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5880 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884done 5885 done 5886IFS=$as_save_IFS 5887 5888fi 5889fi 5890ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5891if test -n "$ac_ct_DLLTOOL"; then 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5893$as_echo "$ac_ct_DLLTOOL" >&6; } 5894else 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5896$as_echo "no" >&6; } 5897fi 5898 5899 if test "x$ac_ct_DLLTOOL" = x; then 5900 DLLTOOL="false" 5901 else 5902 case $cross_compiling:$ac_tool_warned in 5903yes:) 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5906ac_tool_warned=yes ;; 5907esac 5908 DLLTOOL=$ac_ct_DLLTOOL 5909 fi 5910else 5911 DLLTOOL="$ac_cv_prog_DLLTOOL" 5912fi 5913 5914test -z "$DLLTOOL" && DLLTOOL=dlltool 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5926$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5927if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 lt_cv_sharedlib_from_linklib_cmd='unknown' 5931 5932case $host_os in 5933cygwin* | mingw* | pw32* | cegcc*) 5934 # two different shell functions defined in ltmain.sh; 5935 # decide which one to use based on capabilities of $DLLTOOL 5936 case `$DLLTOOL --help 2>&1` in 5937 *--identify-strict*) 5938 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5939 ;; 5940 *) 5941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5942 ;; 5943 esac 5944 ;; 5945*) 5946 # fallback: assume linklib IS sharedlib 5947 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5948 ;; 5949esac 5950 5951fi 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5953$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5954sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5955test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5956 5957 5958 5959 5960 5961 5962 5963if test -n "$ac_tool_prefix"; then 5964 for ac_prog in ar 5965 do 5966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5967set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5969$as_echo_n "checking for $ac_word... " >&6; } 5970if ${ac_cv_prog_AR+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 if test -n "$AR"; then 5974 ac_cv_prog_AR="$AR" # Let the user override the test. 5975else 5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH 5978do 5979 IFS=$as_save_IFS 5980 test -z "$as_dir" && as_dir=. 5981 for ac_exec_ext in '' $ac_executable_extensions; do 5982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5983 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5985 break 2 5986 fi 5987done 5988 done 5989IFS=$as_save_IFS 5990 5991fi 5992fi 5993AR=$ac_cv_prog_AR 5994if test -n "$AR"; then 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5996$as_echo "$AR" >&6; } 5997else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999$as_echo "no" >&6; } 6000fi 6001 6002 6003 test -n "$AR" && break 6004 done 6005fi 6006if test -z "$AR"; then 6007 ac_ct_AR=$AR 6008 for ac_prog in ar 6009do 6010 # Extract the first word of "$ac_prog", so it can be a program name with args. 6011set dummy $ac_prog; ac_word=$2 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013$as_echo_n "checking for $ac_word... " >&6; } 6014if ${ac_cv_prog_ac_ct_AR+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 if test -n "$ac_ct_AR"; then 6018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6019else 6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6021for as_dir in $PATH 6022do 6023 IFS=$as_save_IFS 6024 test -z "$as_dir" && as_dir=. 6025 for ac_exec_ext in '' $ac_executable_extensions; do 6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6027 ac_cv_prog_ac_ct_AR="$ac_prog" 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6029 break 2 6030 fi 6031done 6032 done 6033IFS=$as_save_IFS 6034 6035fi 6036fi 6037ac_ct_AR=$ac_cv_prog_ac_ct_AR 6038if test -n "$ac_ct_AR"; then 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6040$as_echo "$ac_ct_AR" >&6; } 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044fi 6045 6046 6047 test -n "$ac_ct_AR" && break 6048done 6049 6050 if test "x$ac_ct_AR" = x; then 6051 AR="false" 6052 else 6053 case $cross_compiling:$ac_tool_warned in 6054yes:) 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6057ac_tool_warned=yes ;; 6058esac 6059 AR=$ac_ct_AR 6060 fi 6061fi 6062 6063: ${AR=ar} 6064: ${AR_FLAGS=cru} 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6077$as_echo_n "checking for archiver @FILE support... " >&6; } 6078if ${lt_cv_ar_at_file+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 lt_cv_ar_at_file=no 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084 6085int 6086main () 6087{ 6088 6089 ; 6090 return 0; 6091} 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO"; then : 6094 echo conftest.$ac_objext > conftest.lst 6095 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6097 (eval $lt_ar_try) 2>&5 6098 ac_status=$? 6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6100 test $ac_status = 0; } 6101 if test 0 -eq "$ac_status"; then 6102 # Ensure the archiver fails upon bogus file names. 6103 rm -f conftest.$ac_objext libconftest.a 6104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6105 (eval $lt_ar_try) 2>&5 6106 ac_status=$? 6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6108 test $ac_status = 0; } 6109 if test 0 -ne "$ac_status"; then 6110 lt_cv_ar_at_file=@ 6111 fi 6112 fi 6113 rm -f conftest.* libconftest.a 6114 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117 6118fi 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6120$as_echo "$lt_cv_ar_at_file" >&6; } 6121 6122if test no = "$lt_cv_ar_at_file"; then 6123 archiver_list_spec= 6124else 6125 archiver_list_spec=$lt_cv_ar_at_file 6126fi 6127 6128 6129 6130 6131 6132 6133 6134if test -n "$ac_tool_prefix"; then 6135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6136set dummy ${ac_tool_prefix}strip; ac_word=$2 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6138$as_echo_n "checking for $ac_word... " >&6; } 6139if ${ac_cv_prog_STRIP+:} false; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 if test -n "$STRIP"; then 6143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6144else 6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6146for as_dir in $PATH 6147do 6148 IFS=$as_save_IFS 6149 test -z "$as_dir" && as_dir=. 6150 for ac_exec_ext in '' $ac_executable_extensions; do 6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6152 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6154 break 2 6155 fi 6156done 6157 done 6158IFS=$as_save_IFS 6159 6160fi 6161fi 6162STRIP=$ac_cv_prog_STRIP 6163if test -n "$STRIP"; then 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6165$as_echo "$STRIP" >&6; } 6166else 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6168$as_echo "no" >&6; } 6169fi 6170 6171 6172fi 6173if test -z "$ac_cv_prog_STRIP"; then 6174 ac_ct_STRIP=$STRIP 6175 # Extract the first word of "strip", so it can be a program name with args. 6176set dummy strip; ac_word=$2 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6178$as_echo_n "checking for $ac_word... " >&6; } 6179if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 if test -n "$ac_ct_STRIP"; then 6183 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6184else 6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6186for as_dir in $PATH 6187do 6188 IFS=$as_save_IFS 6189 test -z "$as_dir" && as_dir=. 6190 for ac_exec_ext in '' $ac_executable_extensions; do 6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6192 ac_cv_prog_ac_ct_STRIP="strip" 6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6194 break 2 6195 fi 6196done 6197 done 6198IFS=$as_save_IFS 6199 6200fi 6201fi 6202ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6203if test -n "$ac_ct_STRIP"; then 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6205$as_echo "$ac_ct_STRIP" >&6; } 6206else 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6208$as_echo "no" >&6; } 6209fi 6210 6211 if test "x$ac_ct_STRIP" = x; then 6212 STRIP=":" 6213 else 6214 case $cross_compiling:$ac_tool_warned in 6215yes:) 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6218ac_tool_warned=yes ;; 6219esac 6220 STRIP=$ac_ct_STRIP 6221 fi 6222else 6223 STRIP="$ac_cv_prog_STRIP" 6224fi 6225 6226test -z "$STRIP" && STRIP=: 6227 6228 6229 6230 6231 6232 6233if test -n "$ac_tool_prefix"; then 6234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6235set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6237$as_echo_n "checking for $ac_word... " >&6; } 6238if ${ac_cv_prog_RANLIB+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 if test -n "$RANLIB"; then 6242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6243else 6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6245for as_dir in $PATH 6246do 6247 IFS=$as_save_IFS 6248 test -z "$as_dir" && as_dir=. 6249 for ac_exec_ext in '' $ac_executable_extensions; do 6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6253 break 2 6254 fi 6255done 6256 done 6257IFS=$as_save_IFS 6258 6259fi 6260fi 6261RANLIB=$ac_cv_prog_RANLIB 6262if test -n "$RANLIB"; then 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6264$as_echo "$RANLIB" >&6; } 6265else 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6267$as_echo "no" >&6; } 6268fi 6269 6270 6271fi 6272if test -z "$ac_cv_prog_RANLIB"; then 6273 ac_ct_RANLIB=$RANLIB 6274 # Extract the first word of "ranlib", so it can be a program name with args. 6275set dummy ranlib; ac_word=$2 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277$as_echo_n "checking for $ac_word... " >&6; } 6278if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 if test -n "$ac_ct_RANLIB"; then 6282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6283else 6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6285for as_dir in $PATH 6286do 6287 IFS=$as_save_IFS 6288 test -z "$as_dir" && as_dir=. 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6291 ac_cv_prog_ac_ct_RANLIB="ranlib" 6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295done 6296 done 6297IFS=$as_save_IFS 6298 6299fi 6300fi 6301ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6302if test -n "$ac_ct_RANLIB"; then 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6304$as_echo "$ac_ct_RANLIB" >&6; } 6305else 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6307$as_echo "no" >&6; } 6308fi 6309 6310 if test "x$ac_ct_RANLIB" = x; then 6311 RANLIB=":" 6312 else 6313 case $cross_compiling:$ac_tool_warned in 6314yes:) 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6317ac_tool_warned=yes ;; 6318esac 6319 RANLIB=$ac_ct_RANLIB 6320 fi 6321else 6322 RANLIB="$ac_cv_prog_RANLIB" 6323fi 6324 6325test -z "$RANLIB" && RANLIB=: 6326 6327 6328 6329 6330 6331 6332# Determine commands to create old-style static archives. 6333old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6334old_postinstall_cmds='chmod 644 $oldlib' 6335old_postuninstall_cmds= 6336 6337if test -n "$RANLIB"; then 6338 case $host_os in 6339 bitrig* | openbsd*) 6340 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6341 ;; 6342 *) 6343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6344 ;; 6345 esac 6346 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6347fi 6348 6349case $host_os in 6350 darwin*) 6351 lock_old_archive_extraction=yes ;; 6352 *) 6353 lock_old_archive_extraction=no ;; 6354esac 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394# If no C compiler was specified, use CC. 6395LTCC=${LTCC-"$CC"} 6396 6397# If no C compiler flags were specified, use CFLAGS. 6398LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6399 6400# Allow CC to be a program name with arguments. 6401compiler=$CC 6402 6403 6404# Check for command to grab the raw symbol name followed by C symbol from nm. 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6406$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6407if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 6411# These are sane defaults that work on at least a few old systems. 6412# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6413 6414# Character class describing NM global symbol codes. 6415symcode='[BCDEGRST]' 6416 6417# Regexp to match symbols that can be accessed directly from C. 6418sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6419 6420# Define system-specific variables. 6421case $host_os in 6422aix*) 6423 symcode='[BCDT]' 6424 ;; 6425cygwin* | mingw* | pw32* | cegcc*) 6426 symcode='[ABCDGISTW]' 6427 ;; 6428hpux*) 6429 if test ia64 = "$host_cpu"; then 6430 symcode='[ABCDEGRST]' 6431 fi 6432 ;; 6433irix* | nonstopux*) 6434 symcode='[BCDEGRST]' 6435 ;; 6436osf*) 6437 symcode='[BCDEGQRST]' 6438 ;; 6439solaris*) 6440 symcode='[BDRT]' 6441 ;; 6442sco3.2v5*) 6443 symcode='[DT]' 6444 ;; 6445sysv4.2uw2*) 6446 symcode='[DT]' 6447 ;; 6448sysv5* | sco5v6* | unixware* | OpenUNIX*) 6449 symcode='[ABDT]' 6450 ;; 6451sysv4) 6452 symcode='[DFNSTU]' 6453 ;; 6454esac 6455 6456# If we're using GNU nm, then use its standard symbol codes. 6457case `$NM -V 2>&1` in 6458*GNU* | *'with BFD'*) 6459 symcode='[ABCDGIRSTW]' ;; 6460esac 6461 6462if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6463 # Gets list of data symbols to import. 6464 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6465 # Adjust the below global symbol transforms to fixup imported variables. 6466 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6467 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6468 lt_c_name_lib_hook="\ 6469 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6470 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6471else 6472 # Disable hooks by default. 6473 lt_cv_sys_global_symbol_to_import= 6474 lt_cdecl_hook= 6475 lt_c_name_hook= 6476 lt_c_name_lib_hook= 6477fi 6478 6479# Transform an extracted symbol line into a proper C declaration. 6480# Some systems (esp. on ia64) link data and code symbols differently, 6481# so use this general approach. 6482lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6483$lt_cdecl_hook\ 6484" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6485" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6486 6487# Transform an extracted symbol line into symbol name and symbol address 6488lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6489$lt_c_name_hook\ 6490" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6491" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6492 6493# Transform an extracted symbol line into symbol name with lib prefix and 6494# symbol address. 6495lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6496$lt_c_name_lib_hook\ 6497" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6498" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6499" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6500 6501# Handle CRLF in mingw tool chain 6502opt_cr= 6503case $build_os in 6504mingw*) 6505 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6506 ;; 6507esac 6508 6509# Try without a prefix underscore, then with it. 6510for ac_symprfx in "" "_"; do 6511 6512 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6513 symxfrm="\\1 $ac_symprfx\\2 \\2" 6514 6515 # Write the raw and C identifiers. 6516 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6517 # Fake it for dumpbin and say T for any non-static function, 6518 # D for any global variable and I for any imported variable. 6519 # Also find C++ and __fastcall symbols from MSVC++, 6520 # which start with @ or ?. 6521 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6522" {last_section=section; section=\$ 3};"\ 6523" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6524" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6525" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6526" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6527" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6528" \$ 0!~/External *\|/{next};"\ 6529" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6530" {if(hide[section]) next};"\ 6531" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6532" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6533" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6534" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6535" ' prfx=^$ac_symprfx" 6536 else 6537 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6538 fi 6539 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6540 6541 # Check to see that the pipe works correctly. 6542 pipe_works=no 6543 6544 rm -f conftest* 6545 cat > conftest.$ac_ext <<_LT_EOF 6546#ifdef __cplusplus 6547extern "C" { 6548#endif 6549char nm_test_var; 6550void nm_test_func(void); 6551void nm_test_func(void){} 6552#ifdef __cplusplus 6553} 6554#endif 6555int main(){nm_test_var='a';nm_test_func();return(0);} 6556_LT_EOF 6557 6558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6559 (eval $ac_compile) 2>&5 6560 ac_status=$? 6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6562 test $ac_status = 0; }; then 6563 # Now try to grab the symbols. 6564 nlist=conftest.nm 6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6566 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6567 ac_status=$? 6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6569 test $ac_status = 0; } && test -s "$nlist"; then 6570 # Try sorting and uniquifying the output. 6571 if sort "$nlist" | uniq > "$nlist"T; then 6572 mv -f "$nlist"T "$nlist" 6573 else 6574 rm -f "$nlist"T 6575 fi 6576 6577 # Make sure that we snagged all the symbols we need. 6578 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6579 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6580 cat <<_LT_EOF > conftest.$ac_ext 6581/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6582#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6583/* DATA imports from DLLs on WIN32 can't be const, because runtime 6584 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6585# define LT_DLSYM_CONST 6586#elif defined __osf__ 6587/* This system does not cope well with relocations in const data. */ 6588# define LT_DLSYM_CONST 6589#else 6590# define LT_DLSYM_CONST const 6591#endif 6592 6593#ifdef __cplusplus 6594extern "C" { 6595#endif 6596 6597_LT_EOF 6598 # Now generate the symbol file. 6599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6600 6601 cat <<_LT_EOF >> conftest.$ac_ext 6602 6603/* The mapping between symbol names and symbols. */ 6604LT_DLSYM_CONST struct { 6605 const char *name; 6606 void *address; 6607} 6608lt__PROGRAM__LTX_preloaded_symbols[] = 6609{ 6610 { "@PROGRAM@", (void *) 0 }, 6611_LT_EOF 6612 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6613 cat <<\_LT_EOF >> conftest.$ac_ext 6614 {0, (void *) 0} 6615}; 6616 6617/* This works around a problem in FreeBSD linker */ 6618#ifdef FREEBSD_WORKAROUND 6619static const void *lt_preloaded_setup() { 6620 return lt__PROGRAM__LTX_preloaded_symbols; 6621} 6622#endif 6623 6624#ifdef __cplusplus 6625} 6626#endif 6627_LT_EOF 6628 # Now try linking the two files. 6629 mv conftest.$ac_objext conftstm.$ac_objext 6630 lt_globsym_save_LIBS=$LIBS 6631 lt_globsym_save_CFLAGS=$CFLAGS 6632 LIBS=conftstm.$ac_objext 6633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6635 (eval $ac_link) 2>&5 6636 ac_status=$? 6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6638 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6639 pipe_works=yes 6640 fi 6641 LIBS=$lt_globsym_save_LIBS 6642 CFLAGS=$lt_globsym_save_CFLAGS 6643 else 6644 echo "cannot find nm_test_func in $nlist" >&5 6645 fi 6646 else 6647 echo "cannot find nm_test_var in $nlist" >&5 6648 fi 6649 else 6650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6651 fi 6652 else 6653 echo "$progname: failed program was:" >&5 6654 cat conftest.$ac_ext >&5 6655 fi 6656 rm -rf conftest* conftst* 6657 6658 # Do not use the global_symbol_pipe unless it works. 6659 if test yes = "$pipe_works"; then 6660 break 6661 else 6662 lt_cv_sys_global_symbol_pipe= 6663 fi 6664done 6665 6666fi 6667 6668if test -z "$lt_cv_sys_global_symbol_pipe"; then 6669 lt_cv_sys_global_symbol_to_cdecl= 6670fi 6671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6673$as_echo "failed" >&6; } 6674else 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6676$as_echo "ok" >&6; } 6677fi 6678 6679# Response file support. 6680if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6681 nm_file_list_spec='@' 6682elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6683 nm_file_list_spec='@' 6684fi 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6723$as_echo_n "checking for sysroot... " >&6; } 6724 6725# Check whether --with-sysroot was given. 6726if test "${with_sysroot+set}" = set; then : 6727 withval=$with_sysroot; 6728else 6729 with_sysroot=no 6730fi 6731 6732 6733lt_sysroot= 6734case $with_sysroot in #( 6735 yes) 6736 if test yes = "$GCC"; then 6737 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6738 fi 6739 ;; #( 6740 /*) 6741 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6742 ;; #( 6743 no|'') 6744 ;; #( 6745 *) 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6747$as_echo "$with_sysroot" >&6; } 6748 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6749 ;; 6750esac 6751 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6753$as_echo "${lt_sysroot:-no}" >&6; } 6754 6755 6756 6757 6758 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6760$as_echo_n "checking for a working dd... " >&6; } 6761if ${ac_cv_path_lt_DD+:} false; then : 6762 $as_echo_n "(cached) " >&6 6763else 6764 printf 0123456789abcdef0123456789abcdef >conftest.i 6765cat conftest.i conftest.i >conftest2.i 6766: ${lt_DD:=$DD} 6767if test -z "$lt_DD"; then 6768 ac_path_lt_DD_found=false 6769 # Loop through the user's path and test for each of PROGNAME-LIST 6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6771for as_dir in $PATH 6772do 6773 IFS=$as_save_IFS 6774 test -z "$as_dir" && as_dir=. 6775 for ac_prog in dd; do 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6778 as_fn_executable_p "$ac_path_lt_DD" || continue 6779if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6780 cmp -s conftest.i conftest.out \ 6781 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6782fi 6783 $ac_path_lt_DD_found && break 3 6784 done 6785 done 6786 done 6787IFS=$as_save_IFS 6788 if test -z "$ac_cv_path_lt_DD"; then 6789 : 6790 fi 6791else 6792 ac_cv_path_lt_DD=$lt_DD 6793fi 6794 6795rm -f conftest.i conftest2.i conftest.out 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6798$as_echo "$ac_cv_path_lt_DD" >&6; } 6799 6800 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6802$as_echo_n "checking how to truncate binary pipes... " >&6; } 6803if ${lt_cv_truncate_bin+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 printf 0123456789abcdef0123456789abcdef >conftest.i 6807cat conftest.i conftest.i >conftest2.i 6808lt_cv_truncate_bin= 6809if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6810 cmp -s conftest.i conftest.out \ 6811 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6812fi 6813rm -f conftest.i conftest2.i conftest.out 6814test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6815fi 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6817$as_echo "$lt_cv_truncate_bin" >&6; } 6818 6819 6820 6821 6822 6823 6824 6825# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6826func_cc_basename () 6827{ 6828 for cc_temp in $*""; do 6829 case $cc_temp in 6830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6832 \-*) ;; 6833 *) break;; 6834 esac 6835 done 6836 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6837} 6838 6839# Check whether --enable-libtool-lock was given. 6840if test "${enable_libtool_lock+set}" = set; then : 6841 enableval=$enable_libtool_lock; 6842fi 6843 6844test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6845 6846# Some flags need to be propagated to the compiler or linker for good 6847# libtool support. 6848case $host in 6849ia64-*-hpux*) 6850 # Find out what ABI is being produced by ac_compile, and set mode 6851 # options accordingly. 6852 echo 'int i;' > conftest.$ac_ext 6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6854 (eval $ac_compile) 2>&5 6855 ac_status=$? 6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6857 test $ac_status = 0; }; then 6858 case `/usr/bin/file conftest.$ac_objext` in 6859 *ELF-32*) 6860 HPUX_IA64_MODE=32 6861 ;; 6862 *ELF-64*) 6863 HPUX_IA64_MODE=64 6864 ;; 6865 esac 6866 fi 6867 rm -rf conftest* 6868 ;; 6869*-*-irix6*) 6870 # Find out what ABI is being produced by ac_compile, and set linker 6871 # options accordingly. 6872 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6874 (eval $ac_compile) 2>&5 6875 ac_status=$? 6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6877 test $ac_status = 0; }; then 6878 if test yes = "$lt_cv_prog_gnu_ld"; then 6879 case `/usr/bin/file conftest.$ac_objext` in 6880 *32-bit*) 6881 LD="${LD-ld} -melf32bsmip" 6882 ;; 6883 *N32*) 6884 LD="${LD-ld} -melf32bmipn32" 6885 ;; 6886 *64-bit*) 6887 LD="${LD-ld} -melf64bmip" 6888 ;; 6889 esac 6890 else 6891 case `/usr/bin/file conftest.$ac_objext` in 6892 *32-bit*) 6893 LD="${LD-ld} -32" 6894 ;; 6895 *N32*) 6896 LD="${LD-ld} -n32" 6897 ;; 6898 *64-bit*) 6899 LD="${LD-ld} -64" 6900 ;; 6901 esac 6902 fi 6903 fi 6904 rm -rf conftest* 6905 ;; 6906 6907mips64*-*linux*) 6908 # Find out what ABI is being produced by ac_compile, and set linker 6909 # options accordingly. 6910 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6912 (eval $ac_compile) 2>&5 6913 ac_status=$? 6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6915 test $ac_status = 0; }; then 6916 emul=elf 6917 case `/usr/bin/file conftest.$ac_objext` in 6918 *32-bit*) 6919 emul="${emul}32" 6920 ;; 6921 *64-bit*) 6922 emul="${emul}64" 6923 ;; 6924 esac 6925 case `/usr/bin/file conftest.$ac_objext` in 6926 *MSB*) 6927 emul="${emul}btsmip" 6928 ;; 6929 *LSB*) 6930 emul="${emul}ltsmip" 6931 ;; 6932 esac 6933 case `/usr/bin/file conftest.$ac_objext` in 6934 *N32*) 6935 emul="${emul}n32" 6936 ;; 6937 esac 6938 LD="${LD-ld} -m $emul" 6939 fi 6940 rm -rf conftest* 6941 ;; 6942 6943x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6944s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6945 # Find out what ABI is being produced by ac_compile, and set linker 6946 # options accordingly. Note that the listed cases only cover the 6947 # situations where additional linker options are needed (such as when 6948 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6949 # vice versa); the common cases where no linker options are needed do 6950 # not appear in the list. 6951 echo 'int i;' > conftest.$ac_ext 6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6953 (eval $ac_compile) 2>&5 6954 ac_status=$? 6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6956 test $ac_status = 0; }; then 6957 case `/usr/bin/file conftest.o` in 6958 *32-bit*) 6959 case $host in 6960 x86_64-*kfreebsd*-gnu) 6961 LD="${LD-ld} -m elf_i386_fbsd" 6962 ;; 6963 x86_64-*linux*) 6964 case `/usr/bin/file conftest.o` in 6965 *x86-64*) 6966 LD="${LD-ld} -m elf32_x86_64" 6967 ;; 6968 *) 6969 LD="${LD-ld} -m elf_i386" 6970 ;; 6971 esac 6972 ;; 6973 powerpc64le-*linux*) 6974 LD="${LD-ld} -m elf32lppclinux" 6975 ;; 6976 powerpc64-*linux*) 6977 LD="${LD-ld} -m elf32ppclinux" 6978 ;; 6979 s390x-*linux*) 6980 LD="${LD-ld} -m elf_s390" 6981 ;; 6982 sparc64-*linux*) 6983 LD="${LD-ld} -m elf32_sparc" 6984 ;; 6985 esac 6986 ;; 6987 *64-bit*) 6988 case $host in 6989 x86_64-*kfreebsd*-gnu) 6990 LD="${LD-ld} -m elf_x86_64_fbsd" 6991 ;; 6992 x86_64-*linux*) 6993 LD="${LD-ld} -m elf_x86_64" 6994 ;; 6995 powerpcle-*linux*) 6996 LD="${LD-ld} -m elf64lppc" 6997 ;; 6998 powerpc-*linux*) 6999 LD="${LD-ld} -m elf64ppc" 7000 ;; 7001 s390*-*linux*|s390*-*tpf*) 7002 LD="${LD-ld} -m elf64_s390" 7003 ;; 7004 sparc*-*linux*) 7005 LD="${LD-ld} -m elf64_sparc" 7006 ;; 7007 esac 7008 ;; 7009 esac 7010 fi 7011 rm -rf conftest* 7012 ;; 7013 7014*-*-sco3.2v5*) 7015 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7016 SAVE_CFLAGS=$CFLAGS 7017 CFLAGS="$CFLAGS -belf" 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7019$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7020if ${lt_cv_cc_needs_belf+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 ac_ext=c 7024ac_cpp='$CPP $CPPFLAGS' 7025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7027ac_compiler_gnu=$ac_cv_c_compiler_gnu 7028 7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7030/* end confdefs.h. */ 7031 7032int 7033main () 7034{ 7035 7036 ; 7037 return 0; 7038} 7039_ACEOF 7040if ac_fn_c_try_link "$LINENO"; then : 7041 lt_cv_cc_needs_belf=yes 7042else 7043 lt_cv_cc_needs_belf=no 7044fi 7045rm -f core conftest.err conftest.$ac_objext \ 7046 conftest$ac_exeext conftest.$ac_ext 7047 ac_ext=c 7048ac_cpp='$CPP $CPPFLAGS' 7049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7051ac_compiler_gnu=$ac_cv_c_compiler_gnu 7052 7053fi 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7055$as_echo "$lt_cv_cc_needs_belf" >&6; } 7056 if test yes != "$lt_cv_cc_needs_belf"; then 7057 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7058 CFLAGS=$SAVE_CFLAGS 7059 fi 7060 ;; 7061*-*solaris*) 7062 # Find out what ABI is being produced by ac_compile, and set linker 7063 # options accordingly. 7064 echo 'int i;' > conftest.$ac_ext 7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7066 (eval $ac_compile) 2>&5 7067 ac_status=$? 7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7069 test $ac_status = 0; }; then 7070 case `/usr/bin/file conftest.o` in 7071 *64-bit*) 7072 case $lt_cv_prog_gnu_ld in 7073 yes*) 7074 case $host in 7075 i?86-*-solaris*|x86_64-*-solaris*) 7076 LD="${LD-ld} -m elf_x86_64" 7077 ;; 7078 sparc*-*-solaris*) 7079 LD="${LD-ld} -m elf64_sparc" 7080 ;; 7081 esac 7082 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7083 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7084 LD=${LD-ld}_sol2 7085 fi 7086 ;; 7087 *) 7088 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7089 LD="${LD-ld} -64" 7090 fi 7091 ;; 7092 esac 7093 ;; 7094 esac 7095 fi 7096 rm -rf conftest* 7097 ;; 7098esac 7099 7100need_locks=$enable_libtool_lock 7101 7102if test -n "$ac_tool_prefix"; then 7103 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7104set dummy ${ac_tool_prefix}mt; ac_word=$2 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7106$as_echo_n "checking for $ac_word... " >&6; } 7107if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7108 $as_echo_n "(cached) " >&6 7109else 7110 if test -n "$MANIFEST_TOOL"; then 7111 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7112else 7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114for as_dir in $PATH 7115do 7116 IFS=$as_save_IFS 7117 test -z "$as_dir" && as_dir=. 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7120 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124done 7125 done 7126IFS=$as_save_IFS 7127 7128fi 7129fi 7130MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7131if test -n "$MANIFEST_TOOL"; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7133$as_echo "$MANIFEST_TOOL" >&6; } 7134else 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7136$as_echo "no" >&6; } 7137fi 7138 7139 7140fi 7141if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7142 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7143 # Extract the first word of "mt", so it can be a program name with args. 7144set dummy mt; ac_word=$2 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7146$as_echo_n "checking for $ac_word... " >&6; } 7147if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 if test -n "$ac_ct_MANIFEST_TOOL"; then 7151 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7152else 7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7154for as_dir in $PATH 7155do 7156 IFS=$as_save_IFS 7157 test -z "$as_dir" && as_dir=. 7158 for ac_exec_ext in '' $ac_executable_extensions; do 7159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7160 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7162 break 2 7163 fi 7164done 7165 done 7166IFS=$as_save_IFS 7167 7168fi 7169fi 7170ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7171if test -n "$ac_ct_MANIFEST_TOOL"; then 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7173$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7174else 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7176$as_echo "no" >&6; } 7177fi 7178 7179 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7180 MANIFEST_TOOL=":" 7181 else 7182 case $cross_compiling:$ac_tool_warned in 7183yes:) 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7186ac_tool_warned=yes ;; 7187esac 7188 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7189 fi 7190else 7191 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7192fi 7193 7194test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7196$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7197if ${lt_cv_path_mainfest_tool+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 lt_cv_path_mainfest_tool=no 7201 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7202 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7203 cat conftest.err >&5 7204 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7205 lt_cv_path_mainfest_tool=yes 7206 fi 7207 rm -f conftest* 7208fi 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7210$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7211if test yes != "$lt_cv_path_mainfest_tool"; then 7212 MANIFEST_TOOL=: 7213fi 7214 7215 7216 7217 7218 7219 7220 case $host_os in 7221 rhapsody* | darwin*) 7222 if test -n "$ac_tool_prefix"; then 7223 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7224set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7226$as_echo_n "checking for $ac_word... " >&6; } 7227if ${ac_cv_prog_DSYMUTIL+:} false; then : 7228 $as_echo_n "(cached) " >&6 7229else 7230 if test -n "$DSYMUTIL"; then 7231 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7232else 7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7234for as_dir in $PATH 7235do 7236 IFS=$as_save_IFS 7237 test -z "$as_dir" && as_dir=. 7238 for ac_exec_ext in '' $ac_executable_extensions; do 7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7240 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7242 break 2 7243 fi 7244done 7245 done 7246IFS=$as_save_IFS 7247 7248fi 7249fi 7250DSYMUTIL=$ac_cv_prog_DSYMUTIL 7251if test -n "$DSYMUTIL"; then 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7253$as_echo "$DSYMUTIL" >&6; } 7254else 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7256$as_echo "no" >&6; } 7257fi 7258 7259 7260fi 7261if test -z "$ac_cv_prog_DSYMUTIL"; then 7262 ac_ct_DSYMUTIL=$DSYMUTIL 7263 # Extract the first word of "dsymutil", so it can be a program name with args. 7264set dummy dsymutil; ac_word=$2 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7266$as_echo_n "checking for $ac_word... " >&6; } 7267if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 if test -n "$ac_ct_DSYMUTIL"; then 7271 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7272else 7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7280 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7282 break 2 7283 fi 7284done 7285 done 7286IFS=$as_save_IFS 7287 7288fi 7289fi 7290ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7291if test -n "$ac_ct_DSYMUTIL"; then 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7293$as_echo "$ac_ct_DSYMUTIL" >&6; } 7294else 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7296$as_echo "no" >&6; } 7297fi 7298 7299 if test "x$ac_ct_DSYMUTIL" = x; then 7300 DSYMUTIL=":" 7301 else 7302 case $cross_compiling:$ac_tool_warned in 7303yes:) 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7306ac_tool_warned=yes ;; 7307esac 7308 DSYMUTIL=$ac_ct_DSYMUTIL 7309 fi 7310else 7311 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7312fi 7313 7314 if test -n "$ac_tool_prefix"; then 7315 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7316set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7318$as_echo_n "checking for $ac_word... " >&6; } 7319if ${ac_cv_prog_NMEDIT+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 if test -n "$NMEDIT"; then 7323 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7324else 7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7326for as_dir in $PATH 7327do 7328 IFS=$as_save_IFS 7329 test -z "$as_dir" && as_dir=. 7330 for ac_exec_ext in '' $ac_executable_extensions; do 7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7332 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7334 break 2 7335 fi 7336done 7337 done 7338IFS=$as_save_IFS 7339 7340fi 7341fi 7342NMEDIT=$ac_cv_prog_NMEDIT 7343if test -n "$NMEDIT"; then 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7345$as_echo "$NMEDIT" >&6; } 7346else 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7348$as_echo "no" >&6; } 7349fi 7350 7351 7352fi 7353if test -z "$ac_cv_prog_NMEDIT"; then 7354 ac_ct_NMEDIT=$NMEDIT 7355 # Extract the first word of "nmedit", so it can be a program name with args. 7356set dummy nmedit; ac_word=$2 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7358$as_echo_n "checking for $ac_word... " >&6; } 7359if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 if test -n "$ac_ct_NMEDIT"; then 7363 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7364else 7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7366for as_dir in $PATH 7367do 7368 IFS=$as_save_IFS 7369 test -z "$as_dir" && as_dir=. 7370 for ac_exec_ext in '' $ac_executable_extensions; do 7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7372 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7374 break 2 7375 fi 7376done 7377 done 7378IFS=$as_save_IFS 7379 7380fi 7381fi 7382ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7383if test -n "$ac_ct_NMEDIT"; then 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7385$as_echo "$ac_ct_NMEDIT" >&6; } 7386else 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7388$as_echo "no" >&6; } 7389fi 7390 7391 if test "x$ac_ct_NMEDIT" = x; then 7392 NMEDIT=":" 7393 else 7394 case $cross_compiling:$ac_tool_warned in 7395yes:) 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7398ac_tool_warned=yes ;; 7399esac 7400 NMEDIT=$ac_ct_NMEDIT 7401 fi 7402else 7403 NMEDIT="$ac_cv_prog_NMEDIT" 7404fi 7405 7406 if test -n "$ac_tool_prefix"; then 7407 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7408set dummy ${ac_tool_prefix}lipo; ac_word=$2 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7410$as_echo_n "checking for $ac_word... " >&6; } 7411if ${ac_cv_prog_LIPO+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 if test -n "$LIPO"; then 7415 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7416else 7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7418for as_dir in $PATH 7419do 7420 IFS=$as_save_IFS 7421 test -z "$as_dir" && as_dir=. 7422 for ac_exec_ext in '' $ac_executable_extensions; do 7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7424 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7426 break 2 7427 fi 7428done 7429 done 7430IFS=$as_save_IFS 7431 7432fi 7433fi 7434LIPO=$ac_cv_prog_LIPO 7435if test -n "$LIPO"; then 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7437$as_echo "$LIPO" >&6; } 7438else 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7440$as_echo "no" >&6; } 7441fi 7442 7443 7444fi 7445if test -z "$ac_cv_prog_LIPO"; then 7446 ac_ct_LIPO=$LIPO 7447 # Extract the first word of "lipo", so it can be a program name with args. 7448set dummy lipo; ac_word=$2 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7450$as_echo_n "checking for $ac_word... " >&6; } 7451if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 if test -n "$ac_ct_LIPO"; then 7455 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7456else 7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7458for as_dir in $PATH 7459do 7460 IFS=$as_save_IFS 7461 test -z "$as_dir" && as_dir=. 7462 for ac_exec_ext in '' $ac_executable_extensions; do 7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7464 ac_cv_prog_ac_ct_LIPO="lipo" 7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7466 break 2 7467 fi 7468done 7469 done 7470IFS=$as_save_IFS 7471 7472fi 7473fi 7474ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7475if test -n "$ac_ct_LIPO"; then 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7477$as_echo "$ac_ct_LIPO" >&6; } 7478else 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7480$as_echo "no" >&6; } 7481fi 7482 7483 if test "x$ac_ct_LIPO" = x; then 7484 LIPO=":" 7485 else 7486 case $cross_compiling:$ac_tool_warned in 7487yes:) 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7490ac_tool_warned=yes ;; 7491esac 7492 LIPO=$ac_ct_LIPO 7493 fi 7494else 7495 LIPO="$ac_cv_prog_LIPO" 7496fi 7497 7498 if test -n "$ac_tool_prefix"; then 7499 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7500set dummy ${ac_tool_prefix}otool; ac_word=$2 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7502$as_echo_n "checking for $ac_word... " >&6; } 7503if ${ac_cv_prog_OTOOL+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505else 7506 if test -n "$OTOOL"; then 7507 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7508else 7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7510for as_dir in $PATH 7511do 7512 IFS=$as_save_IFS 7513 test -z "$as_dir" && as_dir=. 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7516 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520done 7521 done 7522IFS=$as_save_IFS 7523 7524fi 7525fi 7526OTOOL=$ac_cv_prog_OTOOL 7527if test -n "$OTOOL"; then 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7529$as_echo "$OTOOL" >&6; } 7530else 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7532$as_echo "no" >&6; } 7533fi 7534 7535 7536fi 7537if test -z "$ac_cv_prog_OTOOL"; then 7538 ac_ct_OTOOL=$OTOOL 7539 # Extract the first word of "otool", so it can be a program name with args. 7540set dummy otool; ac_word=$2 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7542$as_echo_n "checking for $ac_word... " >&6; } 7543if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 if test -n "$ac_ct_OTOOL"; then 7547 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7548else 7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7550for as_dir in $PATH 7551do 7552 IFS=$as_save_IFS 7553 test -z "$as_dir" && as_dir=. 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7556 ac_cv_prog_ac_ct_OTOOL="otool" 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7558 break 2 7559 fi 7560done 7561 done 7562IFS=$as_save_IFS 7563 7564fi 7565fi 7566ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7567if test -n "$ac_ct_OTOOL"; then 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7569$as_echo "$ac_ct_OTOOL" >&6; } 7570else 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572$as_echo "no" >&6; } 7573fi 7574 7575 if test "x$ac_ct_OTOOL" = x; then 7576 OTOOL=":" 7577 else 7578 case $cross_compiling:$ac_tool_warned in 7579yes:) 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7582ac_tool_warned=yes ;; 7583esac 7584 OTOOL=$ac_ct_OTOOL 7585 fi 7586else 7587 OTOOL="$ac_cv_prog_OTOOL" 7588fi 7589 7590 if test -n "$ac_tool_prefix"; then 7591 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7592set dummy ${ac_tool_prefix}otool64; ac_word=$2 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594$as_echo_n "checking for $ac_word... " >&6; } 7595if ${ac_cv_prog_OTOOL64+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 if test -n "$OTOOL64"; then 7599 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7600else 7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602for as_dir in $PATH 7603do 7604 IFS=$as_save_IFS 7605 test -z "$as_dir" && as_dir=. 7606 for ac_exec_ext in '' $ac_executable_extensions; do 7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7608 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7610 break 2 7611 fi 7612done 7613 done 7614IFS=$as_save_IFS 7615 7616fi 7617fi 7618OTOOL64=$ac_cv_prog_OTOOL64 7619if test -n "$OTOOL64"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7621$as_echo "$OTOOL64" >&6; } 7622else 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7624$as_echo "no" >&6; } 7625fi 7626 7627 7628fi 7629if test -z "$ac_cv_prog_OTOOL64"; then 7630 ac_ct_OTOOL64=$OTOOL64 7631 # Extract the first word of "otool64", so it can be a program name with args. 7632set dummy otool64; ac_word=$2 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7634$as_echo_n "checking for $ac_word... " >&6; } 7635if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637else 7638 if test -n "$ac_ct_OTOOL64"; then 7639 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7640else 7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7642for as_dir in $PATH 7643do 7644 IFS=$as_save_IFS 7645 test -z "$as_dir" && as_dir=. 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7648 ac_cv_prog_ac_ct_OTOOL64="otool64" 7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7650 break 2 7651 fi 7652done 7653 done 7654IFS=$as_save_IFS 7655 7656fi 7657fi 7658ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7659if test -n "$ac_ct_OTOOL64"; then 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7661$as_echo "$ac_ct_OTOOL64" >&6; } 7662else 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664$as_echo "no" >&6; } 7665fi 7666 7667 if test "x$ac_ct_OTOOL64" = x; then 7668 OTOOL64=":" 7669 else 7670 case $cross_compiling:$ac_tool_warned in 7671yes:) 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7674ac_tool_warned=yes ;; 7675esac 7676 OTOOL64=$ac_ct_OTOOL64 7677 fi 7678else 7679 OTOOL64="$ac_cv_prog_OTOOL64" 7680fi 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7709$as_echo_n "checking for -single_module linker flag... " >&6; } 7710if ${lt_cv_apple_cc_single_mod+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 lt_cv_apple_cc_single_mod=no 7714 if test -z "$LT_MULTI_MODULE"; then 7715 # By default we will add the -single_module flag. You can override 7716 # by either setting the environment variable LT_MULTI_MODULE 7717 # non-empty at configure time, or by adding -multi_module to the 7718 # link flags. 7719 rm -rf libconftest.dylib* 7720 echo "int foo(void){return 1;}" > conftest.c 7721 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7722-dynamiclib -Wl,-single_module conftest.c" >&5 7723 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7724 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7725 _lt_result=$? 7726 # If there is a non-empty error log, and "single_module" 7727 # appears in it, assume the flag caused a linker warning 7728 if test -s conftest.err && $GREP single_module conftest.err; then 7729 cat conftest.err >&5 7730 # Otherwise, if the output was created with a 0 exit code from 7731 # the compiler, it worked. 7732 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7733 lt_cv_apple_cc_single_mod=yes 7734 else 7735 cat conftest.err >&5 7736 fi 7737 rm -rf libconftest.dylib* 7738 rm -f conftest.* 7739 fi 7740fi 7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7742$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7743 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7745$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7746if ${lt_cv_ld_exported_symbols_list+:} false; then : 7747 $as_echo_n "(cached) " >&6 7748else 7749 lt_cv_ld_exported_symbols_list=no 7750 save_LDFLAGS=$LDFLAGS 7751 echo "_main" > conftest.sym 7752 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755 7756int 7757main () 7758{ 7759 7760 ; 7761 return 0; 7762} 7763_ACEOF 7764if ac_fn_c_try_link "$LINENO"; then : 7765 lt_cv_ld_exported_symbols_list=yes 7766else 7767 lt_cv_ld_exported_symbols_list=no 7768fi 7769rm -f core conftest.err conftest.$ac_objext \ 7770 conftest$ac_exeext conftest.$ac_ext 7771 LDFLAGS=$save_LDFLAGS 7772 7773fi 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7775$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7776 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7778$as_echo_n "checking for -force_load linker flag... " >&6; } 7779if ${lt_cv_ld_force_load+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 lt_cv_ld_force_load=no 7783 cat > conftest.c << _LT_EOF 7784int forced_loaded() { return 2;} 7785_LT_EOF 7786 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7787 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7788 echo "$AR cru libconftest.a conftest.o" >&5 7789 $AR cru libconftest.a conftest.o 2>&5 7790 echo "$RANLIB libconftest.a" >&5 7791 $RANLIB libconftest.a 2>&5 7792 cat > conftest.c << _LT_EOF 7793int main() { return 0;} 7794_LT_EOF 7795 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7796 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7797 _lt_result=$? 7798 if test -s conftest.err && $GREP force_load conftest.err; then 7799 cat conftest.err >&5 7800 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7801 lt_cv_ld_force_load=yes 7802 else 7803 cat conftest.err >&5 7804 fi 7805 rm -f conftest.err libconftest.a conftest conftest.c 7806 rm -rf conftest.dSYM 7807 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7810$as_echo "$lt_cv_ld_force_load" >&6; } 7811 case $host_os in 7812 rhapsody* | darwin1.[012]) 7813 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7814 darwin1.*) 7815 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7816 darwin*) # darwin 5.x on 7817 # if running on 10.5 or later, the deployment target defaults 7818 # to the OS version, if on x86, and 10.4, the deployment 7819 # target defaults to 10.4. Don't you love it? 7820 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7821 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7822 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7823 10.[012][,.]*) 7824 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7825 10.*) 7826 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7827 esac 7828 ;; 7829 esac 7830 if test yes = "$lt_cv_apple_cc_single_mod"; then 7831 _lt_dar_single_mod='$single_module' 7832 fi 7833 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7834 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7835 else 7836 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7837 fi 7838 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7839 _lt_dsymutil='~$DSYMUTIL $lib || :' 7840 else 7841 _lt_dsymutil= 7842 fi 7843 ;; 7844 esac 7845 7846# func_munge_path_list VARIABLE PATH 7847# ----------------------------------- 7848# VARIABLE is name of variable containing _space_ separated list of 7849# directories to be munged by the contents of PATH, which is string 7850# having a format: 7851# "DIR[:DIR]:" 7852# string "DIR[ DIR]" will be prepended to VARIABLE 7853# ":DIR[:DIR]" 7854# string "DIR[ DIR]" will be appended to VARIABLE 7855# "DIRP[:DIRP]::[DIRA:]DIRA" 7856# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7857# "DIRA[ DIRA]" will be appended to VARIABLE 7858# "DIR[:DIR]" 7859# VARIABLE will be replaced by "DIR[ DIR]" 7860func_munge_path_list () 7861{ 7862 case x$2 in 7863 x) 7864 ;; 7865 *:) 7866 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7867 ;; 7868 x:*) 7869 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7870 ;; 7871 *::*) 7872 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7873 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7874 ;; 7875 *) 7876 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7877 ;; 7878 esac 7879} 7880 7881for ac_header in dlfcn.h 7882do : 7883 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7884" 7885if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7886 cat >>confdefs.h <<_ACEOF 7887#define HAVE_DLFCN_H 1 7888_ACEOF 7889 7890fi 7891 7892done 7893 7894 7895 7896 7897 7898# Set options 7899 7900 7901 7902 enable_dlopen=no 7903 7904 7905 enable_win32_dll=no 7906 7907 7908 # Check whether --enable-shared was given. 7909if test "${enable_shared+set}" = set; then : 7910 enableval=$enable_shared; p=${PACKAGE-default} 7911 case $enableval in 7912 yes) enable_shared=yes ;; 7913 no) enable_shared=no ;; 7914 *) 7915 enable_shared=no 7916 # Look at the argument we got. We use all the common list separators. 7917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7918 for pkg in $enableval; do 7919 IFS=$lt_save_ifs 7920 if test "X$pkg" = "X$p"; then 7921 enable_shared=yes 7922 fi 7923 done 7924 IFS=$lt_save_ifs 7925 ;; 7926 esac 7927else 7928 enable_shared=yes 7929fi 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 # Check whether --enable-static was given. 7940if test "${enable_static+set}" = set; then : 7941 enableval=$enable_static; p=${PACKAGE-default} 7942 case $enableval in 7943 yes) enable_static=yes ;; 7944 no) enable_static=no ;; 7945 *) 7946 enable_static=no 7947 # Look at the argument we got. We use all the common list separators. 7948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7949 for pkg in $enableval; do 7950 IFS=$lt_save_ifs 7951 if test "X$pkg" = "X$p"; then 7952 enable_static=yes 7953 fi 7954 done 7955 IFS=$lt_save_ifs 7956 ;; 7957 esac 7958else 7959 enable_static=yes 7960fi 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971# Check whether --with-pic was given. 7972if test "${with_pic+set}" = set; then : 7973 withval=$with_pic; lt_p=${PACKAGE-default} 7974 case $withval in 7975 yes|no) pic_mode=$withval ;; 7976 *) 7977 pic_mode=default 7978 # Look at the argument we got. We use all the common list separators. 7979 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7980 for lt_pkg in $withval; do 7981 IFS=$lt_save_ifs 7982 if test "X$lt_pkg" = "X$lt_p"; then 7983 pic_mode=yes 7984 fi 7985 done 7986 IFS=$lt_save_ifs 7987 ;; 7988 esac 7989else 7990 pic_mode=default 7991fi 7992 7993 7994 7995 7996 7997 7998 7999 8000 # Check whether --enable-fast-install was given. 8001if test "${enable_fast_install+set}" = set; then : 8002 enableval=$enable_fast_install; p=${PACKAGE-default} 8003 case $enableval in 8004 yes) enable_fast_install=yes ;; 8005 no) enable_fast_install=no ;; 8006 *) 8007 enable_fast_install=no 8008 # Look at the argument we got. We use all the common list separators. 8009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8010 for pkg in $enableval; do 8011 IFS=$lt_save_ifs 8012 if test "X$pkg" = "X$p"; then 8013 enable_fast_install=yes 8014 fi 8015 done 8016 IFS=$lt_save_ifs 8017 ;; 8018 esac 8019else 8020 enable_fast_install=yes 8021fi 8022 8023 8024 8025 8026 8027 8028 8029 8030 shared_archive_member_spec= 8031case $host,$enable_shared in 8032power*-*-aix[5-9]*,yes) 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8034$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8035 8036# Check whether --with-aix-soname was given. 8037if test "${with_aix_soname+set}" = set; then : 8038 withval=$with_aix_soname; case $withval in 8039 aix|svr4|both) 8040 ;; 8041 *) 8042 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8043 ;; 8044 esac 8045 lt_cv_with_aix_soname=$with_aix_soname 8046else 8047 if ${lt_cv_with_aix_soname+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 lt_cv_with_aix_soname=aix 8051fi 8052 8053 with_aix_soname=$lt_cv_with_aix_soname 8054fi 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8057$as_echo "$with_aix_soname" >&6; } 8058 if test aix != "$with_aix_soname"; then 8059 # For the AIX way of multilib, we name the shared archive member 8060 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8061 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8062 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8063 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8064 if test 64 = "${OBJECT_MODE-32}"; then 8065 shared_archive_member_spec=shr_64 8066 else 8067 shared_archive_member_spec=shr 8068 fi 8069 fi 8070 ;; 8071*) 8072 with_aix_soname=aix 8073 ;; 8074esac 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085# This can be used to rebuild libtool when needed 8086LIBTOOL_DEPS=$ltmain 8087 8088# Always use our own libtool. 8089LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120test -z "$LN_S" && LN_S="ln -s" 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135if test -n "${ZSH_VERSION+set}"; then 8136 setopt NO_GLOB_SUBST 8137fi 8138 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8140$as_echo_n "checking for objdir... " >&6; } 8141if ${lt_cv_objdir+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 rm -f .libs 2>/dev/null 8145mkdir .libs 2>/dev/null 8146if test -d .libs; then 8147 lt_cv_objdir=.libs 8148else 8149 # MS-DOS does not allow filenames that begin with a dot. 8150 lt_cv_objdir=_libs 8151fi 8152rmdir .libs 2>/dev/null 8153fi 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8155$as_echo "$lt_cv_objdir" >&6; } 8156objdir=$lt_cv_objdir 8157 8158 8159 8160 8161 8162cat >>confdefs.h <<_ACEOF 8163#define LT_OBJDIR "$lt_cv_objdir/" 8164_ACEOF 8165 8166 8167 8168 8169case $host_os in 8170aix3*) 8171 # AIX sometimes has problems with the GCC collect2 program. For some 8172 # reason, if we set the COLLECT_NAMES environment variable, the problems 8173 # vanish in a puff of smoke. 8174 if test set != "${COLLECT_NAMES+set}"; then 8175 COLLECT_NAMES= 8176 export COLLECT_NAMES 8177 fi 8178 ;; 8179esac 8180 8181# Global variables: 8182ofile=libtool 8183can_build_shared=yes 8184 8185# All known linkers require a '.a' archive for static linking (except MSVC, 8186# which needs '.lib'). 8187libext=a 8188 8189with_gnu_ld=$lt_cv_prog_gnu_ld 8190 8191old_CC=$CC 8192old_CFLAGS=$CFLAGS 8193 8194# Set sane defaults for various variables 8195test -z "$CC" && CC=cc 8196test -z "$LTCC" && LTCC=$CC 8197test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8198test -z "$LD" && LD=ld 8199test -z "$ac_objext" && ac_objext=o 8200 8201func_cc_basename $compiler 8202cc_basename=$func_cc_basename_result 8203 8204 8205# Only perform the check for file, if the check method requires it 8206test -z "$MAGIC_CMD" && MAGIC_CMD=file 8207case $deplibs_check_method in 8208file_magic*) 8209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8211$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8212if ${lt_cv_path_MAGIC_CMD+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 case $MAGIC_CMD in 8216[\\/*] | ?:[\\/]*) 8217 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8218 ;; 8219*) 8220 lt_save_MAGIC_CMD=$MAGIC_CMD 8221 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8223 for ac_dir in $ac_dummy; do 8224 IFS=$lt_save_ifs 8225 test -z "$ac_dir" && ac_dir=. 8226 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8227 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8228 if test -n "$file_magic_test_file"; then 8229 case $deplibs_check_method in 8230 "file_magic "*) 8231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8232 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8234 $EGREP "$file_magic_regex" > /dev/null; then 8235 : 8236 else 8237 cat <<_LT_EOF 1>&2 8238 8239*** Warning: the command libtool uses to detect shared libraries, 8240*** $file_magic_cmd, produces output that libtool cannot recognize. 8241*** The result is that libtool may fail to recognize shared libraries 8242*** as such. This will affect the creation of libtool libraries that 8243*** depend on shared libraries, but programs linked with such libtool 8244*** libraries will work regardless of this problem. Nevertheless, you 8245*** may want to report the problem to your system manager and/or to 8246*** bug-libtool@gnu.org 8247 8248_LT_EOF 8249 fi ;; 8250 esac 8251 fi 8252 break 8253 fi 8254 done 8255 IFS=$lt_save_ifs 8256 MAGIC_CMD=$lt_save_MAGIC_CMD 8257 ;; 8258esac 8259fi 8260 8261MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8262if test -n "$MAGIC_CMD"; then 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8264$as_echo "$MAGIC_CMD" >&6; } 8265else 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8267$as_echo "no" >&6; } 8268fi 8269 8270 8271 8272 8273 8274if test -z "$lt_cv_path_MAGIC_CMD"; then 8275 if test -n "$ac_tool_prefix"; then 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8277$as_echo_n "checking for file... " >&6; } 8278if ${lt_cv_path_MAGIC_CMD+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 case $MAGIC_CMD in 8282[\\/*] | ?:[\\/]*) 8283 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8284 ;; 8285*) 8286 lt_save_MAGIC_CMD=$MAGIC_CMD 8287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8289 for ac_dir in $ac_dummy; do 8290 IFS=$lt_save_ifs 8291 test -z "$ac_dir" && ac_dir=. 8292 if test -f "$ac_dir/file"; then 8293 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8294 if test -n "$file_magic_test_file"; then 8295 case $deplibs_check_method in 8296 "file_magic "*) 8297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8298 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8300 $EGREP "$file_magic_regex" > /dev/null; then 8301 : 8302 else 8303 cat <<_LT_EOF 1>&2 8304 8305*** Warning: the command libtool uses to detect shared libraries, 8306*** $file_magic_cmd, produces output that libtool cannot recognize. 8307*** The result is that libtool may fail to recognize shared libraries 8308*** as such. This will affect the creation of libtool libraries that 8309*** depend on shared libraries, but programs linked with such libtool 8310*** libraries will work regardless of this problem. Nevertheless, you 8311*** may want to report the problem to your system manager and/or to 8312*** bug-libtool@gnu.org 8313 8314_LT_EOF 8315 fi ;; 8316 esac 8317 fi 8318 break 8319 fi 8320 done 8321 IFS=$lt_save_ifs 8322 MAGIC_CMD=$lt_save_MAGIC_CMD 8323 ;; 8324esac 8325fi 8326 8327MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8328if test -n "$MAGIC_CMD"; then 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8330$as_echo "$MAGIC_CMD" >&6; } 8331else 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8333$as_echo "no" >&6; } 8334fi 8335 8336 8337 else 8338 MAGIC_CMD=: 8339 fi 8340fi 8341 8342 fi 8343 ;; 8344esac 8345 8346# Use C for the default configuration in the libtool script 8347 8348lt_save_CC=$CC 8349ac_ext=c 8350ac_cpp='$CPP $CPPFLAGS' 8351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8353ac_compiler_gnu=$ac_cv_c_compiler_gnu 8354 8355 8356# Source file extension for C test sources. 8357ac_ext=c 8358 8359# Object file extension for compiled C test sources. 8360objext=o 8361objext=$objext 8362 8363# Code to be used in simple compile tests 8364lt_simple_compile_test_code="int some_variable = 0;" 8365 8366# Code to be used in simple link tests 8367lt_simple_link_test_code='int main(){return(0);}' 8368 8369 8370 8371 8372 8373 8374 8375# If no C compiler was specified, use CC. 8376LTCC=${LTCC-"$CC"} 8377 8378# If no C compiler flags were specified, use CFLAGS. 8379LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8380 8381# Allow CC to be a program name with arguments. 8382compiler=$CC 8383 8384# Save the default compiler, since it gets overwritten when the other 8385# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8386compiler_DEFAULT=$CC 8387 8388# save warnings/boilerplate of simple test code 8389ac_outfile=conftest.$ac_objext 8390echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8391eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8392_lt_compiler_boilerplate=`cat conftest.err` 8393$RM conftest* 8394 8395ac_outfile=conftest.$ac_objext 8396echo "$lt_simple_link_test_code" >conftest.$ac_ext 8397eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8398_lt_linker_boilerplate=`cat conftest.err` 8399$RM -r conftest* 8400 8401 8402## CAVEAT EMPTOR: 8403## There is no encapsulation within the following macros, do not change 8404## the running order or otherwise move them around unless you know exactly 8405## what you are doing... 8406if test -n "$compiler"; then 8407 8408lt_prog_compiler_no_builtin_flag= 8409 8410if test yes = "$GCC"; then 8411 case $cc_basename in 8412 nvcc*) 8413 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8414 *) 8415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8416 esac 8417 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8419$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8420if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_prog_compiler_rtti_exceptions=no 8424 ac_outfile=conftest.$ac_objext 8425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8426 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8427 # Insert the option either (1) after the last *FLAGS variable, or 8428 # (2) before a word containing "conftest.", or (3) at the end. 8429 # Note that $ac_compile itself does not contain backslashes and begins 8430 # with a dollar sign (not a hyphen), so the echo should work correctly. 8431 # The option is referenced via a variable to avoid confusing sed. 8432 lt_compile=`echo "$ac_compile" | $SED \ 8433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8435 -e 's:$: $lt_compiler_flag:'` 8436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8437 (eval "$lt_compile" 2>conftest.err) 8438 ac_status=$? 8439 cat conftest.err >&5 8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 if (exit $ac_status) && test -s "$ac_outfile"; then 8442 # The compiler can only warn and ignore the option if not recognized 8443 # So say no if there are warnings other than the usual output. 8444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8447 lt_cv_prog_compiler_rtti_exceptions=yes 8448 fi 8449 fi 8450 $RM conftest* 8451 8452fi 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8454$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8455 8456if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8458else 8459 : 8460fi 8461 8462fi 8463 8464 8465 8466 8467 8468 8469 lt_prog_compiler_wl= 8470lt_prog_compiler_pic= 8471lt_prog_compiler_static= 8472 8473 8474 if test yes = "$GCC"; then 8475 lt_prog_compiler_wl='-Wl,' 8476 lt_prog_compiler_static='-static' 8477 8478 case $host_os in 8479 aix*) 8480 # All AIX code is PIC. 8481 if test ia64 = "$host_cpu"; then 8482 # AIX 5 now supports IA64 processor 8483 lt_prog_compiler_static='-Bstatic' 8484 fi 8485 lt_prog_compiler_pic='-fPIC' 8486 ;; 8487 8488 amigaos*) 8489 case $host_cpu in 8490 powerpc) 8491 # see comment about AmigaOS4 .so support 8492 lt_prog_compiler_pic='-fPIC' 8493 ;; 8494 m68k) 8495 # FIXME: we need at least 68020 code to build shared libraries, but 8496 # adding the '-m68020' flag to GCC prevents building anything better, 8497 # like '-m68040'. 8498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8499 ;; 8500 esac 8501 ;; 8502 8503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8504 # PIC is the default for these OSes. 8505 ;; 8506 8507 mingw* | cygwin* | pw32* | os2* | cegcc*) 8508 # This hack is so that the source file can tell whether it is being 8509 # built for inclusion in a dll (and should export symbols for example). 8510 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8511 # (--disable-auto-import) libraries 8512 lt_prog_compiler_pic='-DDLL_EXPORT' 8513 case $host_os in 8514 os2*) 8515 lt_prog_compiler_static='$wl-static' 8516 ;; 8517 esac 8518 ;; 8519 8520 darwin* | rhapsody*) 8521 # PIC is the default on this platform 8522 # Common symbols not allowed in MH_DYLIB files 8523 lt_prog_compiler_pic='-fno-common' 8524 ;; 8525 8526 haiku*) 8527 # PIC is the default for Haiku. 8528 # The "-static" flag exists, but is broken. 8529 lt_prog_compiler_static= 8530 ;; 8531 8532 hpux*) 8533 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8534 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8535 # sets the default TLS model and affects inlining. 8536 case $host_cpu in 8537 hppa*64*) 8538 # +Z the default 8539 ;; 8540 *) 8541 lt_prog_compiler_pic='-fPIC' 8542 ;; 8543 esac 8544 ;; 8545 8546 interix[3-9]*) 8547 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8548 # Instead, we relocate shared libraries at runtime. 8549 ;; 8550 8551 msdosdjgpp*) 8552 # Just because we use GCC doesn't mean we suddenly get shared libraries 8553 # on systems that don't support them. 8554 lt_prog_compiler_can_build_shared=no 8555 enable_shared=no 8556 ;; 8557 8558 *nto* | *qnx*) 8559 # QNX uses GNU C++, but need to define -shared option too, otherwise 8560 # it will coredump. 8561 lt_prog_compiler_pic='-fPIC -shared' 8562 ;; 8563 8564 sysv4*MP*) 8565 if test -d /usr/nec; then 8566 lt_prog_compiler_pic=-Kconform_pic 8567 fi 8568 ;; 8569 8570 *) 8571 lt_prog_compiler_pic='-fPIC' 8572 ;; 8573 esac 8574 8575 case $cc_basename in 8576 nvcc*) # Cuda Compiler Driver 2.2 8577 lt_prog_compiler_wl='-Xlinker ' 8578 if test -n "$lt_prog_compiler_pic"; then 8579 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8580 fi 8581 ;; 8582 esac 8583 else 8584 # PORTME Check for flag to pass linker flags through the system compiler. 8585 case $host_os in 8586 aix*) 8587 lt_prog_compiler_wl='-Wl,' 8588 if test ia64 = "$host_cpu"; then 8589 # AIX 5 now supports IA64 processor 8590 lt_prog_compiler_static='-Bstatic' 8591 else 8592 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8593 fi 8594 ;; 8595 8596 darwin* | rhapsody*) 8597 # PIC is the default on this platform 8598 # Common symbols not allowed in MH_DYLIB files 8599 lt_prog_compiler_pic='-fno-common' 8600 case $cc_basename in 8601 nagfor*) 8602 # NAG Fortran compiler 8603 lt_prog_compiler_wl='-Wl,-Wl,,' 8604 lt_prog_compiler_pic='-PIC' 8605 lt_prog_compiler_static='-Bstatic' 8606 ;; 8607 esac 8608 ;; 8609 8610 mingw* | cygwin* | pw32* | os2* | cegcc*) 8611 # This hack is so that the source file can tell whether it is being 8612 # built for inclusion in a dll (and should export symbols for example). 8613 lt_prog_compiler_pic='-DDLL_EXPORT' 8614 case $host_os in 8615 os2*) 8616 lt_prog_compiler_static='$wl-static' 8617 ;; 8618 esac 8619 ;; 8620 8621 hpux9* | hpux10* | hpux11*) 8622 lt_prog_compiler_wl='-Wl,' 8623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8624 # not for PA HP-UX. 8625 case $host_cpu in 8626 hppa*64*|ia64*) 8627 # +Z the default 8628 ;; 8629 *) 8630 lt_prog_compiler_pic='+Z' 8631 ;; 8632 esac 8633 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8634 lt_prog_compiler_static='$wl-a ${wl}archive' 8635 ;; 8636 8637 irix5* | irix6* | nonstopux*) 8638 lt_prog_compiler_wl='-Wl,' 8639 # PIC (with -KPIC) is the default. 8640 lt_prog_compiler_static='-non_shared' 8641 ;; 8642 8643 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8644 case $cc_basename in 8645 # old Intel for x86_64, which still supported -KPIC. 8646 ecc*) 8647 lt_prog_compiler_wl='-Wl,' 8648 lt_prog_compiler_pic='-KPIC' 8649 lt_prog_compiler_static='-static' 8650 ;; 8651 # icc used to be incompatible with GCC. 8652 # ICC 10 doesn't accept -KPIC any more. 8653 icc* | ifort*) 8654 lt_prog_compiler_wl='-Wl,' 8655 lt_prog_compiler_pic='-fPIC' 8656 lt_prog_compiler_static='-static' 8657 ;; 8658 # Lahey Fortran 8.1. 8659 lf95*) 8660 lt_prog_compiler_wl='-Wl,' 8661 lt_prog_compiler_pic='--shared' 8662 lt_prog_compiler_static='--static' 8663 ;; 8664 nagfor*) 8665 # NAG Fortran compiler 8666 lt_prog_compiler_wl='-Wl,-Wl,,' 8667 lt_prog_compiler_pic='-PIC' 8668 lt_prog_compiler_static='-Bstatic' 8669 ;; 8670 tcc*) 8671 # Fabrice Bellard et al's Tiny C Compiler 8672 lt_prog_compiler_wl='-Wl,' 8673 lt_prog_compiler_pic='-fPIC' 8674 lt_prog_compiler_static='-static' 8675 ;; 8676 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8677 # Portland Group compilers (*not* the Pentium gcc compiler, 8678 # which looks to be a dead project) 8679 lt_prog_compiler_wl='-Wl,' 8680 lt_prog_compiler_pic='-fpic' 8681 lt_prog_compiler_static='-Bstatic' 8682 ;; 8683 ccc*) 8684 lt_prog_compiler_wl='-Wl,' 8685 # All Alpha code is PIC. 8686 lt_prog_compiler_static='-non_shared' 8687 ;; 8688 xl* | bgxl* | bgf* | mpixl*) 8689 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8690 lt_prog_compiler_wl='-Wl,' 8691 lt_prog_compiler_pic='-qpic' 8692 lt_prog_compiler_static='-qstaticlink' 8693 ;; 8694 *) 8695 case `$CC -V 2>&1 | sed 5q` in 8696 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8697 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8698 lt_prog_compiler_pic='-KPIC' 8699 lt_prog_compiler_static='-Bstatic' 8700 lt_prog_compiler_wl='' 8701 ;; 8702 *Sun\ F* | *Sun*Fortran*) 8703 lt_prog_compiler_pic='-KPIC' 8704 lt_prog_compiler_static='-Bstatic' 8705 lt_prog_compiler_wl='-Qoption ld ' 8706 ;; 8707 *Sun\ C*) 8708 # Sun C 5.9 8709 lt_prog_compiler_pic='-KPIC' 8710 lt_prog_compiler_static='-Bstatic' 8711 lt_prog_compiler_wl='-Wl,' 8712 ;; 8713 *Intel*\ [CF]*Compiler*) 8714 lt_prog_compiler_wl='-Wl,' 8715 lt_prog_compiler_pic='-fPIC' 8716 lt_prog_compiler_static='-static' 8717 ;; 8718 *Portland\ Group*) 8719 lt_prog_compiler_wl='-Wl,' 8720 lt_prog_compiler_pic='-fpic' 8721 lt_prog_compiler_static='-Bstatic' 8722 ;; 8723 esac 8724 ;; 8725 esac 8726 ;; 8727 8728 newsos6) 8729 lt_prog_compiler_pic='-KPIC' 8730 lt_prog_compiler_static='-Bstatic' 8731 ;; 8732 8733 *nto* | *qnx*) 8734 # QNX uses GNU C++, but need to define -shared option too, otherwise 8735 # it will coredump. 8736 lt_prog_compiler_pic='-fPIC -shared' 8737 ;; 8738 8739 osf3* | osf4* | osf5*) 8740 lt_prog_compiler_wl='-Wl,' 8741 # All OSF/1 code is PIC. 8742 lt_prog_compiler_static='-non_shared' 8743 ;; 8744 8745 rdos*) 8746 lt_prog_compiler_static='-non_shared' 8747 ;; 8748 8749 solaris*) 8750 lt_prog_compiler_pic='-KPIC' 8751 lt_prog_compiler_static='-Bstatic' 8752 case $cc_basename in 8753 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8754 lt_prog_compiler_wl='-Qoption ld ';; 8755 *) 8756 lt_prog_compiler_wl='-Wl,';; 8757 esac 8758 ;; 8759 8760 sunos4*) 8761 lt_prog_compiler_wl='-Qoption ld ' 8762 lt_prog_compiler_pic='-PIC' 8763 lt_prog_compiler_static='-Bstatic' 8764 ;; 8765 8766 sysv4 | sysv4.2uw2* | sysv4.3*) 8767 lt_prog_compiler_wl='-Wl,' 8768 lt_prog_compiler_pic='-KPIC' 8769 lt_prog_compiler_static='-Bstatic' 8770 ;; 8771 8772 sysv4*MP*) 8773 if test -d /usr/nec; then 8774 lt_prog_compiler_pic='-Kconform_pic' 8775 lt_prog_compiler_static='-Bstatic' 8776 fi 8777 ;; 8778 8779 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8780 lt_prog_compiler_wl='-Wl,' 8781 lt_prog_compiler_pic='-KPIC' 8782 lt_prog_compiler_static='-Bstatic' 8783 ;; 8784 8785 unicos*) 8786 lt_prog_compiler_wl='-Wl,' 8787 lt_prog_compiler_can_build_shared=no 8788 ;; 8789 8790 uts4*) 8791 lt_prog_compiler_pic='-pic' 8792 lt_prog_compiler_static='-Bstatic' 8793 ;; 8794 8795 *) 8796 lt_prog_compiler_can_build_shared=no 8797 ;; 8798 esac 8799 fi 8800 8801case $host_os in 8802 # For platforms that do not support PIC, -DPIC is meaningless: 8803 *djgpp*) 8804 lt_prog_compiler_pic= 8805 ;; 8806 *) 8807 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8808 ;; 8809esac 8810 8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8812$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8813if ${lt_cv_prog_compiler_pic+:} false; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8817fi 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8819$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8820lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8821 8822# 8823# Check to make sure the PIC flag actually works. 8824# 8825if test -n "$lt_prog_compiler_pic"; then 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8827$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8828if ${lt_cv_prog_compiler_pic_works+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 lt_cv_prog_compiler_pic_works=no 8832 ac_outfile=conftest.$ac_objext 8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8835 # Insert the option either (1) after the last *FLAGS variable, or 8836 # (2) before a word containing "conftest.", or (3) at the end. 8837 # Note that $ac_compile itself does not contain backslashes and begins 8838 # with a dollar sign (not a hyphen), so the echo should work correctly. 8839 # The option is referenced via a variable to avoid confusing sed. 8840 lt_compile=`echo "$ac_compile" | $SED \ 8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8843 -e 's:$: $lt_compiler_flag:'` 8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8845 (eval "$lt_compile" 2>conftest.err) 8846 ac_status=$? 8847 cat conftest.err >&5 8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8849 if (exit $ac_status) && test -s "$ac_outfile"; then 8850 # The compiler can only warn and ignore the option if not recognized 8851 # So say no if there are warnings other than the usual output. 8852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8855 lt_cv_prog_compiler_pic_works=yes 8856 fi 8857 fi 8858 $RM conftest* 8859 8860fi 8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8862$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8863 8864if test yes = "$lt_cv_prog_compiler_pic_works"; then 8865 case $lt_prog_compiler_pic in 8866 "" | " "*) ;; 8867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8868 esac 8869else 8870 lt_prog_compiler_pic= 8871 lt_prog_compiler_can_build_shared=no 8872fi 8873 8874fi 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886# 8887# Check to make sure the static flag actually works. 8888# 8889wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8891$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8892if ${lt_cv_prog_compiler_static_works+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 lt_cv_prog_compiler_static_works=no 8896 save_LDFLAGS=$LDFLAGS 8897 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8898 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8900 # The linker can only warn and ignore the option if not recognized 8901 # So say no if there are warnings 8902 if test -s conftest.err; then 8903 # Append any errors to the config.log. 8904 cat conftest.err 1>&5 8905 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8907 if diff conftest.exp conftest.er2 >/dev/null; then 8908 lt_cv_prog_compiler_static_works=yes 8909 fi 8910 else 8911 lt_cv_prog_compiler_static_works=yes 8912 fi 8913 fi 8914 $RM -r conftest* 8915 LDFLAGS=$save_LDFLAGS 8916 8917fi 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8919$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8920 8921if test yes = "$lt_cv_prog_compiler_static_works"; then 8922 : 8923else 8924 lt_prog_compiler_static= 8925fi 8926 8927 8928 8929 8930 8931 8932 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8934$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8935if ${lt_cv_prog_compiler_c_o+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937else 8938 lt_cv_prog_compiler_c_o=no 8939 $RM -r conftest 2>/dev/null 8940 mkdir conftest 8941 cd conftest 8942 mkdir out 8943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8944 8945 lt_compiler_flag="-o out/conftest2.$ac_objext" 8946 # Insert the option either (1) after the last *FLAGS variable, or 8947 # (2) before a word containing "conftest.", or (3) at the end. 8948 # Note that $ac_compile itself does not contain backslashes and begins 8949 # with a dollar sign (not a hyphen), so the echo should work correctly. 8950 lt_compile=`echo "$ac_compile" | $SED \ 8951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8953 -e 's:$: $lt_compiler_flag:'` 8954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8955 (eval "$lt_compile" 2>out/conftest.err) 8956 ac_status=$? 8957 cat out/conftest.err >&5 8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8959 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8960 then 8961 # The compiler can only warn and ignore the option if not recognized 8962 # So say no if there are warnings 8963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8966 lt_cv_prog_compiler_c_o=yes 8967 fi 8968 fi 8969 chmod u+w . 2>&5 8970 $RM conftest* 8971 # SGI C++ compiler will create directory out/ii_files/ for 8972 # template instantiation 8973 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8974 $RM out/* && rmdir out 8975 cd .. 8976 $RM -r conftest 8977 $RM conftest* 8978 8979fi 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8981$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8982 8983 8984 8985 8986 8987 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8989$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8990if ${lt_cv_prog_compiler_c_o+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 lt_cv_prog_compiler_c_o=no 8994 $RM -r conftest 2>/dev/null 8995 mkdir conftest 8996 cd conftest 8997 mkdir out 8998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8999 9000 lt_compiler_flag="-o out/conftest2.$ac_objext" 9001 # Insert the option either (1) after the last *FLAGS variable, or 9002 # (2) before a word containing "conftest.", or (3) at the end. 9003 # Note that $ac_compile itself does not contain backslashes and begins 9004 # with a dollar sign (not a hyphen), so the echo should work correctly. 9005 lt_compile=`echo "$ac_compile" | $SED \ 9006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9008 -e 's:$: $lt_compiler_flag:'` 9009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9010 (eval "$lt_compile" 2>out/conftest.err) 9011 ac_status=$? 9012 cat out/conftest.err >&5 9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9014 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9015 then 9016 # The compiler can only warn and ignore the option if not recognized 9017 # So say no if there are warnings 9018 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9021 lt_cv_prog_compiler_c_o=yes 9022 fi 9023 fi 9024 chmod u+w . 2>&5 9025 $RM conftest* 9026 # SGI C++ compiler will create directory out/ii_files/ for 9027 # template instantiation 9028 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9029 $RM out/* && rmdir out 9030 cd .. 9031 $RM -r conftest 9032 $RM conftest* 9033 9034fi 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9036$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9037 9038 9039 9040 9041hard_links=nottested 9042if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9043 # do not overwrite the value of need_locks provided by the user 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9045$as_echo_n "checking if we can lock with hard links... " >&6; } 9046 hard_links=yes 9047 $RM conftest* 9048 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9049 touch conftest.a 9050 ln conftest.a conftest.b 2>&5 || hard_links=no 9051 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9053$as_echo "$hard_links" >&6; } 9054 if test no = "$hard_links"; then 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9056$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9057 need_locks=warn 9058 fi 9059else 9060 need_locks=no 9061fi 9062 9063 9064 9065 9066 9067 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9069$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9070 9071 runpath_var= 9072 allow_undefined_flag= 9073 always_export_symbols=no 9074 archive_cmds= 9075 archive_expsym_cmds= 9076 compiler_needs_object=no 9077 enable_shared_with_static_runtimes=no 9078 export_dynamic_flag_spec= 9079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9080 hardcode_automatic=no 9081 hardcode_direct=no 9082 hardcode_direct_absolute=no 9083 hardcode_libdir_flag_spec= 9084 hardcode_libdir_separator= 9085 hardcode_minus_L=no 9086 hardcode_shlibpath_var=unsupported 9087 inherit_rpath=no 9088 link_all_deplibs=unknown 9089 module_cmds= 9090 module_expsym_cmds= 9091 old_archive_from_new_cmds= 9092 old_archive_from_expsyms_cmds= 9093 thread_safe_flag_spec= 9094 whole_archive_flag_spec= 9095 # include_expsyms should be a list of space-separated symbols to be *always* 9096 # included in the symbol list 9097 include_expsyms= 9098 # exclude_expsyms can be an extended regexp of symbols to exclude 9099 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9100 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9101 # as well as any symbol that contains 'd'. 9102 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9104 # platforms (ab)use it in PIC code, but their linkers get confused if 9105 # the symbol is explicitly referenced. Since portable code cannot 9106 # rely on this symbol name, it's probably fine to never include it in 9107 # preloaded symbol tables. 9108 # Exclude shared library initialization/finalization symbols. 9109 extract_expsyms_cmds= 9110 9111 case $host_os in 9112 cygwin* | mingw* | pw32* | cegcc*) 9113 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9114 # When not using gcc, we currently assume that we are using 9115 # Microsoft Visual C++. 9116 if test yes != "$GCC"; then 9117 with_gnu_ld=no 9118 fi 9119 ;; 9120 interix*) 9121 # we just hope/assume this is gcc and not c89 (= MSVC++) 9122 with_gnu_ld=yes 9123 ;; 9124 openbsd* | bitrig*) 9125 with_gnu_ld=no 9126 ;; 9127 esac 9128 9129 ld_shlibs=yes 9130 9131 # On some targets, GNU ld is compatible enough with the native linker 9132 # that we're better off using the native interface for both. 9133 lt_use_gnu_ld_interface=no 9134 if test yes = "$with_gnu_ld"; then 9135 case $host_os in 9136 aix*) 9137 # The AIX port of GNU ld has always aspired to compatibility 9138 # with the native linker. However, as the warning in the GNU ld 9139 # block says, versions before 2.19.5* couldn't really create working 9140 # shared libraries, regardless of the interface used. 9141 case `$LD -v 2>&1` in 9142 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9143 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9144 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9145 *) 9146 lt_use_gnu_ld_interface=yes 9147 ;; 9148 esac 9149 ;; 9150 *) 9151 lt_use_gnu_ld_interface=yes 9152 ;; 9153 esac 9154 fi 9155 9156 if test yes = "$lt_use_gnu_ld_interface"; then 9157 # If archive_cmds runs LD, not CC, wlarc should be empty 9158 wlarc='$wl' 9159 9160 # Set some defaults for GNU ld with shared library support. These 9161 # are reset later if shared libraries are not supported. Putting them 9162 # here allows them to be overridden if necessary. 9163 runpath_var=LD_RUN_PATH 9164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9165 export_dynamic_flag_spec='$wl--export-dynamic' 9166 # ancient GNU ld didn't support --whole-archive et. al. 9167 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9168 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9169 else 9170 whole_archive_flag_spec= 9171 fi 9172 supports_anon_versioning=no 9173 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9174 *GNU\ gold*) supports_anon_versioning=yes ;; 9175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9178 *\ 2.11.*) ;; # other 2.11 versions 9179 *) supports_anon_versioning=yes ;; 9180 esac 9181 9182 # See if GNU ld supports shared libraries. 9183 case $host_os in 9184 aix[3-9]*) 9185 # On AIX/PPC, the GNU linker is very broken 9186 if test ia64 != "$host_cpu"; then 9187 ld_shlibs=no 9188 cat <<_LT_EOF 1>&2 9189 9190*** Warning: the GNU linker, at least up to release 2.19, is reported 9191*** to be unable to reliably create shared libraries on AIX. 9192*** Therefore, libtool is disabling shared libraries support. If you 9193*** really care for shared libraries, you may want to install binutils 9194*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9195*** You will then need to restart the configuration process. 9196 9197_LT_EOF 9198 fi 9199 ;; 9200 9201 amigaos*) 9202 case $host_cpu in 9203 powerpc) 9204 # see comment about AmigaOS4 .so support 9205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9206 archive_expsym_cmds='' 9207 ;; 9208 m68k) 9209 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)' 9210 hardcode_libdir_flag_spec='-L$libdir' 9211 hardcode_minus_L=yes 9212 ;; 9213 esac 9214 ;; 9215 9216 beos*) 9217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9218 allow_undefined_flag=unsupported 9219 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9220 # support --undefined. This deserves some investigation. FIXME 9221 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9222 else 9223 ld_shlibs=no 9224 fi 9225 ;; 9226 9227 cygwin* | mingw* | pw32* | cegcc*) 9228 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9229 # as there is no search path for DLLs. 9230 hardcode_libdir_flag_spec='-L$libdir' 9231 export_dynamic_flag_spec='$wl--export-all-symbols' 9232 allow_undefined_flag=unsupported 9233 always_export_symbols=no 9234 enable_shared_with_static_runtimes=yes 9235 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' 9236 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9237 9238 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9240 # If the export-symbols file already is a .def file, use it as 9241 # is; otherwise, prepend EXPORTS... 9242 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9243 cp $export_symbols $output_objdir/$soname.def; 9244 else 9245 echo EXPORTS > $output_objdir/$soname.def; 9246 cat $export_symbols >> $output_objdir/$soname.def; 9247 fi~ 9248 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9249 else 9250 ld_shlibs=no 9251 fi 9252 ;; 9253 9254 haiku*) 9255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9256 link_all_deplibs=yes 9257 ;; 9258 9259 os2*) 9260 hardcode_libdir_flag_spec='-L$libdir' 9261 hardcode_minus_L=yes 9262 allow_undefined_flag=unsupported 9263 shrext_cmds=.dll 9264 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9265 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9266 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9267 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9268 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9269 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9270 emximp -o $lib $output_objdir/$libname.def' 9271 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9272 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9273 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9274 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9275 prefix_cmds="$SED"~ 9276 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9277 prefix_cmds="$prefix_cmds -e 1d"; 9278 fi~ 9279 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9280 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9281 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9282 emximp -o $lib $output_objdir/$libname.def' 9283 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9284 enable_shared_with_static_runtimes=yes 9285 ;; 9286 9287 interix[3-9]*) 9288 hardcode_direct=no 9289 hardcode_shlibpath_var=no 9290 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9291 export_dynamic_flag_spec='$wl-E' 9292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9293 # Instead, shared libraries are loaded at an image base (0x10000000 by 9294 # default) and relocated if they conflict, which is a slow very memory 9295 # consuming and fragmenting process. To avoid this, we pick a random, 9296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9297 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9298 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9299 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' 9300 ;; 9301 9302 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9303 tmp_diet=no 9304 if test linux-dietlibc = "$host_os"; then 9305 case $cc_basename in 9306 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9307 esac 9308 fi 9309 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9310 && test no = "$tmp_diet" 9311 then 9312 tmp_addflag=' $pic_flag' 9313 tmp_sharedflag='-shared' 9314 case $cc_basename,$host_cpu in 9315 pgcc*) # Portland Group C compiler 9316 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' 9317 tmp_addflag=' $pic_flag' 9318 ;; 9319 pgf77* | pgf90* | pgf95* | pgfortran*) 9320 # Portland Group f77 and f90 compilers 9321 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' 9322 tmp_addflag=' $pic_flag -Mnomain' ;; 9323 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9324 tmp_addflag=' -i_dynamic' ;; 9325 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9326 tmp_addflag=' -i_dynamic -nofor_main' ;; 9327 ifc* | ifort*) # Intel Fortran compiler 9328 tmp_addflag=' -nofor_main' ;; 9329 lf95*) # Lahey Fortran 8.1 9330 whole_archive_flag_spec= 9331 tmp_sharedflag='--shared' ;; 9332 nagfor*) # NAGFOR 5.3 9333 tmp_sharedflag='-Wl,-shared' ;; 9334 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9335 tmp_sharedflag='-qmkshrobj' 9336 tmp_addflag= ;; 9337 nvcc*) # Cuda Compiler Driver 2.2 9338 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' 9339 compiler_needs_object=yes 9340 ;; 9341 esac 9342 case `$CC -V 2>&1 | sed 5q` in 9343 *Sun\ C*) # Sun C 5.9 9344 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' 9345 compiler_needs_object=yes 9346 tmp_sharedflag='-G' ;; 9347 *Sun\ F*) # Sun Fortran 8.3 9348 tmp_sharedflag='-G' ;; 9349 esac 9350 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9351 9352 if test yes = "$supports_anon_versioning"; then 9353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9355 echo "local: *; };" >> $output_objdir/$libname.ver~ 9356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9357 fi 9358 9359 case $cc_basename in 9360 tcc*) 9361 export_dynamic_flag_spec='-rdynamic' 9362 ;; 9363 xlf* | bgf* | bgxlf* | mpixlf*) 9364 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9365 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9367 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9368 if test yes = "$supports_anon_versioning"; then 9369 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9371 echo "local: *; };" >> $output_objdir/$libname.ver~ 9372 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9373 fi 9374 ;; 9375 esac 9376 else 9377 ld_shlibs=no 9378 fi 9379 ;; 9380 9381 netbsd*) 9382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9383 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9384 wlarc= 9385 else 9386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9387 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9388 fi 9389 ;; 9390 9391 solaris*) 9392 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9393 ld_shlibs=no 9394 cat <<_LT_EOF 1>&2 9395 9396*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9397*** create shared libraries on Solaris systems. Therefore, libtool 9398*** is disabling shared libraries support. We urge you to upgrade GNU 9399*** binutils to release 2.9.1 or newer. Another option is to modify 9400*** your PATH or compiler configuration so that the native linker is 9401*** used, and then restart. 9402 9403_LT_EOF 9404 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9406 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9407 else 9408 ld_shlibs=no 9409 fi 9410 ;; 9411 9412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9413 case `$LD -v 2>&1` in 9414 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9415 ld_shlibs=no 9416 cat <<_LT_EOF 1>&2 9417 9418*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9419*** reliably create shared libraries on SCO systems. Therefore, libtool 9420*** is disabling shared libraries support. We urge you to upgrade GNU 9421*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9422*** your PATH or compiler configuration so that the native linker is 9423*** used, and then restart. 9424 9425_LT_EOF 9426 ;; 9427 *) 9428 # For security reasons, it is highly recommended that you always 9429 # use absolute paths for naming shared libraries, and exclude the 9430 # DT_RUNPATH tag from executables and libraries. But doing so 9431 # requires that you compile everything twice, which is a pain. 9432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9433 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9436 else 9437 ld_shlibs=no 9438 fi 9439 ;; 9440 esac 9441 ;; 9442 9443 sunos4*) 9444 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9445 wlarc= 9446 hardcode_direct=yes 9447 hardcode_shlibpath_var=no 9448 ;; 9449 9450 *) 9451 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9453 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9454 else 9455 ld_shlibs=no 9456 fi 9457 ;; 9458 esac 9459 9460 if test no = "$ld_shlibs"; then 9461 runpath_var= 9462 hardcode_libdir_flag_spec= 9463 export_dynamic_flag_spec= 9464 whole_archive_flag_spec= 9465 fi 9466 else 9467 # PORTME fill in a description of your system's linker (not GNU ld) 9468 case $host_os in 9469 aix3*) 9470 allow_undefined_flag=unsupported 9471 always_export_symbols=yes 9472 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' 9473 # Note: this linker hardcodes the directories in LIBPATH if there 9474 # are no directories specified by -L. 9475 hardcode_minus_L=yes 9476 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9477 # Neither direct hardcoding nor static linking is supported with a 9478 # broken collect2. 9479 hardcode_direct=unsupported 9480 fi 9481 ;; 9482 9483 aix[4-9]*) 9484 if test ia64 = "$host_cpu"; then 9485 # On IA64, the linker does run time linking by default, so we don't 9486 # have to do anything special. 9487 aix_use_runtimelinking=no 9488 exp_sym_flag='-Bexport' 9489 no_entry_flag= 9490 else 9491 # If we're using GNU nm, then we don't want the "-C" option. 9492 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9493 # Without the "-l" option, or with the "-B" option, AIX nm treats 9494 # weak defined symbols like other global defined symbols, whereas 9495 # GNU nm marks them as "W". 9496 # While the 'weak' keyword is ignored in the Export File, we need 9497 # it in the Import File for the 'aix-soname' feature, so we have 9498 # to replace the "-B" option with "-P" for AIX nm. 9499 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9500 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9501 else 9502 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9503 fi 9504 aix_use_runtimelinking=no 9505 9506 # Test if we are trying to use run time linking or normal 9507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9508 # have runtime linking enabled, and use it for executables. 9509 # For shared libraries, we enable/disable runtime linking 9510 # depending on the kind of the shared library created - 9511 # when "with_aix_soname,aix_use_runtimelinking" is: 9512 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9513 # "aix,yes" lib.so shared, rtl:yes, for executables 9514 # lib.a static archive 9515 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9516 # lib.a(lib.so.V) shared, rtl:no, for executables 9517 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9518 # lib.a(lib.so.V) shared, rtl:no 9519 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9520 # lib.a static archive 9521 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9522 for ld_flag in $LDFLAGS; do 9523 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9524 aix_use_runtimelinking=yes 9525 break 9526 fi 9527 done 9528 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9529 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9530 # so we don't have lib.a shared libs to link our executables. 9531 # We have to force runtime linking in this case. 9532 aix_use_runtimelinking=yes 9533 LDFLAGS="$LDFLAGS -Wl,-brtl" 9534 fi 9535 ;; 9536 esac 9537 9538 exp_sym_flag='-bexport' 9539 no_entry_flag='-bnoentry' 9540 fi 9541 9542 # When large executables or shared objects are built, AIX ld can 9543 # have problems creating the table of contents. If linking a library 9544 # or program results in "error TOC overflow" add -mminimal-toc to 9545 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9546 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9547 9548 archive_cmds='' 9549 hardcode_direct=yes 9550 hardcode_direct_absolute=yes 9551 hardcode_libdir_separator=':' 9552 link_all_deplibs=yes 9553 file_list_spec='$wl-f,' 9554 case $with_aix_soname,$aix_use_runtimelinking in 9555 aix,*) ;; # traditional, no import file 9556 svr4,* | *,yes) # use import file 9557 # The Import File defines what to hardcode. 9558 hardcode_direct=no 9559 hardcode_direct_absolute=no 9560 ;; 9561 esac 9562 9563 if test yes = "$GCC"; then 9564 case $host_os in aix4.[012]|aix4.[012].*) 9565 # We only want to do this on AIX 4.2 and lower, the check 9566 # below for broken collect2 doesn't work under 4.3+ 9567 collect2name=`$CC -print-prog-name=collect2` 9568 if test -f "$collect2name" && 9569 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9570 then 9571 # We have reworked collect2 9572 : 9573 else 9574 # We have old collect2 9575 hardcode_direct=unsupported 9576 # It fails to find uninstalled libraries when the uninstalled 9577 # path is not listed in the libpath. Setting hardcode_minus_L 9578 # to unsupported forces relinking 9579 hardcode_minus_L=yes 9580 hardcode_libdir_flag_spec='-L$libdir' 9581 hardcode_libdir_separator= 9582 fi 9583 ;; 9584 esac 9585 shared_flag='-shared' 9586 if test yes = "$aix_use_runtimelinking"; then 9587 shared_flag="$shared_flag "'$wl-G' 9588 fi 9589 # Need to ensure runtime linking is disabled for the traditional 9590 # shared library, or the linker may eventually find shared libraries 9591 # /with/ Import File - we do not want to mix them. 9592 shared_flag_aix='-shared' 9593 shared_flag_svr4='-shared $wl-G' 9594 else 9595 # not using gcc 9596 if test ia64 = "$host_cpu"; then 9597 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9598 # chokes on -Wl,-G. The following line is correct: 9599 shared_flag='-G' 9600 else 9601 if test yes = "$aix_use_runtimelinking"; then 9602 shared_flag='$wl-G' 9603 else 9604 shared_flag='$wl-bM:SRE' 9605 fi 9606 shared_flag_aix='$wl-bM:SRE' 9607 shared_flag_svr4='$wl-G' 9608 fi 9609 fi 9610 9611 export_dynamic_flag_spec='$wl-bexpall' 9612 # It seems that -bexpall does not export symbols beginning with 9613 # underscore (_), so it is better to generate a list of symbols to export. 9614 always_export_symbols=yes 9615 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9616 # Warning - without using the other runtime loading flags (-brtl), 9617 # -berok will link without error, but may produce a broken library. 9618 allow_undefined_flag='-berok' 9619 # Determine the default libpath from the value encoded in an 9620 # empty executable. 9621 if test set = "${lt_cv_aix_libpath+set}"; then 9622 aix_libpath=$lt_cv_aix_libpath 9623else 9624 if ${lt_cv_aix_libpath_+:} false; then : 9625 $as_echo_n "(cached) " >&6 9626else 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629 9630int 9631main () 9632{ 9633 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638if ac_fn_c_try_link "$LINENO"; then : 9639 9640 lt_aix_libpath_sed=' 9641 /Import File Strings/,/^$/ { 9642 /^0/ { 9643 s/^0 *\([^ ]*\) *$/\1/ 9644 p 9645 } 9646 }' 9647 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9648 # Check for a 64-bit object if we didn't find anything. 9649 if test -z "$lt_cv_aix_libpath_"; then 9650 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9651 fi 9652fi 9653rm -f core conftest.err conftest.$ac_objext \ 9654 conftest$ac_exeext conftest.$ac_ext 9655 if test -z "$lt_cv_aix_libpath_"; then 9656 lt_cv_aix_libpath_=/usr/lib:/lib 9657 fi 9658 9659fi 9660 9661 aix_libpath=$lt_cv_aix_libpath_ 9662fi 9663 9664 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9665 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9666 else 9667 if test ia64 = "$host_cpu"; then 9668 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9669 allow_undefined_flag="-z nodefs" 9670 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" 9671 else 9672 # Determine the default libpath from the value encoded in an 9673 # empty executable. 9674 if test set = "${lt_cv_aix_libpath+set}"; then 9675 aix_libpath=$lt_cv_aix_libpath 9676else 9677 if ${lt_cv_aix_libpath_+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9681/* end confdefs.h. */ 9682 9683int 9684main () 9685{ 9686 9687 ; 9688 return 0; 9689} 9690_ACEOF 9691if ac_fn_c_try_link "$LINENO"; then : 9692 9693 lt_aix_libpath_sed=' 9694 /Import File Strings/,/^$/ { 9695 /^0/ { 9696 s/^0 *\([^ ]*\) *$/\1/ 9697 p 9698 } 9699 }' 9700 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9701 # Check for a 64-bit object if we didn't find anything. 9702 if test -z "$lt_cv_aix_libpath_"; then 9703 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9704 fi 9705fi 9706rm -f core conftest.err conftest.$ac_objext \ 9707 conftest$ac_exeext conftest.$ac_ext 9708 if test -z "$lt_cv_aix_libpath_"; then 9709 lt_cv_aix_libpath_=/usr/lib:/lib 9710 fi 9711 9712fi 9713 9714 aix_libpath=$lt_cv_aix_libpath_ 9715fi 9716 9717 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9718 # Warning - without using the other run time loading flags, 9719 # -berok will link without error, but may produce a broken library. 9720 no_undefined_flag=' $wl-bernotok' 9721 allow_undefined_flag=' $wl-berok' 9722 if test yes = "$with_gnu_ld"; then 9723 # We only use this code for GNU lds that support --whole-archive. 9724 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9725 else 9726 # Exported symbols can be pulled into shared objects from archives 9727 whole_archive_flag_spec='$convenience' 9728 fi 9729 archive_cmds_need_lc=yes 9730 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9731 # -brtl affects multiple linker settings, -berok does not and is overridden later 9732 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9733 if test svr4 != "$with_aix_soname"; then 9734 # This is similar to how AIX traditionally builds its shared libraries. 9735 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9736 fi 9737 if test aix != "$with_aix_soname"; then 9738 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9739 else 9740 # used by -dlpreopen to get the symbols 9741 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9742 fi 9743 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9744 fi 9745 fi 9746 ;; 9747 9748 amigaos*) 9749 case $host_cpu in 9750 powerpc) 9751 # see comment about AmigaOS4 .so support 9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9753 archive_expsym_cmds='' 9754 ;; 9755 m68k) 9756 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)' 9757 hardcode_libdir_flag_spec='-L$libdir' 9758 hardcode_minus_L=yes 9759 ;; 9760 esac 9761 ;; 9762 9763 bsdi[45]*) 9764 export_dynamic_flag_spec=-rdynamic 9765 ;; 9766 9767 cygwin* | mingw* | pw32* | cegcc*) 9768 # When not using gcc, we currently assume that we are using 9769 # Microsoft Visual C++. 9770 # hardcode_libdir_flag_spec is actually meaningless, as there is 9771 # no search path for DLLs. 9772 case $cc_basename in 9773 cl*) 9774 # Native MSVC 9775 hardcode_libdir_flag_spec=' ' 9776 allow_undefined_flag=unsupported 9777 always_export_symbols=yes 9778 file_list_spec='@' 9779 # Tell ltmain to make .lib files, not .a files. 9780 libext=lib 9781 # Tell ltmain to make .dll files, not .so files. 9782 shrext_cmds=.dll 9783 # FIXME: Setting linknames here is a bad hack. 9784 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9785 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9786 cp "$export_symbols" "$output_objdir/$soname.def"; 9787 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9788 else 9789 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9790 fi~ 9791 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9792 linknames=' 9793 # The linker will not automatically build a static lib if we build a DLL. 9794 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9795 enable_shared_with_static_runtimes=yes 9796 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9797 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9798 # Don't use ranlib 9799 old_postinstall_cmds='chmod 644 $oldlib' 9800 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9801 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9802 case $lt_outputfile in 9803 *.exe|*.EXE) ;; 9804 *) 9805 lt_outputfile=$lt_outputfile.exe 9806 lt_tool_outputfile=$lt_tool_outputfile.exe 9807 ;; 9808 esac~ 9809 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9810 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9811 $RM "$lt_outputfile.manifest"; 9812 fi' 9813 ;; 9814 *) 9815 # Assume MSVC wrapper 9816 hardcode_libdir_flag_spec=' ' 9817 allow_undefined_flag=unsupported 9818 # Tell ltmain to make .lib files, not .a files. 9819 libext=lib 9820 # Tell ltmain to make .dll files, not .so files. 9821 shrext_cmds=.dll 9822 # FIXME: Setting linknames here is a bad hack. 9823 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9824 # The linker will automatically build a .lib file if we build a DLL. 9825 old_archive_from_new_cmds='true' 9826 # FIXME: Should let the user specify the lib program. 9827 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9828 enable_shared_with_static_runtimes=yes 9829 ;; 9830 esac 9831 ;; 9832 9833 darwin* | rhapsody*) 9834 9835 9836 archive_cmds_need_lc=no 9837 hardcode_direct=no 9838 hardcode_automatic=yes 9839 hardcode_shlibpath_var=unsupported 9840 if test yes = "$lt_cv_ld_force_load"; then 9841 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\"`' 9842 9843 else 9844 whole_archive_flag_spec='' 9845 fi 9846 link_all_deplibs=yes 9847 allow_undefined_flag=$_lt_dar_allow_undefined 9848 case $cc_basename in 9849 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9850 *) _lt_dar_can_shared=$GCC ;; 9851 esac 9852 if test yes = "$_lt_dar_can_shared"; then 9853 output_verbose_link_cmd=func_echo_all 9854 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9855 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9856 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" 9857 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" 9858 9859 else 9860 ld_shlibs=no 9861 fi 9862 9863 ;; 9864 9865 dgux*) 9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9867 hardcode_libdir_flag_spec='-L$libdir' 9868 hardcode_shlibpath_var=no 9869 ;; 9870 9871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9872 # support. Future versions do this automatically, but an explicit c++rt0.o 9873 # does not break anything, and helps significantly (at the cost of a little 9874 # extra space). 9875 freebsd2.2*) 9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9877 hardcode_libdir_flag_spec='-R$libdir' 9878 hardcode_direct=yes 9879 hardcode_shlibpath_var=no 9880 ;; 9881 9882 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9883 freebsd2.*) 9884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9885 hardcode_direct=yes 9886 hardcode_minus_L=yes 9887 hardcode_shlibpath_var=no 9888 ;; 9889 9890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9891 freebsd* | dragonfly*) 9892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9893 hardcode_libdir_flag_spec='-R$libdir' 9894 hardcode_direct=yes 9895 hardcode_shlibpath_var=no 9896 ;; 9897 9898 hpux9*) 9899 if test yes = "$GCC"; then 9900 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9901 else 9902 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9903 fi 9904 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9905 hardcode_libdir_separator=: 9906 hardcode_direct=yes 9907 9908 # hardcode_minus_L: Not really in the search PATH, 9909 # but as the default location of the library. 9910 hardcode_minus_L=yes 9911 export_dynamic_flag_spec='$wl-E' 9912 ;; 9913 9914 hpux10*) 9915 if test yes,no = "$GCC,$with_gnu_ld"; then 9916 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9917 else 9918 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9919 fi 9920 if test no = "$with_gnu_ld"; then 9921 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9922 hardcode_libdir_separator=: 9923 hardcode_direct=yes 9924 hardcode_direct_absolute=yes 9925 export_dynamic_flag_spec='$wl-E' 9926 # hardcode_minus_L: Not really in the search PATH, 9927 # but as the default location of the library. 9928 hardcode_minus_L=yes 9929 fi 9930 ;; 9931 9932 hpux11*) 9933 if test yes,no = "$GCC,$with_gnu_ld"; then 9934 case $host_cpu in 9935 hppa*64*) 9936 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9937 ;; 9938 ia64*) 9939 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9940 ;; 9941 *) 9942 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9943 ;; 9944 esac 9945 else 9946 case $host_cpu in 9947 hppa*64*) 9948 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9949 ;; 9950 ia64*) 9951 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9952 ;; 9953 *) 9954 9955 # Older versions of the 11.00 compiler do not understand -b yet 9956 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9958$as_echo_n "checking if $CC understands -b... " >&6; } 9959if ${lt_cv_prog_compiler__b+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 lt_cv_prog_compiler__b=no 9963 save_LDFLAGS=$LDFLAGS 9964 LDFLAGS="$LDFLAGS -b" 9965 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9967 # The linker can only warn and ignore the option if not recognized 9968 # So say no if there are warnings 9969 if test -s conftest.err; then 9970 # Append any errors to the config.log. 9971 cat conftest.err 1>&5 9972 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9974 if diff conftest.exp conftest.er2 >/dev/null; then 9975 lt_cv_prog_compiler__b=yes 9976 fi 9977 else 9978 lt_cv_prog_compiler__b=yes 9979 fi 9980 fi 9981 $RM -r conftest* 9982 LDFLAGS=$save_LDFLAGS 9983 9984fi 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9986$as_echo "$lt_cv_prog_compiler__b" >&6; } 9987 9988if test yes = "$lt_cv_prog_compiler__b"; then 9989 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9990else 9991 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9992fi 9993 9994 ;; 9995 esac 9996 fi 9997 if test no = "$with_gnu_ld"; then 9998 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9999 hardcode_libdir_separator=: 10000 10001 case $host_cpu in 10002 hppa*64*|ia64*) 10003 hardcode_direct=no 10004 hardcode_shlibpath_var=no 10005 ;; 10006 *) 10007 hardcode_direct=yes 10008 hardcode_direct_absolute=yes 10009 export_dynamic_flag_spec='$wl-E' 10010 10011 # hardcode_minus_L: Not really in the search PATH, 10012 # but as the default location of the library. 10013 hardcode_minus_L=yes 10014 ;; 10015 esac 10016 fi 10017 ;; 10018 10019 irix5* | irix6* | nonstopux*) 10020 if test yes = "$GCC"; then 10021 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' 10022 # Try to use the -exported_symbol ld option, if it does not 10023 # work, assume that -exports_file does not work either and 10024 # implicitly export all symbols. 10025 # This should be the same for all languages, so no per-tag cache variable. 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10027$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10028if ${lt_cv_irix_exported_symbol+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 save_LDFLAGS=$LDFLAGS 10032 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10034/* end confdefs.h. */ 10035int foo (void) { return 0; } 10036_ACEOF 10037if ac_fn_c_try_link "$LINENO"; then : 10038 lt_cv_irix_exported_symbol=yes 10039else 10040 lt_cv_irix_exported_symbol=no 10041fi 10042rm -f core conftest.err conftest.$ac_objext \ 10043 conftest$ac_exeext conftest.$ac_ext 10044 LDFLAGS=$save_LDFLAGS 10045fi 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10047$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10048 if test yes = "$lt_cv_irix_exported_symbol"; then 10049 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' 10050 fi 10051 else 10052 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' 10053 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' 10054 fi 10055 archive_cmds_need_lc='no' 10056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10057 hardcode_libdir_separator=: 10058 inherit_rpath=yes 10059 link_all_deplibs=yes 10060 ;; 10061 10062 linux*) 10063 case $cc_basename in 10064 tcc*) 10065 # Fabrice Bellard et al's Tiny C Compiler 10066 ld_shlibs=yes 10067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10068 ;; 10069 esac 10070 ;; 10071 10072 netbsd*) 10073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10075 else 10076 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10077 fi 10078 hardcode_libdir_flag_spec='-R$libdir' 10079 hardcode_direct=yes 10080 hardcode_shlibpath_var=no 10081 ;; 10082 10083 newsos6) 10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10085 hardcode_direct=yes 10086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10087 hardcode_libdir_separator=: 10088 hardcode_shlibpath_var=no 10089 ;; 10090 10091 *nto* | *qnx*) 10092 ;; 10093 10094 openbsd* | bitrig*) 10095 if test -f /usr/libexec/ld.so; then 10096 hardcode_direct=yes 10097 hardcode_shlibpath_var=no 10098 hardcode_direct_absolute=yes 10099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10101 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10102 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10103 export_dynamic_flag_spec='$wl-E' 10104 else 10105 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10106 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10107 fi 10108 else 10109 ld_shlibs=no 10110 fi 10111 ;; 10112 10113 os2*) 10114 hardcode_libdir_flag_spec='-L$libdir' 10115 hardcode_minus_L=yes 10116 allow_undefined_flag=unsupported 10117 shrext_cmds=.dll 10118 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10121 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10122 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10123 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10124 emximp -o $lib $output_objdir/$libname.def' 10125 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10126 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10127 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10128 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10129 prefix_cmds="$SED"~ 10130 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10131 prefix_cmds="$prefix_cmds -e 1d"; 10132 fi~ 10133 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10134 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10135 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10136 emximp -o $lib $output_objdir/$libname.def' 10137 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10138 enable_shared_with_static_runtimes=yes 10139 ;; 10140 10141 osf3*) 10142 if test yes = "$GCC"; then 10143 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10144 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' 10145 else 10146 allow_undefined_flag=' -expect_unresolved \*' 10147 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' 10148 fi 10149 archive_cmds_need_lc='no' 10150 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10151 hardcode_libdir_separator=: 10152 ;; 10153 10154 osf4* | osf5*) # as osf3* with the addition of -msym flag 10155 if test yes = "$GCC"; then 10156 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10157 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' 10158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10159 else 10160 allow_undefined_flag=' -expect_unresolved \*' 10161 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' 10162 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~ 10163 $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' 10164 10165 # Both c and cxx compiler support -rpath directly 10166 hardcode_libdir_flag_spec='-rpath $libdir' 10167 fi 10168 archive_cmds_need_lc='no' 10169 hardcode_libdir_separator=: 10170 ;; 10171 10172 solaris*) 10173 no_undefined_flag=' -z defs' 10174 if test yes = "$GCC"; then 10175 wlarc='$wl' 10176 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10178 $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' 10179 else 10180 case `$CC -V 2>&1` in 10181 *"Compilers 5.0"*) 10182 wlarc='' 10183 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10185 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10186 ;; 10187 *) 10188 wlarc='$wl' 10189 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10191 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10192 ;; 10193 esac 10194 fi 10195 hardcode_libdir_flag_spec='-R$libdir' 10196 hardcode_shlibpath_var=no 10197 case $host_os in 10198 solaris2.[0-5] | solaris2.[0-5].*) ;; 10199 *) 10200 # The compiler driver will combine and reorder linker options, 10201 # but understands '-z linker_flag'. GCC discards it without '$wl', 10202 # but is careful enough not to reorder. 10203 # Supported since Solaris 2.6 (maybe 2.5.1?) 10204 if test yes = "$GCC"; then 10205 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10206 else 10207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10208 fi 10209 ;; 10210 esac 10211 link_all_deplibs=yes 10212 ;; 10213 10214 sunos4*) 10215 if test sequent = "$host_vendor"; then 10216 # Use $CC to link under sequent, because it throws in some extra .o 10217 # files that make .init and .fini sections work. 10218 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10219 else 10220 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10221 fi 10222 hardcode_libdir_flag_spec='-L$libdir' 10223 hardcode_direct=yes 10224 hardcode_minus_L=yes 10225 hardcode_shlibpath_var=no 10226 ;; 10227 10228 sysv4) 10229 case $host_vendor in 10230 sni) 10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10232 hardcode_direct=yes # is this really true??? 10233 ;; 10234 siemens) 10235 ## LD is ld it makes a PLAMLIB 10236 ## CC just makes a GrossModule. 10237 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10238 reload_cmds='$CC -r -o $output$reload_objs' 10239 hardcode_direct=no 10240 ;; 10241 motorola) 10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10243 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10244 ;; 10245 esac 10246 runpath_var='LD_RUN_PATH' 10247 hardcode_shlibpath_var=no 10248 ;; 10249 10250 sysv4.3*) 10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10252 hardcode_shlibpath_var=no 10253 export_dynamic_flag_spec='-Bexport' 10254 ;; 10255 10256 sysv4*MP*) 10257 if test -d /usr/nec; then 10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10259 hardcode_shlibpath_var=no 10260 runpath_var=LD_RUN_PATH 10261 hardcode_runpath_var=yes 10262 ld_shlibs=yes 10263 fi 10264 ;; 10265 10266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10267 no_undefined_flag='$wl-z,text' 10268 archive_cmds_need_lc=no 10269 hardcode_shlibpath_var=no 10270 runpath_var='LD_RUN_PATH' 10271 10272 if test yes = "$GCC"; then 10273 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10274 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10275 else 10276 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10277 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10278 fi 10279 ;; 10280 10281 sysv5* | sco3.2v5* | sco5v6*) 10282 # Note: We CANNOT use -z defs as we might desire, because we do not 10283 # link with -lc, and that would cause any symbols used from libc to 10284 # always be unresolved, which means just about no library would 10285 # ever link correctly. If we're not using GNU ld we use -z text 10286 # though, which does catch some bad symbols but isn't as heavy-handed 10287 # as -z defs. 10288 no_undefined_flag='$wl-z,text' 10289 allow_undefined_flag='$wl-z,nodefs' 10290 archive_cmds_need_lc=no 10291 hardcode_shlibpath_var=no 10292 hardcode_libdir_flag_spec='$wl-R,$libdir' 10293 hardcode_libdir_separator=':' 10294 link_all_deplibs=yes 10295 export_dynamic_flag_spec='$wl-Bexport' 10296 runpath_var='LD_RUN_PATH' 10297 10298 if test yes = "$GCC"; then 10299 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10300 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10301 else 10302 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10303 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 fi 10305 ;; 10306 10307 uts4*) 10308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10309 hardcode_libdir_flag_spec='-L$libdir' 10310 hardcode_shlibpath_var=no 10311 ;; 10312 10313 *) 10314 ld_shlibs=no 10315 ;; 10316 esac 10317 10318 if test sni = "$host_vendor"; then 10319 case $host in 10320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10321 export_dynamic_flag_spec='$wl-Blargedynsym' 10322 ;; 10323 esac 10324 fi 10325 fi 10326 10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10328$as_echo "$ld_shlibs" >&6; } 10329test no = "$ld_shlibs" && can_build_shared=no 10330 10331with_gnu_ld=$with_gnu_ld 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347# 10348# Do we need to explicitly link libc? 10349# 10350case "x$archive_cmds_need_lc" in 10351x|xyes) 10352 # Assume -lc should be added 10353 archive_cmds_need_lc=yes 10354 10355 if test yes,yes = "$GCC,$enable_shared"; then 10356 case $archive_cmds in 10357 *'~'*) 10358 # FIXME: we may have to deal with multi-command sequences. 10359 ;; 10360 '$CC '*) 10361 # Test whether the compiler implicitly links with -lc since on some 10362 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10363 # to ld, don't add -lc before -lgcc. 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10365$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10366if ${lt_cv_archive_cmds_need_lc+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 $RM conftest* 10370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10371 10372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10373 (eval $ac_compile) 2>&5 10374 ac_status=$? 10375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10376 test $ac_status = 0; } 2>conftest.err; then 10377 soname=conftest 10378 lib=conftest 10379 libobjs=conftest.$ac_objext 10380 deplibs= 10381 wl=$lt_prog_compiler_wl 10382 pic_flag=$lt_prog_compiler_pic 10383 compiler_flags=-v 10384 linker_flags=-v 10385 verstring= 10386 output_objdir=. 10387 libname=conftest 10388 lt_save_allow_undefined_flag=$allow_undefined_flag 10389 allow_undefined_flag= 10390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10391 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10392 ac_status=$? 10393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10394 test $ac_status = 0; } 10395 then 10396 lt_cv_archive_cmds_need_lc=no 10397 else 10398 lt_cv_archive_cmds_need_lc=yes 10399 fi 10400 allow_undefined_flag=$lt_save_allow_undefined_flag 10401 else 10402 cat conftest.err 1>&5 10403 fi 10404 $RM conftest* 10405 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10408$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10409 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10410 ;; 10411 esac 10412 fi 10413 ;; 10414esac 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10568$as_echo_n "checking dynamic linker characteristics... " >&6; } 10569 10570if test yes = "$GCC"; then 10571 case $host_os in 10572 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10573 *) lt_awk_arg='/^libraries:/' ;; 10574 esac 10575 case $host_os in 10576 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10577 *) lt_sed_strip_eq='s|=/|/|g' ;; 10578 esac 10579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10580 case $lt_search_path_spec in 10581 *\;*) 10582 # if the path contains ";" then we assume it to be the separator 10583 # otherwise default to the standard path separator (i.e. ":") - it is 10584 # assumed that no part of a normal pathname contains ";" but that should 10585 # okay in the real world where ";" in dirpaths is itself problematic. 10586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10587 ;; 10588 *) 10589 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10590 ;; 10591 esac 10592 # Ok, now we have the path, separated by spaces, we can step through it 10593 # and add multilib dir if necessary... 10594 lt_tmp_lt_search_path_spec= 10595 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10596 # ...but if some path component already ends with the multilib dir we assume 10597 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10598 case "$lt_multi_os_dir; $lt_search_path_spec " in 10599 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10600 lt_multi_os_dir= 10601 ;; 10602 esac 10603 for lt_sys_path in $lt_search_path_spec; do 10604 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10606 elif test -n "$lt_multi_os_dir"; then 10607 test -d "$lt_sys_path" && \ 10608 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10609 fi 10610 done 10611 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10612BEGIN {RS = " "; FS = "/|\n";} { 10613 lt_foo = ""; 10614 lt_count = 0; 10615 for (lt_i = NF; lt_i > 0; lt_i--) { 10616 if ($lt_i != "" && $lt_i != ".") { 10617 if ($lt_i == "..") { 10618 lt_count++; 10619 } else { 10620 if (lt_count == 0) { 10621 lt_foo = "/" $lt_i lt_foo; 10622 } else { 10623 lt_count--; 10624 } 10625 } 10626 } 10627 } 10628 if (lt_foo != "") { lt_freq[lt_foo]++; } 10629 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10630}'` 10631 # AWK program above erroneously prepends '/' to C:/dos/paths 10632 # for these hosts. 10633 case $host_os in 10634 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10635 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10636 esac 10637 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10638else 10639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10640fi 10641library_names_spec= 10642libname_spec='lib$name' 10643soname_spec= 10644shrext_cmds=.so 10645postinstall_cmds= 10646postuninstall_cmds= 10647finish_cmds= 10648finish_eval= 10649shlibpath_var= 10650shlibpath_overrides_runpath=unknown 10651version_type=none 10652dynamic_linker="$host_os ld.so" 10653sys_lib_dlsearch_path_spec="/lib /usr/lib" 10654need_lib_prefix=unknown 10655hardcode_into_libs=no 10656 10657# when you set need_version to no, make sure it does not cause -set_version 10658# flags to be left without arguments 10659need_version=unknown 10660 10661 10662 10663case $host_os in 10664aix3*) 10665 version_type=linux # correct to gnu/linux during the next big refactor 10666 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10667 shlibpath_var=LIBPATH 10668 10669 # AIX 3 has no versioning support, so we append a major version to the name. 10670 soname_spec='$libname$release$shared_ext$major' 10671 ;; 10672 10673aix[4-9]*) 10674 version_type=linux # correct to gnu/linux during the next big refactor 10675 need_lib_prefix=no 10676 need_version=no 10677 hardcode_into_libs=yes 10678 if test ia64 = "$host_cpu"; then 10679 # AIX 5 supports IA64 10680 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10681 shlibpath_var=LD_LIBRARY_PATH 10682 else 10683 # With GCC up to 2.95.x, collect2 would create an import file 10684 # for dependence libraries. The import file would start with 10685 # the line '#! .'. This would cause the generated library to 10686 # depend on '.', always an invalid library. This was fixed in 10687 # development snapshots of GCC prior to 3.0. 10688 case $host_os in 10689 aix4 | aix4.[01] | aix4.[01].*) 10690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10691 echo ' yes ' 10692 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10693 : 10694 else 10695 can_build_shared=no 10696 fi 10697 ;; 10698 esac 10699 # Using Import Files as archive members, it is possible to support 10700 # filename-based versioning of shared library archives on AIX. While 10701 # this would work for both with and without runtime linking, it will 10702 # prevent static linking of such archives. So we do filename-based 10703 # shared library versioning with .so extension only, which is used 10704 # when both runtime linking and shared linking is enabled. 10705 # Unfortunately, runtime linking may impact performance, so we do 10706 # not want this to be the default eventually. Also, we use the 10707 # versioned .so libs for executables only if there is the -brtl 10708 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10709 # To allow for filename-based versioning support, we need to create 10710 # libNAME.so.V as an archive file, containing: 10711 # *) an Import File, referring to the versioned filename of the 10712 # archive as well as the shared archive member, telling the 10713 # bitwidth (32 or 64) of that shared object, and providing the 10714 # list of exported symbols of that shared object, eventually 10715 # decorated with the 'weak' keyword 10716 # *) the shared object with the F_LOADONLY flag set, to really avoid 10717 # it being seen by the linker. 10718 # At run time we better use the real file rather than another symlink, 10719 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10720 10721 case $with_aix_soname,$aix_use_runtimelinking in 10722 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10723 # soname into executable. Probably we can add versioning support to 10724 # collect2, so additional links can be useful in future. 10725 aix,yes) # traditional libtool 10726 dynamic_linker='AIX unversionable lib.so' 10727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10728 # instead of lib<name>.a to let people know that these are not 10729 # typical AIX shared libraries. 10730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10731 ;; 10732 aix,no) # traditional AIX only 10733 dynamic_linker='AIX lib.a(lib.so.V)' 10734 # We preserve .a as extension for shared libraries through AIX4.2 10735 # and later when we are not doing run time linking. 10736 library_names_spec='$libname$release.a $libname.a' 10737 soname_spec='$libname$release$shared_ext$major' 10738 ;; 10739 svr4,*) # full svr4 only 10740 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10741 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10742 # We do not specify a path in Import Files, so LIBPATH fires. 10743 shlibpath_overrides_runpath=yes 10744 ;; 10745 *,yes) # both, prefer svr4 10746 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10747 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10748 # unpreferred sharedlib libNAME.a needs extra handling 10749 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10750 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10751 # We do not specify a path in Import Files, so LIBPATH fires. 10752 shlibpath_overrides_runpath=yes 10753 ;; 10754 *,no) # both, prefer aix 10755 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10756 library_names_spec='$libname$release.a $libname.a' 10757 soname_spec='$libname$release$shared_ext$major' 10758 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10759 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10760 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10761 ;; 10762 esac 10763 shlibpath_var=LIBPATH 10764 fi 10765 ;; 10766 10767amigaos*) 10768 case $host_cpu in 10769 powerpc) 10770 # Since July 2007 AmigaOS4 officially supports .so libraries. 10771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10773 ;; 10774 m68k) 10775 library_names_spec='$libname.ixlibrary $libname.a' 10776 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10777 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10778 ;; 10779 esac 10780 ;; 10781 10782beos*) 10783 library_names_spec='$libname$shared_ext' 10784 dynamic_linker="$host_os ld.so" 10785 shlibpath_var=LIBRARY_PATH 10786 ;; 10787 10788bsdi[45]*) 10789 version_type=linux # correct to gnu/linux during the next big refactor 10790 need_version=no 10791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10792 soname_spec='$libname$release$shared_ext$major' 10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10797 # the default ld.so.conf also contains /usr/contrib/lib and 10798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10799 # libtool to hard-code these into programs 10800 ;; 10801 10802cygwin* | mingw* | pw32* | cegcc*) 10803 version_type=windows 10804 shrext_cmds=.dll 10805 need_version=no 10806 need_lib_prefix=no 10807 10808 case $GCC,$cc_basename in 10809 yes,*) 10810 # gcc 10811 library_names_spec='$libname.dll.a' 10812 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10813 postinstall_cmds='base_file=`basename \$file`~ 10814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10815 dldir=$destdir/`dirname \$dlpath`~ 10816 test -d \$dldir || mkdir -p \$dldir~ 10817 $install_prog $dir/$dlname \$dldir/$dlname~ 10818 chmod a+x \$dldir/$dlname~ 10819 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10820 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10821 fi' 10822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10823 dlpath=$dir/\$dldll~ 10824 $RM \$dlpath' 10825 shlibpath_overrides_runpath=yes 10826 10827 case $host_os in 10828 cygwin*) 10829 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10830 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10831 10832 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10833 ;; 10834 mingw* | cegcc*) 10835 # MinGW DLLs use traditional 'lib' prefix 10836 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10837 ;; 10838 pw32*) 10839 # pw32 DLLs use 'pw' prefix rather than 'lib' 10840 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10841 ;; 10842 esac 10843 dynamic_linker='Win32 ld.exe' 10844 ;; 10845 10846 *,cl*) 10847 # Native MSVC 10848 libname_spec='$name' 10849 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10850 library_names_spec='$libname.dll.lib' 10851 10852 case $build_os in 10853 mingw*) 10854 sys_lib_search_path_spec= 10855 lt_save_ifs=$IFS 10856 IFS=';' 10857 for lt_path in $LIB 10858 do 10859 IFS=$lt_save_ifs 10860 # Let DOS variable expansion print the short 8.3 style file name. 10861 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10862 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10863 done 10864 IFS=$lt_save_ifs 10865 # Convert to MSYS style. 10866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10867 ;; 10868 cygwin*) 10869 # Convert to unix form, then to dos form, then back to unix form 10870 # but this time dos style (no spaces!) so that the unix form looks 10871 # like /cygdrive/c/PROGRA~1:/cygdr... 10872 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10873 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10874 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10875 ;; 10876 *) 10877 sys_lib_search_path_spec=$LIB 10878 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10879 # It is most probably a Windows format PATH. 10880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10881 else 10882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10883 fi 10884 # FIXME: find the short name or the path components, as spaces are 10885 # common. (e.g. "Program Files" -> "PROGRA~1") 10886 ;; 10887 esac 10888 10889 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10890 postinstall_cmds='base_file=`basename \$file`~ 10891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10892 dldir=$destdir/`dirname \$dlpath`~ 10893 test -d \$dldir || mkdir -p \$dldir~ 10894 $install_prog $dir/$dlname \$dldir/$dlname' 10895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10896 dlpath=$dir/\$dldll~ 10897 $RM \$dlpath' 10898 shlibpath_overrides_runpath=yes 10899 dynamic_linker='Win32 link.exe' 10900 ;; 10901 10902 *) 10903 # Assume MSVC wrapper 10904 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10905 dynamic_linker='Win32 ld.exe' 10906 ;; 10907 esac 10908 # FIXME: first we should search . and the directory the executable is in 10909 shlibpath_var=PATH 10910 ;; 10911 10912darwin* | rhapsody*) 10913 dynamic_linker="$host_os dyld" 10914 version_type=darwin 10915 need_lib_prefix=no 10916 need_version=no 10917 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10918 soname_spec='$libname$release$major$shared_ext' 10919 shlibpath_overrides_runpath=yes 10920 shlibpath_var=DYLD_LIBRARY_PATH 10921 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10922 10923 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10925 ;; 10926 10927dgux*) 10928 version_type=linux # correct to gnu/linux during the next big refactor 10929 need_lib_prefix=no 10930 need_version=no 10931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10932 soname_spec='$libname$release$shared_ext$major' 10933 shlibpath_var=LD_LIBRARY_PATH 10934 ;; 10935 10936freebsd* | dragonfly*) 10937 # DragonFly does not have aout. When/if they implement a new 10938 # versioning mechanism, adjust this. 10939 if test -x /usr/bin/objformat; then 10940 objformat=`/usr/bin/objformat` 10941 else 10942 case $host_os in 10943 freebsd[23].*) objformat=aout ;; 10944 *) objformat=elf ;; 10945 esac 10946 fi 10947 version_type=freebsd-$objformat 10948 case $version_type in 10949 freebsd-elf*) 10950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10951 soname_spec='$libname$release$shared_ext$major' 10952 need_version=no 10953 need_lib_prefix=no 10954 ;; 10955 freebsd-*) 10956 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10957 need_version=yes 10958 ;; 10959 esac 10960 shlibpath_var=LD_LIBRARY_PATH 10961 case $host_os in 10962 freebsd2.*) 10963 shlibpath_overrides_runpath=yes 10964 ;; 10965 freebsd3.[01]* | freebsdelf3.[01]*) 10966 shlibpath_overrides_runpath=yes 10967 hardcode_into_libs=yes 10968 ;; 10969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10971 shlibpath_overrides_runpath=no 10972 hardcode_into_libs=yes 10973 ;; 10974 *) # from 4.6 on, and DragonFly 10975 shlibpath_overrides_runpath=yes 10976 hardcode_into_libs=yes 10977 ;; 10978 esac 10979 ;; 10980 10981haiku*) 10982 version_type=linux # correct to gnu/linux during the next big refactor 10983 need_lib_prefix=no 10984 need_version=no 10985 dynamic_linker="$host_os runtime_loader" 10986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10987 soname_spec='$libname$release$shared_ext$major' 10988 shlibpath_var=LIBRARY_PATH 10989 shlibpath_overrides_runpath=no 10990 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10991 hardcode_into_libs=yes 10992 ;; 10993 10994hpux9* | hpux10* | hpux11*) 10995 # Give a soname corresponding to the major version so that dld.sl refuses to 10996 # link against other versions. 10997 version_type=sunos 10998 need_lib_prefix=no 10999 need_version=no 11000 case $host_cpu in 11001 ia64*) 11002 shrext_cmds='.so' 11003 hardcode_into_libs=yes 11004 dynamic_linker="$host_os dld.so" 11005 shlibpath_var=LD_LIBRARY_PATH 11006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11008 soname_spec='$libname$release$shared_ext$major' 11009 if test 32 = "$HPUX_IA64_MODE"; then 11010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11011 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11012 else 11013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11014 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11015 fi 11016 ;; 11017 hppa*64*) 11018 shrext_cmds='.sl' 11019 hardcode_into_libs=yes 11020 dynamic_linker="$host_os dld.sl" 11021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11024 soname_spec='$libname$release$shared_ext$major' 11025 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11027 ;; 11028 *) 11029 shrext_cmds='.sl' 11030 dynamic_linker="$host_os dld.sl" 11031 shlibpath_var=SHLIB_PATH 11032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11034 soname_spec='$libname$release$shared_ext$major' 11035 ;; 11036 esac 11037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11038 postinstall_cmds='chmod 555 $lib' 11039 # or fails outright, so override atomically: 11040 install_override_mode=555 11041 ;; 11042 11043interix[3-9]*) 11044 version_type=linux # correct to gnu/linux during the next big refactor 11045 need_lib_prefix=no 11046 need_version=no 11047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11048 soname_spec='$libname$release$shared_ext$major' 11049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11050 shlibpath_var=LD_LIBRARY_PATH 11051 shlibpath_overrides_runpath=no 11052 hardcode_into_libs=yes 11053 ;; 11054 11055irix5* | irix6* | nonstopux*) 11056 case $host_os in 11057 nonstopux*) version_type=nonstopux ;; 11058 *) 11059 if test yes = "$lt_cv_prog_gnu_ld"; then 11060 version_type=linux # correct to gnu/linux during the next big refactor 11061 else 11062 version_type=irix 11063 fi ;; 11064 esac 11065 need_lib_prefix=no 11066 need_version=no 11067 soname_spec='$libname$release$shared_ext$major' 11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11069 case $host_os in 11070 irix5* | nonstopux*) 11071 libsuff= shlibsuff= 11072 ;; 11073 *) 11074 case $LD in # libtool.m4 will add one of these switches to LD 11075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11076 libsuff= shlibsuff= libmagic=32-bit;; 11077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11078 libsuff=32 shlibsuff=N32 libmagic=N32;; 11079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11080 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11081 *) libsuff= shlibsuff= libmagic=never-match;; 11082 esac 11083 ;; 11084 esac 11085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11086 shlibpath_overrides_runpath=no 11087 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11088 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11089 hardcode_into_libs=yes 11090 ;; 11091 11092# No shared lib support for Linux oldld, aout, or coff. 11093linux*oldld* | linux*aout* | linux*coff*) 11094 dynamic_linker=no 11095 ;; 11096 11097linux*android*) 11098 version_type=none # Android doesn't support versioned libraries. 11099 need_lib_prefix=no 11100 need_version=no 11101 library_names_spec='$libname$release$shared_ext' 11102 soname_spec='$libname$release$shared_ext' 11103 finish_cmds= 11104 shlibpath_var=LD_LIBRARY_PATH 11105 shlibpath_overrides_runpath=yes 11106 11107 # This implies no fast_install, which is unacceptable. 11108 # Some rework will be needed to allow for fast_install 11109 # before this can be enabled. 11110 hardcode_into_libs=yes 11111 11112 dynamic_linker='Android linker' 11113 # Don't embed -rpath directories since the linker doesn't support them. 11114 hardcode_libdir_flag_spec='-L$libdir' 11115 ;; 11116 11117# This must be glibc/ELF. 11118linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11119 version_type=linux # correct to gnu/linux during the next big refactor 11120 need_lib_prefix=no 11121 need_version=no 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11123 soname_spec='$libname$release$shared_ext$major' 11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11125 shlibpath_var=LD_LIBRARY_PATH 11126 shlibpath_overrides_runpath=no 11127 11128 # Some binutils ld are patched to set DT_RUNPATH 11129 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11130 $as_echo_n "(cached) " >&6 11131else 11132 lt_cv_shlibpath_overrides_runpath=no 11133 save_LDFLAGS=$LDFLAGS 11134 save_libdir=$libdir 11135 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11136 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11138/* end confdefs.h. */ 11139 11140int 11141main () 11142{ 11143 11144 ; 11145 return 0; 11146} 11147_ACEOF 11148if ac_fn_c_try_link "$LINENO"; then : 11149 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11150 lt_cv_shlibpath_overrides_runpath=yes 11151fi 11152fi 11153rm -f core conftest.err conftest.$ac_objext \ 11154 conftest$ac_exeext conftest.$ac_ext 11155 LDFLAGS=$save_LDFLAGS 11156 libdir=$save_libdir 11157 11158fi 11159 11160 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11161 11162 # This implies no fast_install, which is unacceptable. 11163 # Some rework will be needed to allow for fast_install 11164 # before this can be enabled. 11165 hardcode_into_libs=yes 11166 11167 # Ideally, we could use ldconfig to report *all* directores which are 11168 # searched for libraries, however this is still not possible. Aside from not 11169 # being certain /sbin/ldconfig is available, command 11170 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11171 # even though it is searched at run-time. Try to do the best guess by 11172 # appending ld.so.conf contents (and includes) to the search path. 11173 if test -f /etc/ld.so.conf; then 11174 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' ' '` 11175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11176 fi 11177 11178 # We used to test for /lib/ld.so.1 and disable shared libraries on 11179 # powerpc, because MkLinux only supported shared libraries with the 11180 # GNU dynamic linker. Since this was broken with cross compilers, 11181 # most powerpc-linux boxes support dynamic linking these days and 11182 # people can always --disable-shared, the test was removed, and we 11183 # assume the GNU/Linux dynamic linker is in use. 11184 dynamic_linker='GNU/Linux ld.so' 11185 ;; 11186 11187netbsd*) 11188 version_type=sunos 11189 need_lib_prefix=no 11190 need_version=no 11191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11194 dynamic_linker='NetBSD (a.out) ld.so' 11195 else 11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11197 soname_spec='$libname$release$shared_ext$major' 11198 dynamic_linker='NetBSD ld.elf_so' 11199 fi 11200 shlibpath_var=LD_LIBRARY_PATH 11201 shlibpath_overrides_runpath=yes 11202 hardcode_into_libs=yes 11203 ;; 11204 11205newsos6) 11206 version_type=linux # correct to gnu/linux during the next big refactor 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11208 shlibpath_var=LD_LIBRARY_PATH 11209 shlibpath_overrides_runpath=yes 11210 ;; 11211 11212*nto* | *qnx*) 11213 version_type=qnx 11214 need_lib_prefix=no 11215 need_version=no 11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11217 soname_spec='$libname$release$shared_ext$major' 11218 shlibpath_var=LD_LIBRARY_PATH 11219 shlibpath_overrides_runpath=no 11220 hardcode_into_libs=yes 11221 dynamic_linker='ldqnx.so' 11222 ;; 11223 11224openbsd* | bitrig*) 11225 version_type=sunos 11226 sys_lib_dlsearch_path_spec=/usr/lib 11227 need_lib_prefix=no 11228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11229 need_version=no 11230 else 11231 need_version=yes 11232 fi 11233 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11235 shlibpath_var=LD_LIBRARY_PATH 11236 shlibpath_overrides_runpath=yes 11237 ;; 11238 11239os2*) 11240 libname_spec='$name' 11241 version_type=windows 11242 shrext_cmds=.dll 11243 need_version=no 11244 need_lib_prefix=no 11245 # OS/2 can only load a DLL with a base name of 8 characters or less. 11246 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11247 v=$($ECHO $release$versuffix | tr -d .-); 11248 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11249 $ECHO $n$v`$shared_ext' 11250 library_names_spec='${libname}_dll.$libext' 11251 dynamic_linker='OS/2 ld.exe' 11252 shlibpath_var=BEGINLIBPATH 11253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11255 postinstall_cmds='base_file=`basename \$file`~ 11256 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11257 dldir=$destdir/`dirname \$dlpath`~ 11258 test -d \$dldir || mkdir -p \$dldir~ 11259 $install_prog $dir/$dlname \$dldir/$dlname~ 11260 chmod a+x \$dldir/$dlname~ 11261 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11262 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11263 fi' 11264 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11265 dlpath=$dir/\$dldll~ 11266 $RM \$dlpath' 11267 ;; 11268 11269osf3* | osf4* | osf5*) 11270 version_type=osf 11271 need_lib_prefix=no 11272 need_version=no 11273 soname_spec='$libname$release$shared_ext$major' 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11275 shlibpath_var=LD_LIBRARY_PATH 11276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11278 ;; 11279 11280rdos*) 11281 dynamic_linker=no 11282 ;; 11283 11284solaris*) 11285 version_type=linux # correct to gnu/linux during the next big refactor 11286 need_lib_prefix=no 11287 need_version=no 11288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11289 soname_spec='$libname$release$shared_ext$major' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 shlibpath_overrides_runpath=yes 11292 hardcode_into_libs=yes 11293 # ldd complains unless libraries are executable 11294 postinstall_cmds='chmod +x $lib' 11295 ;; 11296 11297sunos4*) 11298 version_type=sunos 11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11301 shlibpath_var=LD_LIBRARY_PATH 11302 shlibpath_overrides_runpath=yes 11303 if test yes = "$with_gnu_ld"; then 11304 need_lib_prefix=no 11305 fi 11306 need_version=yes 11307 ;; 11308 11309sysv4 | sysv4.3*) 11310 version_type=linux # correct to gnu/linux during the next big refactor 11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11312 soname_spec='$libname$release$shared_ext$major' 11313 shlibpath_var=LD_LIBRARY_PATH 11314 case $host_vendor in 11315 sni) 11316 shlibpath_overrides_runpath=no 11317 need_lib_prefix=no 11318 runpath_var=LD_RUN_PATH 11319 ;; 11320 siemens) 11321 need_lib_prefix=no 11322 ;; 11323 motorola) 11324 need_lib_prefix=no 11325 need_version=no 11326 shlibpath_overrides_runpath=no 11327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11328 ;; 11329 esac 11330 ;; 11331 11332sysv4*MP*) 11333 if test -d /usr/nec; then 11334 version_type=linux # correct to gnu/linux during the next big refactor 11335 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11336 soname_spec='$libname$shared_ext.$major' 11337 shlibpath_var=LD_LIBRARY_PATH 11338 fi 11339 ;; 11340 11341sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11342 version_type=sco 11343 need_lib_prefix=no 11344 need_version=no 11345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11346 soname_spec='$libname$release$shared_ext$major' 11347 shlibpath_var=LD_LIBRARY_PATH 11348 shlibpath_overrides_runpath=yes 11349 hardcode_into_libs=yes 11350 if test yes = "$with_gnu_ld"; then 11351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11352 else 11353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11354 case $host_os in 11355 sco3.2v5*) 11356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11357 ;; 11358 esac 11359 fi 11360 sys_lib_dlsearch_path_spec='/usr/lib' 11361 ;; 11362 11363tpf*) 11364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11365 version_type=linux # correct to gnu/linux during the next big refactor 11366 need_lib_prefix=no 11367 need_version=no 11368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11369 shlibpath_var=LD_LIBRARY_PATH 11370 shlibpath_overrides_runpath=no 11371 hardcode_into_libs=yes 11372 ;; 11373 11374uts4*) 11375 version_type=linux # correct to gnu/linux during the next big refactor 11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11377 soname_spec='$libname$release$shared_ext$major' 11378 shlibpath_var=LD_LIBRARY_PATH 11379 ;; 11380 11381*) 11382 dynamic_linker=no 11383 ;; 11384esac 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11386$as_echo "$dynamic_linker" >&6; } 11387test no = "$dynamic_linker" && can_build_shared=no 11388 11389variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11390if test yes = "$GCC"; then 11391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11392fi 11393 11394if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11395 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11396fi 11397 11398if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11399 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11400fi 11401 11402# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11403configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11404 11405# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11406func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11407 11408# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11409configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11508$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11509hardcode_action= 11510if test -n "$hardcode_libdir_flag_spec" || 11511 test -n "$runpath_var" || 11512 test yes = "$hardcode_automatic"; then 11513 11514 # We can hardcode non-existent directories. 11515 if test no != "$hardcode_direct" && 11516 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11517 # have to relink, otherwise we might link with an installed library 11518 # when we should be linking with a yet-to-be-installed one 11519 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11520 test no != "$hardcode_minus_L"; then 11521 # Linking always hardcodes the temporary library directory. 11522 hardcode_action=relink 11523 else 11524 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11525 hardcode_action=immediate 11526 fi 11527else 11528 # We cannot hardcode anything, or else we can only hardcode existing 11529 # directories. 11530 hardcode_action=unsupported 11531fi 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11533$as_echo "$hardcode_action" >&6; } 11534 11535if test relink = "$hardcode_action" || 11536 test yes = "$inherit_rpath"; then 11537 # Fast installation is not supported 11538 enable_fast_install=no 11539elif test yes = "$shlibpath_overrides_runpath" || 11540 test no = "$enable_shared"; then 11541 # Fast installation is not necessary 11542 enable_fast_install=needless 11543fi 11544 11545 11546 11547 11548 11549 11550 if test yes != "$enable_dlopen"; then 11551 enable_dlopen=unknown 11552 enable_dlopen_self=unknown 11553 enable_dlopen_self_static=unknown 11554else 11555 lt_cv_dlopen=no 11556 lt_cv_dlopen_libs= 11557 11558 case $host_os in 11559 beos*) 11560 lt_cv_dlopen=load_add_on 11561 lt_cv_dlopen_libs= 11562 lt_cv_dlopen_self=yes 11563 ;; 11564 11565 mingw* | pw32* | cegcc*) 11566 lt_cv_dlopen=LoadLibrary 11567 lt_cv_dlopen_libs= 11568 ;; 11569 11570 cygwin*) 11571 lt_cv_dlopen=dlopen 11572 lt_cv_dlopen_libs= 11573 ;; 11574 11575 darwin*) 11576 # if libdl is installed we need to link against it 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11578$as_echo_n "checking for dlopen in -ldl... " >&6; } 11579if ${ac_cv_lib_dl_dlopen+:} false; then : 11580 $as_echo_n "(cached) " >&6 11581else 11582 ac_check_lib_save_LIBS=$LIBS 11583LIBS="-ldl $LIBS" 11584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11585/* end confdefs.h. */ 11586 11587/* Override any GCC internal prototype to avoid an error. 11588 Use char because int might match the return type of a GCC 11589 builtin and then its argument prototype would still apply. */ 11590#ifdef __cplusplus 11591extern "C" 11592#endif 11593char dlopen (); 11594int 11595main () 11596{ 11597return dlopen (); 11598 ; 11599 return 0; 11600} 11601_ACEOF 11602if ac_fn_c_try_link "$LINENO"; then : 11603 ac_cv_lib_dl_dlopen=yes 11604else 11605 ac_cv_lib_dl_dlopen=no 11606fi 11607rm -f core conftest.err conftest.$ac_objext \ 11608 conftest$ac_exeext conftest.$ac_ext 11609LIBS=$ac_check_lib_save_LIBS 11610fi 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11612$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11613if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11614 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11615else 11616 11617 lt_cv_dlopen=dyld 11618 lt_cv_dlopen_libs= 11619 lt_cv_dlopen_self=yes 11620 11621fi 11622 11623 ;; 11624 11625 tpf*) 11626 # Don't try to run any link tests for TPF. We know it's impossible 11627 # because TPF is a cross-compiler, and we know how we open DSOs. 11628 lt_cv_dlopen=dlopen 11629 lt_cv_dlopen_libs= 11630 lt_cv_dlopen_self=no 11631 ;; 11632 11633 *) 11634 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11635if test "x$ac_cv_func_shl_load" = xyes; then : 11636 lt_cv_dlopen=shl_load 11637else 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11639$as_echo_n "checking for shl_load in -ldld... " >&6; } 11640if ${ac_cv_lib_dld_shl_load+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 ac_check_lib_save_LIBS=$LIBS 11644LIBS="-ldld $LIBS" 11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647 11648/* Override any GCC internal prototype to avoid an error. 11649 Use char because int might match the return type of a GCC 11650 builtin and then its argument prototype would still apply. */ 11651#ifdef __cplusplus 11652extern "C" 11653#endif 11654char shl_load (); 11655int 11656main () 11657{ 11658return shl_load (); 11659 ; 11660 return 0; 11661} 11662_ACEOF 11663if ac_fn_c_try_link "$LINENO"; then : 11664 ac_cv_lib_dld_shl_load=yes 11665else 11666 ac_cv_lib_dld_shl_load=no 11667fi 11668rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670LIBS=$ac_check_lib_save_LIBS 11671fi 11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11673$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11674if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11675 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11676else 11677 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11678if test "x$ac_cv_func_dlopen" = xyes; then : 11679 lt_cv_dlopen=dlopen 11680else 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11682$as_echo_n "checking for dlopen in -ldl... " >&6; } 11683if ${ac_cv_lib_dl_dlopen+:} false; then : 11684 $as_echo_n "(cached) " >&6 11685else 11686 ac_check_lib_save_LIBS=$LIBS 11687LIBS="-ldl $LIBS" 11688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11689/* end confdefs.h. */ 11690 11691/* Override any GCC internal prototype to avoid an error. 11692 Use char because int might match the return type of a GCC 11693 builtin and then its argument prototype would still apply. */ 11694#ifdef __cplusplus 11695extern "C" 11696#endif 11697char dlopen (); 11698int 11699main () 11700{ 11701return dlopen (); 11702 ; 11703 return 0; 11704} 11705_ACEOF 11706if ac_fn_c_try_link "$LINENO"; then : 11707 ac_cv_lib_dl_dlopen=yes 11708else 11709 ac_cv_lib_dl_dlopen=no 11710fi 11711rm -f core conftest.err conftest.$ac_objext \ 11712 conftest$ac_exeext conftest.$ac_ext 11713LIBS=$ac_check_lib_save_LIBS 11714fi 11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11716$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11717if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11718 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11719else 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11721$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11722if ${ac_cv_lib_svld_dlopen+:} false; then : 11723 $as_echo_n "(cached) " >&6 11724else 11725 ac_check_lib_save_LIBS=$LIBS 11726LIBS="-lsvld $LIBS" 11727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728/* end confdefs.h. */ 11729 11730/* Override any GCC internal prototype to avoid an error. 11731 Use char because int might match the return type of a GCC 11732 builtin and then its argument prototype would still apply. */ 11733#ifdef __cplusplus 11734extern "C" 11735#endif 11736char dlopen (); 11737int 11738main () 11739{ 11740return dlopen (); 11741 ; 11742 return 0; 11743} 11744_ACEOF 11745if ac_fn_c_try_link "$LINENO"; then : 11746 ac_cv_lib_svld_dlopen=yes 11747else 11748 ac_cv_lib_svld_dlopen=no 11749fi 11750rm -f core conftest.err conftest.$ac_objext \ 11751 conftest$ac_exeext conftest.$ac_ext 11752LIBS=$ac_check_lib_save_LIBS 11753fi 11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11755$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11756if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11757 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11758else 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11760$as_echo_n "checking for dld_link in -ldld... " >&6; } 11761if ${ac_cv_lib_dld_dld_link+:} false; then : 11762 $as_echo_n "(cached) " >&6 11763else 11764 ac_check_lib_save_LIBS=$LIBS 11765LIBS="-ldld $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 dld_link (); 11776int 11777main () 11778{ 11779return dld_link (); 11780 ; 11781 return 0; 11782} 11783_ACEOF 11784if ac_fn_c_try_link "$LINENO"; then : 11785 ac_cv_lib_dld_dld_link=yes 11786else 11787 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5 11794$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11795if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11796 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11797fi 11798 11799 11800fi 11801 11802 11803fi 11804 11805 11806fi 11807 11808 11809fi 11810 11811 11812fi 11813 11814 ;; 11815 esac 11816 11817 if test no = "$lt_cv_dlopen"; then 11818 enable_dlopen=no 11819 else 11820 enable_dlopen=yes 11821 fi 11822 11823 case $lt_cv_dlopen in 11824 dlopen) 11825 save_CPPFLAGS=$CPPFLAGS 11826 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11827 11828 save_LDFLAGS=$LDFLAGS 11829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11830 11831 save_LIBS=$LIBS 11832 LIBS="$lt_cv_dlopen_libs $LIBS" 11833 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11835$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11836if ${lt_cv_dlopen_self+:} false; then : 11837 $as_echo_n "(cached) " >&6 11838else 11839 if test yes = "$cross_compiling"; then : 11840 lt_cv_dlopen_self=cross 11841else 11842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11843 lt_status=$lt_dlunknown 11844 cat > conftest.$ac_ext <<_LT_EOF 11845#line $LINENO "configure" 11846#include "confdefs.h" 11847 11848#if HAVE_DLFCN_H 11849#include <dlfcn.h> 11850#endif 11851 11852#include <stdio.h> 11853 11854#ifdef RTLD_GLOBAL 11855# define LT_DLGLOBAL RTLD_GLOBAL 11856#else 11857# ifdef DL_GLOBAL 11858# define LT_DLGLOBAL DL_GLOBAL 11859# else 11860# define LT_DLGLOBAL 0 11861# endif 11862#endif 11863 11864/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11865 find out it does not work in some platform. */ 11866#ifndef LT_DLLAZY_OR_NOW 11867# ifdef RTLD_LAZY 11868# define LT_DLLAZY_OR_NOW RTLD_LAZY 11869# else 11870# ifdef DL_LAZY 11871# define LT_DLLAZY_OR_NOW DL_LAZY 11872# else 11873# ifdef RTLD_NOW 11874# define LT_DLLAZY_OR_NOW RTLD_NOW 11875# else 11876# ifdef DL_NOW 11877# define LT_DLLAZY_OR_NOW DL_NOW 11878# else 11879# define LT_DLLAZY_OR_NOW 0 11880# endif 11881# endif 11882# endif 11883# endif 11884#endif 11885 11886/* When -fvisibility=hidden is used, assume the code has been annotated 11887 correspondingly for the symbols needed. */ 11888#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11889int fnord () __attribute__((visibility("default"))); 11890#endif 11891 11892int fnord () { return 42; } 11893int main () 11894{ 11895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11896 int status = $lt_dlunknown; 11897 11898 if (self) 11899 { 11900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11901 else 11902 { 11903 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11904 else puts (dlerror ()); 11905 } 11906 /* dlclose (self); */ 11907 } 11908 else 11909 puts (dlerror ()); 11910 11911 return status; 11912} 11913_LT_EOF 11914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11915 (eval $ac_link) 2>&5 11916 ac_status=$? 11917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11918 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11919 (./conftest; exit; ) >&5 2>/dev/null 11920 lt_status=$? 11921 case x$lt_status in 11922 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11923 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11924 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11925 esac 11926 else : 11927 # compilation failed 11928 lt_cv_dlopen_self=no 11929 fi 11930fi 11931rm -fr conftest* 11932 11933 11934fi 11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11936$as_echo "$lt_cv_dlopen_self" >&6; } 11937 11938 if test yes = "$lt_cv_dlopen_self"; then 11939 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11941$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11942if ${lt_cv_dlopen_self_static+:} false; then : 11943 $as_echo_n "(cached) " >&6 11944else 11945 if test yes = "$cross_compiling"; then : 11946 lt_cv_dlopen_self_static=cross 11947else 11948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11949 lt_status=$lt_dlunknown 11950 cat > conftest.$ac_ext <<_LT_EOF 11951#line $LINENO "configure" 11952#include "confdefs.h" 11953 11954#if HAVE_DLFCN_H 11955#include <dlfcn.h> 11956#endif 11957 11958#include <stdio.h> 11959 11960#ifdef RTLD_GLOBAL 11961# define LT_DLGLOBAL RTLD_GLOBAL 11962#else 11963# ifdef DL_GLOBAL 11964# define LT_DLGLOBAL DL_GLOBAL 11965# else 11966# define LT_DLGLOBAL 0 11967# endif 11968#endif 11969 11970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11971 find out it does not work in some platform. */ 11972#ifndef LT_DLLAZY_OR_NOW 11973# ifdef RTLD_LAZY 11974# define LT_DLLAZY_OR_NOW RTLD_LAZY 11975# else 11976# ifdef DL_LAZY 11977# define LT_DLLAZY_OR_NOW DL_LAZY 11978# else 11979# ifdef RTLD_NOW 11980# define LT_DLLAZY_OR_NOW RTLD_NOW 11981# else 11982# ifdef DL_NOW 11983# define LT_DLLAZY_OR_NOW DL_NOW 11984# else 11985# define LT_DLLAZY_OR_NOW 0 11986# endif 11987# endif 11988# endif 11989# endif 11990#endif 11991 11992/* When -fvisibility=hidden is used, assume the code has been annotated 11993 correspondingly for the symbols needed. */ 11994#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11995int fnord () __attribute__((visibility("default"))); 11996#endif 11997 11998int fnord () { return 42; } 11999int main () 12000{ 12001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12002 int status = $lt_dlunknown; 12003 12004 if (self) 12005 { 12006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12007 else 12008 { 12009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12010 else puts (dlerror ()); 12011 } 12012 /* dlclose (self); */ 12013 } 12014 else 12015 puts (dlerror ()); 12016 12017 return status; 12018} 12019_LT_EOF 12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12021 (eval $ac_link) 2>&5 12022 ac_status=$? 12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12024 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12025 (./conftest; exit; ) >&5 2>/dev/null 12026 lt_status=$? 12027 case x$lt_status in 12028 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12029 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12030 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12031 esac 12032 else : 12033 # compilation failed 12034 lt_cv_dlopen_self_static=no 12035 fi 12036fi 12037rm -fr conftest* 12038 12039 12040fi 12041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12042$as_echo "$lt_cv_dlopen_self_static" >&6; } 12043 fi 12044 12045 CPPFLAGS=$save_CPPFLAGS 12046 LDFLAGS=$save_LDFLAGS 12047 LIBS=$save_LIBS 12048 ;; 12049 esac 12050 12051 case $lt_cv_dlopen_self in 12052 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12053 *) enable_dlopen_self=unknown ;; 12054 esac 12055 12056 case $lt_cv_dlopen_self_static in 12057 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12058 *) enable_dlopen_self_static=unknown ;; 12059 esac 12060fi 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078striplib= 12079old_striplib= 12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12081$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12082if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12083 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12084 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12086$as_echo "yes" >&6; } 12087else 12088# FIXME - insert some real tests, host_os isn't really good enough 12089 case $host_os in 12090 darwin*) 12091 if test -n "$STRIP"; then 12092 striplib="$STRIP -x" 12093 old_striplib="$STRIP -S" 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12095$as_echo "yes" >&6; } 12096 else 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12098$as_echo "no" >&6; } 12099 fi 12100 ;; 12101 *) 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12103$as_echo "no" >&6; } 12104 ;; 12105 esac 12106fi 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 # Report what library types will actually be built 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12121$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12123$as_echo "$can_build_shared" >&6; } 12124 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12126$as_echo_n "checking whether to build shared libraries... " >&6; } 12127 test no = "$can_build_shared" && enable_shared=no 12128 12129 # On AIX, shared libraries and static libraries use the same namespace, and 12130 # are all built from PIC. 12131 case $host_os in 12132 aix3*) 12133 test yes = "$enable_shared" && enable_static=no 12134 if test -n "$RANLIB"; then 12135 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12136 postinstall_cmds='$RANLIB $lib' 12137 fi 12138 ;; 12139 12140 aix[4-9]*) 12141 if test ia64 != "$host_cpu"; then 12142 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12143 yes,aix,yes) ;; # shared object as lib.so file only 12144 yes,svr4,*) ;; # shared object as lib.so archive member only 12145 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12146 esac 12147 fi 12148 ;; 12149 esac 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12151$as_echo "$enable_shared" >&6; } 12152 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12154$as_echo_n "checking whether to build static libraries... " >&6; } 12155 # Make sure either enable_shared or enable_static is yes. 12156 test yes = "$enable_shared" || enable_static=yes 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12158$as_echo "$enable_static" >&6; } 12159 12160 12161 12162 12163fi 12164ac_ext=c 12165ac_cpp='$CPP $CPPFLAGS' 12166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12168ac_compiler_gnu=$ac_cv_c_compiler_gnu 12169 12170CC=$lt_save_CC 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 ac_config_commands="$ac_config_commands libtool" 12187 12188 12189 12190 12191# Only expand once: 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12202 if test -n "$ac_tool_prefix"; then 12203 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12204set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12206$as_echo_n "checking for $ac_word... " >&6; } 12207if ${ac_cv_path_PKG_CONFIG+:} false; then : 12208 $as_echo_n "(cached) " >&6 12209else 12210 case $PKG_CONFIG in 12211 [\\/]* | ?:[\\/]*) 12212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12213 ;; 12214 *) 12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12216for as_dir in $PATH 12217do 12218 IFS=$as_save_IFS 12219 test -z "$as_dir" && as_dir=. 12220 for ac_exec_ext in '' $ac_executable_extensions; do 12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12222 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12224 break 2 12225 fi 12226done 12227 done 12228IFS=$as_save_IFS 12229 12230 ;; 12231esac 12232fi 12233PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12234if test -n "$PKG_CONFIG"; then 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12236$as_echo "$PKG_CONFIG" >&6; } 12237else 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12239$as_echo "no" >&6; } 12240fi 12241 12242 12243fi 12244if test -z "$ac_cv_path_PKG_CONFIG"; then 12245 ac_pt_PKG_CONFIG=$PKG_CONFIG 12246 # Extract the first word of "pkg-config", so it can be a program name with args. 12247set dummy pkg-config; ac_word=$2 12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12249$as_echo_n "checking for $ac_word... " >&6; } 12250if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12251 $as_echo_n "(cached) " >&6 12252else 12253 case $ac_pt_PKG_CONFIG in 12254 [\\/]* | ?:[\\/]*) 12255 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12256 ;; 12257 *) 12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12259for as_dir in $PATH 12260do 12261 IFS=$as_save_IFS 12262 test -z "$as_dir" && as_dir=. 12263 for ac_exec_ext in '' $ac_executable_extensions; do 12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12265 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12267 break 2 12268 fi 12269done 12270 done 12271IFS=$as_save_IFS 12272 12273 ;; 12274esac 12275fi 12276ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12277if test -n "$ac_pt_PKG_CONFIG"; then 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12279$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12280else 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12282$as_echo "no" >&6; } 12283fi 12284 12285 if test "x$ac_pt_PKG_CONFIG" = x; then 12286 PKG_CONFIG="" 12287 else 12288 case $cross_compiling:$ac_tool_warned in 12289yes:) 12290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12292ac_tool_warned=yes ;; 12293esac 12294 PKG_CONFIG=$ac_pt_PKG_CONFIG 12295 fi 12296else 12297 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12298fi 12299 12300fi 12301if test -n "$PKG_CONFIG"; then 12302 _pkg_min_version=0.9.0 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12304$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12305 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12307$as_echo "yes" >&6; } 12308 else 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12310$as_echo "no" >&6; } 12311 PKG_CONFIG="" 12312 fi 12313fi 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12315$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12316if ${ac_cv_prog_cc_c99+:} false; then : 12317 $as_echo_n "(cached) " >&6 12318else 12319 ac_cv_prog_cc_c99=no 12320ac_save_CC=$CC 12321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12322/* end confdefs.h. */ 12323#include <stdarg.h> 12324#include <stdbool.h> 12325#include <stdlib.h> 12326#include <wchar.h> 12327#include <stdio.h> 12328 12329// Check varargs macros. These examples are taken from C99 6.10.3.5. 12330#define debug(...) fprintf (stderr, __VA_ARGS__) 12331#define showlist(...) puts (#__VA_ARGS__) 12332#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12333static void 12334test_varargs_macros (void) 12335{ 12336 int x = 1234; 12337 int y = 5678; 12338 debug ("Flag"); 12339 debug ("X = %d\n", x); 12340 showlist (The first, second, and third items.); 12341 report (x>y, "x is %d but y is %d", x, y); 12342} 12343 12344// Check long long types. 12345#define BIG64 18446744073709551615ull 12346#define BIG32 4294967295ul 12347#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12348#if !BIG_OK 12349 your preprocessor is broken; 12350#endif 12351#if BIG_OK 12352#else 12353 your preprocessor is broken; 12354#endif 12355static long long int bignum = -9223372036854775807LL; 12356static unsigned long long int ubignum = BIG64; 12357 12358struct incomplete_array 12359{ 12360 int datasize; 12361 double data[]; 12362}; 12363 12364struct named_init { 12365 int number; 12366 const wchar_t *name; 12367 double average; 12368}; 12369 12370typedef const char *ccp; 12371 12372static inline int 12373test_restrict (ccp restrict text) 12374{ 12375 // See if C++-style comments work. 12376 // Iterate through items via the restricted pointer. 12377 // Also check for declarations in for loops. 12378 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12379 continue; 12380 return 0; 12381} 12382 12383// Check varargs and va_copy. 12384static void 12385test_varargs (const char *format, ...) 12386{ 12387 va_list args; 12388 va_start (args, format); 12389 va_list args_copy; 12390 va_copy (args_copy, args); 12391 12392 const char *str; 12393 int number; 12394 float fnumber; 12395 12396 while (*format) 12397 { 12398 switch (*format++) 12399 { 12400 case 's': // string 12401 str = va_arg (args_copy, const char *); 12402 break; 12403 case 'd': // int 12404 number = va_arg (args_copy, int); 12405 break; 12406 case 'f': // float 12407 fnumber = va_arg (args_copy, double); 12408 break; 12409 default: 12410 break; 12411 } 12412 } 12413 va_end (args_copy); 12414 va_end (args); 12415} 12416 12417int 12418main () 12419{ 12420 12421 // Check bool. 12422 _Bool success = false; 12423 12424 // Check restrict. 12425 if (test_restrict ("String literal") == 0) 12426 success = true; 12427 char *restrict newvar = "Another string"; 12428 12429 // Check varargs. 12430 test_varargs ("s, d' f .", "string", 65, 34.234); 12431 test_varargs_macros (); 12432 12433 // Check flexible array members. 12434 struct incomplete_array *ia = 12435 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12436 ia->datasize = 10; 12437 for (int i = 0; i < ia->datasize; ++i) 12438 ia->data[i] = i * 1.234; 12439 12440 // Check named initializers. 12441 struct named_init ni = { 12442 .number = 34, 12443 .name = L"Test wide string", 12444 .average = 543.34343, 12445 }; 12446 12447 ni.number = 58; 12448 12449 int dynamic_array[ni.number]; 12450 dynamic_array[ni.number - 1] = 543; 12451 12452 // work around unused variable warnings 12453 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12454 || dynamic_array[ni.number - 1] != 543); 12455 12456 ; 12457 return 0; 12458} 12459_ACEOF 12460for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12461do 12462 CC="$ac_save_CC $ac_arg" 12463 if ac_fn_c_try_compile "$LINENO"; then : 12464 ac_cv_prog_cc_c99=$ac_arg 12465fi 12466rm -f core conftest.err conftest.$ac_objext 12467 test "x$ac_cv_prog_cc_c99" != "xno" && break 12468done 12469rm -f conftest.$ac_ext 12470CC=$ac_save_CC 12471 12472fi 12473# AC_CACHE_VAL 12474case "x$ac_cv_prog_cc_c99" in 12475 x) 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12477$as_echo "none needed" >&6; } ;; 12478 xno) 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12480$as_echo "unsupported" >&6; } ;; 12481 *) 12482 CC="$CC $ac_cv_prog_cc_c99" 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12484$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12485esac 12486if test "x$ac_cv_prog_cc_c99" != xno; then : 12487 12488fi 12489 12490 12491 12492 12493 12494 12495ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12496if test "x$ac_cv_have_decl___clang__" = xyes; then : 12497 CLANGCC="yes" 12498else 12499 CLANGCC="no" 12500fi 12501 12502ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12503if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12504 INTELCC="yes" 12505else 12506 INTELCC="no" 12507fi 12508 12509ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12510if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12511 SUNCC="yes" 12512else 12513 SUNCC="no" 12514fi 12515 12516 12517 12518 12519 12520 12521 12522# Define header files and pkgconfig paths 12523xcbincludedir='${includedir}/xcb' 12524 12525pkgconfigdir='${libdir}data/pkgconfig' 12526 12527 12528# Check xcb version 12529 12530pkg_failed=no 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb >= 1.4" >&5 12532$as_echo_n "checking for xcb >= 1.4... " >&6; } 12533 12534if test -n "$XCB_CFLAGS"; then 12535 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" 12536 elif test -n "$PKG_CONFIG"; then 12537 if test -n "$PKG_CONFIG" && \ 12538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5 12539 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5 12540 ac_status=$? 12541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12542 test $ac_status = 0; }; then 12543 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null` 12544 test "x$?" != "x0" && pkg_failed=yes 12545else 12546 pkg_failed=yes 12547fi 12548 else 12549 pkg_failed=untried 12550fi 12551if test -n "$XCB_LIBS"; then 12552 pkg_cv_XCB_LIBS="$XCB_LIBS" 12553 elif test -n "$PKG_CONFIG"; then 12554 if test -n "$PKG_CONFIG" && \ 12555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5 12556 ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5 12557 ac_status=$? 12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12559 test $ac_status = 0; }; then 12560 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null` 12561 test "x$?" != "x0" && pkg_failed=yes 12562else 12563 pkg_failed=yes 12564fi 12565 else 12566 pkg_failed=untried 12567fi 12568 12569 12570 12571if test $pkg_failed = yes; then 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12573$as_echo "no" >&6; } 12574 12575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12576 _pkg_short_errors_supported=yes 12577else 12578 _pkg_short_errors_supported=no 12579fi 12580 if test $_pkg_short_errors_supported = yes; then 12581 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1` 12582 else 12583 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1` 12584 fi 12585 # Put the nasty error message in config.log where it belongs 12586 echo "$XCB_PKG_ERRORS" >&5 12587 12588 as_fn_error $? "Package requirements (xcb >= 1.4) were not met: 12589 12590$XCB_PKG_ERRORS 12591 12592Consider adjusting the PKG_CONFIG_PATH environment variable if you 12593installed software in a non-standard prefix. 12594 12595Alternatively, you may set the environment variables XCB_CFLAGS 12596and XCB_LIBS to avoid the need to call pkg-config. 12597See the pkg-config man page for more details." "$LINENO" 5 12598elif test $pkg_failed = untried; then 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12600$as_echo "no" >&6; } 12601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12603as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12604is in your PATH or set the PKG_CONFIG environment variable to the full 12605path to pkg-config. 12606 12607Alternatively, you may set the environment variables XCB_CFLAGS 12608and XCB_LIBS to avoid the need to call pkg-config. 12609See the pkg-config man page for more details. 12610 12611To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12612See \`config.log' for more details" "$LINENO" 5; } 12613else 12614 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS 12615 XCB_LIBS=$pkg_cv_XCB_LIBS 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12617$as_echo "yes" >&6; } 12618 12619fi 12620 12621# Check version of xcb-proto that xcb was compiled against 12622xcbproto_required=1.6 12623 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5 12625$as_echo_n "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; } 12626xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb` 12627 12628 for ac_prog in gawk mawk nawk awk 12629do 12630 # Extract the first word of "$ac_prog", so it can be a program name with args. 12631set dummy $ac_prog; ac_word=$2 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12633$as_echo_n "checking for $ac_word... " >&6; } 12634if ${ac_cv_prog_AWK+:} false; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 if test -n "$AWK"; then 12638 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12639else 12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12641for as_dir in $PATH 12642do 12643 IFS=$as_save_IFS 12644 test -z "$as_dir" && as_dir=. 12645 for ac_exec_ext in '' $ac_executable_extensions; do 12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12647 ac_cv_prog_AWK="$ac_prog" 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12649 break 2 12650 fi 12651done 12652 done 12653IFS=$as_save_IFS 12654 12655fi 12656fi 12657AWK=$ac_cv_prog_AWK 12658if test -n "$AWK"; then 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12660$as_echo "$AWK" >&6; } 12661else 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12663$as_echo "no" >&6; } 12664fi 12665 12666 12667 test -n "$AWK" && break 12668done 12669 12670 12671 # Used to indicate true or false condition 12672 ax_compare_version=false 12673 12674 # Convert the two version strings to be compared into a format that 12675 # allows a simple string comparison. The end result is that a version 12676 # string of the form 1.12.5-r617 will be converted to the form 12677 # 0001001200050617. In other words, each number is zero padded to four 12678 # digits, and non digits are removed. 12679 12680 ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 12681 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 12682 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 12683 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 12684 -e 's/[^0-9]//g'` 12685 12686 12687 ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 12688 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 12689 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 12690 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 12691 -e 's/[^0-9]//g'` 12692 12693 12694 ax_compare_version=`echo "x$ax_compare_version_A 12695x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 12696 12697 12698 12699 if test "$ax_compare_version" = "true" ; then 12700 xcbproto_ok="yes" 12701 else xcbproto_ok="no" 12702 fi 12703 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5 12705$as_echo "$xcbproto_ok" >&6; } 12706 12707if test $xcbproto_ok = no; then 12708 as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5 12709fi 12710 12711# Call macros from Xorg util-macros 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729# Check whether --enable-selective-werror was given. 12730if test "${enable_selective_werror+set}" = set; then : 12731 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12732else 12733 SELECTIVE_WERROR=yes 12734fi 12735 12736 12737 12738 12739 12740# -v is too short to test reliably with XORG_TESTSET_CFLAG 12741if test "x$SUNCC" = "xyes"; then 12742 BASE_CFLAGS="-v" 12743else 12744 BASE_CFLAGS="" 12745fi 12746 12747# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761xorg_testset_save_CFLAGS="$CFLAGS" 12762 12763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12768 $as_echo_n "(cached) " >&6 12769else 12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12771/* end confdefs.h. */ 12772int i; 12773_ACEOF 12774if ac_fn_c_try_compile "$LINENO"; then : 12775 xorg_cv_cc_flag_unknown_warning_option=yes 12776else 12777 xorg_cv_cc_flag_unknown_warning_option=no 12778fi 12779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12780fi 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12784 CFLAGS="$xorg_testset_save_CFLAGS" 12785fi 12786 12787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12790 fi 12791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12795 $as_echo_n "(cached) " >&6 12796else 12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12798/* end confdefs.h. */ 12799int i; 12800_ACEOF 12801if ac_fn_c_try_compile "$LINENO"; then : 12802 xorg_cv_cc_flag_unused_command_line_argument=yes 12803else 12804 xorg_cv_cc_flag_unused_command_line_argument=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12807fi 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12811 CFLAGS="$xorg_testset_save_CFLAGS" 12812fi 12813 12814found="no" 12815 12816 if test $found = "no" ; then 12817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12819 fi 12820 12821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12823 fi 12824 12825 CFLAGS="$CFLAGS -Wall" 12826 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12828$as_echo_n "checking if $CC supports -Wall... " >&6; } 12829 cacheid=xorg_cv_cc_flag__Wall 12830 if eval \${$cacheid+:} false; then : 12831 $as_echo_n "(cached) " >&6 12832else 12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12834/* end confdefs.h. */ 12835int i; 12836int 12837main () 12838{ 12839 12840 ; 12841 return 0; 12842} 12843_ACEOF 12844if ac_fn_c_try_link "$LINENO"; then : 12845 eval $cacheid=yes 12846else 12847 eval $cacheid=no 12848fi 12849rm -f core conftest.err conftest.$ac_objext \ 12850 conftest$ac_exeext conftest.$ac_ext 12851fi 12852 12853 12854 CFLAGS="$xorg_testset_save_CFLAGS" 12855 12856 eval supported=\$$cacheid 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12858$as_echo "$supported" >&6; } 12859 if test "$supported" = "yes" ; then 12860 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12861 found="yes" 12862 fi 12863 fi 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879xorg_testset_save_CFLAGS="$CFLAGS" 12880 12881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887else 12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12889/* end confdefs.h. */ 12890int i; 12891_ACEOF 12892if ac_fn_c_try_compile "$LINENO"; then : 12893 xorg_cv_cc_flag_unknown_warning_option=yes 12894else 12895 xorg_cv_cc_flag_unknown_warning_option=no 12896fi 12897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12898fi 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12902 CFLAGS="$xorg_testset_save_CFLAGS" 12903fi 12904 12905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12908 fi 12909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12913 $as_echo_n "(cached) " >&6 12914else 12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12916/* end confdefs.h. */ 12917int i; 12918_ACEOF 12919if ac_fn_c_try_compile "$LINENO"; then : 12920 xorg_cv_cc_flag_unused_command_line_argument=yes 12921else 12922 xorg_cv_cc_flag_unused_command_line_argument=no 12923fi 12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12925fi 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12929 CFLAGS="$xorg_testset_save_CFLAGS" 12930fi 12931 12932found="no" 12933 12934 if test $found = "no" ; then 12935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12937 fi 12938 12939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12941 fi 12942 12943 CFLAGS="$CFLAGS -Wpointer-arith" 12944 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12946$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12947 cacheid=xorg_cv_cc_flag__Wpointer_arith 12948 if eval \${$cacheid+:} false; then : 12949 $as_echo_n "(cached) " >&6 12950else 12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12952/* end confdefs.h. */ 12953int i; 12954int 12955main () 12956{ 12957 12958 ; 12959 return 0; 12960} 12961_ACEOF 12962if ac_fn_c_try_link "$LINENO"; then : 12963 eval $cacheid=yes 12964else 12965 eval $cacheid=no 12966fi 12967rm -f core conftest.err conftest.$ac_objext \ 12968 conftest$ac_exeext conftest.$ac_ext 12969fi 12970 12971 12972 CFLAGS="$xorg_testset_save_CFLAGS" 12973 12974 eval supported=\$$cacheid 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12976$as_echo "$supported" >&6; } 12977 if test "$supported" = "yes" ; then 12978 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12979 found="yes" 12980 fi 12981 fi 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997xorg_testset_save_CFLAGS="$CFLAGS" 12998 12999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13004 $as_echo_n "(cached) " >&6 13005else 13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13007/* end confdefs.h. */ 13008int i; 13009_ACEOF 13010if ac_fn_c_try_compile "$LINENO"; then : 13011 xorg_cv_cc_flag_unknown_warning_option=yes 13012else 13013 xorg_cv_cc_flag_unknown_warning_option=no 13014fi 13015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13016fi 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13020 CFLAGS="$xorg_testset_save_CFLAGS" 13021fi 13022 13023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13026 fi 13027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13031 $as_echo_n "(cached) " >&6 13032else 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034/* end confdefs.h. */ 13035int i; 13036_ACEOF 13037if ac_fn_c_try_compile "$LINENO"; then : 13038 xorg_cv_cc_flag_unused_command_line_argument=yes 13039else 13040 xorg_cv_cc_flag_unused_command_line_argument=no 13041fi 13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13043fi 13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13047 CFLAGS="$xorg_testset_save_CFLAGS" 13048fi 13049 13050found="no" 13051 13052 if test $found = "no" ; then 13053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13055 fi 13056 13057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13059 fi 13060 13061 CFLAGS="$CFLAGS -Wmissing-declarations" 13062 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13064$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13065 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13066 if eval \${$cacheid+:} false; then : 13067 $as_echo_n "(cached) " >&6 13068else 13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13070/* end confdefs.h. */ 13071int i; 13072int 13073main () 13074{ 13075 13076 ; 13077 return 0; 13078} 13079_ACEOF 13080if ac_fn_c_try_link "$LINENO"; then : 13081 eval $cacheid=yes 13082else 13083 eval $cacheid=no 13084fi 13085rm -f core conftest.err conftest.$ac_objext \ 13086 conftest$ac_exeext conftest.$ac_ext 13087fi 13088 13089 13090 CFLAGS="$xorg_testset_save_CFLAGS" 13091 13092 eval supported=\$$cacheid 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13094$as_echo "$supported" >&6; } 13095 if test "$supported" = "yes" ; then 13096 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13097 found="yes" 13098 fi 13099 fi 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115xorg_testset_save_CFLAGS="$CFLAGS" 13116 13117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13122 $as_echo_n "(cached) " >&6 13123else 13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13125/* end confdefs.h. */ 13126int i; 13127_ACEOF 13128if ac_fn_c_try_compile "$LINENO"; then : 13129 xorg_cv_cc_flag_unknown_warning_option=yes 13130else 13131 xorg_cv_cc_flag_unknown_warning_option=no 13132fi 13133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13134fi 13135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13138 CFLAGS="$xorg_testset_save_CFLAGS" 13139fi 13140 13141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13144 fi 13145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13149 $as_echo_n "(cached) " >&6 13150else 13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13152/* end confdefs.h. */ 13153int i; 13154_ACEOF 13155if ac_fn_c_try_compile "$LINENO"; then : 13156 xorg_cv_cc_flag_unused_command_line_argument=yes 13157else 13158 xorg_cv_cc_flag_unused_command_line_argument=no 13159fi 13160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13161fi 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13165 CFLAGS="$xorg_testset_save_CFLAGS" 13166fi 13167 13168found="no" 13169 13170 if test $found = "no" ; then 13171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13173 fi 13174 13175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13177 fi 13178 13179 CFLAGS="$CFLAGS -Wformat=2" 13180 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13182$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13183 cacheid=xorg_cv_cc_flag__Wformat_2 13184 if eval \${$cacheid+:} false; then : 13185 $as_echo_n "(cached) " >&6 13186else 13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13188/* end confdefs.h. */ 13189int i; 13190int 13191main () 13192{ 13193 13194 ; 13195 return 0; 13196} 13197_ACEOF 13198if ac_fn_c_try_link "$LINENO"; then : 13199 eval $cacheid=yes 13200else 13201 eval $cacheid=no 13202fi 13203rm -f core conftest.err conftest.$ac_objext \ 13204 conftest$ac_exeext conftest.$ac_ext 13205fi 13206 13207 13208 CFLAGS="$xorg_testset_save_CFLAGS" 13209 13210 eval supported=\$$cacheid 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13212$as_echo "$supported" >&6; } 13213 if test "$supported" = "yes" ; then 13214 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13215 found="yes" 13216 fi 13217 fi 13218 13219 if test $found = "no" ; then 13220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13222 fi 13223 13224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13226 fi 13227 13228 CFLAGS="$CFLAGS -Wformat" 13229 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13231$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13232 cacheid=xorg_cv_cc_flag__Wformat 13233 if eval \${$cacheid+:} false; then : 13234 $as_echo_n "(cached) " >&6 13235else 13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13237/* end confdefs.h. */ 13238int i; 13239int 13240main () 13241{ 13242 13243 ; 13244 return 0; 13245} 13246_ACEOF 13247if ac_fn_c_try_link "$LINENO"; then : 13248 eval $cacheid=yes 13249else 13250 eval $cacheid=no 13251fi 13252rm -f core conftest.err conftest.$ac_objext \ 13253 conftest$ac_exeext conftest.$ac_ext 13254fi 13255 13256 13257 CFLAGS="$xorg_testset_save_CFLAGS" 13258 13259 eval supported=\$$cacheid 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13261$as_echo "$supported" >&6; } 13262 if test "$supported" = "yes" ; then 13263 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13264 found="yes" 13265 fi 13266 fi 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284xorg_testset_save_CFLAGS="$CFLAGS" 13285 13286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13291 $as_echo_n "(cached) " >&6 13292else 13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13294/* end confdefs.h. */ 13295int i; 13296_ACEOF 13297if ac_fn_c_try_compile "$LINENO"; then : 13298 xorg_cv_cc_flag_unknown_warning_option=yes 13299else 13300 xorg_cv_cc_flag_unknown_warning_option=no 13301fi 13302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13303fi 13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13307 CFLAGS="$xorg_testset_save_CFLAGS" 13308fi 13309 13310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13313 fi 13314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13318 $as_echo_n "(cached) " >&6 13319else 13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13321/* end confdefs.h. */ 13322int i; 13323_ACEOF 13324if ac_fn_c_try_compile "$LINENO"; then : 13325 xorg_cv_cc_flag_unused_command_line_argument=yes 13326else 13327 xorg_cv_cc_flag_unused_command_line_argument=no 13328fi 13329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13330fi 13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13334 CFLAGS="$xorg_testset_save_CFLAGS" 13335fi 13336 13337found="no" 13338 13339 if test $found = "no" ; then 13340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13342 fi 13343 13344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13346 fi 13347 13348 CFLAGS="$CFLAGS -Wstrict-prototypes" 13349 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13351$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13352 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13353 if eval \${$cacheid+:} false; then : 13354 $as_echo_n "(cached) " >&6 13355else 13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13357/* end confdefs.h. */ 13358int i; 13359int 13360main () 13361{ 13362 13363 ; 13364 return 0; 13365} 13366_ACEOF 13367if ac_fn_c_try_link "$LINENO"; then : 13368 eval $cacheid=yes 13369else 13370 eval $cacheid=no 13371fi 13372rm -f core conftest.err conftest.$ac_objext \ 13373 conftest$ac_exeext conftest.$ac_ext 13374fi 13375 13376 13377 CFLAGS="$xorg_testset_save_CFLAGS" 13378 13379 eval supported=\$$cacheid 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13381$as_echo "$supported" >&6; } 13382 if test "$supported" = "yes" ; then 13383 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13384 found="yes" 13385 fi 13386 fi 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402xorg_testset_save_CFLAGS="$CFLAGS" 13403 13404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410else 13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13412/* end confdefs.h. */ 13413int i; 13414_ACEOF 13415if ac_fn_c_try_compile "$LINENO"; then : 13416 xorg_cv_cc_flag_unknown_warning_option=yes 13417else 13418 xorg_cv_cc_flag_unknown_warning_option=no 13419fi 13420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13421fi 13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13425 CFLAGS="$xorg_testset_save_CFLAGS" 13426fi 13427 13428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13431 fi 13432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13436 $as_echo_n "(cached) " >&6 13437else 13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13439/* end confdefs.h. */ 13440int i; 13441_ACEOF 13442if ac_fn_c_try_compile "$LINENO"; then : 13443 xorg_cv_cc_flag_unused_command_line_argument=yes 13444else 13445 xorg_cv_cc_flag_unused_command_line_argument=no 13446fi 13447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13448fi 13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13452 CFLAGS="$xorg_testset_save_CFLAGS" 13453fi 13454 13455found="no" 13456 13457 if test $found = "no" ; then 13458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13460 fi 13461 13462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13464 fi 13465 13466 CFLAGS="$CFLAGS -Wmissing-prototypes" 13467 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13469$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13470 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13471 if eval \${$cacheid+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13475/* end confdefs.h. */ 13476int i; 13477int 13478main () 13479{ 13480 13481 ; 13482 return 0; 13483} 13484_ACEOF 13485if ac_fn_c_try_link "$LINENO"; then : 13486 eval $cacheid=yes 13487else 13488 eval $cacheid=no 13489fi 13490rm -f core conftest.err conftest.$ac_objext \ 13491 conftest$ac_exeext conftest.$ac_ext 13492fi 13493 13494 13495 CFLAGS="$xorg_testset_save_CFLAGS" 13496 13497 eval supported=\$$cacheid 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13499$as_echo "$supported" >&6; } 13500 if test "$supported" = "yes" ; then 13501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13502 found="yes" 13503 fi 13504 fi 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520xorg_testset_save_CFLAGS="$CFLAGS" 13521 13522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13527 $as_echo_n "(cached) " >&6 13528else 13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13530/* end confdefs.h. */ 13531int i; 13532_ACEOF 13533if ac_fn_c_try_compile "$LINENO"; then : 13534 xorg_cv_cc_flag_unknown_warning_option=yes 13535else 13536 xorg_cv_cc_flag_unknown_warning_option=no 13537fi 13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13539fi 13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13543 CFLAGS="$xorg_testset_save_CFLAGS" 13544fi 13545 13546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13549 fi 13550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558int i; 13559_ACEOF 13560if ac_fn_c_try_compile "$LINENO"; then : 13561 xorg_cv_cc_flag_unused_command_line_argument=yes 13562else 13563 xorg_cv_cc_flag_unused_command_line_argument=no 13564fi 13565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13566fi 13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13570 CFLAGS="$xorg_testset_save_CFLAGS" 13571fi 13572 13573found="no" 13574 13575 if test $found = "no" ; then 13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13578 fi 13579 13580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13582 fi 13583 13584 CFLAGS="$CFLAGS -Wnested-externs" 13585 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13587$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13588 cacheid=xorg_cv_cc_flag__Wnested_externs 13589 if eval \${$cacheid+:} false; then : 13590 $as_echo_n "(cached) " >&6 13591else 13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13593/* end confdefs.h. */ 13594int i; 13595int 13596main () 13597{ 13598 13599 ; 13600 return 0; 13601} 13602_ACEOF 13603if ac_fn_c_try_link "$LINENO"; then : 13604 eval $cacheid=yes 13605else 13606 eval $cacheid=no 13607fi 13608rm -f core conftest.err conftest.$ac_objext \ 13609 conftest$ac_exeext conftest.$ac_ext 13610fi 13611 13612 13613 CFLAGS="$xorg_testset_save_CFLAGS" 13614 13615 eval supported=\$$cacheid 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13617$as_echo "$supported" >&6; } 13618 if test "$supported" = "yes" ; then 13619 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13620 found="yes" 13621 fi 13622 fi 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638xorg_testset_save_CFLAGS="$CFLAGS" 13639 13640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13645 $as_echo_n "(cached) " >&6 13646else 13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13648/* end confdefs.h. */ 13649int i; 13650_ACEOF 13651if ac_fn_c_try_compile "$LINENO"; then : 13652 xorg_cv_cc_flag_unknown_warning_option=yes 13653else 13654 xorg_cv_cc_flag_unknown_warning_option=no 13655fi 13656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13657fi 13658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13661 CFLAGS="$xorg_testset_save_CFLAGS" 13662fi 13663 13664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13667 fi 13668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13675/* end confdefs.h. */ 13676int i; 13677_ACEOF 13678if ac_fn_c_try_compile "$LINENO"; then : 13679 xorg_cv_cc_flag_unused_command_line_argument=yes 13680else 13681 xorg_cv_cc_flag_unused_command_line_argument=no 13682fi 13683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13684fi 13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13688 CFLAGS="$xorg_testset_save_CFLAGS" 13689fi 13690 13691found="no" 13692 13693 if test $found = "no" ; then 13694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13696 fi 13697 13698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13700 fi 13701 13702 CFLAGS="$CFLAGS -Wbad-function-cast" 13703 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13705$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13706 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13707 if eval \${$cacheid+:} false; then : 13708 $as_echo_n "(cached) " >&6 13709else 13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13711/* end confdefs.h. */ 13712int i; 13713int 13714main () 13715{ 13716 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721if ac_fn_c_try_link "$LINENO"; then : 13722 eval $cacheid=yes 13723else 13724 eval $cacheid=no 13725fi 13726rm -f core conftest.err conftest.$ac_objext \ 13727 conftest$ac_exeext conftest.$ac_ext 13728fi 13729 13730 13731 CFLAGS="$xorg_testset_save_CFLAGS" 13732 13733 eval supported=\$$cacheid 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13735$as_echo "$supported" >&6; } 13736 if test "$supported" = "yes" ; then 13737 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13738 found="yes" 13739 fi 13740 fi 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756xorg_testset_save_CFLAGS="$CFLAGS" 13757 13758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13763 $as_echo_n "(cached) " >&6 13764else 13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13766/* end confdefs.h. */ 13767int i; 13768_ACEOF 13769if ac_fn_c_try_compile "$LINENO"; then : 13770 xorg_cv_cc_flag_unknown_warning_option=yes 13771else 13772 xorg_cv_cc_flag_unknown_warning_option=no 13773fi 13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13775fi 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13779 CFLAGS="$xorg_testset_save_CFLAGS" 13780fi 13781 13782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13785 fi 13786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791else 13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793/* end confdefs.h. */ 13794int i; 13795_ACEOF 13796if ac_fn_c_try_compile "$LINENO"; then : 13797 xorg_cv_cc_flag_unused_command_line_argument=yes 13798else 13799 xorg_cv_cc_flag_unused_command_line_argument=no 13800fi 13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13802fi 13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13806 CFLAGS="$xorg_testset_save_CFLAGS" 13807fi 13808 13809found="no" 13810 13811 if test $found = "no" ; then 13812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13814 fi 13815 13816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13818 fi 13819 13820 CFLAGS="$CFLAGS -Wold-style-definition" 13821 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13823$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13824 cacheid=xorg_cv_cc_flag__Wold_style_definition 13825 if eval \${$cacheid+:} false; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13829/* end confdefs.h. */ 13830int i; 13831int 13832main () 13833{ 13834 13835 ; 13836 return 0; 13837} 13838_ACEOF 13839if ac_fn_c_try_link "$LINENO"; then : 13840 eval $cacheid=yes 13841else 13842 eval $cacheid=no 13843fi 13844rm -f core conftest.err conftest.$ac_objext \ 13845 conftest$ac_exeext conftest.$ac_ext 13846fi 13847 13848 13849 CFLAGS="$xorg_testset_save_CFLAGS" 13850 13851 eval supported=\$$cacheid 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13853$as_echo "$supported" >&6; } 13854 if test "$supported" = "yes" ; then 13855 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13856 found="yes" 13857 fi 13858 fi 13859 13860 if test $found = "no" ; then 13861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13863 fi 13864 13865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13867 fi 13868 13869 CFLAGS="$CFLAGS -fd" 13870 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13872$as_echo_n "checking if $CC supports -fd... " >&6; } 13873 cacheid=xorg_cv_cc_flag__fd 13874 if eval \${$cacheid+:} false; then : 13875 $as_echo_n "(cached) " >&6 13876else 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879int i; 13880int 13881main () 13882{ 13883 13884 ; 13885 return 0; 13886} 13887_ACEOF 13888if ac_fn_c_try_link "$LINENO"; then : 13889 eval $cacheid=yes 13890else 13891 eval $cacheid=no 13892fi 13893rm -f core conftest.err conftest.$ac_objext \ 13894 conftest$ac_exeext conftest.$ac_ext 13895fi 13896 13897 13898 CFLAGS="$xorg_testset_save_CFLAGS" 13899 13900 eval supported=\$$cacheid 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13902$as_echo "$supported" >&6; } 13903 if test "$supported" = "yes" ; then 13904 BASE_CFLAGS="$BASE_CFLAGS -fd" 13905 found="yes" 13906 fi 13907 fi 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923xorg_testset_save_CFLAGS="$CFLAGS" 13924 13925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934int i; 13935_ACEOF 13936if ac_fn_c_try_compile "$LINENO"; then : 13937 xorg_cv_cc_flag_unknown_warning_option=yes 13938else 13939 xorg_cv_cc_flag_unknown_warning_option=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13942fi 13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947fi 13948 13949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13952 fi 13953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961int i; 13962_ACEOF 13963if ac_fn_c_try_compile "$LINENO"; then : 13964 xorg_cv_cc_flag_unused_command_line_argument=yes 13965else 13966 xorg_cv_cc_flag_unused_command_line_argument=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13969fi 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13973 CFLAGS="$xorg_testset_save_CFLAGS" 13974fi 13975 13976found="no" 13977 13978 if test $found = "no" ; then 13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13981 fi 13982 13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13985 fi 13986 13987 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13988 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13990$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13991 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13992 if eval \${$cacheid+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997int i; 13998int 13999main () 14000{ 14001 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_link "$LINENO"; then : 14007 eval $cacheid=yes 14008else 14009 eval $cacheid=no 14010fi 14011rm -f core conftest.err conftest.$ac_objext \ 14012 conftest$ac_exeext conftest.$ac_ext 14013fi 14014 14015 14016 CFLAGS="$xorg_testset_save_CFLAGS" 14017 14018 eval supported=\$$cacheid 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14020$as_echo "$supported" >&6; } 14021 if test "$supported" = "yes" ; then 14022 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14023 found="yes" 14024 fi 14025 fi 14026 14027 14028 14029 14030 14031# This chunk adds additional warnings that could catch undesired effects. 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045xorg_testset_save_CFLAGS="$CFLAGS" 14046 14047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14052 $as_echo_n "(cached) " >&6 14053else 14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14055/* end confdefs.h. */ 14056int i; 14057_ACEOF 14058if ac_fn_c_try_compile "$LINENO"; then : 14059 xorg_cv_cc_flag_unknown_warning_option=yes 14060else 14061 xorg_cv_cc_flag_unknown_warning_option=no 14062fi 14063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14064fi 14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14068 CFLAGS="$xorg_testset_save_CFLAGS" 14069fi 14070 14071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14074 fi 14075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14079 $as_echo_n "(cached) " >&6 14080else 14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14082/* end confdefs.h. */ 14083int i; 14084_ACEOF 14085if ac_fn_c_try_compile "$LINENO"; then : 14086 xorg_cv_cc_flag_unused_command_line_argument=yes 14087else 14088 xorg_cv_cc_flag_unused_command_line_argument=no 14089fi 14090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14091fi 14092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14095 CFLAGS="$xorg_testset_save_CFLAGS" 14096fi 14097 14098found="no" 14099 14100 if test $found = "no" ; then 14101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14103 fi 14104 14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14107 fi 14108 14109 CFLAGS="$CFLAGS -Wunused" 14110 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14112$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14113 cacheid=xorg_cv_cc_flag__Wunused 14114 if eval \${$cacheid+:} false; then : 14115 $as_echo_n "(cached) " >&6 14116else 14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14118/* end confdefs.h. */ 14119int i; 14120int 14121main () 14122{ 14123 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128if ac_fn_c_try_link "$LINENO"; then : 14129 eval $cacheid=yes 14130else 14131 eval $cacheid=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext \ 14134 conftest$ac_exeext conftest.$ac_ext 14135fi 14136 14137 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139 14140 eval supported=\$$cacheid 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14142$as_echo "$supported" >&6; } 14143 if test "$supported" = "yes" ; then 14144 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14145 found="yes" 14146 fi 14147 fi 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163xorg_testset_save_CFLAGS="$CFLAGS" 14164 14165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14173/* end confdefs.h. */ 14174int i; 14175_ACEOF 14176if ac_fn_c_try_compile "$LINENO"; then : 14177 xorg_cv_cc_flag_unknown_warning_option=yes 14178else 14179 xorg_cv_cc_flag_unknown_warning_option=no 14180fi 14181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14182fi 14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14186 CFLAGS="$xorg_testset_save_CFLAGS" 14187fi 14188 14189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14192 fi 14193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14197 $as_echo_n "(cached) " >&6 14198else 14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200/* end confdefs.h. */ 14201int i; 14202_ACEOF 14203if ac_fn_c_try_compile "$LINENO"; then : 14204 xorg_cv_cc_flag_unused_command_line_argument=yes 14205else 14206 xorg_cv_cc_flag_unused_command_line_argument=no 14207fi 14208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14209fi 14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14213 CFLAGS="$xorg_testset_save_CFLAGS" 14214fi 14215 14216found="no" 14217 14218 if test $found = "no" ; then 14219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14221 fi 14222 14223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14225 fi 14226 14227 CFLAGS="$CFLAGS -Wuninitialized" 14228 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14230$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14231 cacheid=xorg_cv_cc_flag__Wuninitialized 14232 if eval \${$cacheid+:} false; then : 14233 $as_echo_n "(cached) " >&6 14234else 14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14236/* end confdefs.h. */ 14237int i; 14238int 14239main () 14240{ 14241 14242 ; 14243 return 0; 14244} 14245_ACEOF 14246if ac_fn_c_try_link "$LINENO"; then : 14247 eval $cacheid=yes 14248else 14249 eval $cacheid=no 14250fi 14251rm -f core conftest.err conftest.$ac_objext \ 14252 conftest$ac_exeext conftest.$ac_ext 14253fi 14254 14255 14256 CFLAGS="$xorg_testset_save_CFLAGS" 14257 14258 eval supported=\$$cacheid 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14260$as_echo "$supported" >&6; } 14261 if test "$supported" = "yes" ; then 14262 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14263 found="yes" 14264 fi 14265 fi 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281xorg_testset_save_CFLAGS="$CFLAGS" 14282 14283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14288 $as_echo_n "(cached) " >&6 14289else 14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291/* end confdefs.h. */ 14292int i; 14293_ACEOF 14294if ac_fn_c_try_compile "$LINENO"; then : 14295 xorg_cv_cc_flag_unknown_warning_option=yes 14296else 14297 xorg_cv_cc_flag_unknown_warning_option=no 14298fi 14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14300fi 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14304 CFLAGS="$xorg_testset_save_CFLAGS" 14305fi 14306 14307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14310 fi 14311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14315 $as_echo_n "(cached) " >&6 14316else 14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14318/* end confdefs.h. */ 14319int i; 14320_ACEOF 14321if ac_fn_c_try_compile "$LINENO"; then : 14322 xorg_cv_cc_flag_unused_command_line_argument=yes 14323else 14324 xorg_cv_cc_flag_unused_command_line_argument=no 14325fi 14326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14327fi 14328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14331 CFLAGS="$xorg_testset_save_CFLAGS" 14332fi 14333 14334found="no" 14335 14336 if test $found = "no" ; then 14337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14339 fi 14340 14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14343 fi 14344 14345 CFLAGS="$CFLAGS -Wshadow" 14346 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14348$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14349 cacheid=xorg_cv_cc_flag__Wshadow 14350 if eval \${$cacheid+:} false; then : 14351 $as_echo_n "(cached) " >&6 14352else 14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14354/* end confdefs.h. */ 14355int i; 14356int 14357main () 14358{ 14359 14360 ; 14361 return 0; 14362} 14363_ACEOF 14364if ac_fn_c_try_link "$LINENO"; then : 14365 eval $cacheid=yes 14366else 14367 eval $cacheid=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext \ 14370 conftest$ac_exeext conftest.$ac_ext 14371fi 14372 14373 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375 14376 eval supported=\$$cacheid 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14378$as_echo "$supported" >&6; } 14379 if test "$supported" = "yes" ; then 14380 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14381 found="yes" 14382 fi 14383 fi 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399xorg_testset_save_CFLAGS="$CFLAGS" 14400 14401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14406 $as_echo_n "(cached) " >&6 14407else 14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14409/* end confdefs.h. */ 14410int i; 14411_ACEOF 14412if ac_fn_c_try_compile "$LINENO"; then : 14413 xorg_cv_cc_flag_unknown_warning_option=yes 14414else 14415 xorg_cv_cc_flag_unknown_warning_option=no 14416fi 14417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14418fi 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14422 CFLAGS="$xorg_testset_save_CFLAGS" 14423fi 14424 14425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14428 fi 14429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14433 $as_echo_n "(cached) " >&6 14434else 14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14436/* end confdefs.h. */ 14437int i; 14438_ACEOF 14439if ac_fn_c_try_compile "$LINENO"; then : 14440 xorg_cv_cc_flag_unused_command_line_argument=yes 14441else 14442 xorg_cv_cc_flag_unused_command_line_argument=no 14443fi 14444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14445fi 14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14449 CFLAGS="$xorg_testset_save_CFLAGS" 14450fi 14451 14452found="no" 14453 14454 if test $found = "no" ; then 14455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14457 fi 14458 14459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14461 fi 14462 14463 CFLAGS="$CFLAGS -Wmissing-noreturn" 14464 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14466$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14467 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14468 if eval \${$cacheid+:} false; then : 14469 $as_echo_n "(cached) " >&6 14470else 14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472/* end confdefs.h. */ 14473int i; 14474int 14475main () 14476{ 14477 14478 ; 14479 return 0; 14480} 14481_ACEOF 14482if ac_fn_c_try_link "$LINENO"; then : 14483 eval $cacheid=yes 14484else 14485 eval $cacheid=no 14486fi 14487rm -f core conftest.err conftest.$ac_objext \ 14488 conftest$ac_exeext conftest.$ac_ext 14489fi 14490 14491 14492 CFLAGS="$xorg_testset_save_CFLAGS" 14493 14494 eval supported=\$$cacheid 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14496$as_echo "$supported" >&6; } 14497 if test "$supported" = "yes" ; then 14498 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14499 found="yes" 14500 fi 14501 fi 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517xorg_testset_save_CFLAGS="$CFLAGS" 14518 14519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529_ACEOF 14530if ac_fn_c_try_compile "$LINENO"; then : 14531 xorg_cv_cc_flag_unknown_warning_option=yes 14532else 14533 xorg_cv_cc_flag_unknown_warning_option=no 14534fi 14535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14536fi 14537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14540 CFLAGS="$xorg_testset_save_CFLAGS" 14541fi 14542 14543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14546 fi 14547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14551 $as_echo_n "(cached) " >&6 14552else 14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14554/* end confdefs.h. */ 14555int i; 14556_ACEOF 14557if ac_fn_c_try_compile "$LINENO"; then : 14558 xorg_cv_cc_flag_unused_command_line_argument=yes 14559else 14560 xorg_cv_cc_flag_unused_command_line_argument=no 14561fi 14562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14563fi 14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14567 CFLAGS="$xorg_testset_save_CFLAGS" 14568fi 14569 14570found="no" 14571 14572 if test $found = "no" ; then 14573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14575 fi 14576 14577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14579 fi 14580 14581 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14582 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14584$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14585 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14586 if eval \${$cacheid+:} false; then : 14587 $as_echo_n "(cached) " >&6 14588else 14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14590/* end confdefs.h. */ 14591int i; 14592int 14593main () 14594{ 14595 14596 ; 14597 return 0; 14598} 14599_ACEOF 14600if ac_fn_c_try_link "$LINENO"; then : 14601 eval $cacheid=yes 14602else 14603 eval $cacheid=no 14604fi 14605rm -f core conftest.err conftest.$ac_objext \ 14606 conftest$ac_exeext conftest.$ac_ext 14607fi 14608 14609 14610 CFLAGS="$xorg_testset_save_CFLAGS" 14611 14612 eval supported=\$$cacheid 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14614$as_echo "$supported" >&6; } 14615 if test "$supported" = "yes" ; then 14616 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14617 found="yes" 14618 fi 14619 fi 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635xorg_testset_save_CFLAGS="$CFLAGS" 14636 14637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647_ACEOF 14648if ac_fn_c_try_compile "$LINENO"; then : 14649 xorg_cv_cc_flag_unknown_warning_option=yes 14650else 14651 xorg_cv_cc_flag_unknown_warning_option=no 14652fi 14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14654fi 14655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14658 CFLAGS="$xorg_testset_save_CFLAGS" 14659fi 14660 14661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14664 fi 14665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14669 $as_echo_n "(cached) " >&6 14670else 14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673int i; 14674_ACEOF 14675if ac_fn_c_try_compile "$LINENO"; then : 14676 xorg_cv_cc_flag_unused_command_line_argument=yes 14677else 14678 xorg_cv_cc_flag_unused_command_line_argument=no 14679fi 14680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14681fi 14682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14685 CFLAGS="$xorg_testset_save_CFLAGS" 14686fi 14687 14688found="no" 14689 14690 if test $found = "no" ; then 14691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14693 fi 14694 14695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14697 fi 14698 14699 CFLAGS="$CFLAGS -Wredundant-decls" 14700 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14702$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14703 cacheid=xorg_cv_cc_flag__Wredundant_decls 14704 if eval \${$cacheid+:} false; then : 14705 $as_echo_n "(cached) " >&6 14706else 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708/* end confdefs.h. */ 14709int i; 14710int 14711main () 14712{ 14713 14714 ; 14715 return 0; 14716} 14717_ACEOF 14718if ac_fn_c_try_link "$LINENO"; then : 14719 eval $cacheid=yes 14720else 14721 eval $cacheid=no 14722fi 14723rm -f core conftest.err conftest.$ac_objext \ 14724 conftest$ac_exeext conftest.$ac_ext 14725fi 14726 14727 14728 CFLAGS="$xorg_testset_save_CFLAGS" 14729 14730 eval supported=\$$cacheid 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14732$as_echo "$supported" >&6; } 14733 if test "$supported" = "yes" ; then 14734 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14735 found="yes" 14736 fi 14737 fi 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753xorg_testset_save_CFLAGS="$CFLAGS" 14754 14755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14760 $as_echo_n "(cached) " >&6 14761else 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764int i; 14765_ACEOF 14766if ac_fn_c_try_compile "$LINENO"; then : 14767 xorg_cv_cc_flag_unknown_warning_option=yes 14768else 14769 xorg_cv_cc_flag_unknown_warning_option=no 14770fi 14771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14772fi 14773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14776 CFLAGS="$xorg_testset_save_CFLAGS" 14777fi 14778 14779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14782 fi 14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14787 $as_echo_n "(cached) " >&6 14788else 14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790/* end confdefs.h. */ 14791int i; 14792_ACEOF 14793if ac_fn_c_try_compile "$LINENO"; then : 14794 xorg_cv_cc_flag_unused_command_line_argument=yes 14795else 14796 xorg_cv_cc_flag_unused_command_line_argument=no 14797fi 14798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14799fi 14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14803 CFLAGS="$xorg_testset_save_CFLAGS" 14804fi 14805 14806found="no" 14807 14808 if test $found = "no" ; then 14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14811 fi 14812 14813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14815 fi 14816 14817 CFLAGS="$CFLAGS -Wlogical-op" 14818 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14820$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14821 cacheid=xorg_cv_cc_flag__Wlogical_op 14822 if eval \${$cacheid+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827int i; 14828int 14829main () 14830{ 14831 14832 ; 14833 return 0; 14834} 14835_ACEOF 14836if ac_fn_c_try_link "$LINENO"; then : 14837 eval $cacheid=yes 14838else 14839 eval $cacheid=no 14840fi 14841rm -f core conftest.err conftest.$ac_objext \ 14842 conftest$ac_exeext conftest.$ac_ext 14843fi 14844 14845 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847 14848 eval supported=\$$cacheid 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14850$as_echo "$supported" >&6; } 14851 if test "$supported" = "yes" ; then 14852 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14853 found="yes" 14854 fi 14855 fi 14856 14857 14858 14859# These are currently disabled because they are noisy. They will be enabled 14860# in the future once the codebase is sufficiently modernized to silence 14861# them. For now, I don't want them to drown out the other warnings. 14862# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14863# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14864# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14865 14866# Turn some warnings into errors, so we don't accidently get successful builds 14867# when there are problems that should be fixed. 14868 14869if test "x$SELECTIVE_WERROR" = "xyes" ; then 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883xorg_testset_save_CFLAGS="$CFLAGS" 14884 14885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14890 $as_echo_n "(cached) " >&6 14891else 14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894int i; 14895_ACEOF 14896if ac_fn_c_try_compile "$LINENO"; then : 14897 xorg_cv_cc_flag_unknown_warning_option=yes 14898else 14899 xorg_cv_cc_flag_unknown_warning_option=no 14900fi 14901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14902fi 14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14906 CFLAGS="$xorg_testset_save_CFLAGS" 14907fi 14908 14909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14912 fi 14913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14917 $as_echo_n "(cached) " >&6 14918else 14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921int i; 14922_ACEOF 14923if ac_fn_c_try_compile "$LINENO"; then : 14924 xorg_cv_cc_flag_unused_command_line_argument=yes 14925else 14926 xorg_cv_cc_flag_unused_command_line_argument=no 14927fi 14928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14929fi 14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14933 CFLAGS="$xorg_testset_save_CFLAGS" 14934fi 14935 14936found="no" 14937 14938 if test $found = "no" ; then 14939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14941 fi 14942 14943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14945 fi 14946 14947 CFLAGS="$CFLAGS -Werror=implicit" 14948 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14950$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14951 cacheid=xorg_cv_cc_flag__Werror_implicit 14952 if eval \${$cacheid+:} false; then : 14953 $as_echo_n "(cached) " >&6 14954else 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957int i; 14958int 14959main () 14960{ 14961 14962 ; 14963 return 0; 14964} 14965_ACEOF 14966if ac_fn_c_try_link "$LINENO"; then : 14967 eval $cacheid=yes 14968else 14969 eval $cacheid=no 14970fi 14971rm -f core conftest.err conftest.$ac_objext \ 14972 conftest$ac_exeext conftest.$ac_ext 14973fi 14974 14975 14976 CFLAGS="$xorg_testset_save_CFLAGS" 14977 14978 eval supported=\$$cacheid 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14980$as_echo "$supported" >&6; } 14981 if test "$supported" = "yes" ; then 14982 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14983 found="yes" 14984 fi 14985 fi 14986 14987 if test $found = "no" ; then 14988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14990 fi 14991 14992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14994 fi 14995 14996 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14997 14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14999$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15000 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15001 if eval \${$cacheid+:} false; then : 15002 $as_echo_n "(cached) " >&6 15003else 15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15005/* end confdefs.h. */ 15006int i; 15007int 15008main () 15009{ 15010 15011 ; 15012 return 0; 15013} 15014_ACEOF 15015if ac_fn_c_try_link "$LINENO"; then : 15016 eval $cacheid=yes 15017else 15018 eval $cacheid=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext \ 15021 conftest$ac_exeext conftest.$ac_ext 15022fi 15023 15024 15025 CFLAGS="$xorg_testset_save_CFLAGS" 15026 15027 eval supported=\$$cacheid 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15029$as_echo "$supported" >&6; } 15030 if test "$supported" = "yes" ; then 15031 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15032 found="yes" 15033 fi 15034 fi 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050xorg_testset_save_CFLAGS="$CFLAGS" 15051 15052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15057 $as_echo_n "(cached) " >&6 15058else 15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15060/* end confdefs.h. */ 15061int i; 15062_ACEOF 15063if ac_fn_c_try_compile "$LINENO"; then : 15064 xorg_cv_cc_flag_unknown_warning_option=yes 15065else 15066 xorg_cv_cc_flag_unknown_warning_option=no 15067fi 15068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15069fi 15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15073 CFLAGS="$xorg_testset_save_CFLAGS" 15074fi 15075 15076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15079 fi 15080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15084 $as_echo_n "(cached) " >&6 15085else 15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15087/* end confdefs.h. */ 15088int i; 15089_ACEOF 15090if ac_fn_c_try_compile "$LINENO"; then : 15091 xorg_cv_cc_flag_unused_command_line_argument=yes 15092else 15093 xorg_cv_cc_flag_unused_command_line_argument=no 15094fi 15095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15096fi 15097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15100 CFLAGS="$xorg_testset_save_CFLAGS" 15101fi 15102 15103found="no" 15104 15105 if test $found = "no" ; then 15106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15108 fi 15109 15110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15112 fi 15113 15114 CFLAGS="$CFLAGS -Werror=nonnull" 15115 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15117$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15118 cacheid=xorg_cv_cc_flag__Werror_nonnull 15119 if eval \${$cacheid+:} false; then : 15120 $as_echo_n "(cached) " >&6 15121else 15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15123/* end confdefs.h. */ 15124int i; 15125int 15126main () 15127{ 15128 15129 ; 15130 return 0; 15131} 15132_ACEOF 15133if ac_fn_c_try_link "$LINENO"; then : 15134 eval $cacheid=yes 15135else 15136 eval $cacheid=no 15137fi 15138rm -f core conftest.err conftest.$ac_objext \ 15139 conftest$ac_exeext conftest.$ac_ext 15140fi 15141 15142 15143 CFLAGS="$xorg_testset_save_CFLAGS" 15144 15145 eval supported=\$$cacheid 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15147$as_echo "$supported" >&6; } 15148 if test "$supported" = "yes" ; then 15149 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15150 found="yes" 15151 fi 15152 fi 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168xorg_testset_save_CFLAGS="$CFLAGS" 15169 15170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15175 $as_echo_n "(cached) " >&6 15176else 15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15178/* end confdefs.h. */ 15179int i; 15180_ACEOF 15181if ac_fn_c_try_compile "$LINENO"; then : 15182 xorg_cv_cc_flag_unknown_warning_option=yes 15183else 15184 xorg_cv_cc_flag_unknown_warning_option=no 15185fi 15186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15187fi 15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15191 CFLAGS="$xorg_testset_save_CFLAGS" 15192fi 15193 15194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15197 fi 15198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15202 $as_echo_n "(cached) " >&6 15203else 15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205/* end confdefs.h. */ 15206int i; 15207_ACEOF 15208if ac_fn_c_try_compile "$LINENO"; then : 15209 xorg_cv_cc_flag_unused_command_line_argument=yes 15210else 15211 xorg_cv_cc_flag_unused_command_line_argument=no 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15214fi 15215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15218 CFLAGS="$xorg_testset_save_CFLAGS" 15219fi 15220 15221found="no" 15222 15223 if test $found = "no" ; then 15224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15226 fi 15227 15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15230 fi 15231 15232 CFLAGS="$CFLAGS -Werror=init-self" 15233 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15235$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15236 cacheid=xorg_cv_cc_flag__Werror_init_self 15237 if eval \${$cacheid+:} false; then : 15238 $as_echo_n "(cached) " >&6 15239else 15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15241/* end confdefs.h. */ 15242int i; 15243int 15244main () 15245{ 15246 15247 ; 15248 return 0; 15249} 15250_ACEOF 15251if ac_fn_c_try_link "$LINENO"; then : 15252 eval $cacheid=yes 15253else 15254 eval $cacheid=no 15255fi 15256rm -f core conftest.err conftest.$ac_objext \ 15257 conftest$ac_exeext conftest.$ac_ext 15258fi 15259 15260 15261 CFLAGS="$xorg_testset_save_CFLAGS" 15262 15263 eval supported=\$$cacheid 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15265$as_echo "$supported" >&6; } 15266 if test "$supported" = "yes" ; then 15267 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15268 found="yes" 15269 fi 15270 fi 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286xorg_testset_save_CFLAGS="$CFLAGS" 15287 15288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15293 $as_echo_n "(cached) " >&6 15294else 15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15296/* end confdefs.h. */ 15297int i; 15298_ACEOF 15299if ac_fn_c_try_compile "$LINENO"; then : 15300 xorg_cv_cc_flag_unknown_warning_option=yes 15301else 15302 xorg_cv_cc_flag_unknown_warning_option=no 15303fi 15304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15305fi 15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15309 CFLAGS="$xorg_testset_save_CFLAGS" 15310fi 15311 15312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15315 fi 15316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15320 $as_echo_n "(cached) " >&6 15321else 15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15323/* end confdefs.h. */ 15324int i; 15325_ACEOF 15326if ac_fn_c_try_compile "$LINENO"; then : 15327 xorg_cv_cc_flag_unused_command_line_argument=yes 15328else 15329 xorg_cv_cc_flag_unused_command_line_argument=no 15330fi 15331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15332fi 15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15336 CFLAGS="$xorg_testset_save_CFLAGS" 15337fi 15338 15339found="no" 15340 15341 if test $found = "no" ; then 15342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15344 fi 15345 15346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15348 fi 15349 15350 CFLAGS="$CFLAGS -Werror=main" 15351 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15353$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15354 cacheid=xorg_cv_cc_flag__Werror_main 15355 if eval \${$cacheid+:} false; then : 15356 $as_echo_n "(cached) " >&6 15357else 15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15359/* end confdefs.h. */ 15360int i; 15361int 15362main () 15363{ 15364 15365 ; 15366 return 0; 15367} 15368_ACEOF 15369if ac_fn_c_try_link "$LINENO"; then : 15370 eval $cacheid=yes 15371else 15372 eval $cacheid=no 15373fi 15374rm -f core conftest.err conftest.$ac_objext \ 15375 conftest$ac_exeext conftest.$ac_ext 15376fi 15377 15378 15379 CFLAGS="$xorg_testset_save_CFLAGS" 15380 15381 eval supported=\$$cacheid 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15383$as_echo "$supported" >&6; } 15384 if test "$supported" = "yes" ; then 15385 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15386 found="yes" 15387 fi 15388 fi 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404xorg_testset_save_CFLAGS="$CFLAGS" 15405 15406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15411 $as_echo_n "(cached) " >&6 15412else 15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415int i; 15416_ACEOF 15417if ac_fn_c_try_compile "$LINENO"; then : 15418 xorg_cv_cc_flag_unknown_warning_option=yes 15419else 15420 xorg_cv_cc_flag_unknown_warning_option=no 15421fi 15422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15423fi 15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15427 CFLAGS="$xorg_testset_save_CFLAGS" 15428fi 15429 15430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15433 fi 15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15438 $as_echo_n "(cached) " >&6 15439else 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441/* end confdefs.h. */ 15442int i; 15443_ACEOF 15444if ac_fn_c_try_compile "$LINENO"; then : 15445 xorg_cv_cc_flag_unused_command_line_argument=yes 15446else 15447 xorg_cv_cc_flag_unused_command_line_argument=no 15448fi 15449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15450fi 15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15454 CFLAGS="$xorg_testset_save_CFLAGS" 15455fi 15456 15457found="no" 15458 15459 if test $found = "no" ; then 15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 fi 15463 15464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15466 fi 15467 15468 CFLAGS="$CFLAGS -Werror=missing-braces" 15469 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15471$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15472 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15473 if eval \${$cacheid+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477/* end confdefs.h. */ 15478int i; 15479int 15480main () 15481{ 15482 15483 ; 15484 return 0; 15485} 15486_ACEOF 15487if ac_fn_c_try_link "$LINENO"; then : 15488 eval $cacheid=yes 15489else 15490 eval $cacheid=no 15491fi 15492rm -f core conftest.err conftest.$ac_objext \ 15493 conftest$ac_exeext conftest.$ac_ext 15494fi 15495 15496 15497 CFLAGS="$xorg_testset_save_CFLAGS" 15498 15499 eval supported=\$$cacheid 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15501$as_echo "$supported" >&6; } 15502 if test "$supported" = "yes" ; then 15503 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15504 found="yes" 15505 fi 15506 fi 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522xorg_testset_save_CFLAGS="$CFLAGS" 15523 15524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15529 $as_echo_n "(cached) " >&6 15530else 15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532/* end confdefs.h. */ 15533int i; 15534_ACEOF 15535if ac_fn_c_try_compile "$LINENO"; then : 15536 xorg_cv_cc_flag_unknown_warning_option=yes 15537else 15538 xorg_cv_cc_flag_unknown_warning_option=no 15539fi 15540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15541fi 15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15545 CFLAGS="$xorg_testset_save_CFLAGS" 15546fi 15547 15548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15551 fi 15552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557else 15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15559/* end confdefs.h. */ 15560int i; 15561_ACEOF 15562if ac_fn_c_try_compile "$LINENO"; then : 15563 xorg_cv_cc_flag_unused_command_line_argument=yes 15564else 15565 xorg_cv_cc_flag_unused_command_line_argument=no 15566fi 15567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15568fi 15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15572 CFLAGS="$xorg_testset_save_CFLAGS" 15573fi 15574 15575found="no" 15576 15577 if test $found = "no" ; then 15578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15580 fi 15581 15582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15584 fi 15585 15586 CFLAGS="$CFLAGS -Werror=sequence-point" 15587 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15589$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15590 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15591 if eval \${$cacheid+:} false; then : 15592 $as_echo_n "(cached) " >&6 15593else 15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15595/* end confdefs.h. */ 15596int i; 15597int 15598main () 15599{ 15600 15601 ; 15602 return 0; 15603} 15604_ACEOF 15605if ac_fn_c_try_link "$LINENO"; then : 15606 eval $cacheid=yes 15607else 15608 eval $cacheid=no 15609fi 15610rm -f core conftest.err conftest.$ac_objext \ 15611 conftest$ac_exeext conftest.$ac_ext 15612fi 15613 15614 15615 CFLAGS="$xorg_testset_save_CFLAGS" 15616 15617 eval supported=\$$cacheid 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15619$as_echo "$supported" >&6; } 15620 if test "$supported" = "yes" ; then 15621 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15622 found="yes" 15623 fi 15624 fi 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640xorg_testset_save_CFLAGS="$CFLAGS" 15641 15642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15647 $as_echo_n "(cached) " >&6 15648else 15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650/* end confdefs.h. */ 15651int i; 15652_ACEOF 15653if ac_fn_c_try_compile "$LINENO"; then : 15654 xorg_cv_cc_flag_unknown_warning_option=yes 15655else 15656 xorg_cv_cc_flag_unknown_warning_option=no 15657fi 15658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15659fi 15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15663 CFLAGS="$xorg_testset_save_CFLAGS" 15664fi 15665 15666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15669 fi 15670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15677/* end confdefs.h. */ 15678int i; 15679_ACEOF 15680if ac_fn_c_try_compile "$LINENO"; then : 15681 xorg_cv_cc_flag_unused_command_line_argument=yes 15682else 15683 xorg_cv_cc_flag_unused_command_line_argument=no 15684fi 15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15686fi 15687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15690 CFLAGS="$xorg_testset_save_CFLAGS" 15691fi 15692 15693found="no" 15694 15695 if test $found = "no" ; then 15696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15698 fi 15699 15700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15702 fi 15703 15704 CFLAGS="$CFLAGS -Werror=return-type" 15705 15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15707$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15708 cacheid=xorg_cv_cc_flag__Werror_return_type 15709 if eval \${$cacheid+:} false; then : 15710 $as_echo_n "(cached) " >&6 15711else 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713/* end confdefs.h. */ 15714int i; 15715int 15716main () 15717{ 15718 15719 ; 15720 return 0; 15721} 15722_ACEOF 15723if ac_fn_c_try_link "$LINENO"; then : 15724 eval $cacheid=yes 15725else 15726 eval $cacheid=no 15727fi 15728rm -f core conftest.err conftest.$ac_objext \ 15729 conftest$ac_exeext conftest.$ac_ext 15730fi 15731 15732 15733 CFLAGS="$xorg_testset_save_CFLAGS" 15734 15735 eval supported=\$$cacheid 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15737$as_echo "$supported" >&6; } 15738 if test "$supported" = "yes" ; then 15739 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15740 found="yes" 15741 fi 15742 fi 15743 15744 if test $found = "no" ; then 15745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15747 fi 15748 15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15751 fi 15752 15753 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15754 15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15756$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15757 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15758 if eval \${$cacheid+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762/* end confdefs.h. */ 15763int i; 15764int 15765main () 15766{ 15767 15768 ; 15769 return 0; 15770} 15771_ACEOF 15772if ac_fn_c_try_link "$LINENO"; then : 15773 eval $cacheid=yes 15774else 15775 eval $cacheid=no 15776fi 15777rm -f core conftest.err conftest.$ac_objext \ 15778 conftest$ac_exeext conftest.$ac_ext 15779fi 15780 15781 15782 CFLAGS="$xorg_testset_save_CFLAGS" 15783 15784 eval supported=\$$cacheid 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15786$as_echo "$supported" >&6; } 15787 if test "$supported" = "yes" ; then 15788 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15789 found="yes" 15790 fi 15791 fi 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807xorg_testset_save_CFLAGS="$CFLAGS" 15808 15809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15814 $as_echo_n "(cached) " >&6 15815else 15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15817/* end confdefs.h. */ 15818int i; 15819_ACEOF 15820if ac_fn_c_try_compile "$LINENO"; then : 15821 xorg_cv_cc_flag_unknown_warning_option=yes 15822else 15823 xorg_cv_cc_flag_unknown_warning_option=no 15824fi 15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15826fi 15827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15830 CFLAGS="$xorg_testset_save_CFLAGS" 15831fi 15832 15833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15836 fi 15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15841 $as_echo_n "(cached) " >&6 15842else 15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15844/* end confdefs.h. */ 15845int i; 15846_ACEOF 15847if ac_fn_c_try_compile "$LINENO"; then : 15848 xorg_cv_cc_flag_unused_command_line_argument=yes 15849else 15850 xorg_cv_cc_flag_unused_command_line_argument=no 15851fi 15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15853fi 15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15857 CFLAGS="$xorg_testset_save_CFLAGS" 15858fi 15859 15860found="no" 15861 15862 if test $found = "no" ; then 15863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15865 fi 15866 15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15869 fi 15870 15871 CFLAGS="$CFLAGS -Werror=trigraphs" 15872 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15874$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15875 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15876 if eval \${$cacheid+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878else 15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881int i; 15882int 15883main () 15884{ 15885 15886 ; 15887 return 0; 15888} 15889_ACEOF 15890if ac_fn_c_try_link "$LINENO"; then : 15891 eval $cacheid=yes 15892else 15893 eval $cacheid=no 15894fi 15895rm -f core conftest.err conftest.$ac_objext \ 15896 conftest$ac_exeext conftest.$ac_ext 15897fi 15898 15899 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901 15902 eval supported=\$$cacheid 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15904$as_echo "$supported" >&6; } 15905 if test "$supported" = "yes" ; then 15906 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15907 found="yes" 15908 fi 15909 fi 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925xorg_testset_save_CFLAGS="$CFLAGS" 15926 15927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15932 $as_echo_n "(cached) " >&6 15933else 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936int i; 15937_ACEOF 15938if ac_fn_c_try_compile "$LINENO"; then : 15939 xorg_cv_cc_flag_unknown_warning_option=yes 15940else 15941 xorg_cv_cc_flag_unknown_warning_option=no 15942fi 15943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15944fi 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15948 CFLAGS="$xorg_testset_save_CFLAGS" 15949fi 15950 15951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15954 fi 15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15962/* end confdefs.h. */ 15963int i; 15964_ACEOF 15965if ac_fn_c_try_compile "$LINENO"; then : 15966 xorg_cv_cc_flag_unused_command_line_argument=yes 15967else 15968 xorg_cv_cc_flag_unused_command_line_argument=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15971fi 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976fi 15977 15978found="no" 15979 15980 if test $found = "no" ; then 15981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15983 fi 15984 15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15987 fi 15988 15989 CFLAGS="$CFLAGS -Werror=array-bounds" 15990 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15992$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15993 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15994 if eval \${$cacheid+:} false; then : 15995 $as_echo_n "(cached) " >&6 15996else 15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15998/* end confdefs.h. */ 15999int i; 16000int 16001main () 16002{ 16003 16004 ; 16005 return 0; 16006} 16007_ACEOF 16008if ac_fn_c_try_link "$LINENO"; then : 16009 eval $cacheid=yes 16010else 16011 eval $cacheid=no 16012fi 16013rm -f core conftest.err conftest.$ac_objext \ 16014 conftest$ac_exeext conftest.$ac_ext 16015fi 16016 16017 16018 CFLAGS="$xorg_testset_save_CFLAGS" 16019 16020 eval supported=\$$cacheid 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16022$as_echo "$supported" >&6; } 16023 if test "$supported" = "yes" ; then 16024 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16025 found="yes" 16026 fi 16027 fi 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043xorg_testset_save_CFLAGS="$CFLAGS" 16044 16045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16050 $as_echo_n "(cached) " >&6 16051else 16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16053/* end confdefs.h. */ 16054int i; 16055_ACEOF 16056if ac_fn_c_try_compile "$LINENO"; then : 16057 xorg_cv_cc_flag_unknown_warning_option=yes 16058else 16059 xorg_cv_cc_flag_unknown_warning_option=no 16060fi 16061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16062fi 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16066 CFLAGS="$xorg_testset_save_CFLAGS" 16067fi 16068 16069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16072 fi 16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16077 $as_echo_n "(cached) " >&6 16078else 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081int i; 16082_ACEOF 16083if ac_fn_c_try_compile "$LINENO"; then : 16084 xorg_cv_cc_flag_unused_command_line_argument=yes 16085else 16086 xorg_cv_cc_flag_unused_command_line_argument=no 16087fi 16088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16089fi 16090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16093 CFLAGS="$xorg_testset_save_CFLAGS" 16094fi 16095 16096found="no" 16097 16098 if test $found = "no" ; then 16099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16101 fi 16102 16103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16105 fi 16106 16107 CFLAGS="$CFLAGS -Werror=write-strings" 16108 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16110$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16111 cacheid=xorg_cv_cc_flag__Werror_write_strings 16112 if eval \${$cacheid+:} false; then : 16113 $as_echo_n "(cached) " >&6 16114else 16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16116/* end confdefs.h. */ 16117int i; 16118int 16119main () 16120{ 16121 16122 ; 16123 return 0; 16124} 16125_ACEOF 16126if ac_fn_c_try_link "$LINENO"; then : 16127 eval $cacheid=yes 16128else 16129 eval $cacheid=no 16130fi 16131rm -f core conftest.err conftest.$ac_objext \ 16132 conftest$ac_exeext conftest.$ac_ext 16133fi 16134 16135 16136 CFLAGS="$xorg_testset_save_CFLAGS" 16137 16138 eval supported=\$$cacheid 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16140$as_echo "$supported" >&6; } 16141 if test "$supported" = "yes" ; then 16142 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16143 found="yes" 16144 fi 16145 fi 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161xorg_testset_save_CFLAGS="$CFLAGS" 16162 16163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16168 $as_echo_n "(cached) " >&6 16169else 16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16171/* end confdefs.h. */ 16172int i; 16173_ACEOF 16174if ac_fn_c_try_compile "$LINENO"; then : 16175 xorg_cv_cc_flag_unknown_warning_option=yes 16176else 16177 xorg_cv_cc_flag_unknown_warning_option=no 16178fi 16179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16180fi 16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16184 CFLAGS="$xorg_testset_save_CFLAGS" 16185fi 16186 16187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16190 fi 16191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199int i; 16200_ACEOF 16201if ac_fn_c_try_compile "$LINENO"; then : 16202 xorg_cv_cc_flag_unused_command_line_argument=yes 16203else 16204 xorg_cv_cc_flag_unused_command_line_argument=no 16205fi 16206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16207fi 16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16211 CFLAGS="$xorg_testset_save_CFLAGS" 16212fi 16213 16214found="no" 16215 16216 if test $found = "no" ; then 16217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16219 fi 16220 16221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16223 fi 16224 16225 CFLAGS="$CFLAGS -Werror=address" 16226 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16228$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16229 cacheid=xorg_cv_cc_flag__Werror_address 16230 if eval \${$cacheid+:} false; then : 16231 $as_echo_n "(cached) " >&6 16232else 16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16234/* end confdefs.h. */ 16235int i; 16236int 16237main () 16238{ 16239 16240 ; 16241 return 0; 16242} 16243_ACEOF 16244if ac_fn_c_try_link "$LINENO"; then : 16245 eval $cacheid=yes 16246else 16247 eval $cacheid=no 16248fi 16249rm -f core conftest.err conftest.$ac_objext \ 16250 conftest$ac_exeext conftest.$ac_ext 16251fi 16252 16253 16254 CFLAGS="$xorg_testset_save_CFLAGS" 16255 16256 eval supported=\$$cacheid 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16258$as_echo "$supported" >&6; } 16259 if test "$supported" = "yes" ; then 16260 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16261 found="yes" 16262 fi 16263 fi 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279xorg_testset_save_CFLAGS="$CFLAGS" 16280 16281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16286 $as_echo_n "(cached) " >&6 16287else 16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16289/* end confdefs.h. */ 16290int i; 16291_ACEOF 16292if ac_fn_c_try_compile "$LINENO"; then : 16293 xorg_cv_cc_flag_unknown_warning_option=yes 16294else 16295 xorg_cv_cc_flag_unknown_warning_option=no 16296fi 16297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16298fi 16299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16302 CFLAGS="$xorg_testset_save_CFLAGS" 16303fi 16304 16305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16308 fi 16309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16313 $as_echo_n "(cached) " >&6 16314else 16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16316/* end confdefs.h. */ 16317int i; 16318_ACEOF 16319if ac_fn_c_try_compile "$LINENO"; then : 16320 xorg_cv_cc_flag_unused_command_line_argument=yes 16321else 16322 xorg_cv_cc_flag_unused_command_line_argument=no 16323fi 16324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16325fi 16326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16329 CFLAGS="$xorg_testset_save_CFLAGS" 16330fi 16331 16332found="no" 16333 16334 if test $found = "no" ; then 16335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16337 fi 16338 16339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16341 fi 16342 16343 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16344 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16346$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16347 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16348 if eval \${$cacheid+:} false; then : 16349 $as_echo_n "(cached) " >&6 16350else 16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353int i; 16354int 16355main () 16356{ 16357 16358 ; 16359 return 0; 16360} 16361_ACEOF 16362if ac_fn_c_try_link "$LINENO"; then : 16363 eval $cacheid=yes 16364else 16365 eval $cacheid=no 16366fi 16367rm -f core conftest.err conftest.$ac_objext \ 16368 conftest$ac_exeext conftest.$ac_ext 16369fi 16370 16371 16372 CFLAGS="$xorg_testset_save_CFLAGS" 16373 16374 eval supported=\$$cacheid 16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16376$as_echo "$supported" >&6; } 16377 if test "$supported" = "yes" ; then 16378 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16379 found="yes" 16380 fi 16381 fi 16382 16383 if test $found = "no" ; then 16384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16386 fi 16387 16388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16390 fi 16391 16392 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16393 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16395$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16396 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16397 if eval \${$cacheid+:} false; then : 16398 $as_echo_n "(cached) " >&6 16399else 16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402int i; 16403int 16404main () 16405{ 16406 16407 ; 16408 return 0; 16409} 16410_ACEOF 16411if ac_fn_c_try_link "$LINENO"; then : 16412 eval $cacheid=yes 16413else 16414 eval $cacheid=no 16415fi 16416rm -f core conftest.err conftest.$ac_objext \ 16417 conftest$ac_exeext conftest.$ac_ext 16418fi 16419 16420 16421 CFLAGS="$xorg_testset_save_CFLAGS" 16422 16423 eval supported=\$$cacheid 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16425$as_echo "$supported" >&6; } 16426 if test "$supported" = "yes" ; then 16427 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16428 found="yes" 16429 fi 16430 fi 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446xorg_testset_save_CFLAGS="$CFLAGS" 16447 16448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16453 $as_echo_n "(cached) " >&6 16454else 16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457int i; 16458_ACEOF 16459if ac_fn_c_try_compile "$LINENO"; then : 16460 xorg_cv_cc_flag_unknown_warning_option=yes 16461else 16462 xorg_cv_cc_flag_unknown_warning_option=no 16463fi 16464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16465fi 16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16469 CFLAGS="$xorg_testset_save_CFLAGS" 16470fi 16471 16472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16480 $as_echo_n "(cached) " >&6 16481else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484int i; 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 xorg_cv_cc_flag_unused_command_line_argument=yes 16488else 16489 xorg_cv_cc_flag_unused_command_line_argument=no 16490fi 16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16492fi 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16496 CFLAGS="$xorg_testset_save_CFLAGS" 16497fi 16498 16499found="no" 16500 16501 if test $found = "no" ; then 16502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16504 fi 16505 16506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16508 fi 16509 16510 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16511 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16513$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16514 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16515 if eval \${$cacheid+:} false; then : 16516 $as_echo_n "(cached) " >&6 16517else 16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16519/* end confdefs.h. */ 16520int i; 16521int 16522main () 16523{ 16524 16525 ; 16526 return 0; 16527} 16528_ACEOF 16529if ac_fn_c_try_link "$LINENO"; then : 16530 eval $cacheid=yes 16531else 16532 eval $cacheid=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext \ 16535 conftest$ac_exeext conftest.$ac_ext 16536fi 16537 16538 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540 16541 eval supported=\$$cacheid 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16543$as_echo "$supported" >&6; } 16544 if test "$supported" = "yes" ; then 16545 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16546 found="yes" 16547 fi 16548 fi 16549 16550 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16551else 16552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 16553$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567xorg_testset_save_CFLAGS="$CFLAGS" 16568 16569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16574 $as_echo_n "(cached) " >&6 16575else 16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16577/* end confdefs.h. */ 16578int i; 16579_ACEOF 16580if ac_fn_c_try_compile "$LINENO"; then : 16581 xorg_cv_cc_flag_unknown_warning_option=yes 16582else 16583 xorg_cv_cc_flag_unknown_warning_option=no 16584fi 16585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16586fi 16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16590 CFLAGS="$xorg_testset_save_CFLAGS" 16591fi 16592 16593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16596 fi 16597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16601 $as_echo_n "(cached) " >&6 16602else 16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16604/* end confdefs.h. */ 16605int i; 16606_ACEOF 16607if ac_fn_c_try_compile "$LINENO"; then : 16608 xorg_cv_cc_flag_unused_command_line_argument=yes 16609else 16610 xorg_cv_cc_flag_unused_command_line_argument=no 16611fi 16612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16613fi 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16617 CFLAGS="$xorg_testset_save_CFLAGS" 16618fi 16619 16620found="no" 16621 16622 if test $found = "no" ; then 16623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16625 fi 16626 16627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16629 fi 16630 16631 CFLAGS="$CFLAGS -Wimplicit" 16632 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16634$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16635 cacheid=xorg_cv_cc_flag__Wimplicit 16636 if eval \${$cacheid+:} false; then : 16637 $as_echo_n "(cached) " >&6 16638else 16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16640/* end confdefs.h. */ 16641int i; 16642int 16643main () 16644{ 16645 16646 ; 16647 return 0; 16648} 16649_ACEOF 16650if ac_fn_c_try_link "$LINENO"; then : 16651 eval $cacheid=yes 16652else 16653 eval $cacheid=no 16654fi 16655rm -f core conftest.err conftest.$ac_objext \ 16656 conftest$ac_exeext conftest.$ac_ext 16657fi 16658 16659 16660 CFLAGS="$xorg_testset_save_CFLAGS" 16661 16662 eval supported=\$$cacheid 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16664$as_echo "$supported" >&6; } 16665 if test "$supported" = "yes" ; then 16666 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16667 found="yes" 16668 fi 16669 fi 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685xorg_testset_save_CFLAGS="$CFLAGS" 16686 16687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16692 $as_echo_n "(cached) " >&6 16693else 16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16695/* end confdefs.h. */ 16696int i; 16697_ACEOF 16698if ac_fn_c_try_compile "$LINENO"; then : 16699 xorg_cv_cc_flag_unknown_warning_option=yes 16700else 16701 xorg_cv_cc_flag_unknown_warning_option=no 16702fi 16703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16704fi 16705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16708 CFLAGS="$xorg_testset_save_CFLAGS" 16709fi 16710 16711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16714 fi 16715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16719 $as_echo_n "(cached) " >&6 16720else 16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16722/* end confdefs.h. */ 16723int i; 16724_ACEOF 16725if ac_fn_c_try_compile "$LINENO"; then : 16726 xorg_cv_cc_flag_unused_command_line_argument=yes 16727else 16728 xorg_cv_cc_flag_unused_command_line_argument=no 16729fi 16730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16731fi 16732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16735 CFLAGS="$xorg_testset_save_CFLAGS" 16736fi 16737 16738found="no" 16739 16740 if test $found = "no" ; then 16741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16743 fi 16744 16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16747 fi 16748 16749 CFLAGS="$CFLAGS -Wnonnull" 16750 16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16752$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16753 cacheid=xorg_cv_cc_flag__Wnonnull 16754 if eval \${$cacheid+:} false; then : 16755 $as_echo_n "(cached) " >&6 16756else 16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16758/* end confdefs.h. */ 16759int i; 16760int 16761main () 16762{ 16763 16764 ; 16765 return 0; 16766} 16767_ACEOF 16768if ac_fn_c_try_link "$LINENO"; then : 16769 eval $cacheid=yes 16770else 16771 eval $cacheid=no 16772fi 16773rm -f core conftest.err conftest.$ac_objext \ 16774 conftest$ac_exeext conftest.$ac_ext 16775fi 16776 16777 16778 CFLAGS="$xorg_testset_save_CFLAGS" 16779 16780 eval supported=\$$cacheid 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16782$as_echo "$supported" >&6; } 16783 if test "$supported" = "yes" ; then 16784 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16785 found="yes" 16786 fi 16787 fi 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803xorg_testset_save_CFLAGS="$CFLAGS" 16804 16805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16810 $as_echo_n "(cached) " >&6 16811else 16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16813/* end confdefs.h. */ 16814int i; 16815_ACEOF 16816if ac_fn_c_try_compile "$LINENO"; then : 16817 xorg_cv_cc_flag_unknown_warning_option=yes 16818else 16819 xorg_cv_cc_flag_unknown_warning_option=no 16820fi 16821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16822fi 16823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16826 CFLAGS="$xorg_testset_save_CFLAGS" 16827fi 16828 16829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16832 fi 16833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16837 $as_echo_n "(cached) " >&6 16838else 16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16840/* end confdefs.h. */ 16841int i; 16842_ACEOF 16843if ac_fn_c_try_compile "$LINENO"; then : 16844 xorg_cv_cc_flag_unused_command_line_argument=yes 16845else 16846 xorg_cv_cc_flag_unused_command_line_argument=no 16847fi 16848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16849fi 16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16853 CFLAGS="$xorg_testset_save_CFLAGS" 16854fi 16855 16856found="no" 16857 16858 if test $found = "no" ; then 16859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16861 fi 16862 16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16865 fi 16866 16867 CFLAGS="$CFLAGS -Winit-self" 16868 16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16870$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16871 cacheid=xorg_cv_cc_flag__Winit_self 16872 if eval \${$cacheid+:} false; then : 16873 $as_echo_n "(cached) " >&6 16874else 16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16876/* end confdefs.h. */ 16877int i; 16878int 16879main () 16880{ 16881 16882 ; 16883 return 0; 16884} 16885_ACEOF 16886if ac_fn_c_try_link "$LINENO"; then : 16887 eval $cacheid=yes 16888else 16889 eval $cacheid=no 16890fi 16891rm -f core conftest.err conftest.$ac_objext \ 16892 conftest$ac_exeext conftest.$ac_ext 16893fi 16894 16895 16896 CFLAGS="$xorg_testset_save_CFLAGS" 16897 16898 eval supported=\$$cacheid 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16900$as_echo "$supported" >&6; } 16901 if test "$supported" = "yes" ; then 16902 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16903 found="yes" 16904 fi 16905 fi 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921xorg_testset_save_CFLAGS="$CFLAGS" 16922 16923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16928 $as_echo_n "(cached) " >&6 16929else 16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16931/* end confdefs.h. */ 16932int i; 16933_ACEOF 16934if ac_fn_c_try_compile "$LINENO"; then : 16935 xorg_cv_cc_flag_unknown_warning_option=yes 16936else 16937 xorg_cv_cc_flag_unknown_warning_option=no 16938fi 16939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16940fi 16941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16944 CFLAGS="$xorg_testset_save_CFLAGS" 16945fi 16946 16947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16950 fi 16951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16955 $as_echo_n "(cached) " >&6 16956else 16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958/* end confdefs.h. */ 16959int i; 16960_ACEOF 16961if ac_fn_c_try_compile "$LINENO"; then : 16962 xorg_cv_cc_flag_unused_command_line_argument=yes 16963else 16964 xorg_cv_cc_flag_unused_command_line_argument=no 16965fi 16966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16967fi 16968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16971 CFLAGS="$xorg_testset_save_CFLAGS" 16972fi 16973 16974found="no" 16975 16976 if test $found = "no" ; then 16977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16979 fi 16980 16981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16983 fi 16984 16985 CFLAGS="$CFLAGS -Wmain" 16986 16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16988$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16989 cacheid=xorg_cv_cc_flag__Wmain 16990 if eval \${$cacheid+:} false; then : 16991 $as_echo_n "(cached) " >&6 16992else 16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16994/* end confdefs.h. */ 16995int i; 16996int 16997main () 16998{ 16999 17000 ; 17001 return 0; 17002} 17003_ACEOF 17004if ac_fn_c_try_link "$LINENO"; then : 17005 eval $cacheid=yes 17006else 17007 eval $cacheid=no 17008fi 17009rm -f core conftest.err conftest.$ac_objext \ 17010 conftest$ac_exeext conftest.$ac_ext 17011fi 17012 17013 17014 CFLAGS="$xorg_testset_save_CFLAGS" 17015 17016 eval supported=\$$cacheid 17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17018$as_echo "$supported" >&6; } 17019 if test "$supported" = "yes" ; then 17020 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17021 found="yes" 17022 fi 17023 fi 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039xorg_testset_save_CFLAGS="$CFLAGS" 17040 17041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17046 $as_echo_n "(cached) " >&6 17047else 17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17049/* end confdefs.h. */ 17050int i; 17051_ACEOF 17052if ac_fn_c_try_compile "$LINENO"; then : 17053 xorg_cv_cc_flag_unknown_warning_option=yes 17054else 17055 xorg_cv_cc_flag_unknown_warning_option=no 17056fi 17057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17058fi 17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17062 CFLAGS="$xorg_testset_save_CFLAGS" 17063fi 17064 17065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17068 fi 17069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17073 $as_echo_n "(cached) " >&6 17074else 17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17076/* end confdefs.h. */ 17077int i; 17078_ACEOF 17079if ac_fn_c_try_compile "$LINENO"; then : 17080 xorg_cv_cc_flag_unused_command_line_argument=yes 17081else 17082 xorg_cv_cc_flag_unused_command_line_argument=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17085fi 17086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090fi 17091 17092found="no" 17093 17094 if test $found = "no" ; then 17095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17097 fi 17098 17099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17101 fi 17102 17103 CFLAGS="$CFLAGS -Wmissing-braces" 17104 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17106$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17107 cacheid=xorg_cv_cc_flag__Wmissing_braces 17108 if eval \${$cacheid+:} false; then : 17109 $as_echo_n "(cached) " >&6 17110else 17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17112/* end confdefs.h. */ 17113int i; 17114int 17115main () 17116{ 17117 17118 ; 17119 return 0; 17120} 17121_ACEOF 17122if ac_fn_c_try_link "$LINENO"; then : 17123 eval $cacheid=yes 17124else 17125 eval $cacheid=no 17126fi 17127rm -f core conftest.err conftest.$ac_objext \ 17128 conftest$ac_exeext conftest.$ac_ext 17129fi 17130 17131 17132 CFLAGS="$xorg_testset_save_CFLAGS" 17133 17134 eval supported=\$$cacheid 17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17136$as_echo "$supported" >&6; } 17137 if test "$supported" = "yes" ; then 17138 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17139 found="yes" 17140 fi 17141 fi 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157xorg_testset_save_CFLAGS="$CFLAGS" 17158 17159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17164 $as_echo_n "(cached) " >&6 17165else 17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17167/* end confdefs.h. */ 17168int i; 17169_ACEOF 17170if ac_fn_c_try_compile "$LINENO"; then : 17171 xorg_cv_cc_flag_unknown_warning_option=yes 17172else 17173 xorg_cv_cc_flag_unknown_warning_option=no 17174fi 17175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17176fi 17177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17180 CFLAGS="$xorg_testset_save_CFLAGS" 17181fi 17182 17183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17186 fi 17187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17191 $as_echo_n "(cached) " >&6 17192else 17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17194/* end confdefs.h. */ 17195int i; 17196_ACEOF 17197if ac_fn_c_try_compile "$LINENO"; then : 17198 xorg_cv_cc_flag_unused_command_line_argument=yes 17199else 17200 xorg_cv_cc_flag_unused_command_line_argument=no 17201fi 17202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17203fi 17204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17207 CFLAGS="$xorg_testset_save_CFLAGS" 17208fi 17209 17210found="no" 17211 17212 if test $found = "no" ; then 17213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17215 fi 17216 17217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17219 fi 17220 17221 CFLAGS="$CFLAGS -Wsequence-point" 17222 17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17224$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17225 cacheid=xorg_cv_cc_flag__Wsequence_point 17226 if eval \${$cacheid+:} false; then : 17227 $as_echo_n "(cached) " >&6 17228else 17229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17230/* end confdefs.h. */ 17231int i; 17232int 17233main () 17234{ 17235 17236 ; 17237 return 0; 17238} 17239_ACEOF 17240if ac_fn_c_try_link "$LINENO"; then : 17241 eval $cacheid=yes 17242else 17243 eval $cacheid=no 17244fi 17245rm -f core conftest.err conftest.$ac_objext \ 17246 conftest$ac_exeext conftest.$ac_ext 17247fi 17248 17249 17250 CFLAGS="$xorg_testset_save_CFLAGS" 17251 17252 eval supported=\$$cacheid 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17254$as_echo "$supported" >&6; } 17255 if test "$supported" = "yes" ; then 17256 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17257 found="yes" 17258 fi 17259 fi 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275xorg_testset_save_CFLAGS="$CFLAGS" 17276 17277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17282 $as_echo_n "(cached) " >&6 17283else 17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285/* end confdefs.h. */ 17286int i; 17287_ACEOF 17288if ac_fn_c_try_compile "$LINENO"; then : 17289 xorg_cv_cc_flag_unknown_warning_option=yes 17290else 17291 xorg_cv_cc_flag_unknown_warning_option=no 17292fi 17293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17294fi 17295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17298 CFLAGS="$xorg_testset_save_CFLAGS" 17299fi 17300 17301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17304 fi 17305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17309 $as_echo_n "(cached) " >&6 17310else 17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17312/* end confdefs.h. */ 17313int i; 17314_ACEOF 17315if ac_fn_c_try_compile "$LINENO"; then : 17316 xorg_cv_cc_flag_unused_command_line_argument=yes 17317else 17318 xorg_cv_cc_flag_unused_command_line_argument=no 17319fi 17320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17321fi 17322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17325 CFLAGS="$xorg_testset_save_CFLAGS" 17326fi 17327 17328found="no" 17329 17330 if test $found = "no" ; then 17331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17333 fi 17334 17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17337 fi 17338 17339 CFLAGS="$CFLAGS -Wreturn-type" 17340 17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17342$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17343 cacheid=xorg_cv_cc_flag__Wreturn_type 17344 if eval \${$cacheid+:} false; then : 17345 $as_echo_n "(cached) " >&6 17346else 17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17348/* end confdefs.h. */ 17349int i; 17350int 17351main () 17352{ 17353 17354 ; 17355 return 0; 17356} 17357_ACEOF 17358if ac_fn_c_try_link "$LINENO"; then : 17359 eval $cacheid=yes 17360else 17361 eval $cacheid=no 17362fi 17363rm -f core conftest.err conftest.$ac_objext \ 17364 conftest$ac_exeext conftest.$ac_ext 17365fi 17366 17367 17368 CFLAGS="$xorg_testset_save_CFLAGS" 17369 17370 eval supported=\$$cacheid 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17372$as_echo "$supported" >&6; } 17373 if test "$supported" = "yes" ; then 17374 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17375 found="yes" 17376 fi 17377 fi 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393xorg_testset_save_CFLAGS="$CFLAGS" 17394 17395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401else 17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17403/* end confdefs.h. */ 17404int i; 17405_ACEOF 17406if ac_fn_c_try_compile "$LINENO"; then : 17407 xorg_cv_cc_flag_unknown_warning_option=yes 17408else 17409 xorg_cv_cc_flag_unknown_warning_option=no 17410fi 17411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17412fi 17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17416 CFLAGS="$xorg_testset_save_CFLAGS" 17417fi 17418 17419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17422 fi 17423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17427 $as_echo_n "(cached) " >&6 17428else 17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17430/* end confdefs.h. */ 17431int i; 17432_ACEOF 17433if ac_fn_c_try_compile "$LINENO"; then : 17434 xorg_cv_cc_flag_unused_command_line_argument=yes 17435else 17436 xorg_cv_cc_flag_unused_command_line_argument=no 17437fi 17438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17439fi 17440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17443 CFLAGS="$xorg_testset_save_CFLAGS" 17444fi 17445 17446found="no" 17447 17448 if test $found = "no" ; then 17449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17451 fi 17452 17453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17455 fi 17456 17457 CFLAGS="$CFLAGS -Wtrigraphs" 17458 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17460$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17461 cacheid=xorg_cv_cc_flag__Wtrigraphs 17462 if eval \${$cacheid+:} false; then : 17463 $as_echo_n "(cached) " >&6 17464else 17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17466/* end confdefs.h. */ 17467int i; 17468int 17469main () 17470{ 17471 17472 ; 17473 return 0; 17474} 17475_ACEOF 17476if ac_fn_c_try_link "$LINENO"; then : 17477 eval $cacheid=yes 17478else 17479 eval $cacheid=no 17480fi 17481rm -f core conftest.err conftest.$ac_objext \ 17482 conftest$ac_exeext conftest.$ac_ext 17483fi 17484 17485 17486 CFLAGS="$xorg_testset_save_CFLAGS" 17487 17488 eval supported=\$$cacheid 17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17490$as_echo "$supported" >&6; } 17491 if test "$supported" = "yes" ; then 17492 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17493 found="yes" 17494 fi 17495 fi 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511xorg_testset_save_CFLAGS="$CFLAGS" 17512 17513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17518 $as_echo_n "(cached) " >&6 17519else 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521/* end confdefs.h. */ 17522int i; 17523_ACEOF 17524if ac_fn_c_try_compile "$LINENO"; then : 17525 xorg_cv_cc_flag_unknown_warning_option=yes 17526else 17527 xorg_cv_cc_flag_unknown_warning_option=no 17528fi 17529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17530fi 17531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17534 CFLAGS="$xorg_testset_save_CFLAGS" 17535fi 17536 17537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17540 fi 17541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17545 $as_echo_n "(cached) " >&6 17546else 17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17548/* end confdefs.h. */ 17549int i; 17550_ACEOF 17551if ac_fn_c_try_compile "$LINENO"; then : 17552 xorg_cv_cc_flag_unused_command_line_argument=yes 17553else 17554 xorg_cv_cc_flag_unused_command_line_argument=no 17555fi 17556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17557fi 17558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17561 CFLAGS="$xorg_testset_save_CFLAGS" 17562fi 17563 17564found="no" 17565 17566 if test $found = "no" ; then 17567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17569 fi 17570 17571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17573 fi 17574 17575 CFLAGS="$CFLAGS -Warray-bounds" 17576 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17578$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17579 cacheid=xorg_cv_cc_flag__Warray_bounds 17580 if eval \${$cacheid+:} false; then : 17581 $as_echo_n "(cached) " >&6 17582else 17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17584/* end confdefs.h. */ 17585int i; 17586int 17587main () 17588{ 17589 17590 ; 17591 return 0; 17592} 17593_ACEOF 17594if ac_fn_c_try_link "$LINENO"; then : 17595 eval $cacheid=yes 17596else 17597 eval $cacheid=no 17598fi 17599rm -f core conftest.err conftest.$ac_objext \ 17600 conftest$ac_exeext conftest.$ac_ext 17601fi 17602 17603 17604 CFLAGS="$xorg_testset_save_CFLAGS" 17605 17606 eval supported=\$$cacheid 17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17608$as_echo "$supported" >&6; } 17609 if test "$supported" = "yes" ; then 17610 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17611 found="yes" 17612 fi 17613 fi 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629xorg_testset_save_CFLAGS="$CFLAGS" 17630 17631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640int i; 17641_ACEOF 17642if ac_fn_c_try_compile "$LINENO"; then : 17643 xorg_cv_cc_flag_unknown_warning_option=yes 17644else 17645 xorg_cv_cc_flag_unknown_warning_option=no 17646fi 17647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17648fi 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17652 CFLAGS="$xorg_testset_save_CFLAGS" 17653fi 17654 17655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17658 fi 17659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17663 $as_echo_n "(cached) " >&6 17664else 17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666/* end confdefs.h. */ 17667int i; 17668_ACEOF 17669if ac_fn_c_try_compile "$LINENO"; then : 17670 xorg_cv_cc_flag_unused_command_line_argument=yes 17671else 17672 xorg_cv_cc_flag_unused_command_line_argument=no 17673fi 17674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17675fi 17676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17679 CFLAGS="$xorg_testset_save_CFLAGS" 17680fi 17681 17682found="no" 17683 17684 if test $found = "no" ; then 17685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17687 fi 17688 17689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17691 fi 17692 17693 CFLAGS="$CFLAGS -Wwrite-strings" 17694 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17696$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17697 cacheid=xorg_cv_cc_flag__Wwrite_strings 17698 if eval \${$cacheid+:} false; then : 17699 $as_echo_n "(cached) " >&6 17700else 17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17702/* end confdefs.h. */ 17703int i; 17704int 17705main () 17706{ 17707 17708 ; 17709 return 0; 17710} 17711_ACEOF 17712if ac_fn_c_try_link "$LINENO"; then : 17713 eval $cacheid=yes 17714else 17715 eval $cacheid=no 17716fi 17717rm -f core conftest.err conftest.$ac_objext \ 17718 conftest$ac_exeext conftest.$ac_ext 17719fi 17720 17721 17722 CFLAGS="$xorg_testset_save_CFLAGS" 17723 17724 eval supported=\$$cacheid 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17726$as_echo "$supported" >&6; } 17727 if test "$supported" = "yes" ; then 17728 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17729 found="yes" 17730 fi 17731 fi 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747xorg_testset_save_CFLAGS="$CFLAGS" 17748 17749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17754 $as_echo_n "(cached) " >&6 17755else 17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758int i; 17759_ACEOF 17760if ac_fn_c_try_compile "$LINENO"; then : 17761 xorg_cv_cc_flag_unknown_warning_option=yes 17762else 17763 xorg_cv_cc_flag_unknown_warning_option=no 17764fi 17765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17766fi 17767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17770 CFLAGS="$xorg_testset_save_CFLAGS" 17771fi 17772 17773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17776 fi 17777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17781 $as_echo_n "(cached) " >&6 17782else 17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17784/* end confdefs.h. */ 17785int i; 17786_ACEOF 17787if ac_fn_c_try_compile "$LINENO"; then : 17788 xorg_cv_cc_flag_unused_command_line_argument=yes 17789else 17790 xorg_cv_cc_flag_unused_command_line_argument=no 17791fi 17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17793fi 17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17797 CFLAGS="$xorg_testset_save_CFLAGS" 17798fi 17799 17800found="no" 17801 17802 if test $found = "no" ; then 17803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17805 fi 17806 17807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17809 fi 17810 17811 CFLAGS="$CFLAGS -Waddress" 17812 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17814$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17815 cacheid=xorg_cv_cc_flag__Waddress 17816 if eval \${$cacheid+:} false; then : 17817 $as_echo_n "(cached) " >&6 17818else 17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17820/* end confdefs.h. */ 17821int i; 17822int 17823main () 17824{ 17825 17826 ; 17827 return 0; 17828} 17829_ACEOF 17830if ac_fn_c_try_link "$LINENO"; then : 17831 eval $cacheid=yes 17832else 17833 eval $cacheid=no 17834fi 17835rm -f core conftest.err conftest.$ac_objext \ 17836 conftest$ac_exeext conftest.$ac_ext 17837fi 17838 17839 17840 CFLAGS="$xorg_testset_save_CFLAGS" 17841 17842 eval supported=\$$cacheid 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17844$as_echo "$supported" >&6; } 17845 if test "$supported" = "yes" ; then 17846 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17847 found="yes" 17848 fi 17849 fi 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865xorg_testset_save_CFLAGS="$CFLAGS" 17866 17867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17872 $as_echo_n "(cached) " >&6 17873else 17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17875/* end confdefs.h. */ 17876int i; 17877_ACEOF 17878if ac_fn_c_try_compile "$LINENO"; then : 17879 xorg_cv_cc_flag_unknown_warning_option=yes 17880else 17881 xorg_cv_cc_flag_unknown_warning_option=no 17882fi 17883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17884fi 17885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17888 CFLAGS="$xorg_testset_save_CFLAGS" 17889fi 17890 17891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17894 fi 17895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17899 $as_echo_n "(cached) " >&6 17900else 17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17902/* end confdefs.h. */ 17903int i; 17904_ACEOF 17905if ac_fn_c_try_compile "$LINENO"; then : 17906 xorg_cv_cc_flag_unused_command_line_argument=yes 17907else 17908 xorg_cv_cc_flag_unused_command_line_argument=no 17909fi 17910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17911fi 17912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17915 CFLAGS="$xorg_testset_save_CFLAGS" 17916fi 17917 17918found="no" 17919 17920 if test $found = "no" ; then 17921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17923 fi 17924 17925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17927 fi 17928 17929 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17930 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17932$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17933 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17934 if eval \${$cacheid+:} false; then : 17935 $as_echo_n "(cached) " >&6 17936else 17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17938/* end confdefs.h. */ 17939int i; 17940int 17941main () 17942{ 17943 17944 ; 17945 return 0; 17946} 17947_ACEOF 17948if ac_fn_c_try_link "$LINENO"; then : 17949 eval $cacheid=yes 17950else 17951 eval $cacheid=no 17952fi 17953rm -f core conftest.err conftest.$ac_objext \ 17954 conftest$ac_exeext conftest.$ac_ext 17955fi 17956 17957 17958 CFLAGS="$xorg_testset_save_CFLAGS" 17959 17960 eval supported=\$$cacheid 17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17962$as_echo "$supported" >&6; } 17963 if test "$supported" = "yes" ; then 17964 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17965 found="yes" 17966 fi 17967 fi 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983xorg_testset_save_CFLAGS="$CFLAGS" 17984 17985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17990 $as_echo_n "(cached) " >&6 17991else 17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17993/* end confdefs.h. */ 17994int i; 17995_ACEOF 17996if ac_fn_c_try_compile "$LINENO"; then : 17997 xorg_cv_cc_flag_unknown_warning_option=yes 17998else 17999 xorg_cv_cc_flag_unknown_warning_option=no 18000fi 18001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18002fi 18003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18006 CFLAGS="$xorg_testset_save_CFLAGS" 18007fi 18008 18009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18012 fi 18013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18017 $as_echo_n "(cached) " >&6 18018else 18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18020/* end confdefs.h. */ 18021int i; 18022_ACEOF 18023if ac_fn_c_try_compile "$LINENO"; then : 18024 xorg_cv_cc_flag_unused_command_line_argument=yes 18025else 18026 xorg_cv_cc_flag_unused_command_line_argument=no 18027fi 18028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18029fi 18030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18033 CFLAGS="$xorg_testset_save_CFLAGS" 18034fi 18035 18036found="no" 18037 18038 if test $found = "no" ; then 18039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18041 fi 18042 18043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18045 fi 18046 18047 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18048 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18050$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18051 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18052 if eval \${$cacheid+:} false; then : 18053 $as_echo_n "(cached) " >&6 18054else 18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18056/* end confdefs.h. */ 18057int i; 18058int 18059main () 18060{ 18061 18062 ; 18063 return 0; 18064} 18065_ACEOF 18066if ac_fn_c_try_link "$LINENO"; then : 18067 eval $cacheid=yes 18068else 18069 eval $cacheid=no 18070fi 18071rm -f core conftest.err conftest.$ac_objext \ 18072 conftest$ac_exeext conftest.$ac_ext 18073fi 18074 18075 18076 CFLAGS="$xorg_testset_save_CFLAGS" 18077 18078 eval supported=\$$cacheid 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18080$as_echo "$supported" >&6; } 18081 if test "$supported" = "yes" ; then 18082 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18083 found="yes" 18084 fi 18085 fi 18086 18087 18088fi 18089 18090 18091 18092 18093 18094 18095 18096 CWARNFLAGS="$BASE_CFLAGS" 18097 if test "x$GCC" = xyes ; then 18098 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18099 fi 18100 18101 18102 18103 18104 18105 18106 18107 18108# Check whether --enable-strict-compilation was given. 18109if test "${enable_strict_compilation+set}" = set; then : 18110 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18111else 18112 STRICT_COMPILE=no 18113fi 18114 18115 18116 18117 18118 18119 18120STRICT_CFLAGS="" 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134xorg_testset_save_CFLAGS="$CFLAGS" 18135 18136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18141 $as_echo_n "(cached) " >&6 18142else 18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18144/* end confdefs.h. */ 18145int i; 18146_ACEOF 18147if ac_fn_c_try_compile "$LINENO"; then : 18148 xorg_cv_cc_flag_unknown_warning_option=yes 18149else 18150 xorg_cv_cc_flag_unknown_warning_option=no 18151fi 18152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18153fi 18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18157 CFLAGS="$xorg_testset_save_CFLAGS" 18158fi 18159 18160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18163 fi 18164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18168 $as_echo_n "(cached) " >&6 18169else 18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18171/* end confdefs.h. */ 18172int i; 18173_ACEOF 18174if ac_fn_c_try_compile "$LINENO"; then : 18175 xorg_cv_cc_flag_unused_command_line_argument=yes 18176else 18177 xorg_cv_cc_flag_unused_command_line_argument=no 18178fi 18179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18180fi 18181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18184 CFLAGS="$xorg_testset_save_CFLAGS" 18185fi 18186 18187found="no" 18188 18189 if test $found = "no" ; then 18190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18192 fi 18193 18194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18196 fi 18197 18198 CFLAGS="$CFLAGS -pedantic" 18199 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18201$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18202 cacheid=xorg_cv_cc_flag__pedantic 18203 if eval \${$cacheid+:} false; then : 18204 $as_echo_n "(cached) " >&6 18205else 18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18207/* end confdefs.h. */ 18208int i; 18209int 18210main () 18211{ 18212 18213 ; 18214 return 0; 18215} 18216_ACEOF 18217if ac_fn_c_try_link "$LINENO"; then : 18218 eval $cacheid=yes 18219else 18220 eval $cacheid=no 18221fi 18222rm -f core conftest.err conftest.$ac_objext \ 18223 conftest$ac_exeext conftest.$ac_ext 18224fi 18225 18226 18227 CFLAGS="$xorg_testset_save_CFLAGS" 18228 18229 eval supported=\$$cacheid 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18231$as_echo "$supported" >&6; } 18232 if test "$supported" = "yes" ; then 18233 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18234 found="yes" 18235 fi 18236 fi 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252xorg_testset_save_CFLAGS="$CFLAGS" 18253 18254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18259 $as_echo_n "(cached) " >&6 18260else 18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18262/* end confdefs.h. */ 18263int i; 18264_ACEOF 18265if ac_fn_c_try_compile "$LINENO"; then : 18266 xorg_cv_cc_flag_unknown_warning_option=yes 18267else 18268 xorg_cv_cc_flag_unknown_warning_option=no 18269fi 18270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18271fi 18272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18275 CFLAGS="$xorg_testset_save_CFLAGS" 18276fi 18277 18278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18281 fi 18282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18286 $as_echo_n "(cached) " >&6 18287else 18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18289/* end confdefs.h. */ 18290int i; 18291_ACEOF 18292if ac_fn_c_try_compile "$LINENO"; then : 18293 xorg_cv_cc_flag_unused_command_line_argument=yes 18294else 18295 xorg_cv_cc_flag_unused_command_line_argument=no 18296fi 18297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18298fi 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18302 CFLAGS="$xorg_testset_save_CFLAGS" 18303fi 18304 18305found="no" 18306 18307 if test $found = "no" ; then 18308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18310 fi 18311 18312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18314 fi 18315 18316 CFLAGS="$CFLAGS -Werror" 18317 18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18319$as_echo_n "checking if $CC supports -Werror... " >&6; } 18320 cacheid=xorg_cv_cc_flag__Werror 18321 if eval \${$cacheid+:} false; then : 18322 $as_echo_n "(cached) " >&6 18323else 18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18325/* end confdefs.h. */ 18326int i; 18327int 18328main () 18329{ 18330 18331 ; 18332 return 0; 18333} 18334_ACEOF 18335if ac_fn_c_try_link "$LINENO"; then : 18336 eval $cacheid=yes 18337else 18338 eval $cacheid=no 18339fi 18340rm -f core conftest.err conftest.$ac_objext \ 18341 conftest$ac_exeext conftest.$ac_ext 18342fi 18343 18344 18345 CFLAGS="$xorg_testset_save_CFLAGS" 18346 18347 eval supported=\$$cacheid 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18349$as_echo "$supported" >&6; } 18350 if test "$supported" = "yes" ; then 18351 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18352 found="yes" 18353 fi 18354 fi 18355 18356 if test $found = "no" ; then 18357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18359 fi 18360 18361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18363 fi 18364 18365 CFLAGS="$CFLAGS -errwarn" 18366 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18368$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18369 cacheid=xorg_cv_cc_flag__errwarn 18370 if eval \${$cacheid+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372else 18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18374/* end confdefs.h. */ 18375int i; 18376int 18377main () 18378{ 18379 18380 ; 18381 return 0; 18382} 18383_ACEOF 18384if ac_fn_c_try_link "$LINENO"; then : 18385 eval $cacheid=yes 18386else 18387 eval $cacheid=no 18388fi 18389rm -f core conftest.err conftest.$ac_objext \ 18390 conftest$ac_exeext conftest.$ac_ext 18391fi 18392 18393 18394 CFLAGS="$xorg_testset_save_CFLAGS" 18395 18396 eval supported=\$$cacheid 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18398$as_echo "$supported" >&6; } 18399 if test "$supported" = "yes" ; then 18400 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18401 found="yes" 18402 fi 18403 fi 18404 18405 18406 18407# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18408# activate it with -Werror, so we add it here explicitly. 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422xorg_testset_save_CFLAGS="$CFLAGS" 18423 18424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18429 $as_echo_n "(cached) " >&6 18430else 18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18432/* end confdefs.h. */ 18433int i; 18434_ACEOF 18435if ac_fn_c_try_compile "$LINENO"; then : 18436 xorg_cv_cc_flag_unknown_warning_option=yes 18437else 18438 xorg_cv_cc_flag_unknown_warning_option=no 18439fi 18440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18441fi 18442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18445 CFLAGS="$xorg_testset_save_CFLAGS" 18446fi 18447 18448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18451 fi 18452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18456 $as_echo_n "(cached) " >&6 18457else 18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18459/* end confdefs.h. */ 18460int i; 18461_ACEOF 18462if ac_fn_c_try_compile "$LINENO"; then : 18463 xorg_cv_cc_flag_unused_command_line_argument=yes 18464else 18465 xorg_cv_cc_flag_unused_command_line_argument=no 18466fi 18467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18468fi 18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18472 CFLAGS="$xorg_testset_save_CFLAGS" 18473fi 18474 18475found="no" 18476 18477 if test $found = "no" ; then 18478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18480 fi 18481 18482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18484 fi 18485 18486 CFLAGS="$CFLAGS -Werror=attributes" 18487 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18489$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18490 cacheid=xorg_cv_cc_flag__Werror_attributes 18491 if eval \${$cacheid+:} false; then : 18492 $as_echo_n "(cached) " >&6 18493else 18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18495/* end confdefs.h. */ 18496int i; 18497int 18498main () 18499{ 18500 18501 ; 18502 return 0; 18503} 18504_ACEOF 18505if ac_fn_c_try_link "$LINENO"; then : 18506 eval $cacheid=yes 18507else 18508 eval $cacheid=no 18509fi 18510rm -f core conftest.err conftest.$ac_objext \ 18511 conftest$ac_exeext conftest.$ac_ext 18512fi 18513 18514 18515 CFLAGS="$xorg_testset_save_CFLAGS" 18516 18517 eval supported=\$$cacheid 18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18519$as_echo "$supported" >&6; } 18520 if test "$supported" = "yes" ; then 18521 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18522 found="yes" 18523 fi 18524 fi 18525 18526 18527 18528if test "x$STRICT_COMPILE" = "xyes"; then 18529 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18530 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18531fi 18532 18533 18534 18535 18536 18537 18538cat >>confdefs.h <<_ACEOF 18539#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18540_ACEOF 18541 18542 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18543 if test "x$PVM" = "x"; then 18544 PVM="0" 18545 fi 18546 18547cat >>confdefs.h <<_ACEOF 18548#define PACKAGE_VERSION_MINOR $PVM 18549_ACEOF 18550 18551 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18552 if test "x$PVP" = "x"; then 18553 PVP="0" 18554 fi 18555 18556cat >>confdefs.h <<_ACEOF 18557#define PACKAGE_VERSION_PATCHLEVEL $PVP 18558_ACEOF 18559 18560 18561 18562CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18563mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18564|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18565touch \$(top_srcdir)/ChangeLog; \ 18566echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18567 18568 18569 18570 18571macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18572INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18573mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18574|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18575touch \$(top_srcdir)/INSTALL; \ 18576echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18577 18578 18579 18580 18581 18582 18583case $host_os in 18584 solaris*) 18585 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18586 # check for a man page file found in later versions that use 18587 # traditional section numbers instead 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18589$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18590if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18591 $as_echo_n "(cached) " >&6 18592else 18593 test "$cross_compiling" = yes && 18594 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18595if test -r "/usr/share/man/man7/attributes.7"; then 18596 ac_cv_file__usr_share_man_man7_attributes_7=yes 18597else 18598 ac_cv_file__usr_share_man_man7_attributes_7=no 18599fi 18600fi 18601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18602$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18603if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18604 SYSV_MAN_SECTIONS=false 18605else 18606 SYSV_MAN_SECTIONS=true 18607fi 18608 18609 ;; 18610 *) SYSV_MAN_SECTIONS=false ;; 18611esac 18612 18613if test x$APP_MAN_SUFFIX = x ; then 18614 APP_MAN_SUFFIX=1 18615fi 18616if test x$APP_MAN_DIR = x ; then 18617 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18618fi 18619 18620if test x$LIB_MAN_SUFFIX = x ; then 18621 LIB_MAN_SUFFIX=3 18622fi 18623if test x$LIB_MAN_DIR = x ; then 18624 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18625fi 18626 18627if test x$FILE_MAN_SUFFIX = x ; then 18628 case $SYSV_MAN_SECTIONS in 18629 true) FILE_MAN_SUFFIX=4 ;; 18630 *) FILE_MAN_SUFFIX=5 ;; 18631 esac 18632fi 18633if test x$FILE_MAN_DIR = x ; then 18634 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18635fi 18636 18637if test x$MISC_MAN_SUFFIX = x ; then 18638 case $SYSV_MAN_SECTIONS in 18639 true) MISC_MAN_SUFFIX=5 ;; 18640 *) MISC_MAN_SUFFIX=7 ;; 18641 esac 18642fi 18643if test x$MISC_MAN_DIR = x ; then 18644 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18645fi 18646 18647if test x$DRIVER_MAN_SUFFIX = x ; then 18648 case $SYSV_MAN_SECTIONS in 18649 true) DRIVER_MAN_SUFFIX=7 ;; 18650 *) DRIVER_MAN_SUFFIX=4 ;; 18651 esac 18652fi 18653if test x$DRIVER_MAN_DIR = x ; then 18654 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18655fi 18656 18657if test x$ADMIN_MAN_SUFFIX = x ; then 18658 case $SYSV_MAN_SECTIONS in 18659 true) ADMIN_MAN_SUFFIX=1m ;; 18660 *) ADMIN_MAN_SUFFIX=8 ;; 18661 esac 18662fi 18663if test x$ADMIN_MAN_DIR = x ; then 18664 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18665fi 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681XORG_MAN_PAGE="X Version 11" 18682 18683MAN_SUBSTS="\ 18684 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18685 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18686 -e 's|__xservername__|Xorg|g' \ 18687 -e 's|__xconfigfile__|xorg.conf|g' \ 18688 -e 's|__projectroot__|\$(prefix)|g' \ 18689 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18690 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18691 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18692 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18693 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18694 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18695 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18696 18697 18698 18699# Check whether --enable-silent-rules was given. 18700if test "${enable_silent_rules+set}" = set; then : 18701 enableval=$enable_silent_rules; 18702fi 18703 18704case $enable_silent_rules in # ((( 18705 yes) AM_DEFAULT_VERBOSITY=0;; 18706 no) AM_DEFAULT_VERBOSITY=1;; 18707 *) AM_DEFAULT_VERBOSITY=0;; 18708esac 18709am_make=${MAKE-make} 18710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18711$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18712if ${am_cv_make_support_nested_variables+:} false; then : 18713 $as_echo_n "(cached) " >&6 18714else 18715 if $as_echo 'TRUE=$(BAR$(V)) 18716BAR0=false 18717BAR1=true 18718V=1 18719am__doit: 18720 @$(TRUE) 18721.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18722 am_cv_make_support_nested_variables=yes 18723else 18724 am_cv_make_support_nested_variables=no 18725fi 18726fi 18727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18728$as_echo "$am_cv_make_support_nested_variables" >&6; } 18729if test $am_cv_make_support_nested_variables = yes; then 18730 AM_V='$(V)' 18731 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18732else 18733 AM_V=$AM_DEFAULT_VERBOSITY 18734 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18735fi 18736AM_BACKSLASH='\' 18737 18738 18739 18740 18741# Check whether --enable-devel-docs was given. 18742if test "${enable_devel_docs+set}" = set; then : 18743 enableval=$enable_devel_docs; build_devel_docs=$enableval 18744else 18745 build_devel_docs=yes 18746fi 18747 18748 18749 if test x$build_devel_docs = xyes; then 18750 ENABLE_DEVEL_DOCS_TRUE= 18751 ENABLE_DEVEL_DOCS_FALSE='#' 18752else 18753 ENABLE_DEVEL_DOCS_TRUE='#' 18754 ENABLE_DEVEL_DOCS_FALSE= 18755fi 18756 18757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 18758$as_echo_n "checking whether to build developer documentation... " >&6; } 18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 18760$as_echo "$build_devel_docs" >&6; } 18761 18762 18763 18764 18765 18766 18767# Check whether --with-doxygen was given. 18768if test "${with_doxygen+set}" = set; then : 18769 withval=$with_doxygen; use_doxygen=$withval 18770else 18771 use_doxygen=auto 18772fi 18773 18774 18775 18776if test "x$use_doxygen" = x"auto"; then 18777 # Extract the first word of "doxygen", so it can be a program name with args. 18778set dummy doxygen; ac_word=$2 18779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18780$as_echo_n "checking for $ac_word... " >&6; } 18781if ${ac_cv_path_DOXYGEN+:} false; then : 18782 $as_echo_n "(cached) " >&6 18783else 18784 case $DOXYGEN in 18785 [\\/]* | ?:[\\/]*) 18786 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18787 ;; 18788 *) 18789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18790for as_dir in $PATH 18791do 18792 IFS=$as_save_IFS 18793 test -z "$as_dir" && as_dir=. 18794 for ac_exec_ext in '' $ac_executable_extensions; do 18795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18796 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18798 break 2 18799 fi 18800done 18801 done 18802IFS=$as_save_IFS 18803 18804 ;; 18805esac 18806fi 18807DOXYGEN=$ac_cv_path_DOXYGEN 18808if test -n "$DOXYGEN"; then 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18810$as_echo "$DOXYGEN" >&6; } 18811else 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813$as_echo "no" >&6; } 18814fi 18815 18816 18817 if test "x$DOXYGEN" = "x"; then 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 18819$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 18820 have_doxygen=no 18821 else 18822 have_doxygen=yes 18823 fi 18824elif test "x$use_doxygen" = x"yes" ; then 18825 # Extract the first word of "doxygen", so it can be a program name with args. 18826set dummy doxygen; ac_word=$2 18827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18828$as_echo_n "checking for $ac_word... " >&6; } 18829if ${ac_cv_path_DOXYGEN+:} false; then : 18830 $as_echo_n "(cached) " >&6 18831else 18832 case $DOXYGEN in 18833 [\\/]* | ?:[\\/]*) 18834 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18835 ;; 18836 *) 18837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18838for as_dir in $PATH 18839do 18840 IFS=$as_save_IFS 18841 test -z "$as_dir" && as_dir=. 18842 for ac_exec_ext in '' $ac_executable_extensions; do 18843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18844 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18846 break 2 18847 fi 18848done 18849 done 18850IFS=$as_save_IFS 18851 18852 ;; 18853esac 18854fi 18855DOXYGEN=$ac_cv_path_DOXYGEN 18856if test -n "$DOXYGEN"; then 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18858$as_echo "$DOXYGEN" >&6; } 18859else 18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18861$as_echo "no" >&6; } 18862fi 18863 18864 18865 if test "x$DOXYGEN" = "x"; then 18866 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 18867 fi 18868 have_doxygen=yes 18869elif test "x$use_doxygen" = x"no" ; then 18870 if test "x$DOXYGEN" != "x"; then 18871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 18872$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 18873 fi 18874 have_doxygen=no 18875else 18876 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 18877fi 18878 18879 18880HAVE_DOT=no 18881if test "x$have_doxygen" = "xyes"; then 18882 # Extract the first word of "dot", so it can be a program name with args. 18883set dummy dot; ac_word=$2 18884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18885$as_echo_n "checking for $ac_word... " >&6; } 18886if ${ac_cv_path_DOT+:} false; then : 18887 $as_echo_n "(cached) " >&6 18888else 18889 case $DOT in 18890 [\\/]* | ?:[\\/]*) 18891 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18892 ;; 18893 *) 18894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18895for as_dir in $PATH 18896do 18897 IFS=$as_save_IFS 18898 test -z "$as_dir" && as_dir=. 18899 for ac_exec_ext in '' $ac_executable_extensions; do 18900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18901 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18903 break 2 18904 fi 18905done 18906 done 18907IFS=$as_save_IFS 18908 18909 ;; 18910esac 18911fi 18912DOT=$ac_cv_path_DOT 18913if test -n "$DOT"; then 18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 18915$as_echo "$DOT" >&6; } 18916else 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18918$as_echo "no" >&6; } 18919fi 18920 18921 18922 if test "x$DOT" != "x"; then 18923 HAVE_DOT=yes 18924 fi 18925fi 18926 18927 18928 if test "$HAVE_DOT" = "yes"; then 18929 HAVE_DOT_TRUE= 18930 HAVE_DOT_FALSE='#' 18931else 18932 HAVE_DOT_TRUE='#' 18933 HAVE_DOT_FALSE= 18934fi 18935 18936 if test "$have_doxygen" = yes; then 18937 HAVE_DOXYGEN_TRUE= 18938 HAVE_DOXYGEN_FALSE='#' 18939else 18940 HAVE_DOXYGEN_TRUE='#' 18941 HAVE_DOXYGEN_FALSE= 18942fi 18943 18944 18945 18946 18947 18948pkg_failed=no 18949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb-aux" >&5 18950$as_echo_n "checking for xcb-aux... " >&6; } 18951 18952if test -n "$XCB_AUX_CFLAGS"; then 18953 pkg_cv_XCB_AUX_CFLAGS="$XCB_AUX_CFLAGS" 18954 elif test -n "$PKG_CONFIG"; then 18955 if test -n "$PKG_CONFIG" && \ 18956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux\""; } >&5 18957 ($PKG_CONFIG --exists --print-errors "xcb-aux") 2>&5 18958 ac_status=$? 18959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18960 test $ac_status = 0; }; then 18961 pkg_cv_XCB_AUX_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux" 2>/dev/null` 18962 test "x$?" != "x0" && pkg_failed=yes 18963else 18964 pkg_failed=yes 18965fi 18966 else 18967 pkg_failed=untried 18968fi 18969if test -n "$XCB_AUX_LIBS"; then 18970 pkg_cv_XCB_AUX_LIBS="$XCB_AUX_LIBS" 18971 elif test -n "$PKG_CONFIG"; then 18972 if test -n "$PKG_CONFIG" && \ 18973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux\""; } >&5 18974 ($PKG_CONFIG --exists --print-errors "xcb-aux") 2>&5 18975 ac_status=$? 18976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18977 test $ac_status = 0; }; then 18978 pkg_cv_XCB_AUX_LIBS=`$PKG_CONFIG --libs "xcb-aux" 2>/dev/null` 18979 test "x$?" != "x0" && pkg_failed=yes 18980else 18981 pkg_failed=yes 18982fi 18983 else 18984 pkg_failed=untried 18985fi 18986 18987 18988 18989if test $pkg_failed = yes; then 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18991$as_echo "no" >&6; } 18992 18993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18994 _pkg_short_errors_supported=yes 18995else 18996 _pkg_short_errors_supported=no 18997fi 18998 if test $_pkg_short_errors_supported = yes; then 18999 XCB_AUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-aux" 2>&1` 19000 else 19001 XCB_AUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux" 2>&1` 19002 fi 19003 # Put the nasty error message in config.log where it belongs 19004 echo "$XCB_AUX_PKG_ERRORS" >&5 19005 19006 as_fn_error $? "Package requirements (xcb-aux) were not met: 19007 19008$XCB_AUX_PKG_ERRORS 19009 19010Consider adjusting the PKG_CONFIG_PATH environment variable if you 19011installed software in a non-standard prefix. 19012 19013Alternatively, you may set the environment variables XCB_AUX_CFLAGS 19014and XCB_AUX_LIBS to avoid the need to call pkg-config. 19015See the pkg-config man page for more details." "$LINENO" 5 19016elif test $pkg_failed = untried; then 19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19018$as_echo "no" >&6; } 19019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19021as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19022is in your PATH or set the PKG_CONFIG environment variable to the full 19023path to pkg-config. 19024 19025Alternatively, you may set the environment variables XCB_AUX_CFLAGS 19026and XCB_AUX_LIBS to avoid the need to call pkg-config. 19027See the pkg-config man page for more details. 19028 19029To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19030See \`config.log' for more details" "$LINENO" 5; } 19031else 19032 XCB_AUX_CFLAGS=$pkg_cv_XCB_AUX_CFLAGS 19033 XCB_AUX_LIBS=$pkg_cv_XCB_AUX_LIBS 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19035$as_echo "yes" >&6; } 19036 19037fi 19038 19039pkg_failed=no 19040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11" >&5 19041$as_echo_n "checking for x11... " >&6; } 19042 19043if test -n "$XLIB_CFLAGS"; then 19044 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 19045 elif test -n "$PKG_CONFIG"; then 19046 if test -n "$PKG_CONFIG" && \ 19047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 19048 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 19049 ac_status=$? 19050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19051 test $ac_status = 0; }; then 19052 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 19053 test "x$?" != "x0" && pkg_failed=yes 19054else 19055 pkg_failed=yes 19056fi 19057 else 19058 pkg_failed=untried 19059fi 19060if test -n "$XLIB_LIBS"; then 19061 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 19062 elif test -n "$PKG_CONFIG"; then 19063 if test -n "$PKG_CONFIG" && \ 19064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 19065 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 19066 ac_status=$? 19067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19068 test $ac_status = 0; }; then 19069 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 19070 test "x$?" != "x0" && pkg_failed=yes 19071else 19072 pkg_failed=yes 19073fi 19074 else 19075 pkg_failed=untried 19076fi 19077 19078 19079 19080if test $pkg_failed = yes; then 19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19082$as_echo "no" >&6; } 19083 19084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19085 _pkg_short_errors_supported=yes 19086else 19087 _pkg_short_errors_supported=no 19088fi 19089 if test $_pkg_short_errors_supported = yes; then 19090 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 19091 else 19092 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 19093 fi 19094 # Put the nasty error message in config.log where it belongs 19095 echo "$XLIB_PKG_ERRORS" >&5 19096 19097 as_fn_error $? "Package requirements (x11) were not met: 19098 19099$XLIB_PKG_ERRORS 19100 19101Consider adjusting the PKG_CONFIG_PATH environment variable if you 19102installed software in a non-standard prefix. 19103 19104Alternatively, you may set the environment variables XLIB_CFLAGS 19105and XLIB_LIBS to avoid the need to call pkg-config. 19106See the pkg-config man page for more details." "$LINENO" 5 19107elif test $pkg_failed = untried; then 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19109$as_echo "no" >&6; } 19110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19112as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19113is in your PATH or set the PKG_CONFIG environment variable to the full 19114path to pkg-config. 19115 19116Alternatively, you may set the environment variables XLIB_CFLAGS 19117and XLIB_LIBS to avoid the need to call pkg-config. 19118See the pkg-config man page for more details. 19119 19120To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19121See \`config.log' for more details" "$LINENO" 5; } 19122else 19123 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 19124 XLIB_LIBS=$pkg_cv_XLIB_LIBS 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19126$as_echo "yes" >&6; } 19127 19128fi 19129 19130ac_config_files="$ac_config_files Makefile xcb-xrm.pc xcb_xrm_intro" 19131 19132cat >confcache <<\_ACEOF 19133# This file is a shell script that caches the results of configure 19134# tests run on this system so they can be shared between configure 19135# scripts and configure runs, see configure's option --config-cache. 19136# It is not useful on other systems. If it contains results you don't 19137# want to keep, you may remove or edit it. 19138# 19139# config.status only pays attention to the cache file if you give it 19140# the --recheck option to rerun configure. 19141# 19142# `ac_cv_env_foo' variables (set or unset) will be overridden when 19143# loading this file, other *unset* `ac_cv_foo' will be assigned the 19144# following values. 19145 19146_ACEOF 19147 19148# The following way of writing the cache mishandles newlines in values, 19149# but we know of no workaround that is simple, portable, and efficient. 19150# So, we kill variables containing newlines. 19151# Ultrix sh set writes to stderr and can't be redirected directly, 19152# and sets the high bit in the cache file unless we assign to the vars. 19153( 19154 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19155 eval ac_val=\$$ac_var 19156 case $ac_val in #( 19157 *${as_nl}*) 19158 case $ac_var in #( 19159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19161 esac 19162 case $ac_var in #( 19163 _ | IFS | as_nl) ;; #( 19164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19165 *) { eval $ac_var=; unset $ac_var;} ;; 19166 esac ;; 19167 esac 19168 done 19169 19170 (set) 2>&1 | 19171 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19172 *${as_nl}ac_space=\ *) 19173 # `set' does not quote correctly, so add quotes: double-quote 19174 # substitution turns \\\\ into \\, and sed turns \\ into \. 19175 sed -n \ 19176 "s/'/'\\\\''/g; 19177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19178 ;; #( 19179 *) 19180 # `set' quotes correctly as required by POSIX, so do not add quotes. 19181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19182 ;; 19183 esac | 19184 sort 19185) | 19186 sed ' 19187 /^ac_cv_env_/b end 19188 t clear 19189 :clear 19190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19191 t end 19192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19193 :end' >>confcache 19194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19195 if test -w "$cache_file"; then 19196 if test "x$cache_file" != "x/dev/null"; then 19197 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19198$as_echo "$as_me: updating cache $cache_file" >&6;} 19199 if test ! -f "$cache_file" || test -h "$cache_file"; then 19200 cat confcache >"$cache_file" 19201 else 19202 case $cache_file in #( 19203 */* | ?:*) 19204 mv -f confcache "$cache_file"$$ && 19205 mv -f "$cache_file"$$ "$cache_file" ;; #( 19206 *) 19207 mv -f confcache "$cache_file" ;; 19208 esac 19209 fi 19210 fi 19211 else 19212 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19213$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19214 fi 19215fi 19216rm -f confcache 19217 19218test "x$prefix" = xNONE && prefix=$ac_default_prefix 19219# Let make expand exec_prefix. 19220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19221 19222# Transform confdefs.h into DEFS. 19223# Protect against shell expansion while executing Makefile rules. 19224# Protect against Makefile macro expansion. 19225# 19226# If the first sed substitution is executed (which looks for macros that 19227# take arguments), then branch to the quote section. Otherwise, 19228# look for a macro that doesn't take arguments. 19229ac_script=' 19230:mline 19231/\\$/{ 19232 N 19233 s,\\\n,, 19234 b mline 19235} 19236t clear 19237:clear 19238s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19239t quote 19240s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19241t quote 19242b any 19243:quote 19244s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19245s/\[/\\&/g 19246s/\]/\\&/g 19247s/\$/$$/g 19248H 19249:any 19250${ 19251 g 19252 s/^\n// 19253 s/\n/ /g 19254 p 19255} 19256' 19257DEFS=`sed -n "$ac_script" confdefs.h` 19258 19259 19260ac_libobjs= 19261ac_ltlibobjs= 19262U= 19263for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19264 # 1. Remove the extension, and $U if already installed. 19265 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19266 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19267 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19268 # will be set to the directory where LIBOBJS objects are built. 19269 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19270 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19271done 19272LIBOBJS=$ac_libobjs 19273 19274LTLIBOBJS=$ac_ltlibobjs 19275 19276 19277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19278$as_echo_n "checking that generated files are newer than configure... " >&6; } 19279 if test -n "$am_sleep_pid"; then 19280 # Hide warnings about reused PIDs. 19281 wait $am_sleep_pid 2>/dev/null 19282 fi 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19284$as_echo "done" >&6; } 19285if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19286 as_fn_error $? "conditional \"AMDEP\" was never defined. 19287Usually this means the macro was only invoked conditionally." "$LINENO" 5 19288fi 19289if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19290 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19291Usually this means the macro was only invoked conditionally." "$LINENO" 5 19292fi 19293 if test -n "$EXEEXT"; then 19294 am__EXEEXT_TRUE= 19295 am__EXEEXT_FALSE='#' 19296else 19297 am__EXEEXT_TRUE='#' 19298 am__EXEEXT_FALSE= 19299fi 19300 19301if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19302 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19303Usually this means the macro was only invoked conditionally." "$LINENO" 5 19304fi 19305if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 19306 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 19307Usually this means the macro was only invoked conditionally." "$LINENO" 5 19308fi 19309if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 19310 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 19311Usually this means the macro was only invoked conditionally." "$LINENO" 5 19312fi 19313if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 19314 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 19315Usually this means the macro was only invoked conditionally." "$LINENO" 5 19316fi 19317 19318: "${CONFIG_STATUS=./config.status}" 19319ac_write_fail=0 19320ac_clean_files_save=$ac_clean_files 19321ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19322{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19323$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19324as_write_fail=0 19325cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19326#! $SHELL 19327# Generated by $as_me. 19328# Run this file to recreate the current configuration. 19329# Compiler output produced by configure, useful for debugging 19330# configure, is in config.log if it exists. 19331 19332debug=false 19333ac_cs_recheck=false 19334ac_cs_silent=false 19335 19336SHELL=\${CONFIG_SHELL-$SHELL} 19337export SHELL 19338_ASEOF 19339cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19340## -------------------- ## 19341## M4sh Initialization. ## 19342## -------------------- ## 19343 19344# Be more Bourne compatible 19345DUALCASE=1; export DUALCASE # for MKS sh 19346if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19347 emulate sh 19348 NULLCMD=: 19349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19350 # is contrary to our usage. Disable this feature. 19351 alias -g '${1+"$@"}'='"$@"' 19352 setopt NO_GLOB_SUBST 19353else 19354 case `(set -o) 2>/dev/null` in #( 19355 *posix*) : 19356 set -o posix ;; #( 19357 *) : 19358 ;; 19359esac 19360fi 19361 19362 19363as_nl=' 19364' 19365export as_nl 19366# Printing a long string crashes Solaris 7 /usr/bin/printf. 19367as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19368as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19369as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19370# Prefer a ksh shell builtin over an external printf program on Solaris, 19371# but without wasting forks for bash or zsh. 19372if test -z "$BASH_VERSION$ZSH_VERSION" \ 19373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19374 as_echo='print -r --' 19375 as_echo_n='print -rn --' 19376elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19377 as_echo='printf %s\n' 19378 as_echo_n='printf %s' 19379else 19380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19382 as_echo_n='/usr/ucb/echo -n' 19383 else 19384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19385 as_echo_n_body='eval 19386 arg=$1; 19387 case $arg in #( 19388 *"$as_nl"*) 19389 expr "X$arg" : "X\\(.*\\)$as_nl"; 19390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19391 esac; 19392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19393 ' 19394 export as_echo_n_body 19395 as_echo_n='sh -c $as_echo_n_body as_echo' 19396 fi 19397 export as_echo_body 19398 as_echo='sh -c $as_echo_body as_echo' 19399fi 19400 19401# The user is always right. 19402if test "${PATH_SEPARATOR+set}" != set; then 19403 PATH_SEPARATOR=: 19404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19406 PATH_SEPARATOR=';' 19407 } 19408fi 19409 19410 19411# IFS 19412# We need space, tab and new line, in precisely that order. Quoting is 19413# there to prevent editors from complaining about space-tab. 19414# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19415# splitting by setting IFS to empty value.) 19416IFS=" "" $as_nl" 19417 19418# Find who we are. Look in the path if we contain no directory separator. 19419as_myself= 19420case $0 in #(( 19421 *[\\/]* ) as_myself=$0 ;; 19422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19423for as_dir in $PATH 19424do 19425 IFS=$as_save_IFS 19426 test -z "$as_dir" && as_dir=. 19427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19428 done 19429IFS=$as_save_IFS 19430 19431 ;; 19432esac 19433# We did not find ourselves, most probably we were run as `sh COMMAND' 19434# in which case we are not to be found in the path. 19435if test "x$as_myself" = x; then 19436 as_myself=$0 19437fi 19438if test ! -f "$as_myself"; then 19439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19440 exit 1 19441fi 19442 19443# Unset variables that we do not need and which cause bugs (e.g. in 19444# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19445# suppresses any "Segmentation fault" message there. '((' could 19446# trigger a bug in pdksh 5.2.14. 19447for as_var in BASH_ENV ENV MAIL MAILPATH 19448do eval test x\${$as_var+set} = xset \ 19449 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19450done 19451PS1='$ ' 19452PS2='> ' 19453PS4='+ ' 19454 19455# NLS nuisances. 19456LC_ALL=C 19457export LC_ALL 19458LANGUAGE=C 19459export LANGUAGE 19460 19461# CDPATH. 19462(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19463 19464 19465# as_fn_error STATUS ERROR [LINENO LOG_FD] 19466# ---------------------------------------- 19467# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19468# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19469# script with STATUS, using 1 if that was 0. 19470as_fn_error () 19471{ 19472 as_status=$1; test $as_status -eq 0 && as_status=1 19473 if test "$4"; then 19474 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19476 fi 19477 $as_echo "$as_me: error: $2" >&2 19478 as_fn_exit $as_status 19479} # as_fn_error 19480 19481 19482# as_fn_set_status STATUS 19483# ----------------------- 19484# Set $? to STATUS, without forking. 19485as_fn_set_status () 19486{ 19487 return $1 19488} # as_fn_set_status 19489 19490# as_fn_exit STATUS 19491# ----------------- 19492# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19493as_fn_exit () 19494{ 19495 set +e 19496 as_fn_set_status $1 19497 exit $1 19498} # as_fn_exit 19499 19500# as_fn_unset VAR 19501# --------------- 19502# Portably unset VAR. 19503as_fn_unset () 19504{ 19505 { eval $1=; unset $1;} 19506} 19507as_unset=as_fn_unset 19508# as_fn_append VAR VALUE 19509# ---------------------- 19510# Append the text in VALUE to the end of the definition contained in VAR. Take 19511# advantage of any shell optimizations that allow amortized linear growth over 19512# repeated appends, instead of the typical quadratic growth present in naive 19513# implementations. 19514if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19515 eval 'as_fn_append () 19516 { 19517 eval $1+=\$2 19518 }' 19519else 19520 as_fn_append () 19521 { 19522 eval $1=\$$1\$2 19523 } 19524fi # as_fn_append 19525 19526# as_fn_arith ARG... 19527# ------------------ 19528# Perform arithmetic evaluation on the ARGs, and store the result in the 19529# global $as_val. Take advantage of shells that can avoid forks. The arguments 19530# must be portable across $(()) and expr. 19531if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19532 eval 'as_fn_arith () 19533 { 19534 as_val=$(( $* )) 19535 }' 19536else 19537 as_fn_arith () 19538 { 19539 as_val=`expr "$@" || test $? -eq 1` 19540 } 19541fi # as_fn_arith 19542 19543 19544if expr a : '\(a\)' >/dev/null 2>&1 && 19545 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19546 as_expr=expr 19547else 19548 as_expr=false 19549fi 19550 19551if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19552 as_basename=basename 19553else 19554 as_basename=false 19555fi 19556 19557if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19558 as_dirname=dirname 19559else 19560 as_dirname=false 19561fi 19562 19563as_me=`$as_basename -- "$0" || 19564$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19565 X"$0" : 'X\(//\)$' \| \ 19566 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19567$as_echo X/"$0" | 19568 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19569 s//\1/ 19570 q 19571 } 19572 /^X\/\(\/\/\)$/{ 19573 s//\1/ 19574 q 19575 } 19576 /^X\/\(\/\).*/{ 19577 s//\1/ 19578 q 19579 } 19580 s/.*/./; q'` 19581 19582# Avoid depending upon Character Ranges. 19583as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19584as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19585as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19586as_cr_digits='0123456789' 19587as_cr_alnum=$as_cr_Letters$as_cr_digits 19588 19589ECHO_C= ECHO_N= ECHO_T= 19590case `echo -n x` in #((((( 19591-n*) 19592 case `echo 'xy\c'` in 19593 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19594 xy) ECHO_C='\c';; 19595 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19596 ECHO_T=' ';; 19597 esac;; 19598*) 19599 ECHO_N='-n';; 19600esac 19601 19602rm -f conf$$ conf$$.exe conf$$.file 19603if test -d conf$$.dir; then 19604 rm -f conf$$.dir/conf$$.file 19605else 19606 rm -f conf$$.dir 19607 mkdir conf$$.dir 2>/dev/null 19608fi 19609if (echo >conf$$.file) 2>/dev/null; then 19610 if ln -s conf$$.file conf$$ 2>/dev/null; then 19611 as_ln_s='ln -s' 19612 # ... but there are two gotchas: 19613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19615 # In both cases, we have to default to `cp -pR'. 19616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19617 as_ln_s='cp -pR' 19618 elif ln conf$$.file conf$$ 2>/dev/null; then 19619 as_ln_s=ln 19620 else 19621 as_ln_s='cp -pR' 19622 fi 19623else 19624 as_ln_s='cp -pR' 19625fi 19626rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19627rmdir conf$$.dir 2>/dev/null 19628 19629 19630# as_fn_mkdir_p 19631# ------------- 19632# Create "$as_dir" as a directory, including parents if necessary. 19633as_fn_mkdir_p () 19634{ 19635 19636 case $as_dir in #( 19637 -*) as_dir=./$as_dir;; 19638 esac 19639 test -d "$as_dir" || eval $as_mkdir_p || { 19640 as_dirs= 19641 while :; do 19642 case $as_dir in #( 19643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19644 *) as_qdir=$as_dir;; 19645 esac 19646 as_dirs="'$as_qdir' $as_dirs" 19647 as_dir=`$as_dirname -- "$as_dir" || 19648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19649 X"$as_dir" : 'X\(//\)[^/]' \| \ 19650 X"$as_dir" : 'X\(//\)$' \| \ 19651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19652$as_echo X"$as_dir" | 19653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19654 s//\1/ 19655 q 19656 } 19657 /^X\(\/\/\)[^/].*/{ 19658 s//\1/ 19659 q 19660 } 19661 /^X\(\/\/\)$/{ 19662 s//\1/ 19663 q 19664 } 19665 /^X\(\/\).*/{ 19666 s//\1/ 19667 q 19668 } 19669 s/.*/./; q'` 19670 test -d "$as_dir" && break 19671 done 19672 test -z "$as_dirs" || eval "mkdir $as_dirs" 19673 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19674 19675 19676} # as_fn_mkdir_p 19677if mkdir -p . 2>/dev/null; then 19678 as_mkdir_p='mkdir -p "$as_dir"' 19679else 19680 test -d ./-p && rmdir ./-p 19681 as_mkdir_p=false 19682fi 19683 19684 19685# as_fn_executable_p FILE 19686# ----------------------- 19687# Test if FILE is an executable regular file. 19688as_fn_executable_p () 19689{ 19690 test -f "$1" && test -x "$1" 19691} # as_fn_executable_p 19692as_test_x='test -x' 19693as_executable_p=as_fn_executable_p 19694 19695# Sed expression to map a string onto a valid CPP name. 19696as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19697 19698# Sed expression to map a string onto a valid variable name. 19699as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19700 19701 19702exec 6>&1 19703## ----------------------------------- ## 19704## Main body of $CONFIG_STATUS script. ## 19705## ----------------------------------- ## 19706_ASEOF 19707test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19708 19709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19710# Save the log message, to keep $0 and so on meaningful, and to 19711# report actual input values of CONFIG_FILES etc. instead of their 19712# values after options handling. 19713ac_log=" 19714This file was extended by xcb-util-xrm $as_me 1.3, which was 19715generated by GNU Autoconf 2.69. Invocation command line was 19716 19717 CONFIG_FILES = $CONFIG_FILES 19718 CONFIG_HEADERS = $CONFIG_HEADERS 19719 CONFIG_LINKS = $CONFIG_LINKS 19720 CONFIG_COMMANDS = $CONFIG_COMMANDS 19721 $ $0 $@ 19722 19723on `(hostname || uname -n) 2>/dev/null | sed 1q` 19724" 19725 19726_ACEOF 19727 19728case $ac_config_files in *" 19729"*) set x $ac_config_files; shift; ac_config_files=$*;; 19730esac 19731 19732 19733 19734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19735# Files that config.status was made for. 19736config_files="$ac_config_files" 19737config_commands="$ac_config_commands" 19738 19739_ACEOF 19740 19741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19742ac_cs_usage="\ 19743\`$as_me' instantiates files and other configuration actions 19744from templates according to the current configuration. Unless the files 19745and actions are specified as TAGs, all are instantiated by default. 19746 19747Usage: $0 [OPTION]... [TAG]... 19748 19749 -h, --help print this help, then exit 19750 -V, --version print version number and configuration settings, then exit 19751 --config print configuration, then exit 19752 -q, --quiet, --silent 19753 do not print progress messages 19754 -d, --debug don't remove temporary files 19755 --recheck update $as_me by reconfiguring in the same conditions 19756 --file=FILE[:TEMPLATE] 19757 instantiate the configuration file FILE 19758 19759Configuration files: 19760$config_files 19761 19762Configuration commands: 19763$config_commands 19764 19765Report bugs to <xcb@lists.freedesktop.org>." 19766 19767_ACEOF 19768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19769ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19770ac_cs_version="\\ 19771xcb-util-xrm config.status 1.3 19772configured by $0, generated by GNU Autoconf 2.69, 19773 with options \\"\$ac_cs_config\\" 19774 19775Copyright (C) 2012 Free Software Foundation, Inc. 19776This config.status script is free software; the Free Software Foundation 19777gives unlimited permission to copy, distribute and modify it." 19778 19779ac_pwd='$ac_pwd' 19780srcdir='$srcdir' 19781INSTALL='$INSTALL' 19782MKDIR_P='$MKDIR_P' 19783AWK='$AWK' 19784test -n "\$AWK" || AWK=awk 19785_ACEOF 19786 19787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19788# The default lists apply if the user does not specify any file. 19789ac_need_defaults=: 19790while test $# != 0 19791do 19792 case $1 in 19793 --*=?*) 19794 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19795 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19796 ac_shift=: 19797 ;; 19798 --*=) 19799 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19800 ac_optarg= 19801 ac_shift=: 19802 ;; 19803 *) 19804 ac_option=$1 19805 ac_optarg=$2 19806 ac_shift=shift 19807 ;; 19808 esac 19809 19810 case $ac_option in 19811 # Handling of the options. 19812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19813 ac_cs_recheck=: ;; 19814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19815 $as_echo "$ac_cs_version"; exit ;; 19816 --config | --confi | --conf | --con | --co | --c ) 19817 $as_echo "$ac_cs_config"; exit ;; 19818 --debug | --debu | --deb | --de | --d | -d ) 19819 debug=: ;; 19820 --file | --fil | --fi | --f ) 19821 $ac_shift 19822 case $ac_optarg in 19823 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19824 '') as_fn_error $? "missing file argument" ;; 19825 esac 19826 as_fn_append CONFIG_FILES " '$ac_optarg'" 19827 ac_need_defaults=false;; 19828 --he | --h | --help | --hel | -h ) 19829 $as_echo "$ac_cs_usage"; exit ;; 19830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19831 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19832 ac_cs_silent=: ;; 19833 19834 # This is an error. 19835 -*) as_fn_error $? "unrecognized option: \`$1' 19836Try \`$0 --help' for more information." ;; 19837 19838 *) as_fn_append ac_config_targets " $1" 19839 ac_need_defaults=false ;; 19840 19841 esac 19842 shift 19843done 19844 19845ac_configure_extra_args= 19846 19847if $ac_cs_silent; then 19848 exec 6>/dev/null 19849 ac_configure_extra_args="$ac_configure_extra_args --silent" 19850fi 19851 19852_ACEOF 19853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19854if \$ac_cs_recheck; then 19855 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19856 shift 19857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19858 CONFIG_SHELL='$SHELL' 19859 export CONFIG_SHELL 19860 exec "\$@" 19861fi 19862 19863_ACEOF 19864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19865exec 5>>config.log 19866{ 19867 echo 19868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19869## Running $as_me. ## 19870_ASBOX 19871 $as_echo "$ac_log" 19872} >&5 19873 19874_ACEOF 19875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19876# 19877# INIT-COMMANDS 19878# 19879AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19880 19881 19882# The HP-UX ksh and POSIX shell print the target directory to stdout 19883# if CDPATH is set. 19884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19885 19886sed_quote_subst='$sed_quote_subst' 19887double_quote_subst='$double_quote_subst' 19888delay_variable_subst='$delay_variable_subst' 19889macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19890macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19891enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19892enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19893pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19894enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19895shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19896SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19897ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19898PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19899host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19900host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19901host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19902build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19903build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19904build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19905SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19906Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19907GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19908EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19909FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19910LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19911NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19912LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19913max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19914ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19915exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19916lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19917lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19918lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19919lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19920lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19921reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19922reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19923OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19924deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19925file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19926file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19927want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19928DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19929sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19930AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19931AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19932archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19933STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19934RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19935old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19936old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19937old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19938lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19939CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19940CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19941compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19942GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19943lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19944lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19945lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19946lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19947lt_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"`' 19948lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19949nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19950lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19951lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19952objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19953MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19954lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19955lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19956lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19957lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19958lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19959need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19960MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19961DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19962NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19963LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19964OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19965OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19966libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19967shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19968extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19969archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19970enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19971export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19972whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19973compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19974old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19975old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19976archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19977archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19978module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19979module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19980with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19981allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19982no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19983hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19984hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19985hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19986hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19987hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19988hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19989hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19990inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19991link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19992always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19993export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19994exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19995include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19996prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19997postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19998file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19999variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20000need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20001need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20002version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20003runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20004shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20005shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20006libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20007library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20008soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20009install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20010postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20011postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20012finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20013finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20014hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20015sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20016configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20017configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20018hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20019enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20020enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20021enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20022old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20023striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20024 20025LTCC='$LTCC' 20026LTCFLAGS='$LTCFLAGS' 20027compiler='$compiler_DEFAULT' 20028 20029# A function that is used when there is no print builtin or printf. 20030func_fallback_echo () 20031{ 20032 eval 'cat <<_LTECHO_EOF 20033\$1 20034_LTECHO_EOF' 20035} 20036 20037# Quote evaled strings. 20038for var in SHELL \ 20039ECHO \ 20040PATH_SEPARATOR \ 20041SED \ 20042GREP \ 20043EGREP \ 20044FGREP \ 20045LD \ 20046NM \ 20047LN_S \ 20048lt_SP2NL \ 20049lt_NL2SP \ 20050reload_flag \ 20051OBJDUMP \ 20052deplibs_check_method \ 20053file_magic_cmd \ 20054file_magic_glob \ 20055want_nocaseglob \ 20056DLLTOOL \ 20057sharedlib_from_linklib_cmd \ 20058AR \ 20059AR_FLAGS \ 20060archiver_list_spec \ 20061STRIP \ 20062RANLIB \ 20063CC \ 20064CFLAGS \ 20065compiler \ 20066lt_cv_sys_global_symbol_pipe \ 20067lt_cv_sys_global_symbol_to_cdecl \ 20068lt_cv_sys_global_symbol_to_import \ 20069lt_cv_sys_global_symbol_to_c_name_address \ 20070lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20071lt_cv_nm_interface \ 20072nm_file_list_spec \ 20073lt_cv_truncate_bin \ 20074lt_prog_compiler_no_builtin_flag \ 20075lt_prog_compiler_pic \ 20076lt_prog_compiler_wl \ 20077lt_prog_compiler_static \ 20078lt_cv_prog_compiler_c_o \ 20079need_locks \ 20080MANIFEST_TOOL \ 20081DSYMUTIL \ 20082NMEDIT \ 20083LIPO \ 20084OTOOL \ 20085OTOOL64 \ 20086shrext_cmds \ 20087export_dynamic_flag_spec \ 20088whole_archive_flag_spec \ 20089compiler_needs_object \ 20090with_gnu_ld \ 20091allow_undefined_flag \ 20092no_undefined_flag \ 20093hardcode_libdir_flag_spec \ 20094hardcode_libdir_separator \ 20095exclude_expsyms \ 20096include_expsyms \ 20097file_list_spec \ 20098variables_saved_for_relink \ 20099libname_spec \ 20100library_names_spec \ 20101soname_spec \ 20102install_override_mode \ 20103finish_eval \ 20104old_striplib \ 20105striplib; do 20106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20107 *[\\\\\\\`\\"\\\$]*) 20108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20109 ;; 20110 *) 20111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20112 ;; 20113 esac 20114done 20115 20116# Double-quote double-evaled strings. 20117for var in reload_cmds \ 20118old_postinstall_cmds \ 20119old_postuninstall_cmds \ 20120old_archive_cmds \ 20121extract_expsyms_cmds \ 20122old_archive_from_new_cmds \ 20123old_archive_from_expsyms_cmds \ 20124archive_cmds \ 20125archive_expsym_cmds \ 20126module_cmds \ 20127module_expsym_cmds \ 20128export_symbols_cmds \ 20129prelink_cmds \ 20130postlink_cmds \ 20131postinstall_cmds \ 20132postuninstall_cmds \ 20133finish_cmds \ 20134sys_lib_search_path_spec \ 20135configure_time_dlsearch_path \ 20136configure_time_lt_sys_library_path; do 20137 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20138 *[\\\\\\\`\\"\\\$]*) 20139 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20140 ;; 20141 *) 20142 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20143 ;; 20144 esac 20145done 20146 20147ac_aux_dir='$ac_aux_dir' 20148 20149# See if we are running on zsh, and set the options that allow our 20150# commands through without removal of \ escapes INIT. 20151if test -n "\${ZSH_VERSION+set}"; then 20152 setopt NO_GLOB_SUBST 20153fi 20154 20155 20156 PACKAGE='$PACKAGE' 20157 VERSION='$VERSION' 20158 RM='$RM' 20159 ofile='$ofile' 20160 20161 20162 20163 20164_ACEOF 20165 20166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20167 20168# Handling of arguments. 20169for ac_config_target in $ac_config_targets 20170do 20171 case $ac_config_target in 20172 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20173 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20174 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20175 "xcb-xrm.pc") CONFIG_FILES="$CONFIG_FILES xcb-xrm.pc" ;; 20176 "xcb_xrm_intro") CONFIG_FILES="$CONFIG_FILES xcb_xrm_intro" ;; 20177 20178 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20179 esac 20180done 20181 20182 20183# If the user did not use the arguments to specify the items to instantiate, 20184# then the envvar interface is used. Set only those that are not. 20185# We use the long form for the default assignment because of an extremely 20186# bizarre bug on SunOS 4.1.3. 20187if $ac_need_defaults; then 20188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20190fi 20191 20192# Have a temporary directory for convenience. Make it in the build tree 20193# simply because there is no reason against having it here, and in addition, 20194# creating and moving files from /tmp can sometimes cause problems. 20195# Hook for its removal unless debugging. 20196# Note that there is a small window in which the directory will not be cleaned: 20197# after its creation but before its name has been assigned to `$tmp'. 20198$debug || 20199{ 20200 tmp= ac_tmp= 20201 trap 'exit_status=$? 20202 : "${ac_tmp:=$tmp}" 20203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20204' 0 20205 trap 'as_fn_exit 1' 1 2 13 15 20206} 20207# Create a (secure) tmp directory for tmp files. 20208 20209{ 20210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20211 test -d "$tmp" 20212} || 20213{ 20214 tmp=./conf$$-$RANDOM 20215 (umask 077 && mkdir "$tmp") 20216} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20217ac_tmp=$tmp 20218 20219# Set up the scripts for CONFIG_FILES section. 20220# No need to generate them if there are no CONFIG_FILES. 20221# This happens for instance with `./config.status config.h'. 20222if test -n "$CONFIG_FILES"; then 20223 20224 20225ac_cr=`echo X | tr X '\015'` 20226# On cygwin, bash can eat \r inside `` if the user requested igncr. 20227# But we know of no other shell where ac_cr would be empty at this 20228# point, so we can use a bashism as a fallback. 20229if test "x$ac_cr" = x; then 20230 eval ac_cr=\$\'\\r\' 20231fi 20232ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20233if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20234 ac_cs_awk_cr='\\r' 20235else 20236 ac_cs_awk_cr=$ac_cr 20237fi 20238 20239echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20240_ACEOF 20241 20242 20243{ 20244 echo "cat >conf$$subs.awk <<_ACEOF" && 20245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20246 echo "_ACEOF" 20247} >conf$$subs.sh || 20248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20249ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20250ac_delim='%!_!# ' 20251for ac_last_try in false false false false false :; do 20252 . ./conf$$subs.sh || 20253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20254 20255 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20256 if test $ac_delim_n = $ac_delim_num; then 20257 break 20258 elif $ac_last_try; then 20259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20260 else 20261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20262 fi 20263done 20264rm -f conf$$subs.sh 20265 20266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20267cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20268_ACEOF 20269sed -n ' 20270h 20271s/^/S["/; s/!.*/"]=/ 20272p 20273g 20274s/^[^!]*!// 20275:repl 20276t repl 20277s/'"$ac_delim"'$// 20278t delim 20279:nl 20280h 20281s/\(.\{148\}\)..*/\1/ 20282t more1 20283s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20284p 20285n 20286b repl 20287:more1 20288s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20289p 20290g 20291s/.\{148\}// 20292t nl 20293:delim 20294h 20295s/\(.\{148\}\)..*/\1/ 20296t more2 20297s/["\\]/\\&/g; s/^/"/; s/$/"/ 20298p 20299b 20300:more2 20301s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20302p 20303g 20304s/.\{148\}// 20305t delim 20306' <conf$$subs.awk | sed ' 20307/^[^""]/{ 20308 N 20309 s/\n// 20310} 20311' >>$CONFIG_STATUS || ac_write_fail=1 20312rm -f conf$$subs.awk 20313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20314_ACAWK 20315cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20316 for (key in S) S_is_set[key] = 1 20317 FS = "" 20318 20319} 20320{ 20321 line = $ 0 20322 nfields = split(line, field, "@") 20323 substed = 0 20324 len = length(field[1]) 20325 for (i = 2; i < nfields; i++) { 20326 key = field[i] 20327 keylen = length(key) 20328 if (S_is_set[key]) { 20329 value = S[key] 20330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20331 len += length(value) + length(field[++i]) 20332 substed = 1 20333 } else 20334 len += 1 + keylen 20335 } 20336 20337 print line 20338} 20339 20340_ACAWK 20341_ACEOF 20342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20343if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20344 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20345else 20346 cat 20347fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20348 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20349_ACEOF 20350 20351# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20352# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20353# trailing colons and then remove the whole line if VPATH becomes empty 20354# (actually we leave an empty line to preserve line numbers). 20355if test "x$srcdir" = x.; then 20356 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20357h 20358s/// 20359s/^/:/ 20360s/[ ]*$/:/ 20361s/:\$(srcdir):/:/g 20362s/:\${srcdir}:/:/g 20363s/:@srcdir@:/:/g 20364s/^:*// 20365s/:*$// 20366x 20367s/\(=[ ]*\).*/\1/ 20368G 20369s/\n// 20370s/^[^=]*=[ ]*$// 20371}' 20372fi 20373 20374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20375fi # test -n "$CONFIG_FILES" 20376 20377 20378eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 20379shift 20380for ac_tag 20381do 20382 case $ac_tag in 20383 :[FHLC]) ac_mode=$ac_tag; continue;; 20384 esac 20385 case $ac_mode$ac_tag in 20386 :[FHL]*:*);; 20387 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20388 :[FH]-) ac_tag=-:-;; 20389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20390 esac 20391 ac_save_IFS=$IFS 20392 IFS=: 20393 set x $ac_tag 20394 IFS=$ac_save_IFS 20395 shift 20396 ac_file=$1 20397 shift 20398 20399 case $ac_mode in 20400 :L) ac_source=$1;; 20401 :[FH]) 20402 ac_file_inputs= 20403 for ac_f 20404 do 20405 case $ac_f in 20406 -) ac_f="$ac_tmp/stdin";; 20407 *) # Look for the file first in the build tree, then in the source tree 20408 # (if the path is not absolute). The absolute path cannot be DOS-style, 20409 # because $ac_f cannot contain `:'. 20410 test -f "$ac_f" || 20411 case $ac_f in 20412 [\\/$]*) false;; 20413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20414 esac || 20415 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20416 esac 20417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20418 as_fn_append ac_file_inputs " '$ac_f'" 20419 done 20420 20421 # Let's still pretend it is `configure' which instantiates (i.e., don't 20422 # use $as_me), people would be surprised to read: 20423 # /* config.h. Generated by config.status. */ 20424 configure_input='Generated from '` 20425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20426 `' by configure.' 20427 if test x"$ac_file" != x-; then 20428 configure_input="$ac_file. $configure_input" 20429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20430$as_echo "$as_me: creating $ac_file" >&6;} 20431 fi 20432 # Neutralize special characters interpreted by sed in replacement strings. 20433 case $configure_input in #( 20434 *\&* | *\|* | *\\* ) 20435 ac_sed_conf_input=`$as_echo "$configure_input" | 20436 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20437 *) ac_sed_conf_input=$configure_input;; 20438 esac 20439 20440 case $ac_tag in 20441 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20443 esac 20444 ;; 20445 esac 20446 20447 ac_dir=`$as_dirname -- "$ac_file" || 20448$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20449 X"$ac_file" : 'X\(//\)[^/]' \| \ 20450 X"$ac_file" : 'X\(//\)$' \| \ 20451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20452$as_echo X"$ac_file" | 20453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20454 s//\1/ 20455 q 20456 } 20457 /^X\(\/\/\)[^/].*/{ 20458 s//\1/ 20459 q 20460 } 20461 /^X\(\/\/\)$/{ 20462 s//\1/ 20463 q 20464 } 20465 /^X\(\/\).*/{ 20466 s//\1/ 20467 q 20468 } 20469 s/.*/./; q'` 20470 as_dir="$ac_dir"; as_fn_mkdir_p 20471 ac_builddir=. 20472 20473case "$ac_dir" in 20474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20475*) 20476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20477 # A ".." for each directory in $ac_dir_suffix. 20478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20479 case $ac_top_builddir_sub in 20480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20482 esac ;; 20483esac 20484ac_abs_top_builddir=$ac_pwd 20485ac_abs_builddir=$ac_pwd$ac_dir_suffix 20486# for backward compatibility: 20487ac_top_builddir=$ac_top_build_prefix 20488 20489case $srcdir in 20490 .) # We are building in place. 20491 ac_srcdir=. 20492 ac_top_srcdir=$ac_top_builddir_sub 20493 ac_abs_top_srcdir=$ac_pwd ;; 20494 [\\/]* | ?:[\\/]* ) # Absolute name. 20495 ac_srcdir=$srcdir$ac_dir_suffix; 20496 ac_top_srcdir=$srcdir 20497 ac_abs_top_srcdir=$srcdir ;; 20498 *) # Relative name. 20499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20500 ac_top_srcdir=$ac_top_build_prefix$srcdir 20501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20502esac 20503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20504 20505 20506 case $ac_mode in 20507 :F) 20508 # 20509 # CONFIG_FILE 20510 # 20511 20512 case $INSTALL in 20513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20515 esac 20516 ac_MKDIR_P=$MKDIR_P 20517 case $MKDIR_P in 20518 [\\/$]* | ?:[\\/]* ) ;; 20519 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20520 esac 20521_ACEOF 20522 20523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20524# If the template does not know about datarootdir, expand it. 20525# FIXME: This hack should be removed a few years after 2.60. 20526ac_datarootdir_hack=; ac_datarootdir_seen= 20527ac_sed_dataroot=' 20528/datarootdir/ { 20529 p 20530 q 20531} 20532/@datadir@/p 20533/@docdir@/p 20534/@infodir@/p 20535/@localedir@/p 20536/@mandir@/p' 20537case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20538*datarootdir*) ac_datarootdir_seen=yes;; 20539*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20541$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20542_ACEOF 20543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20544 ac_datarootdir_hack=' 20545 s&@datadir@&$datadir&g 20546 s&@docdir@&$docdir&g 20547 s&@infodir@&$infodir&g 20548 s&@localedir@&$localedir&g 20549 s&@mandir@&$mandir&g 20550 s&\\\${datarootdir}&$datarootdir&g' ;; 20551esac 20552_ACEOF 20553 20554# Neutralize VPATH when `$srcdir' = `.'. 20555# Shell code in configure.ac might set extrasub. 20556# FIXME: do we really want to maintain this feature? 20557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20558ac_sed_extra="$ac_vpsub 20559$extrasub 20560_ACEOF 20561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20562:t 20563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20564s|@configure_input@|$ac_sed_conf_input|;t t 20565s&@top_builddir@&$ac_top_builddir_sub&;t t 20566s&@top_build_prefix@&$ac_top_build_prefix&;t t 20567s&@srcdir@&$ac_srcdir&;t t 20568s&@abs_srcdir@&$ac_abs_srcdir&;t t 20569s&@top_srcdir@&$ac_top_srcdir&;t t 20570s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20571s&@builddir@&$ac_builddir&;t t 20572s&@abs_builddir@&$ac_abs_builddir&;t t 20573s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20574s&@INSTALL@&$ac_INSTALL&;t t 20575s&@MKDIR_P@&$ac_MKDIR_P&;t t 20576$ac_datarootdir_hack 20577" 20578eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20579 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20580 20581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20582 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20584 "$ac_tmp/out"`; test -z "$ac_out"; } && 20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20586which seems to be undefined. Please make sure it is defined" >&5 20587$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20588which seems to be undefined. Please make sure it is defined" >&2;} 20589 20590 rm -f "$ac_tmp/stdin" 20591 case $ac_file in 20592 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20593 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20594 esac \ 20595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20596 ;; 20597 20598 20599 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20600$as_echo "$as_me: executing $ac_file commands" >&6;} 20601 ;; 20602 esac 20603 20604 20605 case $ac_file$ac_mode in 20606 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20607 # Older Autoconf quotes --file arguments for eval, but not when files 20608 # are listed without --file. Let's play safe and only enable the eval 20609 # if we detect the quoting. 20610 case $CONFIG_FILES in 20611 *\'*) eval set x "$CONFIG_FILES" ;; 20612 *) set x $CONFIG_FILES ;; 20613 esac 20614 shift 20615 for mf 20616 do 20617 # Strip MF so we end up with the name of the file. 20618 mf=`echo "$mf" | sed -e 's/:.*$//'` 20619 # Check whether this is an Automake generated Makefile or not. 20620 # We used to match only the files named 'Makefile.in', but 20621 # some people rename them; so instead we look at the file content. 20622 # Grep'ing the first line is not enough: some people post-process 20623 # each Makefile.in and add a new line on top of each file to say so. 20624 # Grep'ing the whole file is not good either: AIX grep has a line 20625 # limit of 2048, but all sed's we know have understand at least 4000. 20626 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20627 dirpart=`$as_dirname -- "$mf" || 20628$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20629 X"$mf" : 'X\(//\)[^/]' \| \ 20630 X"$mf" : 'X\(//\)$' \| \ 20631 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20632$as_echo X"$mf" | 20633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20634 s//\1/ 20635 q 20636 } 20637 /^X\(\/\/\)[^/].*/{ 20638 s//\1/ 20639 q 20640 } 20641 /^X\(\/\/\)$/{ 20642 s//\1/ 20643 q 20644 } 20645 /^X\(\/\).*/{ 20646 s//\1/ 20647 q 20648 } 20649 s/.*/./; q'` 20650 else 20651 continue 20652 fi 20653 # Extract the definition of DEPDIR, am__include, and am__quote 20654 # from the Makefile without running 'make'. 20655 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20656 test -z "$DEPDIR" && continue 20657 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20658 test -z "$am__include" && continue 20659 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20660 # Find all dependency output files, they are included files with 20661 # $(DEPDIR) in their names. We invoke sed twice because it is the 20662 # simplest approach to changing $(DEPDIR) to its actual value in the 20663 # expansion. 20664 for file in `sed -n " 20665 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20667 # Make sure the directory exists. 20668 test -f "$dirpart/$file" && continue 20669 fdir=`$as_dirname -- "$file" || 20670$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20671 X"$file" : 'X\(//\)[^/]' \| \ 20672 X"$file" : 'X\(//\)$' \| \ 20673 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20674$as_echo X"$file" | 20675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20676 s//\1/ 20677 q 20678 } 20679 /^X\(\/\/\)[^/].*/{ 20680 s//\1/ 20681 q 20682 } 20683 /^X\(\/\/\)$/{ 20684 s//\1/ 20685 q 20686 } 20687 /^X\(\/\).*/{ 20688 s//\1/ 20689 q 20690 } 20691 s/.*/./; q'` 20692 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20693 # echo "creating $dirpart/$file" 20694 echo '# dummy' > "$dirpart/$file" 20695 done 20696 done 20697} 20698 ;; 20699 "libtool":C) 20700 20701 # See if we are running on zsh, and set the options that allow our 20702 # commands through without removal of \ escapes. 20703 if test -n "${ZSH_VERSION+set}"; then 20704 setopt NO_GLOB_SUBST 20705 fi 20706 20707 cfgfile=${ofile}T 20708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20709 $RM "$cfgfile" 20710 20711 cat <<_LT_EOF >> "$cfgfile" 20712#! $SHELL 20713# Generated automatically by $as_me ($PACKAGE) $VERSION 20714# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20715# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20716 20717# Provide generalized library-building support services. 20718# Written by Gordon Matzigkeit, 1996 20719 20720# Copyright (C) 2014 Free Software Foundation, Inc. 20721# This is free software; see the source for copying conditions. There is NO 20722# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20723 20724# GNU Libtool is free software; you can redistribute it and/or modify 20725# it under the terms of the GNU General Public License as published by 20726# the Free Software Foundation; either version 2 of of the License, or 20727# (at your option) any later version. 20728# 20729# As a special exception to the GNU General Public License, if you 20730# distribute this file as part of a program or library that is built 20731# using GNU Libtool, you may include this file under the same 20732# distribution terms that you use for the rest of that program. 20733# 20734# GNU Libtool is distributed in the hope that it will be useful, but 20735# WITHOUT ANY WARRANTY; without even the implied warranty of 20736# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20737# GNU General Public License for more details. 20738# 20739# You should have received a copy of the GNU General Public License 20740# along with this program. If not, see <http://www.gnu.org/licenses/>. 20741 20742 20743# The names of the tagged configurations supported by this script. 20744available_tags='' 20745 20746# Configured defaults for sys_lib_dlsearch_path munging. 20747: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20748 20749# ### BEGIN LIBTOOL CONFIG 20750 20751# Which release of libtool.m4 was used? 20752macro_version=$macro_version 20753macro_revision=$macro_revision 20754 20755# Whether or not to build shared libraries. 20756build_libtool_libs=$enable_shared 20757 20758# Whether or not to build static libraries. 20759build_old_libs=$enable_static 20760 20761# What type of objects to build. 20762pic_mode=$pic_mode 20763 20764# Whether or not to optimize for fast installation. 20765fast_install=$enable_fast_install 20766 20767# Shared archive member basename,for filename based shared library versioning on AIX. 20768shared_archive_member_spec=$shared_archive_member_spec 20769 20770# Shell to use when invoking shell scripts. 20771SHELL=$lt_SHELL 20772 20773# An echo program that protects backslashes. 20774ECHO=$lt_ECHO 20775 20776# The PATH separator for the build system. 20777PATH_SEPARATOR=$lt_PATH_SEPARATOR 20778 20779# The host system. 20780host_alias=$host_alias 20781host=$host 20782host_os=$host_os 20783 20784# The build system. 20785build_alias=$build_alias 20786build=$build 20787build_os=$build_os 20788 20789# A sed program that does not truncate output. 20790SED=$lt_SED 20791 20792# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20793Xsed="\$SED -e 1s/^X//" 20794 20795# A grep program that handles long lines. 20796GREP=$lt_GREP 20797 20798# An ERE matcher. 20799EGREP=$lt_EGREP 20800 20801# A literal string matcher. 20802FGREP=$lt_FGREP 20803 20804# A BSD- or MS-compatible name lister. 20805NM=$lt_NM 20806 20807# Whether we need soft or hard links. 20808LN_S=$lt_LN_S 20809 20810# What is the maximum length of a command? 20811max_cmd_len=$max_cmd_len 20812 20813# Object file suffix (normally "o"). 20814objext=$ac_objext 20815 20816# Executable file suffix (normally ""). 20817exeext=$exeext 20818 20819# whether the shell understands "unset". 20820lt_unset=$lt_unset 20821 20822# turn spaces into newlines. 20823SP2NL=$lt_lt_SP2NL 20824 20825# turn newlines into spaces. 20826NL2SP=$lt_lt_NL2SP 20827 20828# convert \$build file names to \$host format. 20829to_host_file_cmd=$lt_cv_to_host_file_cmd 20830 20831# convert \$build files to toolchain format. 20832to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20833 20834# An object symbol dumper. 20835OBJDUMP=$lt_OBJDUMP 20836 20837# Method to check whether dependent libraries are shared objects. 20838deplibs_check_method=$lt_deplibs_check_method 20839 20840# Command to use when deplibs_check_method = "file_magic". 20841file_magic_cmd=$lt_file_magic_cmd 20842 20843# How to find potential files when deplibs_check_method = "file_magic". 20844file_magic_glob=$lt_file_magic_glob 20845 20846# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20847want_nocaseglob=$lt_want_nocaseglob 20848 20849# DLL creation program. 20850DLLTOOL=$lt_DLLTOOL 20851 20852# Command to associate shared and link libraries. 20853sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20854 20855# The archiver. 20856AR=$lt_AR 20857 20858# Flags to create an archive. 20859AR_FLAGS=$lt_AR_FLAGS 20860 20861# How to feed a file listing to the archiver. 20862archiver_list_spec=$lt_archiver_list_spec 20863 20864# A symbol stripping program. 20865STRIP=$lt_STRIP 20866 20867# Commands used to install an old-style archive. 20868RANLIB=$lt_RANLIB 20869old_postinstall_cmds=$lt_old_postinstall_cmds 20870old_postuninstall_cmds=$lt_old_postuninstall_cmds 20871 20872# Whether to use a lock for old archive extraction. 20873lock_old_archive_extraction=$lock_old_archive_extraction 20874 20875# A C compiler. 20876LTCC=$lt_CC 20877 20878# LTCC compiler flags. 20879LTCFLAGS=$lt_CFLAGS 20880 20881# Take the output of nm and produce a listing of raw symbols and C names. 20882global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20883 20884# Transform the output of nm in a proper C declaration. 20885global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20886 20887# Transform the output of nm into a list of symbols to manually relocate. 20888global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20889 20890# Transform the output of nm in a C name address pair. 20891global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20892 20893# Transform the output of nm in a C name address pair when lib prefix is needed. 20894global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20895 20896# The name lister interface. 20897nm_interface=$lt_lt_cv_nm_interface 20898 20899# Specify filename containing input files for \$NM. 20900nm_file_list_spec=$lt_nm_file_list_spec 20901 20902# The root where to search for dependent libraries,and where our libraries should be installed. 20903lt_sysroot=$lt_sysroot 20904 20905# Command to truncate a binary pipe. 20906lt_truncate_bin=$lt_lt_cv_truncate_bin 20907 20908# The name of the directory that contains temporary libtool files. 20909objdir=$objdir 20910 20911# Used to examine libraries when file_magic_cmd begins with "file". 20912MAGIC_CMD=$MAGIC_CMD 20913 20914# Must we lock files when doing compilation? 20915need_locks=$lt_need_locks 20916 20917# Manifest tool. 20918MANIFEST_TOOL=$lt_MANIFEST_TOOL 20919 20920# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20921DSYMUTIL=$lt_DSYMUTIL 20922 20923# Tool to change global to local symbols on Mac OS X. 20924NMEDIT=$lt_NMEDIT 20925 20926# Tool to manipulate fat objects and archives on Mac OS X. 20927LIPO=$lt_LIPO 20928 20929# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20930OTOOL=$lt_OTOOL 20931 20932# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20933OTOOL64=$lt_OTOOL64 20934 20935# Old archive suffix (normally "a"). 20936libext=$libext 20937 20938# Shared library suffix (normally ".so"). 20939shrext_cmds=$lt_shrext_cmds 20940 20941# The commands to extract the exported symbol list from a shared archive. 20942extract_expsyms_cmds=$lt_extract_expsyms_cmds 20943 20944# Variables whose values should be saved in libtool wrapper scripts and 20945# restored at link time. 20946variables_saved_for_relink=$lt_variables_saved_for_relink 20947 20948# Do we need the "lib" prefix for modules? 20949need_lib_prefix=$need_lib_prefix 20950 20951# Do we need a version for libraries? 20952need_version=$need_version 20953 20954# Library versioning type. 20955version_type=$version_type 20956 20957# Shared library runtime path variable. 20958runpath_var=$runpath_var 20959 20960# Shared library path variable. 20961shlibpath_var=$shlibpath_var 20962 20963# Is shlibpath searched before the hard-coded library search path? 20964shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20965 20966# Format of library name prefix. 20967libname_spec=$lt_libname_spec 20968 20969# List of archive names. First name is the real one, the rest are links. 20970# The last name is the one that the linker finds with -lNAME 20971library_names_spec=$lt_library_names_spec 20972 20973# The coded name of the library, if different from the real name. 20974soname_spec=$lt_soname_spec 20975 20976# Permission mode override for installation of shared libraries. 20977install_override_mode=$lt_install_override_mode 20978 20979# Command to use after installation of a shared archive. 20980postinstall_cmds=$lt_postinstall_cmds 20981 20982# Command to use after uninstallation of a shared archive. 20983postuninstall_cmds=$lt_postuninstall_cmds 20984 20985# Commands used to finish a libtool library installation in a directory. 20986finish_cmds=$lt_finish_cmds 20987 20988# As "finish_cmds", except a single script fragment to be evaled but 20989# not shown. 20990finish_eval=$lt_finish_eval 20991 20992# Whether we should hardcode library paths into libraries. 20993hardcode_into_libs=$hardcode_into_libs 20994 20995# Compile-time system search path for libraries. 20996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20997 20998# Detected run-time system search path for libraries. 20999sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21000 21001# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21002configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21003 21004# Whether dlopen is supported. 21005dlopen_support=$enable_dlopen 21006 21007# Whether dlopen of programs is supported. 21008dlopen_self=$enable_dlopen_self 21009 21010# Whether dlopen of statically linked programs is supported. 21011dlopen_self_static=$enable_dlopen_self_static 21012 21013# Commands to strip libraries. 21014old_striplib=$lt_old_striplib 21015striplib=$lt_striplib 21016 21017 21018# The linker used to build libraries. 21019LD=$lt_LD 21020 21021# How to create reloadable object files. 21022reload_flag=$lt_reload_flag 21023reload_cmds=$lt_reload_cmds 21024 21025# Commands used to build an old-style archive. 21026old_archive_cmds=$lt_old_archive_cmds 21027 21028# A language specific compiler. 21029CC=$lt_compiler 21030 21031# Is the compiler the GNU compiler? 21032with_gcc=$GCC 21033 21034# Compiler flag to turn off builtin functions. 21035no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21036 21037# Additional compiler flags for building library objects. 21038pic_flag=$lt_lt_prog_compiler_pic 21039 21040# How to pass a linker flag through the compiler. 21041wl=$lt_lt_prog_compiler_wl 21042 21043# Compiler flag to prevent dynamic linking. 21044link_static_flag=$lt_lt_prog_compiler_static 21045 21046# Does compiler simultaneously support -c and -o options? 21047compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21048 21049# Whether or not to add -lc for building shared libraries. 21050build_libtool_need_lc=$archive_cmds_need_lc 21051 21052# Whether or not to disallow shared libs when runtime libs are static. 21053allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21054 21055# Compiler flag to allow reflexive dlopens. 21056export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21057 21058# Compiler flag to generate shared objects directly from archives. 21059whole_archive_flag_spec=$lt_whole_archive_flag_spec 21060 21061# Whether the compiler copes with passing no objects directly. 21062compiler_needs_object=$lt_compiler_needs_object 21063 21064# Create an old-style archive from a shared archive. 21065old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21066 21067# Create a temporary old-style archive to link instead of a shared archive. 21068old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21069 21070# Commands used to build a shared archive. 21071archive_cmds=$lt_archive_cmds 21072archive_expsym_cmds=$lt_archive_expsym_cmds 21073 21074# Commands used to build a loadable module if different from building 21075# a shared archive. 21076module_cmds=$lt_module_cmds 21077module_expsym_cmds=$lt_module_expsym_cmds 21078 21079# Whether we are building with GNU ld or not. 21080with_gnu_ld=$lt_with_gnu_ld 21081 21082# Flag that allows shared libraries with undefined symbols to be built. 21083allow_undefined_flag=$lt_allow_undefined_flag 21084 21085# Flag that enforces no undefined symbols. 21086no_undefined_flag=$lt_no_undefined_flag 21087 21088# Flag to hardcode \$libdir into a binary during linking. 21089# This must work even if \$libdir does not exist 21090hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21091 21092# Whether we need a single "-rpath" flag with a separated argument. 21093hardcode_libdir_separator=$lt_hardcode_libdir_separator 21094 21095# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21096# DIR into the resulting binary. 21097hardcode_direct=$hardcode_direct 21098 21099# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21100# DIR into the resulting binary and the resulting library dependency is 21101# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21102# library is relocated. 21103hardcode_direct_absolute=$hardcode_direct_absolute 21104 21105# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21106# into the resulting binary. 21107hardcode_minus_L=$hardcode_minus_L 21108 21109# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21110# into the resulting binary. 21111hardcode_shlibpath_var=$hardcode_shlibpath_var 21112 21113# Set to "yes" if building a shared library automatically hardcodes DIR 21114# into the library and all subsequent libraries and executables linked 21115# against it. 21116hardcode_automatic=$hardcode_automatic 21117 21118# Set to yes if linker adds runtime paths of dependent libraries 21119# to runtime path list. 21120inherit_rpath=$inherit_rpath 21121 21122# Whether libtool must link a program against all its dependency libraries. 21123link_all_deplibs=$link_all_deplibs 21124 21125# Set to "yes" if exported symbols are required. 21126always_export_symbols=$always_export_symbols 21127 21128# The commands to list exported symbols. 21129export_symbols_cmds=$lt_export_symbols_cmds 21130 21131# Symbols that should not be listed in the preloaded symbols. 21132exclude_expsyms=$lt_exclude_expsyms 21133 21134# Symbols that must always be exported. 21135include_expsyms=$lt_include_expsyms 21136 21137# Commands necessary for linking programs (against libraries) with templates. 21138prelink_cmds=$lt_prelink_cmds 21139 21140# Commands necessary for finishing linking programs. 21141postlink_cmds=$lt_postlink_cmds 21142 21143# Specify filename containing input files. 21144file_list_spec=$lt_file_list_spec 21145 21146# How to hardcode a shared library path into an executable. 21147hardcode_action=$hardcode_action 21148 21149# ### END LIBTOOL CONFIG 21150 21151_LT_EOF 21152 21153 cat <<'_LT_EOF' >> "$cfgfile" 21154 21155# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21156 21157# func_munge_path_list VARIABLE PATH 21158# ----------------------------------- 21159# VARIABLE is name of variable containing _space_ separated list of 21160# directories to be munged by the contents of PATH, which is string 21161# having a format: 21162# "DIR[:DIR]:" 21163# string "DIR[ DIR]" will be prepended to VARIABLE 21164# ":DIR[:DIR]" 21165# string "DIR[ DIR]" will be appended to VARIABLE 21166# "DIRP[:DIRP]::[DIRA:]DIRA" 21167# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21168# "DIRA[ DIRA]" will be appended to VARIABLE 21169# "DIR[:DIR]" 21170# VARIABLE will be replaced by "DIR[ DIR]" 21171func_munge_path_list () 21172{ 21173 case x$2 in 21174 x) 21175 ;; 21176 *:) 21177 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21178 ;; 21179 x:*) 21180 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21181 ;; 21182 *::*) 21183 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21184 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21185 ;; 21186 *) 21187 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21188 ;; 21189 esac 21190} 21191 21192 21193# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21194func_cc_basename () 21195{ 21196 for cc_temp in $*""; do 21197 case $cc_temp in 21198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21200 \-*) ;; 21201 *) break;; 21202 esac 21203 done 21204 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21205} 21206 21207 21208# ### END FUNCTIONS SHARED WITH CONFIGURE 21209 21210_LT_EOF 21211 21212 case $host_os in 21213 aix3*) 21214 cat <<\_LT_EOF >> "$cfgfile" 21215# AIX sometimes has problems with the GCC collect2 program. For some 21216# reason, if we set the COLLECT_NAMES environment variable, the problems 21217# vanish in a puff of smoke. 21218if test set != "${COLLECT_NAMES+set}"; then 21219 COLLECT_NAMES= 21220 export COLLECT_NAMES 21221fi 21222_LT_EOF 21223 ;; 21224 esac 21225 21226 21227ltmain=$ac_aux_dir/ltmain.sh 21228 21229 21230 # We use sed instead of cat because bash on DJGPP gets confused if 21231 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21232 # text mode, it properly converts lines to CR/LF. This bash problem 21233 # is reportedly fixed, but why not run on old versions too? 21234 sed '$q' "$ltmain" >> "$cfgfile" \ 21235 || (rm -f "$cfgfile"; exit 1) 21236 21237 mv -f "$cfgfile" "$ofile" || 21238 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21239 chmod +x "$ofile" 21240 21241 ;; 21242 21243 esac 21244done # for ac_tag 21245 21246 21247as_fn_exit 0 21248_ACEOF 21249ac_clean_files=$ac_clean_files_save 21250 21251test $ac_write_fail = 0 || 21252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21253 21254 21255# configure is writing to config.log, and then calls config.status. 21256# config.status does its own redirection, appending to config.log. 21257# Unfortunately, on DOS this fails, as config.log is still kept open 21258# by configure, so config.status won't be able to write to it; its 21259# output is simply discarded. So we exec the FD to /dev/null, 21260# effectively closing config.log, so it can be properly (re)opened and 21261# appended to by config.status. When coming back to configure, we 21262# need to make the FD available again. 21263if test "$no_create" != yes; then 21264 ac_cs_success=: 21265 ac_config_status_args= 21266 test "$silent" = yes && 21267 ac_config_status_args="$ac_config_status_args --quiet" 21268 exec 5>/dev/null 21269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21270 exec 5>>config.log 21271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21272 # would make configure fail if this is the last instruction. 21273 $ac_cs_success || as_fn_exit 1 21274fi 21275if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21277$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21278fi 21279 21280