configure revision 7204935c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libxcb 1.12. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xcb 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libxcb' 593PACKAGE_TARNAME='libxcb' 594PACKAGE_VERSION='1.12' 595PACKAGE_STRING='libxcb 1.12' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb' 597PACKAGE_URL='' 598 599ac_unique_file="xcb.pc.in" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640XCB_SERVERSIDE_SUPPORT_FALSE 641XCB_SERVERSIDE_SUPPORT_TRUE 642LAUNCHD 643BUILD_XVMC_FALSE 644BUILD_XVMC_TRUE 645BUILD_XV_FALSE 646BUILD_XV_TRUE 647BUILD_XTEST_FALSE 648BUILD_XTEST_TRUE 649BUILD_SELINUX_FALSE 650BUILD_SELINUX_TRUE 651BUILD_XPRINT_FALSE 652BUILD_XPRINT_TRUE 653BUILD_XKB_FALSE 654BUILD_XKB_TRUE 655BUILD_XINPUT_FALSE 656BUILD_XINPUT_TRUE 657BUILD_XINERAMA_FALSE 658BUILD_XINERAMA_TRUE 659BUILD_XFREE86_DRI_FALSE 660BUILD_XFREE86_DRI_TRUE 661BUILD_XFIXES_FALSE 662BUILD_XFIXES_TRUE 663BUILD_XEVIE_FALSE 664BUILD_XEVIE_TRUE 665BUILD_SYNC_FALSE 666BUILD_SYNC_TRUE 667BUILD_SHM_FALSE 668BUILD_SHM_TRUE 669BUILD_SHAPE_FALSE 670BUILD_SHAPE_TRUE 671BUILD_SCREENSAVER_FALSE 672BUILD_SCREENSAVER_TRUE 673BUILD_RESOURCE_FALSE 674BUILD_RESOURCE_TRUE 675BUILD_RENDER_FALSE 676BUILD_RENDER_TRUE 677BUILD_RECORD_FALSE 678BUILD_RECORD_TRUE 679BUILD_RANDR_FALSE 680BUILD_RANDR_TRUE 681BUILD_PRESENT_FALSE 682BUILD_PRESENT_TRUE 683BUILD_GLX_FALSE 684BUILD_GLX_TRUE 685BUILD_DRI3_FALSE 686BUILD_DRI3_TRUE 687BUILD_DRI2_FALSE 688BUILD_DRI2_TRUE 689BUILD_DPMS_FALSE 690BUILD_DPMS_TRUE 691BUILD_DAMAGE_FALSE 692BUILD_DAMAGE_TRUE 693BUILD_COMPOSITE_FALSE 694BUILD_COMPOSITE_TRUE 695xcbincludedir 696XCB_HAVE_WIN32_FALSE 697XCB_HAVE_WIN32_TRUE 698lt_enable_auto_import 699XCBPROTO_XCBPYTHONDIR 700XCBPROTO_VERSION 701XCBPROTO_XCBINCLUDEDIR 702NEEDED 703XDMCP_LIBS 704XDMCP_CFLAGS 705NEEDED_LIBS 706NEEDED_CFLAGS 707XCBPROTO_LIBS 708XCBPROTO_CFLAGS 709HTML_CHECK_RESULT 710XSLTPROC 711HAVE_CHECK_FALSE 712HAVE_CHECK_TRUE 713CHECK_LIBS 714CHECK_CFLAGS 715HAVE_DOXYGEN_FALSE 716HAVE_DOXYGEN_TRUE 717HAVE_DOT_FALSE 718HAVE_DOT_TRUE 719HAVE_DOT 720DOT 721DOXYGEN 722ENABLE_DEVEL_DOCS_FALSE 723ENABLE_DEVEL_DOCS_TRUE 724MAN_SUBSTS 725XORG_MAN_PAGE 726ADMIN_MAN_DIR 727DRIVER_MAN_DIR 728MISC_MAN_DIR 729FILE_MAN_DIR 730LIB_MAN_DIR 731APP_MAN_DIR 732ADMIN_MAN_SUFFIX 733DRIVER_MAN_SUFFIX 734MISC_MAN_SUFFIX 735FILE_MAN_SUFFIX 736LIB_MAN_SUFFIX 737APP_MAN_SUFFIX 738INSTALL_CMD 739PKG_CONFIG_LIBDIR 740PKG_CONFIG_PATH 741PKG_CONFIG 742CHANGELOG_CMD 743STRICT_CFLAGS 744CWARNFLAGS 745BASE_CFLAGS 746LT_SYS_LIBRARY_PATH 747OTOOL64 748OTOOL 749LIPO 750NMEDIT 751DSYMUTIL 752MANIFEST_TOOL 753RANLIB 754ac_ct_AR 755AR 756LN_S 757NM 758ac_ct_DUMPBIN 759DUMPBIN 760LD 761FGREP 762SED 763host_os 764host_vendor 765host_cpu 766host 767build_os 768build_vendor 769build_cpu 770build 771LIBTOOL 772OBJDUMP 773DLLTOOL 774AS 775EGREP 776GREP 777CPP 778am__fastdepCC_FALSE 779am__fastdepCC_TRUE 780CCDEPMODE 781am__nodep 782AMDEPBACKSLASH 783AMDEP_FALSE 784AMDEP_TRUE 785am__quote 786am__include 787DEPDIR 788OBJEXT 789EXEEXT 790ac_ct_CC 791CPPFLAGS 792LDFLAGS 793CFLAGS 794CC 795pkgpyexecdir 796pyexecdir 797pkgpythondir 798pythondir 799PYTHON_PLATFORM 800PYTHON_EXEC_PREFIX 801PYTHON_PREFIX 802PYTHON_VERSION 803PYTHON 804AM_BACKSLASH 805AM_DEFAULT_VERBOSITY 806AM_DEFAULT_V 807AM_V 808am__untar 809am__tar 810AMTAR 811am__leading_dot 812SET_MAKE 813AWK 814mkdir_p 815MKDIR_P 816INSTALL_STRIP_PROGRAM 817STRIP 818install_sh 819MAKEINFO 820AUTOHEADER 821AUTOMAKE 822AUTOCONF 823ACLOCAL 824VERSION 825PACKAGE 826CYGPATH_W 827am__isrc 828INSTALL_DATA 829INSTALL_SCRIPT 830INSTALL_PROGRAM 831target_alias 832host_alias 833build_alias 834LIBS 835ECHO_T 836ECHO_N 837ECHO_C 838DEFS 839mandir 840localedir 841libdir 842psdir 843pdfdir 844dvidir 845htmldir 846infodir 847docdir 848oldincludedir 849includedir 850runstatedir 851localstatedir 852sharedstatedir 853sysconfdir 854datadir 855datarootdir 856libexecdir 857sbindir 858bindir 859program_transform_name 860prefix 861exec_prefix 862PACKAGE_URL 863PACKAGE_BUGREPORT 864PACKAGE_STRING 865PACKAGE_VERSION 866PACKAGE_TARNAME 867PACKAGE_NAME 868PATH_SEPARATOR 869SHELL' 870ac_subst_files='' 871ac_user_opts=' 872enable_option_checking 873enable_silent_rules 874enable_dependency_tracking 875enable_shared 876enable_static 877with_pic 878enable_fast_install 879with_aix_soname 880with_gnu_ld 881with_sysroot 882enable_libtool_lock 883enable_selective_werror 884enable_strict_compilation 885enable_devel_docs 886with_doxygen 887with_queue_size 888enable_composite 889enable_damage 890enable_dpms 891enable_dri2 892enable_dri3 893enable_glx 894enable_present 895enable_randr 896enable_record 897enable_render 898enable_resource 899enable_screensaver 900enable_shape 901enable_shm 902enable_sync 903enable_xevie 904enable_xfixes 905enable_xfree86_dri 906enable_xinerama 907enable_xinput 908enable_xkb 909enable_xprint 910enable_selinux 911enable_xtest 912enable_xv 913enable_xvmc 914with_launchd 915with_serverside_support 916' 917 ac_precious_vars='build_alias 918host_alias 919target_alias 920PYTHON 921CC 922CFLAGS 923LDFLAGS 924LIBS 925CPPFLAGS 926CPP 927LT_SYS_LIBRARY_PATH 928PKG_CONFIG 929PKG_CONFIG_PATH 930PKG_CONFIG_LIBDIR 931DOXYGEN 932DOT 933CHECK_CFLAGS 934CHECK_LIBS 935XCBPROTO_CFLAGS 936XCBPROTO_LIBS 937NEEDED_CFLAGS 938NEEDED_LIBS 939XDMCP_CFLAGS 940XDMCP_LIBS' 941 942 943# Initialize some variables set by options. 944ac_init_help= 945ac_init_version=false 946ac_unrecognized_opts= 947ac_unrecognized_sep= 948# The variables have the same names as the options, with 949# dashes changed to underlines. 950cache_file=/dev/null 951exec_prefix=NONE 952no_create= 953no_recursion= 954prefix=NONE 955program_prefix=NONE 956program_suffix=NONE 957program_transform_name=s,x,x, 958silent= 959site= 960srcdir= 961verbose= 962x_includes=NONE 963x_libraries=NONE 964 965# Installation directory options. 966# These are left unexpanded so users can "make install exec_prefix=/foo" 967# and all the variables that are supposed to be based on exec_prefix 968# by default will actually change. 969# Use braces instead of parens because sh, perl, etc. also accept them. 970# (The list follows the same order as the GNU Coding Standards.) 971bindir='${exec_prefix}/bin' 972sbindir='${exec_prefix}/sbin' 973libexecdir='${exec_prefix}/libexec' 974datarootdir='${prefix}/share' 975datadir='${datarootdir}' 976sysconfdir='${prefix}/etc' 977sharedstatedir='${prefix}/com' 978localstatedir='${prefix}/var' 979runstatedir='${localstatedir}/run' 980includedir='${prefix}/include' 981oldincludedir='/usr/include' 982docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 983infodir='${datarootdir}/info' 984htmldir='${docdir}' 985dvidir='${docdir}' 986pdfdir='${docdir}' 987psdir='${docdir}' 988libdir='${exec_prefix}/lib' 989localedir='${datarootdir}/locale' 990mandir='${datarootdir}/man' 991 992ac_prev= 993ac_dashdash= 994for ac_option 995do 996 # If the previous option needs an argument, assign it. 997 if test -n "$ac_prev"; then 998 eval $ac_prev=\$ac_option 999 ac_prev= 1000 continue 1001 fi 1002 1003 case $ac_option in 1004 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1005 *=) ac_optarg= ;; 1006 *) ac_optarg=yes ;; 1007 esac 1008 1009 # Accept the important Cygnus configure options, so we can diagnose typos. 1010 1011 case $ac_dashdash$ac_option in 1012 --) 1013 ac_dashdash=yes ;; 1014 1015 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1016 ac_prev=bindir ;; 1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1018 bindir=$ac_optarg ;; 1019 1020 -build | --build | --buil | --bui | --bu) 1021 ac_prev=build_alias ;; 1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1023 build_alias=$ac_optarg ;; 1024 1025 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1027 ac_prev=cache_file ;; 1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1030 cache_file=$ac_optarg ;; 1031 1032 --config-cache | -C) 1033 cache_file=config.cache ;; 1034 1035 -datadir | --datadir | --datadi | --datad) 1036 ac_prev=datadir ;; 1037 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1038 datadir=$ac_optarg ;; 1039 1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1041 | --dataroo | --dataro | --datar) 1042 ac_prev=datarootdir ;; 1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1045 datarootdir=$ac_optarg ;; 1046 1047 -disable-* | --disable-*) 1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1051 as_fn_error $? "invalid feature name: $ac_useropt" 1052 ac_useropt_orig=$ac_useropt 1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1054 case $ac_user_opts in 1055 *" 1056"enable_$ac_useropt" 1057"*) ;; 1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1059 ac_unrecognized_sep=', ';; 1060 esac 1061 eval enable_$ac_useropt=no ;; 1062 1063 -docdir | --docdir | --docdi | --doc | --do) 1064 ac_prev=docdir ;; 1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1066 docdir=$ac_optarg ;; 1067 1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1069 ac_prev=dvidir ;; 1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1071 dvidir=$ac_optarg ;; 1072 1073 -enable-* | --enable-*) 1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1077 as_fn_error $? "invalid feature name: $ac_useropt" 1078 ac_useropt_orig=$ac_useropt 1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1080 case $ac_user_opts in 1081 *" 1082"enable_$ac_useropt" 1083"*) ;; 1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1085 ac_unrecognized_sep=', ';; 1086 esac 1087 eval enable_$ac_useropt=\$ac_optarg ;; 1088 1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1091 | --exec | --exe | --ex) 1092 ac_prev=exec_prefix ;; 1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1095 | --exec=* | --exe=* | --ex=*) 1096 exec_prefix=$ac_optarg ;; 1097 1098 -gas | --gas | --ga | --g) 1099 # Obsolete; use --with-gas. 1100 with_gas=yes ;; 1101 1102 -help | --help | --hel | --he | -h) 1103 ac_init_help=long ;; 1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1105 ac_init_help=recursive ;; 1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1107 ac_init_help=short ;; 1108 1109 -host | --host | --hos | --ho) 1110 ac_prev=host_alias ;; 1111 -host=* | --host=* | --hos=* | --ho=*) 1112 host_alias=$ac_optarg ;; 1113 1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1115 ac_prev=htmldir ;; 1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1117 | --ht=*) 1118 htmldir=$ac_optarg ;; 1119 1120 -includedir | --includedir | --includedi | --included | --include \ 1121 | --includ | --inclu | --incl | --inc) 1122 ac_prev=includedir ;; 1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1124 | --includ=* | --inclu=* | --incl=* | --inc=*) 1125 includedir=$ac_optarg ;; 1126 1127 -infodir | --infodir | --infodi | --infod | --info | --inf) 1128 ac_prev=infodir ;; 1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1130 infodir=$ac_optarg ;; 1131 1132 -libdir | --libdir | --libdi | --libd) 1133 ac_prev=libdir ;; 1134 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1135 libdir=$ac_optarg ;; 1136 1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1138 | --libexe | --libex | --libe) 1139 ac_prev=libexecdir ;; 1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1141 | --libexe=* | --libex=* | --libe=*) 1142 libexecdir=$ac_optarg ;; 1143 1144 -localedir | --localedir | --localedi | --localed | --locale) 1145 ac_prev=localedir ;; 1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1147 localedir=$ac_optarg ;; 1148 1149 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1150 | --localstate | --localstat | --localsta | --localst | --locals) 1151 ac_prev=localstatedir ;; 1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1154 localstatedir=$ac_optarg ;; 1155 1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1157 ac_prev=mandir ;; 1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1159 mandir=$ac_optarg ;; 1160 1161 -nfp | --nfp | --nf) 1162 # Obsolete; use --without-fp. 1163 with_fp=no ;; 1164 1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1166 | --no-cr | --no-c | -n) 1167 no_create=yes ;; 1168 1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1171 no_recursion=yes ;; 1172 1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1175 | --oldin | --oldi | --old | --ol | --o) 1176 ac_prev=oldincludedir ;; 1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1180 oldincludedir=$ac_optarg ;; 1181 1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1183 ac_prev=prefix ;; 1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1185 prefix=$ac_optarg ;; 1186 1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1188 | --program-pre | --program-pr | --program-p) 1189 ac_prev=program_prefix ;; 1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1192 program_prefix=$ac_optarg ;; 1193 1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1195 | --program-suf | --program-su | --program-s) 1196 ac_prev=program_suffix ;; 1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1199 program_suffix=$ac_optarg ;; 1200 1201 -program-transform-name | --program-transform-name \ 1202 | --program-transform-nam | --program-transform-na \ 1203 | --program-transform-n | --program-transform- \ 1204 | --program-transform | --program-transfor \ 1205 | --program-transfo | --program-transf \ 1206 | --program-trans | --program-tran \ 1207 | --progr-tra | --program-tr | --program-t) 1208 ac_prev=program_transform_name ;; 1209 -program-transform-name=* | --program-transform-name=* \ 1210 | --program-transform-nam=* | --program-transform-na=* \ 1211 | --program-transform-n=* | --program-transform-=* \ 1212 | --program-transform=* | --program-transfor=* \ 1213 | --program-transfo=* | --program-transf=* \ 1214 | --program-trans=* | --program-tran=* \ 1215 | --progr-tra=* | --program-tr=* | --program-t=*) 1216 program_transform_name=$ac_optarg ;; 1217 1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1219 ac_prev=pdfdir ;; 1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1221 pdfdir=$ac_optarg ;; 1222 1223 -psdir | --psdir | --psdi | --psd | --ps) 1224 ac_prev=psdir ;; 1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1226 psdir=$ac_optarg ;; 1227 1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1229 | -silent | --silent | --silen | --sile | --sil) 1230 silent=yes ;; 1231 1232 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1233 | --runstate | --runstat | --runsta | --runst | --runs \ 1234 | --run | --ru | --r) 1235 ac_prev=runstatedir ;; 1236 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1237 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1238 | --run=* | --ru=* | --r=*) 1239 runstatedir=$ac_optarg ;; 1240 1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1242 ac_prev=sbindir ;; 1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1244 | --sbi=* | --sb=*) 1245 sbindir=$ac_optarg ;; 1246 1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1249 | --sharedst | --shareds | --shared | --share | --shar \ 1250 | --sha | --sh) 1251 ac_prev=sharedstatedir ;; 1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1255 | --sha=* | --sh=*) 1256 sharedstatedir=$ac_optarg ;; 1257 1258 -site | --site | --sit) 1259 ac_prev=site ;; 1260 -site=* | --site=* | --sit=*) 1261 site=$ac_optarg ;; 1262 1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1264 ac_prev=srcdir ;; 1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1266 srcdir=$ac_optarg ;; 1267 1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1269 | --syscon | --sysco | --sysc | --sys | --sy) 1270 ac_prev=sysconfdir ;; 1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1273 sysconfdir=$ac_optarg ;; 1274 1275 -target | --target | --targe | --targ | --tar | --ta | --t) 1276 ac_prev=target_alias ;; 1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1278 target_alias=$ac_optarg ;; 1279 1280 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1281 verbose=yes ;; 1282 1283 -version | --version | --versio | --versi | --vers | -V) 1284 ac_init_version=: ;; 1285 1286 -with-* | --with-*) 1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1290 as_fn_error $? "invalid package name: $ac_useropt" 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=\$ac_optarg ;; 1301 1302 -without-* | --without-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid package name: $ac_useropt" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=no ;; 1317 1318 --x) 1319 # Obsolete; use --with-x. 1320 with_x=yes ;; 1321 1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1323 | --x-incl | --x-inc | --x-in | --x-i) 1324 ac_prev=x_includes ;; 1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1327 x_includes=$ac_optarg ;; 1328 1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1331 ac_prev=x_libraries ;; 1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1334 x_libraries=$ac_optarg ;; 1335 1336 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1337Try \`$0 --help' for more information" 1338 ;; 1339 1340 *=*) 1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1342 # Reject names that are not valid shell variable names. 1343 case $ac_envvar in #( 1344 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1345 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1346 esac 1347 eval $ac_envvar=\$ac_optarg 1348 export $ac_envvar ;; 1349 1350 *) 1351 # FIXME: should be removed in autoconf 3.0. 1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1355 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1356 ;; 1357 1358 esac 1359done 1360 1361if test -n "$ac_prev"; then 1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1363 as_fn_error $? "missing argument to $ac_option" 1364fi 1365 1366if test -n "$ac_unrecognized_opts"; then 1367 case $enable_option_checking in 1368 no) ;; 1369 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1370 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1371 esac 1372fi 1373 1374# Check all directory arguments for consistency. 1375for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1376 datadir sysconfdir sharedstatedir localstatedir includedir \ 1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1378 libdir localedir mandir runstatedir 1379do 1380 eval ac_val=\$$ac_var 1381 # Remove trailing slashes. 1382 case $ac_val in 1383 */ ) 1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1385 eval $ac_var=\$ac_val;; 1386 esac 1387 # Be sure to have absolute directory names. 1388 case $ac_val in 1389 [\\/$]* | ?:[\\/]* ) continue;; 1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1391 esac 1392 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1393done 1394 1395# There might be people who depend on the old broken behavior: `$host' 1396# used to hold the argument of --host etc. 1397# FIXME: To remove some day. 1398build=$build_alias 1399host=$host_alias 1400target=$target_alias 1401 1402# FIXME: To remove some day. 1403if test "x$host_alias" != x; then 1404 if test "x$build_alias" = x; then 1405 cross_compiling=maybe 1406 elif test "x$build_alias" != "x$host_alias"; then 1407 cross_compiling=yes 1408 fi 1409fi 1410 1411ac_tool_prefix= 1412test -n "$host_alias" && ac_tool_prefix=$host_alias- 1413 1414test "$silent" = yes && exec 6>/dev/null 1415 1416 1417ac_pwd=`pwd` && test -n "$ac_pwd" && 1418ac_ls_di=`ls -di .` && 1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1420 as_fn_error $? "working directory cannot be determined" 1421test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1422 as_fn_error $? "pwd does not report name of working directory" 1423 1424 1425# Find the source files, if location was not specified. 1426if test -z "$srcdir"; then 1427 ac_srcdir_defaulted=yes 1428 # Try the directory containing this script, then the parent directory. 1429 ac_confdir=`$as_dirname -- "$as_myself" || 1430$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1431 X"$as_myself" : 'X\(//\)[^/]' \| \ 1432 X"$as_myself" : 'X\(//\)$' \| \ 1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1434$as_echo X"$as_myself" | 1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\/\)[^/].*/{ 1440 s//\1/ 1441 q 1442 } 1443 /^X\(\/\/\)$/{ 1444 s//\1/ 1445 q 1446 } 1447 /^X\(\/\).*/{ 1448 s//\1/ 1449 q 1450 } 1451 s/.*/./; q'` 1452 srcdir=$ac_confdir 1453 if test ! -r "$srcdir/$ac_unique_file"; then 1454 srcdir=.. 1455 fi 1456else 1457 ac_srcdir_defaulted=no 1458fi 1459if test ! -r "$srcdir/$ac_unique_file"; then 1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1461 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1462fi 1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1464ac_abs_confdir=`( 1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1466 pwd)` 1467# When building in place, set srcdir=. 1468if test "$ac_abs_confdir" = "$ac_pwd"; then 1469 srcdir=. 1470fi 1471# Remove unnecessary trailing slashes from srcdir. 1472# Double slashes in file names in object file debugging info 1473# mess up M-x gdb in Emacs. 1474case $srcdir in 1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1476esac 1477for ac_var in $ac_precious_vars; do 1478 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1479 eval ac_env_${ac_var}_value=\$${ac_var} 1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1481 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1482done 1483 1484# 1485# Report the --help message. 1486# 1487if test "$ac_init_help" = "long"; then 1488 # Omit some internal or obsolete options to make the list less imposing. 1489 # This message is too long to be a string in the A/UX 3.1 sh. 1490 cat <<_ACEOF 1491\`configure' configures libxcb 1.12 to adapt to many kinds of systems. 1492 1493Usage: $0 [OPTION]... [VAR=VALUE]... 1494 1495To assign environment variables (e.g., CC, CFLAGS...), specify them as 1496VAR=VALUE. See below for descriptions of some of the useful variables. 1497 1498Defaults for the options are specified in brackets. 1499 1500Configuration: 1501 -h, --help display this help and exit 1502 --help=short display options specific to this package 1503 --help=recursive display the short help of all the included packages 1504 -V, --version display version information and exit 1505 -q, --quiet, --silent do not print \`checking ...' messages 1506 --cache-file=FILE cache test results in FILE [disabled] 1507 -C, --config-cache alias for \`--cache-file=config.cache' 1508 -n, --no-create do not create output files 1509 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1510 1511Installation directories: 1512 --prefix=PREFIX install architecture-independent files in PREFIX 1513 [$ac_default_prefix] 1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1515 [PREFIX] 1516 1517By default, \`make install' will install all the files in 1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1519an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1520for instance \`--prefix=\$HOME'. 1521 1522For better control, use the options below. 1523 1524Fine tuning of the installation directories: 1525 --bindir=DIR user executables [EPREFIX/bin] 1526 --sbindir=DIR system admin executables [EPREFIX/sbin] 1527 --libexecdir=DIR program executables [EPREFIX/libexec] 1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1531 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1532 --libdir=DIR object code libraries [EPREFIX/lib] 1533 --includedir=DIR C header files [PREFIX/include] 1534 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1537 --infodir=DIR info documentation [DATAROOTDIR/info] 1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1539 --mandir=DIR man documentation [DATAROOTDIR/man] 1540 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb] 1541 --htmldir=DIR html documentation [DOCDIR] 1542 --dvidir=DIR dvi documentation [DOCDIR] 1543 --pdfdir=DIR pdf documentation [DOCDIR] 1544 --psdir=DIR ps documentation [DOCDIR] 1545_ACEOF 1546 1547 cat <<\_ACEOF 1548 1549Program names: 1550 --program-prefix=PREFIX prepend PREFIX to installed program names 1551 --program-suffix=SUFFIX append SUFFIX to installed program names 1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1553 1554System types: 1555 --build=BUILD configure for building on BUILD [guessed] 1556 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1557_ACEOF 1558fi 1559 1560if test -n "$ac_init_help"; then 1561 case $ac_init_help in 1562 short | recursive ) echo "Configuration of libxcb 1.12:";; 1563 esac 1564 cat <<\_ACEOF 1565 1566Optional Features: 1567 --disable-option-checking ignore unrecognized --enable/--with options 1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1570 --enable-silent-rules less verbose build output (undo: "make V=1") 1571 --disable-silent-rules verbose build output (undo: "make V=0") 1572 --enable-dependency-tracking 1573 do not reject slow dependency extractors 1574 --disable-dependency-tracking 1575 speeds up one-time build 1576 --enable-shared[=PKGS] build shared libraries [default=yes] 1577 --enable-static[=PKGS] build static libraries [default=yes] 1578 --enable-fast-install[=PKGS] 1579 optimize for fast installation [default=yes] 1580 --disable-libtool-lock avoid locking (might break parallel builds) 1581 --disable-selective-werror 1582 Turn off selective compiler errors. (default: 1583 enabled) 1584 --enable-strict-compilation 1585 Enable all warnings from compiler and make them 1586 errors (default: disabled) 1587 --enable-devel-docs Enable building the developer documentation 1588 (default: yes) 1589 --enable-composite Build XCB Composite Extension (default: yes) 1590 --enable-damage Build XCB Damage Extension (default: yes) 1591 --enable-dpms Build XCB DPMS Extension (default: yes) 1592 --enable-dri2 Build XCB DRI2 Extension (default: yes) 1593 --enable-dri3 Build XCB DRI3 Extension (default: auto) 1594 --enable-glx Build XCB GLX Extension (default: yes) 1595 --enable-present Build XCB Present Extension (default: yes) 1596 --enable-randr Build XCB RandR Extension (default: yes) 1597 --enable-record Build XCB Record Extension (default: yes) 1598 --enable-render Build XCB Render Extension (default: yes) 1599 --enable-resource Build XCB Resource Extension (default: yes) 1600 --enable-screensaver Build XCB Screensaver Extension (default: yes) 1601 --enable-shape Build XCB Shape Extension (default: yes) 1602 --enable-shm Build XCB Shm Extension (default: yes) 1603 --enable-sync Build XCB Sync Extension (default: yes) 1604 --enable-xevie Build XCB Xevie Extension (default: no) 1605 --enable-xfixes Build XCB XFixes Extension (default: yes) 1606 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: yes) 1607 --enable-xinerama Build XCB Xinerama Extension (default: yes) 1608 --enable-xinput Build XCB XInput Extension (default: no) 1609 --enable-xkb Build XCB XKB Extension (default: yes) 1610 --enable-xprint Build XCB Xprint Extension (default: no) 1611 --enable-selinux Build XCB SELinux Extension (default: no) 1612 --enable-xtest Build XCB XTest Extension (default: yes) 1613 --enable-xv Build XCB Xv Extension (default: yes) 1614 --enable-xvmc Build XCB XvMC Extension (default: yes) 1615 1616Optional Packages: 1617 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1618 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1619 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1620 both] 1621 --with-aix-soname=aix|svr4|both 1622 shared library versioning (aka "SONAME") variant to 1623 provide on AIX, [default=aix]. 1624 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1625 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1626 compiler's sysroot if not specified). 1627 --with-doxygen Use doxygen to regenerate documentation (default: 1628 auto) 1629 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384) 1630 --with-launchd Build with support for Apple's launchd (default: 1631 auto) 1632 --with-serverside-support 1633 Build with support for server-side usage of xcb. 1634 This is still EXPERIMENTAL! ABI/API may change! 1635 (default: no) 1636 1637Some influential environment variables: 1638 PYTHON the Python interpreter 1639 CC C compiler command 1640 CFLAGS C compiler flags 1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1642 nonstandard directory <lib dir> 1643 LIBS libraries to pass to the linker, e.g. -l<library> 1644 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1645 you have headers in a nonstandard directory <include dir> 1646 CPP C preprocessor 1647 LT_SYS_LIBRARY_PATH 1648 User-defined run-time library search path. 1649 PKG_CONFIG path to pkg-config utility 1650 PKG_CONFIG_PATH 1651 directories to add to pkg-config's search path 1652 PKG_CONFIG_LIBDIR 1653 path overriding pkg-config's built-in search path 1654 DOXYGEN Path to doxygen command 1655 DOT Path to the dot graphics utility 1656 CHECK_CFLAGS 1657 C compiler flags for CHECK, overriding pkg-config 1658 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1659 XCBPROTO_CFLAGS 1660 C compiler flags for XCBPROTO, overriding pkg-config 1661 XCBPROTO_LIBS 1662 linker flags for XCBPROTO, overriding pkg-config 1663 NEEDED_CFLAGS 1664 C compiler flags for NEEDED, overriding pkg-config 1665 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config 1666 XDMCP_CFLAGS 1667 C compiler flags for XDMCP, overriding pkg-config 1668 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1669 1670Use these variables to override the choices made by `configure' or to help 1671it to find libraries and programs with nonstandard names/locations. 1672 1673Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>. 1674_ACEOF 1675ac_status=$? 1676fi 1677 1678if test "$ac_init_help" = "recursive"; then 1679 # If there are subdirs, report their specific --help. 1680 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1681 test -d "$ac_dir" || 1682 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1683 continue 1684 ac_builddir=. 1685 1686case "$ac_dir" in 1687.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1688*) 1689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1690 # A ".." for each directory in $ac_dir_suffix. 1691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1692 case $ac_top_builddir_sub in 1693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1695 esac ;; 1696esac 1697ac_abs_top_builddir=$ac_pwd 1698ac_abs_builddir=$ac_pwd$ac_dir_suffix 1699# for backward compatibility: 1700ac_top_builddir=$ac_top_build_prefix 1701 1702case $srcdir in 1703 .) # We are building in place. 1704 ac_srcdir=. 1705 ac_top_srcdir=$ac_top_builddir_sub 1706 ac_abs_top_srcdir=$ac_pwd ;; 1707 [\\/]* | ?:[\\/]* ) # Absolute name. 1708 ac_srcdir=$srcdir$ac_dir_suffix; 1709 ac_top_srcdir=$srcdir 1710 ac_abs_top_srcdir=$srcdir ;; 1711 *) # Relative name. 1712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1713 ac_top_srcdir=$ac_top_build_prefix$srcdir 1714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1715esac 1716ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1717 1718 cd "$ac_dir" || { ac_status=$?; continue; } 1719 # Check for guested configure. 1720 if test -f "$ac_srcdir/configure.gnu"; then 1721 echo && 1722 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1723 elif test -f "$ac_srcdir/configure"; then 1724 echo && 1725 $SHELL "$ac_srcdir/configure" --help=recursive 1726 else 1727 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1728 fi || ac_status=$? 1729 cd "$ac_pwd" || { ac_status=$?; break; } 1730 done 1731fi 1732 1733test -n "$ac_init_help" && exit $ac_status 1734if $ac_init_version; then 1735 cat <<\_ACEOF 1736libxcb configure 1.12 1737generated by GNU Autoconf 2.69 1738 1739Copyright (C) 2012 Free Software Foundation, Inc. 1740This configure script is free software; the Free Software Foundation 1741gives unlimited permission to copy, distribute and modify it. 1742_ACEOF 1743 exit 1744fi 1745 1746## ------------------------ ## 1747## Autoconf initialization. ## 1748## ------------------------ ## 1749 1750# ac_fn_c_try_compile LINENO 1751# -------------------------- 1752# Try to compile conftest.$ac_ext, and return whether this succeeded. 1753ac_fn_c_try_compile () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 rm -f conftest.$ac_objext 1757 if { { ac_try="$ac_compile" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_compile") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { 1773 test -z "$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 } && test -s conftest.$ac_objext; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_compile 1787 1788# ac_fn_c_try_cpp LINENO 1789# ---------------------- 1790# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_cpp () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 if { { ac_try="$ac_cpp conftest.$ac_ext" 1795case "(($ac_try" in 1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1797 *) ac_try_echo=$ac_try;; 1798esac 1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1800$as_echo "$ac_try_echo"; } >&5 1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1802 ac_status=$? 1803 if test -s conftest.err; then 1804 grep -v '^ *+' conftest.err >conftest.er1 1805 cat conftest.er1 >&5 1806 mv -f conftest.er1 conftest.err 1807 fi 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } > conftest.i && { 1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1811 test ! -s conftest.err 1812 }; then : 1813 ac_retval=0 1814else 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=1 1819fi 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_cpp 1824 1825# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1826# ------------------------------------------------------- 1827# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1828# the include files in INCLUDES and setting the cache variable VAR 1829# accordingly. 1830ac_fn_c_check_header_mongrel () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if eval \${$3+:} false; then : 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835$as_echo_n "checking for $2... " >&6; } 1836if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838fi 1839eval ac_res=\$$3 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841$as_echo "$ac_res" >&6; } 1842else 1843 # Is the header compilable? 1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1845$as_echo_n "checking $2 usability... " >&6; } 1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848$4 1849#include <$2> 1850_ACEOF 1851if ac_fn_c_try_compile "$LINENO"; then : 1852 ac_header_compiler=yes 1853else 1854 ac_header_compiler=no 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1858$as_echo "$ac_header_compiler" >&6; } 1859 1860# Is the header present? 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1862$as_echo_n "checking $2 presence... " >&6; } 1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865#include <$2> 1866_ACEOF 1867if ac_fn_c_try_cpp "$LINENO"; then : 1868 ac_header_preproc=yes 1869else 1870 ac_header_preproc=no 1871fi 1872rm -f conftest.err conftest.i conftest.$ac_ext 1873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1874$as_echo "$ac_header_preproc" >&6; } 1875 1876# So? What about this header? 1877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1878 yes:no: ) 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1880$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1883 ;; 1884 no:yes:* ) 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1886$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1888$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1890$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1892$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1895( $as_echo "## --------------------------------------------------------------------- ## 1896## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ## 1897## --------------------------------------------------------------------- ##" 1898 ) | sed "s/^/$as_me: WARNING: /" >&2 1899 ;; 1900esac 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1902$as_echo_n "checking for $2... " >&6; } 1903if eval \${$3+:} false; then : 1904 $as_echo_n "(cached) " >&6 1905else 1906 eval "$3=\$ac_header_compiler" 1907fi 1908eval ac_res=\$$3 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1910$as_echo "$ac_res" >&6; } 1911fi 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 1914} # ac_fn_c_check_header_mongrel 1915 1916# ac_fn_c_try_run LINENO 1917# ---------------------- 1918# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1919# that executables *can* be run. 1920ac_fn_c_try_run () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 if { { ac_try="$ac_link" 1924case "(($ac_try" in 1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1926 *) ac_try_echo=$ac_try;; 1927esac 1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1929$as_echo "$ac_try_echo"; } >&5 1930 (eval "$ac_link") 2>&5 1931 ac_status=$? 1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1933 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1934 { { case "(($ac_try" in 1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1936 *) ac_try_echo=$ac_try;; 1937esac 1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1939$as_echo "$ac_try_echo"; } >&5 1940 (eval "$ac_try") 2>&5 1941 ac_status=$? 1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1943 test $ac_status = 0; }; }; then : 1944 ac_retval=0 1945else 1946 $as_echo "$as_me: program exited with status $ac_status" >&5 1947 $as_echo "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=$ac_status 1951fi 1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956} # ac_fn_c_try_run 1957 1958# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1959# ------------------------------------------------------- 1960# Tests whether HEADER exists and can be compiled using the include files in 1961# INCLUDES, setting the cache variable VAR accordingly. 1962ac_fn_c_check_header_compile () 1963{ 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1966$as_echo_n "checking for $2... " >&6; } 1967if eval \${$3+:} false; then : 1968 $as_echo_n "(cached) " >&6 1969else 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972$4 1973#include <$2> 1974_ACEOF 1975if ac_fn_c_try_compile "$LINENO"; then : 1976 eval "$3=yes" 1977else 1978 eval "$3=no" 1979fi 1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_header_compile 1988 1989# ac_fn_c_try_link LINENO 1990# ----------------------- 1991# Try to link conftest.$ac_ext, and return whether this succeeded. 1992ac_fn_c_try_link () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 rm -f conftest.$ac_objext conftest$ac_exeext 1996 if { { ac_try="$ac_link" 1997case "(($ac_try" in 1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1999 *) ac_try_echo=$ac_try;; 2000esac 2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2002$as_echo "$ac_try_echo"; } >&5 2003 (eval "$ac_link") 2>conftest.err 2004 ac_status=$? 2005 if test -s conftest.err; then 2006 grep -v '^ *+' conftest.err >conftest.er1 2007 cat conftest.er1 >&5 2008 mv -f conftest.er1 conftest.err 2009 fi 2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2011 test $ac_status = 0; } && { 2012 test -z "$ac_c_werror_flag" || 2013 test ! -s conftest.err 2014 } && test -s conftest$ac_exeext && { 2015 test "$cross_compiling" = yes || 2016 test -x conftest$ac_exeext 2017 }; then : 2018 ac_retval=0 2019else 2020 $as_echo "$as_me: failed program was:" >&5 2021sed 's/^/| /' conftest.$ac_ext >&5 2022 2023 ac_retval=1 2024fi 2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2027 # interfere with the next link command; also delete a directory that is 2028 # left behind by Apple's compiler. We do this before executing the actions. 2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 as_fn_set_status $ac_retval 2032 2033} # ac_fn_c_try_link 2034 2035# ac_fn_c_check_func LINENO FUNC VAR 2036# ---------------------------------- 2037# Tests whether FUNC exists, setting the cache variable VAR accordingly 2038ac_fn_c_check_func () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2042$as_echo_n "checking for $2... " >&6; } 2043if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2050#define $2 innocuous_$2 2051 2052/* System header to define __stub macros and hopefully few prototypes, 2053 which can conflict with char $2 (); below. 2054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2055 <limits.h> exists even on freestanding compilers. */ 2056 2057#ifdef __STDC__ 2058# include <limits.h> 2059#else 2060# include <assert.h> 2061#endif 2062 2063#undef $2 2064 2065/* Override any GCC internal prototype to avoid an error. 2066 Use char because int might match the return type of a GCC 2067 builtin and then its argument prototype would still apply. */ 2068#ifdef __cplusplus 2069extern "C" 2070#endif 2071char $2 (); 2072/* The GNU C library defines this for functions which it implements 2073 to always fail with ENOSYS. Some functions are actually named 2074 something starting with __ and the normal name is an alias. */ 2075#if defined __stub_$2 || defined __stub___$2 2076choke me 2077#endif 2078 2079int 2080main () 2081{ 2082return $2 (); 2083 ; 2084 return 0; 2085} 2086_ACEOF 2087if ac_fn_c_try_link "$LINENO"; then : 2088 eval "$3=yes" 2089else 2090 eval "$3=no" 2091fi 2092rm -f core conftest.err conftest.$ac_objext \ 2093 conftest$ac_exeext conftest.$ac_ext 2094fi 2095eval ac_res=\$$3 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2097$as_echo "$ac_res" >&6; } 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 2100} # ac_fn_c_check_func 2101 2102# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2103# --------------------------------------------- 2104# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2105# accordingly. 2106ac_fn_c_check_decl () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 as_decl_name=`echo $2|sed 's/ *(.*//'` 2110 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2112$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2113if eval \${$3+:} false; then : 2114 $as_echo_n "(cached) " >&6 2115else 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119int 2120main () 2121{ 2122#ifndef $as_decl_name 2123#ifdef __cplusplus 2124 (void) $as_decl_use; 2125#else 2126 (void) $as_decl_name; 2127#endif 2128#endif 2129 2130 ; 2131 return 0; 2132} 2133_ACEOF 2134if ac_fn_c_try_compile "$LINENO"; then : 2135 eval "$3=yes" 2136else 2137 eval "$3=no" 2138fi 2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2140fi 2141eval ac_res=\$$3 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2143$as_echo "$ac_res" >&6; } 2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2145 2146} # ac_fn_c_check_decl 2147 2148# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2149# ---------------------------------------------------- 2150# Tries to find if the field MEMBER exists in type AGGR, after including 2151# INCLUDES, setting cache variable VAR accordingly. 2152ac_fn_c_check_member () 2153{ 2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2156$as_echo_n "checking for $2.$3... " >&6; } 2157if eval \${$4+:} false; then : 2158 $as_echo_n "(cached) " >&6 2159else 2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161/* end confdefs.h. */ 2162$5 2163int 2164main () 2165{ 2166static $2 ac_aggr; 2167if (ac_aggr.$3) 2168return 0; 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173if ac_fn_c_try_compile "$LINENO"; then : 2174 eval "$4=yes" 2175else 2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2177/* end confdefs.h. */ 2178$5 2179int 2180main () 2181{ 2182static $2 ac_aggr; 2183if (sizeof ac_aggr.$3) 2184return 0; 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 eval "$4=yes" 2191else 2192 eval "$4=no" 2193fi 2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197fi 2198eval ac_res=\$$4 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2200$as_echo "$ac_res" >&6; } 2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2202 2203} # ac_fn_c_check_member 2204cat >config.log <<_ACEOF 2205This file contains any messages produced by compilers while 2206running configure, to aid debugging if configure makes a mistake. 2207 2208It was created by libxcb $as_me 1.12, which was 2209generated by GNU Autoconf 2.69. Invocation command line was 2210 2211 $ $0 $@ 2212 2213_ACEOF 2214exec 5>>config.log 2215{ 2216cat <<_ASUNAME 2217## --------- ## 2218## Platform. ## 2219## --------- ## 2220 2221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2222uname -m = `(uname -m) 2>/dev/null || echo unknown` 2223uname -r = `(uname -r) 2>/dev/null || echo unknown` 2224uname -s = `(uname -s) 2>/dev/null || echo unknown` 2225uname -v = `(uname -v) 2>/dev/null || echo unknown` 2226 2227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2228/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2229 2230/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2231/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2233/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2234/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2235/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2236/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2237 2238_ASUNAME 2239 2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241for as_dir in $PATH 2242do 2243 IFS=$as_save_IFS 2244 test -z "$as_dir" && as_dir=. 2245 $as_echo "PATH: $as_dir" 2246 done 2247IFS=$as_save_IFS 2248 2249} >&5 2250 2251cat >&5 <<_ACEOF 2252 2253 2254## ----------- ## 2255## Core tests. ## 2256## ----------- ## 2257 2258_ACEOF 2259 2260 2261# Keep a trace of the command line. 2262# Strip out --no-create and --no-recursion so they do not pile up. 2263# Strip out --silent because we don't want to record it for future runs. 2264# Also quote any args containing shell meta-characters. 2265# Make two passes to allow for proper duplicate-argument suppression. 2266ac_configure_args= 2267ac_configure_args0= 2268ac_configure_args1= 2269ac_must_keep_next=false 2270for ac_pass in 1 2 2271do 2272 for ac_arg 2273 do 2274 case $ac_arg in 2275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2277 | -silent | --silent | --silen | --sile | --sil) 2278 continue ;; 2279 *\'*) 2280 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2281 esac 2282 case $ac_pass in 2283 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2284 2) 2285 as_fn_append ac_configure_args1 " '$ac_arg'" 2286 if test $ac_must_keep_next = true; then 2287 ac_must_keep_next=false # Got value, back to normal. 2288 else 2289 case $ac_arg in 2290 *=* | --config-cache | -C | -disable-* | --disable-* \ 2291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2293 | -with-* | --with-* | -without-* | --without-* | --x) 2294 case "$ac_configure_args0 " in 2295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2296 esac 2297 ;; 2298 -* ) ac_must_keep_next=true ;; 2299 esac 2300 fi 2301 as_fn_append ac_configure_args " '$ac_arg'" 2302 ;; 2303 esac 2304 done 2305done 2306{ ac_configure_args0=; unset ac_configure_args0;} 2307{ ac_configure_args1=; unset ac_configure_args1;} 2308 2309# When interrupted or exit'd, cleanup temporary files, and complete 2310# config.log. We remove comments because anyway the quotes in there 2311# would cause problems or look ugly. 2312# WARNING: Use '\'' to represent an apostrophe within the trap. 2313# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2314trap 'exit_status=$? 2315 # Save into config.log some information that might help in debugging. 2316 { 2317 echo 2318 2319 $as_echo "## ---------------- ## 2320## Cache variables. ## 2321## ---------------- ##" 2322 echo 2323 # The following way of writing the cache mishandles newlines in values, 2324( 2325 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2326 eval ac_val=\$$ac_var 2327 case $ac_val in #( 2328 *${as_nl}*) 2329 case $ac_var in #( 2330 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2332 esac 2333 case $ac_var in #( 2334 _ | IFS | as_nl) ;; #( 2335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2336 *) { eval $ac_var=; unset $ac_var;} ;; 2337 esac ;; 2338 esac 2339 done 2340 (set) 2>&1 | 2341 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2342 *${as_nl}ac_space=\ *) 2343 sed -n \ 2344 "s/'\''/'\''\\\\'\'''\''/g; 2345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2346 ;; #( 2347 *) 2348 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2349 ;; 2350 esac | 2351 sort 2352) 2353 echo 2354 2355 $as_echo "## ----------------- ## 2356## Output variables. ## 2357## ----------------- ##" 2358 echo 2359 for ac_var in $ac_subst_vars 2360 do 2361 eval ac_val=\$$ac_var 2362 case $ac_val in 2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2364 esac 2365 $as_echo "$ac_var='\''$ac_val'\''" 2366 done | sort 2367 echo 2368 2369 if test -n "$ac_subst_files"; then 2370 $as_echo "## ------------------- ## 2371## File substitutions. ## 2372## ------------------- ##" 2373 echo 2374 for ac_var in $ac_subst_files 2375 do 2376 eval ac_val=\$$ac_var 2377 case $ac_val in 2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2379 esac 2380 $as_echo "$ac_var='\''$ac_val'\''" 2381 done | sort 2382 echo 2383 fi 2384 2385 if test -s confdefs.h; then 2386 $as_echo "## ----------- ## 2387## confdefs.h. ## 2388## ----------- ##" 2389 echo 2390 cat confdefs.h 2391 echo 2392 fi 2393 test "$ac_signal" != 0 && 2394 $as_echo "$as_me: caught signal $ac_signal" 2395 $as_echo "$as_me: exit $exit_status" 2396 } >&5 2397 rm -f core *.core core.conftest.* && 2398 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2399 exit $exit_status 2400' 0 2401for ac_signal in 1 2 13 15; do 2402 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2403done 2404ac_signal=0 2405 2406# confdefs.h avoids OS command line length limits that DEFS can exceed. 2407rm -f -r conftest* confdefs.h 2408 2409$as_echo "/* confdefs.h */" > confdefs.h 2410 2411# Predefined preprocessor variables. 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_NAME "$PACKAGE_NAME" 2415_ACEOF 2416 2417cat >>confdefs.h <<_ACEOF 2418#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2419_ACEOF 2420 2421cat >>confdefs.h <<_ACEOF 2422#define PACKAGE_VERSION "$PACKAGE_VERSION" 2423_ACEOF 2424 2425cat >>confdefs.h <<_ACEOF 2426#define PACKAGE_STRING "$PACKAGE_STRING" 2427_ACEOF 2428 2429cat >>confdefs.h <<_ACEOF 2430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2431_ACEOF 2432 2433cat >>confdefs.h <<_ACEOF 2434#define PACKAGE_URL "$PACKAGE_URL" 2435_ACEOF 2436 2437 2438# Let the site file select an alternate cache file if it wants to. 2439# Prefer an explicitly selected file to automatically selected ones. 2440ac_site_file1=NONE 2441ac_site_file2=NONE 2442if test -n "$CONFIG_SITE"; then 2443 # We do not want a PATH search for config.site. 2444 case $CONFIG_SITE in #(( 2445 -*) ac_site_file1=./$CONFIG_SITE;; 2446 */*) ac_site_file1=$CONFIG_SITE;; 2447 *) ac_site_file1=./$CONFIG_SITE;; 2448 esac 2449elif test "x$prefix" != xNONE; then 2450 ac_site_file1=$prefix/share/config.site 2451 ac_site_file2=$prefix/etc/config.site 2452else 2453 ac_site_file1=$ac_default_prefix/share/config.site 2454 ac_site_file2=$ac_default_prefix/etc/config.site 2455fi 2456for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2457do 2458 test "x$ac_site_file" = xNONE && continue 2459 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2461$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2462 sed 's/^/| /' "$ac_site_file" >&5 2463 . "$ac_site_file" \ 2464 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2466as_fn_error $? "failed to load site script $ac_site_file 2467See \`config.log' for more details" "$LINENO" 5; } 2468 fi 2469done 2470 2471if test -r "$cache_file"; then 2472 # Some versions of bash will fail to source /dev/null (special files 2473 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2474 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2476$as_echo "$as_me: loading cache $cache_file" >&6;} 2477 case $cache_file in 2478 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2479 *) . "./$cache_file";; 2480 esac 2481 fi 2482else 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2484$as_echo "$as_me: creating cache $cache_file" >&6;} 2485 >$cache_file 2486fi 2487 2488# Check that the precious variables saved in the cache have kept the same 2489# value. 2490ac_cache_corrupted=false 2491for ac_var in $ac_precious_vars; do 2492 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2493 eval ac_new_set=\$ac_env_${ac_var}_set 2494 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2495 eval ac_new_val=\$ac_env_${ac_var}_value 2496 case $ac_old_set,$ac_new_set in 2497 set,) 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2499$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2500 ac_cache_corrupted=: ;; 2501 ,set) 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2503$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2504 ac_cache_corrupted=: ;; 2505 ,);; 2506 *) 2507 if test "x$ac_old_val" != "x$ac_new_val"; then 2508 # differences in whitespace do not lead to failure. 2509 ac_old_val_w=`echo x $ac_old_val` 2510 ac_new_val_w=`echo x $ac_new_val` 2511 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2513$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2514 ac_cache_corrupted=: 2515 else 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2517$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2518 eval $ac_var=\$ac_old_val 2519 fi 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2521$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2523$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2524 fi;; 2525 esac 2526 # Pass precious variables to config.status. 2527 if test "$ac_new_set" = set; then 2528 case $ac_new_val in 2529 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2530 *) ac_arg=$ac_var=$ac_new_val ;; 2531 esac 2532 case " $ac_configure_args " in 2533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2534 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2535 esac 2536 fi 2537done 2538if $ac_cache_corrupted; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2542$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2543 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2544fi 2545## -------------------- ## 2546## Main body of script. ## 2547## -------------------- ## 2548 2549ac_ext=c 2550ac_cpp='$CPP $CPPFLAGS' 2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2553ac_compiler_gnu=$ac_cv_c_compiler_gnu 2554 2555 2556ac_aux_dir= 2557for ac_dir in build-aux "$srcdir"/build-aux; do 2558 if test -f "$ac_dir/install-sh"; then 2559 ac_aux_dir=$ac_dir 2560 ac_install_sh="$ac_aux_dir/install-sh -c" 2561 break 2562 elif test -f "$ac_dir/install.sh"; then 2563 ac_aux_dir=$ac_dir 2564 ac_install_sh="$ac_aux_dir/install.sh -c" 2565 break 2566 elif test -f "$ac_dir/shtool"; then 2567 ac_aux_dir=$ac_dir 2568 ac_install_sh="$ac_aux_dir/shtool install -c" 2569 break 2570 fi 2571done 2572if test -z "$ac_aux_dir"; then 2573 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2574fi 2575 2576# These three variables are undocumented and unsupported, 2577# and are intended to be withdrawn in a future Autoconf release. 2578# They can cause serious problems if a builder's source tree is in a directory 2579# whose full name contains unusual characters. 2580ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2581ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2582ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2583 2584 2585 2586 2587ac_config_headers="$ac_config_headers src/config.h" 2588 2589 2590# Initialize Automake 2591am__api_version='1.15' 2592 2593# Find a good install program. We prefer a C program (faster), 2594# so one script is as good as another. But avoid the broken or 2595# incompatible versions: 2596# SysV /etc/install, /usr/sbin/install 2597# SunOS /usr/etc/install 2598# IRIX /sbin/install 2599# AIX /bin/install 2600# AmigaOS /C/install, which installs bootblocks on floppy discs 2601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2602# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2604# OS/2's system install, which has a completely different semantic 2605# ./install, which can be erroneously created by make from ./install.sh. 2606# Reject install programs that cannot install multiple files. 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2608$as_echo_n "checking for a BSD-compatible install... " >&6; } 2609if test -z "$INSTALL"; then 2610if ${ac_cv_path_install+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614for as_dir in $PATH 2615do 2616 IFS=$as_save_IFS 2617 test -z "$as_dir" && as_dir=. 2618 # Account for people who put trailing slashes in PATH elements. 2619case $as_dir/ in #(( 2620 ./ | .// | /[cC]/* | \ 2621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2622 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2623 /usr/ucb/* ) ;; 2624 *) 2625 # OSF1 and SCO ODT 3.0 have their own names for install. 2626 # Don't use installbsd from OSF since it installs stuff as root 2627 # by default. 2628 for ac_prog in ginstall scoinst install; do 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2631 if test $ac_prog = install && 2632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2633 # AIX install. It has an incompatible calling convention. 2634 : 2635 elif test $ac_prog = install && 2636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2637 # program-specific install script used by HP pwplus--don't use. 2638 : 2639 else 2640 rm -rf conftest.one conftest.two conftest.dir 2641 echo one > conftest.one 2642 echo two > conftest.two 2643 mkdir conftest.dir 2644 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2645 test -s conftest.one && test -s conftest.two && 2646 test -s conftest.dir/conftest.one && 2647 test -s conftest.dir/conftest.two 2648 then 2649 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2650 break 3 2651 fi 2652 fi 2653 fi 2654 done 2655 done 2656 ;; 2657esac 2658 2659 done 2660IFS=$as_save_IFS 2661 2662rm -rf conftest.one conftest.two conftest.dir 2663 2664fi 2665 if test "${ac_cv_path_install+set}" = set; then 2666 INSTALL=$ac_cv_path_install 2667 else 2668 # As a last resort, use the slow shell script. Don't cache a 2669 # value for INSTALL within a source directory, because that will 2670 # break other packages using the cache if that directory is 2671 # removed, or if the value is a relative name. 2672 INSTALL=$ac_install_sh 2673 fi 2674fi 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2676$as_echo "$INSTALL" >&6; } 2677 2678# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2679# It thinks the first close brace ends the variable substitution. 2680test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2681 2682test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2683 2684test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2685 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2687$as_echo_n "checking whether build environment is sane... " >&6; } 2688# Reject unsafe characters in $srcdir or the absolute working directory 2689# name. Accept space and tab only in the latter. 2690am_lf=' 2691' 2692case `pwd` in 2693 *[\\\"\#\$\&\'\`$am_lf]*) 2694 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2695esac 2696case $srcdir in 2697 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2698 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2699esac 2700 2701# Do 'set' in a subshell so we don't clobber the current shell's 2702# arguments. Must try -L first in case configure is actually a 2703# symlink; some systems play weird games with the mod time of symlinks 2704# (eg FreeBSD returns the mod time of the symlink's containing 2705# directory). 2706if ( 2707 am_has_slept=no 2708 for am_try in 1 2; do 2709 echo "timestamp, slept: $am_has_slept" > conftest.file 2710 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2711 if test "$*" = "X"; then 2712 # -L didn't work. 2713 set X `ls -t "$srcdir/configure" conftest.file` 2714 fi 2715 if test "$*" != "X $srcdir/configure conftest.file" \ 2716 && test "$*" != "X conftest.file $srcdir/configure"; then 2717 2718 # If neither matched, then we have a broken ls. This can happen 2719 # if, for instance, CONFIG_SHELL is bash and it inherits a 2720 # broken ls alias from the environment. This has actually 2721 # happened. Such a system could not be considered "sane". 2722 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2723 alias in your environment" "$LINENO" 5 2724 fi 2725 if test "$2" = conftest.file || test $am_try -eq 2; then 2726 break 2727 fi 2728 # Just in case. 2729 sleep 1 2730 am_has_slept=yes 2731 done 2732 test "$2" = conftest.file 2733 ) 2734then 2735 # Ok. 2736 : 2737else 2738 as_fn_error $? "newly created file is older than distributed files! 2739Check your system clock" "$LINENO" 5 2740fi 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2742$as_echo "yes" >&6; } 2743# If we didn't sleep, we still need to ensure time stamps of config.status and 2744# generated files are strictly newer. 2745am_sleep_pid= 2746if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2747 ( sleep 1 ) & 2748 am_sleep_pid=$! 2749fi 2750 2751rm -f conftest.file 2752 2753test "$program_prefix" != NONE && 2754 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2755# Use a double $ so make ignores it. 2756test "$program_suffix" != NONE && 2757 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2758# Double any \ or $. 2759# By default was `s,x,x', remove it if useless. 2760ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2761program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2762 2763# Expand $ac_aux_dir to an absolute path. 2764am_aux_dir=`cd "$ac_aux_dir" && pwd` 2765 2766if test x"${MISSING+set}" != xset; then 2767 case $am_aux_dir in 2768 *\ * | *\ *) 2769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2770 *) 2771 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2772 esac 2773fi 2774# Use eval to expand $SHELL 2775if eval "$MISSING --is-lightweight"; then 2776 am_missing_run="$MISSING " 2777else 2778 am_missing_run= 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2780$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2781fi 2782 2783if test x"${install_sh+set}" != xset; then 2784 case $am_aux_dir in 2785 *\ * | *\ *) 2786 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2787 *) 2788 install_sh="\${SHELL} $am_aux_dir/install-sh" 2789 esac 2790fi 2791 2792# Installed binaries are usually stripped using 'strip' when the user 2793# run "make install-strip". However 'strip' might not be the right 2794# tool to use in cross-compilation environments, therefore Automake 2795# will honor the 'STRIP' environment variable to overrule this program. 2796if test "$cross_compiling" != no; then 2797 if test -n "$ac_tool_prefix"; then 2798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2799set dummy ${ac_tool_prefix}strip; ac_word=$2 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2801$as_echo_n "checking for $ac_word... " >&6; } 2802if ${ac_cv_prog_STRIP+:} false; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 if test -n "$STRIP"; then 2806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2807else 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2809for as_dir in $PATH 2810do 2811 IFS=$as_save_IFS 2812 test -z "$as_dir" && as_dir=. 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2815 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819done 2820 done 2821IFS=$as_save_IFS 2822 2823fi 2824fi 2825STRIP=$ac_cv_prog_STRIP 2826if test -n "$STRIP"; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2828$as_echo "$STRIP" >&6; } 2829else 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2831$as_echo "no" >&6; } 2832fi 2833 2834 2835fi 2836if test -z "$ac_cv_prog_STRIP"; then 2837 ac_ct_STRIP=$STRIP 2838 # Extract the first word of "strip", so it can be a program name with args. 2839set dummy strip; ac_word=$2 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2841$as_echo_n "checking for $ac_word... " >&6; } 2842if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 if test -n "$ac_ct_STRIP"; then 2846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2847else 2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2849for as_dir in $PATH 2850do 2851 IFS=$as_save_IFS 2852 test -z "$as_dir" && as_dir=. 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2855 ac_cv_prog_ac_ct_STRIP="strip" 2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859done 2860 done 2861IFS=$as_save_IFS 2862 2863fi 2864fi 2865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2866if test -n "$ac_ct_STRIP"; then 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2868$as_echo "$ac_ct_STRIP" >&6; } 2869else 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2871$as_echo "no" >&6; } 2872fi 2873 2874 if test "x$ac_ct_STRIP" = x; then 2875 STRIP=":" 2876 else 2877 case $cross_compiling:$ac_tool_warned in 2878yes:) 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2881ac_tool_warned=yes ;; 2882esac 2883 STRIP=$ac_ct_STRIP 2884 fi 2885else 2886 STRIP="$ac_cv_prog_STRIP" 2887fi 2888 2889fi 2890INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2891 2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2893$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2894if test -z "$MKDIR_P"; then 2895 if ${ac_cv_path_mkdir+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_prog in mkdir gmkdir; do 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2907 'mkdir (GNU coreutils) '* | \ 2908 'mkdir (coreutils) '* | \ 2909 'mkdir (fileutils) '4.1*) 2910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2911 break 3;; 2912 esac 2913 done 2914 done 2915 done 2916IFS=$as_save_IFS 2917 2918fi 2919 2920 test -d ./--version && rmdir ./--version 2921 if test "${ac_cv_path_mkdir+set}" = set; then 2922 MKDIR_P="$ac_cv_path_mkdir -p" 2923 else 2924 # As a last resort, use the slow shell script. Don't cache a 2925 # value for MKDIR_P within a source directory, because that will 2926 # break other packages using the cache if that directory is 2927 # removed, or if the value is a relative name. 2928 MKDIR_P="$ac_install_sh -d" 2929 fi 2930fi 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2932$as_echo "$MKDIR_P" >&6; } 2933 2934for ac_prog in gawk mawk nawk awk 2935do 2936 # Extract the first word of "$ac_prog", so it can be a program name with args. 2937set dummy $ac_prog; ac_word=$2 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if ${ac_cv_prog_AWK+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$AWK"; then 2944 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2953 ac_cv_prog_AWK="$ac_prog" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958 done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963AWK=$ac_cv_prog_AWK 2964if test -n "$AWK"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2966$as_echo "$AWK" >&6; } 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973 test -n "$AWK" && break 2974done 2975 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2977$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2978set x ${MAKE-make} 2979ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2980if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 cat >conftest.make <<\_ACEOF 2984SHELL = /bin/sh 2985all: 2986 @echo '@@@%%%=$(MAKE)=@@@%%%' 2987_ACEOF 2988# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2989case `${MAKE-make} -f conftest.make 2>/dev/null` in 2990 *@@@%%%=?*=@@@%%%*) 2991 eval ac_cv_prog_make_${ac_make}_set=yes;; 2992 *) 2993 eval ac_cv_prog_make_${ac_make}_set=no;; 2994esac 2995rm -f conftest.make 2996fi 2997if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2999$as_echo "yes" >&6; } 3000 SET_MAKE= 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004 SET_MAKE="MAKE=${MAKE-make}" 3005fi 3006 3007rm -rf .tst 2>/dev/null 3008mkdir .tst 2>/dev/null 3009if test -d .tst; then 3010 am__leading_dot=. 3011else 3012 am__leading_dot=_ 3013fi 3014rmdir .tst 2>/dev/null 3015 3016# Check whether --enable-silent-rules was given. 3017if test "${enable_silent_rules+set}" = set; then : 3018 enableval=$enable_silent_rules; 3019fi 3020 3021case $enable_silent_rules in # ((( 3022 yes) AM_DEFAULT_VERBOSITY=0;; 3023 no) AM_DEFAULT_VERBOSITY=1;; 3024 *) AM_DEFAULT_VERBOSITY=1;; 3025esac 3026am_make=${MAKE-make} 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3028$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3029if ${am_cv_make_support_nested_variables+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 if $as_echo 'TRUE=$(BAR$(V)) 3033BAR0=false 3034BAR1=true 3035V=1 3036am__doit: 3037 @$(TRUE) 3038.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3039 am_cv_make_support_nested_variables=yes 3040else 3041 am_cv_make_support_nested_variables=no 3042fi 3043fi 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3045$as_echo "$am_cv_make_support_nested_variables" >&6; } 3046if test $am_cv_make_support_nested_variables = yes; then 3047 AM_V='$(V)' 3048 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3049else 3050 AM_V=$AM_DEFAULT_VERBOSITY 3051 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3052fi 3053AM_BACKSLASH='\' 3054 3055if test "`cd $srcdir && pwd`" != "`pwd`"; then 3056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3057 # is not polluted with repeated "-I." 3058 am__isrc=' -I$(srcdir)' 3059 # test to see if srcdir already configured 3060 if test -f $srcdir/config.status; then 3061 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3062 fi 3063fi 3064 3065# test whether we have cygpath 3066if test -z "$CYGPATH_W"; then 3067 if (cygpath --version) >/dev/null 2>/dev/null; then 3068 CYGPATH_W='cygpath -w' 3069 else 3070 CYGPATH_W=echo 3071 fi 3072fi 3073 3074 3075# Define the identity of the package. 3076 PACKAGE='libxcb' 3077 VERSION='1.12' 3078 3079 3080cat >>confdefs.h <<_ACEOF 3081#define PACKAGE "$PACKAGE" 3082_ACEOF 3083 3084 3085cat >>confdefs.h <<_ACEOF 3086#define VERSION "$VERSION" 3087_ACEOF 3088 3089# Some tools Automake needs. 3090 3091ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3092 3093 3094AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3095 3096 3097AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3098 3099 3100AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3101 3102 3103MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3104 3105# For better backward compatibility. To be removed once Automake 1.9.x 3106# dies out for good. For more background, see: 3107# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3108# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3109mkdir_p='$(MKDIR_P)' 3110 3111# We need awk for the "check" target (and possibly the TAP driver). The 3112# system "awk" is bad on some platforms. 3113# Always define AMTAR for backward compatibility. Yes, it's still used 3114# in the wild :-( We should find a proper way to deprecate it ... 3115AMTAR='$${TAR-tar}' 3116 3117 3118# We'll loop over all known methods to create a tar archive until one works. 3119_am_tools='gnutar pax cpio none' 3120 3121am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3122 3123 3124 3125 3126 3127 3128# POSIX will say in a future version that running "rm -f" with no argument 3129# is OK; and we want to be able to make that assumption in our Makefile 3130# recipes. So use an aggressive probe to check that the usage we want is 3131# actually supported "in the wild" to an acceptable degree. 3132# See automake bug#10828. 3133# To make any issue more visible, cause the running configure to be aborted 3134# by default if the 'rm' program in use doesn't match our expectations; the 3135# user can still override this though. 3136if rm -f && rm -fr && rm -rf; then : OK; else 3137 cat >&2 <<'END' 3138Oops! 3139 3140Your 'rm' program seems unable to run without file operands specified 3141on the command line, even when the '-f' option is present. This is contrary 3142to the behaviour of most rm programs out there, and not conforming with 3143the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3144 3145Please tell bug-automake@gnu.org about your system, including the value 3146of your $PATH and any error possibly output before this message. This 3147can help us improve future automake versions. 3148 3149END 3150 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3151 echo 'Configuration will proceed anyway, since you have set the' >&2 3152 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3153 echo >&2 3154 else 3155 cat >&2 <<'END' 3156Aborting the configuration process, to ensure you take notice of the issue. 3157 3158You can download and install GNU coreutils to get an 'rm' implementation 3159that behaves properly: <http://www.gnu.org/software/coreutils/>. 3160 3161If you want to complete the configuration process using your problematic 3162'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3163to "yes", and re-run configure. 3164 3165END 3166 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3167 fi 3168fi 3169 3170 3171 3172 3173 3174 3175 3176 if test -n "$PYTHON"; then 3177 # If the user set $PYTHON, use it and don't search something else. 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 3179$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; } 3180 prog="import sys 3181# split strings by '.' and convert to numeric. Append some zeros 3182# because we need at least 4 digits for the hex conversion. 3183# map returns an iterator in Python 3.0 and a list in 2.x 3184minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3185minverhex = 0 3186# xrange is not present in Python 3.0 and range returns an iterator 3187for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3188sys.exit(sys.hexversion < minverhex)" 3189 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 3190 ($PYTHON -c "$prog") >&5 2>&5 3191 ac_status=$? 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); }; then : 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3195$as_echo "yes" >&6; } 3196else 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3198$as_echo "no" >&6; } 3199 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 3200fi 3201 am_display_PYTHON=$PYTHON 3202 else 3203 # Otherwise, try each interpreter until we find one that satisfies 3204 # VERSION. 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 3206$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; } 3207if ${am_cv_pathless_PYTHON+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 3211 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 3212 test "$am_cv_pathless_PYTHON" = none && break 3213 prog="import sys 3214# split strings by '.' and convert to numeric. Append some zeros 3215# because we need at least 4 digits for the hex conversion. 3216# map returns an iterator in Python 3.0 and a list in 2.x 3217minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3218minverhex = 0 3219# xrange is not present in Python 3.0 and range returns an iterator 3220for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3221sys.exit(sys.hexversion < minverhex)" 3222 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 3223 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 3224 ac_status=$? 3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3226 (exit $ac_status); }; then : 3227 break 3228fi 3229 done 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 3232$as_echo "$am_cv_pathless_PYTHON" >&6; } 3233 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 3234 if test "$am_cv_pathless_PYTHON" = none; then 3235 PYTHON=: 3236 else 3237 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 3238set dummy $am_cv_pathless_PYTHON; ac_word=$2 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3240$as_echo_n "checking for $ac_word... " >&6; } 3241if ${ac_cv_path_PYTHON+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 case $PYTHON in 3245 [\\/]* | ?:[\\/]*) 3246 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3247 ;; 3248 *) 3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3256 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264 ;; 3265esac 3266fi 3267PYTHON=$ac_cv_path_PYTHON 3268if test -n "$PYTHON"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3270$as_echo "$PYTHON" >&6; } 3271else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273$as_echo "no" >&6; } 3274fi 3275 3276 3277 fi 3278 am_display_PYTHON=$am_cv_pathless_PYTHON 3279 fi 3280 3281 3282 if test "$PYTHON" = :; then 3283 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 3284 else 3285 3286 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 3288$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 3289if ${am_cv_python_version+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 3293fi 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 3295$as_echo "$am_cv_python_version" >&6; } 3296 PYTHON_VERSION=$am_cv_python_version 3297 3298 3299 3300 PYTHON_PREFIX='${prefix}' 3301 3302 PYTHON_EXEC_PREFIX='${exec_prefix}' 3303 3304 3305 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 3307$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 3308if ${am_cv_python_platform+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 3312fi 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 3314$as_echo "$am_cv_python_platform" >&6; } 3315 PYTHON_PLATFORM=$am_cv_python_platform 3316 3317 3318 # Just factor out some code duplication. 3319 am_python_setup_sysconfig="\ 3320import sys 3321# Prefer sysconfig over distutils.sysconfig, for better compatibility 3322# with python 3.x. See automake bug#10227. 3323try: 3324 import sysconfig 3325except ImportError: 3326 can_use_sysconfig = 0 3327else: 3328 can_use_sysconfig = 1 3329# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 3330# <https://github.com/pypa/virtualenv/issues/118> 3331try: 3332 from platform import python_implementation 3333 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 3334 can_use_sysconfig = 0 3335except ImportError: 3336 pass" 3337 3338 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 3340$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 3341if ${am_cv_python_pythondir+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 if test "x$prefix" = xNONE 3345 then 3346 am_py_prefix=$ac_default_prefix 3347 else 3348 am_py_prefix=$prefix 3349 fi 3350 am_cv_python_pythondir=`$PYTHON -c " 3351$am_python_setup_sysconfig 3352if can_use_sysconfig: 3353 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 3354else: 3355 from distutils import sysconfig 3356 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 3357sys.stdout.write(sitedir)"` 3358 case $am_cv_python_pythondir in 3359 $am_py_prefix*) 3360 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 3361 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 3362 ;; 3363 *) 3364 case $am_py_prefix in 3365 /usr|/System*) ;; 3366 *) 3367 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 3368 ;; 3369 esac 3370 ;; 3371 esac 3372 3373fi 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 3375$as_echo "$am_cv_python_pythondir" >&6; } 3376 pythondir=$am_cv_python_pythondir 3377 3378 3379 3380 pkgpythondir=\${pythondir}/$PACKAGE 3381 3382 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 3384$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 3385if ${am_cv_python_pyexecdir+:} false; then : 3386 $as_echo_n "(cached) " >&6 3387else 3388 if test "x$exec_prefix" = xNONE 3389 then 3390 am_py_exec_prefix=$am_py_prefix 3391 else 3392 am_py_exec_prefix=$exec_prefix 3393 fi 3394 am_cv_python_pyexecdir=`$PYTHON -c " 3395$am_python_setup_sysconfig 3396if can_use_sysconfig: 3397 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 3398else: 3399 from distutils import sysconfig 3400 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 3401sys.stdout.write(sitedir)"` 3402 case $am_cv_python_pyexecdir in 3403 $am_py_exec_prefix*) 3404 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 3405 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 3406 ;; 3407 *) 3408 case $am_py_exec_prefix in 3409 /usr|/System*) ;; 3410 *) 3411 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 3412 ;; 3413 esac 3414 ;; 3415 esac 3416 3417fi 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 3419$as_echo "$am_cv_python_pyexecdir" >&6; } 3420 pyexecdir=$am_cv_python_pyexecdir 3421 3422 3423 3424 pkgpyexecdir=\${pyexecdir}/$PACKAGE 3425 3426 3427 3428 fi 3429 3430 3431 3432# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3433# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3434# to avoid autoconf errors. 3435DEPDIR="${am__leading_dot}deps" 3436 3437ac_config_commands="$ac_config_commands depfiles" 3438 3439 3440am_make=${MAKE-make} 3441cat > confinc << 'END' 3442am__doit: 3443 @echo this is the am__doit target 3444.PHONY: am__doit 3445END 3446# If we don't find an include directive, just comment out the code. 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3448$as_echo_n "checking for style of include used by $am_make... " >&6; } 3449am__include="#" 3450am__quote= 3451_am_result=none 3452# First try GNU make style include. 3453echo "include confinc" > confmf 3454# Ignore all kinds of additional output from 'make'. 3455case `$am_make -s -f confmf 2> /dev/null` in #( 3456*the\ am__doit\ target*) 3457 am__include=include 3458 am__quote= 3459 _am_result=GNU 3460 ;; 3461esac 3462# Now try BSD make style include. 3463if test "$am__include" = "#"; then 3464 echo '.include "confinc"' > confmf 3465 case `$am_make -s -f confmf 2> /dev/null` in #( 3466 *the\ am__doit\ target*) 3467 am__include=.include 3468 am__quote="\"" 3469 _am_result=BSD 3470 ;; 3471 esac 3472fi 3473 3474 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3476$as_echo "$_am_result" >&6; } 3477rm -f confinc confmf 3478 3479# Check whether --enable-dependency-tracking was given. 3480if test "${enable_dependency_tracking+set}" = set; then : 3481 enableval=$enable_dependency_tracking; 3482fi 3483 3484if test "x$enable_dependency_tracking" != xno; then 3485 am_depcomp="$ac_aux_dir/depcomp" 3486 AMDEPBACKSLASH='\' 3487 am__nodep='_no' 3488fi 3489 if test "x$enable_dependency_tracking" != xno; then 3490 AMDEP_TRUE= 3491 AMDEP_FALSE='#' 3492else 3493 AMDEP_TRUE='#' 3494 AMDEP_FALSE= 3495fi 3496 3497 3498ac_ext=c 3499ac_cpp='$CPP $CPPFLAGS' 3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3502ac_compiler_gnu=$ac_cv_c_compiler_gnu 3503if test -n "$ac_tool_prefix"; then 3504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3505set dummy ${ac_tool_prefix}gcc; ac_word=$2 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3507$as_echo_n "checking for $ac_word... " >&6; } 3508if ${ac_cv_prog_CC+:} false; then : 3509 $as_echo_n "(cached) " >&6 3510else 3511 if test -n "$CC"; then 3512 ac_cv_prog_CC="$CC" # Let the user override the test. 3513else 3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 for ac_exec_ext in '' $ac_executable_extensions; do 3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3521 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3523 break 2 3524 fi 3525done 3526 done 3527IFS=$as_save_IFS 3528 3529fi 3530fi 3531CC=$ac_cv_prog_CC 3532if test -n "$CC"; then 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3534$as_echo "$CC" >&6; } 3535else 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537$as_echo "no" >&6; } 3538fi 3539 3540 3541fi 3542if test -z "$ac_cv_prog_CC"; then 3543 ac_ct_CC=$CC 3544 # Extract the first word of "gcc", so it can be a program name with args. 3545set dummy gcc; ac_word=$2 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3547$as_echo_n "checking for $ac_word... " >&6; } 3548if ${ac_cv_prog_ac_ct_CC+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 if test -n "$ac_ct_CC"; then 3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3553else 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 test -z "$as_dir" && as_dir=. 3559 for ac_exec_ext in '' $ac_executable_extensions; do 3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3561 ac_cv_prog_ac_ct_CC="gcc" 3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3563 break 2 3564 fi 3565done 3566 done 3567IFS=$as_save_IFS 3568 3569fi 3570fi 3571ac_ct_CC=$ac_cv_prog_ac_ct_CC 3572if test -n "$ac_ct_CC"; then 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3574$as_echo "$ac_ct_CC" >&6; } 3575else 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3577$as_echo "no" >&6; } 3578fi 3579 3580 if test "x$ac_ct_CC" = x; then 3581 CC="" 3582 else 3583 case $cross_compiling:$ac_tool_warned in 3584yes:) 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3587ac_tool_warned=yes ;; 3588esac 3589 CC=$ac_ct_CC 3590 fi 3591else 3592 CC="$ac_cv_prog_CC" 3593fi 3594 3595if test -z "$CC"; then 3596 if test -n "$ac_tool_prefix"; then 3597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3598set dummy ${ac_tool_prefix}cc; ac_word=$2 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if ${ac_cv_prog_CC+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 if test -n "$CC"; then 3605 ac_cv_prog_CC="$CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3614 ac_cv_prog_CC="${ac_tool_prefix}cc" 3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624CC=$ac_cv_prog_CC 3625if test -n "$CC"; then 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3627$as_echo "$CC" >&6; } 3628else 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630$as_echo "no" >&6; } 3631fi 3632 3633 3634 fi 3635fi 3636if test -z "$CC"; then 3637 # Extract the first word of "cc", so it can be a program name with args. 3638set dummy cc; ac_word=$2 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3640$as_echo_n "checking for $ac_word... " >&6; } 3641if ${ac_cv_prog_CC+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -n "$CC"; then 3645 ac_cv_prog_CC="$CC" # Let the user override the test. 3646else 3647 ac_prog_rejected=no 3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3649for as_dir in $PATH 3650do 3651 IFS=$as_save_IFS 3652 test -z "$as_dir" && as_dir=. 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3656 ac_prog_rejected=yes 3657 continue 3658 fi 3659 ac_cv_prog_CC="cc" 3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3661 break 2 3662 fi 3663done 3664 done 3665IFS=$as_save_IFS 3666 3667if test $ac_prog_rejected = yes; then 3668 # We found a bogon in the path, so make sure we never use it. 3669 set dummy $ac_cv_prog_CC 3670 shift 3671 if test $# != 0; then 3672 # We chose a different compiler from the bogus one. 3673 # However, it has the same basename, so the bogon will be chosen 3674 # first if we set CC to just the basename; use the full file name. 3675 shift 3676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3677 fi 3678fi 3679fi 3680fi 3681CC=$ac_cv_prog_CC 3682if test -n "$CC"; then 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3684$as_echo "$CC" >&6; } 3685else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687$as_echo "no" >&6; } 3688fi 3689 3690 3691fi 3692if test -z "$CC"; then 3693 if test -n "$ac_tool_prefix"; then 3694 for ac_prog in cl.exe 3695 do 3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3699$as_echo_n "checking for $ac_word... " >&6; } 3700if ${ac_cv_prog_CC+:} false; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 if test -n "$CC"; then 3704 ac_cv_prog_CC="$CC" # Let the user override the test. 3705else 3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707for as_dir in $PATH 3708do 3709 IFS=$as_save_IFS 3710 test -z "$as_dir" && as_dir=. 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3715 break 2 3716 fi 3717done 3718 done 3719IFS=$as_save_IFS 3720 3721fi 3722fi 3723CC=$ac_cv_prog_CC 3724if test -n "$CC"; then 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3726$as_echo "$CC" >&6; } 3727else 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3729$as_echo "no" >&6; } 3730fi 3731 3732 3733 test -n "$CC" && break 3734 done 3735fi 3736if test -z "$CC"; then 3737 ac_ct_CC=$CC 3738 for ac_prog in cl.exe 3739do 3740 # Extract the first word of "$ac_prog", so it can be a program name with args. 3741set dummy $ac_prog; ac_word=$2 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3743$as_echo_n "checking for $ac_word... " >&6; } 3744if ${ac_cv_prog_ac_ct_CC+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 if test -n "$ac_ct_CC"; then 3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3749else 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for ac_exec_ext in '' $ac_executable_extensions; do 3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3757 ac_cv_prog_ac_ct_CC="$ac_prog" 3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3759 break 2 3760 fi 3761done 3762 done 3763IFS=$as_save_IFS 3764 3765fi 3766fi 3767ac_ct_CC=$ac_cv_prog_ac_ct_CC 3768if test -n "$ac_ct_CC"; then 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3770$as_echo "$ac_ct_CC" >&6; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774fi 3775 3776 3777 test -n "$ac_ct_CC" && break 3778done 3779 3780 if test "x$ac_ct_CC" = x; then 3781 CC="" 3782 else 3783 case $cross_compiling:$ac_tool_warned in 3784yes:) 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3787ac_tool_warned=yes ;; 3788esac 3789 CC=$ac_ct_CC 3790 fi 3791fi 3792 3793fi 3794 3795 3796test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3798as_fn_error $? "no acceptable C compiler found in \$PATH 3799See \`config.log' for more details" "$LINENO" 5; } 3800 3801# Provide some information about the compiler. 3802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3803set X $ac_compile 3804ac_compiler=$2 3805for ac_option in --version -v -V -qversion; do 3806 { { ac_try="$ac_compiler $ac_option >&5" 3807case "(($ac_try" in 3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3809 *) ac_try_echo=$ac_try;; 3810esac 3811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3812$as_echo "$ac_try_echo"; } >&5 3813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3814 ac_status=$? 3815 if test -s conftest.err; then 3816 sed '10a\ 3817... rest of stderr output deleted ... 3818 10q' conftest.err >conftest.er1 3819 cat conftest.er1 >&5 3820 fi 3821 rm -f conftest.er1 conftest.err 3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3823 test $ac_status = 0; } 3824done 3825 3826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829int 3830main () 3831{ 3832 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837ac_clean_files_save=$ac_clean_files 3838ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3839# Try to create an executable without -o first, disregard a.out. 3840# It will help us diagnose broken compilers, and finding out an intuition 3841# of exeext. 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3843$as_echo_n "checking whether the C compiler works... " >&6; } 3844ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3845 3846# The possible output files: 3847ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3848 3849ac_rmfiles= 3850for ac_file in $ac_files 3851do 3852 case $ac_file in 3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3854 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3855 esac 3856done 3857rm -f $ac_rmfiles 3858 3859if { { ac_try="$ac_link_default" 3860case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865$as_echo "$ac_try_echo"; } >&5 3866 (eval "$ac_link_default") 2>&5 3867 ac_status=$? 3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; }; then : 3870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3871# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3872# in a Makefile. We should not override ac_cv_exeext if it was cached, 3873# so that the user can short-circuit this test for compilers unknown to 3874# Autoconf. 3875for ac_file in $ac_files '' 3876do 3877 test -f "$ac_file" || continue 3878 case $ac_file in 3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3880 ;; 3881 [ab].out ) 3882 # We found the default executable, but exeext='' is most 3883 # certainly right. 3884 break;; 3885 *.* ) 3886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3887 then :; else 3888 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3889 fi 3890 # We set ac_cv_exeext here because the later test for it is not 3891 # safe: cross compilers may not add the suffix if given an `-o' 3892 # argument, so we may need to know it at that point already. 3893 # Even if this section looks crufty: it has the advantage of 3894 # actually working. 3895 break;; 3896 * ) 3897 break;; 3898 esac 3899done 3900test "$ac_cv_exeext" = no && ac_cv_exeext= 3901 3902else 3903 ac_file='' 3904fi 3905if test -z "$ac_file"; then : 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3907$as_echo "no" >&6; } 3908$as_echo "$as_me: failed program was:" >&5 3909sed 's/^/| /' conftest.$ac_ext >&5 3910 3911{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3913as_fn_error 77 "C compiler cannot create executables 3914See \`config.log' for more details" "$LINENO" 5; } 3915else 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3917$as_echo "yes" >&6; } 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3920$as_echo_n "checking for C compiler default output file name... " >&6; } 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3922$as_echo "$ac_file" >&6; } 3923ac_exeext=$ac_cv_exeext 3924 3925rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3926ac_clean_files=$ac_clean_files_save 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3928$as_echo_n "checking for suffix of executables... " >&6; } 3929if { { ac_try="$ac_link" 3930case "(($ac_try" in 3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3932 *) ac_try_echo=$ac_try;; 3933esac 3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3935$as_echo "$ac_try_echo"; } >&5 3936 (eval "$ac_link") 2>&5 3937 ac_status=$? 3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3939 test $ac_status = 0; }; then : 3940 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3941# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3942# work properly (i.e., refer to `conftest.exe'), while it won't with 3943# `rm'. 3944for ac_file in conftest.exe conftest conftest.*; do 3945 test -f "$ac_file" || continue 3946 case $ac_file in 3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3949 break;; 3950 * ) break;; 3951 esac 3952done 3953else 3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3956as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3957See \`config.log' for more details" "$LINENO" 5; } 3958fi 3959rm -f conftest conftest$ac_cv_exeext 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3961$as_echo "$ac_cv_exeext" >&6; } 3962 3963rm -f conftest.$ac_ext 3964EXEEXT=$ac_cv_exeext 3965ac_exeext=$EXEEXT 3966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968#include <stdio.h> 3969int 3970main () 3971{ 3972FILE *f = fopen ("conftest.out", "w"); 3973 return ferror (f) || fclose (f) != 0; 3974 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979ac_clean_files="$ac_clean_files conftest.out" 3980# Check that the compiler produces executables we can run. If not, either 3981# the compiler is broken, or we cross compile. 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3983$as_echo_n "checking whether we are cross compiling... " >&6; } 3984if test "$cross_compiling" != yes; then 3985 { { ac_try="$ac_link" 3986case "(($ac_try" in 3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3988 *) ac_try_echo=$ac_try;; 3989esac 3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3991$as_echo "$ac_try_echo"; } >&5 3992 (eval "$ac_link") 2>&5 3993 ac_status=$? 3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3995 test $ac_status = 0; } 3996 if { ac_try='./conftest$ac_cv_exeext' 3997 { { case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4002$as_echo "$ac_try_echo"; } >&5 4003 (eval "$ac_try") 2>&5 4004 ac_status=$? 4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4006 test $ac_status = 0; }; }; then 4007 cross_compiling=no 4008 else 4009 if test "$cross_compiling" = maybe; then 4010 cross_compiling=yes 4011 else 4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4014as_fn_error $? "cannot run C compiled programs. 4015If you meant to cross compile, use \`--host'. 4016See \`config.log' for more details" "$LINENO" 5; } 4017 fi 4018 fi 4019fi 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4021$as_echo "$cross_compiling" >&6; } 4022 4023rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4024ac_clean_files=$ac_clean_files_save 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4026$as_echo_n "checking for suffix of object files... " >&6; } 4027if ${ac_cv_objext+:} false; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4031/* end confdefs.h. */ 4032 4033int 4034main () 4035{ 4036 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041rm -f conftest.o conftest.obj 4042if { { ac_try="$ac_compile" 4043case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046esac 4047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4048$as_echo "$ac_try_echo"; } >&5 4049 (eval "$ac_compile") 2>&5 4050 ac_status=$? 4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4052 test $ac_status = 0; }; then : 4053 for ac_file in conftest.o conftest.obj conftest.*; do 4054 test -f "$ac_file" || continue; 4055 case $ac_file in 4056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4058 break;; 4059 esac 4060done 4061else 4062 $as_echo "$as_me: failed program was:" >&5 4063sed 's/^/| /' conftest.$ac_ext >&5 4064 4065{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4067as_fn_error $? "cannot compute suffix of object files: cannot compile 4068See \`config.log' for more details" "$LINENO" 5; } 4069fi 4070rm -f conftest.$ac_cv_objext conftest.$ac_ext 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4073$as_echo "$ac_cv_objext" >&6; } 4074OBJEXT=$ac_cv_objext 4075ac_objext=$OBJEXT 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4077$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4078if ${ac_cv_c_compiler_gnu+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083 4084int 4085main () 4086{ 4087#ifndef __GNUC__ 4088 choke me 4089#endif 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095if ac_fn_c_try_compile "$LINENO"; then : 4096 ac_compiler_gnu=yes 4097else 4098 ac_compiler_gnu=no 4099fi 4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4101ac_cv_c_compiler_gnu=$ac_compiler_gnu 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4105$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4106if test $ac_compiler_gnu = yes; then 4107 GCC=yes 4108else 4109 GCC= 4110fi 4111ac_test_CFLAGS=${CFLAGS+set} 4112ac_save_CFLAGS=$CFLAGS 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4114$as_echo_n "checking whether $CC accepts -g... " >&6; } 4115if ${ac_cv_prog_cc_g+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 ac_save_c_werror_flag=$ac_c_werror_flag 4119 ac_c_werror_flag=yes 4120 ac_cv_prog_cc_g=no 4121 CFLAGS="-g" 4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124 4125int 4126main () 4127{ 4128 4129 ; 4130 return 0; 4131} 4132_ACEOF 4133if ac_fn_c_try_compile "$LINENO"; then : 4134 ac_cv_prog_cc_g=yes 4135else 4136 CFLAGS="" 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139 4140int 4141main () 4142{ 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148if ac_fn_c_try_compile "$LINENO"; then : 4149 4150else 4151 ac_c_werror_flag=$ac_save_c_werror_flag 4152 CFLAGS="-g" 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155 4156int 4157main () 4158{ 4159 4160 ; 4161 return 0; 4162} 4163_ACEOF 4164if ac_fn_c_try_compile "$LINENO"; then : 4165 ac_cv_prog_cc_g=yes 4166fi 4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4170fi 4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4172 ac_c_werror_flag=$ac_save_c_werror_flag 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4175$as_echo "$ac_cv_prog_cc_g" >&6; } 4176if test "$ac_test_CFLAGS" = set; then 4177 CFLAGS=$ac_save_CFLAGS 4178elif test $ac_cv_prog_cc_g = yes; then 4179 if test "$GCC" = yes; then 4180 CFLAGS="-g -O2" 4181 else 4182 CFLAGS="-g" 4183 fi 4184else 4185 if test "$GCC" = yes; then 4186 CFLAGS="-O2" 4187 else 4188 CFLAGS= 4189 fi 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4192$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4193if ${ac_cv_prog_cc_c89+:} false; then : 4194 $as_echo_n "(cached) " >&6 4195else 4196 ac_cv_prog_cc_c89=no 4197ac_save_CC=$CC 4198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200#include <stdarg.h> 4201#include <stdio.h> 4202struct stat; 4203/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4204struct buf { int x; }; 4205FILE * (*rcsopen) (struct buf *, struct stat *, int); 4206static char *e (p, i) 4207 char **p; 4208 int i; 4209{ 4210 return p[i]; 4211} 4212static char *f (char * (*g) (char **, int), char **p, ...) 4213{ 4214 char *s; 4215 va_list v; 4216 va_start (v,p); 4217 s = g (p, va_arg (v,int)); 4218 va_end (v); 4219 return s; 4220} 4221 4222/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4223 function prototypes and stuff, but not '\xHH' hex character constants. 4224 These don't provoke an error unfortunately, instead are silently treated 4225 as 'x'. The following induces an error, until -std is added to get 4226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4227 array size at least. It's necessary to write '\x00'==0 to get something 4228 that's true only with -std. */ 4229int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4230 4231/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4232 inside strings and character constants. */ 4233#define FOO(x) 'x' 4234int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4235 4236int test (int i, double x); 4237struct s1 {int (*f) (int a);}; 4238struct s2 {int (*f) (double a);}; 4239int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4240int argc; 4241char **argv; 4242int 4243main () 4244{ 4245return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4252do 4253 CC="$ac_save_CC $ac_arg" 4254 if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_prog_cc_c89=$ac_arg 4256fi 4257rm -f core conftest.err conftest.$ac_objext 4258 test "x$ac_cv_prog_cc_c89" != "xno" && break 4259done 4260rm -f conftest.$ac_ext 4261CC=$ac_save_CC 4262 4263fi 4264# AC_CACHE_VAL 4265case "x$ac_cv_prog_cc_c89" in 4266 x) 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4268$as_echo "none needed" >&6; } ;; 4269 xno) 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4271$as_echo "unsupported" >&6; } ;; 4272 *) 4273 CC="$CC $ac_cv_prog_cc_c89" 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4275$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4276esac 4277if test "x$ac_cv_prog_cc_c89" != xno; then : 4278 4279fi 4280 4281ac_ext=c 4282ac_cpp='$CPP $CPPFLAGS' 4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4285ac_compiler_gnu=$ac_cv_c_compiler_gnu 4286 4287ac_ext=c 4288ac_cpp='$CPP $CPPFLAGS' 4289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4291ac_compiler_gnu=$ac_cv_c_compiler_gnu 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4293$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4294if ${am_cv_prog_cc_c_o+:} false; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299 4300int 4301main () 4302{ 4303 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308 # Make sure it works both with $CC and with simple cc. 4309 # Following AC_PROG_CC_C_O, we do the test twice because some 4310 # compilers refuse to overwrite an existing .o file with -o, 4311 # though they will create one. 4312 am_cv_prog_cc_c_o=yes 4313 for am_i in 1 2; do 4314 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4315 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); } \ 4319 && test -f conftest2.$ac_objext; then 4320 : OK 4321 else 4322 am_cv_prog_cc_c_o=no 4323 break 4324 fi 4325 done 4326 rm -f core conftest* 4327 unset am_i 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4330$as_echo "$am_cv_prog_cc_c_o" >&6; } 4331if test "$am_cv_prog_cc_c_o" != yes; then 4332 # Losing compiler, so override with the script. 4333 # FIXME: It is wrong to rewrite CC. 4334 # But if we don't then we get into trouble of one sort or another. 4335 # A longer-term fix would be to have automake use am__CC in this case, 4336 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4337 CC="$am_aux_dir/compile $CC" 4338fi 4339ac_ext=c 4340ac_cpp='$CPP $CPPFLAGS' 4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4343ac_compiler_gnu=$ac_cv_c_compiler_gnu 4344 4345 4346depcc="$CC" am_compiler_list= 4347 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4349$as_echo_n "checking dependency style of $depcc... " >&6; } 4350if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4351 $as_echo_n "(cached) " >&6 4352else 4353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4354 # We make a subdir and do the tests there. Otherwise we can end up 4355 # making bogus files that we don't know about and never remove. For 4356 # instance it was reported that on HP-UX the gcc test will end up 4357 # making a dummy file named 'D' -- because '-MD' means "put the output 4358 # in D". 4359 rm -rf conftest.dir 4360 mkdir conftest.dir 4361 # Copy depcomp to subdir because otherwise we won't find it if we're 4362 # using a relative directory. 4363 cp "$am_depcomp" conftest.dir 4364 cd conftest.dir 4365 # We will build objects and dependencies in a subdirectory because 4366 # it helps to detect inapplicable dependency modes. For instance 4367 # both Tru64's cc and ICC support -MD to output dependencies as a 4368 # side effect of compilation, but ICC will put the dependencies in 4369 # the current directory while Tru64 will put them in the object 4370 # directory. 4371 mkdir sub 4372 4373 am_cv_CC_dependencies_compiler_type=none 4374 if test "$am_compiler_list" = ""; then 4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4376 fi 4377 am__universal=false 4378 case " $depcc " in #( 4379 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4380 esac 4381 4382 for depmode in $am_compiler_list; do 4383 # Setup a source with many dependencies, because some compilers 4384 # like to wrap large dependency lists on column 80 (with \), and 4385 # we should not choose a depcomp mode which is confused by this. 4386 # 4387 # We need to recreate these files for each test, as the compiler may 4388 # overwrite some of them when testing with obscure command lines. 4389 # This happens at least with the AIX C compiler. 4390 : > sub/conftest.c 4391 for i in 1 2 3 4 5 6; do 4392 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4393 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4394 # Solaris 10 /bin/sh. 4395 echo '/* dummy */' > sub/conftst$i.h 4396 done 4397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4398 4399 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4400 # mode. It turns out that the SunPro C++ compiler does not properly 4401 # handle '-M -o', and we need to detect this. Also, some Intel 4402 # versions had trouble with output in subdirs. 4403 am__obj=sub/conftest.${OBJEXT-o} 4404 am__minus_obj="-o $am__obj" 4405 case $depmode in 4406 gcc) 4407 # This depmode causes a compiler race in universal mode. 4408 test "$am__universal" = false || continue 4409 ;; 4410 nosideeffect) 4411 # After this tag, mechanisms are not by side-effect, so they'll 4412 # only be used when explicitly requested. 4413 if test "x$enable_dependency_tracking" = xyes; then 4414 continue 4415 else 4416 break 4417 fi 4418 ;; 4419 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4420 # This compiler won't grok '-c -o', but also, the minuso test has 4421 # not run yet. These depmodes are late enough in the game, and 4422 # so weak that their functioning should not be impacted. 4423 am__obj=conftest.${OBJEXT-o} 4424 am__minus_obj= 4425 ;; 4426 none) break ;; 4427 esac 4428 if depmode=$depmode \ 4429 source=sub/conftest.c object=$am__obj \ 4430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4432 >/dev/null 2>conftest.err && 4433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4437 # icc doesn't choke on unknown options, it will just issue warnings 4438 # or remarks (even with -Werror). So we grep stderr for any message 4439 # that says an option was ignored or not supported. 4440 # When given -MP, icc 7.0 and 7.1 complain thusly: 4441 # icc: Command line warning: ignoring option '-M'; no argument required 4442 # The diagnosis changed in icc 8.0: 4443 # icc: Command line remark: option '-MP' not supported 4444 if (grep 'ignoring option' conftest.err || 4445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4446 am_cv_CC_dependencies_compiler_type=$depmode 4447 break 4448 fi 4449 fi 4450 done 4451 4452 cd .. 4453 rm -rf conftest.dir 4454else 4455 am_cv_CC_dependencies_compiler_type=none 4456fi 4457 4458fi 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4460$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4461CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4462 4463 if 4464 test "x$enable_dependency_tracking" != xno \ 4465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4466 am__fastdepCC_TRUE= 4467 am__fastdepCC_FALSE='#' 4468else 4469 am__fastdepCC_TRUE='#' 4470 am__fastdepCC_FALSE= 4471fi 4472 4473 4474 4475ac_ext=c 4476ac_cpp='$CPP $CPPFLAGS' 4477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4479ac_compiler_gnu=$ac_cv_c_compiler_gnu 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4481$as_echo_n "checking how to run the C preprocessor... " >&6; } 4482# On Suns, sometimes $CPP names a directory. 4483if test -n "$CPP" && test -d "$CPP"; then 4484 CPP= 4485fi 4486if test -z "$CPP"; then 4487 if ${ac_cv_prog_CPP+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 # Double quotes because CPP needs to be expanded 4491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4492 do 4493 ac_preproc_ok=false 4494for ac_c_preproc_warn_flag in '' yes 4495do 4496 # Use a header file that comes with gcc, so configuring glibc 4497 # with a fresh cross-compiler works. 4498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4499 # <limits.h> exists even on freestanding compilers. 4500 # On the NeXT, cc -E runs the code through the compiler's parser, 4501 # not just through cpp. "Syntax error" is here to catch this case. 4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4503/* end confdefs.h. */ 4504#ifdef __STDC__ 4505# include <limits.h> 4506#else 4507# include <assert.h> 4508#endif 4509 Syntax error 4510_ACEOF 4511if ac_fn_c_try_cpp "$LINENO"; then : 4512 4513else 4514 # Broken: fails on valid input. 4515continue 4516fi 4517rm -f conftest.err conftest.i conftest.$ac_ext 4518 4519 # OK, works on sane cases. Now check whether nonexistent headers 4520 # can be detected and how. 4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522/* end confdefs.h. */ 4523#include <ac_nonexistent.h> 4524_ACEOF 4525if ac_fn_c_try_cpp "$LINENO"; then : 4526 # Broken: success on invalid input. 4527continue 4528else 4529 # Passes both tests. 4530ac_preproc_ok=: 4531break 4532fi 4533rm -f conftest.err conftest.i conftest.$ac_ext 4534 4535done 4536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4537rm -f conftest.i conftest.err conftest.$ac_ext 4538if $ac_preproc_ok; then : 4539 break 4540fi 4541 4542 done 4543 ac_cv_prog_CPP=$CPP 4544 4545fi 4546 CPP=$ac_cv_prog_CPP 4547else 4548 ac_cv_prog_CPP=$CPP 4549fi 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4551$as_echo "$CPP" >&6; } 4552ac_preproc_ok=false 4553for ac_c_preproc_warn_flag in '' yes 4554do 4555 # Use a header file that comes with gcc, so configuring glibc 4556 # with a fresh cross-compiler works. 4557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4558 # <limits.h> exists even on freestanding compilers. 4559 # On the NeXT, cc -E runs the code through the compiler's parser, 4560 # not just through cpp. "Syntax error" is here to catch this case. 4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4562/* end confdefs.h. */ 4563#ifdef __STDC__ 4564# include <limits.h> 4565#else 4566# include <assert.h> 4567#endif 4568 Syntax error 4569_ACEOF 4570if ac_fn_c_try_cpp "$LINENO"; then : 4571 4572else 4573 # Broken: fails on valid input. 4574continue 4575fi 4576rm -f conftest.err conftest.i conftest.$ac_ext 4577 4578 # OK, works on sane cases. Now check whether nonexistent headers 4579 # can be detected and how. 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4581/* end confdefs.h. */ 4582#include <ac_nonexistent.h> 4583_ACEOF 4584if ac_fn_c_try_cpp "$LINENO"; then : 4585 # Broken: success on invalid input. 4586continue 4587else 4588 # Passes both tests. 4589ac_preproc_ok=: 4590break 4591fi 4592rm -f conftest.err conftest.i conftest.$ac_ext 4593 4594done 4595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4596rm -f conftest.i conftest.err conftest.$ac_ext 4597if $ac_preproc_ok; then : 4598 4599else 4600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4602as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4603See \`config.log' for more details" "$LINENO" 5; } 4604fi 4605 4606ac_ext=c 4607ac_cpp='$CPP $CPPFLAGS' 4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4610ac_compiler_gnu=$ac_cv_c_compiler_gnu 4611 4612 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4614$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4615if ${ac_cv_path_GREP+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 if test -z "$GREP"; then 4619 ac_path_GREP_found=false 4620 # Loop through the user's path and test for each of PROGNAME-LIST 4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4623do 4624 IFS=$as_save_IFS 4625 test -z "$as_dir" && as_dir=. 4626 for ac_prog in grep ggrep; do 4627 for ac_exec_ext in '' $ac_executable_extensions; do 4628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4629 as_fn_executable_p "$ac_path_GREP" || continue 4630# Check for GNU ac_path_GREP and select it if it is found. 4631 # Check for GNU $ac_path_GREP 4632case `"$ac_path_GREP" --version 2>&1` in 4633*GNU*) 4634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4635*) 4636 ac_count=0 4637 $as_echo_n 0123456789 >"conftest.in" 4638 while : 4639 do 4640 cat "conftest.in" "conftest.in" >"conftest.tmp" 4641 mv "conftest.tmp" "conftest.in" 4642 cp "conftest.in" "conftest.nl" 4643 $as_echo 'GREP' >> "conftest.nl" 4644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4646 as_fn_arith $ac_count + 1 && ac_count=$as_val 4647 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4648 # Best one so far, save it but keep looking for a better one 4649 ac_cv_path_GREP="$ac_path_GREP" 4650 ac_path_GREP_max=$ac_count 4651 fi 4652 # 10*(2^10) chars as input seems more than enough 4653 test $ac_count -gt 10 && break 4654 done 4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4656esac 4657 4658 $ac_path_GREP_found && break 3 4659 done 4660 done 4661 done 4662IFS=$as_save_IFS 4663 if test -z "$ac_cv_path_GREP"; then 4664 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4665 fi 4666else 4667 ac_cv_path_GREP=$GREP 4668fi 4669 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4672$as_echo "$ac_cv_path_GREP" >&6; } 4673 GREP="$ac_cv_path_GREP" 4674 4675 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4677$as_echo_n "checking for egrep... " >&6; } 4678if ${ac_cv_path_EGREP+:} false; then : 4679 $as_echo_n "(cached) " >&6 4680else 4681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4682 then ac_cv_path_EGREP="$GREP -E" 4683 else 4684 if test -z "$EGREP"; then 4685 ac_path_EGREP_found=false 4686 # Loop through the user's path and test for each of PROGNAME-LIST 4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4689do 4690 IFS=$as_save_IFS 4691 test -z "$as_dir" && as_dir=. 4692 for ac_prog in egrep; do 4693 for ac_exec_ext in '' $ac_executable_extensions; do 4694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4695 as_fn_executable_p "$ac_path_EGREP" || continue 4696# Check for GNU ac_path_EGREP and select it if it is found. 4697 # Check for GNU $ac_path_EGREP 4698case `"$ac_path_EGREP" --version 2>&1` in 4699*GNU*) 4700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4701*) 4702 ac_count=0 4703 $as_echo_n 0123456789 >"conftest.in" 4704 while : 4705 do 4706 cat "conftest.in" "conftest.in" >"conftest.tmp" 4707 mv "conftest.tmp" "conftest.in" 4708 cp "conftest.in" "conftest.nl" 4709 $as_echo 'EGREP' >> "conftest.nl" 4710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4712 as_fn_arith $ac_count + 1 && ac_count=$as_val 4713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4714 # Best one so far, save it but keep looking for a better one 4715 ac_cv_path_EGREP="$ac_path_EGREP" 4716 ac_path_EGREP_max=$ac_count 4717 fi 4718 # 10*(2^10) chars as input seems more than enough 4719 test $ac_count -gt 10 && break 4720 done 4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4722esac 4723 4724 $ac_path_EGREP_found && break 3 4725 done 4726 done 4727 done 4728IFS=$as_save_IFS 4729 if test -z "$ac_cv_path_EGREP"; then 4730 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4731 fi 4732else 4733 ac_cv_path_EGREP=$EGREP 4734fi 4735 4736 fi 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4739$as_echo "$ac_cv_path_EGREP" >&6; } 4740 EGREP="$ac_cv_path_EGREP" 4741 4742 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4744$as_echo_n "checking for ANSI C header files... " >&6; } 4745if ${ac_cv_header_stdc+:} false; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4749/* end confdefs.h. */ 4750#include <stdlib.h> 4751#include <stdarg.h> 4752#include <string.h> 4753#include <float.h> 4754 4755int 4756main () 4757{ 4758 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763if ac_fn_c_try_compile "$LINENO"; then : 4764 ac_cv_header_stdc=yes 4765else 4766 ac_cv_header_stdc=no 4767fi 4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4769 4770if test $ac_cv_header_stdc = yes; then 4771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774#include <string.h> 4775 4776_ACEOF 4777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4778 $EGREP "memchr" >/dev/null 2>&1; then : 4779 4780else 4781 ac_cv_header_stdc=no 4782fi 4783rm -f conftest* 4784 4785fi 4786 4787if test $ac_cv_header_stdc = yes; then 4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4790/* end confdefs.h. */ 4791#include <stdlib.h> 4792 4793_ACEOF 4794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4795 $EGREP "free" >/dev/null 2>&1; then : 4796 4797else 4798 ac_cv_header_stdc=no 4799fi 4800rm -f conftest* 4801 4802fi 4803 4804if test $ac_cv_header_stdc = yes; then 4805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4806 if test "$cross_compiling" = yes; then : 4807 : 4808else 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811#include <ctype.h> 4812#include <stdlib.h> 4813#if ((' ' & 0x0FF) == 0x020) 4814# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4815# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4816#else 4817# define ISLOWER(c) \ 4818 (('a' <= (c) && (c) <= 'i') \ 4819 || ('j' <= (c) && (c) <= 'r') \ 4820 || ('s' <= (c) && (c) <= 'z')) 4821# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4822#endif 4823 4824#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4825int 4826main () 4827{ 4828 int i; 4829 for (i = 0; i < 256; i++) 4830 if (XOR (islower (i), ISLOWER (i)) 4831 || toupper (i) != TOUPPER (i)) 4832 return 2; 4833 return 0; 4834} 4835_ACEOF 4836if ac_fn_c_try_run "$LINENO"; then : 4837 4838else 4839 ac_cv_header_stdc=no 4840fi 4841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4842 conftest.$ac_objext conftest.beam conftest.$ac_ext 4843fi 4844 4845fi 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4848$as_echo "$ac_cv_header_stdc" >&6; } 4849if test $ac_cv_header_stdc = yes; then 4850 4851$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4852 4853fi 4854 4855# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4856for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4857 inttypes.h stdint.h unistd.h 4858do : 4859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4860ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4861" 4862if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4863 cat >>confdefs.h <<_ACEOF 4864#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4865_ACEOF 4866 4867fi 4868 4869done 4870 4871 4872 4873 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4874if test "x$ac_cv_header_minix_config_h" = xyes; then : 4875 MINIX=yes 4876else 4877 MINIX= 4878fi 4879 4880 4881 if test "$MINIX" = yes; then 4882 4883$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4884 4885 4886$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4887 4888 4889$as_echo "#define _MINIX 1" >>confdefs.h 4890 4891 fi 4892 4893 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4895$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4896if ${ac_cv_safe_to_define___extensions__+:} false; then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901 4902# define __EXTENSIONS__ 1 4903 $ac_includes_default 4904int 4905main () 4906{ 4907 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912if ac_fn_c_try_compile "$LINENO"; then : 4913 ac_cv_safe_to_define___extensions__=yes 4914else 4915 ac_cv_safe_to_define___extensions__=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4918fi 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4920$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4921 test $ac_cv_safe_to_define___extensions__ = yes && 4922 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4923 4924 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4925 4926 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4927 4928 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4929 4930 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4931 4932 4933 4934# Initialize libtool 4935 4936case `pwd` in 4937 *\ * | *\ *) 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4939$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4940esac 4941 4942 4943 4944macro_version='2.4.6' 4945macro_revision='2.4.6' 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959ltmain=$ac_aux_dir/ltmain.sh 4960 4961# Make sure we can run config.sub. 4962$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4963 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4964 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4966$as_echo_n "checking build system type... " >&6; } 4967if ${ac_cv_build+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969else 4970 ac_build_alias=$build_alias 4971test "x$ac_build_alias" = x && 4972 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4973test "x$ac_build_alias" = x && 4974 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4975ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4977 4978fi 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4980$as_echo "$ac_cv_build" >&6; } 4981case $ac_cv_build in 4982*-*-*) ;; 4983*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4984esac 4985build=$ac_cv_build 4986ac_save_IFS=$IFS; IFS='-' 4987set x $ac_cv_build 4988shift 4989build_cpu=$1 4990build_vendor=$2 4991shift; shift 4992# Remember, the first character of IFS is used to create $*, 4993# except with old shells: 4994build_os=$* 4995IFS=$ac_save_IFS 4996case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4997 4998 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5000$as_echo_n "checking host system type... " >&6; } 5001if ${ac_cv_host+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test "x$host_alias" = x; then 5005 ac_cv_host=$ac_cv_build 5006else 5007 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5008 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5009fi 5010 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5013$as_echo "$ac_cv_host" >&6; } 5014case $ac_cv_host in 5015*-*-*) ;; 5016*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5017esac 5018host=$ac_cv_host 5019ac_save_IFS=$IFS; IFS='-' 5020set x $ac_cv_host 5021shift 5022host_cpu=$1 5023host_vendor=$2 5024shift; shift 5025# Remember, the first character of IFS is used to create $*, 5026# except with old shells: 5027host_os=$* 5028IFS=$ac_save_IFS 5029case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5030 5031 5032# Backslashify metacharacters that are still active within 5033# double-quoted strings. 5034sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5035 5036# Same as above, but do not quote variable references. 5037double_quote_subst='s/\(["`\\]\)/\\\1/g' 5038 5039# Sed substitution to delay expansion of an escaped shell variable in a 5040# double_quote_subst'ed string. 5041delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5042 5043# Sed substitution to delay expansion of an escaped single quote. 5044delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5045 5046# Sed substitution to avoid accidental globbing in evaled expressions 5047no_glob_subst='s/\*/\\\*/g' 5048 5049ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5050ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5051ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5052 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5054$as_echo_n "checking how to print strings... " >&6; } 5055# Test print first, because it will be a builtin if present. 5056if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5057 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5058 ECHO='print -r --' 5059elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5060 ECHO='printf %s\n' 5061else 5062 # Use this function as a fallback that always works. 5063 func_fallback_echo () 5064 { 5065 eval 'cat <<_LTECHO_EOF 5066$1 5067_LTECHO_EOF' 5068 } 5069 ECHO='func_fallback_echo' 5070fi 5071 5072# func_echo_all arg... 5073# Invoke $ECHO with all args, space-separated. 5074func_echo_all () 5075{ 5076 $ECHO "" 5077} 5078 5079case $ECHO in 5080 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5081$as_echo "printf" >&6; } ;; 5082 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5083$as_echo "print -r" >&6; } ;; 5084 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5085$as_echo "cat" >&6; } ;; 5086esac 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5102$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5103if ${ac_cv_path_SED+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5107 for ac_i in 1 2 3 4 5 6 7; do 5108 ac_script="$ac_script$as_nl$ac_script" 5109 done 5110 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5111 { ac_script=; unset ac_script;} 5112 if test -z "$SED"; then 5113 ac_path_SED_found=false 5114 # Loop through the user's path and test for each of PROGNAME-LIST 5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_prog in sed gsed; do 5121 for ac_exec_ext in '' $ac_executable_extensions; do 5122 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5123 as_fn_executable_p "$ac_path_SED" || continue 5124# Check for GNU ac_path_SED and select it if it is found. 5125 # Check for GNU $ac_path_SED 5126case `"$ac_path_SED" --version 2>&1` in 5127*GNU*) 5128 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5129*) 5130 ac_count=0 5131 $as_echo_n 0123456789 >"conftest.in" 5132 while : 5133 do 5134 cat "conftest.in" "conftest.in" >"conftest.tmp" 5135 mv "conftest.tmp" "conftest.in" 5136 cp "conftest.in" "conftest.nl" 5137 $as_echo '' >> "conftest.nl" 5138 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5140 as_fn_arith $ac_count + 1 && ac_count=$as_val 5141 if test $ac_count -gt ${ac_path_SED_max-0}; then 5142 # Best one so far, save it but keep looking for a better one 5143 ac_cv_path_SED="$ac_path_SED" 5144 ac_path_SED_max=$ac_count 5145 fi 5146 # 10*(2^10) chars as input seems more than enough 5147 test $ac_count -gt 10 && break 5148 done 5149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5150esac 5151 5152 $ac_path_SED_found && break 3 5153 done 5154 done 5155 done 5156IFS=$as_save_IFS 5157 if test -z "$ac_cv_path_SED"; then 5158 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5159 fi 5160else 5161 ac_cv_path_SED=$SED 5162fi 5163 5164fi 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5166$as_echo "$ac_cv_path_SED" >&6; } 5167 SED="$ac_cv_path_SED" 5168 rm -f conftest.sed 5169 5170test -z "$SED" && SED=sed 5171Xsed="$SED -e 1s/^X//" 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5184$as_echo_n "checking for fgrep... " >&6; } 5185if ${ac_cv_path_FGREP+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5189 then ac_cv_path_FGREP="$GREP -F" 5190 else 5191 if test -z "$FGREP"; then 5192 ac_path_FGREP_found=false 5193 # Loop through the user's path and test for each of PROGNAME-LIST 5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_prog in fgrep; do 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5202 as_fn_executable_p "$ac_path_FGREP" || continue 5203# Check for GNU ac_path_FGREP and select it if it is found. 5204 # Check for GNU $ac_path_FGREP 5205case `"$ac_path_FGREP" --version 2>&1` in 5206*GNU*) 5207 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5208*) 5209 ac_count=0 5210 $as_echo_n 0123456789 >"conftest.in" 5211 while : 5212 do 5213 cat "conftest.in" "conftest.in" >"conftest.tmp" 5214 mv "conftest.tmp" "conftest.in" 5215 cp "conftest.in" "conftest.nl" 5216 $as_echo 'FGREP' >> "conftest.nl" 5217 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5219 as_fn_arith $ac_count + 1 && ac_count=$as_val 5220 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5221 # Best one so far, save it but keep looking for a better one 5222 ac_cv_path_FGREP="$ac_path_FGREP" 5223 ac_path_FGREP_max=$ac_count 5224 fi 5225 # 10*(2^10) chars as input seems more than enough 5226 test $ac_count -gt 10 && break 5227 done 5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5229esac 5230 5231 $ac_path_FGREP_found && break 3 5232 done 5233 done 5234 done 5235IFS=$as_save_IFS 5236 if test -z "$ac_cv_path_FGREP"; then 5237 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5238 fi 5239else 5240 ac_cv_path_FGREP=$FGREP 5241fi 5242 5243 fi 5244fi 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5246$as_echo "$ac_cv_path_FGREP" >&6; } 5247 FGREP="$ac_cv_path_FGREP" 5248 5249 5250test -z "$GREP" && GREP=grep 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270# Check whether --with-gnu-ld was given. 5271if test "${with_gnu_ld+set}" = set; then : 5272 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5273else 5274 with_gnu_ld=no 5275fi 5276 5277ac_prog=ld 5278if test yes = "$GCC"; then 5279 # Check if gcc -print-prog-name=ld gives a path. 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5281$as_echo_n "checking for ld used by $CC... " >&6; } 5282 case $host in 5283 *-*-mingw*) 5284 # gcc leaves a trailing carriage return, which upsets mingw 5285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5286 *) 5287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5288 esac 5289 case $ac_prog in 5290 # Accept absolute paths. 5291 [\\/]* | ?:[\\/]*) 5292 re_direlt='/[^/][^/]*/\.\./' 5293 # Canonicalize the pathname of ld 5294 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5295 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5296 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5297 done 5298 test -z "$LD" && LD=$ac_prog 5299 ;; 5300 "") 5301 # If it fails, then pretend we aren't using GCC. 5302 ac_prog=ld 5303 ;; 5304 *) 5305 # If it is relative, then search for the first ld in PATH. 5306 with_gnu_ld=unknown 5307 ;; 5308 esac 5309elif test yes = "$with_gnu_ld"; then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5311$as_echo_n "checking for GNU ld... " >&6; } 5312else 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5314$as_echo_n "checking for non-GNU ld... " >&6; } 5315fi 5316if ${lt_cv_path_LD+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 if test -z "$LD"; then 5320 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5321 for ac_dir in $PATH; do 5322 IFS=$lt_save_ifs 5323 test -z "$ac_dir" && ac_dir=. 5324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5325 lt_cv_path_LD=$ac_dir/$ac_prog 5326 # Check to see if the program is GNU ld. I'd rather use --version, 5327 # but apparently some variants of GNU ld only accept -v. 5328 # Break only if it was the GNU/non-GNU ld that we prefer. 5329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5330 *GNU* | *'with BFD'*) 5331 test no != "$with_gnu_ld" && break 5332 ;; 5333 *) 5334 test yes != "$with_gnu_ld" && break 5335 ;; 5336 esac 5337 fi 5338 done 5339 IFS=$lt_save_ifs 5340else 5341 lt_cv_path_LD=$LD # Let the user override the test with a path. 5342fi 5343fi 5344 5345LD=$lt_cv_path_LD 5346if test -n "$LD"; then 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5348$as_echo "$LD" >&6; } 5349else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351$as_echo "no" >&6; } 5352fi 5353test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5355$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5356if ${lt_cv_prog_gnu_ld+:} false; then : 5357 $as_echo_n "(cached) " >&6 5358else 5359 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5360case `$LD -v 2>&1 </dev/null` in 5361*GNU* | *'with BFD'*) 5362 lt_cv_prog_gnu_ld=yes 5363 ;; 5364*) 5365 lt_cv_prog_gnu_ld=no 5366 ;; 5367esac 5368fi 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5370$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5371with_gnu_ld=$lt_cv_prog_gnu_ld 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5382$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5383if ${lt_cv_path_NM+:} false; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 if test -n "$NM"; then 5387 # Let the user override the test. 5388 lt_cv_path_NM=$NM 5389else 5390 lt_nm_to_check=${ac_tool_prefix}nm 5391 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5392 lt_nm_to_check="$lt_nm_to_check nm" 5393 fi 5394 for lt_tmp_nm in $lt_nm_to_check; do 5395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5396 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5397 IFS=$lt_save_ifs 5398 test -z "$ac_dir" && ac_dir=. 5399 tmp_nm=$ac_dir/$lt_tmp_nm 5400 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5401 # Check to see if the nm accepts a BSD-compat flag. 5402 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5403 # nm: unknown option "B" ignored 5404 # Tru64's nm complains that /dev/null is an invalid object file 5405 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5406 case $build_os in 5407 mingw*) lt_bad_file=conftest.nm/nofile ;; 5408 *) lt_bad_file=/dev/null ;; 5409 esac 5410 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5411 *$lt_bad_file* | *'Invalid file or object type'*) 5412 lt_cv_path_NM="$tmp_nm -B" 5413 break 2 5414 ;; 5415 *) 5416 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5417 */dev/null*) 5418 lt_cv_path_NM="$tmp_nm -p" 5419 break 2 5420 ;; 5421 *) 5422 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5423 continue # so that we can try to find one that supports BSD flags 5424 ;; 5425 esac 5426 ;; 5427 esac 5428 fi 5429 done 5430 IFS=$lt_save_ifs 5431 done 5432 : ${lt_cv_path_NM=no} 5433fi 5434fi 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5436$as_echo "$lt_cv_path_NM" >&6; } 5437if test no != "$lt_cv_path_NM"; then 5438 NM=$lt_cv_path_NM 5439else 5440 # Didn't find any BSD compatible name lister, look for dumpbin. 5441 if test -n "$DUMPBIN"; then : 5442 # Let the user override the test. 5443 else 5444 if test -n "$ac_tool_prefix"; then 5445 for ac_prog in dumpbin "link -dump" 5446 do 5447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5448set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if ${ac_cv_prog_DUMPBIN+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$DUMPBIN"; then 5455 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5464 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469 done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474DUMPBIN=$ac_cv_prog_DUMPBIN 5475if test -n "$DUMPBIN"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5477$as_echo "$DUMPBIN" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 5484 test -n "$DUMPBIN" && break 5485 done 5486fi 5487if test -z "$DUMPBIN"; then 5488 ac_ct_DUMPBIN=$DUMPBIN 5489 for ac_prog in dumpbin "link -dump" 5490do 5491 # Extract the first word of "$ac_prog", so it can be a program name with args. 5492set dummy $ac_prog; ac_word=$2 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5494$as_echo_n "checking for $ac_word... " >&6; } 5495if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 if test -n "$ac_ct_DUMPBIN"; then 5499 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5500else 5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502for as_dir in $PATH 5503do 5504 IFS=$as_save_IFS 5505 test -z "$as_dir" && as_dir=. 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5508 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5510 break 2 5511 fi 5512done 5513 done 5514IFS=$as_save_IFS 5515 5516fi 5517fi 5518ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5519if test -n "$ac_ct_DUMPBIN"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5521$as_echo "$ac_ct_DUMPBIN" >&6; } 5522else 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524$as_echo "no" >&6; } 5525fi 5526 5527 5528 test -n "$ac_ct_DUMPBIN" && break 5529done 5530 5531 if test "x$ac_ct_DUMPBIN" = x; then 5532 DUMPBIN=":" 5533 else 5534 case $cross_compiling:$ac_tool_warned in 5535yes:) 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5538ac_tool_warned=yes ;; 5539esac 5540 DUMPBIN=$ac_ct_DUMPBIN 5541 fi 5542fi 5543 5544 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5545 *COFF*) 5546 DUMPBIN="$DUMPBIN -symbols -headers" 5547 ;; 5548 *) 5549 DUMPBIN=: 5550 ;; 5551 esac 5552 fi 5553 5554 if test : != "$DUMPBIN"; then 5555 NM=$DUMPBIN 5556 fi 5557fi 5558test -z "$NM" && NM=nm 5559 5560 5561 5562 5563 5564 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5566$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5567if ${lt_cv_nm_interface+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 lt_cv_nm_interface="BSD nm" 5571 echo "int some_variable = 0;" > conftest.$ac_ext 5572 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5573 (eval "$ac_compile" 2>conftest.err) 5574 cat conftest.err >&5 5575 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5576 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5577 cat conftest.err >&5 5578 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5579 cat conftest.out >&5 5580 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5581 lt_cv_nm_interface="MS dumpbin" 5582 fi 5583 rm -f conftest* 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5586$as_echo "$lt_cv_nm_interface" >&6; } 5587 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5589$as_echo_n "checking whether ln -s works... " >&6; } 5590LN_S=$as_ln_s 5591if test "$LN_S" = "ln -s"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5593$as_echo "yes" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5596$as_echo "no, using $LN_S" >&6; } 5597fi 5598 5599# find the maximum length of command line arguments 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5601$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5602if ${lt_cv_sys_max_cmd_len+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 i=0 5606 teststring=ABCD 5607 5608 case $build_os in 5609 msdosdjgpp*) 5610 # On DJGPP, this test can blow up pretty badly due to problems in libc 5611 # (any single argument exceeding 2000 bytes causes a buffer overrun 5612 # during glob expansion). Even if it were fixed, the result of this 5613 # check would be larger than it should be. 5614 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5615 ;; 5616 5617 gnu*) 5618 # Under GNU Hurd, this test is not required because there is 5619 # no limit to the length of command line arguments. 5620 # Libtool will interpret -1 as no limit whatsoever 5621 lt_cv_sys_max_cmd_len=-1; 5622 ;; 5623 5624 cygwin* | mingw* | cegcc*) 5625 # On Win9x/ME, this test blows up -- it succeeds, but takes 5626 # about 5 minutes as the teststring grows exponentially. 5627 # Worse, since 9x/ME are not pre-emptively multitasking, 5628 # you end up with a "frozen" computer, even though with patience 5629 # the test eventually succeeds (with a max line length of 256k). 5630 # Instead, let's just punt: use the minimum linelength reported by 5631 # all of the supported platforms: 8192 (on NT/2K/XP). 5632 lt_cv_sys_max_cmd_len=8192; 5633 ;; 5634 5635 mint*) 5636 # On MiNT this can take a long time and run out of memory. 5637 lt_cv_sys_max_cmd_len=8192; 5638 ;; 5639 5640 amigaos*) 5641 # On AmigaOS with pdksh, this test takes hours, literally. 5642 # So we just punt and use a minimum line length of 8192. 5643 lt_cv_sys_max_cmd_len=8192; 5644 ;; 5645 5646 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5647 # This has been around since 386BSD, at least. Likely further. 5648 if test -x /sbin/sysctl; then 5649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5650 elif test -x /usr/sbin/sysctl; then 5651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5652 else 5653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5654 fi 5655 # And add a safety zone 5656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5658 ;; 5659 5660 interix*) 5661 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5662 lt_cv_sys_max_cmd_len=196608 5663 ;; 5664 5665 os2*) 5666 # The test takes a long time on OS/2. 5667 lt_cv_sys_max_cmd_len=8192 5668 ;; 5669 5670 osf*) 5671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5673 # nice to cause kernel panics so lets avoid the loop below. 5674 # First set a reasonable default. 5675 lt_cv_sys_max_cmd_len=16384 5676 # 5677 if test -x /sbin/sysconfig; then 5678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5679 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5680 esac 5681 fi 5682 ;; 5683 sco3.2v5*) 5684 lt_cv_sys_max_cmd_len=102400 5685 ;; 5686 sysv5* | sco5v6* | sysv4.2uw2*) 5687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5688 if test -n "$kargmax"; then 5689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5690 else 5691 lt_cv_sys_max_cmd_len=32768 5692 fi 5693 ;; 5694 *) 5695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5696 if test -n "$lt_cv_sys_max_cmd_len" && \ 5697 test undefined != "$lt_cv_sys_max_cmd_len"; then 5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5700 else 5701 # Make teststring a little bigger before we do anything with it. 5702 # a 1K string should be a reasonable start. 5703 for i in 1 2 3 4 5 6 7 8; do 5704 teststring=$teststring$teststring 5705 done 5706 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5707 # If test is not a shell built-in, we'll probably end up computing a 5708 # maximum length that is only half of the actual maximum length, but 5709 # we can't tell. 5710 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5711 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5712 test 17 != "$i" # 1/2 MB should be enough 5713 do 5714 i=`expr $i + 1` 5715 teststring=$teststring$teststring 5716 done 5717 # Only check the string length outside the loop. 5718 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5719 teststring= 5720 # Add a significant safety factor because C++ compilers can tack on 5721 # massive amounts of additional arguments before passing them to the 5722 # linker. It appears as though 1/2 is a usable value. 5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5724 fi 5725 ;; 5726 esac 5727 5728fi 5729 5730if test -n "$lt_cv_sys_max_cmd_len"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5732$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5733else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5735$as_echo "none" >&6; } 5736fi 5737max_cmd_len=$lt_cv_sys_max_cmd_len 5738 5739 5740 5741 5742 5743 5744: ${CP="cp -f"} 5745: ${MV="mv -f"} 5746: ${RM="rm -f"} 5747 5748if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5749 lt_unset=unset 5750else 5751 lt_unset=false 5752fi 5753 5754 5755 5756 5757 5758# test EBCDIC or ASCII 5759case `echo X|tr X '\101'` in 5760 A) # ASCII based system 5761 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5762 lt_SP2NL='tr \040 \012' 5763 lt_NL2SP='tr \015\012 \040\040' 5764 ;; 5765 *) # EBCDIC based system 5766 lt_SP2NL='tr \100 \n' 5767 lt_NL2SP='tr \r\n \100\100' 5768 ;; 5769esac 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5780$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5781if ${lt_cv_to_host_file_cmd+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 case $host in 5785 *-*-mingw* ) 5786 case $build in 5787 *-*-mingw* ) # actually msys 5788 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5789 ;; 5790 *-*-cygwin* ) 5791 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5792 ;; 5793 * ) # otherwise, assume *nix 5794 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5795 ;; 5796 esac 5797 ;; 5798 *-*-cygwin* ) 5799 case $build in 5800 *-*-mingw* ) # actually msys 5801 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5802 ;; 5803 *-*-cygwin* ) 5804 lt_cv_to_host_file_cmd=func_convert_file_noop 5805 ;; 5806 * ) # otherwise, assume *nix 5807 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5808 ;; 5809 esac 5810 ;; 5811 * ) # unhandled hosts (and "normal" native builds) 5812 lt_cv_to_host_file_cmd=func_convert_file_noop 5813 ;; 5814esac 5815 5816fi 5817 5818to_host_file_cmd=$lt_cv_to_host_file_cmd 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5820$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5821 5822 5823 5824 5825 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5827$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5828if ${lt_cv_to_tool_file_cmd+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 #assume ordinary cross tools, or native build. 5832lt_cv_to_tool_file_cmd=func_convert_file_noop 5833case $host in 5834 *-*-mingw* ) 5835 case $build in 5836 *-*-mingw* ) # actually msys 5837 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5838 ;; 5839 esac 5840 ;; 5841esac 5842 5843fi 5844 5845to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5847$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5848 5849 5850 5851 5852 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5854$as_echo_n "checking for $LD option to reload object files... " >&6; } 5855if ${lt_cv_ld_reload_flag+:} false; then : 5856 $as_echo_n "(cached) " >&6 5857else 5858 lt_cv_ld_reload_flag='-r' 5859fi 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5861$as_echo "$lt_cv_ld_reload_flag" >&6; } 5862reload_flag=$lt_cv_ld_reload_flag 5863case $reload_flag in 5864"" | " "*) ;; 5865*) reload_flag=" $reload_flag" ;; 5866esac 5867reload_cmds='$LD$reload_flag -o $output$reload_objs' 5868case $host_os in 5869 cygwin* | mingw* | pw32* | cegcc*) 5870 if test yes != "$GCC"; then 5871 reload_cmds=false 5872 fi 5873 ;; 5874 darwin*) 5875 if test yes = "$GCC"; then 5876 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5877 else 5878 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5879 fi 5880 ;; 5881esac 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891if test -n "$ac_tool_prefix"; then 5892 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5893set dummy ${ac_tool_prefix}objdump; ac_word=$2 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5895$as_echo_n "checking for $ac_word... " >&6; } 5896if ${ac_cv_prog_OBJDUMP+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 if test -n "$OBJDUMP"; then 5900 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5901else 5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5903for as_dir in $PATH 5904do 5905 IFS=$as_save_IFS 5906 test -z "$as_dir" && as_dir=. 5907 for ac_exec_ext in '' $ac_executable_extensions; do 5908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5911 break 2 5912 fi 5913done 5914 done 5915IFS=$as_save_IFS 5916 5917fi 5918fi 5919OBJDUMP=$ac_cv_prog_OBJDUMP 5920if test -n "$OBJDUMP"; then 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5922$as_echo "$OBJDUMP" >&6; } 5923else 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5925$as_echo "no" >&6; } 5926fi 5927 5928 5929fi 5930if test -z "$ac_cv_prog_OBJDUMP"; then 5931 ac_ct_OBJDUMP=$OBJDUMP 5932 # Extract the first word of "objdump", so it can be a program name with args. 5933set dummy objdump; ac_word=$2 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5935$as_echo_n "checking for $ac_word... " >&6; } 5936if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 if test -n "$ac_ct_OBJDUMP"; then 5940 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5941else 5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_exec_ext in '' $ac_executable_extensions; do 5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5949 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954 done 5955IFS=$as_save_IFS 5956 5957fi 5958fi 5959ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5960if test -n "$ac_ct_OBJDUMP"; then 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5962$as_echo "$ac_ct_OBJDUMP" >&6; } 5963else 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5965$as_echo "no" >&6; } 5966fi 5967 5968 if test "x$ac_ct_OBJDUMP" = x; then 5969 OBJDUMP="false" 5970 else 5971 case $cross_compiling:$ac_tool_warned in 5972yes:) 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5975ac_tool_warned=yes ;; 5976esac 5977 OBJDUMP=$ac_ct_OBJDUMP 5978 fi 5979else 5980 OBJDUMP="$ac_cv_prog_OBJDUMP" 5981fi 5982 5983test -z "$OBJDUMP" && OBJDUMP=objdump 5984 5985 5986 5987 5988 5989 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5991$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5992if ${lt_cv_deplibs_check_method+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 lt_cv_file_magic_cmd='$MAGIC_CMD' 5996lt_cv_file_magic_test_file= 5997lt_cv_deplibs_check_method='unknown' 5998# Need to set the preceding variable on all platforms that support 5999# interlibrary dependencies. 6000# 'none' -- dependencies not supported. 6001# 'unknown' -- same as none, but documents that we really don't know. 6002# 'pass_all' -- all dependencies passed with no checks. 6003# 'test_compile' -- check by making test program. 6004# 'file_magic [[regex]]' -- check by looking for files in library path 6005# that responds to the $file_magic_cmd with a given extended regex. 6006# If you have 'file' or equivalent on your system and you're not sure 6007# whether 'pass_all' will *always* work, you probably want this one. 6008 6009case $host_os in 6010aix[4-9]*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014beos*) 6015 lt_cv_deplibs_check_method=pass_all 6016 ;; 6017 6018bsdi[45]*) 6019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6020 lt_cv_file_magic_cmd='/usr/bin/file -L' 6021 lt_cv_file_magic_test_file=/shlib/libc.so 6022 ;; 6023 6024cygwin*) 6025 # func_win32_libid is a shell function defined in ltmain.sh 6026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6027 lt_cv_file_magic_cmd='func_win32_libid' 6028 ;; 6029 6030mingw* | pw32*) 6031 # Base MSYS/MinGW do not provide the 'file' command needed by 6032 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6033 # unless we find 'file', for example because we are cross-compiling. 6034 if ( file / ) >/dev/null 2>&1; then 6035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6036 lt_cv_file_magic_cmd='func_win32_libid' 6037 else 6038 # Keep this pattern in sync with the one in func_win32_libid. 6039 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6040 lt_cv_file_magic_cmd='$OBJDUMP -f' 6041 fi 6042 ;; 6043 6044cegcc*) 6045 # use the weaker test based on 'objdump'. See mingw*. 6046 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6047 lt_cv_file_magic_cmd='$OBJDUMP -f' 6048 ;; 6049 6050darwin* | rhapsody*) 6051 lt_cv_deplibs_check_method=pass_all 6052 ;; 6053 6054freebsd* | dragonfly*) 6055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6056 case $host_cpu in 6057 i*86 ) 6058 # Not sure whether the presence of OpenBSD here was a mistake. 6059 # Let's accept both of them until this is cleared up. 6060 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6061 lt_cv_file_magic_cmd=/usr/bin/file 6062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6063 ;; 6064 esac 6065 else 6066 lt_cv_deplibs_check_method=pass_all 6067 fi 6068 ;; 6069 6070haiku*) 6071 lt_cv_deplibs_check_method=pass_all 6072 ;; 6073 6074hpux10.20* | hpux11*) 6075 lt_cv_file_magic_cmd=/usr/bin/file 6076 case $host_cpu in 6077 ia64*) 6078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6080 ;; 6081 hppa*64*) 6082 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]' 6083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6084 ;; 6085 *) 6086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6087 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6088 ;; 6089 esac 6090 ;; 6091 6092interix[3-9]*) 6093 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6095 ;; 6096 6097irix5* | irix6* | nonstopux*) 6098 case $LD in 6099 *-32|*"-32 ") libmagic=32-bit;; 6100 *-n32|*"-n32 ") libmagic=N32;; 6101 *-64|*"-64 ") libmagic=64-bit;; 6102 *) libmagic=never-match;; 6103 esac 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107# This must be glibc/ELF. 6108linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6109 lt_cv_deplibs_check_method=pass_all 6110 ;; 6111 6112netbsd* | netbsdelf*-gnu) 6113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6115 else 6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6117 fi 6118 ;; 6119 6120newos6*) 6121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6122 lt_cv_file_magic_cmd=/usr/bin/file 6123 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6124 ;; 6125 6126*nto* | *qnx*) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 6130openbsd* | bitrig*) 6131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6133 else 6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6135 fi 6136 ;; 6137 6138osf3* | osf4* | osf5*) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 6142rdos*) 6143 lt_cv_deplibs_check_method=pass_all 6144 ;; 6145 6146solaris*) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 6150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154sysv4 | sysv4.3*) 6155 case $host_vendor in 6156 motorola) 6157 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]' 6158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6159 ;; 6160 ncr) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 sequent) 6164 lt_cv_file_magic_cmd='/bin/file' 6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6166 ;; 6167 sni) 6168 lt_cv_file_magic_cmd='/bin/file' 6169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6170 lt_cv_file_magic_test_file=/lib/libc.so 6171 ;; 6172 siemens) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 pc) 6176 lt_cv_deplibs_check_method=pass_all 6177 ;; 6178 esac 6179 ;; 6180 6181tpf*) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184os2*) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187esac 6188 6189fi 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6191$as_echo "$lt_cv_deplibs_check_method" >&6; } 6192 6193file_magic_glob= 6194want_nocaseglob=no 6195if test "$build" = "$host"; then 6196 case $host_os in 6197 mingw* | pw32*) 6198 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6199 want_nocaseglob=yes 6200 else 6201 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6202 fi 6203 ;; 6204 esac 6205fi 6206 6207file_magic_cmd=$lt_cv_file_magic_cmd 6208deplibs_check_method=$lt_cv_deplibs_check_method 6209test -z "$deplibs_check_method" && deplibs_check_method=unknown 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232if test -n "$ac_tool_prefix"; then 6233 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6234set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if ${ac_cv_prog_DLLTOOL+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$DLLTOOL"; then 6241 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6250 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260DLLTOOL=$ac_cv_prog_DLLTOOL 6261if test -n "$DLLTOOL"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6263$as_echo "$DLLTOOL" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 6270fi 6271if test -z "$ac_cv_prog_DLLTOOL"; then 6272 ac_ct_DLLTOOL=$DLLTOOL 6273 # Extract the first word of "dlltool", so it can be a program name with args. 6274set dummy dlltool; ac_word=$2 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6276$as_echo_n "checking for $ac_word... " >&6; } 6277if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 if test -n "$ac_ct_DLLTOOL"; then 6281 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6282else 6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284for as_dir in $PATH 6285do 6286 IFS=$as_save_IFS 6287 test -z "$as_dir" && as_dir=. 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6290 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294done 6295 done 6296IFS=$as_save_IFS 6297 6298fi 6299fi 6300ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6301if test -n "$ac_ct_DLLTOOL"; then 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6303$as_echo "$ac_ct_DLLTOOL" >&6; } 6304else 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6306$as_echo "no" >&6; } 6307fi 6308 6309 if test "x$ac_ct_DLLTOOL" = x; then 6310 DLLTOOL="false" 6311 else 6312 case $cross_compiling:$ac_tool_warned in 6313yes:) 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6316ac_tool_warned=yes ;; 6317esac 6318 DLLTOOL=$ac_ct_DLLTOOL 6319 fi 6320else 6321 DLLTOOL="$ac_cv_prog_DLLTOOL" 6322fi 6323 6324test -z "$DLLTOOL" && DLLTOOL=dlltool 6325 6326 6327 6328 6329 6330 6331 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6333$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6334if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 lt_cv_sharedlib_from_linklib_cmd='unknown' 6338 6339case $host_os in 6340cygwin* | mingw* | pw32* | cegcc*) 6341 # two different shell functions defined in ltmain.sh; 6342 # decide which one to use based on capabilities of $DLLTOOL 6343 case `$DLLTOOL --help 2>&1` in 6344 *--identify-strict*) 6345 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6346 ;; 6347 *) 6348 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6349 ;; 6350 esac 6351 ;; 6352*) 6353 # fallback: assume linklib IS sharedlib 6354 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6355 ;; 6356esac 6357 6358fi 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6360$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6361sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6362test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6363 6364 6365 6366 6367 6368 6369 6370if test -n "$ac_tool_prefix"; then 6371 for ac_prog in ar 6372 do 6373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6374set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6376$as_echo_n "checking for $ac_word... " >&6; } 6377if ${ac_cv_prog_AR+:} false; then : 6378 $as_echo_n "(cached) " >&6 6379else 6380 if test -n "$AR"; then 6381 ac_cv_prog_AR="$AR" # Let the user override the test. 6382else 6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6390 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395 done 6396IFS=$as_save_IFS 6397 6398fi 6399fi 6400AR=$ac_cv_prog_AR 6401if test -n "$AR"; then 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6403$as_echo "$AR" >&6; } 6404else 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6406$as_echo "no" >&6; } 6407fi 6408 6409 6410 test -n "$AR" && break 6411 done 6412fi 6413if test -z "$AR"; then 6414 ac_ct_AR=$AR 6415 for ac_prog in ar 6416do 6417 # Extract the first word of "$ac_prog", so it can be a program name with args. 6418set dummy $ac_prog; ac_word=$2 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420$as_echo_n "checking for $ac_word... " >&6; } 6421if ${ac_cv_prog_ac_ct_AR+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 if test -n "$ac_ct_AR"; then 6425 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6426else 6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6428for as_dir in $PATH 6429do 6430 IFS=$as_save_IFS 6431 test -z "$as_dir" && as_dir=. 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6434 ac_cv_prog_ac_ct_AR="$ac_prog" 6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438done 6439 done 6440IFS=$as_save_IFS 6441 6442fi 6443fi 6444ac_ct_AR=$ac_cv_prog_ac_ct_AR 6445if test -n "$ac_ct_AR"; then 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6447$as_echo "$ac_ct_AR" >&6; } 6448else 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6450$as_echo "no" >&6; } 6451fi 6452 6453 6454 test -n "$ac_ct_AR" && break 6455done 6456 6457 if test "x$ac_ct_AR" = x; then 6458 AR="false" 6459 else 6460 case $cross_compiling:$ac_tool_warned in 6461yes:) 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6464ac_tool_warned=yes ;; 6465esac 6466 AR=$ac_ct_AR 6467 fi 6468fi 6469 6470: ${AR=ar} 6471: ${AR_FLAGS=cru} 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6484$as_echo_n "checking for archiver @FILE support... " >&6; } 6485if ${lt_cv_ar_at_file+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 lt_cv_ar_at_file=no 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491 6492int 6493main () 6494{ 6495 6496 ; 6497 return 0; 6498} 6499_ACEOF 6500if ac_fn_c_try_compile "$LINENO"; then : 6501 echo conftest.$ac_objext > conftest.lst 6502 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6504 (eval $lt_ar_try) 2>&5 6505 ac_status=$? 6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6507 test $ac_status = 0; } 6508 if test 0 -eq "$ac_status"; then 6509 # Ensure the archiver fails upon bogus file names. 6510 rm -f conftest.$ac_objext libconftest.a 6511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6512 (eval $lt_ar_try) 2>&5 6513 ac_status=$? 6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6515 test $ac_status = 0; } 6516 if test 0 -ne "$ac_status"; then 6517 lt_cv_ar_at_file=@ 6518 fi 6519 fi 6520 rm -f conftest.* libconftest.a 6521 6522fi 6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6524 6525fi 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6527$as_echo "$lt_cv_ar_at_file" >&6; } 6528 6529if test no = "$lt_cv_ar_at_file"; then 6530 archiver_list_spec= 6531else 6532 archiver_list_spec=$lt_cv_ar_at_file 6533fi 6534 6535 6536 6537 6538 6539 6540 6541if test -n "$ac_tool_prefix"; then 6542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6543set dummy ${ac_tool_prefix}strip; ac_word=$2 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6545$as_echo_n "checking for $ac_word... " >&6; } 6546if ${ac_cv_prog_STRIP+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 if test -n "$STRIP"; then 6550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6551else 6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6553for as_dir in $PATH 6554do 6555 IFS=$as_save_IFS 6556 test -z "$as_dir" && as_dir=. 6557 for ac_exec_ext in '' $ac_executable_extensions; do 6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6559 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6561 break 2 6562 fi 6563done 6564 done 6565IFS=$as_save_IFS 6566 6567fi 6568fi 6569STRIP=$ac_cv_prog_STRIP 6570if test -n "$STRIP"; then 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6572$as_echo "$STRIP" >&6; } 6573else 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6575$as_echo "no" >&6; } 6576fi 6577 6578 6579fi 6580if test -z "$ac_cv_prog_STRIP"; then 6581 ac_ct_STRIP=$STRIP 6582 # Extract the first word of "strip", so it can be a program name with args. 6583set dummy strip; ac_word=$2 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6585$as_echo_n "checking for $ac_word... " >&6; } 6586if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6587 $as_echo_n "(cached) " >&6 6588else 6589 if test -n "$ac_ct_STRIP"; then 6590 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6591else 6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6593for as_dir in $PATH 6594do 6595 IFS=$as_save_IFS 6596 test -z "$as_dir" && as_dir=. 6597 for ac_exec_ext in '' $ac_executable_extensions; do 6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6599 ac_cv_prog_ac_ct_STRIP="strip" 6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6601 break 2 6602 fi 6603done 6604 done 6605IFS=$as_save_IFS 6606 6607fi 6608fi 6609ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6610if test -n "$ac_ct_STRIP"; then 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6612$as_echo "$ac_ct_STRIP" >&6; } 6613else 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6615$as_echo "no" >&6; } 6616fi 6617 6618 if test "x$ac_ct_STRIP" = x; then 6619 STRIP=":" 6620 else 6621 case $cross_compiling:$ac_tool_warned in 6622yes:) 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6625ac_tool_warned=yes ;; 6626esac 6627 STRIP=$ac_ct_STRIP 6628 fi 6629else 6630 STRIP="$ac_cv_prog_STRIP" 6631fi 6632 6633test -z "$STRIP" && STRIP=: 6634 6635 6636 6637 6638 6639 6640if test -n "$ac_tool_prefix"; then 6641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6642set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644$as_echo_n "checking for $ac_word... " >&6; } 6645if ${ac_cv_prog_RANLIB+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 if test -n "$RANLIB"; then 6649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668RANLIB=$ac_cv_prog_RANLIB 6669if test -n "$RANLIB"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6671$as_echo "$RANLIB" >&6; } 6672else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674$as_echo "no" >&6; } 6675fi 6676 6677 6678fi 6679if test -z "$ac_cv_prog_RANLIB"; then 6680 ac_ct_RANLIB=$RANLIB 6681 # Extract the first word of "ranlib", so it can be a program name with args. 6682set dummy ranlib; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 if test -n "$ac_ct_RANLIB"; then 6689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6698 ac_cv_prog_ac_ct_RANLIB="ranlib" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703 done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6709if test -n "$ac_ct_RANLIB"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6711$as_echo "$ac_ct_RANLIB" >&6; } 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; } 6715fi 6716 6717 if test "x$ac_ct_RANLIB" = x; then 6718 RANLIB=":" 6719 else 6720 case $cross_compiling:$ac_tool_warned in 6721yes:) 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6724ac_tool_warned=yes ;; 6725esac 6726 RANLIB=$ac_ct_RANLIB 6727 fi 6728else 6729 RANLIB="$ac_cv_prog_RANLIB" 6730fi 6731 6732test -z "$RANLIB" && RANLIB=: 6733 6734 6735 6736 6737 6738 6739# Determine commands to create old-style static archives. 6740old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6741old_postinstall_cmds='chmod 644 $oldlib' 6742old_postuninstall_cmds= 6743 6744if test -n "$RANLIB"; then 6745 case $host_os in 6746 bitrig* | openbsd*) 6747 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6748 ;; 6749 *) 6750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6751 ;; 6752 esac 6753 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6754fi 6755 6756case $host_os in 6757 darwin*) 6758 lock_old_archive_extraction=yes ;; 6759 *) 6760 lock_old_archive_extraction=no ;; 6761esac 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801# If no C compiler was specified, use CC. 6802LTCC=${LTCC-"$CC"} 6803 6804# If no C compiler flags were specified, use CFLAGS. 6805LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6806 6807# Allow CC to be a program name with arguments. 6808compiler=$CC 6809 6810 6811# Check for command to grab the raw symbol name followed by C symbol from nm. 6812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6813$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6814if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6815 $as_echo_n "(cached) " >&6 6816else 6817 6818# These are sane defaults that work on at least a few old systems. 6819# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6820 6821# Character class describing NM global symbol codes. 6822symcode='[BCDEGRST]' 6823 6824# Regexp to match symbols that can be accessed directly from C. 6825sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6826 6827# Define system-specific variables. 6828case $host_os in 6829aix*) 6830 symcode='[BCDT]' 6831 ;; 6832cygwin* | mingw* | pw32* | cegcc*) 6833 symcode='[ABCDGISTW]' 6834 ;; 6835hpux*) 6836 if test ia64 = "$host_cpu"; then 6837 symcode='[ABCDEGRST]' 6838 fi 6839 ;; 6840irix* | nonstopux*) 6841 symcode='[BCDEGRST]' 6842 ;; 6843osf*) 6844 symcode='[BCDEGQRST]' 6845 ;; 6846solaris*) 6847 symcode='[BDRT]' 6848 ;; 6849sco3.2v5*) 6850 symcode='[DT]' 6851 ;; 6852sysv4.2uw2*) 6853 symcode='[DT]' 6854 ;; 6855sysv5* | sco5v6* | unixware* | OpenUNIX*) 6856 symcode='[ABDT]' 6857 ;; 6858sysv4) 6859 symcode='[DFNSTU]' 6860 ;; 6861esac 6862 6863# If we're using GNU nm, then use its standard symbol codes. 6864case `$NM -V 2>&1` in 6865*GNU* | *'with BFD'*) 6866 symcode='[ABCDGIRSTW]' ;; 6867esac 6868 6869if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6870 # Gets list of data symbols to import. 6871 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6872 # Adjust the below global symbol transforms to fixup imported variables. 6873 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6874 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6875 lt_c_name_lib_hook="\ 6876 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6877 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6878else 6879 # Disable hooks by default. 6880 lt_cv_sys_global_symbol_to_import= 6881 lt_cdecl_hook= 6882 lt_c_name_hook= 6883 lt_c_name_lib_hook= 6884fi 6885 6886# Transform an extracted symbol line into a proper C declaration. 6887# Some systems (esp. on ia64) link data and code symbols differently, 6888# so use this general approach. 6889lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6890$lt_cdecl_hook\ 6891" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6892" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6893 6894# Transform an extracted symbol line into symbol name and symbol address 6895lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6896$lt_c_name_hook\ 6897" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6898" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6899 6900# Transform an extracted symbol line into symbol name with lib prefix and 6901# symbol address. 6902lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6903$lt_c_name_lib_hook\ 6904" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6905" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6906" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6907 6908# Handle CRLF in mingw tool chain 6909opt_cr= 6910case $build_os in 6911mingw*) 6912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6913 ;; 6914esac 6915 6916# Try without a prefix underscore, then with it. 6917for ac_symprfx in "" "_"; do 6918 6919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6920 symxfrm="\\1 $ac_symprfx\\2 \\2" 6921 6922 # Write the raw and C identifiers. 6923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6924 # Fake it for dumpbin and say T for any non-static function, 6925 # D for any global variable and I for any imported variable. 6926 # Also find C++ and __fastcall symbols from MSVC++, 6927 # which start with @ or ?. 6928 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6929" {last_section=section; section=\$ 3};"\ 6930" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6931" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6932" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6933" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6934" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6935" \$ 0!~/External *\|/{next};"\ 6936" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6937" {if(hide[section]) next};"\ 6938" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6939" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6940" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6941" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6942" ' prfx=^$ac_symprfx" 6943 else 6944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6945 fi 6946 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6947 6948 # Check to see that the pipe works correctly. 6949 pipe_works=no 6950 6951 rm -f conftest* 6952 cat > conftest.$ac_ext <<_LT_EOF 6953#ifdef __cplusplus 6954extern "C" { 6955#endif 6956char nm_test_var; 6957void nm_test_func(void); 6958void nm_test_func(void){} 6959#ifdef __cplusplus 6960} 6961#endif 6962int main(){nm_test_var='a';nm_test_func();return(0);} 6963_LT_EOF 6964 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6966 (eval $ac_compile) 2>&5 6967 ac_status=$? 6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6969 test $ac_status = 0; }; then 6970 # Now try to grab the symbols. 6971 nlist=conftest.nm 6972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6973 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6974 ac_status=$? 6975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6976 test $ac_status = 0; } && test -s "$nlist"; then 6977 # Try sorting and uniquifying the output. 6978 if sort "$nlist" | uniq > "$nlist"T; then 6979 mv -f "$nlist"T "$nlist" 6980 else 6981 rm -f "$nlist"T 6982 fi 6983 6984 # Make sure that we snagged all the symbols we need. 6985 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6986 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6987 cat <<_LT_EOF > conftest.$ac_ext 6988/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6989#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6990/* DATA imports from DLLs on WIN32 can't be const, because runtime 6991 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6992# define LT_DLSYM_CONST 6993#elif defined __osf__ 6994/* This system does not cope well with relocations in const data. */ 6995# define LT_DLSYM_CONST 6996#else 6997# define LT_DLSYM_CONST const 6998#endif 6999 7000#ifdef __cplusplus 7001extern "C" { 7002#endif 7003 7004_LT_EOF 7005 # Now generate the symbol file. 7006 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7007 7008 cat <<_LT_EOF >> conftest.$ac_ext 7009 7010/* The mapping between symbol names and symbols. */ 7011LT_DLSYM_CONST struct { 7012 const char *name; 7013 void *address; 7014} 7015lt__PROGRAM__LTX_preloaded_symbols[] = 7016{ 7017 { "@PROGRAM@", (void *) 0 }, 7018_LT_EOF 7019 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7020 cat <<\_LT_EOF >> conftest.$ac_ext 7021 {0, (void *) 0} 7022}; 7023 7024/* This works around a problem in FreeBSD linker */ 7025#ifdef FREEBSD_WORKAROUND 7026static const void *lt_preloaded_setup() { 7027 return lt__PROGRAM__LTX_preloaded_symbols; 7028} 7029#endif 7030 7031#ifdef __cplusplus 7032} 7033#endif 7034_LT_EOF 7035 # Now try linking the two files. 7036 mv conftest.$ac_objext conftstm.$ac_objext 7037 lt_globsym_save_LIBS=$LIBS 7038 lt_globsym_save_CFLAGS=$CFLAGS 7039 LIBS=conftstm.$ac_objext 7040 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7042 (eval $ac_link) 2>&5 7043 ac_status=$? 7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7045 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7046 pipe_works=yes 7047 fi 7048 LIBS=$lt_globsym_save_LIBS 7049 CFLAGS=$lt_globsym_save_CFLAGS 7050 else 7051 echo "cannot find nm_test_func in $nlist" >&5 7052 fi 7053 else 7054 echo "cannot find nm_test_var in $nlist" >&5 7055 fi 7056 else 7057 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7058 fi 7059 else 7060 echo "$progname: failed program was:" >&5 7061 cat conftest.$ac_ext >&5 7062 fi 7063 rm -rf conftest* conftst* 7064 7065 # Do not use the global_symbol_pipe unless it works. 7066 if test yes = "$pipe_works"; then 7067 break 7068 else 7069 lt_cv_sys_global_symbol_pipe= 7070 fi 7071done 7072 7073fi 7074 7075if test -z "$lt_cv_sys_global_symbol_pipe"; then 7076 lt_cv_sys_global_symbol_to_cdecl= 7077fi 7078if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7080$as_echo "failed" >&6; } 7081else 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7083$as_echo "ok" >&6; } 7084fi 7085 7086# Response file support. 7087if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7088 nm_file_list_spec='@' 7089elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7090 nm_file_list_spec='@' 7091fi 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7130$as_echo_n "checking for sysroot... " >&6; } 7131 7132# Check whether --with-sysroot was given. 7133if test "${with_sysroot+set}" = set; then : 7134 withval=$with_sysroot; 7135else 7136 with_sysroot=no 7137fi 7138 7139 7140lt_sysroot= 7141case $with_sysroot in #( 7142 yes) 7143 if test yes = "$GCC"; then 7144 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7145 fi 7146 ;; #( 7147 /*) 7148 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7149 ;; #( 7150 no|'') 7151 ;; #( 7152 *) 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7154$as_echo "$with_sysroot" >&6; } 7155 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7156 ;; 7157esac 7158 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7160$as_echo "${lt_sysroot:-no}" >&6; } 7161 7162 7163 7164 7165 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7167$as_echo_n "checking for a working dd... " >&6; } 7168if ${ac_cv_path_lt_DD+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 printf 0123456789abcdef0123456789abcdef >conftest.i 7172cat conftest.i conftest.i >conftest2.i 7173: ${lt_DD:=$DD} 7174if test -z "$lt_DD"; then 7175 ac_path_lt_DD_found=false 7176 # Loop through the user's path and test for each of PROGNAME-LIST 7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_prog in dd; do 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7185 as_fn_executable_p "$ac_path_lt_DD" || continue 7186if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7187 cmp -s conftest.i conftest.out \ 7188 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7189fi 7190 $ac_path_lt_DD_found && break 3 7191 done 7192 done 7193 done 7194IFS=$as_save_IFS 7195 if test -z "$ac_cv_path_lt_DD"; then 7196 : 7197 fi 7198else 7199 ac_cv_path_lt_DD=$lt_DD 7200fi 7201 7202rm -f conftest.i conftest2.i conftest.out 7203fi 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7205$as_echo "$ac_cv_path_lt_DD" >&6; } 7206 7207 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7209$as_echo_n "checking how to truncate binary pipes... " >&6; } 7210if ${lt_cv_truncate_bin+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 printf 0123456789abcdef0123456789abcdef >conftest.i 7214cat conftest.i conftest.i >conftest2.i 7215lt_cv_truncate_bin= 7216if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7217 cmp -s conftest.i conftest.out \ 7218 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7219fi 7220rm -f conftest.i conftest2.i conftest.out 7221test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7222fi 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7224$as_echo "$lt_cv_truncate_bin" >&6; } 7225 7226 7227 7228 7229 7230 7231 7232# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7233func_cc_basename () 7234{ 7235 for cc_temp in $*""; do 7236 case $cc_temp in 7237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7239 \-*) ;; 7240 *) break;; 7241 esac 7242 done 7243 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7244} 7245 7246# Check whether --enable-libtool-lock was given. 7247if test "${enable_libtool_lock+set}" = set; then : 7248 enableval=$enable_libtool_lock; 7249fi 7250 7251test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7252 7253# Some flags need to be propagated to the compiler or linker for good 7254# libtool support. 7255case $host in 7256ia64-*-hpux*) 7257 # Find out what ABI is being produced by ac_compile, and set mode 7258 # options accordingly. 7259 echo 'int i;' > conftest.$ac_ext 7260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7261 (eval $ac_compile) 2>&5 7262 ac_status=$? 7263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7264 test $ac_status = 0; }; then 7265 case `/usr/bin/file conftest.$ac_objext` in 7266 *ELF-32*) 7267 HPUX_IA64_MODE=32 7268 ;; 7269 *ELF-64*) 7270 HPUX_IA64_MODE=64 7271 ;; 7272 esac 7273 fi 7274 rm -rf conftest* 7275 ;; 7276*-*-irix6*) 7277 # Find out what ABI is being produced by ac_compile, and set linker 7278 # options accordingly. 7279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7281 (eval $ac_compile) 2>&5 7282 ac_status=$? 7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7284 test $ac_status = 0; }; then 7285 if test yes = "$lt_cv_prog_gnu_ld"; then 7286 case `/usr/bin/file conftest.$ac_objext` in 7287 *32-bit*) 7288 LD="${LD-ld} -melf32bsmip" 7289 ;; 7290 *N32*) 7291 LD="${LD-ld} -melf32bmipn32" 7292 ;; 7293 *64-bit*) 7294 LD="${LD-ld} -melf64bmip" 7295 ;; 7296 esac 7297 else 7298 case `/usr/bin/file conftest.$ac_objext` in 7299 *32-bit*) 7300 LD="${LD-ld} -32" 7301 ;; 7302 *N32*) 7303 LD="${LD-ld} -n32" 7304 ;; 7305 *64-bit*) 7306 LD="${LD-ld} -64" 7307 ;; 7308 esac 7309 fi 7310 fi 7311 rm -rf conftest* 7312 ;; 7313 7314mips64*-*linux*) 7315 # Find out what ABI is being produced by ac_compile, and set linker 7316 # options accordingly. 7317 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7319 (eval $ac_compile) 2>&5 7320 ac_status=$? 7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7322 test $ac_status = 0; }; then 7323 emul=elf 7324 case `/usr/bin/file conftest.$ac_objext` in 7325 *32-bit*) 7326 emul="${emul}32" 7327 ;; 7328 *64-bit*) 7329 emul="${emul}64" 7330 ;; 7331 esac 7332 case `/usr/bin/file conftest.$ac_objext` in 7333 *MSB*) 7334 emul="${emul}btsmip" 7335 ;; 7336 *LSB*) 7337 emul="${emul}ltsmip" 7338 ;; 7339 esac 7340 case `/usr/bin/file conftest.$ac_objext` in 7341 *N32*) 7342 emul="${emul}n32" 7343 ;; 7344 esac 7345 LD="${LD-ld} -m $emul" 7346 fi 7347 rm -rf conftest* 7348 ;; 7349 7350x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7351s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7352 # Find out what ABI is being produced by ac_compile, and set linker 7353 # options accordingly. Note that the listed cases only cover the 7354 # situations where additional linker options are needed (such as when 7355 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7356 # vice versa); the common cases where no linker options are needed do 7357 # not appear in the list. 7358 echo 'int i;' > conftest.$ac_ext 7359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7360 (eval $ac_compile) 2>&5 7361 ac_status=$? 7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7363 test $ac_status = 0; }; then 7364 case `/usr/bin/file conftest.o` in 7365 *32-bit*) 7366 case $host in 7367 x86_64-*kfreebsd*-gnu) 7368 LD="${LD-ld} -m elf_i386_fbsd" 7369 ;; 7370 x86_64-*linux*) 7371 case `/usr/bin/file conftest.o` in 7372 *x86-64*) 7373 LD="${LD-ld} -m elf32_x86_64" 7374 ;; 7375 *) 7376 LD="${LD-ld} -m elf_i386" 7377 ;; 7378 esac 7379 ;; 7380 powerpc64le-*linux*) 7381 LD="${LD-ld} -m elf32lppclinux" 7382 ;; 7383 powerpc64-*linux*) 7384 LD="${LD-ld} -m elf32ppclinux" 7385 ;; 7386 s390x-*linux*) 7387 LD="${LD-ld} -m elf_s390" 7388 ;; 7389 sparc64-*linux*) 7390 LD="${LD-ld} -m elf32_sparc" 7391 ;; 7392 esac 7393 ;; 7394 *64-bit*) 7395 case $host in 7396 x86_64-*kfreebsd*-gnu) 7397 LD="${LD-ld} -m elf_x86_64_fbsd" 7398 ;; 7399 x86_64-*linux*) 7400 LD="${LD-ld} -m elf_x86_64" 7401 ;; 7402 powerpcle-*linux*) 7403 LD="${LD-ld} -m elf64lppc" 7404 ;; 7405 powerpc-*linux*) 7406 LD="${LD-ld} -m elf64ppc" 7407 ;; 7408 s390*-*linux*|s390*-*tpf*) 7409 LD="${LD-ld} -m elf64_s390" 7410 ;; 7411 sparc*-*linux*) 7412 LD="${LD-ld} -m elf64_sparc" 7413 ;; 7414 esac 7415 ;; 7416 esac 7417 fi 7418 rm -rf conftest* 7419 ;; 7420 7421*-*-sco3.2v5*) 7422 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7423 SAVE_CFLAGS=$CFLAGS 7424 CFLAGS="$CFLAGS -belf" 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7426$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7427if ${lt_cv_cc_needs_belf+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 ac_ext=c 7431ac_cpp='$CPP $CPPFLAGS' 7432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7434ac_compiler_gnu=$ac_cv_c_compiler_gnu 7435 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438 7439int 7440main () 7441{ 7442 7443 ; 7444 return 0; 7445} 7446_ACEOF 7447if ac_fn_c_try_link "$LINENO"; then : 7448 lt_cv_cc_needs_belf=yes 7449else 7450 lt_cv_cc_needs_belf=no 7451fi 7452rm -f core conftest.err conftest.$ac_objext \ 7453 conftest$ac_exeext conftest.$ac_ext 7454 ac_ext=c 7455ac_cpp='$CPP $CPPFLAGS' 7456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7458ac_compiler_gnu=$ac_cv_c_compiler_gnu 7459 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7462$as_echo "$lt_cv_cc_needs_belf" >&6; } 7463 if test yes != "$lt_cv_cc_needs_belf"; then 7464 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7465 CFLAGS=$SAVE_CFLAGS 7466 fi 7467 ;; 7468*-*solaris*) 7469 # Find out what ABI is being produced by ac_compile, and set linker 7470 # options accordingly. 7471 echo 'int i;' > conftest.$ac_ext 7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7473 (eval $ac_compile) 2>&5 7474 ac_status=$? 7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7476 test $ac_status = 0; }; then 7477 case `/usr/bin/file conftest.o` in 7478 *64-bit*) 7479 case $lt_cv_prog_gnu_ld in 7480 yes*) 7481 case $host in 7482 i?86-*-solaris*|x86_64-*-solaris*) 7483 LD="${LD-ld} -m elf_x86_64" 7484 ;; 7485 sparc*-*-solaris*) 7486 LD="${LD-ld} -m elf64_sparc" 7487 ;; 7488 esac 7489 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7490 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7491 LD=${LD-ld}_sol2 7492 fi 7493 ;; 7494 *) 7495 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7496 LD="${LD-ld} -64" 7497 fi 7498 ;; 7499 esac 7500 ;; 7501 esac 7502 fi 7503 rm -rf conftest* 7504 ;; 7505esac 7506 7507need_locks=$enable_libtool_lock 7508 7509if test -n "$ac_tool_prefix"; then 7510 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7511set dummy ${ac_tool_prefix}mt; ac_word=$2 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7513$as_echo_n "checking for $ac_word... " >&6; } 7514if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 if test -n "$MANIFEST_TOOL"; then 7518 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7519else 7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7521for as_dir in $PATH 7522do 7523 IFS=$as_save_IFS 7524 test -z "$as_dir" && as_dir=. 7525 for ac_exec_ext in '' $ac_executable_extensions; do 7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7527 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7529 break 2 7530 fi 7531done 7532 done 7533IFS=$as_save_IFS 7534 7535fi 7536fi 7537MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7538if test -n "$MANIFEST_TOOL"; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7540$as_echo "$MANIFEST_TOOL" >&6; } 7541else 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543$as_echo "no" >&6; } 7544fi 7545 7546 7547fi 7548if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7549 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7550 # Extract the first word of "mt", so it can be a program name with args. 7551set dummy mt; ac_word=$2 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7553$as_echo_n "checking for $ac_word... " >&6; } 7554if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 if test -n "$ac_ct_MANIFEST_TOOL"; then 7558 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7559else 7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7561for as_dir in $PATH 7562do 7563 IFS=$as_save_IFS 7564 test -z "$as_dir" && as_dir=. 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7567 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571done 7572 done 7573IFS=$as_save_IFS 7574 7575fi 7576fi 7577ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7578if test -n "$ac_ct_MANIFEST_TOOL"; then 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7580$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7581else 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7583$as_echo "no" >&6; } 7584fi 7585 7586 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7587 MANIFEST_TOOL=":" 7588 else 7589 case $cross_compiling:$ac_tool_warned in 7590yes:) 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7593ac_tool_warned=yes ;; 7594esac 7595 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7596 fi 7597else 7598 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7599fi 7600 7601test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7603$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7604if ${lt_cv_path_mainfest_tool+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 lt_cv_path_mainfest_tool=no 7608 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7609 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7610 cat conftest.err >&5 7611 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7612 lt_cv_path_mainfest_tool=yes 7613 fi 7614 rm -f conftest* 7615fi 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7617$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7618if test yes != "$lt_cv_path_mainfest_tool"; then 7619 MANIFEST_TOOL=: 7620fi 7621 7622 7623 7624 7625 7626 7627 case $host_os in 7628 rhapsody* | darwin*) 7629 if test -n "$ac_tool_prefix"; then 7630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7631set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7633$as_echo_n "checking for $ac_word... " >&6; } 7634if ${ac_cv_prog_DSYMUTIL+:} false; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 if test -n "$DSYMUTIL"; then 7638 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7639else 7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7641for as_dir in $PATH 7642do 7643 IFS=$as_save_IFS 7644 test -z "$as_dir" && as_dir=. 7645 for ac_exec_ext in '' $ac_executable_extensions; do 7646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7649 break 2 7650 fi 7651done 7652 done 7653IFS=$as_save_IFS 7654 7655fi 7656fi 7657DSYMUTIL=$ac_cv_prog_DSYMUTIL 7658if test -n "$DSYMUTIL"; then 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7660$as_echo "$DSYMUTIL" >&6; } 7661else 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7663$as_echo "no" >&6; } 7664fi 7665 7666 7667fi 7668if test -z "$ac_cv_prog_DSYMUTIL"; then 7669 ac_ct_DSYMUTIL=$DSYMUTIL 7670 # Extract the first word of "dsymutil", so it can be a program name with args. 7671set dummy dsymutil; ac_word=$2 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673$as_echo_n "checking for $ac_word... " >&6; } 7674if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 if test -n "$ac_ct_DSYMUTIL"; then 7678 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7679else 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 test -z "$as_dir" && as_dir=. 7685 for ac_exec_ext in '' $ac_executable_extensions; do 7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7689 break 2 7690 fi 7691done 7692 done 7693IFS=$as_save_IFS 7694 7695fi 7696fi 7697ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7698if test -n "$ac_ct_DSYMUTIL"; then 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7700$as_echo "$ac_ct_DSYMUTIL" >&6; } 7701else 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7703$as_echo "no" >&6; } 7704fi 7705 7706 if test "x$ac_ct_DSYMUTIL" = x; then 7707 DSYMUTIL=":" 7708 else 7709 case $cross_compiling:$ac_tool_warned in 7710yes:) 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7713ac_tool_warned=yes ;; 7714esac 7715 DSYMUTIL=$ac_ct_DSYMUTIL 7716 fi 7717else 7718 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7719fi 7720 7721 if test -n "$ac_tool_prefix"; then 7722 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7723set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7725$as_echo_n "checking for $ac_word... " >&6; } 7726if ${ac_cv_prog_NMEDIT+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 if test -n "$NMEDIT"; then 7730 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7731else 7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7733for as_dir in $PATH 7734do 7735 IFS=$as_save_IFS 7736 test -z "$as_dir" && as_dir=. 7737 for ac_exec_ext in '' $ac_executable_extensions; do 7738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7739 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7741 break 2 7742 fi 7743done 7744 done 7745IFS=$as_save_IFS 7746 7747fi 7748fi 7749NMEDIT=$ac_cv_prog_NMEDIT 7750if test -n "$NMEDIT"; then 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7752$as_echo "$NMEDIT" >&6; } 7753else 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7755$as_echo "no" >&6; } 7756fi 7757 7758 7759fi 7760if test -z "$ac_cv_prog_NMEDIT"; then 7761 ac_ct_NMEDIT=$NMEDIT 7762 # Extract the first word of "nmedit", so it can be a program name with args. 7763set dummy nmedit; ac_word=$2 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7765$as_echo_n "checking for $ac_word... " >&6; } 7766if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 if test -n "$ac_ct_NMEDIT"; then 7770 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7771else 7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773for as_dir in $PATH 7774do 7775 IFS=$as_save_IFS 7776 test -z "$as_dir" && as_dir=. 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi 7788fi 7789ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7790if test -n "$ac_ct_NMEDIT"; then 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7792$as_echo "$ac_ct_NMEDIT" >&6; } 7793else 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7795$as_echo "no" >&6; } 7796fi 7797 7798 if test "x$ac_ct_NMEDIT" = x; then 7799 NMEDIT=":" 7800 else 7801 case $cross_compiling:$ac_tool_warned in 7802yes:) 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7805ac_tool_warned=yes ;; 7806esac 7807 NMEDIT=$ac_ct_NMEDIT 7808 fi 7809else 7810 NMEDIT="$ac_cv_prog_NMEDIT" 7811fi 7812 7813 if test -n "$ac_tool_prefix"; then 7814 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7815set dummy ${ac_tool_prefix}lipo; ac_word=$2 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7817$as_echo_n "checking for $ac_word... " >&6; } 7818if ${ac_cv_prog_LIPO+:} false; then : 7819 $as_echo_n "(cached) " >&6 7820else 7821 if test -n "$LIPO"; then 7822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7823else 7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7825for as_dir in $PATH 7826do 7827 IFS=$as_save_IFS 7828 test -z "$as_dir" && as_dir=. 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7831 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835done 7836 done 7837IFS=$as_save_IFS 7838 7839fi 7840fi 7841LIPO=$ac_cv_prog_LIPO 7842if test -n "$LIPO"; then 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7844$as_echo "$LIPO" >&6; } 7845else 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847$as_echo "no" >&6; } 7848fi 7849 7850 7851fi 7852if test -z "$ac_cv_prog_LIPO"; then 7853 ac_ct_LIPO=$LIPO 7854 # Extract the first word of "lipo", so it can be a program name with args. 7855set dummy lipo; ac_word=$2 7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7857$as_echo_n "checking for $ac_word... " >&6; } 7858if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860else 7861 if test -n "$ac_ct_LIPO"; then 7862 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7863else 7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7865for as_dir in $PATH 7866do 7867 IFS=$as_save_IFS 7868 test -z "$as_dir" && as_dir=. 7869 for ac_exec_ext in '' $ac_executable_extensions; do 7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7871 ac_cv_prog_ac_ct_LIPO="lipo" 7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7873 break 2 7874 fi 7875done 7876 done 7877IFS=$as_save_IFS 7878 7879fi 7880fi 7881ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7882if test -n "$ac_ct_LIPO"; then 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7884$as_echo "$ac_ct_LIPO" >&6; } 7885else 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7887$as_echo "no" >&6; } 7888fi 7889 7890 if test "x$ac_ct_LIPO" = x; then 7891 LIPO=":" 7892 else 7893 case $cross_compiling:$ac_tool_warned in 7894yes:) 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7897ac_tool_warned=yes ;; 7898esac 7899 LIPO=$ac_ct_LIPO 7900 fi 7901else 7902 LIPO="$ac_cv_prog_LIPO" 7903fi 7904 7905 if test -n "$ac_tool_prefix"; then 7906 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7907set dummy ${ac_tool_prefix}otool; ac_word=$2 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7909$as_echo_n "checking for $ac_word... " >&6; } 7910if ${ac_cv_prog_OTOOL+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912else 7913 if test -n "$OTOOL"; then 7914 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7915else 7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7917for as_dir in $PATH 7918do 7919 IFS=$as_save_IFS 7920 test -z "$as_dir" && as_dir=. 7921 for ac_exec_ext in '' $ac_executable_extensions; do 7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7923 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7925 break 2 7926 fi 7927done 7928 done 7929IFS=$as_save_IFS 7930 7931fi 7932fi 7933OTOOL=$ac_cv_prog_OTOOL 7934if test -n "$OTOOL"; then 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7936$as_echo "$OTOOL" >&6; } 7937else 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7939$as_echo "no" >&6; } 7940fi 7941 7942 7943fi 7944if test -z "$ac_cv_prog_OTOOL"; then 7945 ac_ct_OTOOL=$OTOOL 7946 # Extract the first word of "otool", so it can be a program name with args. 7947set dummy otool; ac_word=$2 7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7949$as_echo_n "checking for $ac_word... " >&6; } 7950if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7951 $as_echo_n "(cached) " >&6 7952else 7953 if test -n "$ac_ct_OTOOL"; then 7954 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7955else 7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7957for as_dir in $PATH 7958do 7959 IFS=$as_save_IFS 7960 test -z "$as_dir" && as_dir=. 7961 for ac_exec_ext in '' $ac_executable_extensions; do 7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7963 ac_cv_prog_ac_ct_OTOOL="otool" 7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7965 break 2 7966 fi 7967done 7968 done 7969IFS=$as_save_IFS 7970 7971fi 7972fi 7973ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7974if test -n "$ac_ct_OTOOL"; then 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7976$as_echo "$ac_ct_OTOOL" >&6; } 7977else 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7979$as_echo "no" >&6; } 7980fi 7981 7982 if test "x$ac_ct_OTOOL" = x; then 7983 OTOOL=":" 7984 else 7985 case $cross_compiling:$ac_tool_warned in 7986yes:) 7987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7989ac_tool_warned=yes ;; 7990esac 7991 OTOOL=$ac_ct_OTOOL 7992 fi 7993else 7994 OTOOL="$ac_cv_prog_OTOOL" 7995fi 7996 7997 if test -n "$ac_tool_prefix"; then 7998 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7999set dummy ${ac_tool_prefix}otool64; ac_word=$2 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8001$as_echo_n "checking for $ac_word... " >&6; } 8002if ${ac_cv_prog_OTOOL64+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 if test -n "$OTOOL64"; then 8006 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8007else 8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009for as_dir in $PATH 8010do 8011 IFS=$as_save_IFS 8012 test -z "$as_dir" && as_dir=. 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8015 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019done 8020 done 8021IFS=$as_save_IFS 8022 8023fi 8024fi 8025OTOOL64=$ac_cv_prog_OTOOL64 8026if test -n "$OTOOL64"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8028$as_echo "$OTOOL64" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031$as_echo "no" >&6; } 8032fi 8033 8034 8035fi 8036if test -z "$ac_cv_prog_OTOOL64"; then 8037 ac_ct_OTOOL64=$OTOOL64 8038 # Extract the first word of "otool64", so it can be a program name with args. 8039set dummy otool64; ac_word=$2 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8041$as_echo_n "checking for $ac_word... " >&6; } 8042if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8043 $as_echo_n "(cached) " >&6 8044else 8045 if test -n "$ac_ct_OTOOL64"; then 8046 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8047else 8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049for as_dir in $PATH 8050do 8051 IFS=$as_save_IFS 8052 test -z "$as_dir" && as_dir=. 8053 for ac_exec_ext in '' $ac_executable_extensions; do 8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8055 ac_cv_prog_ac_ct_OTOOL64="otool64" 8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8057 break 2 8058 fi 8059done 8060 done 8061IFS=$as_save_IFS 8062 8063fi 8064fi 8065ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8066if test -n "$ac_ct_OTOOL64"; then 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8068$as_echo "$ac_ct_OTOOL64" >&6; } 8069else 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8071$as_echo "no" >&6; } 8072fi 8073 8074 if test "x$ac_ct_OTOOL64" = x; then 8075 OTOOL64=":" 8076 else 8077 case $cross_compiling:$ac_tool_warned in 8078yes:) 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8081ac_tool_warned=yes ;; 8082esac 8083 OTOOL64=$ac_ct_OTOOL64 8084 fi 8085else 8086 OTOOL64="$ac_cv_prog_OTOOL64" 8087fi 8088 8089 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8116$as_echo_n "checking for -single_module linker flag... " >&6; } 8117if ${lt_cv_apple_cc_single_mod+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 lt_cv_apple_cc_single_mod=no 8121 if test -z "$LT_MULTI_MODULE"; then 8122 # By default we will add the -single_module flag. You can override 8123 # by either setting the environment variable LT_MULTI_MODULE 8124 # non-empty at configure time, or by adding -multi_module to the 8125 # link flags. 8126 rm -rf libconftest.dylib* 8127 echo "int foo(void){return 1;}" > conftest.c 8128 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8129-dynamiclib -Wl,-single_module conftest.c" >&5 8130 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8131 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8132 _lt_result=$? 8133 # If there is a non-empty error log, and "single_module" 8134 # appears in it, assume the flag caused a linker warning 8135 if test -s conftest.err && $GREP single_module conftest.err; then 8136 cat conftest.err >&5 8137 # Otherwise, if the output was created with a 0 exit code from 8138 # the compiler, it worked. 8139 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8140 lt_cv_apple_cc_single_mod=yes 8141 else 8142 cat conftest.err >&5 8143 fi 8144 rm -rf libconftest.dylib* 8145 rm -f conftest.* 8146 fi 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8149$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8150 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8152$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8153if ${lt_cv_ld_exported_symbols_list+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 lt_cv_ld_exported_symbols_list=no 8157 save_LDFLAGS=$LDFLAGS 8158 echo "_main" > conftest.sym 8159 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162 8163int 8164main () 8165{ 8166 8167 ; 8168 return 0; 8169} 8170_ACEOF 8171if ac_fn_c_try_link "$LINENO"; then : 8172 lt_cv_ld_exported_symbols_list=yes 8173else 8174 lt_cv_ld_exported_symbols_list=no 8175fi 8176rm -f core conftest.err conftest.$ac_objext \ 8177 conftest$ac_exeext conftest.$ac_ext 8178 LDFLAGS=$save_LDFLAGS 8179 8180fi 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8182$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8183 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8185$as_echo_n "checking for -force_load linker flag... " >&6; } 8186if ${lt_cv_ld_force_load+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 lt_cv_ld_force_load=no 8190 cat > conftest.c << _LT_EOF 8191int forced_loaded() { return 2;} 8192_LT_EOF 8193 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8194 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8195 echo "$AR cru libconftest.a conftest.o" >&5 8196 $AR cru libconftest.a conftest.o 2>&5 8197 echo "$RANLIB libconftest.a" >&5 8198 $RANLIB libconftest.a 2>&5 8199 cat > conftest.c << _LT_EOF 8200int main() { return 0;} 8201_LT_EOF 8202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8204 _lt_result=$? 8205 if test -s conftest.err && $GREP force_load conftest.err; then 8206 cat conftest.err >&5 8207 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8208 lt_cv_ld_force_load=yes 8209 else 8210 cat conftest.err >&5 8211 fi 8212 rm -f conftest.err libconftest.a conftest conftest.c 8213 rm -rf conftest.dSYM 8214 8215fi 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8217$as_echo "$lt_cv_ld_force_load" >&6; } 8218 case $host_os in 8219 rhapsody* | darwin1.[012]) 8220 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8221 darwin1.*) 8222 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8223 darwin*) # darwin 5.x on 8224 # if running on 10.5 or later, the deployment target defaults 8225 # to the OS version, if on x86, and 10.4, the deployment 8226 # target defaults to 10.4. Don't you love it? 8227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8228 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8229 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8230 10.[012][,.]*) 8231 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8232 10.*) 8233 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8234 esac 8235 ;; 8236 esac 8237 if test yes = "$lt_cv_apple_cc_single_mod"; then 8238 _lt_dar_single_mod='$single_module' 8239 fi 8240 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8241 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8242 else 8243 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8244 fi 8245 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8246 _lt_dsymutil='~$DSYMUTIL $lib || :' 8247 else 8248 _lt_dsymutil= 8249 fi 8250 ;; 8251 esac 8252 8253# func_munge_path_list VARIABLE PATH 8254# ----------------------------------- 8255# VARIABLE is name of variable containing _space_ separated list of 8256# directories to be munged by the contents of PATH, which is string 8257# having a format: 8258# "DIR[:DIR]:" 8259# string "DIR[ DIR]" will be prepended to VARIABLE 8260# ":DIR[:DIR]" 8261# string "DIR[ DIR]" will be appended to VARIABLE 8262# "DIRP[:DIRP]::[DIRA:]DIRA" 8263# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8264# "DIRA[ DIRA]" will be appended to VARIABLE 8265# "DIR[:DIR]" 8266# VARIABLE will be replaced by "DIR[ DIR]" 8267func_munge_path_list () 8268{ 8269 case x$2 in 8270 x) 8271 ;; 8272 *:) 8273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8274 ;; 8275 x:*) 8276 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8277 ;; 8278 *::*) 8279 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8280 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8281 ;; 8282 *) 8283 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8284 ;; 8285 esac 8286} 8287 8288for ac_header in dlfcn.h 8289do : 8290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8291" 8292if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8293 cat >>confdefs.h <<_ACEOF 8294#define HAVE_DLFCN_H 1 8295_ACEOF 8296 8297fi 8298 8299done 8300 8301 8302 8303 8304 8305# Set options 8306enable_win32_dll=yes 8307 8308case $host in 8309*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8310 if test -n "$ac_tool_prefix"; then 8311 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8312set dummy ${ac_tool_prefix}as; ac_word=$2 8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8314$as_echo_n "checking for $ac_word... " >&6; } 8315if ${ac_cv_prog_AS+:} false; then : 8316 $as_echo_n "(cached) " >&6 8317else 8318 if test -n "$AS"; then 8319 ac_cv_prog_AS="$AS" # Let the user override the test. 8320else 8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8322for as_dir in $PATH 8323do 8324 IFS=$as_save_IFS 8325 test -z "$as_dir" && as_dir=. 8326 for ac_exec_ext in '' $ac_executable_extensions; do 8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8328 ac_cv_prog_AS="${ac_tool_prefix}as" 8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8330 break 2 8331 fi 8332done 8333 done 8334IFS=$as_save_IFS 8335 8336fi 8337fi 8338AS=$ac_cv_prog_AS 8339if test -n "$AS"; then 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8341$as_echo "$AS" >&6; } 8342else 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8344$as_echo "no" >&6; } 8345fi 8346 8347 8348fi 8349if test -z "$ac_cv_prog_AS"; then 8350 ac_ct_AS=$AS 8351 # Extract the first word of "as", so it can be a program name with args. 8352set dummy as; ac_word=$2 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8354$as_echo_n "checking for $ac_word... " >&6; } 8355if ${ac_cv_prog_ac_ct_AS+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 if test -n "$ac_ct_AS"; then 8359 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8360else 8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8362for as_dir in $PATH 8363do 8364 IFS=$as_save_IFS 8365 test -z "$as_dir" && as_dir=. 8366 for ac_exec_ext in '' $ac_executable_extensions; do 8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8368 ac_cv_prog_ac_ct_AS="as" 8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8370 break 2 8371 fi 8372done 8373 done 8374IFS=$as_save_IFS 8375 8376fi 8377fi 8378ac_ct_AS=$ac_cv_prog_ac_ct_AS 8379if test -n "$ac_ct_AS"; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8381$as_echo "$ac_ct_AS" >&6; } 8382else 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8384$as_echo "no" >&6; } 8385fi 8386 8387 if test "x$ac_ct_AS" = x; then 8388 AS="false" 8389 else 8390 case $cross_compiling:$ac_tool_warned in 8391yes:) 8392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8394ac_tool_warned=yes ;; 8395esac 8396 AS=$ac_ct_AS 8397 fi 8398else 8399 AS="$ac_cv_prog_AS" 8400fi 8401 8402 if test -n "$ac_tool_prefix"; then 8403 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8404set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8406$as_echo_n "checking for $ac_word... " >&6; } 8407if ${ac_cv_prog_DLLTOOL+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 if test -n "$DLLTOOL"; then 8411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8412else 8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8414for as_dir in $PATH 8415do 8416 IFS=$as_save_IFS 8417 test -z "$as_dir" && as_dir=. 8418 for ac_exec_ext in '' $ac_executable_extensions; do 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8420 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8422 break 2 8423 fi 8424done 8425 done 8426IFS=$as_save_IFS 8427 8428fi 8429fi 8430DLLTOOL=$ac_cv_prog_DLLTOOL 8431if test -n "$DLLTOOL"; then 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8433$as_echo "$DLLTOOL" >&6; } 8434else 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8436$as_echo "no" >&6; } 8437fi 8438 8439 8440fi 8441if test -z "$ac_cv_prog_DLLTOOL"; then 8442 ac_ct_DLLTOOL=$DLLTOOL 8443 # Extract the first word of "dlltool", so it can be a program name with args. 8444set dummy dlltool; ac_word=$2 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8446$as_echo_n "checking for $ac_word... " >&6; } 8447if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8448 $as_echo_n "(cached) " >&6 8449else 8450 if test -n "$ac_ct_DLLTOOL"; then 8451 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8452else 8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8454for as_dir in $PATH 8455do 8456 IFS=$as_save_IFS 8457 test -z "$as_dir" && as_dir=. 8458 for ac_exec_ext in '' $ac_executable_extensions; do 8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8460 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8462 break 2 8463 fi 8464done 8465 done 8466IFS=$as_save_IFS 8467 8468fi 8469fi 8470ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8471if test -n "$ac_ct_DLLTOOL"; then 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8473$as_echo "$ac_ct_DLLTOOL" >&6; } 8474else 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8476$as_echo "no" >&6; } 8477fi 8478 8479 if test "x$ac_ct_DLLTOOL" = x; then 8480 DLLTOOL="false" 8481 else 8482 case $cross_compiling:$ac_tool_warned in 8483yes:) 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8486ac_tool_warned=yes ;; 8487esac 8488 DLLTOOL=$ac_ct_DLLTOOL 8489 fi 8490else 8491 DLLTOOL="$ac_cv_prog_DLLTOOL" 8492fi 8493 8494 if test -n "$ac_tool_prefix"; then 8495 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8496set dummy ${ac_tool_prefix}objdump; ac_word=$2 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8498$as_echo_n "checking for $ac_word... " >&6; } 8499if ${ac_cv_prog_OBJDUMP+:} false; then : 8500 $as_echo_n "(cached) " >&6 8501else 8502 if test -n "$OBJDUMP"; then 8503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8504else 8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8506for as_dir in $PATH 8507do 8508 IFS=$as_save_IFS 8509 test -z "$as_dir" && as_dir=. 8510 for ac_exec_ext in '' $ac_executable_extensions; do 8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8512 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8514 break 2 8515 fi 8516done 8517 done 8518IFS=$as_save_IFS 8519 8520fi 8521fi 8522OBJDUMP=$ac_cv_prog_OBJDUMP 8523if test -n "$OBJDUMP"; then 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8525$as_echo "$OBJDUMP" >&6; } 8526else 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8528$as_echo "no" >&6; } 8529fi 8530 8531 8532fi 8533if test -z "$ac_cv_prog_OBJDUMP"; then 8534 ac_ct_OBJDUMP=$OBJDUMP 8535 # Extract the first word of "objdump", so it can be a program name with args. 8536set dummy objdump; ac_word=$2 8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8538$as_echo_n "checking for $ac_word... " >&6; } 8539if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8540 $as_echo_n "(cached) " >&6 8541else 8542 if test -n "$ac_ct_OBJDUMP"; then 8543 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8544else 8545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8546for as_dir in $PATH 8547do 8548 IFS=$as_save_IFS 8549 test -z "$as_dir" && as_dir=. 8550 for ac_exec_ext in '' $ac_executable_extensions; do 8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8552 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8554 break 2 8555 fi 8556done 8557 done 8558IFS=$as_save_IFS 8559 8560fi 8561fi 8562ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8563if test -n "$ac_ct_OBJDUMP"; then 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8565$as_echo "$ac_ct_OBJDUMP" >&6; } 8566else 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8568$as_echo "no" >&6; } 8569fi 8570 8571 if test "x$ac_ct_OBJDUMP" = x; then 8572 OBJDUMP="false" 8573 else 8574 case $cross_compiling:$ac_tool_warned in 8575yes:) 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8578ac_tool_warned=yes ;; 8579esac 8580 OBJDUMP=$ac_ct_OBJDUMP 8581 fi 8582else 8583 OBJDUMP="$ac_cv_prog_OBJDUMP" 8584fi 8585 8586 ;; 8587esac 8588 8589test -z "$AS" && AS=as 8590 8591 8592 8593 8594 8595test -z "$DLLTOOL" && DLLTOOL=dlltool 8596 8597 8598 8599 8600 8601test -z "$OBJDUMP" && OBJDUMP=objdump 8602 8603 8604 8605 8606 8607 8608 8609 enable_dlopen=no 8610 8611 8612 8613 # Check whether --enable-shared was given. 8614if test "${enable_shared+set}" = set; then : 8615 enableval=$enable_shared; p=${PACKAGE-default} 8616 case $enableval in 8617 yes) enable_shared=yes ;; 8618 no) enable_shared=no ;; 8619 *) 8620 enable_shared=no 8621 # Look at the argument we got. We use all the common list separators. 8622 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8623 for pkg in $enableval; do 8624 IFS=$lt_save_ifs 8625 if test "X$pkg" = "X$p"; then 8626 enable_shared=yes 8627 fi 8628 done 8629 IFS=$lt_save_ifs 8630 ;; 8631 esac 8632else 8633 enable_shared=yes 8634fi 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 # Check whether --enable-static was given. 8645if test "${enable_static+set}" = set; then : 8646 enableval=$enable_static; p=${PACKAGE-default} 8647 case $enableval in 8648 yes) enable_static=yes ;; 8649 no) enable_static=no ;; 8650 *) 8651 enable_static=no 8652 # Look at the argument we got. We use all the common list separators. 8653 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8654 for pkg in $enableval; do 8655 IFS=$lt_save_ifs 8656 if test "X$pkg" = "X$p"; then 8657 enable_static=yes 8658 fi 8659 done 8660 IFS=$lt_save_ifs 8661 ;; 8662 esac 8663else 8664 enable_static=yes 8665fi 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676# Check whether --with-pic was given. 8677if test "${with_pic+set}" = set; then : 8678 withval=$with_pic; lt_p=${PACKAGE-default} 8679 case $withval in 8680 yes|no) pic_mode=$withval ;; 8681 *) 8682 pic_mode=default 8683 # Look at the argument we got. We use all the common list separators. 8684 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8685 for lt_pkg in $withval; do 8686 IFS=$lt_save_ifs 8687 if test "X$lt_pkg" = "X$lt_p"; then 8688 pic_mode=yes 8689 fi 8690 done 8691 IFS=$lt_save_ifs 8692 ;; 8693 esac 8694else 8695 pic_mode=default 8696fi 8697 8698 8699 8700 8701 8702 8703 8704 8705 # Check whether --enable-fast-install was given. 8706if test "${enable_fast_install+set}" = set; then : 8707 enableval=$enable_fast_install; p=${PACKAGE-default} 8708 case $enableval in 8709 yes) enable_fast_install=yes ;; 8710 no) enable_fast_install=no ;; 8711 *) 8712 enable_fast_install=no 8713 # Look at the argument we got. We use all the common list separators. 8714 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8715 for pkg in $enableval; do 8716 IFS=$lt_save_ifs 8717 if test "X$pkg" = "X$p"; then 8718 enable_fast_install=yes 8719 fi 8720 done 8721 IFS=$lt_save_ifs 8722 ;; 8723 esac 8724else 8725 enable_fast_install=yes 8726fi 8727 8728 8729 8730 8731 8732 8733 8734 8735 shared_archive_member_spec= 8736case $host,$enable_shared in 8737power*-*-aix[5-9]*,yes) 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8739$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8740 8741# Check whether --with-aix-soname was given. 8742if test "${with_aix_soname+set}" = set; then : 8743 withval=$with_aix_soname; case $withval in 8744 aix|svr4|both) 8745 ;; 8746 *) 8747 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8748 ;; 8749 esac 8750 lt_cv_with_aix_soname=$with_aix_soname 8751else 8752 if ${lt_cv_with_aix_soname+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 lt_cv_with_aix_soname=aix 8756fi 8757 8758 with_aix_soname=$lt_cv_with_aix_soname 8759fi 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8762$as_echo "$with_aix_soname" >&6; } 8763 if test aix != "$with_aix_soname"; then 8764 # For the AIX way of multilib, we name the shared archive member 8765 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8766 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8767 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8768 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8769 if test 64 = "${OBJECT_MODE-32}"; then 8770 shared_archive_member_spec=shr_64 8771 else 8772 shared_archive_member_spec=shr 8773 fi 8774 fi 8775 ;; 8776*) 8777 with_aix_soname=aix 8778 ;; 8779esac 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790# This can be used to rebuild libtool when needed 8791LIBTOOL_DEPS=$ltmain 8792 8793# Always use our own libtool. 8794LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825test -z "$LN_S" && LN_S="ln -s" 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840if test -n "${ZSH_VERSION+set}"; then 8841 setopt NO_GLOB_SUBST 8842fi 8843 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8845$as_echo_n "checking for objdir... " >&6; } 8846if ${lt_cv_objdir+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 rm -f .libs 2>/dev/null 8850mkdir .libs 2>/dev/null 8851if test -d .libs; then 8852 lt_cv_objdir=.libs 8853else 8854 # MS-DOS does not allow filenames that begin with a dot. 8855 lt_cv_objdir=_libs 8856fi 8857rmdir .libs 2>/dev/null 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8860$as_echo "$lt_cv_objdir" >&6; } 8861objdir=$lt_cv_objdir 8862 8863 8864 8865 8866 8867cat >>confdefs.h <<_ACEOF 8868#define LT_OBJDIR "$lt_cv_objdir/" 8869_ACEOF 8870 8871 8872 8873 8874case $host_os in 8875aix3*) 8876 # AIX sometimes has problems with the GCC collect2 program. For some 8877 # reason, if we set the COLLECT_NAMES environment variable, the problems 8878 # vanish in a puff of smoke. 8879 if test set != "${COLLECT_NAMES+set}"; then 8880 COLLECT_NAMES= 8881 export COLLECT_NAMES 8882 fi 8883 ;; 8884esac 8885 8886# Global variables: 8887ofile=libtool 8888can_build_shared=yes 8889 8890# All known linkers require a '.a' archive for static linking (except MSVC, 8891# which needs '.lib'). 8892libext=a 8893 8894with_gnu_ld=$lt_cv_prog_gnu_ld 8895 8896old_CC=$CC 8897old_CFLAGS=$CFLAGS 8898 8899# Set sane defaults for various variables 8900test -z "$CC" && CC=cc 8901test -z "$LTCC" && LTCC=$CC 8902test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8903test -z "$LD" && LD=ld 8904test -z "$ac_objext" && ac_objext=o 8905 8906func_cc_basename $compiler 8907cc_basename=$func_cc_basename_result 8908 8909 8910# Only perform the check for file, if the check method requires it 8911test -z "$MAGIC_CMD" && MAGIC_CMD=file 8912case $deplibs_check_method in 8913file_magic*) 8914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8916$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8917if ${lt_cv_path_MAGIC_CMD+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 case $MAGIC_CMD in 8921[\\/*] | ?:[\\/]*) 8922 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8923 ;; 8924*) 8925 lt_save_MAGIC_CMD=$MAGIC_CMD 8926 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8928 for ac_dir in $ac_dummy; do 8929 IFS=$lt_save_ifs 8930 test -z "$ac_dir" && ac_dir=. 8931 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8932 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8933 if test -n "$file_magic_test_file"; then 8934 case $deplibs_check_method in 8935 "file_magic "*) 8936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8937 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8939 $EGREP "$file_magic_regex" > /dev/null; then 8940 : 8941 else 8942 cat <<_LT_EOF 1>&2 8943 8944*** Warning: the command libtool uses to detect shared libraries, 8945*** $file_magic_cmd, produces output that libtool cannot recognize. 8946*** The result is that libtool may fail to recognize shared libraries 8947*** as such. This will affect the creation of libtool libraries that 8948*** depend on shared libraries, but programs linked with such libtool 8949*** libraries will work regardless of this problem. Nevertheless, you 8950*** may want to report the problem to your system manager and/or to 8951*** bug-libtool@gnu.org 8952 8953_LT_EOF 8954 fi ;; 8955 esac 8956 fi 8957 break 8958 fi 8959 done 8960 IFS=$lt_save_ifs 8961 MAGIC_CMD=$lt_save_MAGIC_CMD 8962 ;; 8963esac 8964fi 8965 8966MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8967if test -n "$MAGIC_CMD"; then 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8969$as_echo "$MAGIC_CMD" >&6; } 8970else 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8972$as_echo "no" >&6; } 8973fi 8974 8975 8976 8977 8978 8979if test -z "$lt_cv_path_MAGIC_CMD"; then 8980 if test -n "$ac_tool_prefix"; then 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8982$as_echo_n "checking for file... " >&6; } 8983if ${lt_cv_path_MAGIC_CMD+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 case $MAGIC_CMD in 8987[\\/*] | ?:[\\/]*) 8988 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8989 ;; 8990*) 8991 lt_save_MAGIC_CMD=$MAGIC_CMD 8992 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8994 for ac_dir in $ac_dummy; do 8995 IFS=$lt_save_ifs 8996 test -z "$ac_dir" && ac_dir=. 8997 if test -f "$ac_dir/file"; then 8998 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8999 if test -n "$file_magic_test_file"; then 9000 case $deplibs_check_method in 9001 "file_magic "*) 9002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9003 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9005 $EGREP "$file_magic_regex" > /dev/null; then 9006 : 9007 else 9008 cat <<_LT_EOF 1>&2 9009 9010*** Warning: the command libtool uses to detect shared libraries, 9011*** $file_magic_cmd, produces output that libtool cannot recognize. 9012*** The result is that libtool may fail to recognize shared libraries 9013*** as such. This will affect the creation of libtool libraries that 9014*** depend on shared libraries, but programs linked with such libtool 9015*** libraries will work regardless of this problem. Nevertheless, you 9016*** may want to report the problem to your system manager and/or to 9017*** bug-libtool@gnu.org 9018 9019_LT_EOF 9020 fi ;; 9021 esac 9022 fi 9023 break 9024 fi 9025 done 9026 IFS=$lt_save_ifs 9027 MAGIC_CMD=$lt_save_MAGIC_CMD 9028 ;; 9029esac 9030fi 9031 9032MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9033if test -n "$MAGIC_CMD"; then 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9035$as_echo "$MAGIC_CMD" >&6; } 9036else 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9038$as_echo "no" >&6; } 9039fi 9040 9041 9042 else 9043 MAGIC_CMD=: 9044 fi 9045fi 9046 9047 fi 9048 ;; 9049esac 9050 9051# Use C for the default configuration in the libtool script 9052 9053lt_save_CC=$CC 9054ac_ext=c 9055ac_cpp='$CPP $CPPFLAGS' 9056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9058ac_compiler_gnu=$ac_cv_c_compiler_gnu 9059 9060 9061# Source file extension for C test sources. 9062ac_ext=c 9063 9064# Object file extension for compiled C test sources. 9065objext=o 9066objext=$objext 9067 9068# Code to be used in simple compile tests 9069lt_simple_compile_test_code="int some_variable = 0;" 9070 9071# Code to be used in simple link tests 9072lt_simple_link_test_code='int main(){return(0);}' 9073 9074 9075 9076 9077 9078 9079 9080# If no C compiler was specified, use CC. 9081LTCC=${LTCC-"$CC"} 9082 9083# If no C compiler flags were specified, use CFLAGS. 9084LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9085 9086# Allow CC to be a program name with arguments. 9087compiler=$CC 9088 9089# Save the default compiler, since it gets overwritten when the other 9090# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9091compiler_DEFAULT=$CC 9092 9093# save warnings/boilerplate of simple test code 9094ac_outfile=conftest.$ac_objext 9095echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9097_lt_compiler_boilerplate=`cat conftest.err` 9098$RM conftest* 9099 9100ac_outfile=conftest.$ac_objext 9101echo "$lt_simple_link_test_code" >conftest.$ac_ext 9102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9103_lt_linker_boilerplate=`cat conftest.err` 9104$RM -r conftest* 9105 9106 9107## CAVEAT EMPTOR: 9108## There is no encapsulation within the following macros, do not change 9109## the running order or otherwise move them around unless you know exactly 9110## what you are doing... 9111if test -n "$compiler"; then 9112 9113lt_prog_compiler_no_builtin_flag= 9114 9115if test yes = "$GCC"; then 9116 case $cc_basename in 9117 nvcc*) 9118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9119 *) 9120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9121 esac 9122 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9124$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9125if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 lt_cv_prog_compiler_rtti_exceptions=no 9129 ac_outfile=conftest.$ac_objext 9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9131 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9132 # Insert the option either (1) after the last *FLAGS variable, or 9133 # (2) before a word containing "conftest.", or (3) at the end. 9134 # Note that $ac_compile itself does not contain backslashes and begins 9135 # with a dollar sign (not a hyphen), so the echo should work correctly. 9136 # The option is referenced via a variable to avoid confusing sed. 9137 lt_compile=`echo "$ac_compile" | $SED \ 9138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9140 -e 's:$: $lt_compiler_flag:'` 9141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9142 (eval "$lt_compile" 2>conftest.err) 9143 ac_status=$? 9144 cat conftest.err >&5 9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9146 if (exit $ac_status) && test -s "$ac_outfile"; then 9147 # The compiler can only warn and ignore the option if not recognized 9148 # So say no if there are warnings other than the usual output. 9149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9152 lt_cv_prog_compiler_rtti_exceptions=yes 9153 fi 9154 fi 9155 $RM conftest* 9156 9157fi 9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9159$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9160 9161if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9163else 9164 : 9165fi 9166 9167fi 9168 9169 9170 9171 9172 9173 9174 lt_prog_compiler_wl= 9175lt_prog_compiler_pic= 9176lt_prog_compiler_static= 9177 9178 9179 if test yes = "$GCC"; then 9180 lt_prog_compiler_wl='-Wl,' 9181 lt_prog_compiler_static='-static' 9182 9183 case $host_os in 9184 aix*) 9185 # All AIX code is PIC. 9186 if test ia64 = "$host_cpu"; then 9187 # AIX 5 now supports IA64 processor 9188 lt_prog_compiler_static='-Bstatic' 9189 fi 9190 lt_prog_compiler_pic='-fPIC' 9191 ;; 9192 9193 amigaos*) 9194 case $host_cpu in 9195 powerpc) 9196 # see comment about AmigaOS4 .so support 9197 lt_prog_compiler_pic='-fPIC' 9198 ;; 9199 m68k) 9200 # FIXME: we need at least 68020 code to build shared libraries, but 9201 # adding the '-m68020' flag to GCC prevents building anything better, 9202 # like '-m68040'. 9203 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9204 ;; 9205 esac 9206 ;; 9207 9208 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9209 # PIC is the default for these OSes. 9210 ;; 9211 9212 mingw* | cygwin* | pw32* | os2* | cegcc*) 9213 # This hack is so that the source file can tell whether it is being 9214 # built for inclusion in a dll (and should export symbols for example). 9215 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9216 # (--disable-auto-import) libraries 9217 lt_prog_compiler_pic='-DDLL_EXPORT' 9218 case $host_os in 9219 os2*) 9220 lt_prog_compiler_static='$wl-static' 9221 ;; 9222 esac 9223 ;; 9224 9225 darwin* | rhapsody*) 9226 # PIC is the default on this platform 9227 # Common symbols not allowed in MH_DYLIB files 9228 lt_prog_compiler_pic='-fno-common' 9229 ;; 9230 9231 haiku*) 9232 # PIC is the default for Haiku. 9233 # The "-static" flag exists, but is broken. 9234 lt_prog_compiler_static= 9235 ;; 9236 9237 hpux*) 9238 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9239 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9240 # sets the default TLS model and affects inlining. 9241 case $host_cpu in 9242 hppa*64*) 9243 # +Z the default 9244 ;; 9245 *) 9246 lt_prog_compiler_pic='-fPIC' 9247 ;; 9248 esac 9249 ;; 9250 9251 interix[3-9]*) 9252 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9253 # Instead, we relocate shared libraries at runtime. 9254 ;; 9255 9256 msdosdjgpp*) 9257 # Just because we use GCC doesn't mean we suddenly get shared libraries 9258 # on systems that don't support them. 9259 lt_prog_compiler_can_build_shared=no 9260 enable_shared=no 9261 ;; 9262 9263 *nto* | *qnx*) 9264 # QNX uses GNU C++, but need to define -shared option too, otherwise 9265 # it will coredump. 9266 lt_prog_compiler_pic='-fPIC -shared' 9267 ;; 9268 9269 sysv4*MP*) 9270 if test -d /usr/nec; then 9271 lt_prog_compiler_pic=-Kconform_pic 9272 fi 9273 ;; 9274 9275 *) 9276 lt_prog_compiler_pic='-fPIC' 9277 ;; 9278 esac 9279 9280 case $cc_basename in 9281 nvcc*) # Cuda Compiler Driver 2.2 9282 lt_prog_compiler_wl='-Xlinker ' 9283 if test -n "$lt_prog_compiler_pic"; then 9284 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9285 fi 9286 ;; 9287 esac 9288 else 9289 # PORTME Check for flag to pass linker flags through the system compiler. 9290 case $host_os in 9291 aix*) 9292 lt_prog_compiler_wl='-Wl,' 9293 if test ia64 = "$host_cpu"; then 9294 # AIX 5 now supports IA64 processor 9295 lt_prog_compiler_static='-Bstatic' 9296 else 9297 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9298 fi 9299 ;; 9300 9301 darwin* | rhapsody*) 9302 # PIC is the default on this platform 9303 # Common symbols not allowed in MH_DYLIB files 9304 lt_prog_compiler_pic='-fno-common' 9305 case $cc_basename in 9306 nagfor*) 9307 # NAG Fortran compiler 9308 lt_prog_compiler_wl='-Wl,-Wl,,' 9309 lt_prog_compiler_pic='-PIC' 9310 lt_prog_compiler_static='-Bstatic' 9311 ;; 9312 esac 9313 ;; 9314 9315 mingw* | cygwin* | pw32* | os2* | cegcc*) 9316 # This hack is so that the source file can tell whether it is being 9317 # built for inclusion in a dll (and should export symbols for example). 9318 lt_prog_compiler_pic='-DDLL_EXPORT' 9319 case $host_os in 9320 os2*) 9321 lt_prog_compiler_static='$wl-static' 9322 ;; 9323 esac 9324 ;; 9325 9326 hpux9* | hpux10* | hpux11*) 9327 lt_prog_compiler_wl='-Wl,' 9328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9329 # not for PA HP-UX. 9330 case $host_cpu in 9331 hppa*64*|ia64*) 9332 # +Z the default 9333 ;; 9334 *) 9335 lt_prog_compiler_pic='+Z' 9336 ;; 9337 esac 9338 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9339 lt_prog_compiler_static='$wl-a ${wl}archive' 9340 ;; 9341 9342 irix5* | irix6* | nonstopux*) 9343 lt_prog_compiler_wl='-Wl,' 9344 # PIC (with -KPIC) is the default. 9345 lt_prog_compiler_static='-non_shared' 9346 ;; 9347 9348 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9349 case $cc_basename in 9350 # old Intel for x86_64, which still supported -KPIC. 9351 ecc*) 9352 lt_prog_compiler_wl='-Wl,' 9353 lt_prog_compiler_pic='-KPIC' 9354 lt_prog_compiler_static='-static' 9355 ;; 9356 # icc used to be incompatible with GCC. 9357 # ICC 10 doesn't accept -KPIC any more. 9358 icc* | ifort*) 9359 lt_prog_compiler_wl='-Wl,' 9360 lt_prog_compiler_pic='-fPIC' 9361 lt_prog_compiler_static='-static' 9362 ;; 9363 # Lahey Fortran 8.1. 9364 lf95*) 9365 lt_prog_compiler_wl='-Wl,' 9366 lt_prog_compiler_pic='--shared' 9367 lt_prog_compiler_static='--static' 9368 ;; 9369 nagfor*) 9370 # NAG Fortran compiler 9371 lt_prog_compiler_wl='-Wl,-Wl,,' 9372 lt_prog_compiler_pic='-PIC' 9373 lt_prog_compiler_static='-Bstatic' 9374 ;; 9375 tcc*) 9376 # Fabrice Bellard et al's Tiny C Compiler 9377 lt_prog_compiler_wl='-Wl,' 9378 lt_prog_compiler_pic='-fPIC' 9379 lt_prog_compiler_static='-static' 9380 ;; 9381 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9382 # Portland Group compilers (*not* the Pentium gcc compiler, 9383 # which looks to be a dead project) 9384 lt_prog_compiler_wl='-Wl,' 9385 lt_prog_compiler_pic='-fpic' 9386 lt_prog_compiler_static='-Bstatic' 9387 ;; 9388 ccc*) 9389 lt_prog_compiler_wl='-Wl,' 9390 # All Alpha code is PIC. 9391 lt_prog_compiler_static='-non_shared' 9392 ;; 9393 xl* | bgxl* | bgf* | mpixl*) 9394 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9395 lt_prog_compiler_wl='-Wl,' 9396 lt_prog_compiler_pic='-qpic' 9397 lt_prog_compiler_static='-qstaticlink' 9398 ;; 9399 *) 9400 case `$CC -V 2>&1 | sed 5q` in 9401 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9402 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9403 lt_prog_compiler_pic='-KPIC' 9404 lt_prog_compiler_static='-Bstatic' 9405 lt_prog_compiler_wl='' 9406 ;; 9407 *Sun\ F* | *Sun*Fortran*) 9408 lt_prog_compiler_pic='-KPIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 lt_prog_compiler_wl='-Qoption ld ' 9411 ;; 9412 *Sun\ C*) 9413 # Sun C 5.9 9414 lt_prog_compiler_pic='-KPIC' 9415 lt_prog_compiler_static='-Bstatic' 9416 lt_prog_compiler_wl='-Wl,' 9417 ;; 9418 *Intel*\ [CF]*Compiler*) 9419 lt_prog_compiler_wl='-Wl,' 9420 lt_prog_compiler_pic='-fPIC' 9421 lt_prog_compiler_static='-static' 9422 ;; 9423 *Portland\ Group*) 9424 lt_prog_compiler_wl='-Wl,' 9425 lt_prog_compiler_pic='-fpic' 9426 lt_prog_compiler_static='-Bstatic' 9427 ;; 9428 esac 9429 ;; 9430 esac 9431 ;; 9432 9433 newsos6) 9434 lt_prog_compiler_pic='-KPIC' 9435 lt_prog_compiler_static='-Bstatic' 9436 ;; 9437 9438 *nto* | *qnx*) 9439 # QNX uses GNU C++, but need to define -shared option too, otherwise 9440 # it will coredump. 9441 lt_prog_compiler_pic='-fPIC -shared' 9442 ;; 9443 9444 osf3* | osf4* | osf5*) 9445 lt_prog_compiler_wl='-Wl,' 9446 # All OSF/1 code is PIC. 9447 lt_prog_compiler_static='-non_shared' 9448 ;; 9449 9450 rdos*) 9451 lt_prog_compiler_static='-non_shared' 9452 ;; 9453 9454 solaris*) 9455 lt_prog_compiler_pic='-KPIC' 9456 lt_prog_compiler_static='-Bstatic' 9457 case $cc_basename in 9458 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9459 lt_prog_compiler_wl='-Qoption ld ';; 9460 *) 9461 lt_prog_compiler_wl='-Wl,';; 9462 esac 9463 ;; 9464 9465 sunos4*) 9466 lt_prog_compiler_wl='-Qoption ld ' 9467 lt_prog_compiler_pic='-PIC' 9468 lt_prog_compiler_static='-Bstatic' 9469 ;; 9470 9471 sysv4 | sysv4.2uw2* | sysv4.3*) 9472 lt_prog_compiler_wl='-Wl,' 9473 lt_prog_compiler_pic='-KPIC' 9474 lt_prog_compiler_static='-Bstatic' 9475 ;; 9476 9477 sysv4*MP*) 9478 if test -d /usr/nec; then 9479 lt_prog_compiler_pic='-Kconform_pic' 9480 lt_prog_compiler_static='-Bstatic' 9481 fi 9482 ;; 9483 9484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9485 lt_prog_compiler_wl='-Wl,' 9486 lt_prog_compiler_pic='-KPIC' 9487 lt_prog_compiler_static='-Bstatic' 9488 ;; 9489 9490 unicos*) 9491 lt_prog_compiler_wl='-Wl,' 9492 lt_prog_compiler_can_build_shared=no 9493 ;; 9494 9495 uts4*) 9496 lt_prog_compiler_pic='-pic' 9497 lt_prog_compiler_static='-Bstatic' 9498 ;; 9499 9500 *) 9501 lt_prog_compiler_can_build_shared=no 9502 ;; 9503 esac 9504 fi 9505 9506case $host_os in 9507 # For platforms that do not support PIC, -DPIC is meaningless: 9508 *djgpp*) 9509 lt_prog_compiler_pic= 9510 ;; 9511 *) 9512 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9513 ;; 9514esac 9515 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9517$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9518if ${lt_cv_prog_compiler_pic+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9522fi 9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9524$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9525lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9526 9527# 9528# Check to make sure the PIC flag actually works. 9529# 9530if test -n "$lt_prog_compiler_pic"; then 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9532$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9533if ${lt_cv_prog_compiler_pic_works+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535else 9536 lt_cv_prog_compiler_pic_works=no 9537 ac_outfile=conftest.$ac_objext 9538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9539 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9540 # Insert the option either (1) after the last *FLAGS variable, or 9541 # (2) before a word containing "conftest.", or (3) at the end. 9542 # Note that $ac_compile itself does not contain backslashes and begins 9543 # with a dollar sign (not a hyphen), so the echo should work correctly. 9544 # The option is referenced via a variable to avoid confusing sed. 9545 lt_compile=`echo "$ac_compile" | $SED \ 9546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9548 -e 's:$: $lt_compiler_flag:'` 9549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9550 (eval "$lt_compile" 2>conftest.err) 9551 ac_status=$? 9552 cat conftest.err >&5 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9554 if (exit $ac_status) && test -s "$ac_outfile"; then 9555 # The compiler can only warn and ignore the option if not recognized 9556 # So say no if there are warnings other than the usual output. 9557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9560 lt_cv_prog_compiler_pic_works=yes 9561 fi 9562 fi 9563 $RM conftest* 9564 9565fi 9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9567$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9568 9569if test yes = "$lt_cv_prog_compiler_pic_works"; then 9570 case $lt_prog_compiler_pic in 9571 "" | " "*) ;; 9572 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9573 esac 9574else 9575 lt_prog_compiler_pic= 9576 lt_prog_compiler_can_build_shared=no 9577fi 9578 9579fi 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591# 9592# Check to make sure the static flag actually works. 9593# 9594wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9596$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9597if ${lt_cv_prog_compiler_static_works+:} false; then : 9598 $as_echo_n "(cached) " >&6 9599else 9600 lt_cv_prog_compiler_static_works=no 9601 save_LDFLAGS=$LDFLAGS 9602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9603 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9605 # The linker can only warn and ignore the option if not recognized 9606 # So say no if there are warnings 9607 if test -s conftest.err; then 9608 # Append any errors to the config.log. 9609 cat conftest.err 1>&5 9610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9612 if diff conftest.exp conftest.er2 >/dev/null; then 9613 lt_cv_prog_compiler_static_works=yes 9614 fi 9615 else 9616 lt_cv_prog_compiler_static_works=yes 9617 fi 9618 fi 9619 $RM -r conftest* 9620 LDFLAGS=$save_LDFLAGS 9621 9622fi 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9624$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9625 9626if test yes = "$lt_cv_prog_compiler_static_works"; then 9627 : 9628else 9629 lt_prog_compiler_static= 9630fi 9631 9632 9633 9634 9635 9636 9637 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9639$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9640if ${lt_cv_prog_compiler_c_o+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 lt_cv_prog_compiler_c_o=no 9644 $RM -r conftest 2>/dev/null 9645 mkdir conftest 9646 cd conftest 9647 mkdir out 9648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9649 9650 lt_compiler_flag="-o out/conftest2.$ac_objext" 9651 # Insert the option either (1) after the last *FLAGS variable, or 9652 # (2) before a word containing "conftest.", or (3) at the end. 9653 # Note that $ac_compile itself does not contain backslashes and begins 9654 # with a dollar sign (not a hyphen), so the echo should work correctly. 9655 lt_compile=`echo "$ac_compile" | $SED \ 9656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9658 -e 's:$: $lt_compiler_flag:'` 9659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9660 (eval "$lt_compile" 2>out/conftest.err) 9661 ac_status=$? 9662 cat out/conftest.err >&5 9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9664 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9665 then 9666 # The compiler can only warn and ignore the option if not recognized 9667 # So say no if there are warnings 9668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9671 lt_cv_prog_compiler_c_o=yes 9672 fi 9673 fi 9674 chmod u+w . 2>&5 9675 $RM conftest* 9676 # SGI C++ compiler will create directory out/ii_files/ for 9677 # template instantiation 9678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9679 $RM out/* && rmdir out 9680 cd .. 9681 $RM -r conftest 9682 $RM conftest* 9683 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9686$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9687 9688 9689 9690 9691 9692 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9694$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9695if ${lt_cv_prog_compiler_c_o+:} false; then : 9696 $as_echo_n "(cached) " >&6 9697else 9698 lt_cv_prog_compiler_c_o=no 9699 $RM -r conftest 2>/dev/null 9700 mkdir conftest 9701 cd conftest 9702 mkdir out 9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9704 9705 lt_compiler_flag="-o out/conftest2.$ac_objext" 9706 # Insert the option either (1) after the last *FLAGS variable, or 9707 # (2) before a word containing "conftest.", or (3) at the end. 9708 # Note that $ac_compile itself does not contain backslashes and begins 9709 # with a dollar sign (not a hyphen), so the echo should work correctly. 9710 lt_compile=`echo "$ac_compile" | $SED \ 9711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9713 -e 's:$: $lt_compiler_flag:'` 9714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9715 (eval "$lt_compile" 2>out/conftest.err) 9716 ac_status=$? 9717 cat out/conftest.err >&5 9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9719 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9720 then 9721 # The compiler can only warn and ignore the option if not recognized 9722 # So say no if there are warnings 9723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9726 lt_cv_prog_compiler_c_o=yes 9727 fi 9728 fi 9729 chmod u+w . 2>&5 9730 $RM conftest* 9731 # SGI C++ compiler will create directory out/ii_files/ for 9732 # template instantiation 9733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9734 $RM out/* && rmdir out 9735 cd .. 9736 $RM -r conftest 9737 $RM conftest* 9738 9739fi 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9741$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9742 9743 9744 9745 9746hard_links=nottested 9747if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9748 # do not overwrite the value of need_locks provided by the user 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9750$as_echo_n "checking if we can lock with hard links... " >&6; } 9751 hard_links=yes 9752 $RM conftest* 9753 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9754 touch conftest.a 9755 ln conftest.a conftest.b 2>&5 || hard_links=no 9756 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9758$as_echo "$hard_links" >&6; } 9759 if test no = "$hard_links"; then 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9761$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9762 need_locks=warn 9763 fi 9764else 9765 need_locks=no 9766fi 9767 9768 9769 9770 9771 9772 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9774$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9775 9776 runpath_var= 9777 allow_undefined_flag= 9778 always_export_symbols=no 9779 archive_cmds= 9780 archive_expsym_cmds= 9781 compiler_needs_object=no 9782 enable_shared_with_static_runtimes=no 9783 export_dynamic_flag_spec= 9784 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9785 hardcode_automatic=no 9786 hardcode_direct=no 9787 hardcode_direct_absolute=no 9788 hardcode_libdir_flag_spec= 9789 hardcode_libdir_separator= 9790 hardcode_minus_L=no 9791 hardcode_shlibpath_var=unsupported 9792 inherit_rpath=no 9793 link_all_deplibs=unknown 9794 module_cmds= 9795 module_expsym_cmds= 9796 old_archive_from_new_cmds= 9797 old_archive_from_expsyms_cmds= 9798 thread_safe_flag_spec= 9799 whole_archive_flag_spec= 9800 # include_expsyms should be a list of space-separated symbols to be *always* 9801 # included in the symbol list 9802 include_expsyms= 9803 # exclude_expsyms can be an extended regexp of symbols to exclude 9804 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9805 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9806 # as well as any symbol that contains 'd'. 9807 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9809 # platforms (ab)use it in PIC code, but their linkers get confused if 9810 # the symbol is explicitly referenced. Since portable code cannot 9811 # rely on this symbol name, it's probably fine to never include it in 9812 # preloaded symbol tables. 9813 # Exclude shared library initialization/finalization symbols. 9814 extract_expsyms_cmds= 9815 9816 case $host_os in 9817 cygwin* | mingw* | pw32* | cegcc*) 9818 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9819 # When not using gcc, we currently assume that we are using 9820 # Microsoft Visual C++. 9821 if test yes != "$GCC"; then 9822 with_gnu_ld=no 9823 fi 9824 ;; 9825 interix*) 9826 # we just hope/assume this is gcc and not c89 (= MSVC++) 9827 with_gnu_ld=yes 9828 ;; 9829 openbsd* | bitrig*) 9830 with_gnu_ld=no 9831 ;; 9832 linux* | k*bsd*-gnu | gnu*) 9833 link_all_deplibs=no 9834 ;; 9835 esac 9836 9837 ld_shlibs=yes 9838 9839 # On some targets, GNU ld is compatible enough with the native linker 9840 # that we're better off using the native interface for both. 9841 lt_use_gnu_ld_interface=no 9842 if test yes = "$with_gnu_ld"; then 9843 case $host_os in 9844 aix*) 9845 # The AIX port of GNU ld has always aspired to compatibility 9846 # with the native linker. However, as the warning in the GNU ld 9847 # block says, versions before 2.19.5* couldn't really create working 9848 # shared libraries, regardless of the interface used. 9849 case `$LD -v 2>&1` in 9850 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9851 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9852 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9853 *) 9854 lt_use_gnu_ld_interface=yes 9855 ;; 9856 esac 9857 ;; 9858 *) 9859 lt_use_gnu_ld_interface=yes 9860 ;; 9861 esac 9862 fi 9863 9864 if test yes = "$lt_use_gnu_ld_interface"; then 9865 # If archive_cmds runs LD, not CC, wlarc should be empty 9866 wlarc='$wl' 9867 9868 # Set some defaults for GNU ld with shared library support. These 9869 # are reset later if shared libraries are not supported. Putting them 9870 # here allows them to be overridden if necessary. 9871 runpath_var=LD_RUN_PATH 9872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9873 export_dynamic_flag_spec='$wl--export-dynamic' 9874 # ancient GNU ld didn't support --whole-archive et. al. 9875 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9876 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9877 else 9878 whole_archive_flag_spec= 9879 fi 9880 supports_anon_versioning=no 9881 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9882 *GNU\ gold*) supports_anon_versioning=yes ;; 9883 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9884 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9885 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9886 *\ 2.11.*) ;; # other 2.11 versions 9887 *) supports_anon_versioning=yes ;; 9888 esac 9889 9890 # See if GNU ld supports shared libraries. 9891 case $host_os in 9892 aix[3-9]*) 9893 # On AIX/PPC, the GNU linker is very broken 9894 if test ia64 != "$host_cpu"; then 9895 ld_shlibs=no 9896 cat <<_LT_EOF 1>&2 9897 9898*** Warning: the GNU linker, at least up to release 2.19, is reported 9899*** to be unable to reliably create shared libraries on AIX. 9900*** Therefore, libtool is disabling shared libraries support. If you 9901*** really care for shared libraries, you may want to install binutils 9902*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9903*** You will then need to restart the configuration process. 9904 9905_LT_EOF 9906 fi 9907 ;; 9908 9909 amigaos*) 9910 case $host_cpu in 9911 powerpc) 9912 # see comment about AmigaOS4 .so support 9913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9914 archive_expsym_cmds='' 9915 ;; 9916 m68k) 9917 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)' 9918 hardcode_libdir_flag_spec='-L$libdir' 9919 hardcode_minus_L=yes 9920 ;; 9921 esac 9922 ;; 9923 9924 beos*) 9925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9926 allow_undefined_flag=unsupported 9927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9928 # support --undefined. This deserves some investigation. FIXME 9929 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9930 else 9931 ld_shlibs=no 9932 fi 9933 ;; 9934 9935 cygwin* | mingw* | pw32* | cegcc*) 9936 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9937 # as there is no search path for DLLs. 9938 hardcode_libdir_flag_spec='-L$libdir' 9939 export_dynamic_flag_spec='$wl--export-all-symbols' 9940 allow_undefined_flag=unsupported 9941 always_export_symbols=no 9942 enable_shared_with_static_runtimes=yes 9943 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' 9944 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9945 9946 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9948 # If the export-symbols file already is a .def file, use it as 9949 # is; otherwise, prepend EXPORTS... 9950 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9951 cp $export_symbols $output_objdir/$soname.def; 9952 else 9953 echo EXPORTS > $output_objdir/$soname.def; 9954 cat $export_symbols >> $output_objdir/$soname.def; 9955 fi~ 9956 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9957 else 9958 ld_shlibs=no 9959 fi 9960 ;; 9961 9962 haiku*) 9963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9964 link_all_deplibs=yes 9965 ;; 9966 9967 os2*) 9968 hardcode_libdir_flag_spec='-L$libdir' 9969 hardcode_minus_L=yes 9970 allow_undefined_flag=unsupported 9971 shrext_cmds=.dll 9972 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9975 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9976 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9977 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9978 emximp -o $lib $output_objdir/$libname.def' 9979 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9982 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9983 prefix_cmds="$SED"~ 9984 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9985 prefix_cmds="$prefix_cmds -e 1d"; 9986 fi~ 9987 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9988 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9989 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9990 emximp -o $lib $output_objdir/$libname.def' 9991 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9992 enable_shared_with_static_runtimes=yes 9993 ;; 9994 9995 interix[3-9]*) 9996 hardcode_direct=no 9997 hardcode_shlibpath_var=no 9998 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9999 export_dynamic_flag_spec='$wl-E' 10000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10001 # Instead, shared libraries are loaded at an image base (0x10000000 by 10002 # default) and relocated if they conflict, which is a slow very memory 10003 # consuming and fragmenting process. To avoid this, we pick a random, 10004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10005 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10007 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' 10008 ;; 10009 10010 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10011 tmp_diet=no 10012 if test linux-dietlibc = "$host_os"; then 10013 case $cc_basename in 10014 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10015 esac 10016 fi 10017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10018 && test no = "$tmp_diet" 10019 then 10020 tmp_addflag=' $pic_flag' 10021 tmp_sharedflag='-shared' 10022 case $cc_basename,$host_cpu in 10023 pgcc*) # Portland Group C compiler 10024 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' 10025 tmp_addflag=' $pic_flag' 10026 ;; 10027 pgf77* | pgf90* | pgf95* | pgfortran*) 10028 # Portland Group f77 and f90 compilers 10029 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' 10030 tmp_addflag=' $pic_flag -Mnomain' ;; 10031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10032 tmp_addflag=' -i_dynamic' ;; 10033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10034 tmp_addflag=' -i_dynamic -nofor_main' ;; 10035 ifc* | ifort*) # Intel Fortran compiler 10036 tmp_addflag=' -nofor_main' ;; 10037 lf95*) # Lahey Fortran 8.1 10038 whole_archive_flag_spec= 10039 tmp_sharedflag='--shared' ;; 10040 nagfor*) # NAGFOR 5.3 10041 tmp_sharedflag='-Wl,-shared' ;; 10042 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10043 tmp_sharedflag='-qmkshrobj' 10044 tmp_addflag= ;; 10045 nvcc*) # Cuda Compiler Driver 2.2 10046 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' 10047 compiler_needs_object=yes 10048 ;; 10049 esac 10050 case `$CC -V 2>&1 | sed 5q` in 10051 *Sun\ C*) # Sun C 5.9 10052 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' 10053 compiler_needs_object=yes 10054 tmp_sharedflag='-G' ;; 10055 *Sun\ F*) # Sun Fortran 8.3 10056 tmp_sharedflag='-G' ;; 10057 esac 10058 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10059 10060 if test yes = "$supports_anon_versioning"; then 10061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10063 echo "local: *; };" >> $output_objdir/$libname.ver~ 10064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10065 fi 10066 10067 case $cc_basename in 10068 tcc*) 10069 export_dynamic_flag_spec='-rdynamic' 10070 ;; 10071 xlf* | bgf* | bgxlf* | mpixlf*) 10072 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10073 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10075 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10076 if test yes = "$supports_anon_versioning"; then 10077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10079 echo "local: *; };" >> $output_objdir/$libname.ver~ 10080 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10081 fi 10082 ;; 10083 esac 10084 else 10085 ld_shlibs=no 10086 fi 10087 ;; 10088 10089 netbsd* | netbsdelf*-gnu) 10090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10092 wlarc= 10093 else 10094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10095 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10096 fi 10097 ;; 10098 10099 solaris*) 10100 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10101 ld_shlibs=no 10102 cat <<_LT_EOF 1>&2 10103 10104*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10105*** create shared libraries on Solaris systems. Therefore, libtool 10106*** is disabling shared libraries support. We urge you to upgrade GNU 10107*** binutils to release 2.9.1 or newer. Another option is to modify 10108*** your PATH or compiler configuration so that the native linker is 10109*** used, and then restart. 10110 10111_LT_EOF 10112 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10114 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10115 else 10116 ld_shlibs=no 10117 fi 10118 ;; 10119 10120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10121 case `$LD -v 2>&1` in 10122 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10123 ld_shlibs=no 10124 cat <<_LT_EOF 1>&2 10125 10126*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10127*** reliably create shared libraries on SCO systems. Therefore, libtool 10128*** is disabling shared libraries support. We urge you to upgrade GNU 10129*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10130*** your PATH or compiler configuration so that the native linker is 10131*** used, and then restart. 10132 10133_LT_EOF 10134 ;; 10135 *) 10136 # For security reasons, it is highly recommended that you always 10137 # use absolute paths for naming shared libraries, and exclude the 10138 # DT_RUNPATH tag from executables and libraries. But doing so 10139 # requires that you compile everything twice, which is a pain. 10140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10144 else 10145 ld_shlibs=no 10146 fi 10147 ;; 10148 esac 10149 ;; 10150 10151 sunos4*) 10152 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10153 wlarc= 10154 hardcode_direct=yes 10155 hardcode_shlibpath_var=no 10156 ;; 10157 10158 *) 10159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10161 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10162 else 10163 ld_shlibs=no 10164 fi 10165 ;; 10166 esac 10167 10168 if test no = "$ld_shlibs"; then 10169 runpath_var= 10170 hardcode_libdir_flag_spec= 10171 export_dynamic_flag_spec= 10172 whole_archive_flag_spec= 10173 fi 10174 else 10175 # PORTME fill in a description of your system's linker (not GNU ld) 10176 case $host_os in 10177 aix3*) 10178 allow_undefined_flag=unsupported 10179 always_export_symbols=yes 10180 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' 10181 # Note: this linker hardcodes the directories in LIBPATH if there 10182 # are no directories specified by -L. 10183 hardcode_minus_L=yes 10184 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10185 # Neither direct hardcoding nor static linking is supported with a 10186 # broken collect2. 10187 hardcode_direct=unsupported 10188 fi 10189 ;; 10190 10191 aix[4-9]*) 10192 if test ia64 = "$host_cpu"; then 10193 # On IA64, the linker does run time linking by default, so we don't 10194 # have to do anything special. 10195 aix_use_runtimelinking=no 10196 exp_sym_flag='-Bexport' 10197 no_entry_flag= 10198 else 10199 # If we're using GNU nm, then we don't want the "-C" option. 10200 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10201 # Without the "-l" option, or with the "-B" option, AIX nm treats 10202 # weak defined symbols like other global defined symbols, whereas 10203 # GNU nm marks them as "W". 10204 # While the 'weak' keyword is ignored in the Export File, we need 10205 # it in the Import File for the 'aix-soname' feature, so we have 10206 # to replace the "-B" option with "-P" for AIX nm. 10207 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10208 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' 10209 else 10210 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' 10211 fi 10212 aix_use_runtimelinking=no 10213 10214 # Test if we are trying to use run time linking or normal 10215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10216 # have runtime linking enabled, and use it for executables. 10217 # For shared libraries, we enable/disable runtime linking 10218 # depending on the kind of the shared library created - 10219 # when "with_aix_soname,aix_use_runtimelinking" is: 10220 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10221 # "aix,yes" lib.so shared, rtl:yes, for executables 10222 # lib.a static archive 10223 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10224 # lib.a(lib.so.V) shared, rtl:no, for executables 10225 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10226 # lib.a(lib.so.V) shared, rtl:no 10227 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10228 # lib.a static archive 10229 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10230 for ld_flag in $LDFLAGS; do 10231 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10232 aix_use_runtimelinking=yes 10233 break 10234 fi 10235 done 10236 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10237 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10238 # so we don't have lib.a shared libs to link our executables. 10239 # We have to force runtime linking in this case. 10240 aix_use_runtimelinking=yes 10241 LDFLAGS="$LDFLAGS -Wl,-brtl" 10242 fi 10243 ;; 10244 esac 10245 10246 exp_sym_flag='-bexport' 10247 no_entry_flag='-bnoentry' 10248 fi 10249 10250 # When large executables or shared objects are built, AIX ld can 10251 # have problems creating the table of contents. If linking a library 10252 # or program results in "error TOC overflow" add -mminimal-toc to 10253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10255 10256 archive_cmds='' 10257 hardcode_direct=yes 10258 hardcode_direct_absolute=yes 10259 hardcode_libdir_separator=':' 10260 link_all_deplibs=yes 10261 file_list_spec='$wl-f,' 10262 case $with_aix_soname,$aix_use_runtimelinking in 10263 aix,*) ;; # traditional, no import file 10264 svr4,* | *,yes) # use import file 10265 # The Import File defines what to hardcode. 10266 hardcode_direct=no 10267 hardcode_direct_absolute=no 10268 ;; 10269 esac 10270 10271 if test yes = "$GCC"; then 10272 case $host_os in aix4.[012]|aix4.[012].*) 10273 # We only want to do this on AIX 4.2 and lower, the check 10274 # below for broken collect2 doesn't work under 4.3+ 10275 collect2name=`$CC -print-prog-name=collect2` 10276 if test -f "$collect2name" && 10277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10278 then 10279 # We have reworked collect2 10280 : 10281 else 10282 # We have old collect2 10283 hardcode_direct=unsupported 10284 # It fails to find uninstalled libraries when the uninstalled 10285 # path is not listed in the libpath. Setting hardcode_minus_L 10286 # to unsupported forces relinking 10287 hardcode_minus_L=yes 10288 hardcode_libdir_flag_spec='-L$libdir' 10289 hardcode_libdir_separator= 10290 fi 10291 ;; 10292 esac 10293 shared_flag='-shared' 10294 if test yes = "$aix_use_runtimelinking"; then 10295 shared_flag="$shared_flag "'$wl-G' 10296 fi 10297 # Need to ensure runtime linking is disabled for the traditional 10298 # shared library, or the linker may eventually find shared libraries 10299 # /with/ Import File - we do not want to mix them. 10300 shared_flag_aix='-shared' 10301 shared_flag_svr4='-shared $wl-G' 10302 else 10303 # not using gcc 10304 if test ia64 = "$host_cpu"; then 10305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10306 # chokes on -Wl,-G. The following line is correct: 10307 shared_flag='-G' 10308 else 10309 if test yes = "$aix_use_runtimelinking"; then 10310 shared_flag='$wl-G' 10311 else 10312 shared_flag='$wl-bM:SRE' 10313 fi 10314 shared_flag_aix='$wl-bM:SRE' 10315 shared_flag_svr4='$wl-G' 10316 fi 10317 fi 10318 10319 export_dynamic_flag_spec='$wl-bexpall' 10320 # It seems that -bexpall does not export symbols beginning with 10321 # underscore (_), so it is better to generate a list of symbols to export. 10322 always_export_symbols=yes 10323 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10324 # Warning - without using the other runtime loading flags (-brtl), 10325 # -berok will link without error, but may produce a broken library. 10326 allow_undefined_flag='-berok' 10327 # Determine the default libpath from the value encoded in an 10328 # empty executable. 10329 if test set = "${lt_cv_aix_libpath+set}"; then 10330 aix_libpath=$lt_cv_aix_libpath 10331else 10332 if ${lt_cv_aix_libpath_+:} false; then : 10333 $as_echo_n "(cached) " >&6 10334else 10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10336/* end confdefs.h. */ 10337 10338int 10339main () 10340{ 10341 10342 ; 10343 return 0; 10344} 10345_ACEOF 10346if ac_fn_c_try_link "$LINENO"; then : 10347 10348 lt_aix_libpath_sed=' 10349 /Import File Strings/,/^$/ { 10350 /^0/ { 10351 s/^0 *\([^ ]*\) *$/\1/ 10352 p 10353 } 10354 }' 10355 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10356 # Check for a 64-bit object if we didn't find anything. 10357 if test -z "$lt_cv_aix_libpath_"; then 10358 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10359 fi 10360fi 10361rm -f core conftest.err conftest.$ac_objext \ 10362 conftest$ac_exeext conftest.$ac_ext 10363 if test -z "$lt_cv_aix_libpath_"; then 10364 lt_cv_aix_libpath_=/usr/lib:/lib 10365 fi 10366 10367fi 10368 10369 aix_libpath=$lt_cv_aix_libpath_ 10370fi 10371 10372 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10373 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 10374 else 10375 if test ia64 = "$host_cpu"; then 10376 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10377 allow_undefined_flag="-z nodefs" 10378 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" 10379 else 10380 # Determine the default libpath from the value encoded in an 10381 # empty executable. 10382 if test set = "${lt_cv_aix_libpath+set}"; then 10383 aix_libpath=$lt_cv_aix_libpath 10384else 10385 if ${lt_cv_aix_libpath_+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390 10391int 10392main () 10393{ 10394 10395 ; 10396 return 0; 10397} 10398_ACEOF 10399if ac_fn_c_try_link "$LINENO"; then : 10400 10401 lt_aix_libpath_sed=' 10402 /Import File Strings/,/^$/ { 10403 /^0/ { 10404 s/^0 *\([^ ]*\) *$/\1/ 10405 p 10406 } 10407 }' 10408 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10409 # Check for a 64-bit object if we didn't find anything. 10410 if test -z "$lt_cv_aix_libpath_"; then 10411 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10412 fi 10413fi 10414rm -f core conftest.err conftest.$ac_objext \ 10415 conftest$ac_exeext conftest.$ac_ext 10416 if test -z "$lt_cv_aix_libpath_"; then 10417 lt_cv_aix_libpath_=/usr/lib:/lib 10418 fi 10419 10420fi 10421 10422 aix_libpath=$lt_cv_aix_libpath_ 10423fi 10424 10425 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10426 # Warning - without using the other run time loading flags, 10427 # -berok will link without error, but may produce a broken library. 10428 no_undefined_flag=' $wl-bernotok' 10429 allow_undefined_flag=' $wl-berok' 10430 if test yes = "$with_gnu_ld"; then 10431 # We only use this code for GNU lds that support --whole-archive. 10432 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10433 else 10434 # Exported symbols can be pulled into shared objects from archives 10435 whole_archive_flag_spec='$convenience' 10436 fi 10437 archive_cmds_need_lc=yes 10438 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10439 # -brtl affects multiple linker settings, -berok does not and is overridden later 10440 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10441 if test svr4 != "$with_aix_soname"; then 10442 # This is similar to how AIX traditionally builds its shared libraries. 10443 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' 10444 fi 10445 if test aix != "$with_aix_soname"; then 10446 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' 10447 else 10448 # used by -dlpreopen to get the symbols 10449 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10450 fi 10451 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10452 fi 10453 fi 10454 ;; 10455 10456 amigaos*) 10457 case $host_cpu in 10458 powerpc) 10459 # see comment about AmigaOS4 .so support 10460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10461 archive_expsym_cmds='' 10462 ;; 10463 m68k) 10464 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)' 10465 hardcode_libdir_flag_spec='-L$libdir' 10466 hardcode_minus_L=yes 10467 ;; 10468 esac 10469 ;; 10470 10471 bsdi[45]*) 10472 export_dynamic_flag_spec=-rdynamic 10473 ;; 10474 10475 cygwin* | mingw* | pw32* | cegcc*) 10476 # When not using gcc, we currently assume that we are using 10477 # Microsoft Visual C++. 10478 # hardcode_libdir_flag_spec is actually meaningless, as there is 10479 # no search path for DLLs. 10480 case $cc_basename in 10481 cl*) 10482 # Native MSVC 10483 hardcode_libdir_flag_spec=' ' 10484 allow_undefined_flag=unsupported 10485 always_export_symbols=yes 10486 file_list_spec='@' 10487 # Tell ltmain to make .lib files, not .a files. 10488 libext=lib 10489 # Tell ltmain to make .dll files, not .so files. 10490 shrext_cmds=.dll 10491 # FIXME: Setting linknames here is a bad hack. 10492 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10493 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10494 cp "$export_symbols" "$output_objdir/$soname.def"; 10495 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10496 else 10497 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10498 fi~ 10499 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10500 linknames=' 10501 # The linker will not automatically build a static lib if we build a DLL. 10502 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10503 enable_shared_with_static_runtimes=yes 10504 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10506 # Don't use ranlib 10507 old_postinstall_cmds='chmod 644 $oldlib' 10508 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10509 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10510 case $lt_outputfile in 10511 *.exe|*.EXE) ;; 10512 *) 10513 lt_outputfile=$lt_outputfile.exe 10514 lt_tool_outputfile=$lt_tool_outputfile.exe 10515 ;; 10516 esac~ 10517 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10518 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10519 $RM "$lt_outputfile.manifest"; 10520 fi' 10521 ;; 10522 *) 10523 # Assume MSVC wrapper 10524 hardcode_libdir_flag_spec=' ' 10525 allow_undefined_flag=unsupported 10526 # Tell ltmain to make .lib files, not .a files. 10527 libext=lib 10528 # Tell ltmain to make .dll files, not .so files. 10529 shrext_cmds=.dll 10530 # FIXME: Setting linknames here is a bad hack. 10531 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10532 # The linker will automatically build a .lib file if we build a DLL. 10533 old_archive_from_new_cmds='true' 10534 # FIXME: Should let the user specify the lib program. 10535 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10536 enable_shared_with_static_runtimes=yes 10537 ;; 10538 esac 10539 ;; 10540 10541 darwin* | rhapsody*) 10542 10543 10544 archive_cmds_need_lc=no 10545 hardcode_direct=no 10546 hardcode_automatic=yes 10547 hardcode_shlibpath_var=unsupported 10548 if test yes = "$lt_cv_ld_force_load"; then 10549 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\"`' 10550 10551 else 10552 whole_archive_flag_spec='' 10553 fi 10554 link_all_deplibs=yes 10555 allow_undefined_flag=$_lt_dar_allow_undefined 10556 case $cc_basename in 10557 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10558 *) _lt_dar_can_shared=$GCC ;; 10559 esac 10560 if test yes = "$_lt_dar_can_shared"; then 10561 output_verbose_link_cmd=func_echo_all 10562 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10563 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10564 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" 10565 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" 10566 10567 else 10568 ld_shlibs=no 10569 fi 10570 10571 ;; 10572 10573 dgux*) 10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10575 hardcode_libdir_flag_spec='-L$libdir' 10576 hardcode_shlibpath_var=no 10577 ;; 10578 10579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10580 # support. Future versions do this automatically, but an explicit c++rt0.o 10581 # does not break anything, and helps significantly (at the cost of a little 10582 # extra space). 10583 freebsd2.2*) 10584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10585 hardcode_libdir_flag_spec='-R$libdir' 10586 hardcode_direct=yes 10587 hardcode_shlibpath_var=no 10588 ;; 10589 10590 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10591 freebsd2.*) 10592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10593 hardcode_direct=yes 10594 hardcode_minus_L=yes 10595 hardcode_shlibpath_var=no 10596 ;; 10597 10598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10599 freebsd* | dragonfly*) 10600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10601 hardcode_libdir_flag_spec='-R$libdir' 10602 hardcode_direct=yes 10603 hardcode_shlibpath_var=no 10604 ;; 10605 10606 hpux9*) 10607 if test yes = "$GCC"; then 10608 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' 10609 else 10610 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' 10611 fi 10612 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10613 hardcode_libdir_separator=: 10614 hardcode_direct=yes 10615 10616 # hardcode_minus_L: Not really in the search PATH, 10617 # but as the default location of the library. 10618 hardcode_minus_L=yes 10619 export_dynamic_flag_spec='$wl-E' 10620 ;; 10621 10622 hpux10*) 10623 if test yes,no = "$GCC,$with_gnu_ld"; then 10624 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10625 else 10626 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10627 fi 10628 if test no = "$with_gnu_ld"; then 10629 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10630 hardcode_libdir_separator=: 10631 hardcode_direct=yes 10632 hardcode_direct_absolute=yes 10633 export_dynamic_flag_spec='$wl-E' 10634 # hardcode_minus_L: Not really in the search PATH, 10635 # but as the default location of the library. 10636 hardcode_minus_L=yes 10637 fi 10638 ;; 10639 10640 hpux11*) 10641 if test yes,no = "$GCC,$with_gnu_ld"; then 10642 case $host_cpu in 10643 hppa*64*) 10644 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10645 ;; 10646 ia64*) 10647 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10648 ;; 10649 *) 10650 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10651 ;; 10652 esac 10653 else 10654 case $host_cpu in 10655 hppa*64*) 10656 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10657 ;; 10658 ia64*) 10659 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10660 ;; 10661 *) 10662 10663 # Older versions of the 11.00 compiler do not understand -b yet 10664 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10666$as_echo_n "checking if $CC understands -b... " >&6; } 10667if ${lt_cv_prog_compiler__b+:} false; then : 10668 $as_echo_n "(cached) " >&6 10669else 10670 lt_cv_prog_compiler__b=no 10671 save_LDFLAGS=$LDFLAGS 10672 LDFLAGS="$LDFLAGS -b" 10673 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10675 # The linker can only warn and ignore the option if not recognized 10676 # So say no if there are warnings 10677 if test -s conftest.err; then 10678 # Append any errors to the config.log. 10679 cat conftest.err 1>&5 10680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10682 if diff conftest.exp conftest.er2 >/dev/null; then 10683 lt_cv_prog_compiler__b=yes 10684 fi 10685 else 10686 lt_cv_prog_compiler__b=yes 10687 fi 10688 fi 10689 $RM -r conftest* 10690 LDFLAGS=$save_LDFLAGS 10691 10692fi 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10694$as_echo "$lt_cv_prog_compiler__b" >&6; } 10695 10696if test yes = "$lt_cv_prog_compiler__b"; then 10697 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10698else 10699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10700fi 10701 10702 ;; 10703 esac 10704 fi 10705 if test no = "$with_gnu_ld"; then 10706 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10707 hardcode_libdir_separator=: 10708 10709 case $host_cpu in 10710 hppa*64*|ia64*) 10711 hardcode_direct=no 10712 hardcode_shlibpath_var=no 10713 ;; 10714 *) 10715 hardcode_direct=yes 10716 hardcode_direct_absolute=yes 10717 export_dynamic_flag_spec='$wl-E' 10718 10719 # hardcode_minus_L: Not really in the search PATH, 10720 # but as the default location of the library. 10721 hardcode_minus_L=yes 10722 ;; 10723 esac 10724 fi 10725 ;; 10726 10727 irix5* | irix6* | nonstopux*) 10728 if test yes = "$GCC"; then 10729 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' 10730 # Try to use the -exported_symbol ld option, if it does not 10731 # work, assume that -exports_file does not work either and 10732 # implicitly export all symbols. 10733 # This should be the same for all languages, so no per-tag cache variable. 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10735$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10736if ${lt_cv_irix_exported_symbol+:} false; then : 10737 $as_echo_n "(cached) " >&6 10738else 10739 save_LDFLAGS=$LDFLAGS 10740 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10742/* end confdefs.h. */ 10743int foo (void) { return 0; } 10744_ACEOF 10745if ac_fn_c_try_link "$LINENO"; then : 10746 lt_cv_irix_exported_symbol=yes 10747else 10748 lt_cv_irix_exported_symbol=no 10749fi 10750rm -f core conftest.err conftest.$ac_objext \ 10751 conftest$ac_exeext conftest.$ac_ext 10752 LDFLAGS=$save_LDFLAGS 10753fi 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10755$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10756 if test yes = "$lt_cv_irix_exported_symbol"; then 10757 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' 10758 fi 10759 link_all_deplibs=no 10760 else 10761 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' 10762 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' 10763 fi 10764 archive_cmds_need_lc='no' 10765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10766 hardcode_libdir_separator=: 10767 inherit_rpath=yes 10768 link_all_deplibs=yes 10769 ;; 10770 10771 linux*) 10772 case $cc_basename in 10773 tcc*) 10774 # Fabrice Bellard et al's Tiny C Compiler 10775 ld_shlibs=yes 10776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10777 ;; 10778 esac 10779 ;; 10780 10781 netbsd* | netbsdelf*-gnu) 10782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10784 else 10785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10786 fi 10787 hardcode_libdir_flag_spec='-R$libdir' 10788 hardcode_direct=yes 10789 hardcode_shlibpath_var=no 10790 ;; 10791 10792 newsos6) 10793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10794 hardcode_direct=yes 10795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10796 hardcode_libdir_separator=: 10797 hardcode_shlibpath_var=no 10798 ;; 10799 10800 *nto* | *qnx*) 10801 ;; 10802 10803 openbsd* | bitrig*) 10804 if test -f /usr/libexec/ld.so; then 10805 hardcode_direct=yes 10806 hardcode_shlibpath_var=no 10807 hardcode_direct_absolute=yes 10808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10811 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10812 export_dynamic_flag_spec='$wl-E' 10813 else 10814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10815 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10816 fi 10817 else 10818 ld_shlibs=no 10819 fi 10820 ;; 10821 10822 os2*) 10823 hardcode_libdir_flag_spec='-L$libdir' 10824 hardcode_minus_L=yes 10825 allow_undefined_flag=unsupported 10826 shrext_cmds=.dll 10827 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10828 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10829 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10830 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10831 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10832 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10833 emximp -o $lib $output_objdir/$libname.def' 10834 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10835 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10836 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10837 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10838 prefix_cmds="$SED"~ 10839 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10840 prefix_cmds="$prefix_cmds -e 1d"; 10841 fi~ 10842 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10843 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10844 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10845 emximp -o $lib $output_objdir/$libname.def' 10846 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10847 enable_shared_with_static_runtimes=yes 10848 ;; 10849 10850 osf3*) 10851 if test yes = "$GCC"; then 10852 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10853 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' 10854 else 10855 allow_undefined_flag=' -expect_unresolved \*' 10856 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' 10857 fi 10858 archive_cmds_need_lc='no' 10859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10860 hardcode_libdir_separator=: 10861 ;; 10862 10863 osf4* | osf5*) # as osf3* with the addition of -msym flag 10864 if test yes = "$GCC"; then 10865 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10866 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' 10867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10868 else 10869 allow_undefined_flag=' -expect_unresolved \*' 10870 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' 10871 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~ 10872 $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' 10873 10874 # Both c and cxx compiler support -rpath directly 10875 hardcode_libdir_flag_spec='-rpath $libdir' 10876 fi 10877 archive_cmds_need_lc='no' 10878 hardcode_libdir_separator=: 10879 ;; 10880 10881 solaris*) 10882 no_undefined_flag=' -z defs' 10883 if test yes = "$GCC"; then 10884 wlarc='$wl' 10885 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10887 $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' 10888 else 10889 case `$CC -V 2>&1` in 10890 *"Compilers 5.0"*) 10891 wlarc='' 10892 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10894 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10895 ;; 10896 *) 10897 wlarc='$wl' 10898 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10900 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10901 ;; 10902 esac 10903 fi 10904 hardcode_libdir_flag_spec='-R$libdir' 10905 hardcode_shlibpath_var=no 10906 case $host_os in 10907 solaris2.[0-5] | solaris2.[0-5].*) ;; 10908 *) 10909 # The compiler driver will combine and reorder linker options, 10910 # but understands '-z linker_flag'. GCC discards it without '$wl', 10911 # but is careful enough not to reorder. 10912 # Supported since Solaris 2.6 (maybe 2.5.1?) 10913 if test yes = "$GCC"; then 10914 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10915 else 10916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10917 fi 10918 ;; 10919 esac 10920 link_all_deplibs=yes 10921 ;; 10922 10923 sunos4*) 10924 if test sequent = "$host_vendor"; then 10925 # Use $CC to link under sequent, because it throws in some extra .o 10926 # files that make .init and .fini sections work. 10927 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10928 else 10929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10930 fi 10931 hardcode_libdir_flag_spec='-L$libdir' 10932 hardcode_direct=yes 10933 hardcode_minus_L=yes 10934 hardcode_shlibpath_var=no 10935 ;; 10936 10937 sysv4) 10938 case $host_vendor in 10939 sni) 10940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10941 hardcode_direct=yes # is this really true??? 10942 ;; 10943 siemens) 10944 ## LD is ld it makes a PLAMLIB 10945 ## CC just makes a GrossModule. 10946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10947 reload_cmds='$CC -r -o $output$reload_objs' 10948 hardcode_direct=no 10949 ;; 10950 motorola) 10951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10953 ;; 10954 esac 10955 runpath_var='LD_RUN_PATH' 10956 hardcode_shlibpath_var=no 10957 ;; 10958 10959 sysv4.3*) 10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10961 hardcode_shlibpath_var=no 10962 export_dynamic_flag_spec='-Bexport' 10963 ;; 10964 10965 sysv4*MP*) 10966 if test -d /usr/nec; then 10967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10968 hardcode_shlibpath_var=no 10969 runpath_var=LD_RUN_PATH 10970 hardcode_runpath_var=yes 10971 ld_shlibs=yes 10972 fi 10973 ;; 10974 10975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10976 no_undefined_flag='$wl-z,text' 10977 archive_cmds_need_lc=no 10978 hardcode_shlibpath_var=no 10979 runpath_var='LD_RUN_PATH' 10980 10981 if test yes = "$GCC"; then 10982 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10983 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10984 else 10985 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10986 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10987 fi 10988 ;; 10989 10990 sysv5* | sco3.2v5* | sco5v6*) 10991 # Note: We CANNOT use -z defs as we might desire, because we do not 10992 # link with -lc, and that would cause any symbols used from libc to 10993 # always be unresolved, which means just about no library would 10994 # ever link correctly. If we're not using GNU ld we use -z text 10995 # though, which does catch some bad symbols but isn't as heavy-handed 10996 # as -z defs. 10997 no_undefined_flag='$wl-z,text' 10998 allow_undefined_flag='$wl-z,nodefs' 10999 archive_cmds_need_lc=no 11000 hardcode_shlibpath_var=no 11001 hardcode_libdir_flag_spec='$wl-R,$libdir' 11002 hardcode_libdir_separator=':' 11003 link_all_deplibs=yes 11004 export_dynamic_flag_spec='$wl-Bexport' 11005 runpath_var='LD_RUN_PATH' 11006 11007 if test yes = "$GCC"; then 11008 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11009 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11010 else 11011 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11012 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11013 fi 11014 ;; 11015 11016 uts4*) 11017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11018 hardcode_libdir_flag_spec='-L$libdir' 11019 hardcode_shlibpath_var=no 11020 ;; 11021 11022 *) 11023 ld_shlibs=no 11024 ;; 11025 esac 11026 11027 if test sni = "$host_vendor"; then 11028 case $host in 11029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11030 export_dynamic_flag_spec='$wl-Blargedynsym' 11031 ;; 11032 esac 11033 fi 11034 fi 11035 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11037$as_echo "$ld_shlibs" >&6; } 11038test no = "$ld_shlibs" && can_build_shared=no 11039 11040with_gnu_ld=$with_gnu_ld 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056# 11057# Do we need to explicitly link libc? 11058# 11059case "x$archive_cmds_need_lc" in 11060x|xyes) 11061 # Assume -lc should be added 11062 archive_cmds_need_lc=yes 11063 11064 if test yes,yes = "$GCC,$enable_shared"; then 11065 case $archive_cmds in 11066 *'~'*) 11067 # FIXME: we may have to deal with multi-command sequences. 11068 ;; 11069 '$CC '*) 11070 # Test whether the compiler implicitly links with -lc since on some 11071 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11072 # to ld, don't add -lc before -lgcc. 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11074$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11075if ${lt_cv_archive_cmds_need_lc+:} false; then : 11076 $as_echo_n "(cached) " >&6 11077else 11078 $RM conftest* 11079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11080 11081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11082 (eval $ac_compile) 2>&5 11083 ac_status=$? 11084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11085 test $ac_status = 0; } 2>conftest.err; then 11086 soname=conftest 11087 lib=conftest 11088 libobjs=conftest.$ac_objext 11089 deplibs= 11090 wl=$lt_prog_compiler_wl 11091 pic_flag=$lt_prog_compiler_pic 11092 compiler_flags=-v 11093 linker_flags=-v 11094 verstring= 11095 output_objdir=. 11096 libname=conftest 11097 lt_save_allow_undefined_flag=$allow_undefined_flag 11098 allow_undefined_flag= 11099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11101 ac_status=$? 11102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11103 test $ac_status = 0; } 11104 then 11105 lt_cv_archive_cmds_need_lc=no 11106 else 11107 lt_cv_archive_cmds_need_lc=yes 11108 fi 11109 allow_undefined_flag=$lt_save_allow_undefined_flag 11110 else 11111 cat conftest.err 1>&5 11112 fi 11113 $RM conftest* 11114 11115fi 11116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11117$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11119 ;; 11120 esac 11121 fi 11122 ;; 11123esac 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11277$as_echo_n "checking dynamic linker characteristics... " >&6; } 11278 11279if test yes = "$GCC"; then 11280 case $host_os in 11281 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11282 *) lt_awk_arg='/^libraries:/' ;; 11283 esac 11284 case $host_os in 11285 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11286 *) lt_sed_strip_eq='s|=/|/|g' ;; 11287 esac 11288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11289 case $lt_search_path_spec in 11290 *\;*) 11291 # if the path contains ";" then we assume it to be the separator 11292 # otherwise default to the standard path separator (i.e. ":") - it is 11293 # assumed that no part of a normal pathname contains ";" but that should 11294 # okay in the real world where ";" in dirpaths is itself problematic. 11295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11296 ;; 11297 *) 11298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11299 ;; 11300 esac 11301 # Ok, now we have the path, separated by spaces, we can step through it 11302 # and add multilib dir if necessary... 11303 lt_tmp_lt_search_path_spec= 11304 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11305 # ...but if some path component already ends with the multilib dir we assume 11306 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11307 case "$lt_multi_os_dir; $lt_search_path_spec " in 11308 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11309 lt_multi_os_dir= 11310 ;; 11311 esac 11312 for lt_sys_path in $lt_search_path_spec; do 11313 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11315 elif test -n "$lt_multi_os_dir"; then 11316 test -d "$lt_sys_path" && \ 11317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11318 fi 11319 done 11320 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11321BEGIN {RS = " "; FS = "/|\n";} { 11322 lt_foo = ""; 11323 lt_count = 0; 11324 for (lt_i = NF; lt_i > 0; lt_i--) { 11325 if ($lt_i != "" && $lt_i != ".") { 11326 if ($lt_i == "..") { 11327 lt_count++; 11328 } else { 11329 if (lt_count == 0) { 11330 lt_foo = "/" $lt_i lt_foo; 11331 } else { 11332 lt_count--; 11333 } 11334 } 11335 } 11336 } 11337 if (lt_foo != "") { lt_freq[lt_foo]++; } 11338 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11339}'` 11340 # AWK program above erroneously prepends '/' to C:/dos/paths 11341 # for these hosts. 11342 case $host_os in 11343 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11344 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11345 esac 11346 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11347else 11348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11349fi 11350library_names_spec= 11351libname_spec='lib$name' 11352soname_spec= 11353shrext_cmds=.so 11354postinstall_cmds= 11355postuninstall_cmds= 11356finish_cmds= 11357finish_eval= 11358shlibpath_var= 11359shlibpath_overrides_runpath=unknown 11360version_type=none 11361dynamic_linker="$host_os ld.so" 11362sys_lib_dlsearch_path_spec="/lib /usr/lib" 11363need_lib_prefix=unknown 11364hardcode_into_libs=no 11365 11366# when you set need_version to no, make sure it does not cause -set_version 11367# flags to be left without arguments 11368need_version=unknown 11369 11370 11371 11372case $host_os in 11373aix3*) 11374 version_type=linux # correct to gnu/linux during the next big refactor 11375 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11376 shlibpath_var=LIBPATH 11377 11378 # AIX 3 has no versioning support, so we append a major version to the name. 11379 soname_spec='$libname$release$shared_ext$major' 11380 ;; 11381 11382aix[4-9]*) 11383 version_type=linux # correct to gnu/linux during the next big refactor 11384 need_lib_prefix=no 11385 need_version=no 11386 hardcode_into_libs=yes 11387 if test ia64 = "$host_cpu"; then 11388 # AIX 5 supports IA64 11389 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11390 shlibpath_var=LD_LIBRARY_PATH 11391 else 11392 # With GCC up to 2.95.x, collect2 would create an import file 11393 # for dependence libraries. The import file would start with 11394 # the line '#! .'. This would cause the generated library to 11395 # depend on '.', always an invalid library. This was fixed in 11396 # development snapshots of GCC prior to 3.0. 11397 case $host_os in 11398 aix4 | aix4.[01] | aix4.[01].*) 11399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11400 echo ' yes ' 11401 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11402 : 11403 else 11404 can_build_shared=no 11405 fi 11406 ;; 11407 esac 11408 # Using Import Files as archive members, it is possible to support 11409 # filename-based versioning of shared library archives on AIX. While 11410 # this would work for both with and without runtime linking, it will 11411 # prevent static linking of such archives. So we do filename-based 11412 # shared library versioning with .so extension only, which is used 11413 # when both runtime linking and shared linking is enabled. 11414 # Unfortunately, runtime linking may impact performance, so we do 11415 # not want this to be the default eventually. Also, we use the 11416 # versioned .so libs for executables only if there is the -brtl 11417 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11418 # To allow for filename-based versioning support, we need to create 11419 # libNAME.so.V as an archive file, containing: 11420 # *) an Import File, referring to the versioned filename of the 11421 # archive as well as the shared archive member, telling the 11422 # bitwidth (32 or 64) of that shared object, and providing the 11423 # list of exported symbols of that shared object, eventually 11424 # decorated with the 'weak' keyword 11425 # *) the shared object with the F_LOADONLY flag set, to really avoid 11426 # it being seen by the linker. 11427 # At run time we better use the real file rather than another symlink, 11428 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11429 11430 case $with_aix_soname,$aix_use_runtimelinking in 11431 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11432 # soname into executable. Probably we can add versioning support to 11433 # collect2, so additional links can be useful in future. 11434 aix,yes) # traditional libtool 11435 dynamic_linker='AIX unversionable lib.so' 11436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11437 # instead of lib<name>.a to let people know that these are not 11438 # typical AIX shared libraries. 11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11440 ;; 11441 aix,no) # traditional AIX only 11442 dynamic_linker='AIX lib.a(lib.so.V)' 11443 # We preserve .a as extension for shared libraries through AIX4.2 11444 # and later when we are not doing run time linking. 11445 library_names_spec='$libname$release.a $libname.a' 11446 soname_spec='$libname$release$shared_ext$major' 11447 ;; 11448 svr4,*) # full svr4 only 11449 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11450 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11451 # We do not specify a path in Import Files, so LIBPATH fires. 11452 shlibpath_overrides_runpath=yes 11453 ;; 11454 *,yes) # both, prefer svr4 11455 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11456 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11457 # unpreferred sharedlib libNAME.a needs extra handling 11458 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"' 11459 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"' 11460 # We do not specify a path in Import Files, so LIBPATH fires. 11461 shlibpath_overrides_runpath=yes 11462 ;; 11463 *,no) # both, prefer aix 11464 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11465 library_names_spec='$libname$release.a $libname.a' 11466 soname_spec='$libname$release$shared_ext$major' 11467 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11468 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)' 11469 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"' 11470 ;; 11471 esac 11472 shlibpath_var=LIBPATH 11473 fi 11474 ;; 11475 11476amigaos*) 11477 case $host_cpu in 11478 powerpc) 11479 # Since July 2007 AmigaOS4 officially supports .so libraries. 11480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11482 ;; 11483 m68k) 11484 library_names_spec='$libname.ixlibrary $libname.a' 11485 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11486 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' 11487 ;; 11488 esac 11489 ;; 11490 11491beos*) 11492 library_names_spec='$libname$shared_ext' 11493 dynamic_linker="$host_os ld.so" 11494 shlibpath_var=LIBRARY_PATH 11495 ;; 11496 11497bsdi[45]*) 11498 version_type=linux # correct to gnu/linux during the next big refactor 11499 need_version=no 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11501 soname_spec='$libname$release$shared_ext$major' 11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11503 shlibpath_var=LD_LIBRARY_PATH 11504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11506 # the default ld.so.conf also contains /usr/contrib/lib and 11507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11508 # libtool to hard-code these into programs 11509 ;; 11510 11511cygwin* | mingw* | pw32* | cegcc*) 11512 version_type=windows 11513 shrext_cmds=.dll 11514 need_version=no 11515 need_lib_prefix=no 11516 11517 case $GCC,$cc_basename in 11518 yes,*) 11519 # gcc 11520 library_names_spec='$libname.dll.a' 11521 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11522 postinstall_cmds='base_file=`basename \$file`~ 11523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11524 dldir=$destdir/`dirname \$dlpath`~ 11525 test -d \$dldir || mkdir -p \$dldir~ 11526 $install_prog $dir/$dlname \$dldir/$dlname~ 11527 chmod a+x \$dldir/$dlname~ 11528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11530 fi' 11531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11532 dlpath=$dir/\$dldll~ 11533 $RM \$dlpath' 11534 shlibpath_overrides_runpath=yes 11535 11536 case $host_os in 11537 cygwin*) 11538 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11539 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11540 11541 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11542 ;; 11543 mingw* | cegcc*) 11544 # MinGW DLLs use traditional 'lib' prefix 11545 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11546 ;; 11547 pw32*) 11548 # pw32 DLLs use 'pw' prefix rather than 'lib' 11549 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11550 ;; 11551 esac 11552 dynamic_linker='Win32 ld.exe' 11553 ;; 11554 11555 *,cl*) 11556 # Native MSVC 11557 libname_spec='$name' 11558 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11559 library_names_spec='$libname.dll.lib' 11560 11561 case $build_os in 11562 mingw*) 11563 sys_lib_search_path_spec= 11564 lt_save_ifs=$IFS 11565 IFS=';' 11566 for lt_path in $LIB 11567 do 11568 IFS=$lt_save_ifs 11569 # Let DOS variable expansion print the short 8.3 style file name. 11570 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11571 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11572 done 11573 IFS=$lt_save_ifs 11574 # Convert to MSYS style. 11575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11576 ;; 11577 cygwin*) 11578 # Convert to unix form, then to dos form, then back to unix form 11579 # but this time dos style (no spaces!) so that the unix form looks 11580 # like /cygdrive/c/PROGRA~1:/cygdr... 11581 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11582 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11583 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11584 ;; 11585 *) 11586 sys_lib_search_path_spec=$LIB 11587 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11588 # It is most probably a Windows format PATH. 11589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11590 else 11591 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11592 fi 11593 # FIXME: find the short name or the path components, as spaces are 11594 # common. (e.g. "Program Files" -> "PROGRA~1") 11595 ;; 11596 esac 11597 11598 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11599 postinstall_cmds='base_file=`basename \$file`~ 11600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11601 dldir=$destdir/`dirname \$dlpath`~ 11602 test -d \$dldir || mkdir -p \$dldir~ 11603 $install_prog $dir/$dlname \$dldir/$dlname' 11604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11605 dlpath=$dir/\$dldll~ 11606 $RM \$dlpath' 11607 shlibpath_overrides_runpath=yes 11608 dynamic_linker='Win32 link.exe' 11609 ;; 11610 11611 *) 11612 # Assume MSVC wrapper 11613 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11614 dynamic_linker='Win32 ld.exe' 11615 ;; 11616 esac 11617 # FIXME: first we should search . and the directory the executable is in 11618 shlibpath_var=PATH 11619 ;; 11620 11621darwin* | rhapsody*) 11622 dynamic_linker="$host_os dyld" 11623 version_type=darwin 11624 need_lib_prefix=no 11625 need_version=no 11626 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11627 soname_spec='$libname$release$major$shared_ext' 11628 shlibpath_overrides_runpath=yes 11629 shlibpath_var=DYLD_LIBRARY_PATH 11630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11631 11632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11634 ;; 11635 11636dgux*) 11637 version_type=linux # correct to gnu/linux during the next big refactor 11638 need_lib_prefix=no 11639 need_version=no 11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11641 soname_spec='$libname$release$shared_ext$major' 11642 shlibpath_var=LD_LIBRARY_PATH 11643 ;; 11644 11645freebsd* | dragonfly*) 11646 # DragonFly does not have aout. When/if they implement a new 11647 # versioning mechanism, adjust this. 11648 if test -x /usr/bin/objformat; then 11649 objformat=`/usr/bin/objformat` 11650 else 11651 case $host_os in 11652 freebsd[23].*) objformat=aout ;; 11653 *) objformat=elf ;; 11654 esac 11655 fi 11656 version_type=freebsd-$objformat 11657 case $version_type in 11658 freebsd-elf*) 11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11660 soname_spec='$libname$release$shared_ext$major' 11661 need_version=no 11662 need_lib_prefix=no 11663 ;; 11664 freebsd-*) 11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11666 need_version=yes 11667 ;; 11668 esac 11669 shlibpath_var=LD_LIBRARY_PATH 11670 case $host_os in 11671 freebsd2.*) 11672 shlibpath_overrides_runpath=yes 11673 ;; 11674 freebsd3.[01]* | freebsdelf3.[01]*) 11675 shlibpath_overrides_runpath=yes 11676 hardcode_into_libs=yes 11677 ;; 11678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11680 shlibpath_overrides_runpath=no 11681 hardcode_into_libs=yes 11682 ;; 11683 *) # from 4.6 on, and DragonFly 11684 shlibpath_overrides_runpath=yes 11685 hardcode_into_libs=yes 11686 ;; 11687 esac 11688 ;; 11689 11690haiku*) 11691 version_type=linux # correct to gnu/linux during the next big refactor 11692 need_lib_prefix=no 11693 need_version=no 11694 dynamic_linker="$host_os runtime_loader" 11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11696 soname_spec='$libname$release$shared_ext$major' 11697 shlibpath_var=LIBRARY_PATH 11698 shlibpath_overrides_runpath=no 11699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11700 hardcode_into_libs=yes 11701 ;; 11702 11703hpux9* | hpux10* | hpux11*) 11704 # Give a soname corresponding to the major version so that dld.sl refuses to 11705 # link against other versions. 11706 version_type=sunos 11707 need_lib_prefix=no 11708 need_version=no 11709 case $host_cpu in 11710 ia64*) 11711 shrext_cmds='.so' 11712 hardcode_into_libs=yes 11713 dynamic_linker="$host_os dld.so" 11714 shlibpath_var=LD_LIBRARY_PATH 11715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11717 soname_spec='$libname$release$shared_ext$major' 11718 if test 32 = "$HPUX_IA64_MODE"; then 11719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11720 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11721 else 11722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11723 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11724 fi 11725 ;; 11726 hppa*64*) 11727 shrext_cmds='.sl' 11728 hardcode_into_libs=yes 11729 dynamic_linker="$host_os dld.sl" 11730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11733 soname_spec='$libname$release$shared_ext$major' 11734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11736 ;; 11737 *) 11738 shrext_cmds='.sl' 11739 dynamic_linker="$host_os dld.sl" 11740 shlibpath_var=SHLIB_PATH 11741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11743 soname_spec='$libname$release$shared_ext$major' 11744 ;; 11745 esac 11746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11747 postinstall_cmds='chmod 555 $lib' 11748 # or fails outright, so override atomically: 11749 install_override_mode=555 11750 ;; 11751 11752interix[3-9]*) 11753 version_type=linux # correct to gnu/linux during the next big refactor 11754 need_lib_prefix=no 11755 need_version=no 11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11757 soname_spec='$libname$release$shared_ext$major' 11758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 shlibpath_overrides_runpath=no 11761 hardcode_into_libs=yes 11762 ;; 11763 11764irix5* | irix6* | nonstopux*) 11765 case $host_os in 11766 nonstopux*) version_type=nonstopux ;; 11767 *) 11768 if test yes = "$lt_cv_prog_gnu_ld"; then 11769 version_type=linux # correct to gnu/linux during the next big refactor 11770 else 11771 version_type=irix 11772 fi ;; 11773 esac 11774 need_lib_prefix=no 11775 need_version=no 11776 soname_spec='$libname$release$shared_ext$major' 11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11778 case $host_os in 11779 irix5* | nonstopux*) 11780 libsuff= shlibsuff= 11781 ;; 11782 *) 11783 case $LD in # libtool.m4 will add one of these switches to LD 11784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11785 libsuff= shlibsuff= libmagic=32-bit;; 11786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11787 libsuff=32 shlibsuff=N32 libmagic=N32;; 11788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11789 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11790 *) libsuff= shlibsuff= libmagic=never-match;; 11791 esac 11792 ;; 11793 esac 11794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11795 shlibpath_overrides_runpath=no 11796 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11797 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11798 hardcode_into_libs=yes 11799 ;; 11800 11801# No shared lib support for Linux oldld, aout, or coff. 11802linux*oldld* | linux*aout* | linux*coff*) 11803 dynamic_linker=no 11804 ;; 11805 11806linux*android*) 11807 version_type=none # Android doesn't support versioned libraries. 11808 need_lib_prefix=no 11809 need_version=no 11810 library_names_spec='$libname$release$shared_ext' 11811 soname_spec='$libname$release$shared_ext' 11812 finish_cmds= 11813 shlibpath_var=LD_LIBRARY_PATH 11814 shlibpath_overrides_runpath=yes 11815 11816 # This implies no fast_install, which is unacceptable. 11817 # Some rework will be needed to allow for fast_install 11818 # before this can be enabled. 11819 hardcode_into_libs=yes 11820 11821 dynamic_linker='Android linker' 11822 # Don't embed -rpath directories since the linker doesn't support them. 11823 hardcode_libdir_flag_spec='-L$libdir' 11824 ;; 11825 11826# This must be glibc/ELF. 11827linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11828 version_type=linux # correct to gnu/linux during the next big refactor 11829 need_lib_prefix=no 11830 need_version=no 11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11832 soname_spec='$libname$release$shared_ext$major' 11833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11834 shlibpath_var=LD_LIBRARY_PATH 11835 shlibpath_overrides_runpath=no 11836 11837 # Some binutils ld are patched to set DT_RUNPATH 11838 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11839 $as_echo_n "(cached) " >&6 11840else 11841 lt_cv_shlibpath_overrides_runpath=no 11842 save_LDFLAGS=$LDFLAGS 11843 save_libdir=$libdir 11844 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11845 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11847/* end confdefs.h. */ 11848 11849int 11850main () 11851{ 11852 11853 ; 11854 return 0; 11855} 11856_ACEOF 11857if ac_fn_c_try_link "$LINENO"; then : 11858 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11859 lt_cv_shlibpath_overrides_runpath=yes 11860fi 11861fi 11862rm -f core conftest.err conftest.$ac_objext \ 11863 conftest$ac_exeext conftest.$ac_ext 11864 LDFLAGS=$save_LDFLAGS 11865 libdir=$save_libdir 11866 11867fi 11868 11869 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11870 11871 # This implies no fast_install, which is unacceptable. 11872 # Some rework will be needed to allow for fast_install 11873 # before this can be enabled. 11874 hardcode_into_libs=yes 11875 11876 # Ideally, we could use ldconfig to report *all* directores which are 11877 # searched for libraries, however this is still not possible. Aside from not 11878 # being certain /sbin/ldconfig is available, command 11879 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11880 # even though it is searched at run-time. Try to do the best guess by 11881 # appending ld.so.conf contents (and includes) to the search path. 11882 if test -f /etc/ld.so.conf; then 11883 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' ' '` 11884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11885 fi 11886 11887 # We used to test for /lib/ld.so.1 and disable shared libraries on 11888 # powerpc, because MkLinux only supported shared libraries with the 11889 # GNU dynamic linker. Since this was broken with cross compilers, 11890 # most powerpc-linux boxes support dynamic linking these days and 11891 # people can always --disable-shared, the test was removed, and we 11892 # assume the GNU/Linux dynamic linker is in use. 11893 dynamic_linker='GNU/Linux ld.so' 11894 ;; 11895 11896netbsdelf*-gnu) 11897 version_type=linux 11898 need_lib_prefix=no 11899 need_version=no 11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11901 soname_spec='${libname}${release}${shared_ext}$major' 11902 shlibpath_var=LD_LIBRARY_PATH 11903 shlibpath_overrides_runpath=no 11904 hardcode_into_libs=yes 11905 dynamic_linker='NetBSD ld.elf_so' 11906 ;; 11907 11908netbsd*) 11909 version_type=sunos 11910 need_lib_prefix=no 11911 need_version=no 11912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11915 dynamic_linker='NetBSD (a.out) ld.so' 11916 else 11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11918 soname_spec='$libname$release$shared_ext$major' 11919 dynamic_linker='NetBSD ld.elf_so' 11920 fi 11921 shlibpath_var=LD_LIBRARY_PATH 11922 shlibpath_overrides_runpath=yes 11923 hardcode_into_libs=yes 11924 ;; 11925 11926newsos6) 11927 version_type=linux # correct to gnu/linux during the next big refactor 11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11929 shlibpath_var=LD_LIBRARY_PATH 11930 shlibpath_overrides_runpath=yes 11931 ;; 11932 11933*nto* | *qnx*) 11934 version_type=qnx 11935 need_lib_prefix=no 11936 need_version=no 11937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11938 soname_spec='$libname$release$shared_ext$major' 11939 shlibpath_var=LD_LIBRARY_PATH 11940 shlibpath_overrides_runpath=no 11941 hardcode_into_libs=yes 11942 dynamic_linker='ldqnx.so' 11943 ;; 11944 11945openbsd* | bitrig*) 11946 version_type=sunos 11947 sys_lib_dlsearch_path_spec=/usr/lib 11948 need_lib_prefix=no 11949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11950 need_version=no 11951 else 11952 need_version=yes 11953 fi 11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11956 shlibpath_var=LD_LIBRARY_PATH 11957 shlibpath_overrides_runpath=yes 11958 ;; 11959 11960os2*) 11961 libname_spec='$name' 11962 version_type=windows 11963 shrext_cmds=.dll 11964 need_version=no 11965 need_lib_prefix=no 11966 # OS/2 can only load a DLL with a base name of 8 characters or less. 11967 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11968 v=$($ECHO $release$versuffix | tr -d .-); 11969 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11970 $ECHO $n$v`$shared_ext' 11971 library_names_spec='${libname}_dll.$libext' 11972 dynamic_linker='OS/2 ld.exe' 11973 shlibpath_var=BEGINLIBPATH 11974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11976 postinstall_cmds='base_file=`basename \$file`~ 11977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11978 dldir=$destdir/`dirname \$dlpath`~ 11979 test -d \$dldir || mkdir -p \$dldir~ 11980 $install_prog $dir/$dlname \$dldir/$dlname~ 11981 chmod a+x \$dldir/$dlname~ 11982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11984 fi' 11985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11986 dlpath=$dir/\$dldll~ 11987 $RM \$dlpath' 11988 ;; 11989 11990osf3* | osf4* | osf5*) 11991 version_type=osf 11992 need_lib_prefix=no 11993 need_version=no 11994 soname_spec='$libname$release$shared_ext$major' 11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11996 shlibpath_var=LD_LIBRARY_PATH 11997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11999 ;; 12000 12001rdos*) 12002 dynamic_linker=no 12003 ;; 12004 12005solaris*) 12006 version_type=linux # correct to gnu/linux during the next big refactor 12007 need_lib_prefix=no 12008 need_version=no 12009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12010 soname_spec='$libname$release$shared_ext$major' 12011 shlibpath_var=LD_LIBRARY_PATH 12012 shlibpath_overrides_runpath=yes 12013 hardcode_into_libs=yes 12014 # ldd complains unless libraries are executable 12015 postinstall_cmds='chmod +x $lib' 12016 ;; 12017 12018sunos4*) 12019 version_type=sunos 12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12022 shlibpath_var=LD_LIBRARY_PATH 12023 shlibpath_overrides_runpath=yes 12024 if test yes = "$with_gnu_ld"; then 12025 need_lib_prefix=no 12026 fi 12027 need_version=yes 12028 ;; 12029 12030sysv4 | sysv4.3*) 12031 version_type=linux # correct to gnu/linux during the next big refactor 12032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12033 soname_spec='$libname$release$shared_ext$major' 12034 shlibpath_var=LD_LIBRARY_PATH 12035 case $host_vendor in 12036 sni) 12037 shlibpath_overrides_runpath=no 12038 need_lib_prefix=no 12039 runpath_var=LD_RUN_PATH 12040 ;; 12041 siemens) 12042 need_lib_prefix=no 12043 ;; 12044 motorola) 12045 need_lib_prefix=no 12046 need_version=no 12047 shlibpath_overrides_runpath=no 12048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12049 ;; 12050 esac 12051 ;; 12052 12053sysv4*MP*) 12054 if test -d /usr/nec; then 12055 version_type=linux # correct to gnu/linux during the next big refactor 12056 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12057 soname_spec='$libname$shared_ext.$major' 12058 shlibpath_var=LD_LIBRARY_PATH 12059 fi 12060 ;; 12061 12062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12063 version_type=sco 12064 need_lib_prefix=no 12065 need_version=no 12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12067 soname_spec='$libname$release$shared_ext$major' 12068 shlibpath_var=LD_LIBRARY_PATH 12069 shlibpath_overrides_runpath=yes 12070 hardcode_into_libs=yes 12071 if test yes = "$with_gnu_ld"; then 12072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12073 else 12074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12075 case $host_os in 12076 sco3.2v5*) 12077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12078 ;; 12079 esac 12080 fi 12081 sys_lib_dlsearch_path_spec='/usr/lib' 12082 ;; 12083 12084tpf*) 12085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12086 version_type=linux # correct to gnu/linux during the next big refactor 12087 need_lib_prefix=no 12088 need_version=no 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12090 shlibpath_var=LD_LIBRARY_PATH 12091 shlibpath_overrides_runpath=no 12092 hardcode_into_libs=yes 12093 ;; 12094 12095uts4*) 12096 version_type=linux # correct to gnu/linux during the next big refactor 12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12098 soname_spec='$libname$release$shared_ext$major' 12099 shlibpath_var=LD_LIBRARY_PATH 12100 ;; 12101 12102*) 12103 dynamic_linker=no 12104 ;; 12105esac 12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12107$as_echo "$dynamic_linker" >&6; } 12108test no = "$dynamic_linker" && can_build_shared=no 12109 12110variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12111if test yes = "$GCC"; then 12112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12113fi 12114 12115if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12116 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12117fi 12118 12119if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12120 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12121fi 12122 12123# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12124configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12125 12126# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12127func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12128 12129# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12130configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12229$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12230hardcode_action= 12231if test -n "$hardcode_libdir_flag_spec" || 12232 test -n "$runpath_var" || 12233 test yes = "$hardcode_automatic"; then 12234 12235 # We can hardcode non-existent directories. 12236 if test no != "$hardcode_direct" && 12237 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12238 # have to relink, otherwise we might link with an installed library 12239 # when we should be linking with a yet-to-be-installed one 12240 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12241 test no != "$hardcode_minus_L"; then 12242 # Linking always hardcodes the temporary library directory. 12243 hardcode_action=relink 12244 else 12245 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12246 hardcode_action=immediate 12247 fi 12248else 12249 # We cannot hardcode anything, or else we can only hardcode existing 12250 # directories. 12251 hardcode_action=unsupported 12252fi 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12254$as_echo "$hardcode_action" >&6; } 12255 12256if test relink = "$hardcode_action" || 12257 test yes = "$inherit_rpath"; then 12258 # Fast installation is not supported 12259 enable_fast_install=no 12260elif test yes = "$shlibpath_overrides_runpath" || 12261 test no = "$enable_shared"; then 12262 # Fast installation is not necessary 12263 enable_fast_install=needless 12264fi 12265 12266 12267 12268 12269 12270 12271 if test yes != "$enable_dlopen"; then 12272 enable_dlopen=unknown 12273 enable_dlopen_self=unknown 12274 enable_dlopen_self_static=unknown 12275else 12276 lt_cv_dlopen=no 12277 lt_cv_dlopen_libs= 12278 12279 case $host_os in 12280 beos*) 12281 lt_cv_dlopen=load_add_on 12282 lt_cv_dlopen_libs= 12283 lt_cv_dlopen_self=yes 12284 ;; 12285 12286 mingw* | pw32* | cegcc*) 12287 lt_cv_dlopen=LoadLibrary 12288 lt_cv_dlopen_libs= 12289 ;; 12290 12291 cygwin*) 12292 lt_cv_dlopen=dlopen 12293 lt_cv_dlopen_libs= 12294 ;; 12295 12296 darwin*) 12297 # if libdl is installed we need to link against it 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12299$as_echo_n "checking for dlopen in -ldl... " >&6; } 12300if ${ac_cv_lib_dl_dlopen+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 ac_check_lib_save_LIBS=$LIBS 12304LIBS="-ldl $LIBS" 12305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12306/* end confdefs.h. */ 12307 12308/* Override any GCC internal prototype to avoid an error. 12309 Use char because int might match the return type of a GCC 12310 builtin and then its argument prototype would still apply. */ 12311#ifdef __cplusplus 12312extern "C" 12313#endif 12314char dlopen (); 12315int 12316main () 12317{ 12318return dlopen (); 12319 ; 12320 return 0; 12321} 12322_ACEOF 12323if ac_fn_c_try_link "$LINENO"; then : 12324 ac_cv_lib_dl_dlopen=yes 12325else 12326 ac_cv_lib_dl_dlopen=no 12327fi 12328rm -f core conftest.err conftest.$ac_objext \ 12329 conftest$ac_exeext conftest.$ac_ext 12330LIBS=$ac_check_lib_save_LIBS 12331fi 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12333$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12334if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12335 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12336else 12337 12338 lt_cv_dlopen=dyld 12339 lt_cv_dlopen_libs= 12340 lt_cv_dlopen_self=yes 12341 12342fi 12343 12344 ;; 12345 12346 tpf*) 12347 # Don't try to run any link tests for TPF. We know it's impossible 12348 # because TPF is a cross-compiler, and we know how we open DSOs. 12349 lt_cv_dlopen=dlopen 12350 lt_cv_dlopen_libs= 12351 lt_cv_dlopen_self=no 12352 ;; 12353 12354 *) 12355 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12356if test "x$ac_cv_func_shl_load" = xyes; then : 12357 lt_cv_dlopen=shl_load 12358else 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12360$as_echo_n "checking for shl_load in -ldld... " >&6; } 12361if ${ac_cv_lib_dld_shl_load+:} false; then : 12362 $as_echo_n "(cached) " >&6 12363else 12364 ac_check_lib_save_LIBS=$LIBS 12365LIBS="-ldld $LIBS" 12366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12367/* end confdefs.h. */ 12368 12369/* Override any GCC internal prototype to avoid an error. 12370 Use char because int might match the return type of a GCC 12371 builtin and then its argument prototype would still apply. */ 12372#ifdef __cplusplus 12373extern "C" 12374#endif 12375char shl_load (); 12376int 12377main () 12378{ 12379return shl_load (); 12380 ; 12381 return 0; 12382} 12383_ACEOF 12384if ac_fn_c_try_link "$LINENO"; then : 12385 ac_cv_lib_dld_shl_load=yes 12386else 12387 ac_cv_lib_dld_shl_load=no 12388fi 12389rm -f core conftest.err conftest.$ac_objext \ 12390 conftest$ac_exeext conftest.$ac_ext 12391LIBS=$ac_check_lib_save_LIBS 12392fi 12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12394$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12395if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12396 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12397else 12398 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12399if test "x$ac_cv_func_dlopen" = xyes; then : 12400 lt_cv_dlopen=dlopen 12401else 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12403$as_echo_n "checking for dlopen in -ldl... " >&6; } 12404if ${ac_cv_lib_dl_dlopen+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 ac_check_lib_save_LIBS=$LIBS 12408LIBS="-ldl $LIBS" 12409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12410/* end confdefs.h. */ 12411 12412/* Override any GCC internal prototype to avoid an error. 12413 Use char because int might match the return type of a GCC 12414 builtin and then its argument prototype would still apply. */ 12415#ifdef __cplusplus 12416extern "C" 12417#endif 12418char dlopen (); 12419int 12420main () 12421{ 12422return dlopen (); 12423 ; 12424 return 0; 12425} 12426_ACEOF 12427if ac_fn_c_try_link "$LINENO"; then : 12428 ac_cv_lib_dl_dlopen=yes 12429else 12430 ac_cv_lib_dl_dlopen=no 12431fi 12432rm -f core conftest.err conftest.$ac_objext \ 12433 conftest$ac_exeext conftest.$ac_ext 12434LIBS=$ac_check_lib_save_LIBS 12435fi 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12437$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12438if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12439 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12440else 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12442$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12443if ${ac_cv_lib_svld_dlopen+:} false; then : 12444 $as_echo_n "(cached) " >&6 12445else 12446 ac_check_lib_save_LIBS=$LIBS 12447LIBS="-lsvld $LIBS" 12448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12449/* end confdefs.h. */ 12450 12451/* Override any GCC internal prototype to avoid an error. 12452 Use char because int might match the return type of a GCC 12453 builtin and then its argument prototype would still apply. */ 12454#ifdef __cplusplus 12455extern "C" 12456#endif 12457char dlopen (); 12458int 12459main () 12460{ 12461return dlopen (); 12462 ; 12463 return 0; 12464} 12465_ACEOF 12466if ac_fn_c_try_link "$LINENO"; then : 12467 ac_cv_lib_svld_dlopen=yes 12468else 12469 ac_cv_lib_svld_dlopen=no 12470fi 12471rm -f core conftest.err conftest.$ac_objext \ 12472 conftest$ac_exeext conftest.$ac_ext 12473LIBS=$ac_check_lib_save_LIBS 12474fi 12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12476$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12477if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12479else 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12481$as_echo_n "checking for dld_link in -ldld... " >&6; } 12482if ${ac_cv_lib_dld_dld_link+:} false; then : 12483 $as_echo_n "(cached) " >&6 12484else 12485 ac_check_lib_save_LIBS=$LIBS 12486LIBS="-ldld $LIBS" 12487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489 12490/* Override any GCC internal prototype to avoid an error. 12491 Use char because int might match the return type of a GCC 12492 builtin and then its argument prototype would still apply. */ 12493#ifdef __cplusplus 12494extern "C" 12495#endif 12496char dld_link (); 12497int 12498main () 12499{ 12500return dld_link (); 12501 ; 12502 return 0; 12503} 12504_ACEOF 12505if ac_fn_c_try_link "$LINENO"; then : 12506 ac_cv_lib_dld_dld_link=yes 12507else 12508 ac_cv_lib_dld_dld_link=no 12509fi 12510rm -f core conftest.err conftest.$ac_objext \ 12511 conftest$ac_exeext conftest.$ac_ext 12512LIBS=$ac_check_lib_save_LIBS 12513fi 12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12515$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12516if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12517 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12518fi 12519 12520 12521fi 12522 12523 12524fi 12525 12526 12527fi 12528 12529 12530fi 12531 12532 12533fi 12534 12535 ;; 12536 esac 12537 12538 if test no = "$lt_cv_dlopen"; then 12539 enable_dlopen=no 12540 else 12541 enable_dlopen=yes 12542 fi 12543 12544 case $lt_cv_dlopen in 12545 dlopen) 12546 save_CPPFLAGS=$CPPFLAGS 12547 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12548 12549 save_LDFLAGS=$LDFLAGS 12550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12551 12552 save_LIBS=$LIBS 12553 LIBS="$lt_cv_dlopen_libs $LIBS" 12554 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12556$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12557if ${lt_cv_dlopen_self+:} false; then : 12558 $as_echo_n "(cached) " >&6 12559else 12560 if test yes = "$cross_compiling"; then : 12561 lt_cv_dlopen_self=cross 12562else 12563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12564 lt_status=$lt_dlunknown 12565 cat > conftest.$ac_ext <<_LT_EOF 12566#line $LINENO "configure" 12567#include "confdefs.h" 12568 12569#if HAVE_DLFCN_H 12570#include <dlfcn.h> 12571#endif 12572 12573#include <stdio.h> 12574 12575#ifdef RTLD_GLOBAL 12576# define LT_DLGLOBAL RTLD_GLOBAL 12577#else 12578# ifdef DL_GLOBAL 12579# define LT_DLGLOBAL DL_GLOBAL 12580# else 12581# define LT_DLGLOBAL 0 12582# endif 12583#endif 12584 12585/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12586 find out it does not work in some platform. */ 12587#ifndef LT_DLLAZY_OR_NOW 12588# ifdef RTLD_LAZY 12589# define LT_DLLAZY_OR_NOW RTLD_LAZY 12590# else 12591# ifdef DL_LAZY 12592# define LT_DLLAZY_OR_NOW DL_LAZY 12593# else 12594# ifdef RTLD_NOW 12595# define LT_DLLAZY_OR_NOW RTLD_NOW 12596# else 12597# ifdef DL_NOW 12598# define LT_DLLAZY_OR_NOW DL_NOW 12599# else 12600# define LT_DLLAZY_OR_NOW 0 12601# endif 12602# endif 12603# endif 12604# endif 12605#endif 12606 12607/* When -fvisibility=hidden is used, assume the code has been annotated 12608 correspondingly for the symbols needed. */ 12609#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12610int fnord () __attribute__((visibility("default"))); 12611#endif 12612 12613int fnord () { return 42; } 12614int main () 12615{ 12616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12617 int status = $lt_dlunknown; 12618 12619 if (self) 12620 { 12621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12622 else 12623 { 12624 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12625 else puts (dlerror ()); 12626 } 12627 /* dlclose (self); */ 12628 } 12629 else 12630 puts (dlerror ()); 12631 12632 return status; 12633} 12634_LT_EOF 12635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12636 (eval $ac_link) 2>&5 12637 ac_status=$? 12638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12639 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12640 (./conftest; exit; ) >&5 2>/dev/null 12641 lt_status=$? 12642 case x$lt_status in 12643 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12644 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12645 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12646 esac 12647 else : 12648 # compilation failed 12649 lt_cv_dlopen_self=no 12650 fi 12651fi 12652rm -fr conftest* 12653 12654 12655fi 12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12657$as_echo "$lt_cv_dlopen_self" >&6; } 12658 12659 if test yes = "$lt_cv_dlopen_self"; then 12660 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12662$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12663if ${lt_cv_dlopen_self_static+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 if test yes = "$cross_compiling"; then : 12667 lt_cv_dlopen_self_static=cross 12668else 12669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12670 lt_status=$lt_dlunknown 12671 cat > conftest.$ac_ext <<_LT_EOF 12672#line $LINENO "configure" 12673#include "confdefs.h" 12674 12675#if HAVE_DLFCN_H 12676#include <dlfcn.h> 12677#endif 12678 12679#include <stdio.h> 12680 12681#ifdef RTLD_GLOBAL 12682# define LT_DLGLOBAL RTLD_GLOBAL 12683#else 12684# ifdef DL_GLOBAL 12685# define LT_DLGLOBAL DL_GLOBAL 12686# else 12687# define LT_DLGLOBAL 0 12688# endif 12689#endif 12690 12691/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12692 find out it does not work in some platform. */ 12693#ifndef LT_DLLAZY_OR_NOW 12694# ifdef RTLD_LAZY 12695# define LT_DLLAZY_OR_NOW RTLD_LAZY 12696# else 12697# ifdef DL_LAZY 12698# define LT_DLLAZY_OR_NOW DL_LAZY 12699# else 12700# ifdef RTLD_NOW 12701# define LT_DLLAZY_OR_NOW RTLD_NOW 12702# else 12703# ifdef DL_NOW 12704# define LT_DLLAZY_OR_NOW DL_NOW 12705# else 12706# define LT_DLLAZY_OR_NOW 0 12707# endif 12708# endif 12709# endif 12710# endif 12711#endif 12712 12713/* When -fvisibility=hidden is used, assume the code has been annotated 12714 correspondingly for the symbols needed. */ 12715#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12716int fnord () __attribute__((visibility("default"))); 12717#endif 12718 12719int fnord () { return 42; } 12720int main () 12721{ 12722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12723 int status = $lt_dlunknown; 12724 12725 if (self) 12726 { 12727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12728 else 12729 { 12730 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12731 else puts (dlerror ()); 12732 } 12733 /* dlclose (self); */ 12734 } 12735 else 12736 puts (dlerror ()); 12737 12738 return status; 12739} 12740_LT_EOF 12741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12742 (eval $ac_link) 2>&5 12743 ac_status=$? 12744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12745 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12746 (./conftest; exit; ) >&5 2>/dev/null 12747 lt_status=$? 12748 case x$lt_status in 12749 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12750 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12751 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12752 esac 12753 else : 12754 # compilation failed 12755 lt_cv_dlopen_self_static=no 12756 fi 12757fi 12758rm -fr conftest* 12759 12760 12761fi 12762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12763$as_echo "$lt_cv_dlopen_self_static" >&6; } 12764 fi 12765 12766 CPPFLAGS=$save_CPPFLAGS 12767 LDFLAGS=$save_LDFLAGS 12768 LIBS=$save_LIBS 12769 ;; 12770 esac 12771 12772 case $lt_cv_dlopen_self in 12773 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12774 *) enable_dlopen_self=unknown ;; 12775 esac 12776 12777 case $lt_cv_dlopen_self_static in 12778 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12779 *) enable_dlopen_self_static=unknown ;; 12780 esac 12781fi 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799striplib= 12800old_striplib= 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12802$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12803if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12804 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12805 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12807$as_echo "yes" >&6; } 12808else 12809# FIXME - insert some real tests, host_os isn't really good enough 12810 case $host_os in 12811 darwin*) 12812 if test -n "$STRIP"; then 12813 striplib="$STRIP -x" 12814 old_striplib="$STRIP -S" 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12816$as_echo "yes" >&6; } 12817 else 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12819$as_echo "no" >&6; } 12820 fi 12821 ;; 12822 *) 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12824$as_echo "no" >&6; } 12825 ;; 12826 esac 12827fi 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 # Report what library types will actually be built 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12842$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12844$as_echo "$can_build_shared" >&6; } 12845 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12847$as_echo_n "checking whether to build shared libraries... " >&6; } 12848 test no = "$can_build_shared" && enable_shared=no 12849 12850 # On AIX, shared libraries and static libraries use the same namespace, and 12851 # are all built from PIC. 12852 case $host_os in 12853 aix3*) 12854 test yes = "$enable_shared" && enable_static=no 12855 if test -n "$RANLIB"; then 12856 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12857 postinstall_cmds='$RANLIB $lib' 12858 fi 12859 ;; 12860 12861 aix[4-9]*) 12862 if test ia64 != "$host_cpu"; then 12863 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12864 yes,aix,yes) ;; # shared object as lib.so file only 12865 yes,svr4,*) ;; # shared object as lib.so archive member only 12866 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12867 esac 12868 fi 12869 ;; 12870 esac 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12872$as_echo "$enable_shared" >&6; } 12873 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12875$as_echo_n "checking whether to build static libraries... " >&6; } 12876 # Make sure either enable_shared or enable_static is yes. 12877 test yes = "$enable_shared" || enable_static=yes 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12879$as_echo "$enable_static" >&6; } 12880 12881 12882 12883 12884fi 12885ac_ext=c 12886ac_cpp='$CPP $CPPFLAGS' 12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12889ac_compiler_gnu=$ac_cv_c_compiler_gnu 12890 12891CC=$lt_save_CC 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 ac_config_commands="$ac_config_commands libtool" 12908 12909 12910 12911 12912# Only expand once: 12913 12914 12915 12916# Require xorg-macros minimum of 1.18 - Initial version 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12929$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12930if ${ac_cv_prog_cc_c99+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 ac_cv_prog_cc_c99=no 12934ac_save_CC=$CC 12935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12936/* end confdefs.h. */ 12937#include <stdarg.h> 12938#include <stdbool.h> 12939#include <stdlib.h> 12940#include <wchar.h> 12941#include <stdio.h> 12942 12943// Check varargs macros. These examples are taken from C99 6.10.3.5. 12944#define debug(...) fprintf (stderr, __VA_ARGS__) 12945#define showlist(...) puts (#__VA_ARGS__) 12946#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12947static void 12948test_varargs_macros (void) 12949{ 12950 int x = 1234; 12951 int y = 5678; 12952 debug ("Flag"); 12953 debug ("X = %d\n", x); 12954 showlist (The first, second, and third items.); 12955 report (x>y, "x is %d but y is %d", x, y); 12956} 12957 12958// Check long long types. 12959#define BIG64 18446744073709551615ull 12960#define BIG32 4294967295ul 12961#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12962#if !BIG_OK 12963 your preprocessor is broken; 12964#endif 12965#if BIG_OK 12966#else 12967 your preprocessor is broken; 12968#endif 12969static long long int bignum = -9223372036854775807LL; 12970static unsigned long long int ubignum = BIG64; 12971 12972struct incomplete_array 12973{ 12974 int datasize; 12975 double data[]; 12976}; 12977 12978struct named_init { 12979 int number; 12980 const wchar_t *name; 12981 double average; 12982}; 12983 12984typedef const char *ccp; 12985 12986static inline int 12987test_restrict (ccp restrict text) 12988{ 12989 // See if C++-style comments work. 12990 // Iterate through items via the restricted pointer. 12991 // Also check for declarations in for loops. 12992 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12993 continue; 12994 return 0; 12995} 12996 12997// Check varargs and va_copy. 12998static void 12999test_varargs (const char *format, ...) 13000{ 13001 va_list args; 13002 va_start (args, format); 13003 va_list args_copy; 13004 va_copy (args_copy, args); 13005 13006 const char *str; 13007 int number; 13008 float fnumber; 13009 13010 while (*format) 13011 { 13012 switch (*format++) 13013 { 13014 case 's': // string 13015 str = va_arg (args_copy, const char *); 13016 break; 13017 case 'd': // int 13018 number = va_arg (args_copy, int); 13019 break; 13020 case 'f': // float 13021 fnumber = va_arg (args_copy, double); 13022 break; 13023 default: 13024 break; 13025 } 13026 } 13027 va_end (args_copy); 13028 va_end (args); 13029} 13030 13031int 13032main () 13033{ 13034 13035 // Check bool. 13036 _Bool success = false; 13037 13038 // Check restrict. 13039 if (test_restrict ("String literal") == 0) 13040 success = true; 13041 char *restrict newvar = "Another string"; 13042 13043 // Check varargs. 13044 test_varargs ("s, d' f .", "string", 65, 34.234); 13045 test_varargs_macros (); 13046 13047 // Check flexible array members. 13048 struct incomplete_array *ia = 13049 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 13050 ia->datasize = 10; 13051 for (int i = 0; i < ia->datasize; ++i) 13052 ia->data[i] = i * 1.234; 13053 13054 // Check named initializers. 13055 struct named_init ni = { 13056 .number = 34, 13057 .name = L"Test wide string", 13058 .average = 543.34343, 13059 }; 13060 13061 ni.number = 58; 13062 13063 int dynamic_array[ni.number]; 13064 dynamic_array[ni.number - 1] = 543; 13065 13066 // work around unused variable warnings 13067 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 13068 || dynamic_array[ni.number - 1] != 543); 13069 13070 ; 13071 return 0; 13072} 13073_ACEOF 13074for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 13075do 13076 CC="$ac_save_CC $ac_arg" 13077 if ac_fn_c_try_compile "$LINENO"; then : 13078 ac_cv_prog_cc_c99=$ac_arg 13079fi 13080rm -f core conftest.err conftest.$ac_objext 13081 test "x$ac_cv_prog_cc_c99" != "xno" && break 13082done 13083rm -f conftest.$ac_ext 13084CC=$ac_save_CC 13085 13086fi 13087# AC_CACHE_VAL 13088case "x$ac_cv_prog_cc_c99" in 13089 x) 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13091$as_echo "none needed" >&6; } ;; 13092 xno) 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13094$as_echo "unsupported" >&6; } ;; 13095 *) 13096 CC="$CC $ac_cv_prog_cc_c99" 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13098$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 13099esac 13100if test "x$ac_cv_prog_cc_c99" != xno; then : 13101 13102fi 13103 13104 13105 13106 13107 13108 13109ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 13110if test "x$ac_cv_have_decl___clang__" = xyes; then : 13111 CLANGCC="yes" 13112else 13113 CLANGCC="no" 13114fi 13115 13116ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 13117if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 13118 INTELCC="yes" 13119else 13120 INTELCC="no" 13121fi 13122 13123ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 13124if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 13125 SUNCC="yes" 13126else 13127 SUNCC="no" 13128fi 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13139 if test -n "$ac_tool_prefix"; then 13140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13141set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13143$as_echo_n "checking for $ac_word... " >&6; } 13144if ${ac_cv_path_PKG_CONFIG+:} false; then : 13145 $as_echo_n "(cached) " >&6 13146else 13147 case $PKG_CONFIG in 13148 [\\/]* | ?:[\\/]*) 13149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13150 ;; 13151 *) 13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13153for as_dir in $PATH 13154do 13155 IFS=$as_save_IFS 13156 test -z "$as_dir" && as_dir=. 13157 for ac_exec_ext in '' $ac_executable_extensions; do 13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13161 break 2 13162 fi 13163done 13164 done 13165IFS=$as_save_IFS 13166 13167 ;; 13168esac 13169fi 13170PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13171if test -n "$PKG_CONFIG"; then 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13173$as_echo "$PKG_CONFIG" >&6; } 13174else 13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13176$as_echo "no" >&6; } 13177fi 13178 13179 13180fi 13181if test -z "$ac_cv_path_PKG_CONFIG"; then 13182 ac_pt_PKG_CONFIG=$PKG_CONFIG 13183 # Extract the first word of "pkg-config", so it can be a program name with args. 13184set dummy pkg-config; ac_word=$2 13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13186$as_echo_n "checking for $ac_word... " >&6; } 13187if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13188 $as_echo_n "(cached) " >&6 13189else 13190 case $ac_pt_PKG_CONFIG in 13191 [\\/]* | ?:[\\/]*) 13192 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13193 ;; 13194 *) 13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13196for as_dir in $PATH 13197do 13198 IFS=$as_save_IFS 13199 test -z "$as_dir" && as_dir=. 13200 for ac_exec_ext in '' $ac_executable_extensions; do 13201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13202 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13204 break 2 13205 fi 13206done 13207 done 13208IFS=$as_save_IFS 13209 13210 ;; 13211esac 13212fi 13213ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13214if test -n "$ac_pt_PKG_CONFIG"; then 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13216$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13217else 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13219$as_echo "no" >&6; } 13220fi 13221 13222 if test "x$ac_pt_PKG_CONFIG" = x; then 13223 PKG_CONFIG="" 13224 else 13225 case $cross_compiling:$ac_tool_warned in 13226yes:) 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13229ac_tool_warned=yes ;; 13230esac 13231 PKG_CONFIG=$ac_pt_PKG_CONFIG 13232 fi 13233else 13234 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13235fi 13236 13237fi 13238if test -n "$PKG_CONFIG"; then 13239 _pkg_min_version=0.9.0 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13241$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13242 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13244$as_echo "yes" >&6; } 13245 else 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13247$as_echo "no" >&6; } 13248 PKG_CONFIG="" 13249 fi 13250fi 13251 13252 13253 13254 13255 13256# Check whether --enable-selective-werror was given. 13257if test "${enable_selective_werror+set}" = set; then : 13258 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13259else 13260 SELECTIVE_WERROR=yes 13261fi 13262 13263 13264 13265 13266 13267# -v is too short to test reliably with XORG_TESTSET_CFLAG 13268if test "x$SUNCC" = "xyes"; then 13269 BASE_CFLAGS="-v" 13270else 13271 BASE_CFLAGS="" 13272fi 13273 13274# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288xorg_testset_save_CFLAGS="$CFLAGS" 13289 13290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298/* end confdefs.h. */ 13299int i; 13300_ACEOF 13301if ac_fn_c_try_compile "$LINENO"; then : 13302 xorg_cv_cc_flag_unknown_warning_option=yes 13303else 13304 xorg_cv_cc_flag_unknown_warning_option=no 13305fi 13306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13307fi 13308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13311 CFLAGS="$xorg_testset_save_CFLAGS" 13312fi 13313 13314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13317 fi 13318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13322 $as_echo_n "(cached) " >&6 13323else 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326int i; 13327_ACEOF 13328if ac_fn_c_try_compile "$LINENO"; then : 13329 xorg_cv_cc_flag_unused_command_line_argument=yes 13330else 13331 xorg_cv_cc_flag_unused_command_line_argument=no 13332fi 13333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13334fi 13335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13338 CFLAGS="$xorg_testset_save_CFLAGS" 13339fi 13340 13341found="no" 13342 13343 if test $found = "no" ; then 13344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13346 fi 13347 13348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13350 fi 13351 13352 CFLAGS="$CFLAGS -Wall" 13353 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13355$as_echo_n "checking if $CC supports -Wall... " >&6; } 13356 cacheid=xorg_cv_cc_flag__Wall 13357 if eval \${$cacheid+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359else 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362int i; 13363int 13364main () 13365{ 13366 13367 ; 13368 return 0; 13369} 13370_ACEOF 13371if ac_fn_c_try_link "$LINENO"; then : 13372 eval $cacheid=yes 13373else 13374 eval $cacheid=no 13375fi 13376rm -f core conftest.err conftest.$ac_objext \ 13377 conftest$ac_exeext conftest.$ac_ext 13378fi 13379 13380 13381 CFLAGS="$xorg_testset_save_CFLAGS" 13382 13383 eval supported=\$$cacheid 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13385$as_echo "$supported" >&6; } 13386 if test "$supported" = "yes" ; then 13387 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13388 found="yes" 13389 fi 13390 fi 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406xorg_testset_save_CFLAGS="$CFLAGS" 13407 13408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13413 $as_echo_n "(cached) " >&6 13414else 13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13416/* end confdefs.h. */ 13417int i; 13418_ACEOF 13419if ac_fn_c_try_compile "$LINENO"; then : 13420 xorg_cv_cc_flag_unknown_warning_option=yes 13421else 13422 xorg_cv_cc_flag_unknown_warning_option=no 13423fi 13424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13425fi 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13429 CFLAGS="$xorg_testset_save_CFLAGS" 13430fi 13431 13432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13435 fi 13436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13440 $as_echo_n "(cached) " >&6 13441else 13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443/* end confdefs.h. */ 13444int i; 13445_ACEOF 13446if ac_fn_c_try_compile "$LINENO"; then : 13447 xorg_cv_cc_flag_unused_command_line_argument=yes 13448else 13449 xorg_cv_cc_flag_unused_command_line_argument=no 13450fi 13451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13452fi 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13456 CFLAGS="$xorg_testset_save_CFLAGS" 13457fi 13458 13459found="no" 13460 13461 if test $found = "no" ; then 13462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13464 fi 13465 13466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13468 fi 13469 13470 CFLAGS="$CFLAGS -Wpointer-arith" 13471 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13473$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 13474 cacheid=xorg_cv_cc_flag__Wpointer_arith 13475 if eval \${$cacheid+:} false; then : 13476 $as_echo_n "(cached) " >&6 13477else 13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13479/* end confdefs.h. */ 13480int i; 13481int 13482main () 13483{ 13484 13485 ; 13486 return 0; 13487} 13488_ACEOF 13489if ac_fn_c_try_link "$LINENO"; then : 13490 eval $cacheid=yes 13491else 13492 eval $cacheid=no 13493fi 13494rm -f core conftest.err conftest.$ac_objext \ 13495 conftest$ac_exeext conftest.$ac_ext 13496fi 13497 13498 13499 CFLAGS="$xorg_testset_save_CFLAGS" 13500 13501 eval supported=\$$cacheid 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13503$as_echo "$supported" >&6; } 13504 if test "$supported" = "yes" ; then 13505 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13506 found="yes" 13507 fi 13508 fi 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524xorg_testset_save_CFLAGS="$CFLAGS" 13525 13526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532else 13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13534/* end confdefs.h. */ 13535int i; 13536_ACEOF 13537if ac_fn_c_try_compile "$LINENO"; then : 13538 xorg_cv_cc_flag_unknown_warning_option=yes 13539else 13540 xorg_cv_cc_flag_unknown_warning_option=no 13541fi 13542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13543fi 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13547 CFLAGS="$xorg_testset_save_CFLAGS" 13548fi 13549 13550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13553 fi 13554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13558 $as_echo_n "(cached) " >&6 13559else 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561/* end confdefs.h. */ 13562int i; 13563_ACEOF 13564if ac_fn_c_try_compile "$LINENO"; then : 13565 xorg_cv_cc_flag_unused_command_line_argument=yes 13566else 13567 xorg_cv_cc_flag_unused_command_line_argument=no 13568fi 13569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13570fi 13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13574 CFLAGS="$xorg_testset_save_CFLAGS" 13575fi 13576 13577found="no" 13578 13579 if test $found = "no" ; then 13580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13582 fi 13583 13584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13586 fi 13587 13588 CFLAGS="$CFLAGS -Wmissing-declarations" 13589 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13591$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13592 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13593 if eval \${$cacheid+:} false; then : 13594 $as_echo_n "(cached) " >&6 13595else 13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13597/* end confdefs.h. */ 13598int i; 13599int 13600main () 13601{ 13602 13603 ; 13604 return 0; 13605} 13606_ACEOF 13607if ac_fn_c_try_link "$LINENO"; then : 13608 eval $cacheid=yes 13609else 13610 eval $cacheid=no 13611fi 13612rm -f core conftest.err conftest.$ac_objext \ 13613 conftest$ac_exeext conftest.$ac_ext 13614fi 13615 13616 13617 CFLAGS="$xorg_testset_save_CFLAGS" 13618 13619 eval supported=\$$cacheid 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13621$as_echo "$supported" >&6; } 13622 if test "$supported" = "yes" ; then 13623 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13624 found="yes" 13625 fi 13626 fi 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642xorg_testset_save_CFLAGS="$CFLAGS" 13643 13644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13649 $as_echo_n "(cached) " >&6 13650else 13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13652/* end confdefs.h. */ 13653int i; 13654_ACEOF 13655if ac_fn_c_try_compile "$LINENO"; then : 13656 xorg_cv_cc_flag_unknown_warning_option=yes 13657else 13658 xorg_cv_cc_flag_unknown_warning_option=no 13659fi 13660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13661fi 13662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13665 CFLAGS="$xorg_testset_save_CFLAGS" 13666fi 13667 13668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 fi 13672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13676 $as_echo_n "(cached) " >&6 13677else 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679/* end confdefs.h. */ 13680int i; 13681_ACEOF 13682if ac_fn_c_try_compile "$LINENO"; then : 13683 xorg_cv_cc_flag_unused_command_line_argument=yes 13684else 13685 xorg_cv_cc_flag_unused_command_line_argument=no 13686fi 13687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13688fi 13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13692 CFLAGS="$xorg_testset_save_CFLAGS" 13693fi 13694 13695found="no" 13696 13697 if test $found = "no" ; then 13698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13700 fi 13701 13702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13704 fi 13705 13706 CFLAGS="$CFLAGS -Wformat=2" 13707 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13709$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13710 cacheid=xorg_cv_cc_flag__Wformat_2 13711 if eval \${$cacheid+:} false; then : 13712 $as_echo_n "(cached) " >&6 13713else 13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13715/* end confdefs.h. */ 13716int i; 13717int 13718main () 13719{ 13720 13721 ; 13722 return 0; 13723} 13724_ACEOF 13725if ac_fn_c_try_link "$LINENO"; then : 13726 eval $cacheid=yes 13727else 13728 eval $cacheid=no 13729fi 13730rm -f core conftest.err conftest.$ac_objext \ 13731 conftest$ac_exeext conftest.$ac_ext 13732fi 13733 13734 13735 CFLAGS="$xorg_testset_save_CFLAGS" 13736 13737 eval supported=\$$cacheid 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13739$as_echo "$supported" >&6; } 13740 if test "$supported" = "yes" ; then 13741 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13742 found="yes" 13743 fi 13744 fi 13745 13746 if test $found = "no" ; then 13747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13749 fi 13750 13751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13753 fi 13754 13755 CFLAGS="$CFLAGS -Wformat" 13756 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13758$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13759 cacheid=xorg_cv_cc_flag__Wformat 13760 if eval \${$cacheid+:} false; then : 13761 $as_echo_n "(cached) " >&6 13762else 13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13764/* end confdefs.h. */ 13765int i; 13766int 13767main () 13768{ 13769 13770 ; 13771 return 0; 13772} 13773_ACEOF 13774if ac_fn_c_try_link "$LINENO"; then : 13775 eval $cacheid=yes 13776else 13777 eval $cacheid=no 13778fi 13779rm -f core conftest.err conftest.$ac_objext \ 13780 conftest$ac_exeext conftest.$ac_ext 13781fi 13782 13783 13784 CFLAGS="$xorg_testset_save_CFLAGS" 13785 13786 eval supported=\$$cacheid 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13788$as_echo "$supported" >&6; } 13789 if test "$supported" = "yes" ; then 13790 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13791 found="yes" 13792 fi 13793 fi 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811xorg_testset_save_CFLAGS="$CFLAGS" 13812 13813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13818 $as_echo_n "(cached) " >&6 13819else 13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13821/* end confdefs.h. */ 13822int i; 13823_ACEOF 13824if ac_fn_c_try_compile "$LINENO"; then : 13825 xorg_cv_cc_flag_unknown_warning_option=yes 13826else 13827 xorg_cv_cc_flag_unknown_warning_option=no 13828fi 13829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13830fi 13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13834 CFLAGS="$xorg_testset_save_CFLAGS" 13835fi 13836 13837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13840 fi 13841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13845 $as_echo_n "(cached) " >&6 13846else 13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13848/* end confdefs.h. */ 13849int i; 13850_ACEOF 13851if ac_fn_c_try_compile "$LINENO"; then : 13852 xorg_cv_cc_flag_unused_command_line_argument=yes 13853else 13854 xorg_cv_cc_flag_unused_command_line_argument=no 13855fi 13856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13857fi 13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13861 CFLAGS="$xorg_testset_save_CFLAGS" 13862fi 13863 13864found="no" 13865 13866 if test $found = "no" ; then 13867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13869 fi 13870 13871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13873 fi 13874 13875 CFLAGS="$CFLAGS -Wstrict-prototypes" 13876 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13878$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13879 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13880 if eval \${$cacheid+:} false; then : 13881 $as_echo_n "(cached) " >&6 13882else 13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884/* end confdefs.h. */ 13885int i; 13886int 13887main () 13888{ 13889 13890 ; 13891 return 0; 13892} 13893_ACEOF 13894if ac_fn_c_try_link "$LINENO"; then : 13895 eval $cacheid=yes 13896else 13897 eval $cacheid=no 13898fi 13899rm -f core conftest.err conftest.$ac_objext \ 13900 conftest$ac_exeext conftest.$ac_ext 13901fi 13902 13903 13904 CFLAGS="$xorg_testset_save_CFLAGS" 13905 13906 eval supported=\$$cacheid 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13908$as_echo "$supported" >&6; } 13909 if test "$supported" = "yes" ; then 13910 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13911 found="yes" 13912 fi 13913 fi 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929xorg_testset_save_CFLAGS="$CFLAGS" 13930 13931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13936 $as_echo_n "(cached) " >&6 13937else 13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13939/* end confdefs.h. */ 13940int i; 13941_ACEOF 13942if ac_fn_c_try_compile "$LINENO"; then : 13943 xorg_cv_cc_flag_unknown_warning_option=yes 13944else 13945 xorg_cv_cc_flag_unknown_warning_option=no 13946fi 13947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13948fi 13949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13952 CFLAGS="$xorg_testset_save_CFLAGS" 13953fi 13954 13955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13958 fi 13959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13963 $as_echo_n "(cached) " >&6 13964else 13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13966/* end confdefs.h. */ 13967int i; 13968_ACEOF 13969if ac_fn_c_try_compile "$LINENO"; then : 13970 xorg_cv_cc_flag_unused_command_line_argument=yes 13971else 13972 xorg_cv_cc_flag_unused_command_line_argument=no 13973fi 13974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13975fi 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13979 CFLAGS="$xorg_testset_save_CFLAGS" 13980fi 13981 13982found="no" 13983 13984 if test $found = "no" ; then 13985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13987 fi 13988 13989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13991 fi 13992 13993 CFLAGS="$CFLAGS -Wmissing-prototypes" 13994 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13996$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13997 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13998 if eval \${$cacheid+:} false; then : 13999 $as_echo_n "(cached) " >&6 14000else 14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14002/* end confdefs.h. */ 14003int i; 14004int 14005main () 14006{ 14007 14008 ; 14009 return 0; 14010} 14011_ACEOF 14012if ac_fn_c_try_link "$LINENO"; then : 14013 eval $cacheid=yes 14014else 14015 eval $cacheid=no 14016fi 14017rm -f core conftest.err conftest.$ac_objext \ 14018 conftest$ac_exeext conftest.$ac_ext 14019fi 14020 14021 14022 CFLAGS="$xorg_testset_save_CFLAGS" 14023 14024 eval supported=\$$cacheid 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14026$as_echo "$supported" >&6; } 14027 if test "$supported" = "yes" ; then 14028 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14029 found="yes" 14030 fi 14031 fi 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047xorg_testset_save_CFLAGS="$CFLAGS" 14048 14049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14054 $as_echo_n "(cached) " >&6 14055else 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057/* end confdefs.h. */ 14058int i; 14059_ACEOF 14060if ac_fn_c_try_compile "$LINENO"; then : 14061 xorg_cv_cc_flag_unknown_warning_option=yes 14062else 14063 xorg_cv_cc_flag_unknown_warning_option=no 14064fi 14065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14066fi 14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14070 CFLAGS="$xorg_testset_save_CFLAGS" 14071fi 14072 14073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14076 fi 14077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085int i; 14086_ACEOF 14087if ac_fn_c_try_compile "$LINENO"; then : 14088 xorg_cv_cc_flag_unused_command_line_argument=yes 14089else 14090 xorg_cv_cc_flag_unused_command_line_argument=no 14091fi 14092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14093fi 14094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14097 CFLAGS="$xorg_testset_save_CFLAGS" 14098fi 14099 14100found="no" 14101 14102 if test $found = "no" ; then 14103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14105 fi 14106 14107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14109 fi 14110 14111 CFLAGS="$CFLAGS -Wnested-externs" 14112 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14114$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 14115 cacheid=xorg_cv_cc_flag__Wnested_externs 14116 if eval \${$cacheid+:} false; then : 14117 $as_echo_n "(cached) " >&6 14118else 14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14120/* end confdefs.h. */ 14121int i; 14122int 14123main () 14124{ 14125 14126 ; 14127 return 0; 14128} 14129_ACEOF 14130if ac_fn_c_try_link "$LINENO"; then : 14131 eval $cacheid=yes 14132else 14133 eval $cacheid=no 14134fi 14135rm -f core conftest.err conftest.$ac_objext \ 14136 conftest$ac_exeext conftest.$ac_ext 14137fi 14138 14139 14140 CFLAGS="$xorg_testset_save_CFLAGS" 14141 14142 eval supported=\$$cacheid 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14144$as_echo "$supported" >&6; } 14145 if test "$supported" = "yes" ; then 14146 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14147 found="yes" 14148 fi 14149 fi 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165xorg_testset_save_CFLAGS="$CFLAGS" 14166 14167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14172 $as_echo_n "(cached) " >&6 14173else 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176int i; 14177_ACEOF 14178if ac_fn_c_try_compile "$LINENO"; then : 14179 xorg_cv_cc_flag_unknown_warning_option=yes 14180else 14181 xorg_cv_cc_flag_unknown_warning_option=no 14182fi 14183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14184fi 14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14188 CFLAGS="$xorg_testset_save_CFLAGS" 14189fi 14190 14191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14194 fi 14195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14199 $as_echo_n "(cached) " >&6 14200else 14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14202/* end confdefs.h. */ 14203int i; 14204_ACEOF 14205if ac_fn_c_try_compile "$LINENO"; then : 14206 xorg_cv_cc_flag_unused_command_line_argument=yes 14207else 14208 xorg_cv_cc_flag_unused_command_line_argument=no 14209fi 14210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14211fi 14212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14215 CFLAGS="$xorg_testset_save_CFLAGS" 14216fi 14217 14218found="no" 14219 14220 if test $found = "no" ; then 14221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14223 fi 14224 14225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14227 fi 14228 14229 CFLAGS="$CFLAGS -Wbad-function-cast" 14230 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14232$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 14233 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14234 if eval \${$cacheid+:} false; then : 14235 $as_echo_n "(cached) " >&6 14236else 14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14238/* end confdefs.h. */ 14239int i; 14240int 14241main () 14242{ 14243 14244 ; 14245 return 0; 14246} 14247_ACEOF 14248if ac_fn_c_try_link "$LINENO"; then : 14249 eval $cacheid=yes 14250else 14251 eval $cacheid=no 14252fi 14253rm -f core conftest.err conftest.$ac_objext \ 14254 conftest$ac_exeext conftest.$ac_ext 14255fi 14256 14257 14258 CFLAGS="$xorg_testset_save_CFLAGS" 14259 14260 eval supported=\$$cacheid 14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14262$as_echo "$supported" >&6; } 14263 if test "$supported" = "yes" ; then 14264 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14265 found="yes" 14266 fi 14267 fi 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283xorg_testset_save_CFLAGS="$CFLAGS" 14284 14285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14290 $as_echo_n "(cached) " >&6 14291else 14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14293/* end confdefs.h. */ 14294int i; 14295_ACEOF 14296if ac_fn_c_try_compile "$LINENO"; then : 14297 xorg_cv_cc_flag_unknown_warning_option=yes 14298else 14299 xorg_cv_cc_flag_unknown_warning_option=no 14300fi 14301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14302fi 14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14306 CFLAGS="$xorg_testset_save_CFLAGS" 14307fi 14308 14309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14312 fi 14313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14317 $as_echo_n "(cached) " >&6 14318else 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14320/* end confdefs.h. */ 14321int i; 14322_ACEOF 14323if ac_fn_c_try_compile "$LINENO"; then : 14324 xorg_cv_cc_flag_unused_command_line_argument=yes 14325else 14326 xorg_cv_cc_flag_unused_command_line_argument=no 14327fi 14328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14329fi 14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14333 CFLAGS="$xorg_testset_save_CFLAGS" 14334fi 14335 14336found="no" 14337 14338 if test $found = "no" ; then 14339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14341 fi 14342 14343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14345 fi 14346 14347 CFLAGS="$CFLAGS -Wold-style-definition" 14348 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14350$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 14351 cacheid=xorg_cv_cc_flag__Wold_style_definition 14352 if eval \${$cacheid+:} false; then : 14353 $as_echo_n "(cached) " >&6 14354else 14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14356/* end confdefs.h. */ 14357int i; 14358int 14359main () 14360{ 14361 14362 ; 14363 return 0; 14364} 14365_ACEOF 14366if ac_fn_c_try_link "$LINENO"; then : 14367 eval $cacheid=yes 14368else 14369 eval $cacheid=no 14370fi 14371rm -f core conftest.err conftest.$ac_objext \ 14372 conftest$ac_exeext conftest.$ac_ext 14373fi 14374 14375 14376 CFLAGS="$xorg_testset_save_CFLAGS" 14377 14378 eval supported=\$$cacheid 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14380$as_echo "$supported" >&6; } 14381 if test "$supported" = "yes" ; then 14382 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14383 found="yes" 14384 fi 14385 fi 14386 14387 if test $found = "no" ; then 14388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14390 fi 14391 14392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14394 fi 14395 14396 CFLAGS="$CFLAGS -fd" 14397 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14399$as_echo_n "checking if $CC supports -fd... " >&6; } 14400 cacheid=xorg_cv_cc_flag__fd 14401 if eval \${$cacheid+:} false; then : 14402 $as_echo_n "(cached) " >&6 14403else 14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14405/* end confdefs.h. */ 14406int i; 14407int 14408main () 14409{ 14410 14411 ; 14412 return 0; 14413} 14414_ACEOF 14415if ac_fn_c_try_link "$LINENO"; then : 14416 eval $cacheid=yes 14417else 14418 eval $cacheid=no 14419fi 14420rm -f core conftest.err conftest.$ac_objext \ 14421 conftest$ac_exeext conftest.$ac_ext 14422fi 14423 14424 14425 CFLAGS="$xorg_testset_save_CFLAGS" 14426 14427 eval supported=\$$cacheid 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14429$as_echo "$supported" >&6; } 14430 if test "$supported" = "yes" ; then 14431 BASE_CFLAGS="$BASE_CFLAGS -fd" 14432 found="yes" 14433 fi 14434 fi 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450xorg_testset_save_CFLAGS="$CFLAGS" 14451 14452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14457 $as_echo_n "(cached) " >&6 14458else 14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460/* end confdefs.h. */ 14461int i; 14462_ACEOF 14463if ac_fn_c_try_compile "$LINENO"; then : 14464 xorg_cv_cc_flag_unknown_warning_option=yes 14465else 14466 xorg_cv_cc_flag_unknown_warning_option=no 14467fi 14468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14469fi 14470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14473 CFLAGS="$xorg_testset_save_CFLAGS" 14474fi 14475 14476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14479 fi 14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14484 $as_echo_n "(cached) " >&6 14485else 14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14487/* end confdefs.h. */ 14488int i; 14489_ACEOF 14490if ac_fn_c_try_compile "$LINENO"; then : 14491 xorg_cv_cc_flag_unused_command_line_argument=yes 14492else 14493 xorg_cv_cc_flag_unused_command_line_argument=no 14494fi 14495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14496fi 14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14500 CFLAGS="$xorg_testset_save_CFLAGS" 14501fi 14502 14503found="no" 14504 14505 if test $found = "no" ; then 14506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 fi 14509 14510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14512 fi 14513 14514 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14517$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14518 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14519 if eval \${$cacheid+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521else 14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524int i; 14525int 14526main () 14527{ 14528 14529 ; 14530 return 0; 14531} 14532_ACEOF 14533if ac_fn_c_try_link "$LINENO"; then : 14534 eval $cacheid=yes 14535else 14536 eval $cacheid=no 14537fi 14538rm -f core conftest.err conftest.$ac_objext \ 14539 conftest$ac_exeext conftest.$ac_ext 14540fi 14541 14542 14543 CFLAGS="$xorg_testset_save_CFLAGS" 14544 14545 eval supported=\$$cacheid 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14547$as_echo "$supported" >&6; } 14548 if test "$supported" = "yes" ; then 14549 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14550 found="yes" 14551 fi 14552 fi 14553 14554 14555 14556 14557 14558# This chunk adds additional warnings that could catch undesired effects. 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572xorg_testset_save_CFLAGS="$CFLAGS" 14573 14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14579 $as_echo_n "(cached) " >&6 14580else 14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14582/* end confdefs.h. */ 14583int i; 14584_ACEOF 14585if ac_fn_c_try_compile "$LINENO"; then : 14586 xorg_cv_cc_flag_unknown_warning_option=yes 14587else 14588 xorg_cv_cc_flag_unknown_warning_option=no 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14591fi 14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14595 CFLAGS="$xorg_testset_save_CFLAGS" 14596fi 14597 14598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14601 fi 14602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14606 $as_echo_n "(cached) " >&6 14607else 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610int i; 14611_ACEOF 14612if ac_fn_c_try_compile "$LINENO"; then : 14613 xorg_cv_cc_flag_unused_command_line_argument=yes 14614else 14615 xorg_cv_cc_flag_unused_command_line_argument=no 14616fi 14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14618fi 14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14622 CFLAGS="$xorg_testset_save_CFLAGS" 14623fi 14624 14625found="no" 14626 14627 if test $found = "no" ; then 14628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14630 fi 14631 14632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14634 fi 14635 14636 CFLAGS="$CFLAGS -Wunused" 14637 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14639$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14640 cacheid=xorg_cv_cc_flag__Wunused 14641 if eval \${$cacheid+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647int 14648main () 14649{ 14650 14651 ; 14652 return 0; 14653} 14654_ACEOF 14655if ac_fn_c_try_link "$LINENO"; then : 14656 eval $cacheid=yes 14657else 14658 eval $cacheid=no 14659fi 14660rm -f core conftest.err conftest.$ac_objext \ 14661 conftest$ac_exeext conftest.$ac_ext 14662fi 14663 14664 14665 CFLAGS="$xorg_testset_save_CFLAGS" 14666 14667 eval supported=\$$cacheid 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14669$as_echo "$supported" >&6; } 14670 if test "$supported" = "yes" ; then 14671 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14672 found="yes" 14673 fi 14674 fi 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690xorg_testset_save_CFLAGS="$CFLAGS" 14691 14692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14700/* end confdefs.h. */ 14701int i; 14702_ACEOF 14703if ac_fn_c_try_compile "$LINENO"; then : 14704 xorg_cv_cc_flag_unknown_warning_option=yes 14705else 14706 xorg_cv_cc_flag_unknown_warning_option=no 14707fi 14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14709fi 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14713 CFLAGS="$xorg_testset_save_CFLAGS" 14714fi 14715 14716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14719 fi 14720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14724 $as_echo_n "(cached) " >&6 14725else 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728int i; 14729_ACEOF 14730if ac_fn_c_try_compile "$LINENO"; then : 14731 xorg_cv_cc_flag_unused_command_line_argument=yes 14732else 14733 xorg_cv_cc_flag_unused_command_line_argument=no 14734fi 14735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14736fi 14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14740 CFLAGS="$xorg_testset_save_CFLAGS" 14741fi 14742 14743found="no" 14744 14745 if test $found = "no" ; then 14746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14748 fi 14749 14750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14752 fi 14753 14754 CFLAGS="$CFLAGS -Wuninitialized" 14755 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14757$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14758 cacheid=xorg_cv_cc_flag__Wuninitialized 14759 if eval \${$cacheid+:} false; then : 14760 $as_echo_n "(cached) " >&6 14761else 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764int i; 14765int 14766main () 14767{ 14768 14769 ; 14770 return 0; 14771} 14772_ACEOF 14773if ac_fn_c_try_link "$LINENO"; then : 14774 eval $cacheid=yes 14775else 14776 eval $cacheid=no 14777fi 14778rm -f core conftest.err conftest.$ac_objext \ 14779 conftest$ac_exeext conftest.$ac_ext 14780fi 14781 14782 14783 CFLAGS="$xorg_testset_save_CFLAGS" 14784 14785 eval supported=\$$cacheid 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14787$as_echo "$supported" >&6; } 14788 if test "$supported" = "yes" ; then 14789 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14790 found="yes" 14791 fi 14792 fi 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808xorg_testset_save_CFLAGS="$CFLAGS" 14809 14810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14815 $as_echo_n "(cached) " >&6 14816else 14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14818/* end confdefs.h. */ 14819int i; 14820_ACEOF 14821if ac_fn_c_try_compile "$LINENO"; then : 14822 xorg_cv_cc_flag_unknown_warning_option=yes 14823else 14824 xorg_cv_cc_flag_unknown_warning_option=no 14825fi 14826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14827fi 14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14831 CFLAGS="$xorg_testset_save_CFLAGS" 14832fi 14833 14834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14837 fi 14838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14842 $as_echo_n "(cached) " >&6 14843else 14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14845/* end confdefs.h. */ 14846int i; 14847_ACEOF 14848if ac_fn_c_try_compile "$LINENO"; then : 14849 xorg_cv_cc_flag_unused_command_line_argument=yes 14850else 14851 xorg_cv_cc_flag_unused_command_line_argument=no 14852fi 14853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14854fi 14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14858 CFLAGS="$xorg_testset_save_CFLAGS" 14859fi 14860 14861found="no" 14862 14863 if test $found = "no" ; then 14864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14866 fi 14867 14868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14870 fi 14871 14872 CFLAGS="$CFLAGS -Wshadow" 14873 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14875$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14876 cacheid=xorg_cv_cc_flag__Wshadow 14877 if eval \${$cacheid+:} false; then : 14878 $as_echo_n "(cached) " >&6 14879else 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882int i; 14883int 14884main () 14885{ 14886 14887 ; 14888 return 0; 14889} 14890_ACEOF 14891if ac_fn_c_try_link "$LINENO"; then : 14892 eval $cacheid=yes 14893else 14894 eval $cacheid=no 14895fi 14896rm -f core conftest.err conftest.$ac_objext \ 14897 conftest$ac_exeext conftest.$ac_ext 14898fi 14899 14900 14901 CFLAGS="$xorg_testset_save_CFLAGS" 14902 14903 eval supported=\$$cacheid 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14905$as_echo "$supported" >&6; } 14906 if test "$supported" = "yes" ; then 14907 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14908 found="yes" 14909 fi 14910 fi 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926xorg_testset_save_CFLAGS="$CFLAGS" 14927 14928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14933 $as_echo_n "(cached) " >&6 14934else 14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14936/* end confdefs.h. */ 14937int i; 14938_ACEOF 14939if ac_fn_c_try_compile "$LINENO"; then : 14940 xorg_cv_cc_flag_unknown_warning_option=yes 14941else 14942 xorg_cv_cc_flag_unknown_warning_option=no 14943fi 14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14945fi 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14949 CFLAGS="$xorg_testset_save_CFLAGS" 14950fi 14951 14952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14955 fi 14956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14960 $as_echo_n "(cached) " >&6 14961else 14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14963/* end confdefs.h. */ 14964int i; 14965_ACEOF 14966if ac_fn_c_try_compile "$LINENO"; then : 14967 xorg_cv_cc_flag_unused_command_line_argument=yes 14968else 14969 xorg_cv_cc_flag_unused_command_line_argument=no 14970fi 14971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14972fi 14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14976 CFLAGS="$xorg_testset_save_CFLAGS" 14977fi 14978 14979found="no" 14980 14981 if test $found = "no" ; then 14982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14984 fi 14985 14986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14988 fi 14989 14990 CFLAGS="$CFLAGS -Wmissing-noreturn" 14991 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14993$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14994 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14995 if eval \${$cacheid+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14999/* end confdefs.h. */ 15000int i; 15001int 15002main () 15003{ 15004 15005 ; 15006 return 0; 15007} 15008_ACEOF 15009if ac_fn_c_try_link "$LINENO"; then : 15010 eval $cacheid=yes 15011else 15012 eval $cacheid=no 15013fi 15014rm -f core conftest.err conftest.$ac_objext \ 15015 conftest$ac_exeext conftest.$ac_ext 15016fi 15017 15018 15019 CFLAGS="$xorg_testset_save_CFLAGS" 15020 15021 eval supported=\$$cacheid 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15023$as_echo "$supported" >&6; } 15024 if test "$supported" = "yes" ; then 15025 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15026 found="yes" 15027 fi 15028 fi 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044xorg_testset_save_CFLAGS="$CFLAGS" 15045 15046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15051 $as_echo_n "(cached) " >&6 15052else 15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15054/* end confdefs.h. */ 15055int i; 15056_ACEOF 15057if ac_fn_c_try_compile "$LINENO"; then : 15058 xorg_cv_cc_flag_unknown_warning_option=yes 15059else 15060 xorg_cv_cc_flag_unknown_warning_option=no 15061fi 15062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15063fi 15064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15067 CFLAGS="$xorg_testset_save_CFLAGS" 15068fi 15069 15070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15073 fi 15074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15078 $as_echo_n "(cached) " >&6 15079else 15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15081/* end confdefs.h. */ 15082int i; 15083_ACEOF 15084if ac_fn_c_try_compile "$LINENO"; then : 15085 xorg_cv_cc_flag_unused_command_line_argument=yes 15086else 15087 xorg_cv_cc_flag_unused_command_line_argument=no 15088fi 15089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15090fi 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15094 CFLAGS="$xorg_testset_save_CFLAGS" 15095fi 15096 15097found="no" 15098 15099 if test $found = "no" ; then 15100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15102 fi 15103 15104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15106 fi 15107 15108 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15109 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15111$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15112 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15113 if eval \${$cacheid+:} false; then : 15114 $as_echo_n "(cached) " >&6 15115else 15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15117/* end confdefs.h. */ 15118int i; 15119int 15120main () 15121{ 15122 15123 ; 15124 return 0; 15125} 15126_ACEOF 15127if ac_fn_c_try_link "$LINENO"; then : 15128 eval $cacheid=yes 15129else 15130 eval $cacheid=no 15131fi 15132rm -f core conftest.err conftest.$ac_objext \ 15133 conftest$ac_exeext conftest.$ac_ext 15134fi 15135 15136 15137 CFLAGS="$xorg_testset_save_CFLAGS" 15138 15139 eval supported=\$$cacheid 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15141$as_echo "$supported" >&6; } 15142 if test "$supported" = "yes" ; then 15143 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15144 found="yes" 15145 fi 15146 fi 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162xorg_testset_save_CFLAGS="$CFLAGS" 15163 15164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15169 $as_echo_n "(cached) " >&6 15170else 15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15172/* end confdefs.h. */ 15173int i; 15174_ACEOF 15175if ac_fn_c_try_compile "$LINENO"; then : 15176 xorg_cv_cc_flag_unknown_warning_option=yes 15177else 15178 xorg_cv_cc_flag_unknown_warning_option=no 15179fi 15180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15181fi 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15185 CFLAGS="$xorg_testset_save_CFLAGS" 15186fi 15187 15188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15191 fi 15192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15196 $as_echo_n "(cached) " >&6 15197else 15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199/* end confdefs.h. */ 15200int i; 15201_ACEOF 15202if ac_fn_c_try_compile "$LINENO"; then : 15203 xorg_cv_cc_flag_unused_command_line_argument=yes 15204else 15205 xorg_cv_cc_flag_unused_command_line_argument=no 15206fi 15207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15208fi 15209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15212 CFLAGS="$xorg_testset_save_CFLAGS" 15213fi 15214 15215found="no" 15216 15217 if test $found = "no" ; then 15218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15220 fi 15221 15222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15224 fi 15225 15226 CFLAGS="$CFLAGS -Wredundant-decls" 15227 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15229$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 15230 cacheid=xorg_cv_cc_flag__Wredundant_decls 15231 if eval \${$cacheid+:} false; then : 15232 $as_echo_n "(cached) " >&6 15233else 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235/* end confdefs.h. */ 15236int i; 15237int 15238main () 15239{ 15240 15241 ; 15242 return 0; 15243} 15244_ACEOF 15245if ac_fn_c_try_link "$LINENO"; then : 15246 eval $cacheid=yes 15247else 15248 eval $cacheid=no 15249fi 15250rm -f core conftest.err conftest.$ac_objext \ 15251 conftest$ac_exeext conftest.$ac_ext 15252fi 15253 15254 15255 CFLAGS="$xorg_testset_save_CFLAGS" 15256 15257 eval supported=\$$cacheid 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15259$as_echo "$supported" >&6; } 15260 if test "$supported" = "yes" ; then 15261 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15262 found="yes" 15263 fi 15264 fi 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280xorg_testset_save_CFLAGS="$CFLAGS" 15281 15282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15287 $as_echo_n "(cached) " >&6 15288else 15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15290/* end confdefs.h. */ 15291int i; 15292_ACEOF 15293if ac_fn_c_try_compile "$LINENO"; then : 15294 xorg_cv_cc_flag_unknown_warning_option=yes 15295else 15296 xorg_cv_cc_flag_unknown_warning_option=no 15297fi 15298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15299fi 15300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15303 CFLAGS="$xorg_testset_save_CFLAGS" 15304fi 15305 15306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15309 fi 15310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15314 $as_echo_n "(cached) " >&6 15315else 15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15317/* end confdefs.h. */ 15318int i; 15319_ACEOF 15320if ac_fn_c_try_compile "$LINENO"; then : 15321 xorg_cv_cc_flag_unused_command_line_argument=yes 15322else 15323 xorg_cv_cc_flag_unused_command_line_argument=no 15324fi 15325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15326fi 15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15330 CFLAGS="$xorg_testset_save_CFLAGS" 15331fi 15332 15333found="no" 15334 15335 if test $found = "no" ; then 15336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15338 fi 15339 15340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15342 fi 15343 15344 CFLAGS="$CFLAGS -Wlogical-op" 15345 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15347$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 15348 cacheid=xorg_cv_cc_flag__Wlogical_op 15349 if eval \${$cacheid+:} false; then : 15350 $as_echo_n "(cached) " >&6 15351else 15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15353/* end confdefs.h. */ 15354int i; 15355int 15356main () 15357{ 15358 15359 ; 15360 return 0; 15361} 15362_ACEOF 15363if ac_fn_c_try_link "$LINENO"; then : 15364 eval $cacheid=yes 15365else 15366 eval $cacheid=no 15367fi 15368rm -f core conftest.err conftest.$ac_objext \ 15369 conftest$ac_exeext conftest.$ac_ext 15370fi 15371 15372 15373 CFLAGS="$xorg_testset_save_CFLAGS" 15374 15375 eval supported=\$$cacheid 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15377$as_echo "$supported" >&6; } 15378 if test "$supported" = "yes" ; then 15379 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15380 found="yes" 15381 fi 15382 fi 15383 15384 15385 15386# These are currently disabled because they are noisy. They will be enabled 15387# in the future once the codebase is sufficiently modernized to silence 15388# them. For now, I don't want them to drown out the other warnings. 15389# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15390# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15391# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15392 15393# Turn some warnings into errors, so we don't accidently get successful builds 15394# when there are problems that should be fixed. 15395 15396if test "x$SELECTIVE_WERROR" = "xyes" ; then 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410xorg_testset_save_CFLAGS="$CFLAGS" 15411 15412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15417 $as_echo_n "(cached) " >&6 15418else 15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15420/* end confdefs.h. */ 15421int i; 15422_ACEOF 15423if ac_fn_c_try_compile "$LINENO"; then : 15424 xorg_cv_cc_flag_unknown_warning_option=yes 15425else 15426 xorg_cv_cc_flag_unknown_warning_option=no 15427fi 15428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15429fi 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15433 CFLAGS="$xorg_testset_save_CFLAGS" 15434fi 15435 15436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15439 fi 15440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15444 $as_echo_n "(cached) " >&6 15445else 15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15447/* end confdefs.h. */ 15448int i; 15449_ACEOF 15450if ac_fn_c_try_compile "$LINENO"; then : 15451 xorg_cv_cc_flag_unused_command_line_argument=yes 15452else 15453 xorg_cv_cc_flag_unused_command_line_argument=no 15454fi 15455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15456fi 15457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15460 CFLAGS="$xorg_testset_save_CFLAGS" 15461fi 15462 15463found="no" 15464 15465 if test $found = "no" ; then 15466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15468 fi 15469 15470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15472 fi 15473 15474 CFLAGS="$CFLAGS -Werror=implicit" 15475 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15477$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 15478 cacheid=xorg_cv_cc_flag__Werror_implicit 15479 if eval \${$cacheid+:} false; then : 15480 $as_echo_n "(cached) " >&6 15481else 15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15483/* end confdefs.h. */ 15484int i; 15485int 15486main () 15487{ 15488 15489 ; 15490 return 0; 15491} 15492_ACEOF 15493if ac_fn_c_try_link "$LINENO"; then : 15494 eval $cacheid=yes 15495else 15496 eval $cacheid=no 15497fi 15498rm -f core conftest.err conftest.$ac_objext \ 15499 conftest$ac_exeext conftest.$ac_ext 15500fi 15501 15502 15503 CFLAGS="$xorg_testset_save_CFLAGS" 15504 15505 eval supported=\$$cacheid 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15507$as_echo "$supported" >&6; } 15508 if test "$supported" = "yes" ; then 15509 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15510 found="yes" 15511 fi 15512 fi 15513 15514 if test $found = "no" ; then 15515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15517 fi 15518 15519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15521 fi 15522 15523 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15524 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15526$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15527 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15528 if eval \${$cacheid+:} false; then : 15529 $as_echo_n "(cached) " >&6 15530else 15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532/* end confdefs.h. */ 15533int i; 15534int 15535main () 15536{ 15537 15538 ; 15539 return 0; 15540} 15541_ACEOF 15542if ac_fn_c_try_link "$LINENO"; then : 15543 eval $cacheid=yes 15544else 15545 eval $cacheid=no 15546fi 15547rm -f core conftest.err conftest.$ac_objext \ 15548 conftest$ac_exeext conftest.$ac_ext 15549fi 15550 15551 15552 CFLAGS="$xorg_testset_save_CFLAGS" 15553 15554 eval supported=\$$cacheid 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15556$as_echo "$supported" >&6; } 15557 if test "$supported" = "yes" ; then 15558 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15559 found="yes" 15560 fi 15561 fi 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577xorg_testset_save_CFLAGS="$CFLAGS" 15578 15579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15584 $as_echo_n "(cached) " >&6 15585else 15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15587/* end confdefs.h. */ 15588int i; 15589_ACEOF 15590if ac_fn_c_try_compile "$LINENO"; then : 15591 xorg_cv_cc_flag_unknown_warning_option=yes 15592else 15593 xorg_cv_cc_flag_unknown_warning_option=no 15594fi 15595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15596fi 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15600 CFLAGS="$xorg_testset_save_CFLAGS" 15601fi 15602 15603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15606 fi 15607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15611 $as_echo_n "(cached) " >&6 15612else 15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15614/* end confdefs.h. */ 15615int i; 15616_ACEOF 15617if ac_fn_c_try_compile "$LINENO"; then : 15618 xorg_cv_cc_flag_unused_command_line_argument=yes 15619else 15620 xorg_cv_cc_flag_unused_command_line_argument=no 15621fi 15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15623fi 15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15627 CFLAGS="$xorg_testset_save_CFLAGS" 15628fi 15629 15630found="no" 15631 15632 if test $found = "no" ; then 15633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15635 fi 15636 15637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15639 fi 15640 15641 CFLAGS="$CFLAGS -Werror=nonnull" 15642 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15644$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15645 cacheid=xorg_cv_cc_flag__Werror_nonnull 15646 if eval \${$cacheid+:} false; then : 15647 $as_echo_n "(cached) " >&6 15648else 15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650/* end confdefs.h. */ 15651int i; 15652int 15653main () 15654{ 15655 15656 ; 15657 return 0; 15658} 15659_ACEOF 15660if ac_fn_c_try_link "$LINENO"; then : 15661 eval $cacheid=yes 15662else 15663 eval $cacheid=no 15664fi 15665rm -f core conftest.err conftest.$ac_objext \ 15666 conftest$ac_exeext conftest.$ac_ext 15667fi 15668 15669 15670 CFLAGS="$xorg_testset_save_CFLAGS" 15671 15672 eval supported=\$$cacheid 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15674$as_echo "$supported" >&6; } 15675 if test "$supported" = "yes" ; then 15676 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15677 found="yes" 15678 fi 15679 fi 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695xorg_testset_save_CFLAGS="$CFLAGS" 15696 15697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15702 $as_echo_n "(cached) " >&6 15703else 15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15705/* end confdefs.h. */ 15706int i; 15707_ACEOF 15708if ac_fn_c_try_compile "$LINENO"; then : 15709 xorg_cv_cc_flag_unknown_warning_option=yes 15710else 15711 xorg_cv_cc_flag_unknown_warning_option=no 15712fi 15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15714fi 15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15718 CFLAGS="$xorg_testset_save_CFLAGS" 15719fi 15720 15721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15724 fi 15725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15729 $as_echo_n "(cached) " >&6 15730else 15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732/* end confdefs.h. */ 15733int i; 15734_ACEOF 15735if ac_fn_c_try_compile "$LINENO"; then : 15736 xorg_cv_cc_flag_unused_command_line_argument=yes 15737else 15738 xorg_cv_cc_flag_unused_command_line_argument=no 15739fi 15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15741fi 15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15745 CFLAGS="$xorg_testset_save_CFLAGS" 15746fi 15747 15748found="no" 15749 15750 if test $found = "no" ; then 15751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15753 fi 15754 15755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15757 fi 15758 15759 CFLAGS="$CFLAGS -Werror=init-self" 15760 15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15762$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15763 cacheid=xorg_cv_cc_flag__Werror_init_self 15764 if eval \${$cacheid+:} false; then : 15765 $as_echo_n "(cached) " >&6 15766else 15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15768/* end confdefs.h. */ 15769int i; 15770int 15771main () 15772{ 15773 15774 ; 15775 return 0; 15776} 15777_ACEOF 15778if ac_fn_c_try_link "$LINENO"; then : 15779 eval $cacheid=yes 15780else 15781 eval $cacheid=no 15782fi 15783rm -f core conftest.err conftest.$ac_objext \ 15784 conftest$ac_exeext conftest.$ac_ext 15785fi 15786 15787 15788 CFLAGS="$xorg_testset_save_CFLAGS" 15789 15790 eval supported=\$$cacheid 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15792$as_echo "$supported" >&6; } 15793 if test "$supported" = "yes" ; then 15794 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15795 found="yes" 15796 fi 15797 fi 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813xorg_testset_save_CFLAGS="$CFLAGS" 15814 15815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15820 $as_echo_n "(cached) " >&6 15821else 15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15823/* end confdefs.h. */ 15824int i; 15825_ACEOF 15826if ac_fn_c_try_compile "$LINENO"; then : 15827 xorg_cv_cc_flag_unknown_warning_option=yes 15828else 15829 xorg_cv_cc_flag_unknown_warning_option=no 15830fi 15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15832fi 15833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15836 CFLAGS="$xorg_testset_save_CFLAGS" 15837fi 15838 15839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 fi 15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15847 $as_echo_n "(cached) " >&6 15848else 15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15850/* end confdefs.h. */ 15851int i; 15852_ACEOF 15853if ac_fn_c_try_compile "$LINENO"; then : 15854 xorg_cv_cc_flag_unused_command_line_argument=yes 15855else 15856 xorg_cv_cc_flag_unused_command_line_argument=no 15857fi 15858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15859fi 15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15863 CFLAGS="$xorg_testset_save_CFLAGS" 15864fi 15865 15866found="no" 15867 15868 if test $found = "no" ; then 15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15871 fi 15872 15873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15875 fi 15876 15877 CFLAGS="$CFLAGS -Werror=main" 15878 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15880$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15881 cacheid=xorg_cv_cc_flag__Werror_main 15882 if eval \${$cacheid+:} false; then : 15883 $as_echo_n "(cached) " >&6 15884else 15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15886/* end confdefs.h. */ 15887int i; 15888int 15889main () 15890{ 15891 15892 ; 15893 return 0; 15894} 15895_ACEOF 15896if ac_fn_c_try_link "$LINENO"; then : 15897 eval $cacheid=yes 15898else 15899 eval $cacheid=no 15900fi 15901rm -f core conftest.err conftest.$ac_objext \ 15902 conftest$ac_exeext conftest.$ac_ext 15903fi 15904 15905 15906 CFLAGS="$xorg_testset_save_CFLAGS" 15907 15908 eval supported=\$$cacheid 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15910$as_echo "$supported" >&6; } 15911 if test "$supported" = "yes" ; then 15912 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15913 found="yes" 15914 fi 15915 fi 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931xorg_testset_save_CFLAGS="$CFLAGS" 15932 15933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15938 $as_echo_n "(cached) " >&6 15939else 15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15941/* end confdefs.h. */ 15942int i; 15943_ACEOF 15944if ac_fn_c_try_compile "$LINENO"; then : 15945 xorg_cv_cc_flag_unknown_warning_option=yes 15946else 15947 xorg_cv_cc_flag_unknown_warning_option=no 15948fi 15949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15950fi 15951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15954 CFLAGS="$xorg_testset_save_CFLAGS" 15955fi 15956 15957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15960 fi 15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15965 $as_echo_n "(cached) " >&6 15966else 15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968/* end confdefs.h. */ 15969int i; 15970_ACEOF 15971if ac_fn_c_try_compile "$LINENO"; then : 15972 xorg_cv_cc_flag_unused_command_line_argument=yes 15973else 15974 xorg_cv_cc_flag_unused_command_line_argument=no 15975fi 15976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15977fi 15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15981 CFLAGS="$xorg_testset_save_CFLAGS" 15982fi 15983 15984found="no" 15985 15986 if test $found = "no" ; then 15987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15989 fi 15990 15991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15993 fi 15994 15995 CFLAGS="$CFLAGS -Werror=missing-braces" 15996 15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15998$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15999 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16000 if eval \${$cacheid+:} false; then : 16001 $as_echo_n "(cached) " >&6 16002else 16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16004/* end confdefs.h. */ 16005int i; 16006int 16007main () 16008{ 16009 16010 ; 16011 return 0; 16012} 16013_ACEOF 16014if ac_fn_c_try_link "$LINENO"; then : 16015 eval $cacheid=yes 16016else 16017 eval $cacheid=no 16018fi 16019rm -f core conftest.err conftest.$ac_objext \ 16020 conftest$ac_exeext conftest.$ac_ext 16021fi 16022 16023 16024 CFLAGS="$xorg_testset_save_CFLAGS" 16025 16026 eval supported=\$$cacheid 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16028$as_echo "$supported" >&6; } 16029 if test "$supported" = "yes" ; then 16030 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16031 found="yes" 16032 fi 16033 fi 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049xorg_testset_save_CFLAGS="$CFLAGS" 16050 16051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16056 $as_echo_n "(cached) " >&6 16057else 16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16059/* end confdefs.h. */ 16060int i; 16061_ACEOF 16062if ac_fn_c_try_compile "$LINENO"; then : 16063 xorg_cv_cc_flag_unknown_warning_option=yes 16064else 16065 xorg_cv_cc_flag_unknown_warning_option=no 16066fi 16067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16068fi 16069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16072 CFLAGS="$xorg_testset_save_CFLAGS" 16073fi 16074 16075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16078 fi 16079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16083 $as_echo_n "(cached) " >&6 16084else 16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087int i; 16088_ACEOF 16089if ac_fn_c_try_compile "$LINENO"; then : 16090 xorg_cv_cc_flag_unused_command_line_argument=yes 16091else 16092 xorg_cv_cc_flag_unused_command_line_argument=no 16093fi 16094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16095fi 16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16099 CFLAGS="$xorg_testset_save_CFLAGS" 16100fi 16101 16102found="no" 16103 16104 if test $found = "no" ; then 16105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16107 fi 16108 16109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16111 fi 16112 16113 CFLAGS="$CFLAGS -Werror=sequence-point" 16114 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16116$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 16117 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16118 if eval \${$cacheid+:} false; then : 16119 $as_echo_n "(cached) " >&6 16120else 16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123int i; 16124int 16125main () 16126{ 16127 16128 ; 16129 return 0; 16130} 16131_ACEOF 16132if ac_fn_c_try_link "$LINENO"; then : 16133 eval $cacheid=yes 16134else 16135 eval $cacheid=no 16136fi 16137rm -f core conftest.err conftest.$ac_objext \ 16138 conftest$ac_exeext conftest.$ac_ext 16139fi 16140 16141 16142 CFLAGS="$xorg_testset_save_CFLAGS" 16143 16144 eval supported=\$$cacheid 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16146$as_echo "$supported" >&6; } 16147 if test "$supported" = "yes" ; then 16148 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16149 found="yes" 16150 fi 16151 fi 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167xorg_testset_save_CFLAGS="$CFLAGS" 16168 16169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16174 $as_echo_n "(cached) " >&6 16175else 16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16177/* end confdefs.h. */ 16178int i; 16179_ACEOF 16180if ac_fn_c_try_compile "$LINENO"; then : 16181 xorg_cv_cc_flag_unknown_warning_option=yes 16182else 16183 xorg_cv_cc_flag_unknown_warning_option=no 16184fi 16185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16186fi 16187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16190 CFLAGS="$xorg_testset_save_CFLAGS" 16191fi 16192 16193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 fi 16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16201 $as_echo_n "(cached) " >&6 16202else 16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16204/* end confdefs.h. */ 16205int i; 16206_ACEOF 16207if ac_fn_c_try_compile "$LINENO"; then : 16208 xorg_cv_cc_flag_unused_command_line_argument=yes 16209else 16210 xorg_cv_cc_flag_unused_command_line_argument=no 16211fi 16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16213fi 16214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16217 CFLAGS="$xorg_testset_save_CFLAGS" 16218fi 16219 16220found="no" 16221 16222 if test $found = "no" ; then 16223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16225 fi 16226 16227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16229 fi 16230 16231 CFLAGS="$CFLAGS -Werror=return-type" 16232 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16234$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 16235 cacheid=xorg_cv_cc_flag__Werror_return_type 16236 if eval \${$cacheid+:} false; then : 16237 $as_echo_n "(cached) " >&6 16238else 16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16240/* end confdefs.h. */ 16241int i; 16242int 16243main () 16244{ 16245 16246 ; 16247 return 0; 16248} 16249_ACEOF 16250if ac_fn_c_try_link "$LINENO"; then : 16251 eval $cacheid=yes 16252else 16253 eval $cacheid=no 16254fi 16255rm -f core conftest.err conftest.$ac_objext \ 16256 conftest$ac_exeext conftest.$ac_ext 16257fi 16258 16259 16260 CFLAGS="$xorg_testset_save_CFLAGS" 16261 16262 eval supported=\$$cacheid 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16264$as_echo "$supported" >&6; } 16265 if test "$supported" = "yes" ; then 16266 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16267 found="yes" 16268 fi 16269 fi 16270 16271 if test $found = "no" ; then 16272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16274 fi 16275 16276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16278 fi 16279 16280 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16281 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16283$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16284 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16285 if eval \${$cacheid+:} false; then : 16286 $as_echo_n "(cached) " >&6 16287else 16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16289/* end confdefs.h. */ 16290int i; 16291int 16292main () 16293{ 16294 16295 ; 16296 return 0; 16297} 16298_ACEOF 16299if ac_fn_c_try_link "$LINENO"; then : 16300 eval $cacheid=yes 16301else 16302 eval $cacheid=no 16303fi 16304rm -f core conftest.err conftest.$ac_objext \ 16305 conftest$ac_exeext conftest.$ac_ext 16306fi 16307 16308 16309 CFLAGS="$xorg_testset_save_CFLAGS" 16310 16311 eval supported=\$$cacheid 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16313$as_echo "$supported" >&6; } 16314 if test "$supported" = "yes" ; then 16315 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16316 found="yes" 16317 fi 16318 fi 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334xorg_testset_save_CFLAGS="$CFLAGS" 16335 16336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16341 $as_echo_n "(cached) " >&6 16342else 16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16344/* end confdefs.h. */ 16345int i; 16346_ACEOF 16347if ac_fn_c_try_compile "$LINENO"; then : 16348 xorg_cv_cc_flag_unknown_warning_option=yes 16349else 16350 xorg_cv_cc_flag_unknown_warning_option=no 16351fi 16352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16353fi 16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16357 CFLAGS="$xorg_testset_save_CFLAGS" 16358fi 16359 16360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16363 fi 16364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16368 $as_echo_n "(cached) " >&6 16369else 16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16371/* end confdefs.h. */ 16372int i; 16373_ACEOF 16374if ac_fn_c_try_compile "$LINENO"; then : 16375 xorg_cv_cc_flag_unused_command_line_argument=yes 16376else 16377 xorg_cv_cc_flag_unused_command_line_argument=no 16378fi 16379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16380fi 16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16384 CFLAGS="$xorg_testset_save_CFLAGS" 16385fi 16386 16387found="no" 16388 16389 if test $found = "no" ; then 16390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16392 fi 16393 16394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16396 fi 16397 16398 CFLAGS="$CFLAGS -Werror=trigraphs" 16399 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16401$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 16402 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16403 if eval \${$cacheid+:} false; then : 16404 $as_echo_n "(cached) " >&6 16405else 16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16407/* end confdefs.h. */ 16408int i; 16409int 16410main () 16411{ 16412 16413 ; 16414 return 0; 16415} 16416_ACEOF 16417if ac_fn_c_try_link "$LINENO"; then : 16418 eval $cacheid=yes 16419else 16420 eval $cacheid=no 16421fi 16422rm -f core conftest.err conftest.$ac_objext \ 16423 conftest$ac_exeext conftest.$ac_ext 16424fi 16425 16426 16427 CFLAGS="$xorg_testset_save_CFLAGS" 16428 16429 eval supported=\$$cacheid 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16431$as_echo "$supported" >&6; } 16432 if test "$supported" = "yes" ; then 16433 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16434 found="yes" 16435 fi 16436 fi 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452xorg_testset_save_CFLAGS="$CFLAGS" 16453 16454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463int i; 16464_ACEOF 16465if ac_fn_c_try_compile "$LINENO"; then : 16466 xorg_cv_cc_flag_unknown_warning_option=yes 16467else 16468 xorg_cv_cc_flag_unknown_warning_option=no 16469fi 16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16471fi 16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16475 CFLAGS="$xorg_testset_save_CFLAGS" 16476fi 16477 16478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16481 fi 16482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16486 $as_echo_n "(cached) " >&6 16487else 16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16489/* end confdefs.h. */ 16490int i; 16491_ACEOF 16492if ac_fn_c_try_compile "$LINENO"; then : 16493 xorg_cv_cc_flag_unused_command_line_argument=yes 16494else 16495 xorg_cv_cc_flag_unused_command_line_argument=no 16496fi 16497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16498fi 16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16502 CFLAGS="$xorg_testset_save_CFLAGS" 16503fi 16504 16505found="no" 16506 16507 if test $found = "no" ; then 16508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16510 fi 16511 16512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16514 fi 16515 16516 CFLAGS="$CFLAGS -Werror=array-bounds" 16517 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16519$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16520 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16521 if eval \${$cacheid+:} false; then : 16522 $as_echo_n "(cached) " >&6 16523else 16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16525/* end confdefs.h. */ 16526int i; 16527int 16528main () 16529{ 16530 16531 ; 16532 return 0; 16533} 16534_ACEOF 16535if ac_fn_c_try_link "$LINENO"; then : 16536 eval $cacheid=yes 16537else 16538 eval $cacheid=no 16539fi 16540rm -f core conftest.err conftest.$ac_objext \ 16541 conftest$ac_exeext conftest.$ac_ext 16542fi 16543 16544 16545 CFLAGS="$xorg_testset_save_CFLAGS" 16546 16547 eval supported=\$$cacheid 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16549$as_echo "$supported" >&6; } 16550 if test "$supported" = "yes" ; then 16551 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16552 found="yes" 16553 fi 16554 fi 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570xorg_testset_save_CFLAGS="$CFLAGS" 16571 16572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16577 $as_echo_n "(cached) " >&6 16578else 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581int i; 16582_ACEOF 16583if ac_fn_c_try_compile "$LINENO"; then : 16584 xorg_cv_cc_flag_unknown_warning_option=yes 16585else 16586 xorg_cv_cc_flag_unknown_warning_option=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16589fi 16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16593 CFLAGS="$xorg_testset_save_CFLAGS" 16594fi 16595 16596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16599 fi 16600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16604 $as_echo_n "(cached) " >&6 16605else 16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607/* end confdefs.h. */ 16608int i; 16609_ACEOF 16610if ac_fn_c_try_compile "$LINENO"; then : 16611 xorg_cv_cc_flag_unused_command_line_argument=yes 16612else 16613 xorg_cv_cc_flag_unused_command_line_argument=no 16614fi 16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16616fi 16617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16620 CFLAGS="$xorg_testset_save_CFLAGS" 16621fi 16622 16623found="no" 16624 16625 if test $found = "no" ; then 16626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16628 fi 16629 16630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16632 fi 16633 16634 CFLAGS="$CFLAGS -Werror=write-strings" 16635 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16637$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16638 cacheid=xorg_cv_cc_flag__Werror_write_strings 16639 if eval \${$cacheid+:} false; then : 16640 $as_echo_n "(cached) " >&6 16641else 16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16643/* end confdefs.h. */ 16644int i; 16645int 16646main () 16647{ 16648 16649 ; 16650 return 0; 16651} 16652_ACEOF 16653if ac_fn_c_try_link "$LINENO"; then : 16654 eval $cacheid=yes 16655else 16656 eval $cacheid=no 16657fi 16658rm -f core conftest.err conftest.$ac_objext \ 16659 conftest$ac_exeext conftest.$ac_ext 16660fi 16661 16662 16663 CFLAGS="$xorg_testset_save_CFLAGS" 16664 16665 eval supported=\$$cacheid 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16667$as_echo "$supported" >&6; } 16668 if test "$supported" = "yes" ; then 16669 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16670 found="yes" 16671 fi 16672 fi 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688xorg_testset_save_CFLAGS="$CFLAGS" 16689 16690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16695 $as_echo_n "(cached) " >&6 16696else 16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16698/* end confdefs.h. */ 16699int i; 16700_ACEOF 16701if ac_fn_c_try_compile "$LINENO"; then : 16702 xorg_cv_cc_flag_unknown_warning_option=yes 16703else 16704 xorg_cv_cc_flag_unknown_warning_option=no 16705fi 16706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16707fi 16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16711 CFLAGS="$xorg_testset_save_CFLAGS" 16712fi 16713 16714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16717 fi 16718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16722 $as_echo_n "(cached) " >&6 16723else 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726int i; 16727_ACEOF 16728if ac_fn_c_try_compile "$LINENO"; then : 16729 xorg_cv_cc_flag_unused_command_line_argument=yes 16730else 16731 xorg_cv_cc_flag_unused_command_line_argument=no 16732fi 16733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16734fi 16735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16738 CFLAGS="$xorg_testset_save_CFLAGS" 16739fi 16740 16741found="no" 16742 16743 if test $found = "no" ; then 16744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16746 fi 16747 16748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16750 fi 16751 16752 CFLAGS="$CFLAGS -Werror=address" 16753 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16755$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16756 cacheid=xorg_cv_cc_flag__Werror_address 16757 if eval \${$cacheid+:} false; then : 16758 $as_echo_n "(cached) " >&6 16759else 16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16761/* end confdefs.h. */ 16762int i; 16763int 16764main () 16765{ 16766 16767 ; 16768 return 0; 16769} 16770_ACEOF 16771if ac_fn_c_try_link "$LINENO"; then : 16772 eval $cacheid=yes 16773else 16774 eval $cacheid=no 16775fi 16776rm -f core conftest.err conftest.$ac_objext \ 16777 conftest$ac_exeext conftest.$ac_ext 16778fi 16779 16780 16781 CFLAGS="$xorg_testset_save_CFLAGS" 16782 16783 eval supported=\$$cacheid 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16785$as_echo "$supported" >&6; } 16786 if test "$supported" = "yes" ; then 16787 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16788 found="yes" 16789 fi 16790 fi 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806xorg_testset_save_CFLAGS="$CFLAGS" 16807 16808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16813 $as_echo_n "(cached) " >&6 16814else 16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816/* end confdefs.h. */ 16817int i; 16818_ACEOF 16819if ac_fn_c_try_compile "$LINENO"; then : 16820 xorg_cv_cc_flag_unknown_warning_option=yes 16821else 16822 xorg_cv_cc_flag_unknown_warning_option=no 16823fi 16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16825fi 16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16829 CFLAGS="$xorg_testset_save_CFLAGS" 16830fi 16831 16832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16835 fi 16836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16840 $as_echo_n "(cached) " >&6 16841else 16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16843/* end confdefs.h. */ 16844int i; 16845_ACEOF 16846if ac_fn_c_try_compile "$LINENO"; then : 16847 xorg_cv_cc_flag_unused_command_line_argument=yes 16848else 16849 xorg_cv_cc_flag_unused_command_line_argument=no 16850fi 16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16852fi 16853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16856 CFLAGS="$xorg_testset_save_CFLAGS" 16857fi 16858 16859found="no" 16860 16861 if test $found = "no" ; then 16862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16864 fi 16865 16866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16868 fi 16869 16870 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16871 16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16873$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16874 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16875 if eval \${$cacheid+:} false; then : 16876 $as_echo_n "(cached) " >&6 16877else 16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16879/* end confdefs.h. */ 16880int i; 16881int 16882main () 16883{ 16884 16885 ; 16886 return 0; 16887} 16888_ACEOF 16889if ac_fn_c_try_link "$LINENO"; then : 16890 eval $cacheid=yes 16891else 16892 eval $cacheid=no 16893fi 16894rm -f core conftest.err conftest.$ac_objext \ 16895 conftest$ac_exeext conftest.$ac_ext 16896fi 16897 16898 16899 CFLAGS="$xorg_testset_save_CFLAGS" 16900 16901 eval supported=\$$cacheid 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16903$as_echo "$supported" >&6; } 16904 if test "$supported" = "yes" ; then 16905 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16906 found="yes" 16907 fi 16908 fi 16909 16910 if test $found = "no" ; then 16911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16913 fi 16914 16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16917 fi 16918 16919 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16920 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16922$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16923 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16924 if eval \${$cacheid+:} false; then : 16925 $as_echo_n "(cached) " >&6 16926else 16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16928/* end confdefs.h. */ 16929int i; 16930int 16931main () 16932{ 16933 16934 ; 16935 return 0; 16936} 16937_ACEOF 16938if ac_fn_c_try_link "$LINENO"; then : 16939 eval $cacheid=yes 16940else 16941 eval $cacheid=no 16942fi 16943rm -f core conftest.err conftest.$ac_objext \ 16944 conftest$ac_exeext conftest.$ac_ext 16945fi 16946 16947 16948 CFLAGS="$xorg_testset_save_CFLAGS" 16949 16950 eval supported=\$$cacheid 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16952$as_echo "$supported" >&6; } 16953 if test "$supported" = "yes" ; then 16954 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16955 found="yes" 16956 fi 16957 fi 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973xorg_testset_save_CFLAGS="$CFLAGS" 16974 16975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16980 $as_echo_n "(cached) " >&6 16981else 16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983/* end confdefs.h. */ 16984int i; 16985_ACEOF 16986if ac_fn_c_try_compile "$LINENO"; then : 16987 xorg_cv_cc_flag_unknown_warning_option=yes 16988else 16989 xorg_cv_cc_flag_unknown_warning_option=no 16990fi 16991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16992fi 16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16996 CFLAGS="$xorg_testset_save_CFLAGS" 16997fi 16998 16999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17002 fi 17003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17007 $as_echo_n "(cached) " >&6 17008else 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011int i; 17012_ACEOF 17013if ac_fn_c_try_compile "$LINENO"; then : 17014 xorg_cv_cc_flag_unused_command_line_argument=yes 17015else 17016 xorg_cv_cc_flag_unused_command_line_argument=no 17017fi 17018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17019fi 17020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17023 CFLAGS="$xorg_testset_save_CFLAGS" 17024fi 17025 17026found="no" 17027 17028 if test $found = "no" ; then 17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17031 fi 17032 17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17035 fi 17036 17037 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17038 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17040$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17041 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17042 if eval \${$cacheid+:} false; then : 17043 $as_echo_n "(cached) " >&6 17044else 17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17046/* end confdefs.h. */ 17047int i; 17048int 17049main () 17050{ 17051 17052 ; 17053 return 0; 17054} 17055_ACEOF 17056if ac_fn_c_try_link "$LINENO"; then : 17057 eval $cacheid=yes 17058else 17059 eval $cacheid=no 17060fi 17061rm -f core conftest.err conftest.$ac_objext \ 17062 conftest$ac_exeext conftest.$ac_ext 17063fi 17064 17065 17066 CFLAGS="$xorg_testset_save_CFLAGS" 17067 17068 eval supported=\$$cacheid 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17070$as_echo "$supported" >&6; } 17071 if test "$supported" = "yes" ; then 17072 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17073 found="yes" 17074 fi 17075 fi 17076 17077 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17078else 17079{ $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 17080$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;} 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094xorg_testset_save_CFLAGS="$CFLAGS" 17095 17096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17101 $as_echo_n "(cached) " >&6 17102else 17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17104/* end confdefs.h. */ 17105int i; 17106_ACEOF 17107if ac_fn_c_try_compile "$LINENO"; then : 17108 xorg_cv_cc_flag_unknown_warning_option=yes 17109else 17110 xorg_cv_cc_flag_unknown_warning_option=no 17111fi 17112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17113fi 17114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17117 CFLAGS="$xorg_testset_save_CFLAGS" 17118fi 17119 17120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17123 fi 17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17128 $as_echo_n "(cached) " >&6 17129else 17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17131/* end confdefs.h. */ 17132int i; 17133_ACEOF 17134if ac_fn_c_try_compile "$LINENO"; then : 17135 xorg_cv_cc_flag_unused_command_line_argument=yes 17136else 17137 xorg_cv_cc_flag_unused_command_line_argument=no 17138fi 17139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17140fi 17141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17144 CFLAGS="$xorg_testset_save_CFLAGS" 17145fi 17146 17147found="no" 17148 17149 if test $found = "no" ; then 17150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17152 fi 17153 17154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17156 fi 17157 17158 CFLAGS="$CFLAGS -Wimplicit" 17159 17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17161$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 17162 cacheid=xorg_cv_cc_flag__Wimplicit 17163 if eval \${$cacheid+:} false; then : 17164 $as_echo_n "(cached) " >&6 17165else 17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17167/* end confdefs.h. */ 17168int i; 17169int 17170main () 17171{ 17172 17173 ; 17174 return 0; 17175} 17176_ACEOF 17177if ac_fn_c_try_link "$LINENO"; then : 17178 eval $cacheid=yes 17179else 17180 eval $cacheid=no 17181fi 17182rm -f core conftest.err conftest.$ac_objext \ 17183 conftest$ac_exeext conftest.$ac_ext 17184fi 17185 17186 17187 CFLAGS="$xorg_testset_save_CFLAGS" 17188 17189 eval supported=\$$cacheid 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17191$as_echo "$supported" >&6; } 17192 if test "$supported" = "yes" ; then 17193 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17194 found="yes" 17195 fi 17196 fi 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212xorg_testset_save_CFLAGS="$CFLAGS" 17213 17214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17219 $as_echo_n "(cached) " >&6 17220else 17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17222/* end confdefs.h. */ 17223int i; 17224_ACEOF 17225if ac_fn_c_try_compile "$LINENO"; then : 17226 xorg_cv_cc_flag_unknown_warning_option=yes 17227else 17228 xorg_cv_cc_flag_unknown_warning_option=no 17229fi 17230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17231fi 17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17235 CFLAGS="$xorg_testset_save_CFLAGS" 17236fi 17237 17238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17241 fi 17242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17246 $as_echo_n "(cached) " >&6 17247else 17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17249/* end confdefs.h. */ 17250int i; 17251_ACEOF 17252if ac_fn_c_try_compile "$LINENO"; then : 17253 xorg_cv_cc_flag_unused_command_line_argument=yes 17254else 17255 xorg_cv_cc_flag_unused_command_line_argument=no 17256fi 17257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17258fi 17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17262 CFLAGS="$xorg_testset_save_CFLAGS" 17263fi 17264 17265found="no" 17266 17267 if test $found = "no" ; then 17268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17270 fi 17271 17272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17274 fi 17275 17276 CFLAGS="$CFLAGS -Wnonnull" 17277 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17279$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 17280 cacheid=xorg_cv_cc_flag__Wnonnull 17281 if eval \${$cacheid+:} false; then : 17282 $as_echo_n "(cached) " >&6 17283else 17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285/* end confdefs.h. */ 17286int i; 17287int 17288main () 17289{ 17290 17291 ; 17292 return 0; 17293} 17294_ACEOF 17295if ac_fn_c_try_link "$LINENO"; then : 17296 eval $cacheid=yes 17297else 17298 eval $cacheid=no 17299fi 17300rm -f core conftest.err conftest.$ac_objext \ 17301 conftest$ac_exeext conftest.$ac_ext 17302fi 17303 17304 17305 CFLAGS="$xorg_testset_save_CFLAGS" 17306 17307 eval supported=\$$cacheid 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17309$as_echo "$supported" >&6; } 17310 if test "$supported" = "yes" ; then 17311 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17312 found="yes" 17313 fi 17314 fi 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330xorg_testset_save_CFLAGS="$CFLAGS" 17331 17332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17337 $as_echo_n "(cached) " >&6 17338else 17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17340/* end confdefs.h. */ 17341int i; 17342_ACEOF 17343if ac_fn_c_try_compile "$LINENO"; then : 17344 xorg_cv_cc_flag_unknown_warning_option=yes 17345else 17346 xorg_cv_cc_flag_unknown_warning_option=no 17347fi 17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17349fi 17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17353 CFLAGS="$xorg_testset_save_CFLAGS" 17354fi 17355 17356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17359 fi 17360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17364 $as_echo_n "(cached) " >&6 17365else 17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17367/* end confdefs.h. */ 17368int i; 17369_ACEOF 17370if ac_fn_c_try_compile "$LINENO"; then : 17371 xorg_cv_cc_flag_unused_command_line_argument=yes 17372else 17373 xorg_cv_cc_flag_unused_command_line_argument=no 17374fi 17375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17376fi 17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17380 CFLAGS="$xorg_testset_save_CFLAGS" 17381fi 17382 17383found="no" 17384 17385 if test $found = "no" ; then 17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17388 fi 17389 17390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17392 fi 17393 17394 CFLAGS="$CFLAGS -Winit-self" 17395 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17397$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 17398 cacheid=xorg_cv_cc_flag__Winit_self 17399 if eval \${$cacheid+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401else 17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17403/* end confdefs.h. */ 17404int i; 17405int 17406main () 17407{ 17408 17409 ; 17410 return 0; 17411} 17412_ACEOF 17413if ac_fn_c_try_link "$LINENO"; then : 17414 eval $cacheid=yes 17415else 17416 eval $cacheid=no 17417fi 17418rm -f core conftest.err conftest.$ac_objext \ 17419 conftest$ac_exeext conftest.$ac_ext 17420fi 17421 17422 17423 CFLAGS="$xorg_testset_save_CFLAGS" 17424 17425 eval supported=\$$cacheid 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17427$as_echo "$supported" >&6; } 17428 if test "$supported" = "yes" ; then 17429 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17430 found="yes" 17431 fi 17432 fi 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448xorg_testset_save_CFLAGS="$CFLAGS" 17449 17450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17455 $as_echo_n "(cached) " >&6 17456else 17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17458/* end confdefs.h. */ 17459int i; 17460_ACEOF 17461if ac_fn_c_try_compile "$LINENO"; then : 17462 xorg_cv_cc_flag_unknown_warning_option=yes 17463else 17464 xorg_cv_cc_flag_unknown_warning_option=no 17465fi 17466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17467fi 17468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17471 CFLAGS="$xorg_testset_save_CFLAGS" 17472fi 17473 17474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17477 fi 17478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17482 $as_echo_n "(cached) " >&6 17483else 17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485/* end confdefs.h. */ 17486int i; 17487_ACEOF 17488if ac_fn_c_try_compile "$LINENO"; then : 17489 xorg_cv_cc_flag_unused_command_line_argument=yes 17490else 17491 xorg_cv_cc_flag_unused_command_line_argument=no 17492fi 17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17494fi 17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17498 CFLAGS="$xorg_testset_save_CFLAGS" 17499fi 17500 17501found="no" 17502 17503 if test $found = "no" ; then 17504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17506 fi 17507 17508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17510 fi 17511 17512 CFLAGS="$CFLAGS -Wmain" 17513 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17515$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17516 cacheid=xorg_cv_cc_flag__Wmain 17517 if eval \${$cacheid+:} false; then : 17518 $as_echo_n "(cached) " >&6 17519else 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521/* end confdefs.h. */ 17522int i; 17523int 17524main () 17525{ 17526 17527 ; 17528 return 0; 17529} 17530_ACEOF 17531if ac_fn_c_try_link "$LINENO"; then : 17532 eval $cacheid=yes 17533else 17534 eval $cacheid=no 17535fi 17536rm -f core conftest.err conftest.$ac_objext \ 17537 conftest$ac_exeext conftest.$ac_ext 17538fi 17539 17540 17541 CFLAGS="$xorg_testset_save_CFLAGS" 17542 17543 eval supported=\$$cacheid 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17545$as_echo "$supported" >&6; } 17546 if test "$supported" = "yes" ; then 17547 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17548 found="yes" 17549 fi 17550 fi 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566xorg_testset_save_CFLAGS="$CFLAGS" 17567 17568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17573 $as_echo_n "(cached) " >&6 17574else 17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17576/* end confdefs.h. */ 17577int i; 17578_ACEOF 17579if ac_fn_c_try_compile "$LINENO"; then : 17580 xorg_cv_cc_flag_unknown_warning_option=yes 17581else 17582 xorg_cv_cc_flag_unknown_warning_option=no 17583fi 17584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17585fi 17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17589 CFLAGS="$xorg_testset_save_CFLAGS" 17590fi 17591 17592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17595 fi 17596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17600 $as_echo_n "(cached) " >&6 17601else 17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17603/* end confdefs.h. */ 17604int i; 17605_ACEOF 17606if ac_fn_c_try_compile "$LINENO"; then : 17607 xorg_cv_cc_flag_unused_command_line_argument=yes 17608else 17609 xorg_cv_cc_flag_unused_command_line_argument=no 17610fi 17611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17612fi 17613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17616 CFLAGS="$xorg_testset_save_CFLAGS" 17617fi 17618 17619found="no" 17620 17621 if test $found = "no" ; then 17622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17624 fi 17625 17626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17628 fi 17629 17630 CFLAGS="$CFLAGS -Wmissing-braces" 17631 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17633$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17634 cacheid=xorg_cv_cc_flag__Wmissing_braces 17635 if eval \${$cacheid+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640int i; 17641int 17642main () 17643{ 17644 17645 ; 17646 return 0; 17647} 17648_ACEOF 17649if ac_fn_c_try_link "$LINENO"; then : 17650 eval $cacheid=yes 17651else 17652 eval $cacheid=no 17653fi 17654rm -f core conftest.err conftest.$ac_objext \ 17655 conftest$ac_exeext conftest.$ac_ext 17656fi 17657 17658 17659 CFLAGS="$xorg_testset_save_CFLAGS" 17660 17661 eval supported=\$$cacheid 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17663$as_echo "$supported" >&6; } 17664 if test "$supported" = "yes" ; then 17665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17666 found="yes" 17667 fi 17668 fi 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684xorg_testset_save_CFLAGS="$CFLAGS" 17685 17686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17691 $as_echo_n "(cached) " >&6 17692else 17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17694/* end confdefs.h. */ 17695int i; 17696_ACEOF 17697if ac_fn_c_try_compile "$LINENO"; then : 17698 xorg_cv_cc_flag_unknown_warning_option=yes 17699else 17700 xorg_cv_cc_flag_unknown_warning_option=no 17701fi 17702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17703fi 17704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17707 CFLAGS="$xorg_testset_save_CFLAGS" 17708fi 17709 17710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17713 fi 17714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17718 $as_echo_n "(cached) " >&6 17719else 17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17721/* end confdefs.h. */ 17722int i; 17723_ACEOF 17724if ac_fn_c_try_compile "$LINENO"; then : 17725 xorg_cv_cc_flag_unused_command_line_argument=yes 17726else 17727 xorg_cv_cc_flag_unused_command_line_argument=no 17728fi 17729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17730fi 17731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17734 CFLAGS="$xorg_testset_save_CFLAGS" 17735fi 17736 17737found="no" 17738 17739 if test $found = "no" ; then 17740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17742 fi 17743 17744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17746 fi 17747 17748 CFLAGS="$CFLAGS -Wsequence-point" 17749 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17751$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17752 cacheid=xorg_cv_cc_flag__Wsequence_point 17753 if eval \${$cacheid+:} false; then : 17754 $as_echo_n "(cached) " >&6 17755else 17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758int i; 17759int 17760main () 17761{ 17762 17763 ; 17764 return 0; 17765} 17766_ACEOF 17767if ac_fn_c_try_link "$LINENO"; then : 17768 eval $cacheid=yes 17769else 17770 eval $cacheid=no 17771fi 17772rm -f core conftest.err conftest.$ac_objext \ 17773 conftest$ac_exeext conftest.$ac_ext 17774fi 17775 17776 17777 CFLAGS="$xorg_testset_save_CFLAGS" 17778 17779 eval supported=\$$cacheid 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17781$as_echo "$supported" >&6; } 17782 if test "$supported" = "yes" ; then 17783 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17784 found="yes" 17785 fi 17786 fi 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802xorg_testset_save_CFLAGS="$CFLAGS" 17803 17804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17809 $as_echo_n "(cached) " >&6 17810else 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812/* end confdefs.h. */ 17813int i; 17814_ACEOF 17815if ac_fn_c_try_compile "$LINENO"; then : 17816 xorg_cv_cc_flag_unknown_warning_option=yes 17817else 17818 xorg_cv_cc_flag_unknown_warning_option=no 17819fi 17820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17821fi 17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17825 CFLAGS="$xorg_testset_save_CFLAGS" 17826fi 17827 17828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17831 fi 17832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17836 $as_echo_n "(cached) " >&6 17837else 17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17839/* end confdefs.h. */ 17840int i; 17841_ACEOF 17842if ac_fn_c_try_compile "$LINENO"; then : 17843 xorg_cv_cc_flag_unused_command_line_argument=yes 17844else 17845 xorg_cv_cc_flag_unused_command_line_argument=no 17846fi 17847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17848fi 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17852 CFLAGS="$xorg_testset_save_CFLAGS" 17853fi 17854 17855found="no" 17856 17857 if test $found = "no" ; then 17858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17860 fi 17861 17862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17864 fi 17865 17866 CFLAGS="$CFLAGS -Wreturn-type" 17867 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17869$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17870 cacheid=xorg_cv_cc_flag__Wreturn_type 17871 if eval \${$cacheid+:} false; then : 17872 $as_echo_n "(cached) " >&6 17873else 17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17875/* end confdefs.h. */ 17876int i; 17877int 17878main () 17879{ 17880 17881 ; 17882 return 0; 17883} 17884_ACEOF 17885if ac_fn_c_try_link "$LINENO"; then : 17886 eval $cacheid=yes 17887else 17888 eval $cacheid=no 17889fi 17890rm -f core conftest.err conftest.$ac_objext \ 17891 conftest$ac_exeext conftest.$ac_ext 17892fi 17893 17894 17895 CFLAGS="$xorg_testset_save_CFLAGS" 17896 17897 eval supported=\$$cacheid 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17899$as_echo "$supported" >&6; } 17900 if test "$supported" = "yes" ; then 17901 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17902 found="yes" 17903 fi 17904 fi 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920xorg_testset_save_CFLAGS="$CFLAGS" 17921 17922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17927 $as_echo_n "(cached) " >&6 17928else 17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17930/* end confdefs.h. */ 17931int i; 17932_ACEOF 17933if ac_fn_c_try_compile "$LINENO"; then : 17934 xorg_cv_cc_flag_unknown_warning_option=yes 17935else 17936 xorg_cv_cc_flag_unknown_warning_option=no 17937fi 17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17939fi 17940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17943 CFLAGS="$xorg_testset_save_CFLAGS" 17944fi 17945 17946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17949 fi 17950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17954 $as_echo_n "(cached) " >&6 17955else 17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17957/* end confdefs.h. */ 17958int i; 17959_ACEOF 17960if ac_fn_c_try_compile "$LINENO"; then : 17961 xorg_cv_cc_flag_unused_command_line_argument=yes 17962else 17963 xorg_cv_cc_flag_unused_command_line_argument=no 17964fi 17965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17966fi 17967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17970 CFLAGS="$xorg_testset_save_CFLAGS" 17971fi 17972 17973found="no" 17974 17975 if test $found = "no" ; then 17976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17978 fi 17979 17980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17982 fi 17983 17984 CFLAGS="$CFLAGS -Wtrigraphs" 17985 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17987$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17988 cacheid=xorg_cv_cc_flag__Wtrigraphs 17989 if eval \${$cacheid+:} false; then : 17990 $as_echo_n "(cached) " >&6 17991else 17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17993/* end confdefs.h. */ 17994int i; 17995int 17996main () 17997{ 17998 17999 ; 18000 return 0; 18001} 18002_ACEOF 18003if ac_fn_c_try_link "$LINENO"; then : 18004 eval $cacheid=yes 18005else 18006 eval $cacheid=no 18007fi 18008rm -f core conftest.err conftest.$ac_objext \ 18009 conftest$ac_exeext conftest.$ac_ext 18010fi 18011 18012 18013 CFLAGS="$xorg_testset_save_CFLAGS" 18014 18015 eval supported=\$$cacheid 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18017$as_echo "$supported" >&6; } 18018 if test "$supported" = "yes" ; then 18019 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18020 found="yes" 18021 fi 18022 fi 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038xorg_testset_save_CFLAGS="$CFLAGS" 18039 18040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18045 $as_echo_n "(cached) " >&6 18046else 18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18048/* end confdefs.h. */ 18049int i; 18050_ACEOF 18051if ac_fn_c_try_compile "$LINENO"; then : 18052 xorg_cv_cc_flag_unknown_warning_option=yes 18053else 18054 xorg_cv_cc_flag_unknown_warning_option=no 18055fi 18056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18057fi 18058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18061 CFLAGS="$xorg_testset_save_CFLAGS" 18062fi 18063 18064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18067 fi 18068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18072 $as_echo_n "(cached) " >&6 18073else 18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18075/* end confdefs.h. */ 18076int i; 18077_ACEOF 18078if ac_fn_c_try_compile "$LINENO"; then : 18079 xorg_cv_cc_flag_unused_command_line_argument=yes 18080else 18081 xorg_cv_cc_flag_unused_command_line_argument=no 18082fi 18083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18084fi 18085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18088 CFLAGS="$xorg_testset_save_CFLAGS" 18089fi 18090 18091found="no" 18092 18093 if test $found = "no" ; then 18094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18096 fi 18097 18098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18100 fi 18101 18102 CFLAGS="$CFLAGS -Warray-bounds" 18103 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18105$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 18106 cacheid=xorg_cv_cc_flag__Warray_bounds 18107 if eval \${$cacheid+:} false; then : 18108 $as_echo_n "(cached) " >&6 18109else 18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18111/* end confdefs.h. */ 18112int i; 18113int 18114main () 18115{ 18116 18117 ; 18118 return 0; 18119} 18120_ACEOF 18121if ac_fn_c_try_link "$LINENO"; then : 18122 eval $cacheid=yes 18123else 18124 eval $cacheid=no 18125fi 18126rm -f core conftest.err conftest.$ac_objext \ 18127 conftest$ac_exeext conftest.$ac_ext 18128fi 18129 18130 18131 CFLAGS="$xorg_testset_save_CFLAGS" 18132 18133 eval supported=\$$cacheid 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18135$as_echo "$supported" >&6; } 18136 if test "$supported" = "yes" ; then 18137 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18138 found="yes" 18139 fi 18140 fi 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156xorg_testset_save_CFLAGS="$CFLAGS" 18157 18158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18163 $as_echo_n "(cached) " >&6 18164else 18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18166/* end confdefs.h. */ 18167int i; 18168_ACEOF 18169if ac_fn_c_try_compile "$LINENO"; then : 18170 xorg_cv_cc_flag_unknown_warning_option=yes 18171else 18172 xorg_cv_cc_flag_unknown_warning_option=no 18173fi 18174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18175fi 18176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18179 CFLAGS="$xorg_testset_save_CFLAGS" 18180fi 18181 18182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18185 fi 18186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18190 $as_echo_n "(cached) " >&6 18191else 18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18193/* end confdefs.h. */ 18194int i; 18195_ACEOF 18196if ac_fn_c_try_compile "$LINENO"; then : 18197 xorg_cv_cc_flag_unused_command_line_argument=yes 18198else 18199 xorg_cv_cc_flag_unused_command_line_argument=no 18200fi 18201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18202fi 18203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18206 CFLAGS="$xorg_testset_save_CFLAGS" 18207fi 18208 18209found="no" 18210 18211 if test $found = "no" ; then 18212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18214 fi 18215 18216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18218 fi 18219 18220 CFLAGS="$CFLAGS -Wwrite-strings" 18221 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18223$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 18224 cacheid=xorg_cv_cc_flag__Wwrite_strings 18225 if eval \${$cacheid+:} false; then : 18226 $as_echo_n "(cached) " >&6 18227else 18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18229/* end confdefs.h. */ 18230int i; 18231int 18232main () 18233{ 18234 18235 ; 18236 return 0; 18237} 18238_ACEOF 18239if ac_fn_c_try_link "$LINENO"; then : 18240 eval $cacheid=yes 18241else 18242 eval $cacheid=no 18243fi 18244rm -f core conftest.err conftest.$ac_objext \ 18245 conftest$ac_exeext conftest.$ac_ext 18246fi 18247 18248 18249 CFLAGS="$xorg_testset_save_CFLAGS" 18250 18251 eval supported=\$$cacheid 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18253$as_echo "$supported" >&6; } 18254 if test "$supported" = "yes" ; then 18255 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18256 found="yes" 18257 fi 18258 fi 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274xorg_testset_save_CFLAGS="$CFLAGS" 18275 18276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18281 $as_echo_n "(cached) " >&6 18282else 18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18284/* end confdefs.h. */ 18285int i; 18286_ACEOF 18287if ac_fn_c_try_compile "$LINENO"; then : 18288 xorg_cv_cc_flag_unknown_warning_option=yes 18289else 18290 xorg_cv_cc_flag_unknown_warning_option=no 18291fi 18292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18293fi 18294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18297 CFLAGS="$xorg_testset_save_CFLAGS" 18298fi 18299 18300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18303 fi 18304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18308 $as_echo_n "(cached) " >&6 18309else 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311/* end confdefs.h. */ 18312int i; 18313_ACEOF 18314if ac_fn_c_try_compile "$LINENO"; then : 18315 xorg_cv_cc_flag_unused_command_line_argument=yes 18316else 18317 xorg_cv_cc_flag_unused_command_line_argument=no 18318fi 18319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18320fi 18321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18324 CFLAGS="$xorg_testset_save_CFLAGS" 18325fi 18326 18327found="no" 18328 18329 if test $found = "no" ; then 18330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18332 fi 18333 18334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18336 fi 18337 18338 CFLAGS="$CFLAGS -Waddress" 18339 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18341$as_echo_n "checking if $CC supports -Waddress... " >&6; } 18342 cacheid=xorg_cv_cc_flag__Waddress 18343 if eval \${$cacheid+:} false; then : 18344 $as_echo_n "(cached) " >&6 18345else 18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18347/* end confdefs.h. */ 18348int i; 18349int 18350main () 18351{ 18352 18353 ; 18354 return 0; 18355} 18356_ACEOF 18357if ac_fn_c_try_link "$LINENO"; then : 18358 eval $cacheid=yes 18359else 18360 eval $cacheid=no 18361fi 18362rm -f core conftest.err conftest.$ac_objext \ 18363 conftest$ac_exeext conftest.$ac_ext 18364fi 18365 18366 18367 CFLAGS="$xorg_testset_save_CFLAGS" 18368 18369 eval supported=\$$cacheid 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18371$as_echo "$supported" >&6; } 18372 if test "$supported" = "yes" ; then 18373 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18374 found="yes" 18375 fi 18376 fi 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392xorg_testset_save_CFLAGS="$CFLAGS" 18393 18394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18399 $as_echo_n "(cached) " >&6 18400else 18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18402/* end confdefs.h. */ 18403int i; 18404_ACEOF 18405if ac_fn_c_try_compile "$LINENO"; then : 18406 xorg_cv_cc_flag_unknown_warning_option=yes 18407else 18408 xorg_cv_cc_flag_unknown_warning_option=no 18409fi 18410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18411fi 18412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18415 CFLAGS="$xorg_testset_save_CFLAGS" 18416fi 18417 18418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18421 fi 18422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18426 $as_echo_n "(cached) " >&6 18427else 18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18429/* end confdefs.h. */ 18430int i; 18431_ACEOF 18432if ac_fn_c_try_compile "$LINENO"; then : 18433 xorg_cv_cc_flag_unused_command_line_argument=yes 18434else 18435 xorg_cv_cc_flag_unused_command_line_argument=no 18436fi 18437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18438fi 18439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18442 CFLAGS="$xorg_testset_save_CFLAGS" 18443fi 18444 18445found="no" 18446 18447 if test $found = "no" ; then 18448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18450 fi 18451 18452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18454 fi 18455 18456 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18457 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18459$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18460 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18461 if eval \${$cacheid+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463else 18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18465/* end confdefs.h. */ 18466int i; 18467int 18468main () 18469{ 18470 18471 ; 18472 return 0; 18473} 18474_ACEOF 18475if ac_fn_c_try_link "$LINENO"; then : 18476 eval $cacheid=yes 18477else 18478 eval $cacheid=no 18479fi 18480rm -f core conftest.err conftest.$ac_objext \ 18481 conftest$ac_exeext conftest.$ac_ext 18482fi 18483 18484 18485 CFLAGS="$xorg_testset_save_CFLAGS" 18486 18487 eval supported=\$$cacheid 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18489$as_echo "$supported" >&6; } 18490 if test "$supported" = "yes" ; then 18491 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18492 found="yes" 18493 fi 18494 fi 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510xorg_testset_save_CFLAGS="$CFLAGS" 18511 18512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18517 $as_echo_n "(cached) " >&6 18518else 18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18520/* end confdefs.h. */ 18521int i; 18522_ACEOF 18523if ac_fn_c_try_compile "$LINENO"; then : 18524 xorg_cv_cc_flag_unknown_warning_option=yes 18525else 18526 xorg_cv_cc_flag_unknown_warning_option=no 18527fi 18528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18529fi 18530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18533 CFLAGS="$xorg_testset_save_CFLAGS" 18534fi 18535 18536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18539 fi 18540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18544 $as_echo_n "(cached) " >&6 18545else 18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18547/* end confdefs.h. */ 18548int i; 18549_ACEOF 18550if ac_fn_c_try_compile "$LINENO"; then : 18551 xorg_cv_cc_flag_unused_command_line_argument=yes 18552else 18553 xorg_cv_cc_flag_unused_command_line_argument=no 18554fi 18555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18556fi 18557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18560 CFLAGS="$xorg_testset_save_CFLAGS" 18561fi 18562 18563found="no" 18564 18565 if test $found = "no" ; then 18566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18568 fi 18569 18570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18572 fi 18573 18574 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18575 18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18577$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18578 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18579 if eval \${$cacheid+:} false; then : 18580 $as_echo_n "(cached) " >&6 18581else 18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18583/* end confdefs.h. */ 18584int i; 18585int 18586main () 18587{ 18588 18589 ; 18590 return 0; 18591} 18592_ACEOF 18593if ac_fn_c_try_link "$LINENO"; then : 18594 eval $cacheid=yes 18595else 18596 eval $cacheid=no 18597fi 18598rm -f core conftest.err conftest.$ac_objext \ 18599 conftest$ac_exeext conftest.$ac_ext 18600fi 18601 18602 18603 CFLAGS="$xorg_testset_save_CFLAGS" 18604 18605 eval supported=\$$cacheid 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18607$as_echo "$supported" >&6; } 18608 if test "$supported" = "yes" ; then 18609 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18610 found="yes" 18611 fi 18612 fi 18613 18614 18615fi 18616 18617 18618 18619 18620 18621 18622 18623 CWARNFLAGS="$BASE_CFLAGS" 18624 if test "x$GCC" = xyes ; then 18625 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18626 fi 18627 18628 18629 18630 18631 18632 18633 18634 18635# Check whether --enable-strict-compilation was given. 18636if test "${enable_strict_compilation+set}" = set; then : 18637 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18638else 18639 STRICT_COMPILE=no 18640fi 18641 18642 18643 18644 18645 18646 18647STRICT_CFLAGS="" 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661xorg_testset_save_CFLAGS="$CFLAGS" 18662 18663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18668 $as_echo_n "(cached) " >&6 18669else 18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672int i; 18673_ACEOF 18674if ac_fn_c_try_compile "$LINENO"; then : 18675 xorg_cv_cc_flag_unknown_warning_option=yes 18676else 18677 xorg_cv_cc_flag_unknown_warning_option=no 18678fi 18679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18680fi 18681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18684 CFLAGS="$xorg_testset_save_CFLAGS" 18685fi 18686 18687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18690 fi 18691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18695 $as_echo_n "(cached) " >&6 18696else 18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18698/* end confdefs.h. */ 18699int i; 18700_ACEOF 18701if ac_fn_c_try_compile "$LINENO"; then : 18702 xorg_cv_cc_flag_unused_command_line_argument=yes 18703else 18704 xorg_cv_cc_flag_unused_command_line_argument=no 18705fi 18706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18707fi 18708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18711 CFLAGS="$xorg_testset_save_CFLAGS" 18712fi 18713 18714found="no" 18715 18716 if test $found = "no" ; then 18717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18719 fi 18720 18721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18723 fi 18724 18725 CFLAGS="$CFLAGS -pedantic" 18726 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18728$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18729 cacheid=xorg_cv_cc_flag__pedantic 18730 if eval \${$cacheid+:} false; then : 18731 $as_echo_n "(cached) " >&6 18732else 18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18734/* end confdefs.h. */ 18735int i; 18736int 18737main () 18738{ 18739 18740 ; 18741 return 0; 18742} 18743_ACEOF 18744if ac_fn_c_try_link "$LINENO"; then : 18745 eval $cacheid=yes 18746else 18747 eval $cacheid=no 18748fi 18749rm -f core conftest.err conftest.$ac_objext \ 18750 conftest$ac_exeext conftest.$ac_ext 18751fi 18752 18753 18754 CFLAGS="$xorg_testset_save_CFLAGS" 18755 18756 eval supported=\$$cacheid 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18758$as_echo "$supported" >&6; } 18759 if test "$supported" = "yes" ; then 18760 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18761 found="yes" 18762 fi 18763 fi 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779xorg_testset_save_CFLAGS="$CFLAGS" 18780 18781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18786 $as_echo_n "(cached) " >&6 18787else 18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18789/* end confdefs.h. */ 18790int i; 18791_ACEOF 18792if ac_fn_c_try_compile "$LINENO"; then : 18793 xorg_cv_cc_flag_unknown_warning_option=yes 18794else 18795 xorg_cv_cc_flag_unknown_warning_option=no 18796fi 18797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18798fi 18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18802 CFLAGS="$xorg_testset_save_CFLAGS" 18803fi 18804 18805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18808 fi 18809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18813 $as_echo_n "(cached) " >&6 18814else 18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816/* end confdefs.h. */ 18817int i; 18818_ACEOF 18819if ac_fn_c_try_compile "$LINENO"; then : 18820 xorg_cv_cc_flag_unused_command_line_argument=yes 18821else 18822 xorg_cv_cc_flag_unused_command_line_argument=no 18823fi 18824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18825fi 18826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18829 CFLAGS="$xorg_testset_save_CFLAGS" 18830fi 18831 18832found="no" 18833 18834 if test $found = "no" ; then 18835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18837 fi 18838 18839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18841 fi 18842 18843 CFLAGS="$CFLAGS -Werror" 18844 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18846$as_echo_n "checking if $CC supports -Werror... " >&6; } 18847 cacheid=xorg_cv_cc_flag__Werror 18848 if eval \${$cacheid+:} false; then : 18849 $as_echo_n "(cached) " >&6 18850else 18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18852/* end confdefs.h. */ 18853int i; 18854int 18855main () 18856{ 18857 18858 ; 18859 return 0; 18860} 18861_ACEOF 18862if ac_fn_c_try_link "$LINENO"; then : 18863 eval $cacheid=yes 18864else 18865 eval $cacheid=no 18866fi 18867rm -f core conftest.err conftest.$ac_objext \ 18868 conftest$ac_exeext conftest.$ac_ext 18869fi 18870 18871 18872 CFLAGS="$xorg_testset_save_CFLAGS" 18873 18874 eval supported=\$$cacheid 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18876$as_echo "$supported" >&6; } 18877 if test "$supported" = "yes" ; then 18878 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18879 found="yes" 18880 fi 18881 fi 18882 18883 if test $found = "no" ; then 18884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18886 fi 18887 18888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18890 fi 18891 18892 CFLAGS="$CFLAGS -errwarn" 18893 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18895$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18896 cacheid=xorg_cv_cc_flag__errwarn 18897 if eval \${$cacheid+:} false; then : 18898 $as_echo_n "(cached) " >&6 18899else 18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18901/* end confdefs.h. */ 18902int i; 18903int 18904main () 18905{ 18906 18907 ; 18908 return 0; 18909} 18910_ACEOF 18911if ac_fn_c_try_link "$LINENO"; then : 18912 eval $cacheid=yes 18913else 18914 eval $cacheid=no 18915fi 18916rm -f core conftest.err conftest.$ac_objext \ 18917 conftest$ac_exeext conftest.$ac_ext 18918fi 18919 18920 18921 CFLAGS="$xorg_testset_save_CFLAGS" 18922 18923 eval supported=\$$cacheid 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18925$as_echo "$supported" >&6; } 18926 if test "$supported" = "yes" ; then 18927 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18928 found="yes" 18929 fi 18930 fi 18931 18932 18933 18934# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18935# activate it with -Werror, so we add it here explicitly. 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949xorg_testset_save_CFLAGS="$CFLAGS" 18950 18951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18956 $as_echo_n "(cached) " >&6 18957else 18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18959/* end confdefs.h. */ 18960int i; 18961_ACEOF 18962if ac_fn_c_try_compile "$LINENO"; then : 18963 xorg_cv_cc_flag_unknown_warning_option=yes 18964else 18965 xorg_cv_cc_flag_unknown_warning_option=no 18966fi 18967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18968fi 18969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18972 CFLAGS="$xorg_testset_save_CFLAGS" 18973fi 18974 18975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18978 fi 18979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18983 $as_echo_n "(cached) " >&6 18984else 18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986/* end confdefs.h. */ 18987int i; 18988_ACEOF 18989if ac_fn_c_try_compile "$LINENO"; then : 18990 xorg_cv_cc_flag_unused_command_line_argument=yes 18991else 18992 xorg_cv_cc_flag_unused_command_line_argument=no 18993fi 18994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18995fi 18996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18999 CFLAGS="$xorg_testset_save_CFLAGS" 19000fi 19001 19002found="no" 19003 19004 if test $found = "no" ; then 19005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19007 fi 19008 19009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19011 fi 19012 19013 CFLAGS="$CFLAGS -Werror=attributes" 19014 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19016$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 19017 cacheid=xorg_cv_cc_flag__Werror_attributes 19018 if eval \${$cacheid+:} false; then : 19019 $as_echo_n "(cached) " >&6 19020else 19021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19022/* end confdefs.h. */ 19023int i; 19024int 19025main () 19026{ 19027 19028 ; 19029 return 0; 19030} 19031_ACEOF 19032if ac_fn_c_try_link "$LINENO"; then : 19033 eval $cacheid=yes 19034else 19035 eval $cacheid=no 19036fi 19037rm -f core conftest.err conftest.$ac_objext \ 19038 conftest$ac_exeext conftest.$ac_ext 19039fi 19040 19041 19042 CFLAGS="$xorg_testset_save_CFLAGS" 19043 19044 eval supported=\$$cacheid 19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19046$as_echo "$supported" >&6; } 19047 if test "$supported" = "yes" ; then 19048 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19049 found="yes" 19050 fi 19051 fi 19052 19053 19054 19055if test "x$STRICT_COMPILE" = "xyes"; then 19056 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19057 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19058fi 19059 19060 19061 19062 19063 19064 19065cat >>confdefs.h <<_ACEOF 19066#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19067_ACEOF 19068 19069 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19070 if test "x$PVM" = "x"; then 19071 PVM="0" 19072 fi 19073 19074cat >>confdefs.h <<_ACEOF 19075#define PACKAGE_VERSION_MINOR $PVM 19076_ACEOF 19077 19078 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19079 if test "x$PVP" = "x"; then 19080 PVP="0" 19081 fi 19082 19083cat >>confdefs.h <<_ACEOF 19084#define PACKAGE_VERSION_PATCHLEVEL $PVP 19085_ACEOF 19086 19087 19088 19089CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 19090mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19091|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 19092echo 'git directory not found: installing possibly empty changelog.' >&2)" 19093 19094 19095 19096 19097macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19098INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19099mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19100|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 19101echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 19102 19103 19104 19105 19106 19107 19108if test x$APP_MAN_SUFFIX = x ; then 19109 APP_MAN_SUFFIX=1 19110fi 19111if test x$APP_MAN_DIR = x ; then 19112 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19113fi 19114 19115if test x$LIB_MAN_SUFFIX = x ; then 19116 LIB_MAN_SUFFIX=3 19117fi 19118if test x$LIB_MAN_DIR = x ; then 19119 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19120fi 19121 19122if test x$FILE_MAN_SUFFIX = x ; then 19123 case $host_os in 19124 solaris*) FILE_MAN_SUFFIX=4 ;; 19125 *) FILE_MAN_SUFFIX=5 ;; 19126 esac 19127fi 19128if test x$FILE_MAN_DIR = x ; then 19129 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19130fi 19131 19132if test x$MISC_MAN_SUFFIX = x ; then 19133 case $host_os in 19134 solaris*) MISC_MAN_SUFFIX=5 ;; 19135 *) MISC_MAN_SUFFIX=7 ;; 19136 esac 19137fi 19138if test x$MISC_MAN_DIR = x ; then 19139 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19140fi 19141 19142if test x$DRIVER_MAN_SUFFIX = x ; then 19143 case $host_os in 19144 solaris*) DRIVER_MAN_SUFFIX=7 ;; 19145 *) DRIVER_MAN_SUFFIX=4 ;; 19146 esac 19147fi 19148if test x$DRIVER_MAN_DIR = x ; then 19149 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19150fi 19151 19152if test x$ADMIN_MAN_SUFFIX = x ; then 19153 case $host_os in 19154 solaris*) ADMIN_MAN_SUFFIX=1m ;; 19155 *) ADMIN_MAN_SUFFIX=8 ;; 19156 esac 19157fi 19158if test x$ADMIN_MAN_DIR = x ; then 19159 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19160fi 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176XORG_MAN_PAGE="X Version 11" 19177 19178MAN_SUBSTS="\ 19179 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19180 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19181 -e 's|__xservername__|Xorg|g' \ 19182 -e 's|__xconfigfile__|xorg.conf|g' \ 19183 -e 's|__projectroot__|\$(prefix)|g' \ 19184 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19185 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19186 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19187 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19188 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19189 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19190 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19191 19192 19193 19194# Check whether --enable-silent-rules was given. 19195if test "${enable_silent_rules+set}" = set; then : 19196 enableval=$enable_silent_rules; 19197fi 19198 19199case $enable_silent_rules in # ((( 19200 yes) AM_DEFAULT_VERBOSITY=0;; 19201 no) AM_DEFAULT_VERBOSITY=1;; 19202 *) AM_DEFAULT_VERBOSITY=0;; 19203esac 19204am_make=${MAKE-make} 19205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19206$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 19207if ${am_cv_make_support_nested_variables+:} false; then : 19208 $as_echo_n "(cached) " >&6 19209else 19210 if $as_echo 'TRUE=$(BAR$(V)) 19211BAR0=false 19212BAR1=true 19213V=1 19214am__doit: 19215 @$(TRUE) 19216.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19217 am_cv_make_support_nested_variables=yes 19218else 19219 am_cv_make_support_nested_variables=no 19220fi 19221fi 19222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19223$as_echo "$am_cv_make_support_nested_variables" >&6; } 19224if test $am_cv_make_support_nested_variables = yes; then 19225 AM_V='$(V)' 19226 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19227else 19228 AM_V=$AM_DEFAULT_VERBOSITY 19229 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19230fi 19231AM_BACKSLASH='\' 19232 19233 19234 19235 19236# Check whether --enable-devel-docs was given. 19237if test "${enable_devel_docs+set}" = set; then : 19238 enableval=$enable_devel_docs; build_devel_docs=$enableval 19239else 19240 build_devel_docs=yes 19241fi 19242 19243 19244 if test x$build_devel_docs = xyes; then 19245 ENABLE_DEVEL_DOCS_TRUE= 19246 ENABLE_DEVEL_DOCS_FALSE='#' 19247else 19248 ENABLE_DEVEL_DOCS_TRUE='#' 19249 ENABLE_DEVEL_DOCS_FALSE= 19250fi 19251 19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 19253$as_echo_n "checking whether to build developer documentation... " >&6; } 19254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 19255$as_echo "$build_devel_docs" >&6; } 19256 19257 19258 19259 19260 19261 19262# Check whether --with-doxygen was given. 19263if test "${with_doxygen+set}" = set; then : 19264 withval=$with_doxygen; use_doxygen=$withval 19265else 19266 use_doxygen=auto 19267fi 19268 19269 19270 19271if test "x$use_doxygen" = x"auto"; then 19272 # Extract the first word of "doxygen", so it can be a program name with args. 19273set dummy doxygen; ac_word=$2 19274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19275$as_echo_n "checking for $ac_word... " >&6; } 19276if ${ac_cv_path_DOXYGEN+:} false; then : 19277 $as_echo_n "(cached) " >&6 19278else 19279 case $DOXYGEN in 19280 [\\/]* | ?:[\\/]*) 19281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 19282 ;; 19283 *) 19284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19285for as_dir in $PATH 19286do 19287 IFS=$as_save_IFS 19288 test -z "$as_dir" && as_dir=. 19289 for ac_exec_ext in '' $ac_executable_extensions; do 19290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 19292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19293 break 2 19294 fi 19295done 19296 done 19297IFS=$as_save_IFS 19298 19299 ;; 19300esac 19301fi 19302DOXYGEN=$ac_cv_path_DOXYGEN 19303if test -n "$DOXYGEN"; then 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 19305$as_echo "$DOXYGEN" >&6; } 19306else 19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19308$as_echo "no" >&6; } 19309fi 19310 19311 19312 if test "x$DOXYGEN" = "x"; then 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 19314$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 19315 have_doxygen=no 19316 else 19317 have_doxygen=yes 19318 fi 19319elif test "x$use_doxygen" = x"yes" ; then 19320 # Extract the first word of "doxygen", so it can be a program name with args. 19321set dummy doxygen; ac_word=$2 19322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19323$as_echo_n "checking for $ac_word... " >&6; } 19324if ${ac_cv_path_DOXYGEN+:} false; then : 19325 $as_echo_n "(cached) " >&6 19326else 19327 case $DOXYGEN in 19328 [\\/]* | ?:[\\/]*) 19329 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 19330 ;; 19331 *) 19332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19333for as_dir in $PATH 19334do 19335 IFS=$as_save_IFS 19336 test -z "$as_dir" && as_dir=. 19337 for ac_exec_ext in '' $ac_executable_extensions; do 19338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19339 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 19340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19341 break 2 19342 fi 19343done 19344 done 19345IFS=$as_save_IFS 19346 19347 ;; 19348esac 19349fi 19350DOXYGEN=$ac_cv_path_DOXYGEN 19351if test -n "$DOXYGEN"; then 19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 19353$as_echo "$DOXYGEN" >&6; } 19354else 19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19356$as_echo "no" >&6; } 19357fi 19358 19359 19360 if test "x$DOXYGEN" = "x"; then 19361 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 19362 fi 19363 have_doxygen=yes 19364elif test "x$use_doxygen" = x"no" ; then 19365 if test "x$DOXYGEN" != "x"; then 19366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 19367$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 19368 fi 19369 have_doxygen=no 19370else 19371 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 19372fi 19373 19374 19375HAVE_DOT=no 19376if test "x$have_doxygen" = "xyes"; then 19377 # Extract the first word of "dot", so it can be a program name with args. 19378set dummy dot; ac_word=$2 19379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19380$as_echo_n "checking for $ac_word... " >&6; } 19381if ${ac_cv_path_DOT+:} false; then : 19382 $as_echo_n "(cached) " >&6 19383else 19384 case $DOT in 19385 [\\/]* | ?:[\\/]*) 19386 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 19387 ;; 19388 *) 19389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19390for as_dir in $PATH 19391do 19392 IFS=$as_save_IFS 19393 test -z "$as_dir" && as_dir=. 19394 for ac_exec_ext in '' $ac_executable_extensions; do 19395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19396 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 19397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19398 break 2 19399 fi 19400done 19401 done 19402IFS=$as_save_IFS 19403 19404 ;; 19405esac 19406fi 19407DOT=$ac_cv_path_DOT 19408if test -n "$DOT"; then 19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 19410$as_echo "$DOT" >&6; } 19411else 19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19413$as_echo "no" >&6; } 19414fi 19415 19416 19417 if test "x$DOT" != "x"; then 19418 HAVE_DOT=yes 19419 fi 19420fi 19421 19422 19423 if test "$HAVE_DOT" = "yes"; then 19424 HAVE_DOT_TRUE= 19425 HAVE_DOT_FALSE='#' 19426else 19427 HAVE_DOT_TRUE='#' 19428 HAVE_DOT_FALSE= 19429fi 19430 19431 if test "$have_doxygen" = yes; then 19432 HAVE_DOXYGEN_TRUE= 19433 HAVE_DOXYGEN_FALSE='#' 19434else 19435 HAVE_DOXYGEN_TRUE='#' 19436 HAVE_DOXYGEN_FALSE= 19437fi 19438 19439 19440 19441# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual 19442if test x"$HAVE_DOT" = xno; then 19443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5 19444$as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;} 19445fi 19446 19447 19448pkg_failed=no 19449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 19450$as_echo_n "checking for CHECK... " >&6; } 19451 19452if test -n "$CHECK_CFLAGS"; then 19453 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 19454 elif test -n "$PKG_CONFIG"; then 19455 if test -n "$PKG_CONFIG" && \ 19456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 19457 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 19458 ac_status=$? 19459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19460 test $ac_status = 0; }; then 19461 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` 19462 test "x$?" != "x0" && pkg_failed=yes 19463else 19464 pkg_failed=yes 19465fi 19466 else 19467 pkg_failed=untried 19468fi 19469if test -n "$CHECK_LIBS"; then 19470 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 19471 elif test -n "$PKG_CONFIG"; then 19472 if test -n "$PKG_CONFIG" && \ 19473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 19474 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 19475 ac_status=$? 19476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19477 test $ac_status = 0; }; then 19478 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` 19479 test "x$?" != "x0" && pkg_failed=yes 19480else 19481 pkg_failed=yes 19482fi 19483 else 19484 pkg_failed=untried 19485fi 19486 19487 19488 19489if test $pkg_failed = yes; then 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19491$as_echo "no" >&6; } 19492 19493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19494 _pkg_short_errors_supported=yes 19495else 19496 _pkg_short_errors_supported=no 19497fi 19498 if test $_pkg_short_errors_supported = yes; then 19499 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 19500 else 19501 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 19502 fi 19503 # Put the nasty error message in config.log where it belongs 19504 echo "$CHECK_PKG_ERRORS" >&5 19505 19506 HAVE_CHECK=no 19507elif test $pkg_failed = untried; then 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19509$as_echo "no" >&6; } 19510 HAVE_CHECK=no 19511else 19512 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 19513 CHECK_LIBS=$pkg_cv_CHECK_LIBS 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19515$as_echo "yes" >&6; } 19516 HAVE_CHECK=yes 19517fi 19518 if test x$HAVE_CHECK = xyes; then 19519 HAVE_CHECK_TRUE= 19520 HAVE_CHECK_FALSE='#' 19521else 19522 HAVE_CHECK_TRUE='#' 19523 HAVE_CHECK_FALSE= 19524fi 19525 19526 19527XSLTPROC=no 19528HTML_CHECK_RESULT=no 19529if test x"$HAVE_CHECK" = xyes; then 19530 # Extract the first word of "xsltproc", so it can be a program name with args. 19531set dummy xsltproc; ac_word=$2 19532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19533$as_echo_n "checking for $ac_word... " >&6; } 19534if ${ac_cv_path_XSLTPROC+:} false; then : 19535 $as_echo_n "(cached) " >&6 19536else 19537 case $XSLTPROC in 19538 [\\/]* | ?:[\\/]*) 19539 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19540 ;; 19541 *) 19542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19543for as_dir in $PATH 19544do 19545 IFS=$as_save_IFS 19546 test -z "$as_dir" && as_dir=. 19547 for ac_exec_ext in '' $ac_executable_extensions; do 19548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19549 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19551 break 2 19552 fi 19553done 19554 done 19555IFS=$as_save_IFS 19556 19557 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no" 19558 ;; 19559esac 19560fi 19561XSLTPROC=$ac_cv_path_XSLTPROC 19562if test -n "$XSLTPROC"; then 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19564$as_echo "$XSLTPROC" >&6; } 19565else 19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19567$as_echo "no" >&6; } 19568fi 19569 19570 19571 if test x"$XSLTPROC" != xno; then 19572 HTML_CHECK_RESULT=yes 19573 fi 19574fi 19575 19576 19577# Checks for pkg-config packages 19578 19579pkg_failed=no 19580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5 19581$as_echo_n "checking for XCBPROTO... " >&6; } 19582 19583if test -n "$XCBPROTO_CFLAGS"; then 19584 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS" 19585 elif test -n "$PKG_CONFIG"; then 19586 if test -n "$PKG_CONFIG" && \ 19587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.12\""; } >&5 19588 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.12") 2>&5 19589 ac_status=$? 19590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19591 test $ac_status = 0; }; then 19592 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.12" 2>/dev/null` 19593 test "x$?" != "x0" && pkg_failed=yes 19594else 19595 pkg_failed=yes 19596fi 19597 else 19598 pkg_failed=untried 19599fi 19600if test -n "$XCBPROTO_LIBS"; then 19601 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS" 19602 elif test -n "$PKG_CONFIG"; then 19603 if test -n "$PKG_CONFIG" && \ 19604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.12\""; } >&5 19605 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.12") 2>&5 19606 ac_status=$? 19607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19608 test $ac_status = 0; }; then 19609 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.12" 2>/dev/null` 19610 test "x$?" != "x0" && pkg_failed=yes 19611else 19612 pkg_failed=yes 19613fi 19614 else 19615 pkg_failed=untried 19616fi 19617 19618 19619 19620if test $pkg_failed = yes; then 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19622$as_echo "no" >&6; } 19623 19624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19625 _pkg_short_errors_supported=yes 19626else 19627 _pkg_short_errors_supported=no 19628fi 19629 if test $_pkg_short_errors_supported = yes; then 19630 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.12" 2>&1` 19631 else 19632 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.12" 2>&1` 19633 fi 19634 # Put the nasty error message in config.log where it belongs 19635 echo "$XCBPROTO_PKG_ERRORS" >&5 19636 19637 as_fn_error $? "Package requirements (xcb-proto >= 1.12) were not met: 19638 19639$XCBPROTO_PKG_ERRORS 19640 19641Consider adjusting the PKG_CONFIG_PATH environment variable if you 19642installed software in a non-standard prefix. 19643 19644Alternatively, you may set the environment variables XCBPROTO_CFLAGS 19645and XCBPROTO_LIBS to avoid the need to call pkg-config. 19646See the pkg-config man page for more details." "$LINENO" 5 19647elif test $pkg_failed = untried; then 19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19649$as_echo "no" >&6; } 19650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19652as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19653is in your PATH or set the PKG_CONFIG environment variable to the full 19654path to pkg-config. 19655 19656Alternatively, you may set the environment variables XCBPROTO_CFLAGS 19657and XCBPROTO_LIBS to avoid the need to call pkg-config. 19658See the pkg-config man page for more details. 19659 19660To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19661See \`config.log' for more details" "$LINENO" 5; } 19662else 19663 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS 19664 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS 19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19666$as_echo "yes" >&6; } 19667 19668fi 19669NEEDED="pthread-stubs xau >= 0.99.2" 19670 19671pkg_failed=no 19672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5 19673$as_echo_n "checking for NEEDED... " >&6; } 19674 19675if test -n "$NEEDED_CFLAGS"; then 19676 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS" 19677 elif test -n "$PKG_CONFIG"; then 19678 if test -n "$PKG_CONFIG" && \ 19679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 19680 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 19681 ac_status=$? 19682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19683 test $ac_status = 0; }; then 19684 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null` 19685 test "x$?" != "x0" && pkg_failed=yes 19686else 19687 pkg_failed=yes 19688fi 19689 else 19690 pkg_failed=untried 19691fi 19692if test -n "$NEEDED_LIBS"; then 19693 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS" 19694 elif test -n "$PKG_CONFIG"; then 19695 if test -n "$PKG_CONFIG" && \ 19696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 19697 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 19698 ac_status=$? 19699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19700 test $ac_status = 0; }; then 19701 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null` 19702 test "x$?" != "x0" && pkg_failed=yes 19703else 19704 pkg_failed=yes 19705fi 19706 else 19707 pkg_failed=untried 19708fi 19709 19710 19711 19712if test $pkg_failed = yes; then 19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19714$as_echo "no" >&6; } 19715 19716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19717 _pkg_short_errors_supported=yes 19718else 19719 _pkg_short_errors_supported=no 19720fi 19721 if test $_pkg_short_errors_supported = yes; then 19722 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1` 19723 else 19724 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1` 19725 fi 19726 # Put the nasty error message in config.log where it belongs 19727 echo "$NEEDED_PKG_ERRORS" >&5 19728 19729 as_fn_error $? "Package requirements ($NEEDED) were not met: 19730 19731$NEEDED_PKG_ERRORS 19732 19733Consider adjusting the PKG_CONFIG_PATH environment variable if you 19734installed software in a non-standard prefix. 19735 19736Alternatively, you may set the environment variables NEEDED_CFLAGS 19737and NEEDED_LIBS to avoid the need to call pkg-config. 19738See the pkg-config man page for more details." "$LINENO" 5 19739elif test $pkg_failed = untried; then 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19741$as_echo "no" >&6; } 19742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19744as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19745is in your PATH or set the PKG_CONFIG environment variable to the full 19746path to pkg-config. 19747 19748Alternatively, you may set the environment variables NEEDED_CFLAGS 19749and NEEDED_LIBS to avoid the need to call pkg-config. 19750See the pkg-config man page for more details. 19751 19752To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19753See \`config.log' for more details" "$LINENO" 5; } 19754else 19755 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS 19756 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19758$as_echo "yes" >&6; } 19759 19760fi 19761 19762have_xdmcp="no" 19763 19764pkg_failed=no 19765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 19766$as_echo_n "checking for XDMCP... " >&6; } 19767 19768if test -n "$XDMCP_CFLAGS"; then 19769 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 19770 elif test -n "$PKG_CONFIG"; then 19771 if test -n "$PKG_CONFIG" && \ 19772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19773 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19774 ac_status=$? 19775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19776 test $ac_status = 0; }; then 19777 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 19778 test "x$?" != "x0" && pkg_failed=yes 19779else 19780 pkg_failed=yes 19781fi 19782 else 19783 pkg_failed=untried 19784fi 19785if test -n "$XDMCP_LIBS"; then 19786 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 19787 elif test -n "$PKG_CONFIG"; then 19788 if test -n "$PKG_CONFIG" && \ 19789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19790 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19791 ac_status=$? 19792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19793 test $ac_status = 0; }; then 19794 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 19795 test "x$?" != "x0" && pkg_failed=yes 19796else 19797 pkg_failed=yes 19798fi 19799 else 19800 pkg_failed=untried 19801fi 19802 19803 19804 19805if test $pkg_failed = yes; then 19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19807$as_echo "no" >&6; } 19808 19809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19810 _pkg_short_errors_supported=yes 19811else 19812 _pkg_short_errors_supported=no 19813fi 19814 if test $_pkg_short_errors_supported = yes; then 19815 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 19816 else 19817 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 19818 fi 19819 # Put the nasty error message in config.log where it belongs 19820 echo "$XDMCP_PKG_ERRORS" >&5 19821 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19823$as_echo "no" >&6; } 19824elif test $pkg_failed = untried; then 19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19826$as_echo "no" >&6; } 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19828$as_echo "no" >&6; } 19829else 19830 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 19831 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19833$as_echo "yes" >&6; } 19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 19835$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 19836if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then : 19837 $as_echo_n "(cached) " >&6 19838else 19839 ac_check_lib_save_LIBS=$LIBS 19840LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 19841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19842/* end confdefs.h. */ 19843 19844/* Override any GCC internal prototype to avoid an error. 19845 Use char because int might match the return type of a GCC 19846 builtin and then its argument prototype would still apply. */ 19847#ifdef __cplusplus 19848extern "C" 19849#endif 19850char XdmcpWrap (); 19851int 19852main () 19853{ 19854return XdmcpWrap (); 19855 ; 19856 return 0; 19857} 19858_ACEOF 19859if ac_fn_c_try_link "$LINENO"; then : 19860 ac_cv_lib_Xdmcp_XdmcpWrap=yes 19861else 19862 ac_cv_lib_Xdmcp_XdmcpWrap=no 19863fi 19864rm -f core conftest.err conftest.$ac_objext \ 19865 conftest$ac_exeext conftest.$ac_ext 19866LIBS=$ac_check_lib_save_LIBS 19867fi 19868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 19869$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 19870if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then : 19871 19872 19873$as_echo "#define HASXDMAUTH 1" >>confdefs.h 19874 19875 NEEDED="$NEEDED xdmcp" 19876 have_xdmcp="yes" 19877 19878else 19879 19880 XDMCP_CFLAGS= 19881 XDMCP_LIBS= 19882 19883fi 19884 19885fi 19886 19887 19888 19889# Find the xcb-proto protocol descriptions 19890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5 19891$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; } 19892XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` 19893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5 19894$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; } 19895 19896 19897# Find the xcb-proto version 19898XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` 19899 19900 19901# Find the xcbgen Python package 19902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5 19903$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; } 19904XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` 19905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5 19906$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; } 19907 19908 19909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19910$as_echo_n "checking for ANSI C header files... " >&6; } 19911if ${ac_cv_header_stdc+:} false; then : 19912 $as_echo_n "(cached) " >&6 19913else 19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19915/* end confdefs.h. */ 19916#include <stdlib.h> 19917#include <stdarg.h> 19918#include <string.h> 19919#include <float.h> 19920 19921int 19922main () 19923{ 19924 19925 ; 19926 return 0; 19927} 19928_ACEOF 19929if ac_fn_c_try_compile "$LINENO"; then : 19930 ac_cv_header_stdc=yes 19931else 19932 ac_cv_header_stdc=no 19933fi 19934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19935 19936if test $ac_cv_header_stdc = yes; then 19937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19939/* end confdefs.h. */ 19940#include <string.h> 19941 19942_ACEOF 19943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19944 $EGREP "memchr" >/dev/null 2>&1; then : 19945 19946else 19947 ac_cv_header_stdc=no 19948fi 19949rm -f conftest* 19950 19951fi 19952 19953if test $ac_cv_header_stdc = yes; then 19954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19956/* end confdefs.h. */ 19957#include <stdlib.h> 19958 19959_ACEOF 19960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19961 $EGREP "free" >/dev/null 2>&1; then : 19962 19963else 19964 ac_cv_header_stdc=no 19965fi 19966rm -f conftest* 19967 19968fi 19969 19970if test $ac_cv_header_stdc = yes; then 19971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19972 if test "$cross_compiling" = yes; then : 19973 : 19974else 19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19976/* end confdefs.h. */ 19977#include <ctype.h> 19978#include <stdlib.h> 19979#if ((' ' & 0x0FF) == 0x020) 19980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19982#else 19983# define ISLOWER(c) \ 19984 (('a' <= (c) && (c) <= 'i') \ 19985 || ('j' <= (c) && (c) <= 'r') \ 19986 || ('s' <= (c) && (c) <= 'z')) 19987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19988#endif 19989 19990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19991int 19992main () 19993{ 19994 int i; 19995 for (i = 0; i < 256; i++) 19996 if (XOR (islower (i), ISLOWER (i)) 19997 || toupper (i) != TOUPPER (i)) 19998 return 2; 19999 return 0; 20000} 20001_ACEOF 20002if ac_fn_c_try_run "$LINENO"; then : 20003 20004else 20005 ac_cv_header_stdc=no 20006fi 20007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20008 conftest.$ac_objext conftest.beam conftest.$ac_ext 20009fi 20010 20011fi 20012fi 20013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20014$as_echo "$ac_cv_header_stdc" >&6; } 20015if test $ac_cv_header_stdc = yes; then 20016 20017$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20018 20019fi 20020 20021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 20022$as_echo_n "checking for library containing getaddrinfo... " >&6; } 20023if ${ac_cv_search_getaddrinfo+:} false; then : 20024 $as_echo_n "(cached) " >&6 20025else 20026 ac_func_search_save_LIBS=$LIBS 20027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20028/* end confdefs.h. */ 20029 20030/* Override any GCC internal prototype to avoid an error. 20031 Use char because int might match the return type of a GCC 20032 builtin and then its argument prototype would still apply. */ 20033#ifdef __cplusplus 20034extern "C" 20035#endif 20036char getaddrinfo (); 20037int 20038main () 20039{ 20040return getaddrinfo (); 20041 ; 20042 return 0; 20043} 20044_ACEOF 20045for ac_lib in '' socket; do 20046 if test -z "$ac_lib"; then 20047 ac_res="none required" 20048 else 20049 ac_res=-l$ac_lib 20050 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20051 fi 20052 if ac_fn_c_try_link "$LINENO"; then : 20053 ac_cv_search_getaddrinfo=$ac_res 20054fi 20055rm -f core conftest.err conftest.$ac_objext \ 20056 conftest$ac_exeext 20057 if ${ac_cv_search_getaddrinfo+:} false; then : 20058 break 20059fi 20060done 20061if ${ac_cv_search_getaddrinfo+:} false; then : 20062 20063else 20064 ac_cv_search_getaddrinfo=no 20065fi 20066rm conftest.$ac_ext 20067LIBS=$ac_func_search_save_LIBS 20068fi 20069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 20070$as_echo "$ac_cv_search_getaddrinfo" >&6; } 20071ac_res=$ac_cv_search_getaddrinfo 20072if test "$ac_res" != no; then : 20073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20074 20075fi 20076 20077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 20078$as_echo_n "checking for library containing connect... " >&6; } 20079if ${ac_cv_search_connect+:} false; then : 20080 $as_echo_n "(cached) " >&6 20081else 20082 ac_func_search_save_LIBS=$LIBS 20083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20084/* end confdefs.h. */ 20085 20086/* Override any GCC internal prototype to avoid an error. 20087 Use char because int might match the return type of a GCC 20088 builtin and then its argument prototype would still apply. */ 20089#ifdef __cplusplus 20090extern "C" 20091#endif 20092char connect (); 20093int 20094main () 20095{ 20096return connect (); 20097 ; 20098 return 0; 20099} 20100_ACEOF 20101for ac_lib in '' socket; do 20102 if test -z "$ac_lib"; then 20103 ac_res="none required" 20104 else 20105 ac_res=-l$ac_lib 20106 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20107 fi 20108 if ac_fn_c_try_link "$LINENO"; then : 20109 ac_cv_search_connect=$ac_res 20110fi 20111rm -f core conftest.err conftest.$ac_objext \ 20112 conftest$ac_exeext 20113 if ${ac_cv_search_connect+:} false; then : 20114 break 20115fi 20116done 20117if ${ac_cv_search_connect+:} false; then : 20118 20119else 20120 ac_cv_search_connect=no 20121fi 20122rm conftest.$ac_ext 20123LIBS=$ac_func_search_save_LIBS 20124fi 20125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 20126$as_echo "$ac_cv_search_connect" >&6; } 20127ac_res=$ac_cv_search_connect 20128if test "$ac_res" != no; then : 20129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20130 20131fi 20132 20133 20134# Find support for sending a message from a socket 20135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 20136$as_echo_n "checking for library containing sendmsg... " >&6; } 20137if ${ac_cv_search_sendmsg+:} false; then : 20138 $as_echo_n "(cached) " >&6 20139else 20140 ac_func_search_save_LIBS=$LIBS 20141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20142/* end confdefs.h. */ 20143 20144/* Override any GCC internal prototype to avoid an error. 20145 Use char because int might match the return type of a GCC 20146 builtin and then its argument prototype would still apply. */ 20147#ifdef __cplusplus 20148extern "C" 20149#endif 20150char sendmsg (); 20151int 20152main () 20153{ 20154return sendmsg (); 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159for ac_lib in '' socket; do 20160 if test -z "$ac_lib"; then 20161 ac_res="none required" 20162 else 20163 ac_res=-l$ac_lib 20164 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20165 fi 20166 if ac_fn_c_try_link "$LINENO"; then : 20167 ac_cv_search_sendmsg=$ac_res 20168fi 20169rm -f core conftest.err conftest.$ac_objext \ 20170 conftest$ac_exeext 20171 if ${ac_cv_search_sendmsg+:} false; then : 20172 break 20173fi 20174done 20175if ${ac_cv_search_sendmsg+:} false; then : 20176 20177else 20178 ac_cv_search_sendmsg=no 20179fi 20180rm conftest.$ac_ext 20181LIBS=$ac_func_search_save_LIBS 20182fi 20183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 20184$as_echo "$ac_cv_search_sendmsg" >&6; } 20185ac_res=$ac_cv_search_sendmsg 20186if test "$ac_res" != no; then : 20187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20188 have_sendmsg="yes" 20189else 20190 have_sendmsg="no" 20191fi 20192 20193 20194# XPG4v2/UNIX95 added msg_control - check to see if we need to define 20195# _XOPEN_SOURCE to get it (such as on Solaris) 20196ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20197$ac_includes_default 20198#include <sys/socket.h> 20199 20200" 20201if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20202 20203fi 20204 20205# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 20206if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20207 unset ac_cv_member_struct_msghdr_msg_control 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 20209$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 20210 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20211#define _XOPEN_SOURCE 600 20212$ac_includes_default 20213#include <sys/socket.h> 20214 20215" 20216if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20217 20218$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 20219 20220 20221fi 20222 20223fi 20224# If that didn't work, fall back to XPG5/UNIX98 with C89 20225if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20226 unset ac_cv_member_struct_msghdr_msg_control 20227 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 20228$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 20229 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20230#define _XOPEN_SOURCE 500 20231$ac_includes_default 20232#include <sys/socket.h> 20233 20234" 20235if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20236 20237$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 20238 20239 20240else 20241 have_sendmsg="no" 20242fi 20243 20244fi 20245 20246case x$have_sendmsg in 20247xyes) 20248 20249$as_echo "#define HAVE_SENDMSG 1" >>confdefs.h 20250 20251 ;; 20252esac 20253 20254have_win32="no" 20255lt_enable_auto_import="" 20256case $host_os in 20257mingw*) 20258 have_win32="yes" 20259 lt_enable_auto_import="-Wl,--enable-auto-import" 20260 ;; 20261linux*) 20262 20263$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h 20264 20265 ;; 20266esac 20267 20268 20269 if test "x${have_win32}" = "xyes"; then 20270 XCB_HAVE_WIN32_TRUE= 20271 XCB_HAVE_WIN32_FALSE='#' 20272else 20273 XCB_HAVE_WIN32_TRUE='#' 20274 XCB_HAVE_WIN32_FALSE= 20275fi 20276 20277 20278 20279# Check whether --with-queue-size was given. 20280if test "${with_queue_size+set}" = set; then : 20281 withval=$with_queue_size; xcb_queue_buffer_size="$withval" 20282else 20283 xcb_queue_buffer_size=16384 20284fi 20285 20286 20287cat >>confdefs.h <<_ACEOF 20288#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size 20289_ACEOF 20290 20291 20292ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h> 20293 #include <sys/un.h> 20294 20295" 20296if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20297 20298$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h 20299 20300fi 20301 20302 20303for ac_header in tsol/label.h 20304do : 20305 ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default" 20306if test "x$ac_cv_header_tsol_label_h" = xyes; then : 20307 cat >>confdefs.h <<_ACEOF 20308#define HAVE_TSOL_LABEL_H 1 20309_ACEOF 20310 20311fi 20312 20313done 20314 20315for ac_func in is_system_labeled 20316do : 20317 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled" 20318if test "x$ac_cv_func_is_system_labeled" = xyes; then : 20319 cat >>confdefs.h <<_ACEOF 20320#define HAVE_IS_SYSTEM_LABELED 1 20321_ACEOF 20322 20323fi 20324done 20325 20326 20327ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h> 20328" 20329if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then : 20330 20331else 20332 ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h> 20333" 20334if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then : 20335 $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h 20336 20337else 20338 20339$as_echo "#define IOV_MAX 16" >>confdefs.h 20340 20341fi 20342 20343fi 20344 20345 20346xcbincludedir='${includedir}/xcb' 20347 20348 20349 20350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5 20351$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; } 20352 20353save_CFLAGS=${CFLAGS} 20354CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" 20355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20356/* end confdefs.h. */ 20357 20358#pragma GCC visibility push(hidden) 20359extern void f(int); 20360#pragma GCC visibility pop 20361 20362int 20363main () 20364{ 20365 20366 20367 ; 20368 return 0; 20369} 20370_ACEOF 20371if ac_fn_c_try_compile "$LINENO"; then : 20372 20373$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h 20374 20375 : 20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20377$as_echo "yes" >&6; } 20378else 20379 : 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20381$as_echo "no" >&6; } 20382fi 20383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20384 20385CFLAGS=${save_CFLAGS} 20386 20387 20388ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20389if test "x$ac_cv_func_getaddrinfo" = xyes; then : 20390 20391$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 20392 20393fi 20394 20395 20396case $host_os in 20397 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 20398 darwin[789]*|darwin10*) ;; 20399 darwin*) 20400 _ac_xorg_macosx_version_min="" 20401 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 20402 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 20403 else 20404 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 20405 fi 20406 case $_ac_xorg_macosx_version_min in 20407 10.[0123456]|10.[0123456].*) ;; 20408 *) 20409 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20410if test "x$ac_cv_func_poll" = xyes; then : 20411 20412$as_echo "#define USE_POLL 1" >>confdefs.h 20413 20414fi 20415 20416 ;; 20417 esac 20418 unset _ac_xorg_macosx_version_min 20419 ;; 20420 *) 20421 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20422if test "x$ac_cv_func_poll" = xyes; then : 20423 20424$as_echo "#define USE_POLL 1" >>confdefs.h 20425 20426fi 20427 20428 ;; 20429esac 20430 20431case $host_os in 20432 *mingw*) 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20434$as_echo_n "checking for main in -lws2_32... " >&6; } 20435if ${ac_cv_lib_ws2_32_main+:} false; then : 20436 $as_echo_n "(cached) " >&6 20437else 20438 ac_check_lib_save_LIBS=$LIBS 20439LIBS="-lws2_32 $LIBS" 20440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20441/* end confdefs.h. */ 20442 20443 20444int 20445main () 20446{ 20447return main (); 20448 ; 20449 return 0; 20450} 20451_ACEOF 20452if ac_fn_c_try_link "$LINENO"; then : 20453 ac_cv_lib_ws2_32_main=yes 20454else 20455 ac_cv_lib_ws2_32_main=no 20456fi 20457rm -f core conftest.err conftest.$ac_objext \ 20458 conftest$ac_exeext conftest.$ac_ext 20459LIBS=$ac_check_lib_save_LIBS 20460fi 20461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20462$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 20463if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 20464 cat >>confdefs.h <<_ACEOF 20465#define HAVE_LIBWS2_32 1 20466_ACEOF 20467 20468 LIBS="-lws2_32 $LIBS" 20469 20470fi 20471 20472 ;; 20473 *) 20474 ;; 20475esac 20476 20477 20478# Check whether --enable-composite was given. 20479if test "${enable_composite+set}" = set; then : 20480 enableval=$enable_composite; BUILD_COMPOSITE=$enableval 20481else 20482 BUILD_COMPOSITE=yes 20483fi 20484 20485 20486 20487 if test "x$BUILD_COMPOSITE" = "xyes"; then 20488 BUILD_COMPOSITE_TRUE= 20489 BUILD_COMPOSITE_FALSE='#' 20490else 20491 BUILD_COMPOSITE_TRUE='#' 20492 BUILD_COMPOSITE_FALSE= 20493fi 20494 20495 20496 20497# Check whether --enable-damage was given. 20498if test "${enable_damage+set}" = set; then : 20499 enableval=$enable_damage; BUILD_DAMAGE=$enableval 20500else 20501 BUILD_DAMAGE=yes 20502fi 20503 20504 20505 20506 if test "x$BUILD_DAMAGE" = "xyes"; then 20507 BUILD_DAMAGE_TRUE= 20508 BUILD_DAMAGE_FALSE='#' 20509else 20510 BUILD_DAMAGE_TRUE='#' 20511 BUILD_DAMAGE_FALSE= 20512fi 20513 20514 20515 20516# Check whether --enable-dpms was given. 20517if test "${enable_dpms+set}" = set; then : 20518 enableval=$enable_dpms; BUILD_DPMS=$enableval 20519else 20520 BUILD_DPMS=yes 20521fi 20522 20523 20524 20525 if test "x$BUILD_DPMS" = "xyes"; then 20526 BUILD_DPMS_TRUE= 20527 BUILD_DPMS_FALSE='#' 20528else 20529 BUILD_DPMS_TRUE='#' 20530 BUILD_DPMS_FALSE= 20531fi 20532 20533 20534 20535# Check whether --enable-dri2 was given. 20536if test "${enable_dri2+set}" = set; then : 20537 enableval=$enable_dri2; BUILD_DRI2=$enableval 20538else 20539 BUILD_DRI2=yes 20540fi 20541 20542 20543 20544 if test "x$BUILD_DRI2" = "xyes"; then 20545 BUILD_DRI2_TRUE= 20546 BUILD_DRI2_FALSE='#' 20547else 20548 BUILD_DRI2_TRUE='#' 20549 BUILD_DRI2_FALSE= 20550fi 20551 20552 20553 20554# Check whether --enable-dri3 was given. 20555if test "${enable_dri3+set}" = set; then : 20556 enableval=$enable_dri3; BUILD_DRI3=$enableval 20557else 20558 BUILD_DRI3=auto 20559fi 20560 20561 20562# This extension has a default value of "auto" and depends on the value of $have_sendmsg 20563if test "x$BUILD_DRI3" = "xauto" ; then 20564 BUILD_DRI3=$have_sendmsg 20565fi 20566if test "x$BUILD_DRI3" = "xyes" ; then 20567 if test "x$have_sendmsg" = "xno" ; then 20568 as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5 20569 fi 20570fi 20571 20572 if test "x$BUILD_DRI3" = "xyes"; then 20573 BUILD_DRI3_TRUE= 20574 BUILD_DRI3_FALSE='#' 20575else 20576 BUILD_DRI3_TRUE='#' 20577 BUILD_DRI3_FALSE= 20578fi 20579 20580 20581 20582# Check whether --enable-glx was given. 20583if test "${enable_glx+set}" = set; then : 20584 enableval=$enable_glx; BUILD_GLX=$enableval 20585else 20586 BUILD_GLX=yes 20587fi 20588 20589 20590 20591 if test "x$BUILD_GLX" = "xyes"; then 20592 BUILD_GLX_TRUE= 20593 BUILD_GLX_FALSE='#' 20594else 20595 BUILD_GLX_TRUE='#' 20596 BUILD_GLX_FALSE= 20597fi 20598 20599 20600 20601# Check whether --enable-present was given. 20602if test "${enable_present+set}" = set; then : 20603 enableval=$enable_present; BUILD_PRESENT=$enableval 20604else 20605 BUILD_PRESENT=yes 20606fi 20607 20608 20609 20610 if test "x$BUILD_PRESENT" = "xyes"; then 20611 BUILD_PRESENT_TRUE= 20612 BUILD_PRESENT_FALSE='#' 20613else 20614 BUILD_PRESENT_TRUE='#' 20615 BUILD_PRESENT_FALSE= 20616fi 20617 20618 20619 20620# Check whether --enable-randr was given. 20621if test "${enable_randr+set}" = set; then : 20622 enableval=$enable_randr; BUILD_RANDR=$enableval 20623else 20624 BUILD_RANDR=yes 20625fi 20626 20627 20628 20629 if test "x$BUILD_RANDR" = "xyes"; then 20630 BUILD_RANDR_TRUE= 20631 BUILD_RANDR_FALSE='#' 20632else 20633 BUILD_RANDR_TRUE='#' 20634 BUILD_RANDR_FALSE= 20635fi 20636 20637 20638 20639# Check whether --enable-record was given. 20640if test "${enable_record+set}" = set; then : 20641 enableval=$enable_record; BUILD_RECORD=$enableval 20642else 20643 BUILD_RECORD=yes 20644fi 20645 20646 20647 20648 if test "x$BUILD_RECORD" = "xyes"; then 20649 BUILD_RECORD_TRUE= 20650 BUILD_RECORD_FALSE='#' 20651else 20652 BUILD_RECORD_TRUE='#' 20653 BUILD_RECORD_FALSE= 20654fi 20655 20656 20657 20658# Check whether --enable-render was given. 20659if test "${enable_render+set}" = set; then : 20660 enableval=$enable_render; BUILD_RENDER=$enableval 20661else 20662 BUILD_RENDER=yes 20663fi 20664 20665 20666 20667 if test "x$BUILD_RENDER" = "xyes"; then 20668 BUILD_RENDER_TRUE= 20669 BUILD_RENDER_FALSE='#' 20670else 20671 BUILD_RENDER_TRUE='#' 20672 BUILD_RENDER_FALSE= 20673fi 20674 20675 20676 20677# Check whether --enable-resource was given. 20678if test "${enable_resource+set}" = set; then : 20679 enableval=$enable_resource; BUILD_RESOURCE=$enableval 20680else 20681 BUILD_RESOURCE=yes 20682fi 20683 20684 20685 20686 if test "x$BUILD_RESOURCE" = "xyes"; then 20687 BUILD_RESOURCE_TRUE= 20688 BUILD_RESOURCE_FALSE='#' 20689else 20690 BUILD_RESOURCE_TRUE='#' 20691 BUILD_RESOURCE_FALSE= 20692fi 20693 20694 20695 20696# Check whether --enable-screensaver was given. 20697if test "${enable_screensaver+set}" = set; then : 20698 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval 20699else 20700 BUILD_SCREENSAVER=yes 20701fi 20702 20703 20704 20705 if test "x$BUILD_SCREENSAVER" = "xyes"; then 20706 BUILD_SCREENSAVER_TRUE= 20707 BUILD_SCREENSAVER_FALSE='#' 20708else 20709 BUILD_SCREENSAVER_TRUE='#' 20710 BUILD_SCREENSAVER_FALSE= 20711fi 20712 20713 20714 20715# Check whether --enable-shape was given. 20716if test "${enable_shape+set}" = set; then : 20717 enableval=$enable_shape; BUILD_SHAPE=$enableval 20718else 20719 BUILD_SHAPE=yes 20720fi 20721 20722 20723 20724 if test "x$BUILD_SHAPE" = "xyes"; then 20725 BUILD_SHAPE_TRUE= 20726 BUILD_SHAPE_FALSE='#' 20727else 20728 BUILD_SHAPE_TRUE='#' 20729 BUILD_SHAPE_FALSE= 20730fi 20731 20732 20733 20734# Check whether --enable-shm was given. 20735if test "${enable_shm+set}" = set; then : 20736 enableval=$enable_shm; BUILD_SHM=$enableval 20737else 20738 BUILD_SHM=yes 20739fi 20740 20741 20742 20743 if test "x$BUILD_SHM" = "xyes"; then 20744 BUILD_SHM_TRUE= 20745 BUILD_SHM_FALSE='#' 20746else 20747 BUILD_SHM_TRUE='#' 20748 BUILD_SHM_FALSE= 20749fi 20750 20751 20752 20753# Check whether --enable-sync was given. 20754if test "${enable_sync+set}" = set; then : 20755 enableval=$enable_sync; BUILD_SYNC=$enableval 20756else 20757 BUILD_SYNC=yes 20758fi 20759 20760 20761 20762 if test "x$BUILD_SYNC" = "xyes"; then 20763 BUILD_SYNC_TRUE= 20764 BUILD_SYNC_FALSE='#' 20765else 20766 BUILD_SYNC_TRUE='#' 20767 BUILD_SYNC_FALSE= 20768fi 20769 20770 20771 20772# Check whether --enable-xevie was given. 20773if test "${enable_xevie+set}" = set; then : 20774 enableval=$enable_xevie; BUILD_XEVIE=$enableval 20775else 20776 BUILD_XEVIE=no 20777fi 20778 20779 20780 20781 if test "x$BUILD_XEVIE" = "xyes"; then 20782 BUILD_XEVIE_TRUE= 20783 BUILD_XEVIE_FALSE='#' 20784else 20785 BUILD_XEVIE_TRUE='#' 20786 BUILD_XEVIE_FALSE= 20787fi 20788 20789 20790 20791# Check whether --enable-xfixes was given. 20792if test "${enable_xfixes+set}" = set; then : 20793 enableval=$enable_xfixes; BUILD_XFIXES=$enableval 20794else 20795 BUILD_XFIXES=yes 20796fi 20797 20798 20799 20800 if test "x$BUILD_XFIXES" = "xyes"; then 20801 BUILD_XFIXES_TRUE= 20802 BUILD_XFIXES_FALSE='#' 20803else 20804 BUILD_XFIXES_TRUE='#' 20805 BUILD_XFIXES_FALSE= 20806fi 20807 20808 20809 20810# Check whether --enable-xfree86-dri was given. 20811if test "${enable_xfree86_dri+set}" = set; then : 20812 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval 20813else 20814 BUILD_XFREE86_DRI=yes 20815fi 20816 20817 20818 20819 if test "x$BUILD_XFREE86_DRI" = "xyes"; then 20820 BUILD_XFREE86_DRI_TRUE= 20821 BUILD_XFREE86_DRI_FALSE='#' 20822else 20823 BUILD_XFREE86_DRI_TRUE='#' 20824 BUILD_XFREE86_DRI_FALSE= 20825fi 20826 20827 20828 20829# Check whether --enable-xinerama was given. 20830if test "${enable_xinerama+set}" = set; then : 20831 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval 20832else 20833 BUILD_XINERAMA=yes 20834fi 20835 20836 20837 20838 if test "x$BUILD_XINERAMA" = "xyes"; then 20839 BUILD_XINERAMA_TRUE= 20840 BUILD_XINERAMA_FALSE='#' 20841else 20842 BUILD_XINERAMA_TRUE='#' 20843 BUILD_XINERAMA_FALSE= 20844fi 20845 20846 20847 20848# Check whether --enable-xinput was given. 20849if test "${enable_xinput+set}" = set; then : 20850 enableval=$enable_xinput; BUILD_XINPUT=$enableval 20851else 20852 BUILD_XINPUT=no 20853fi 20854 20855 20856 20857 if test "x$BUILD_XINPUT" = "xyes"; then 20858 BUILD_XINPUT_TRUE= 20859 BUILD_XINPUT_FALSE='#' 20860else 20861 BUILD_XINPUT_TRUE='#' 20862 BUILD_XINPUT_FALSE= 20863fi 20864 20865 20866 20867# Check whether --enable-xkb was given. 20868if test "${enable_xkb+set}" = set; then : 20869 enableval=$enable_xkb; BUILD_XKB=$enableval 20870else 20871 BUILD_XKB=yes 20872fi 20873 20874 20875 20876 if test "x$BUILD_XKB" = "xyes"; then 20877 BUILD_XKB_TRUE= 20878 BUILD_XKB_FALSE='#' 20879else 20880 BUILD_XKB_TRUE='#' 20881 BUILD_XKB_FALSE= 20882fi 20883 20884 20885 20886# Check whether --enable-xprint was given. 20887if test "${enable_xprint+set}" = set; then : 20888 enableval=$enable_xprint; BUILD_XPRINT=$enableval 20889else 20890 BUILD_XPRINT=no 20891fi 20892 20893 20894 20895 if test "x$BUILD_XPRINT" = "xyes"; then 20896 BUILD_XPRINT_TRUE= 20897 BUILD_XPRINT_FALSE='#' 20898else 20899 BUILD_XPRINT_TRUE='#' 20900 BUILD_XPRINT_FALSE= 20901fi 20902 20903 20904 20905# Check whether --enable-selinux was given. 20906if test "${enable_selinux+set}" = set; then : 20907 enableval=$enable_selinux; BUILD_SELINUX=$enableval 20908else 20909 BUILD_SELINUX=no 20910fi 20911 20912 20913 20914 if test "x$BUILD_SELINUX" = "xyes"; then 20915 BUILD_SELINUX_TRUE= 20916 BUILD_SELINUX_FALSE='#' 20917else 20918 BUILD_SELINUX_TRUE='#' 20919 BUILD_SELINUX_FALSE= 20920fi 20921 20922 20923 20924# Check whether --enable-xtest was given. 20925if test "${enable_xtest+set}" = set; then : 20926 enableval=$enable_xtest; BUILD_XTEST=$enableval 20927else 20928 BUILD_XTEST=yes 20929fi 20930 20931 20932 20933 if test "x$BUILD_XTEST" = "xyes"; then 20934 BUILD_XTEST_TRUE= 20935 BUILD_XTEST_FALSE='#' 20936else 20937 BUILD_XTEST_TRUE='#' 20938 BUILD_XTEST_FALSE= 20939fi 20940 20941 20942 20943# Check whether --enable-xv was given. 20944if test "${enable_xv+set}" = set; then : 20945 enableval=$enable_xv; BUILD_XV=$enableval 20946else 20947 BUILD_XV=yes 20948fi 20949 20950 20951 20952 if test "x$BUILD_XV" = "xyes"; then 20953 BUILD_XV_TRUE= 20954 BUILD_XV_FALSE='#' 20955else 20956 BUILD_XV_TRUE='#' 20957 BUILD_XV_FALSE= 20958fi 20959 20960 20961 20962# Check whether --enable-xvmc was given. 20963if test "${enable_xvmc+set}" = set; then : 20964 enableval=$enable_xvmc; BUILD_XVMC=$enableval 20965else 20966 BUILD_XVMC=yes 20967fi 20968 20969 20970 20971 if test "x$BUILD_XVMC" = "xyes"; then 20972 BUILD_XVMC_TRUE= 20973 BUILD_XVMC_FALSE='#' 20974else 20975 BUILD_XVMC_TRUE='#' 20976 BUILD_XVMC_FALSE= 20977fi 20978 20979 20980 20981 20982# Check whether --with-launchd was given. 20983if test "${with_launchd+set}" = set; then : 20984 withval=$with_launchd; LAUNCHD=$withval 20985else 20986 LAUNCHD=auto 20987fi 20988 20989if test "x$LAUNCHD" = xauto; then 20990 unset LAUNCHD 20991 # Extract the first word of "launchd", so it can be a program name with args. 20992set dummy launchd; ac_word=$2 20993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20994$as_echo_n "checking for $ac_word... " >&6; } 20995if ${ac_cv_prog_LAUNCHD+:} false; then : 20996 $as_echo_n "(cached) " >&6 20997else 20998 if test -n "$LAUNCHD"; then 20999 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 21000else 21001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21002for as_dir in $PATH$PATH_SEPARATOR/sbin 21003do 21004 IFS=$as_save_IFS 21005 test -z "$as_dir" && as_dir=. 21006 for ac_exec_ext in '' $ac_executable_extensions; do 21007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21008 ac_cv_prog_LAUNCHD="yes" 21009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21010 break 2 21011 fi 21012done 21013 done 21014IFS=$as_save_IFS 21015 21016 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 21017fi 21018fi 21019LAUNCHD=$ac_cv_prog_LAUNCHD 21020if test -n "$LAUNCHD"; then 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 21022$as_echo "$LAUNCHD" >&6; } 21023else 21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21025$as_echo "no" >&6; } 21026fi 21027 21028 21029fi 21030 21031if test "x$LAUNCHD" = xyes ; then 21032 21033$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 21034 21035fi 21036 21037 21038# Check whether --with-serverside-support was given. 21039if test "${with_serverside_support+set}" = set; then : 21040 withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval 21041else 21042 XCB_SERVERSIDE_SUPPORT=no 21043fi 21044 21045 21046 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then 21047 XCB_SERVERSIDE_SUPPORT_TRUE= 21048 XCB_SERVERSIDE_SUPPORT_FALSE='#' 21049else 21050 XCB_SERVERSIDE_SUPPORT_TRUE='#' 21051 XCB_SERVERSIDE_SUPPORT_FALSE= 21052fi 21053 21054 21055ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile" 21056 21057 21058ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc" 21059 21060 21061ac_config_files="$ac_config_files doc/xcb.doxygen" 21062 21063 21064cat >confcache <<\_ACEOF 21065# This file is a shell script that caches the results of configure 21066# tests run on this system so they can be shared between configure 21067# scripts and configure runs, see configure's option --config-cache. 21068# It is not useful on other systems. If it contains results you don't 21069# want to keep, you may remove or edit it. 21070# 21071# config.status only pays attention to the cache file if you give it 21072# the --recheck option to rerun configure. 21073# 21074# `ac_cv_env_foo' variables (set or unset) will be overridden when 21075# loading this file, other *unset* `ac_cv_foo' will be assigned the 21076# following values. 21077 21078_ACEOF 21079 21080# The following way of writing the cache mishandles newlines in values, 21081# but we know of no workaround that is simple, portable, and efficient. 21082# So, we kill variables containing newlines. 21083# Ultrix sh set writes to stderr and can't be redirected directly, 21084# and sets the high bit in the cache file unless we assign to the vars. 21085( 21086 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21087 eval ac_val=\$$ac_var 21088 case $ac_val in #( 21089 *${as_nl}*) 21090 case $ac_var in #( 21091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21093 esac 21094 case $ac_var in #( 21095 _ | IFS | as_nl) ;; #( 21096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21097 *) { eval $ac_var=; unset $ac_var;} ;; 21098 esac ;; 21099 esac 21100 done 21101 21102 (set) 2>&1 | 21103 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21104 *${as_nl}ac_space=\ *) 21105 # `set' does not quote correctly, so add quotes: double-quote 21106 # substitution turns \\\\ into \\, and sed turns \\ into \. 21107 sed -n \ 21108 "s/'/'\\\\''/g; 21109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21110 ;; #( 21111 *) 21112 # `set' quotes correctly as required by POSIX, so do not add quotes. 21113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21114 ;; 21115 esac | 21116 sort 21117) | 21118 sed ' 21119 /^ac_cv_env_/b end 21120 t clear 21121 :clear 21122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21123 t end 21124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21125 :end' >>confcache 21126if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21127 if test -w "$cache_file"; then 21128 if test "x$cache_file" != "x/dev/null"; then 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21130$as_echo "$as_me: updating cache $cache_file" >&6;} 21131 if test ! -f "$cache_file" || test -h "$cache_file"; then 21132 cat confcache >"$cache_file" 21133 else 21134 case $cache_file in #( 21135 */* | ?:*) 21136 mv -f confcache "$cache_file"$$ && 21137 mv -f "$cache_file"$$ "$cache_file" ;; #( 21138 *) 21139 mv -f confcache "$cache_file" ;; 21140 esac 21141 fi 21142 fi 21143 else 21144 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21145$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21146 fi 21147fi 21148rm -f confcache 21149 21150test "x$prefix" = xNONE && prefix=$ac_default_prefix 21151# Let make expand exec_prefix. 21152test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21153 21154DEFS=-DHAVE_CONFIG_H 21155 21156ac_libobjs= 21157ac_ltlibobjs= 21158U= 21159for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21160 # 1. Remove the extension, and $U if already installed. 21161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21164 # will be set to the directory where LIBOBJS objects are built. 21165 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21166 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21167done 21168LIBOBJS=$ac_libobjs 21169 21170LTLIBOBJS=$ac_ltlibobjs 21171 21172 21173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21174$as_echo_n "checking that generated files are newer than configure... " >&6; } 21175 if test -n "$am_sleep_pid"; then 21176 # Hide warnings about reused PIDs. 21177 wait $am_sleep_pid 2>/dev/null 21178 fi 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21180$as_echo "done" >&6; } 21181 if test -n "$EXEEXT"; then 21182 am__EXEEXT_TRUE= 21183 am__EXEEXT_FALSE='#' 21184else 21185 am__EXEEXT_TRUE='#' 21186 am__EXEEXT_FALSE= 21187fi 21188 21189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21190 as_fn_error $? "conditional \"AMDEP\" was never defined. 21191Usually this means the macro was only invoked conditionally." "$LINENO" 5 21192fi 21193if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21194 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21195Usually this means the macro was only invoked conditionally." "$LINENO" 5 21196fi 21197if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 21198 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 21199Usually this means the macro was only invoked conditionally." "$LINENO" 5 21200fi 21201if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 21202 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 21203Usually this means the macro was only invoked conditionally." "$LINENO" 5 21204fi 21205if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 21206 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 21207Usually this means the macro was only invoked conditionally." "$LINENO" 5 21208fi 21209if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 21210 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. 21211Usually this means the macro was only invoked conditionally." "$LINENO" 5 21212fi 21213if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then 21214 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined. 21215Usually this means the macro was only invoked conditionally." "$LINENO" 5 21216fi 21217if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then 21218 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined. 21219Usually this means the macro was only invoked conditionally." "$LINENO" 5 21220fi 21221if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then 21222 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined. 21223Usually this means the macro was only invoked conditionally." "$LINENO" 5 21224fi 21225if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then 21226 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined. 21227Usually this means the macro was only invoked conditionally." "$LINENO" 5 21228fi 21229if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then 21230 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined. 21231Usually this means the macro was only invoked conditionally." "$LINENO" 5 21232fi 21233if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then 21234 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined. 21235Usually this means the macro was only invoked conditionally." "$LINENO" 5 21236fi 21237if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 21238 as_fn_error $? "conditional \"BUILD_GLX\" was never defined. 21239Usually this means the macro was only invoked conditionally." "$LINENO" 5 21240fi 21241if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then 21242 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined. 21243Usually this means the macro was only invoked conditionally." "$LINENO" 5 21244fi 21245if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then 21246 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined. 21247Usually this means the macro was only invoked conditionally." "$LINENO" 5 21248fi 21249if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then 21250 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined. 21251Usually this means the macro was only invoked conditionally." "$LINENO" 5 21252fi 21253if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then 21254 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined. 21255Usually this means the macro was only invoked conditionally." "$LINENO" 5 21256fi 21257if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then 21258 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined. 21259Usually this means the macro was only invoked conditionally." "$LINENO" 5 21260fi 21261if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then 21262 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined. 21263Usually this means the macro was only invoked conditionally." "$LINENO" 5 21264fi 21265if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then 21266 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined. 21267Usually this means the macro was only invoked conditionally." "$LINENO" 5 21268fi 21269if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then 21270 as_fn_error $? "conditional \"BUILD_SHM\" was never defined. 21271Usually this means the macro was only invoked conditionally." "$LINENO" 5 21272fi 21273if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then 21274 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined. 21275Usually this means the macro was only invoked conditionally." "$LINENO" 5 21276fi 21277if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then 21278 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined. 21279Usually this means the macro was only invoked conditionally." "$LINENO" 5 21280fi 21281if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then 21282 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined. 21283Usually this means the macro was only invoked conditionally." "$LINENO" 5 21284fi 21285if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then 21286 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined. 21287Usually this means the macro was only invoked conditionally." "$LINENO" 5 21288fi 21289if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then 21290 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined. 21291Usually this means the macro was only invoked conditionally." "$LINENO" 5 21292fi 21293if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then 21294 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined. 21295Usually this means the macro was only invoked conditionally." "$LINENO" 5 21296fi 21297if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then 21298 as_fn_error $? "conditional \"BUILD_XKB\" was never defined. 21299Usually this means the macro was only invoked conditionally." "$LINENO" 5 21300fi 21301if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then 21302 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined. 21303Usually this means the macro was only invoked conditionally." "$LINENO" 5 21304fi 21305if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then 21306 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined. 21307Usually this means the macro was only invoked conditionally." "$LINENO" 5 21308fi 21309if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then 21310 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined. 21311Usually this means the macro was only invoked conditionally." "$LINENO" 5 21312fi 21313if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then 21314 as_fn_error $? "conditional \"BUILD_XV\" was never defined. 21315Usually this means the macro was only invoked conditionally." "$LINENO" 5 21316fi 21317if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then 21318 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined. 21319Usually this means the macro was only invoked conditionally." "$LINENO" 5 21320fi 21321if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then 21322 as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined. 21323Usually this means the macro was only invoked conditionally." "$LINENO" 5 21324fi 21325 21326: "${CONFIG_STATUS=./config.status}" 21327ac_write_fail=0 21328ac_clean_files_save=$ac_clean_files 21329ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21330{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21331$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21332as_write_fail=0 21333cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21334#! $SHELL 21335# Generated by $as_me. 21336# Run this file to recreate the current configuration. 21337# Compiler output produced by configure, useful for debugging 21338# configure, is in config.log if it exists. 21339 21340debug=false 21341ac_cs_recheck=false 21342ac_cs_silent=false 21343 21344SHELL=\${CONFIG_SHELL-$SHELL} 21345export SHELL 21346_ASEOF 21347cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21348## -------------------- ## 21349## M4sh Initialization. ## 21350## -------------------- ## 21351 21352# Be more Bourne compatible 21353DUALCASE=1; export DUALCASE # for MKS sh 21354if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21355 emulate sh 21356 NULLCMD=: 21357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21358 # is contrary to our usage. Disable this feature. 21359 alias -g '${1+"$@"}'='"$@"' 21360 setopt NO_GLOB_SUBST 21361else 21362 case `(set -o) 2>/dev/null` in #( 21363 *posix*) : 21364 set -o posix ;; #( 21365 *) : 21366 ;; 21367esac 21368fi 21369 21370 21371as_nl=' 21372' 21373export as_nl 21374# Printing a long string crashes Solaris 7 /usr/bin/printf. 21375as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21378# Prefer a ksh shell builtin over an external printf program on Solaris, 21379# but without wasting forks for bash or zsh. 21380if test -z "$BASH_VERSION$ZSH_VERSION" \ 21381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21382 as_echo='print -r --' 21383 as_echo_n='print -rn --' 21384elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21385 as_echo='printf %s\n' 21386 as_echo_n='printf %s' 21387else 21388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21390 as_echo_n='/usr/ucb/echo -n' 21391 else 21392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21393 as_echo_n_body='eval 21394 arg=$1; 21395 case $arg in #( 21396 *"$as_nl"*) 21397 expr "X$arg" : "X\\(.*\\)$as_nl"; 21398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21399 esac; 21400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21401 ' 21402 export as_echo_n_body 21403 as_echo_n='sh -c $as_echo_n_body as_echo' 21404 fi 21405 export as_echo_body 21406 as_echo='sh -c $as_echo_body as_echo' 21407fi 21408 21409# The user is always right. 21410if test "${PATH_SEPARATOR+set}" != set; then 21411 PATH_SEPARATOR=: 21412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21414 PATH_SEPARATOR=';' 21415 } 21416fi 21417 21418 21419# IFS 21420# We need space, tab and new line, in precisely that order. Quoting is 21421# there to prevent editors from complaining about space-tab. 21422# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21423# splitting by setting IFS to empty value.) 21424IFS=" "" $as_nl" 21425 21426# Find who we are. Look in the path if we contain no directory separator. 21427as_myself= 21428case $0 in #(( 21429 *[\\/]* ) as_myself=$0 ;; 21430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21431for as_dir in $PATH 21432do 21433 IFS=$as_save_IFS 21434 test -z "$as_dir" && as_dir=. 21435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21436 done 21437IFS=$as_save_IFS 21438 21439 ;; 21440esac 21441# We did not find ourselves, most probably we were run as `sh COMMAND' 21442# in which case we are not to be found in the path. 21443if test "x$as_myself" = x; then 21444 as_myself=$0 21445fi 21446if test ! -f "$as_myself"; then 21447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21448 exit 1 21449fi 21450 21451# Unset variables that we do not need and which cause bugs (e.g. in 21452# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21453# suppresses any "Segmentation fault" message there. '((' could 21454# trigger a bug in pdksh 5.2.14. 21455for as_var in BASH_ENV ENV MAIL MAILPATH 21456do eval test x\${$as_var+set} = xset \ 21457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21458done 21459PS1='$ ' 21460PS2='> ' 21461PS4='+ ' 21462 21463# NLS nuisances. 21464LC_ALL=C 21465export LC_ALL 21466LANGUAGE=C 21467export LANGUAGE 21468 21469# CDPATH. 21470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21471 21472 21473# as_fn_error STATUS ERROR [LINENO LOG_FD] 21474# ---------------------------------------- 21475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21477# script with STATUS, using 1 if that was 0. 21478as_fn_error () 21479{ 21480 as_status=$1; test $as_status -eq 0 && as_status=1 21481 if test "$4"; then 21482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21484 fi 21485 $as_echo "$as_me: error: $2" >&2 21486 as_fn_exit $as_status 21487} # as_fn_error 21488 21489 21490# as_fn_set_status STATUS 21491# ----------------------- 21492# Set $? to STATUS, without forking. 21493as_fn_set_status () 21494{ 21495 return $1 21496} # as_fn_set_status 21497 21498# as_fn_exit STATUS 21499# ----------------- 21500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21501as_fn_exit () 21502{ 21503 set +e 21504 as_fn_set_status $1 21505 exit $1 21506} # as_fn_exit 21507 21508# as_fn_unset VAR 21509# --------------- 21510# Portably unset VAR. 21511as_fn_unset () 21512{ 21513 { eval $1=; unset $1;} 21514} 21515as_unset=as_fn_unset 21516# as_fn_append VAR VALUE 21517# ---------------------- 21518# Append the text in VALUE to the end of the definition contained in VAR. Take 21519# advantage of any shell optimizations that allow amortized linear growth over 21520# repeated appends, instead of the typical quadratic growth present in naive 21521# implementations. 21522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21523 eval 'as_fn_append () 21524 { 21525 eval $1+=\$2 21526 }' 21527else 21528 as_fn_append () 21529 { 21530 eval $1=\$$1\$2 21531 } 21532fi # as_fn_append 21533 21534# as_fn_arith ARG... 21535# ------------------ 21536# Perform arithmetic evaluation on the ARGs, and store the result in the 21537# global $as_val. Take advantage of shells that can avoid forks. The arguments 21538# must be portable across $(()) and expr. 21539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21540 eval 'as_fn_arith () 21541 { 21542 as_val=$(( $* )) 21543 }' 21544else 21545 as_fn_arith () 21546 { 21547 as_val=`expr "$@" || test $? -eq 1` 21548 } 21549fi # as_fn_arith 21550 21551 21552if expr a : '\(a\)' >/dev/null 2>&1 && 21553 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21554 as_expr=expr 21555else 21556 as_expr=false 21557fi 21558 21559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21560 as_basename=basename 21561else 21562 as_basename=false 21563fi 21564 21565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21566 as_dirname=dirname 21567else 21568 as_dirname=false 21569fi 21570 21571as_me=`$as_basename -- "$0" || 21572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21573 X"$0" : 'X\(//\)$' \| \ 21574 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21575$as_echo X/"$0" | 21576 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21577 s//\1/ 21578 q 21579 } 21580 /^X\/\(\/\/\)$/{ 21581 s//\1/ 21582 q 21583 } 21584 /^X\/\(\/\).*/{ 21585 s//\1/ 21586 q 21587 } 21588 s/.*/./; q'` 21589 21590# Avoid depending upon Character Ranges. 21591as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21593as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21594as_cr_digits='0123456789' 21595as_cr_alnum=$as_cr_Letters$as_cr_digits 21596 21597ECHO_C= ECHO_N= ECHO_T= 21598case `echo -n x` in #((((( 21599-n*) 21600 case `echo 'xy\c'` in 21601 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21602 xy) ECHO_C='\c';; 21603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21604 ECHO_T=' ';; 21605 esac;; 21606*) 21607 ECHO_N='-n';; 21608esac 21609 21610rm -f conf$$ conf$$.exe conf$$.file 21611if test -d conf$$.dir; then 21612 rm -f conf$$.dir/conf$$.file 21613else 21614 rm -f conf$$.dir 21615 mkdir conf$$.dir 2>/dev/null 21616fi 21617if (echo >conf$$.file) 2>/dev/null; then 21618 if ln -s conf$$.file conf$$ 2>/dev/null; then 21619 as_ln_s='ln -s' 21620 # ... but there are two gotchas: 21621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21623 # In both cases, we have to default to `cp -pR'. 21624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21625 as_ln_s='cp -pR' 21626 elif ln conf$$.file conf$$ 2>/dev/null; then 21627 as_ln_s=ln 21628 else 21629 as_ln_s='cp -pR' 21630 fi 21631else 21632 as_ln_s='cp -pR' 21633fi 21634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21635rmdir conf$$.dir 2>/dev/null 21636 21637 21638# as_fn_mkdir_p 21639# ------------- 21640# Create "$as_dir" as a directory, including parents if necessary. 21641as_fn_mkdir_p () 21642{ 21643 21644 case $as_dir in #( 21645 -*) as_dir=./$as_dir;; 21646 esac 21647 test -d "$as_dir" || eval $as_mkdir_p || { 21648 as_dirs= 21649 while :; do 21650 case $as_dir in #( 21651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21652 *) as_qdir=$as_dir;; 21653 esac 21654 as_dirs="'$as_qdir' $as_dirs" 21655 as_dir=`$as_dirname -- "$as_dir" || 21656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21657 X"$as_dir" : 'X\(//\)[^/]' \| \ 21658 X"$as_dir" : 'X\(//\)$' \| \ 21659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21660$as_echo X"$as_dir" | 21661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21662 s//\1/ 21663 q 21664 } 21665 /^X\(\/\/\)[^/].*/{ 21666 s//\1/ 21667 q 21668 } 21669 /^X\(\/\/\)$/{ 21670 s//\1/ 21671 q 21672 } 21673 /^X\(\/\).*/{ 21674 s//\1/ 21675 q 21676 } 21677 s/.*/./; q'` 21678 test -d "$as_dir" && break 21679 done 21680 test -z "$as_dirs" || eval "mkdir $as_dirs" 21681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21682 21683 21684} # as_fn_mkdir_p 21685if mkdir -p . 2>/dev/null; then 21686 as_mkdir_p='mkdir -p "$as_dir"' 21687else 21688 test -d ./-p && rmdir ./-p 21689 as_mkdir_p=false 21690fi 21691 21692 21693# as_fn_executable_p FILE 21694# ----------------------- 21695# Test if FILE is an executable regular file. 21696as_fn_executable_p () 21697{ 21698 test -f "$1" && test -x "$1" 21699} # as_fn_executable_p 21700as_test_x='test -x' 21701as_executable_p=as_fn_executable_p 21702 21703# Sed expression to map a string onto a valid CPP name. 21704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21705 21706# Sed expression to map a string onto a valid variable name. 21707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21708 21709 21710exec 6>&1 21711## ----------------------------------- ## 21712## Main body of $CONFIG_STATUS script. ## 21713## ----------------------------------- ## 21714_ASEOF 21715test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21716 21717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21718# Save the log message, to keep $0 and so on meaningful, and to 21719# report actual input values of CONFIG_FILES etc. instead of their 21720# values after options handling. 21721ac_log=" 21722This file was extended by libxcb $as_me 1.12, which was 21723generated by GNU Autoconf 2.69. Invocation command line was 21724 21725 CONFIG_FILES = $CONFIG_FILES 21726 CONFIG_HEADERS = $CONFIG_HEADERS 21727 CONFIG_LINKS = $CONFIG_LINKS 21728 CONFIG_COMMANDS = $CONFIG_COMMANDS 21729 $ $0 $@ 21730 21731on `(hostname || uname -n) 2>/dev/null | sed 1q` 21732" 21733 21734_ACEOF 21735 21736case $ac_config_files in *" 21737"*) set x $ac_config_files; shift; ac_config_files=$*;; 21738esac 21739 21740case $ac_config_headers in *" 21741"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21742esac 21743 21744 21745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21746# Files that config.status was made for. 21747config_files="$ac_config_files" 21748config_headers="$ac_config_headers" 21749config_commands="$ac_config_commands" 21750 21751_ACEOF 21752 21753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21754ac_cs_usage="\ 21755\`$as_me' instantiates files and other configuration actions 21756from templates according to the current configuration. Unless the files 21757and actions are specified as TAGs, all are instantiated by default. 21758 21759Usage: $0 [OPTION]... [TAG]... 21760 21761 -h, --help print this help, then exit 21762 -V, --version print version number and configuration settings, then exit 21763 --config print configuration, then exit 21764 -q, --quiet, --silent 21765 do not print progress messages 21766 -d, --debug don't remove temporary files 21767 --recheck update $as_me by reconfiguring in the same conditions 21768 --file=FILE[:TEMPLATE] 21769 instantiate the configuration file FILE 21770 --header=FILE[:TEMPLATE] 21771 instantiate the configuration header FILE 21772 21773Configuration files: 21774$config_files 21775 21776Configuration headers: 21777$config_headers 21778 21779Configuration commands: 21780$config_commands 21781 21782Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>." 21783 21784_ACEOF 21785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21786ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21787ac_cs_version="\\ 21788libxcb config.status 1.12 21789configured by $0, generated by GNU Autoconf 2.69, 21790 with options \\"\$ac_cs_config\\" 21791 21792Copyright (C) 2012 Free Software Foundation, Inc. 21793This config.status script is free software; the Free Software Foundation 21794gives unlimited permission to copy, distribute and modify it." 21795 21796ac_pwd='$ac_pwd' 21797srcdir='$srcdir' 21798INSTALL='$INSTALL' 21799MKDIR_P='$MKDIR_P' 21800AWK='$AWK' 21801test -n "\$AWK" || AWK=awk 21802_ACEOF 21803 21804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21805# The default lists apply if the user does not specify any file. 21806ac_need_defaults=: 21807while test $# != 0 21808do 21809 case $1 in 21810 --*=?*) 21811 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21813 ac_shift=: 21814 ;; 21815 --*=) 21816 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21817 ac_optarg= 21818 ac_shift=: 21819 ;; 21820 *) 21821 ac_option=$1 21822 ac_optarg=$2 21823 ac_shift=shift 21824 ;; 21825 esac 21826 21827 case $ac_option in 21828 # Handling of the options. 21829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21830 ac_cs_recheck=: ;; 21831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21832 $as_echo "$ac_cs_version"; exit ;; 21833 --config | --confi | --conf | --con | --co | --c ) 21834 $as_echo "$ac_cs_config"; exit ;; 21835 --debug | --debu | --deb | --de | --d | -d ) 21836 debug=: ;; 21837 --file | --fil | --fi | --f ) 21838 $ac_shift 21839 case $ac_optarg in 21840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21841 '') as_fn_error $? "missing file argument" ;; 21842 esac 21843 as_fn_append CONFIG_FILES " '$ac_optarg'" 21844 ac_need_defaults=false;; 21845 --header | --heade | --head | --hea ) 21846 $ac_shift 21847 case $ac_optarg in 21848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21849 esac 21850 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21851 ac_need_defaults=false;; 21852 --he | --h) 21853 # Conflict between --help and --header 21854 as_fn_error $? "ambiguous option: \`$1' 21855Try \`$0 --help' for more information.";; 21856 --help | --hel | -h ) 21857 $as_echo "$ac_cs_usage"; exit ;; 21858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21859 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21860 ac_cs_silent=: ;; 21861 21862 # This is an error. 21863 -*) as_fn_error $? "unrecognized option: \`$1' 21864Try \`$0 --help' for more information." ;; 21865 21866 *) as_fn_append ac_config_targets " $1" 21867 ac_need_defaults=false ;; 21868 21869 esac 21870 shift 21871done 21872 21873ac_configure_extra_args= 21874 21875if $ac_cs_silent; then 21876 exec 6>/dev/null 21877 ac_configure_extra_args="$ac_configure_extra_args --silent" 21878fi 21879 21880_ACEOF 21881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21882if \$ac_cs_recheck; then 21883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21884 shift 21885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21886 CONFIG_SHELL='$SHELL' 21887 export CONFIG_SHELL 21888 exec "\$@" 21889fi 21890 21891_ACEOF 21892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21893exec 5>>config.log 21894{ 21895 echo 21896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21897## Running $as_me. ## 21898_ASBOX 21899 $as_echo "$ac_log" 21900} >&5 21901 21902_ACEOF 21903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21904# 21905# INIT-COMMANDS 21906# 21907AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21908 21909 21910# The HP-UX ksh and POSIX shell print the target directory to stdout 21911# if CDPATH is set. 21912(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21913 21914sed_quote_subst='$sed_quote_subst' 21915double_quote_subst='$double_quote_subst' 21916delay_variable_subst='$delay_variable_subst' 21917macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21918macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21919AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21920DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21921OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21922enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21923enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21924pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21925enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21926shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21927SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21928ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21929PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21930host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21931host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21932host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21933build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21934build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21935build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21936SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21937Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21938GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21939EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21940FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21941LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21942NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21943LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21944max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21945ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21946exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21947lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21948lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21949lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21950lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21951lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21952reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21953reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21954deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21955file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21956file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21957want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21958sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21959AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21960AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21961archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21962STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21963RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21964old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21965old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21966old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21967lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21968CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21969CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21970compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21971GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21972lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21973lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21974lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21975lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21976lt_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"`' 21977lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21978nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21979lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21980lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21981objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21982MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21983lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21985lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21986lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21987lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21988need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21989MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21990DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21991NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21992LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21993OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21994OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21995libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21996shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21997extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21998archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21999enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22000export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22001whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22002compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22003old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22004old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22005archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22006archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22007module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22008module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22009with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22010allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22011no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22012hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22013hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22014hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22015hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22016hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22017hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22018hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22019inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22020link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22026postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22027file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22028variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22029need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22030need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22031version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22032runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22033shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22034shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22035libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22036library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22037soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22038install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22039postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22040postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22041finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22042finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22043hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22044sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22045configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22046configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22047hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22048enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22049enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22050enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22051old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22052striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22053 22054LTCC='$LTCC' 22055LTCFLAGS='$LTCFLAGS' 22056compiler='$compiler_DEFAULT' 22057 22058# A function that is used when there is no print builtin or printf. 22059func_fallback_echo () 22060{ 22061 eval 'cat <<_LTECHO_EOF 22062\$1 22063_LTECHO_EOF' 22064} 22065 22066# Quote evaled strings. 22067for var in AS \ 22068DLLTOOL \ 22069OBJDUMP \ 22070SHELL \ 22071ECHO \ 22072PATH_SEPARATOR \ 22073SED \ 22074GREP \ 22075EGREP \ 22076FGREP \ 22077LD \ 22078NM \ 22079LN_S \ 22080lt_SP2NL \ 22081lt_NL2SP \ 22082reload_flag \ 22083deplibs_check_method \ 22084file_magic_cmd \ 22085file_magic_glob \ 22086want_nocaseglob \ 22087sharedlib_from_linklib_cmd \ 22088AR \ 22089AR_FLAGS \ 22090archiver_list_spec \ 22091STRIP \ 22092RANLIB \ 22093CC \ 22094CFLAGS \ 22095compiler \ 22096lt_cv_sys_global_symbol_pipe \ 22097lt_cv_sys_global_symbol_to_cdecl \ 22098lt_cv_sys_global_symbol_to_import \ 22099lt_cv_sys_global_symbol_to_c_name_address \ 22100lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22101lt_cv_nm_interface \ 22102nm_file_list_spec \ 22103lt_cv_truncate_bin \ 22104lt_prog_compiler_no_builtin_flag \ 22105lt_prog_compiler_pic \ 22106lt_prog_compiler_wl \ 22107lt_prog_compiler_static \ 22108lt_cv_prog_compiler_c_o \ 22109need_locks \ 22110MANIFEST_TOOL \ 22111DSYMUTIL \ 22112NMEDIT \ 22113LIPO \ 22114OTOOL \ 22115OTOOL64 \ 22116shrext_cmds \ 22117export_dynamic_flag_spec \ 22118whole_archive_flag_spec \ 22119compiler_needs_object \ 22120with_gnu_ld \ 22121allow_undefined_flag \ 22122no_undefined_flag \ 22123hardcode_libdir_flag_spec \ 22124hardcode_libdir_separator \ 22125exclude_expsyms \ 22126include_expsyms \ 22127file_list_spec \ 22128variables_saved_for_relink \ 22129libname_spec \ 22130library_names_spec \ 22131soname_spec \ 22132install_override_mode \ 22133finish_eval \ 22134old_striplib \ 22135striplib; do 22136 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22137 *[\\\\\\\`\\"\\\$]*) 22138 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22139 ;; 22140 *) 22141 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22142 ;; 22143 esac 22144done 22145 22146# Double-quote double-evaled strings. 22147for var in reload_cmds \ 22148old_postinstall_cmds \ 22149old_postuninstall_cmds \ 22150old_archive_cmds \ 22151extract_expsyms_cmds \ 22152old_archive_from_new_cmds \ 22153old_archive_from_expsyms_cmds \ 22154archive_cmds \ 22155archive_expsym_cmds \ 22156module_cmds \ 22157module_expsym_cmds \ 22158export_symbols_cmds \ 22159prelink_cmds \ 22160postlink_cmds \ 22161postinstall_cmds \ 22162postuninstall_cmds \ 22163finish_cmds \ 22164sys_lib_search_path_spec \ 22165configure_time_dlsearch_path \ 22166configure_time_lt_sys_library_path; do 22167 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22168 *[\\\\\\\`\\"\\\$]*) 22169 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22170 ;; 22171 *) 22172 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22173 ;; 22174 esac 22175done 22176 22177ac_aux_dir='$ac_aux_dir' 22178 22179# See if we are running on zsh, and set the options that allow our 22180# commands through without removal of \ escapes INIT. 22181if test -n "\${ZSH_VERSION+set}"; then 22182 setopt NO_GLOB_SUBST 22183fi 22184 22185 22186 PACKAGE='$PACKAGE' 22187 VERSION='$VERSION' 22188 RM='$RM' 22189 ofile='$ofile' 22190 22191 22192 22193 22194_ACEOF 22195 22196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22197 22198# Handling of arguments. 22199for ac_config_target in $ac_config_targets 22200do 22201 case $ac_config_target in 22202 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22204 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22206 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22207 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22208 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22209 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22210 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;; 22211 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;; 22212 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;; 22213 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;; 22214 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;; 22215 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;; 22216 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;; 22217 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;; 22218 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;; 22219 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;; 22220 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;; 22221 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;; 22222 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;; 22223 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;; 22224 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;; 22225 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;; 22226 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;; 22227 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;; 22228 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;; 22229 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;; 22230 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;; 22231 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;; 22232 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;; 22233 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;; 22234 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;; 22235 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;; 22236 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;; 22237 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;; 22238 22239 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22240 esac 22241done 22242 22243 22244# If the user did not use the arguments to specify the items to instantiate, 22245# then the envvar interface is used. Set only those that are not. 22246# We use the long form for the default assignment because of an extremely 22247# bizarre bug on SunOS 4.1.3. 22248if $ac_need_defaults; then 22249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22252fi 22253 22254# Have a temporary directory for convenience. Make it in the build tree 22255# simply because there is no reason against having it here, and in addition, 22256# creating and moving files from /tmp can sometimes cause problems. 22257# Hook for its removal unless debugging. 22258# Note that there is a small window in which the directory will not be cleaned: 22259# after its creation but before its name has been assigned to `$tmp'. 22260$debug || 22261{ 22262 tmp= ac_tmp= 22263 trap 'exit_status=$? 22264 : "${ac_tmp:=$tmp}" 22265 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22266' 0 22267 trap 'as_fn_exit 1' 1 2 13 15 22268} 22269# Create a (secure) tmp directory for tmp files. 22270 22271{ 22272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22273 test -d "$tmp" 22274} || 22275{ 22276 tmp=./conf$$-$RANDOM 22277 (umask 077 && mkdir "$tmp") 22278} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22279ac_tmp=$tmp 22280 22281# Set up the scripts for CONFIG_FILES section. 22282# No need to generate them if there are no CONFIG_FILES. 22283# This happens for instance with `./config.status config.h'. 22284if test -n "$CONFIG_FILES"; then 22285 22286 22287ac_cr=`echo X | tr X '\015'` 22288# On cygwin, bash can eat \r inside `` if the user requested igncr. 22289# But we know of no other shell where ac_cr would be empty at this 22290# point, so we can use a bashism as a fallback. 22291if test "x$ac_cr" = x; then 22292 eval ac_cr=\$\'\\r\' 22293fi 22294ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22295if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22296 ac_cs_awk_cr='\\r' 22297else 22298 ac_cs_awk_cr=$ac_cr 22299fi 22300 22301echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22302_ACEOF 22303 22304 22305{ 22306 echo "cat >conf$$subs.awk <<_ACEOF" && 22307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22308 echo "_ACEOF" 22309} >conf$$subs.sh || 22310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22312ac_delim='%!_!# ' 22313for ac_last_try in false false false false false :; do 22314 . ./conf$$subs.sh || 22315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22316 22317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22318 if test $ac_delim_n = $ac_delim_num; then 22319 break 22320 elif $ac_last_try; then 22321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22322 else 22323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22324 fi 22325done 22326rm -f conf$$subs.sh 22327 22328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22330_ACEOF 22331sed -n ' 22332h 22333s/^/S["/; s/!.*/"]=/ 22334p 22335g 22336s/^[^!]*!// 22337:repl 22338t repl 22339s/'"$ac_delim"'$// 22340t delim 22341:nl 22342h 22343s/\(.\{148\}\)..*/\1/ 22344t more1 22345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22346p 22347n 22348b repl 22349:more1 22350s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22351p 22352g 22353s/.\{148\}// 22354t nl 22355:delim 22356h 22357s/\(.\{148\}\)..*/\1/ 22358t more2 22359s/["\\]/\\&/g; s/^/"/; s/$/"/ 22360p 22361b 22362:more2 22363s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22364p 22365g 22366s/.\{148\}// 22367t delim 22368' <conf$$subs.awk | sed ' 22369/^[^""]/{ 22370 N 22371 s/\n// 22372} 22373' >>$CONFIG_STATUS || ac_write_fail=1 22374rm -f conf$$subs.awk 22375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22376_ACAWK 22377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22378 for (key in S) S_is_set[key] = 1 22379 FS = "" 22380 22381} 22382{ 22383 line = $ 0 22384 nfields = split(line, field, "@") 22385 substed = 0 22386 len = length(field[1]) 22387 for (i = 2; i < nfields; i++) { 22388 key = field[i] 22389 keylen = length(key) 22390 if (S_is_set[key]) { 22391 value = S[key] 22392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22393 len += length(value) + length(field[++i]) 22394 substed = 1 22395 } else 22396 len += 1 + keylen 22397 } 22398 22399 print line 22400} 22401 22402_ACAWK 22403_ACEOF 22404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22405if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22407else 22408 cat 22409fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22410 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22411_ACEOF 22412 22413# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22414# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22415# trailing colons and then remove the whole line if VPATH becomes empty 22416# (actually we leave an empty line to preserve line numbers). 22417if test "x$srcdir" = x.; then 22418 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22419h 22420s/// 22421s/^/:/ 22422s/[ ]*$/:/ 22423s/:\$(srcdir):/:/g 22424s/:\${srcdir}:/:/g 22425s/:@srcdir@:/:/g 22426s/^:*// 22427s/:*$// 22428x 22429s/\(=[ ]*\).*/\1/ 22430G 22431s/\n// 22432s/^[^=]*=[ ]*$// 22433}' 22434fi 22435 22436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22437fi # test -n "$CONFIG_FILES" 22438 22439# Set up the scripts for CONFIG_HEADERS section. 22440# No need to generate them if there are no CONFIG_HEADERS. 22441# This happens for instance with `./config.status Makefile'. 22442if test -n "$CONFIG_HEADERS"; then 22443cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22444BEGIN { 22445_ACEOF 22446 22447# Transform confdefs.h into an awk script `defines.awk', embedded as 22448# here-document in config.status, that substitutes the proper values into 22449# config.h.in to produce config.h. 22450 22451# Create a delimiter string that does not exist in confdefs.h, to ease 22452# handling of long lines. 22453ac_delim='%!_!# ' 22454for ac_last_try in false false :; do 22455 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22456 if test -z "$ac_tt"; then 22457 break 22458 elif $ac_last_try; then 22459 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22460 else 22461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22462 fi 22463done 22464 22465# For the awk script, D is an array of macro values keyed by name, 22466# likewise P contains macro parameters if any. Preserve backslash 22467# newline sequences. 22468 22469ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22470sed -n ' 22471s/.\{148\}/&'"$ac_delim"'/g 22472t rset 22473:rset 22474s/^[ ]*#[ ]*define[ ][ ]*/ / 22475t def 22476d 22477:def 22478s/\\$// 22479t bsnl 22480s/["\\]/\\&/g 22481s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22482D["\1"]=" \3"/p 22483s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22484d 22485:bsnl 22486s/["\\]/\\&/g 22487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22488D["\1"]=" \3\\\\\\n"\\/p 22489t cont 22490s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22491t cont 22492d 22493:cont 22494n 22495s/.\{148\}/&'"$ac_delim"'/g 22496t clear 22497:clear 22498s/\\$// 22499t bsnlc 22500s/["\\]/\\&/g; s/^/"/; s/$/"/p 22501d 22502:bsnlc 22503s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22504b cont 22505' <confdefs.h | sed ' 22506s/'"$ac_delim"'/"\\\ 22507"/g' >>$CONFIG_STATUS || ac_write_fail=1 22508 22509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22510 for (key in D) D_is_set[key] = 1 22511 FS = "" 22512} 22513/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22514 line = \$ 0 22515 split(line, arg, " ") 22516 if (arg[1] == "#") { 22517 defundef = arg[2] 22518 mac1 = arg[3] 22519 } else { 22520 defundef = substr(arg[1], 2) 22521 mac1 = arg[2] 22522 } 22523 split(mac1, mac2, "(") #) 22524 macro = mac2[1] 22525 prefix = substr(line, 1, index(line, defundef) - 1) 22526 if (D_is_set[macro]) { 22527 # Preserve the white space surrounding the "#". 22528 print prefix "define", macro P[macro] D[macro] 22529 next 22530 } else { 22531 # Replace #undef with comments. This is necessary, for example, 22532 # in the case of _POSIX_SOURCE, which is predefined and required 22533 # on some systems where configure will not decide to define it. 22534 if (defundef == "undef") { 22535 print "/*", prefix defundef, macro, "*/" 22536 next 22537 } 22538 } 22539} 22540{ print } 22541_ACAWK 22542_ACEOF 22543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22544 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22545fi # test -n "$CONFIG_HEADERS" 22546 22547 22548eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22549shift 22550for ac_tag 22551do 22552 case $ac_tag in 22553 :[FHLC]) ac_mode=$ac_tag; continue;; 22554 esac 22555 case $ac_mode$ac_tag in 22556 :[FHL]*:*);; 22557 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22558 :[FH]-) ac_tag=-:-;; 22559 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22560 esac 22561 ac_save_IFS=$IFS 22562 IFS=: 22563 set x $ac_tag 22564 IFS=$ac_save_IFS 22565 shift 22566 ac_file=$1 22567 shift 22568 22569 case $ac_mode in 22570 :L) ac_source=$1;; 22571 :[FH]) 22572 ac_file_inputs= 22573 for ac_f 22574 do 22575 case $ac_f in 22576 -) ac_f="$ac_tmp/stdin";; 22577 *) # Look for the file first in the build tree, then in the source tree 22578 # (if the path is not absolute). The absolute path cannot be DOS-style, 22579 # because $ac_f cannot contain `:'. 22580 test -f "$ac_f" || 22581 case $ac_f in 22582 [\\/$]*) false;; 22583 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22584 esac || 22585 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22586 esac 22587 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22588 as_fn_append ac_file_inputs " '$ac_f'" 22589 done 22590 22591 # Let's still pretend it is `configure' which instantiates (i.e., don't 22592 # use $as_me), people would be surprised to read: 22593 # /* config.h. Generated by config.status. */ 22594 configure_input='Generated from '` 22595 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22596 `' by configure.' 22597 if test x"$ac_file" != x-; then 22598 configure_input="$ac_file. $configure_input" 22599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22600$as_echo "$as_me: creating $ac_file" >&6;} 22601 fi 22602 # Neutralize special characters interpreted by sed in replacement strings. 22603 case $configure_input in #( 22604 *\&* | *\|* | *\\* ) 22605 ac_sed_conf_input=`$as_echo "$configure_input" | 22606 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22607 *) ac_sed_conf_input=$configure_input;; 22608 esac 22609 22610 case $ac_tag in 22611 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22613 esac 22614 ;; 22615 esac 22616 22617 ac_dir=`$as_dirname -- "$ac_file" || 22618$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22619 X"$ac_file" : 'X\(//\)[^/]' \| \ 22620 X"$ac_file" : 'X\(//\)$' \| \ 22621 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22622$as_echo X"$ac_file" | 22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22624 s//\1/ 22625 q 22626 } 22627 /^X\(\/\/\)[^/].*/{ 22628 s//\1/ 22629 q 22630 } 22631 /^X\(\/\/\)$/{ 22632 s//\1/ 22633 q 22634 } 22635 /^X\(\/\).*/{ 22636 s//\1/ 22637 q 22638 } 22639 s/.*/./; q'` 22640 as_dir="$ac_dir"; as_fn_mkdir_p 22641 ac_builddir=. 22642 22643case "$ac_dir" in 22644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22645*) 22646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22647 # A ".." for each directory in $ac_dir_suffix. 22648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22649 case $ac_top_builddir_sub in 22650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22652 esac ;; 22653esac 22654ac_abs_top_builddir=$ac_pwd 22655ac_abs_builddir=$ac_pwd$ac_dir_suffix 22656# for backward compatibility: 22657ac_top_builddir=$ac_top_build_prefix 22658 22659case $srcdir in 22660 .) # We are building in place. 22661 ac_srcdir=. 22662 ac_top_srcdir=$ac_top_builddir_sub 22663 ac_abs_top_srcdir=$ac_pwd ;; 22664 [\\/]* | ?:[\\/]* ) # Absolute name. 22665 ac_srcdir=$srcdir$ac_dir_suffix; 22666 ac_top_srcdir=$srcdir 22667 ac_abs_top_srcdir=$srcdir ;; 22668 *) # Relative name. 22669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22670 ac_top_srcdir=$ac_top_build_prefix$srcdir 22671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22672esac 22673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22674 22675 22676 case $ac_mode in 22677 :F) 22678 # 22679 # CONFIG_FILE 22680 # 22681 22682 case $INSTALL in 22683 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22684 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22685 esac 22686 ac_MKDIR_P=$MKDIR_P 22687 case $MKDIR_P in 22688 [\\/$]* | ?:[\\/]* ) ;; 22689 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22690 esac 22691_ACEOF 22692 22693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22694# If the template does not know about datarootdir, expand it. 22695# FIXME: This hack should be removed a few years after 2.60. 22696ac_datarootdir_hack=; ac_datarootdir_seen= 22697ac_sed_dataroot=' 22698/datarootdir/ { 22699 p 22700 q 22701} 22702/@datadir@/p 22703/@docdir@/p 22704/@infodir@/p 22705/@localedir@/p 22706/@mandir@/p' 22707case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22708*datarootdir*) ac_datarootdir_seen=yes;; 22709*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22711$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22712_ACEOF 22713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22714 ac_datarootdir_hack=' 22715 s&@datadir@&$datadir&g 22716 s&@docdir@&$docdir&g 22717 s&@infodir@&$infodir&g 22718 s&@localedir@&$localedir&g 22719 s&@mandir@&$mandir&g 22720 s&\\\${datarootdir}&$datarootdir&g' ;; 22721esac 22722_ACEOF 22723 22724# Neutralize VPATH when `$srcdir' = `.'. 22725# Shell code in configure.ac might set extrasub. 22726# FIXME: do we really want to maintain this feature? 22727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22728ac_sed_extra="$ac_vpsub 22729$extrasub 22730_ACEOF 22731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22732:t 22733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22734s|@configure_input@|$ac_sed_conf_input|;t t 22735s&@top_builddir@&$ac_top_builddir_sub&;t t 22736s&@top_build_prefix@&$ac_top_build_prefix&;t t 22737s&@srcdir@&$ac_srcdir&;t t 22738s&@abs_srcdir@&$ac_abs_srcdir&;t t 22739s&@top_srcdir@&$ac_top_srcdir&;t t 22740s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22741s&@builddir@&$ac_builddir&;t t 22742s&@abs_builddir@&$ac_abs_builddir&;t t 22743s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22744s&@INSTALL@&$ac_INSTALL&;t t 22745s&@MKDIR_P@&$ac_MKDIR_P&;t t 22746$ac_datarootdir_hack 22747" 22748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22749 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22750 22751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22752 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22754 "$ac_tmp/out"`; test -z "$ac_out"; } && 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22756which seems to be undefined. Please make sure it is defined" >&5 22757$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22758which seems to be undefined. Please make sure it is defined" >&2;} 22759 22760 rm -f "$ac_tmp/stdin" 22761 case $ac_file in 22762 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22763 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22764 esac \ 22765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22766 ;; 22767 :H) 22768 # 22769 # CONFIG_HEADER 22770 # 22771 if test x"$ac_file" != x-; then 22772 { 22773 $as_echo "/* $configure_input */" \ 22774 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22775 } >"$ac_tmp/config.h" \ 22776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22777 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22778 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22779$as_echo "$as_me: $ac_file is unchanged" >&6;} 22780 else 22781 rm -f "$ac_file" 22782 mv "$ac_tmp/config.h" "$ac_file" \ 22783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22784 fi 22785 else 22786 $as_echo "/* $configure_input */" \ 22787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22788 || as_fn_error $? "could not create -" "$LINENO" 5 22789 fi 22790# Compute "$ac_file"'s index in $config_headers. 22791_am_arg="$ac_file" 22792_am_stamp_count=1 22793for _am_header in $config_headers :; do 22794 case $_am_header in 22795 $_am_arg | $_am_arg:* ) 22796 break ;; 22797 * ) 22798 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22799 esac 22800done 22801echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22802$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22803 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22804 X"$_am_arg" : 'X\(//\)$' \| \ 22805 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22806$as_echo X"$_am_arg" | 22807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22808 s//\1/ 22809 q 22810 } 22811 /^X\(\/\/\)[^/].*/{ 22812 s//\1/ 22813 q 22814 } 22815 /^X\(\/\/\)$/{ 22816 s//\1/ 22817 q 22818 } 22819 /^X\(\/\).*/{ 22820 s//\1/ 22821 q 22822 } 22823 s/.*/./; q'`/stamp-h$_am_stamp_count 22824 ;; 22825 22826 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22827$as_echo "$as_me: executing $ac_file commands" >&6;} 22828 ;; 22829 esac 22830 22831 22832 case $ac_file$ac_mode in 22833 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22834 # Older Autoconf quotes --file arguments for eval, but not when files 22835 # are listed without --file. Let's play safe and only enable the eval 22836 # if we detect the quoting. 22837 case $CONFIG_FILES in 22838 *\'*) eval set x "$CONFIG_FILES" ;; 22839 *) set x $CONFIG_FILES ;; 22840 esac 22841 shift 22842 for mf 22843 do 22844 # Strip MF so we end up with the name of the file. 22845 mf=`echo "$mf" | sed -e 's/:.*$//'` 22846 # Check whether this is an Automake generated Makefile or not. 22847 # We used to match only the files named 'Makefile.in', but 22848 # some people rename them; so instead we look at the file content. 22849 # Grep'ing the first line is not enough: some people post-process 22850 # each Makefile.in and add a new line on top of each file to say so. 22851 # Grep'ing the whole file is not good either: AIX grep has a line 22852 # limit of 2048, but all sed's we know have understand at least 4000. 22853 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22854 dirpart=`$as_dirname -- "$mf" || 22855$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22856 X"$mf" : 'X\(//\)[^/]' \| \ 22857 X"$mf" : 'X\(//\)$' \| \ 22858 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22859$as_echo X"$mf" | 22860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22861 s//\1/ 22862 q 22863 } 22864 /^X\(\/\/\)[^/].*/{ 22865 s//\1/ 22866 q 22867 } 22868 /^X\(\/\/\)$/{ 22869 s//\1/ 22870 q 22871 } 22872 /^X\(\/\).*/{ 22873 s//\1/ 22874 q 22875 } 22876 s/.*/./; q'` 22877 else 22878 continue 22879 fi 22880 # Extract the definition of DEPDIR, am__include, and am__quote 22881 # from the Makefile without running 'make'. 22882 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22883 test -z "$DEPDIR" && continue 22884 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22885 test -z "$am__include" && continue 22886 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22887 # Find all dependency output files, they are included files with 22888 # $(DEPDIR) in their names. We invoke sed twice because it is the 22889 # simplest approach to changing $(DEPDIR) to its actual value in the 22890 # expansion. 22891 for file in `sed -n " 22892 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22893 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22894 # Make sure the directory exists. 22895 test -f "$dirpart/$file" && continue 22896 fdir=`$as_dirname -- "$file" || 22897$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22898 X"$file" : 'X\(//\)[^/]' \| \ 22899 X"$file" : 'X\(//\)$' \| \ 22900 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22901$as_echo X"$file" | 22902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22903 s//\1/ 22904 q 22905 } 22906 /^X\(\/\/\)[^/].*/{ 22907 s//\1/ 22908 q 22909 } 22910 /^X\(\/\/\)$/{ 22911 s//\1/ 22912 q 22913 } 22914 /^X\(\/\).*/{ 22915 s//\1/ 22916 q 22917 } 22918 s/.*/./; q'` 22919 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22920 # echo "creating $dirpart/$file" 22921 echo '# dummy' > "$dirpart/$file" 22922 done 22923 done 22924} 22925 ;; 22926 "libtool":C) 22927 22928 # See if we are running on zsh, and set the options that allow our 22929 # commands through without removal of \ escapes. 22930 if test -n "${ZSH_VERSION+set}"; then 22931 setopt NO_GLOB_SUBST 22932 fi 22933 22934 cfgfile=${ofile}T 22935 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22936 $RM "$cfgfile" 22937 22938 cat <<_LT_EOF >> "$cfgfile" 22939#! $SHELL 22940# Generated automatically by $as_me ($PACKAGE) $VERSION 22941# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22942# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22943 22944# Provide generalized library-building support services. 22945# Written by Gordon Matzigkeit, 1996 22946 22947# Copyright (C) 2014 Free Software Foundation, Inc. 22948# This is free software; see the source for copying conditions. There is NO 22949# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22950 22951# GNU Libtool is free software; you can redistribute it and/or modify 22952# it under the terms of the GNU General Public License as published by 22953# the Free Software Foundation; either version 2 of of the License, or 22954# (at your option) any later version. 22955# 22956# As a special exception to the GNU General Public License, if you 22957# distribute this file as part of a program or library that is built 22958# using GNU Libtool, you may include this file under the same 22959# distribution terms that you use for the rest of that program. 22960# 22961# GNU Libtool is distributed in the hope that it will be useful, but 22962# WITHOUT ANY WARRANTY; without even the implied warranty of 22963# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22964# GNU General Public License for more details. 22965# 22966# You should have received a copy of the GNU General Public License 22967# along with this program. If not, see <http://www.gnu.org/licenses/>. 22968 22969 22970# The names of the tagged configurations supported by this script. 22971available_tags='' 22972 22973# Configured defaults for sys_lib_dlsearch_path munging. 22974: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22975 22976# ### BEGIN LIBTOOL CONFIG 22977 22978# Which release of libtool.m4 was used? 22979macro_version=$macro_version 22980macro_revision=$macro_revision 22981 22982# Assembler program. 22983AS=$lt_AS 22984 22985# DLL creation program. 22986DLLTOOL=$lt_DLLTOOL 22987 22988# Object dumper program. 22989OBJDUMP=$lt_OBJDUMP 22990 22991# Whether or not to build shared libraries. 22992build_libtool_libs=$enable_shared 22993 22994# Whether or not to build static libraries. 22995build_old_libs=$enable_static 22996 22997# What type of objects to build. 22998pic_mode=$pic_mode 22999 23000# Whether or not to optimize for fast installation. 23001fast_install=$enable_fast_install 23002 23003# Shared archive member basename,for filename based shared library versioning on AIX. 23004shared_archive_member_spec=$shared_archive_member_spec 23005 23006# Shell to use when invoking shell scripts. 23007SHELL=$lt_SHELL 23008 23009# An echo program that protects backslashes. 23010ECHO=$lt_ECHO 23011 23012# The PATH separator for the build system. 23013PATH_SEPARATOR=$lt_PATH_SEPARATOR 23014 23015# The host system. 23016host_alias=$host_alias 23017host=$host 23018host_os=$host_os 23019 23020# The build system. 23021build_alias=$build_alias 23022build=$build 23023build_os=$build_os 23024 23025# A sed program that does not truncate output. 23026SED=$lt_SED 23027 23028# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23029Xsed="\$SED -e 1s/^X//" 23030 23031# A grep program that handles long lines. 23032GREP=$lt_GREP 23033 23034# An ERE matcher. 23035EGREP=$lt_EGREP 23036 23037# A literal string matcher. 23038FGREP=$lt_FGREP 23039 23040# A BSD- or MS-compatible name lister. 23041NM=$lt_NM 23042 23043# Whether we need soft or hard links. 23044LN_S=$lt_LN_S 23045 23046# What is the maximum length of a command? 23047max_cmd_len=$max_cmd_len 23048 23049# Object file suffix (normally "o"). 23050objext=$ac_objext 23051 23052# Executable file suffix (normally ""). 23053exeext=$exeext 23054 23055# whether the shell understands "unset". 23056lt_unset=$lt_unset 23057 23058# turn spaces into newlines. 23059SP2NL=$lt_lt_SP2NL 23060 23061# turn newlines into spaces. 23062NL2SP=$lt_lt_NL2SP 23063 23064# convert \$build file names to \$host format. 23065to_host_file_cmd=$lt_cv_to_host_file_cmd 23066 23067# convert \$build files to toolchain format. 23068to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23069 23070# Method to check whether dependent libraries are shared objects. 23071deplibs_check_method=$lt_deplibs_check_method 23072 23073# Command to use when deplibs_check_method = "file_magic". 23074file_magic_cmd=$lt_file_magic_cmd 23075 23076# How to find potential files when deplibs_check_method = "file_magic". 23077file_magic_glob=$lt_file_magic_glob 23078 23079# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23080want_nocaseglob=$lt_want_nocaseglob 23081 23082# Command to associate shared and link libraries. 23083sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23084 23085# The archiver. 23086AR=$lt_AR 23087 23088# Flags to create an archive. 23089AR_FLAGS=$lt_AR_FLAGS 23090 23091# How to feed a file listing to the archiver. 23092archiver_list_spec=$lt_archiver_list_spec 23093 23094# A symbol stripping program. 23095STRIP=$lt_STRIP 23096 23097# Commands used to install an old-style archive. 23098RANLIB=$lt_RANLIB 23099old_postinstall_cmds=$lt_old_postinstall_cmds 23100old_postuninstall_cmds=$lt_old_postuninstall_cmds 23101 23102# Whether to use a lock for old archive extraction. 23103lock_old_archive_extraction=$lock_old_archive_extraction 23104 23105# A C compiler. 23106LTCC=$lt_CC 23107 23108# LTCC compiler flags. 23109LTCFLAGS=$lt_CFLAGS 23110 23111# Take the output of nm and produce a listing of raw symbols and C names. 23112global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23113 23114# Transform the output of nm in a proper C declaration. 23115global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23116 23117# Transform the output of nm into a list of symbols to manually relocate. 23118global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23119 23120# Transform the output of nm in a C name address pair. 23121global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23122 23123# Transform the output of nm in a C name address pair when lib prefix is needed. 23124global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23125 23126# The name lister interface. 23127nm_interface=$lt_lt_cv_nm_interface 23128 23129# Specify filename containing input files for \$NM. 23130nm_file_list_spec=$lt_nm_file_list_spec 23131 23132# The root where to search for dependent libraries,and where our libraries should be installed. 23133lt_sysroot=$lt_sysroot 23134 23135# Command to truncate a binary pipe. 23136lt_truncate_bin=$lt_lt_cv_truncate_bin 23137 23138# The name of the directory that contains temporary libtool files. 23139objdir=$objdir 23140 23141# Used to examine libraries when file_magic_cmd begins with "file". 23142MAGIC_CMD=$MAGIC_CMD 23143 23144# Must we lock files when doing compilation? 23145need_locks=$lt_need_locks 23146 23147# Manifest tool. 23148MANIFEST_TOOL=$lt_MANIFEST_TOOL 23149 23150# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23151DSYMUTIL=$lt_DSYMUTIL 23152 23153# Tool to change global to local symbols on Mac OS X. 23154NMEDIT=$lt_NMEDIT 23155 23156# Tool to manipulate fat objects and archives on Mac OS X. 23157LIPO=$lt_LIPO 23158 23159# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23160OTOOL=$lt_OTOOL 23161 23162# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23163OTOOL64=$lt_OTOOL64 23164 23165# Old archive suffix (normally "a"). 23166libext=$libext 23167 23168# Shared library suffix (normally ".so"). 23169shrext_cmds=$lt_shrext_cmds 23170 23171# The commands to extract the exported symbol list from a shared archive. 23172extract_expsyms_cmds=$lt_extract_expsyms_cmds 23173 23174# Variables whose values should be saved in libtool wrapper scripts and 23175# restored at link time. 23176variables_saved_for_relink=$lt_variables_saved_for_relink 23177 23178# Do we need the "lib" prefix for modules? 23179need_lib_prefix=$need_lib_prefix 23180 23181# Do we need a version for libraries? 23182need_version=$need_version 23183 23184# Library versioning type. 23185version_type=$version_type 23186 23187# Shared library runtime path variable. 23188runpath_var=$runpath_var 23189 23190# Shared library path variable. 23191shlibpath_var=$shlibpath_var 23192 23193# Is shlibpath searched before the hard-coded library search path? 23194shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23195 23196# Format of library name prefix. 23197libname_spec=$lt_libname_spec 23198 23199# List of archive names. First name is the real one, the rest are links. 23200# The last name is the one that the linker finds with -lNAME 23201library_names_spec=$lt_library_names_spec 23202 23203# The coded name of the library, if different from the real name. 23204soname_spec=$lt_soname_spec 23205 23206# Permission mode override for installation of shared libraries. 23207install_override_mode=$lt_install_override_mode 23208 23209# Command to use after installation of a shared archive. 23210postinstall_cmds=$lt_postinstall_cmds 23211 23212# Command to use after uninstallation of a shared archive. 23213postuninstall_cmds=$lt_postuninstall_cmds 23214 23215# Commands used to finish a libtool library installation in a directory. 23216finish_cmds=$lt_finish_cmds 23217 23218# As "finish_cmds", except a single script fragment to be evaled but 23219# not shown. 23220finish_eval=$lt_finish_eval 23221 23222# Whether we should hardcode library paths into libraries. 23223hardcode_into_libs=$hardcode_into_libs 23224 23225# Compile-time system search path for libraries. 23226sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23227 23228# Detected run-time system search path for libraries. 23229sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23230 23231# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23232configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23233 23234# Whether dlopen is supported. 23235dlopen_support=$enable_dlopen 23236 23237# Whether dlopen of programs is supported. 23238dlopen_self=$enable_dlopen_self 23239 23240# Whether dlopen of statically linked programs is supported. 23241dlopen_self_static=$enable_dlopen_self_static 23242 23243# Commands to strip libraries. 23244old_striplib=$lt_old_striplib 23245striplib=$lt_striplib 23246 23247 23248# The linker used to build libraries. 23249LD=$lt_LD 23250 23251# How to create reloadable object files. 23252reload_flag=$lt_reload_flag 23253reload_cmds=$lt_reload_cmds 23254 23255# Commands used to build an old-style archive. 23256old_archive_cmds=$lt_old_archive_cmds 23257 23258# A language specific compiler. 23259CC=$lt_compiler 23260 23261# Is the compiler the GNU compiler? 23262with_gcc=$GCC 23263 23264# Compiler flag to turn off builtin functions. 23265no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23266 23267# Additional compiler flags for building library objects. 23268pic_flag=$lt_lt_prog_compiler_pic 23269 23270# How to pass a linker flag through the compiler. 23271wl=$lt_lt_prog_compiler_wl 23272 23273# Compiler flag to prevent dynamic linking. 23274link_static_flag=$lt_lt_prog_compiler_static 23275 23276# Does compiler simultaneously support -c and -o options? 23277compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23278 23279# Whether or not to add -lc for building shared libraries. 23280build_libtool_need_lc=$archive_cmds_need_lc 23281 23282# Whether or not to disallow shared libs when runtime libs are static. 23283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23284 23285# Compiler flag to allow reflexive dlopens. 23286export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23287 23288# Compiler flag to generate shared objects directly from archives. 23289whole_archive_flag_spec=$lt_whole_archive_flag_spec 23290 23291# Whether the compiler copes with passing no objects directly. 23292compiler_needs_object=$lt_compiler_needs_object 23293 23294# Create an old-style archive from a shared archive. 23295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23296 23297# Create a temporary old-style archive to link instead of a shared archive. 23298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23299 23300# Commands used to build a shared archive. 23301archive_cmds=$lt_archive_cmds 23302archive_expsym_cmds=$lt_archive_expsym_cmds 23303 23304# Commands used to build a loadable module if different from building 23305# a shared archive. 23306module_cmds=$lt_module_cmds 23307module_expsym_cmds=$lt_module_expsym_cmds 23308 23309# Whether we are building with GNU ld or not. 23310with_gnu_ld=$lt_with_gnu_ld 23311 23312# Flag that allows shared libraries with undefined symbols to be built. 23313allow_undefined_flag=$lt_allow_undefined_flag 23314 23315# Flag that enforces no undefined symbols. 23316no_undefined_flag=$lt_no_undefined_flag 23317 23318# Flag to hardcode \$libdir into a binary during linking. 23319# This must work even if \$libdir does not exist 23320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23321 23322# Whether we need a single "-rpath" flag with a separated argument. 23323hardcode_libdir_separator=$lt_hardcode_libdir_separator 23324 23325# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23326# DIR into the resulting binary. 23327hardcode_direct=$hardcode_direct 23328 23329# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23330# DIR into the resulting binary and the resulting library dependency is 23331# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23332# library is relocated. 23333hardcode_direct_absolute=$hardcode_direct_absolute 23334 23335# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23336# into the resulting binary. 23337hardcode_minus_L=$hardcode_minus_L 23338 23339# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23340# into the resulting binary. 23341hardcode_shlibpath_var=$hardcode_shlibpath_var 23342 23343# Set to "yes" if building a shared library automatically hardcodes DIR 23344# into the library and all subsequent libraries and executables linked 23345# against it. 23346hardcode_automatic=$hardcode_automatic 23347 23348# Set to yes if linker adds runtime paths of dependent libraries 23349# to runtime path list. 23350inherit_rpath=$inherit_rpath 23351 23352# Whether libtool must link a program against all its dependency libraries. 23353link_all_deplibs=$link_all_deplibs 23354 23355# Set to "yes" if exported symbols are required. 23356always_export_symbols=$always_export_symbols 23357 23358# The commands to list exported symbols. 23359export_symbols_cmds=$lt_export_symbols_cmds 23360 23361# Symbols that should not be listed in the preloaded symbols. 23362exclude_expsyms=$lt_exclude_expsyms 23363 23364# Symbols that must always be exported. 23365include_expsyms=$lt_include_expsyms 23366 23367# Commands necessary for linking programs (against libraries) with templates. 23368prelink_cmds=$lt_prelink_cmds 23369 23370# Commands necessary for finishing linking programs. 23371postlink_cmds=$lt_postlink_cmds 23372 23373# Specify filename containing input files. 23374file_list_spec=$lt_file_list_spec 23375 23376# How to hardcode a shared library path into an executable. 23377hardcode_action=$hardcode_action 23378 23379# ### END LIBTOOL CONFIG 23380 23381_LT_EOF 23382 23383 cat <<'_LT_EOF' >> "$cfgfile" 23384 23385# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23386 23387# func_munge_path_list VARIABLE PATH 23388# ----------------------------------- 23389# VARIABLE is name of variable containing _space_ separated list of 23390# directories to be munged by the contents of PATH, which is string 23391# having a format: 23392# "DIR[:DIR]:" 23393# string "DIR[ DIR]" will be prepended to VARIABLE 23394# ":DIR[:DIR]" 23395# string "DIR[ DIR]" will be appended to VARIABLE 23396# "DIRP[:DIRP]::[DIRA:]DIRA" 23397# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23398# "DIRA[ DIRA]" will be appended to VARIABLE 23399# "DIR[:DIR]" 23400# VARIABLE will be replaced by "DIR[ DIR]" 23401func_munge_path_list () 23402{ 23403 case x$2 in 23404 x) 23405 ;; 23406 *:) 23407 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23408 ;; 23409 x:*) 23410 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23411 ;; 23412 *::*) 23413 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23414 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23415 ;; 23416 *) 23417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23418 ;; 23419 esac 23420} 23421 23422 23423# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23424func_cc_basename () 23425{ 23426 for cc_temp in $*""; do 23427 case $cc_temp in 23428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23430 \-*) ;; 23431 *) break;; 23432 esac 23433 done 23434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23435} 23436 23437 23438# ### END FUNCTIONS SHARED WITH CONFIGURE 23439 23440_LT_EOF 23441 23442 case $host_os in 23443 aix3*) 23444 cat <<\_LT_EOF >> "$cfgfile" 23445# AIX sometimes has problems with the GCC collect2 program. For some 23446# reason, if we set the COLLECT_NAMES environment variable, the problems 23447# vanish in a puff of smoke. 23448if test set != "${COLLECT_NAMES+set}"; then 23449 COLLECT_NAMES= 23450 export COLLECT_NAMES 23451fi 23452_LT_EOF 23453 ;; 23454 esac 23455 23456 23457ltmain=$ac_aux_dir/ltmain.sh 23458 23459 23460 # We use sed instead of cat because bash on DJGPP gets confused if 23461 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23462 # text mode, it properly converts lines to CR/LF. This bash problem 23463 # is reportedly fixed, but why not run on old versions too? 23464 sed '$q' "$ltmain" >> "$cfgfile" \ 23465 || (rm -f "$cfgfile"; exit 1) 23466 23467 mv -f "$cfgfile" "$ofile" || 23468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23469 chmod +x "$ofile" 23470 23471 ;; 23472 23473 esac 23474done # for ac_tag 23475 23476 23477as_fn_exit 0 23478_ACEOF 23479ac_clean_files=$ac_clean_files_save 23480 23481test $ac_write_fail = 0 || 23482 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23483 23484 23485# configure is writing to config.log, and then calls config.status. 23486# config.status does its own redirection, appending to config.log. 23487# Unfortunately, on DOS this fails, as config.log is still kept open 23488# by configure, so config.status won't be able to write to it; its 23489# output is simply discarded. So we exec the FD to /dev/null, 23490# effectively closing config.log, so it can be properly (re)opened and 23491# appended to by config.status. When coming back to configure, we 23492# need to make the FD available again. 23493if test "$no_create" != yes; then 23494 ac_cs_success=: 23495 ac_config_status_args= 23496 test "$silent" = yes && 23497 ac_config_status_args="$ac_config_status_args --quiet" 23498 exec 5>/dev/null 23499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23500 exec 5>>config.log 23501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23502 # would make configure fail if this is the last instruction. 23503 $ac_cs_success || as_fn_exit 1 23504fi 23505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23508fi 23509 23510 23511 23512echo "" 23513echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" 23514echo "" 23515echo " Configuration" 23516echo " XDM support.........: ${have_xdmcp}" 23517echo " sendmsg fd passing..: ${have_sendmsg}" 23518echo " Build unit tests....: ${HAVE_CHECK}" 23519echo " with html results.: ${HTML_CHECK_RESULT}" 23520echo " XCB buffer size.....: ${xcb_queue_buffer_size}" 23521echo "" 23522echo " X11 extensions" 23523echo " Composite...........: ${BUILD_COMPOSITE}" 23524echo " Damage..............: ${BUILD_DAMAGE}" 23525echo " Dpms................: ${BUILD_DPMS}" 23526echo " Dri2................: ${BUILD_DRI2}" 23527echo " Dri3................: ${BUILD_DRI3}" 23528echo " Glx.................: ${BUILD_GLX}" 23529echo " Randr...............: ${BUILD_RANDR}" 23530echo " Record..............: ${BUILD_RECORD}" 23531echo " Render..............: ${BUILD_RENDER}" 23532echo " Resource............: ${BUILD_RESOURCE}" 23533echo " Screensaver.........: ${BUILD_SCREENSAVER}" 23534echo " selinux.............: ${BUILD_SELINUX}" 23535echo " Shape...............: ${BUILD_SHAPE}" 23536echo " Shm.................: ${BUILD_SHM}" 23537echo " Sync................: ${BUILD_SYNC}" 23538echo " Xevie...............: ${BUILD_XEVIE}" 23539echo " Xfixes..............: ${BUILD_XFIXES}" 23540echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}" 23541echo " xinerama............: ${BUILD_XINERAMA}" 23542echo " xinput..............: ${BUILD_XINPUT}" 23543echo " xkb.................: ${BUILD_XKB}" 23544echo " xprint..............: ${BUILD_XPRINT}" 23545echo " xtest...............: ${BUILD_XTEST}" 23546echo " xv..................: ${BUILD_XV}" 23547echo " xvmc................: ${BUILD_XVMC}" 23548echo "" 23549echo " Used CFLAGS:" 23550echo " CPPFLAGS............: ${CPPFLAGS}" 23551echo " CFLAGS..............: ${CFLAGS}" 23552echo "" 23553echo " Installation:" 23554echo " Prefix..............: ${prefix}" 23555echo "" 23556