1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for libxkbcommon 0.5.0. 4@%:@ 5@%:@ Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon>. 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=libxkbcommon 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments 401@%:@ must be portable across @S|@(()) 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 @S|@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=. 585LIB@&t@OBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libxkbcommon' 593PACKAGE_TARNAME='libxkbcommon' 594PACKAGE_VERSION='0.5.0' 595PACKAGE_STRING='libxkbcommon 0.5.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon' 597PACKAGE_URL='http://xkbcommon.org' 598 599ac_unique_file="Makefile.am" 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 639LIB@&t@OBJS 640ENABLE_X11_FALSE 641ENABLE_X11_TRUE 642XCB_XKB_LIBS 643XCB_XKB_CFLAGS 644XLOCALEDIR 645XKBCONFIGROOT 646RT_LIBS 647HAVE_NO_UNDEFINED_FALSE 648HAVE_NO_UNDEFINED_TRUE 649BUILD_LINUX_TESTS_FALSE 650BUILD_LINUX_TESTS_TRUE 651YACC_INST 652YFLAGS 653YACC 654HAVE_DOXYGEN_FALSE 655HAVE_DOXYGEN_TRUE 656DOXYGEN 657ENABLE_DOCS_FALSE 658ENABLE_DOCS_TRUE 659XORG_MALLOC_DEBUG_ENV 660MAN_SUBSTS 661XORG_MAN_PAGE 662ADMIN_MAN_DIR 663DRIVER_MAN_DIR 664MISC_MAN_DIR 665FILE_MAN_DIR 666LIB_MAN_DIR 667APP_MAN_DIR 668ADMIN_MAN_SUFFIX 669DRIVER_MAN_SUFFIX 670MISC_MAN_SUFFIX 671FILE_MAN_SUFFIX 672LIB_MAN_SUFFIX 673APP_MAN_SUFFIX 674INSTALL_CMD 675PKG_CONFIG_LIBDIR 676PKG_CONFIG_PATH 677PKG_CONFIG 678CHANGELOG_CMD 679STRICT_CFLAGS 680CWARNFLAGS 681BASE_CFLAGS 682OTOOL64 683OTOOL 684LIPO 685NMEDIT 686DSYMUTIL 687MANIFEST_TOOL 688RANLIB 689ac_ct_AR 690AR 691DLLTOOL 692OBJDUMP 693LN_S 694NM 695ac_ct_DUMPBIN 696DUMPBIN 697LD 698FGREP 699SED 700host_os 701host_vendor 702host_cpu 703host 704build_os 705build_vendor 706build_cpu 707build 708LIBTOOL 709EGREP 710GREP 711CPP 712am__fastdepCC_FALSE 713am__fastdepCC_TRUE 714CCDEPMODE 715am__nodep 716AMDEPBACKSLASH 717AMDEP_FALSE 718AMDEP_TRUE 719am__quote 720am__include 721DEPDIR 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729MAINT 730MAINTAINER_MODE_FALSE 731MAINTAINER_MODE_TRUE 732AM_BACKSLASH 733AM_DEFAULT_VERBOSITY 734AM_DEFAULT_V 735AM_V 736am__untar 737am__tar 738AMTAR 739am__leading_dot 740SET_MAKE 741AWK 742mkdir_p 743MKDIR_P 744INSTALL_STRIP_PROGRAM 745STRIP 746install_sh 747MAKEINFO 748AUTOHEADER 749AUTOMAKE 750AUTOCONF 751ACLOCAL 752VERSION 753PACKAGE 754CYGPATH_W 755am__isrc 756INSTALL_DATA 757INSTALL_SCRIPT 758INSTALL_PROGRAM 759target_alias 760host_alias 761build_alias 762LIBS 763ECHO_T 764ECHO_N 765ECHO_C 766DEFS 767mandir 768localedir 769libdir 770psdir 771pdfdir 772dvidir 773htmldir 774infodir 775docdir 776oldincludedir 777includedir 778localstatedir 779sharedstatedir 780sysconfdir 781datadir 782datarootdir 783libexecdir 784sbindir 785bindir 786program_transform_name 787prefix 788exec_prefix 789PACKAGE_URL 790PACKAGE_BUGREPORT 791PACKAGE_STRING 792PACKAGE_VERSION 793PACKAGE_TARNAME 794PACKAGE_NAME 795PATH_SEPARATOR 796SHELL' 797ac_subst_files='' 798ac_user_opts=' 799enable_option_checking 800enable_silent_rules 801enable_maintainer_mode 802enable_dependency_tracking 803enable_shared 804enable_static 805with_pic 806enable_fast_install 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810enable_selective_werror 811enable_strict_compilation 812enable_docs 813with_doxygen 814with_xkb_config_root 815with_x_locale_root 816with_default_rules 817with_default_model 818with_default_layout 819with_default_variant 820with_default_options 821enable_x11 822' 823 ac_precious_vars='build_alias 824host_alias 825target_alias 826CC 827CFLAGS 828LDFLAGS 829LIBS 830CPPFLAGS 831CPP 832PKG_CONFIG 833PKG_CONFIG_PATH 834PKG_CONFIG_LIBDIR 835XORG_MALLOC_DEBUG_ENV 836DOXYGEN 837YACC 838YFLAGS 839XCB_XKB_CFLAGS 840XCB_XKB_LIBS' 841 842 843# Initialize some variables set by options. 844ac_init_help= 845ac_init_version=false 846ac_unrecognized_opts= 847ac_unrecognized_sep= 848# The variables have the same names as the options, with 849# dashes changed to underlines. 850cache_file=/dev/null 851exec_prefix=NONE 852no_create= 853no_recursion= 854prefix=NONE 855program_prefix=NONE 856program_suffix=NONE 857program_transform_name=s,x,x, 858silent= 859site= 860srcdir= 861verbose= 862x_includes=NONE 863x_libraries=NONE 864 865# Installation directory options. 866# These are left unexpanded so users can "make install exec_prefix=/foo" 867# and all the variables that are supposed to be based on exec_prefix 868# by default will actually change. 869# Use braces instead of parens because sh, perl, etc. also accept them. 870# (The list follows the same order as the GNU Coding Standards.) 871bindir='${exec_prefix}/bin' 872sbindir='${exec_prefix}/sbin' 873libexecdir='${exec_prefix}/libexec' 874datarootdir='${prefix}/share' 875datadir='${datarootdir}' 876sysconfdir='${prefix}/etc' 877sharedstatedir='${prefix}/com' 878localstatedir='${prefix}/var' 879includedir='${prefix}/include' 880oldincludedir='/usr/include' 881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 882infodir='${datarootdir}/info' 883htmldir='${docdir}' 884dvidir='${docdir}' 885pdfdir='${docdir}' 886psdir='${docdir}' 887libdir='${exec_prefix}/lib' 888localedir='${datarootdir}/locale' 889mandir='${datarootdir}/man' 890 891ac_prev= 892ac_dashdash= 893for ac_option 894do 895 # If the previous option needs an argument, assign it. 896 if test -n "$ac_prev"; then 897 eval $ac_prev=\$ac_option 898 ac_prev= 899 continue 900 fi 901 902 case $ac_option in 903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 904 *=) ac_optarg= ;; 905 *) ac_optarg=yes ;; 906 esac 907 908 # Accept the important Cygnus configure options, so we can diagnose typos. 909 910 case $ac_dashdash$ac_option in 911 --) 912 ac_dashdash=yes ;; 913 914 -bindir | --bindir | --bindi | --bind | --bin | --bi) 915 ac_prev=bindir ;; 916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 917 bindir=$ac_optarg ;; 918 919 -build | --build | --buil | --bui | --bu) 920 ac_prev=build_alias ;; 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 922 build_alias=$ac_optarg ;; 923 924 -cache-file | --cache-file | --cache-fil | --cache-fi \ 925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 926 ac_prev=cache_file ;; 927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 929 cache_file=$ac_optarg ;; 930 931 --config-cache | -C) 932 cache_file=config.cache ;; 933 934 -datadir | --datadir | --datadi | --datad) 935 ac_prev=datadir ;; 936 -datadir=* | --datadir=* | --datadi=* | --datad=*) 937 datadir=$ac_optarg ;; 938 939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 940 | --dataroo | --dataro | --datar) 941 ac_prev=datarootdir ;; 942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 944 datarootdir=$ac_optarg ;; 945 946 -disable-* | --disable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=no ;; 961 962 -docdir | --docdir | --docdi | --doc | --do) 963 ac_prev=docdir ;; 964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 965 docdir=$ac_optarg ;; 966 967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 968 ac_prev=dvidir ;; 969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 970 dvidir=$ac_optarg ;; 971 972 -enable-* | --enable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: $ac_useropt" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=\$ac_optarg ;; 987 988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 990 | --exec | --exe | --ex) 991 ac_prev=exec_prefix ;; 992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 994 | --exec=* | --exe=* | --ex=*) 995 exec_prefix=$ac_optarg ;; 996 997 -gas | --gas | --ga | --g) 998 # Obsolete; use --with-gas. 999 with_gas=yes ;; 1000 1001 -help | --help | --hel | --he | -h) 1002 ac_init_help=long ;; 1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1004 ac_init_help=recursive ;; 1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1006 ac_init_help=short ;; 1007 1008 -host | --host | --hos | --ho) 1009 ac_prev=host_alias ;; 1010 -host=* | --host=* | --hos=* | --ho=*) 1011 host_alias=$ac_optarg ;; 1012 1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1014 ac_prev=htmldir ;; 1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1016 | --ht=*) 1017 htmldir=$ac_optarg ;; 1018 1019 -includedir | --includedir | --includedi | --included | --include \ 1020 | --includ | --inclu | --incl | --inc) 1021 ac_prev=includedir ;; 1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1023 | --includ=* | --inclu=* | --incl=* | --inc=*) 1024 includedir=$ac_optarg ;; 1025 1026 -infodir | --infodir | --infodi | --infod | --info | --inf) 1027 ac_prev=infodir ;; 1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1029 infodir=$ac_optarg ;; 1030 1031 -libdir | --libdir | --libdi | --libd) 1032 ac_prev=libdir ;; 1033 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1034 libdir=$ac_optarg ;; 1035 1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1037 | --libexe | --libex | --libe) 1038 ac_prev=libexecdir ;; 1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1040 | --libexe=* | --libex=* | --libe=*) 1041 libexecdir=$ac_optarg ;; 1042 1043 -localedir | --localedir | --localedi | --localed | --locale) 1044 ac_prev=localedir ;; 1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1046 localedir=$ac_optarg ;; 1047 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1049 | --localstate | --localstat | --localsta | --localst | --locals) 1050 ac_prev=localstatedir ;; 1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1053 localstatedir=$ac_optarg ;; 1054 1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1056 ac_prev=mandir ;; 1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1058 mandir=$ac_optarg ;; 1059 1060 -nfp | --nfp | --nf) 1061 # Obsolete; use --without-fp. 1062 with_fp=no ;; 1063 1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1065 | --no-cr | --no-c | -n) 1066 no_create=yes ;; 1067 1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1070 no_recursion=yes ;; 1071 1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1074 | --oldin | --oldi | --old | --ol | --o) 1075 ac_prev=oldincludedir ;; 1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1079 oldincludedir=$ac_optarg ;; 1080 1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1082 ac_prev=prefix ;; 1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1084 prefix=$ac_optarg ;; 1085 1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1087 | --program-pre | --program-pr | --program-p) 1088 ac_prev=program_prefix ;; 1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1091 program_prefix=$ac_optarg ;; 1092 1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1094 | --program-suf | --program-su | --program-s) 1095 ac_prev=program_suffix ;; 1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1098 program_suffix=$ac_optarg ;; 1099 1100 -program-transform-name | --program-transform-name \ 1101 | --program-transform-nam | --program-transform-na \ 1102 | --program-transform-n | --program-transform- \ 1103 | --program-transform | --program-transfor \ 1104 | --program-transfo | --program-transf \ 1105 | --program-trans | --program-tran \ 1106 | --progr-tra | --program-tr | --program-t) 1107 ac_prev=program_transform_name ;; 1108 -program-transform-name=* | --program-transform-name=* \ 1109 | --program-transform-nam=* | --program-transform-na=* \ 1110 | --program-transform-n=* | --program-transform-=* \ 1111 | --program-transform=* | --program-transfor=* \ 1112 | --program-transfo=* | --program-transf=* \ 1113 | --program-trans=* | --program-tran=* \ 1114 | --progr-tra=* | --program-tr=* | --program-t=*) 1115 program_transform_name=$ac_optarg ;; 1116 1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1118 ac_prev=pdfdir ;; 1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1120 pdfdir=$ac_optarg ;; 1121 1122 -psdir | --psdir | --psdi | --psd | --ps) 1123 ac_prev=psdir ;; 1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1125 psdir=$ac_optarg ;; 1126 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1128 | -silent | --silent | --silen | --sile | --sil) 1129 silent=yes ;; 1130 1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1132 ac_prev=sbindir ;; 1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1134 | --sbi=* | --sb=*) 1135 sbindir=$ac_optarg ;; 1136 1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1139 | --sharedst | --shareds | --shared | --share | --shar \ 1140 | --sha | --sh) 1141 ac_prev=sharedstatedir ;; 1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1145 | --sha=* | --sh=*) 1146 sharedstatedir=$ac_optarg ;; 1147 1148 -site | --site | --sit) 1149 ac_prev=site ;; 1150 -site=* | --site=* | --sit=*) 1151 site=$ac_optarg ;; 1152 1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1154 ac_prev=srcdir ;; 1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1156 srcdir=$ac_optarg ;; 1157 1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1159 | --syscon | --sysco | --sysc | --sys | --sy) 1160 ac_prev=sysconfdir ;; 1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1163 sysconfdir=$ac_optarg ;; 1164 1165 -target | --target | --targe | --targ | --tar | --ta | --t) 1166 ac_prev=target_alias ;; 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1168 target_alias=$ac_optarg ;; 1169 1170 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1171 verbose=yes ;; 1172 1173 -version | --version | --versio | --versi | --vers | -V) 1174 ac_init_version=: ;; 1175 1176 -with-* | --with-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=\$ac_optarg ;; 1191 1192 -without-* | --without-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=no ;; 1207 1208 --x) 1209 # Obsolete; use --with-x. 1210 with_x=yes ;; 1211 1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1213 | --x-incl | --x-inc | --x-in | --x-i) 1214 ac_prev=x_includes ;; 1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1217 x_includes=$ac_optarg ;; 1218 1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1221 ac_prev=x_libraries ;; 1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1224 x_libraries=$ac_optarg ;; 1225 1226 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1227Try \`$0 --help' for more information" 1228 ;; 1229 1230 *=*) 1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1232 # Reject names that are not valid shell variable names. 1233 case $ac_envvar in #( 1234 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1236 esac 1237 eval $ac_envvar=\$ac_optarg 1238 export $ac_envvar ;; 1239 1240 *) 1241 # FIXME: should be removed in autoconf 3.0. 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1246 ;; 1247 1248 esac 1249done 1250 1251if test -n "$ac_prev"; then 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1253 as_fn_error $? "missing argument to $ac_option" 1254fi 1255 1256if test -n "$ac_unrecognized_opts"; then 1257 case $enable_option_checking in 1258 no) ;; 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1261 esac 1262fi 1263 1264# Check all directory arguments for consistency. 1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1266 datadir sysconfdir sharedstatedir localstatedir includedir \ 1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1268 libdir localedir mandir 1269do 1270 eval ac_val=\$$ac_var 1271 # Remove trailing slashes. 1272 case $ac_val in 1273 */ ) 1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1275 eval $ac_var=\$ac_val;; 1276 esac 1277 # Be sure to have absolute directory names. 1278 case $ac_val in 1279 [\\/$]* | ?:[\\/]* ) continue;; 1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1281 esac 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1283done 1284 1285# There might be people who depend on the old broken behavior: `$host' 1286# used to hold the argument of --host etc. 1287# FIXME: To remove some day. 1288build=$build_alias 1289host=$host_alias 1290target=$target_alias 1291 1292# FIXME: To remove some day. 1293if test "x$host_alias" != x; then 1294 if test "x$build_alias" = x; then 1295 cross_compiling=maybe 1296 elif test "x$build_alias" != "x$host_alias"; then 1297 cross_compiling=yes 1298 fi 1299fi 1300 1301ac_tool_prefix= 1302test -n "$host_alias" && ac_tool_prefix=$host_alias- 1303 1304test "$silent" = yes && exec 6>/dev/null 1305 1306 1307ac_pwd=`pwd` && test -n "$ac_pwd" && 1308ac_ls_di=`ls -di .` && 1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1310 as_fn_error $? "working directory cannot be determined" 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1312 as_fn_error $? "pwd does not report name of working directory" 1313 1314 1315# Find the source files, if location was not specified. 1316if test -z "$srcdir"; then 1317 ac_srcdir_defaulted=yes 1318 # Try the directory containing this script, then the parent directory. 1319 ac_confdir=`$as_dirname -- "$as_myself" || 1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1321 X"$as_myself" : 'X\(//\)[^/]' \| \ 1322 X"$as_myself" : 'X\(//\)$' \| \ 1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1324$as_echo X"$as_myself" | 1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)[^/].*/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\).*/{ 1338 s//\1/ 1339 q 1340 } 1341 s/.*/./; q'` 1342 srcdir=$ac_confdir 1343 if test ! -r "$srcdir/$ac_unique_file"; then 1344 srcdir=.. 1345 fi 1346else 1347 ac_srcdir_defaulted=no 1348fi 1349if test ! -r "$srcdir/$ac_unique_file"; then 1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1352fi 1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1354ac_abs_confdir=`( 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1356 pwd)` 1357# When building in place, set srcdir=. 1358if test "$ac_abs_confdir" = "$ac_pwd"; then 1359 srcdir=. 1360fi 1361# Remove unnecessary trailing slashes from srcdir. 1362# Double slashes in file names in object file debugging info 1363# mess up M-x gdb in Emacs. 1364case $srcdir in 1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1366esac 1367for ac_var in $ac_precious_vars; do 1368 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_env_${ac_var}_value=\$${ac_var} 1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1372done 1373 1374# 1375# Report the --help message. 1376# 1377if test "$ac_init_help" = "long"; then 1378 # Omit some internal or obsolete options to make the list less imposing. 1379 # This message is too long to be a string in the A/UX 3.1 sh. 1380 cat <<_ACEOF 1381\`configure' configures libxkbcommon 0.5.0 to adapt to many kinds of systems. 1382 1383Usage: $0 [OPTION]... [VAR=VALUE]... 1384 1385To assign environment variables (e.g., CC, CFLAGS...), specify them as 1386VAR=VALUE. See below for descriptions of some of the useful variables. 1387 1388Defaults for the options are specified in brackets. 1389 1390Configuration: 1391 -h, --help display this help and exit 1392 --help=short display options specific to this package 1393 --help=recursive display the short help of all the included packages 1394 -V, --version display version information and exit 1395 -q, --quiet, --silent do not print \`checking ...' messages 1396 --cache-file=FILE cache test results in FILE [disabled] 1397 -C, --config-cache alias for \`--cache-file=config.cache' 1398 -n, --no-create do not create output files 1399 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1400 1401Installation directories: 1402 --prefix=PREFIX install architecture-independent files in PREFIX 1403 @<:@@S|@ac_default_prefix@:>@ 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1405 @<:@PREFIX@:>@ 1406 1407By default, \`make install' will install all the files in 1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1409an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1410for instance \`--prefix=\$HOME'. 1411 1412For better control, use the options below. 1413 1414Fine tuning of the installation directories: 1415 --bindir=DIR user executables [EPREFIX/bin] 1416 --sbindir=DIR system admin executables [EPREFIX/sbin] 1417 --libexecdir=DIR program executables [EPREFIX/libexec] 1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1421 --libdir=DIR object code libraries [EPREFIX/lib] 1422 --includedir=DIR C header files [PREFIX/include] 1423 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1426 --infodir=DIR info documentation [DATAROOTDIR/info] 1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1428 --mandir=DIR man documentation [DATAROOTDIR/man] 1429 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libxkbcommon@:>@ 1430 --htmldir=DIR html documentation [DOCDIR] 1431 --dvidir=DIR dvi documentation [DOCDIR] 1432 --pdfdir=DIR pdf documentation [DOCDIR] 1433 --psdir=DIR ps documentation [DOCDIR] 1434_ACEOF 1435 1436 cat <<\_ACEOF 1437 1438Program names: 1439 --program-prefix=PREFIX prepend PREFIX to installed program names 1440 --program-suffix=SUFFIX append SUFFIX to installed program names 1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1442 1443System types: 1444 --build=BUILD configure for building on BUILD [guessed] 1445 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1446_ACEOF 1447fi 1448 1449if test -n "$ac_init_help"; then 1450 case $ac_init_help in 1451 short | recursive ) echo "Configuration of libxkbcommon 0.5.0:";; 1452 esac 1453 cat <<\_ACEOF 1454 1455Optional Features: 1456 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-silent-rules less verbose build output (undo: "make V=1") 1460 --disable-silent-rules verbose build output (undo: "make V=0") 1461 --disable-maintainer-mode 1462 disable make rules and dependencies not useful (and 1463 sometimes confusing) to the casual installer 1464 --enable-dependency-tracking 1465 do not reject slow dependency extractors 1466 --disable-dependency-tracking 1467 speeds up one-time build 1468 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1469 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1470 --enable-fast-install@<:@=PKGS@:>@ 1471 optimize for fast installation @<:@default=yes@:>@ 1472 --disable-libtool-lock avoid locking (might break parallel builds) 1473 --disable-selective-werror 1474 Turn off selective compiler errors. (default: 1475 enabled) 1476 --enable-strict-compilation 1477 Enable all warnings from compiler and make them 1478 errors (default: disabled) 1479 --enable-docs Enable building the documentation (default: yes) 1480 --disable-x11 Disable support for creating keymaps with the X11 1481 protocol (default: enabled) 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1487 both@:>@ 1488 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1489 --with-sysroot=DIR Search for dependent libraries within DIR 1490 (or the compiler's sysroot if not specified). 1491 --with-doxygen Use doxygen to regenerate documentation (default: 1492 auto) 1493 --with-xkb-config-root=<path> 1494 Set default XKB config root (default: 1495 xkeyboard-config install path) 1496 --with-x-locale-root=<path> 1497 Set X locale root (default: @S|@datadir/X11/locale) 1498 --with-default-rules=<path> 1499 Default XKB ruleset (default: evdev) 1500 --with-default-model=<path> 1501 Default XKB model (default: pc105) 1502 --with-default-layout=<path> 1503 Default XKB layout (default: us) 1504 --with-default-variant=<path> 1505 Default XKB variant (default: (none)) 1506 --with-default-options=<path> 1507 Default XKB options (default: (none)) 1508 1509Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 LIBS libraries to pass to the linker, e.g. -l<library> 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1516 you have headers in a nonstandard directory <include dir> 1517 CPP C preprocessor 1518 PKG_CONFIG path to pkg-config utility 1519 PKG_CONFIG_PATH 1520 directories to add to pkg-config's search path 1521 PKG_CONFIG_LIBDIR 1522 path overriding pkg-config's built-in search path 1523 XORG_MALLOC_DEBUG_ENV 1524 Environment variables to enable memory checking in tests 1525 DOXYGEN Path to doxygen command 1526 YACC The `Yet Another Compiler Compiler' implementation to use. 1527 Defaults to the first program found out of: `bison -y', `byacc', 1528 `yacc'. 1529 YFLAGS The list of arguments that will be passed by default to @S|@YACC. 1530 This script will default YFLAGS to the empty string to avoid a 1531 default value of `-d' given by some make applications. 1532 XCB_XKB_CFLAGS 1533 C compiler flags for XCB_XKB, overriding pkg-config 1534 XCB_XKB_LIBS 1535 linker flags for XCB_XKB, overriding pkg-config 1536 1537Use these variables to override the choices made by `configure' or to help 1538it to find libraries and programs with nonstandard names/locations. 1539 1540Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon>. 1541libxkbcommon home page: <http://xkbcommon.org>. 1542_ACEOF 1543ac_status=$? 1544fi 1545 1546if test "$ac_init_help" = "recursive"; then 1547 # If there are subdirs, report their specific --help. 1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1549 test -d "$ac_dir" || 1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1551 continue 1552 ac_builddir=. 1553 1554case "$ac_dir" in 1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556*) 1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1558 # A ".." for each directory in $ac_dir_suffix. 1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1560 case $ac_top_builddir_sub in 1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1563 esac ;; 1564esac 1565ac_abs_top_builddir=$ac_pwd 1566ac_abs_builddir=$ac_pwd$ac_dir_suffix 1567# for backward compatibility: 1568ac_top_builddir=$ac_top_build_prefix 1569 1570case $srcdir in 1571 .) # We are building in place. 1572 ac_srcdir=. 1573 ac_top_srcdir=$ac_top_builddir_sub 1574 ac_abs_top_srcdir=$ac_pwd ;; 1575 [\\/]* | ?:[\\/]* ) # Absolute name. 1576 ac_srcdir=$srcdir$ac_dir_suffix; 1577 ac_top_srcdir=$srcdir 1578 ac_abs_top_srcdir=$srcdir ;; 1579 *) # Relative name. 1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1581 ac_top_srcdir=$ac_top_build_prefix$srcdir 1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1583esac 1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1585 1586 cd "$ac_dir" || { ac_status=$?; continue; } 1587 # Check for guested configure. 1588 if test -f "$ac_srcdir/configure.gnu"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1591 elif test -f "$ac_srcdir/configure"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure" --help=recursive 1594 else 1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1596 fi || ac_status=$? 1597 cd "$ac_pwd" || { ac_status=$?; break; } 1598 done 1599fi 1600 1601test -n "$ac_init_help" && exit $ac_status 1602if $ac_init_version; then 1603 cat <<\_ACEOF 1604libxkbcommon configure 0.5.0 1605generated by GNU Autoconf 2.69 1606 1607Copyright (C) 2012 Free Software Foundation, Inc. 1608This configure script is free software; the Free Software Foundation 1609gives unlimited permission to copy, distribute and modify it. 1610_ACEOF 1611 exit 1612fi 1613 1614## ------------------------ ## 1615## Autoconf initialization. ## 1616## ------------------------ ## 1617 1618@%:@ ac_fn_c_try_compile LINENO 1619@%:@ -------------------------- 1620@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1621ac_fn_c_try_compile () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 rm -f conftest.$ac_objext 1625 if { { ac_try="$ac_compile" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_compile") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } && { 1641 test -z "$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 } && test -s conftest.$ac_objext; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: failed program was:" >&5 1647sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=1 1650fi 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654} @%:@ ac_fn_c_try_compile 1655 1656@%:@ ac_fn_c_try_cpp LINENO 1657@%:@ ---------------------- 1658@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1659ac_fn_c_try_cpp () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_cpp conftest.$ac_ext" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } > conftest.i && { 1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} @%:@ ac_fn_c_try_cpp 1692 1693@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1694@%:@ ------------------------------------------------------- 1695@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 1696@%:@ the include files in INCLUDES and setting the cache variable VAR 1697@%:@ accordingly. 1698ac_fn_c_check_header_mongrel () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if eval \${$3+:} false; then : 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1703$as_echo_n "checking for $2... " >&6; } 1704if eval \${$3+:} false; then : 1705 $as_echo_n "(cached) " >&6 1706fi 1707eval ac_res=\$$3 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709$as_echo "$ac_res" >&6; } 1710else 1711 # Is the header compilable? 1712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1713$as_echo_n "checking $2 usability... " >&6; } 1714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715/* end confdefs.h. */ 1716$4 1717@%:@include <$2> 1718_ACEOF 1719if ac_fn_c_try_compile "$LINENO"; then : 1720 ac_header_compiler=yes 1721else 1722 ac_header_compiler=no 1723fi 1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1726$as_echo "$ac_header_compiler" >&6; } 1727 1728# Is the header present? 1729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1730$as_echo_n "checking $2 presence... " >&6; } 1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732/* end confdefs.h. */ 1733@%:@include <$2> 1734_ACEOF 1735if ac_fn_c_try_cpp "$LINENO"; then : 1736 ac_header_preproc=yes 1737else 1738 ac_header_preproc=no 1739fi 1740rm -f conftest.err conftest.i conftest.$ac_ext 1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1742$as_echo "$ac_header_preproc" >&6; } 1743 1744# So? What about this header? 1745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1746 yes:no: ) 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1748$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1751 ;; 1752 no:yes:* ) 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1754$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1756$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1758$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1760$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1762$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1763( $as_echo "## ------------------------------------------------------------------------------ ## 1764## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon ## 1765## ------------------------------------------------------------------------------ ##" 1766 ) | sed "s/^/$as_me: WARNING: /" >&2 1767 ;; 1768esac 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770$as_echo_n "checking for $2... " >&6; } 1771if eval \${$3+:} false; then : 1772 $as_echo_n "(cached) " >&6 1773else 1774 eval "$3=\$ac_header_compiler" 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779fi 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 1782} @%:@ ac_fn_c_check_header_mongrel 1783 1784@%:@ ac_fn_c_try_run LINENO 1785@%:@ ---------------------- 1786@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1787@%:@ that executables *can* be run. 1788ac_fn_c_try_run () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if { { ac_try="$ac_link" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_link") 2>&5 1799 ac_status=$? 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1802 { { case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_try") 2>&5 1809 ac_status=$? 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; }; }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: program exited with status $ac_status" >&5 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=$ac_status 1819fi 1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} @%:@ ac_fn_c_try_run 1825 1826@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1827@%:@ ------------------------------------------------------- 1828@%:@ Tests whether HEADER exists and can be compiled using the include files in 1829@%:@ INCLUDES, setting the cache variable VAR accordingly. 1830ac_fn_c_check_header_compile () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1834$as_echo_n "checking for $2... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841@%:@include <$2> 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO"; then : 1844 eval "$3=yes" 1845else 1846 eval "$3=no" 1847fi 1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1849fi 1850eval ac_res=\$$3 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1852$as_echo "$ac_res" >&6; } 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 1855} @%:@ ac_fn_c_check_header_compile 1856 1857@%:@ ac_fn_c_try_link LINENO 1858@%:@ ----------------------- 1859@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1860ac_fn_c_try_link () 1861{ 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 rm -f conftest.$ac_objext conftest$ac_exeext 1864 if { { ac_try="$ac_link" 1865case "(($ac_try" in 1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1867 *) ac_try_echo=$ac_try;; 1868esac 1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1870$as_echo "$ac_try_echo"; } >&5 1871 (eval "$ac_link") 2>conftest.err 1872 ac_status=$? 1873 if test -s conftest.err; then 1874 grep -v '^ *+' conftest.err >conftest.er1 1875 cat conftest.er1 >&5 1876 mv -f conftest.er1 conftest.err 1877 fi 1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1879 test $ac_status = 0; } && { 1880 test -z "$ac_c_werror_flag" || 1881 test ! -s conftest.err 1882 } && test -s conftest$ac_exeext && { 1883 test "$cross_compiling" = yes || 1884 test -x conftest$ac_exeext 1885 }; then : 1886 ac_retval=0 1887else 1888 $as_echo "$as_me: failed program was:" >&5 1889sed 's/^/| /' conftest.$ac_ext >&5 1890 1891 ac_retval=1 1892fi 1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1895 # interfere with the next link command; also delete a directory that is 1896 # left behind by Apple's compiler. We do this before executing the actions. 1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 as_fn_set_status $ac_retval 1900 1901} @%:@ ac_fn_c_try_link 1902 1903@%:@ ac_fn_c_check_func LINENO FUNC VAR 1904@%:@ ---------------------------------- 1905@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1906ac_fn_c_check_func () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910$as_echo_n "checking for $2... " >&6; } 1911if eval \${$3+:} false; then : 1912 $as_echo_n "(cached) " >&6 1913else 1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915/* end confdefs.h. */ 1916/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1917 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1918#define $2 innocuous_$2 1919 1920/* System header to define __stub macros and hopefully few prototypes, 1921 which can conflict with char $2 (); below. 1922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1923 <limits.h> exists even on freestanding compilers. */ 1924 1925#ifdef __STDC__ 1926# include <limits.h> 1927#else 1928# include <assert.h> 1929#endif 1930 1931#undef $2 1932 1933/* Override any GCC internal prototype to avoid an error. 1934 Use char because int might match the return type of a GCC 1935 builtin and then its argument prototype would still apply. */ 1936#ifdef __cplusplus 1937extern "C" 1938#endif 1939char $2 (); 1940/* The GNU C library defines this for functions which it implements 1941 to always fail with ENOSYS. Some functions are actually named 1942 something starting with __ and the normal name is an alias. */ 1943#if defined __stub_$2 || defined __stub___$2 1944choke me 1945#endif 1946 1947int 1948main () 1949{ 1950return $2 (); 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_link "$LINENO"; then : 1956 eval "$3=yes" 1957else 1958 eval "$3=no" 1959fi 1960rm -f core conftest.err conftest.$ac_objext \ 1961 conftest$ac_exeext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} @%:@ ac_fn_c_check_func 1969 1970@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1971@%:@ --------------------------------------------- 1972@%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1973@%:@ accordingly. 1974ac_fn_c_check_decl () 1975{ 1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1977 as_decl_name=`echo $2|sed 's/ *(.*//'` 1978 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1980$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1981if eval \${$3+:} false; then : 1982 $as_echo_n "(cached) " >&6 1983else 1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986$4 1987int 1988main () 1989{ 1990@%:@ifndef $as_decl_name 1991@%:@ifdef __cplusplus 1992 (void) $as_decl_use; 1993@%:@else 1994 (void) $as_decl_name; 1995@%:@endif 1996@%:@endif 1997 1998 ; 1999 return 0; 2000} 2001_ACEOF 2002if ac_fn_c_try_compile "$LINENO"; then : 2003 eval "$3=yes" 2004else 2005 eval "$3=no" 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013 2014} @%:@ ac_fn_c_check_decl 2015cat >config.log <<_ACEOF 2016This file contains any messages produced by compilers while 2017running configure, to aid debugging if configure makes a mistake. 2018 2019It was created by libxkbcommon $as_me 0.5.0, which was 2020generated by GNU Autoconf 2.69. Invocation command line was 2021 2022 $ $0 $@ 2023 2024_ACEOF 2025exec 5>>config.log 2026{ 2027cat <<_ASUNAME 2028## --------- ## 2029## Platform. ## 2030## --------- ## 2031 2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2033uname -m = `(uname -m) 2>/dev/null || echo unknown` 2034uname -r = `(uname -r) 2>/dev/null || echo unknown` 2035uname -s = `(uname -s) 2>/dev/null || echo unknown` 2036uname -v = `(uname -v) 2>/dev/null || echo unknown` 2037 2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2039/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2040 2041/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2042/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2044/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2045/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2046/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2047/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2048 2049_ASUNAME 2050 2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2052for as_dir in $PATH 2053do 2054 IFS=$as_save_IFS 2055 test -z "$as_dir" && as_dir=. 2056 $as_echo "PATH: $as_dir" 2057 done 2058IFS=$as_save_IFS 2059 2060} >&5 2061 2062cat >&5 <<_ACEOF 2063 2064 2065## ----------- ## 2066## Core tests. ## 2067## ----------- ## 2068 2069_ACEOF 2070 2071 2072# Keep a trace of the command line. 2073# Strip out --no-create and --no-recursion so they do not pile up. 2074# Strip out --silent because we don't want to record it for future runs. 2075# Also quote any args containing shell meta-characters. 2076# Make two passes to allow for proper duplicate-argument suppression. 2077ac_configure_args= 2078ac_configure_args0= 2079ac_configure_args1= 2080ac_must_keep_next=false 2081for ac_pass in 1 2 2082do 2083 for ac_arg 2084 do 2085 case $ac_arg in 2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2088 | -silent | --silent | --silen | --sile | --sil) 2089 continue ;; 2090 *\'*) 2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2092 esac 2093 case $ac_pass in 2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2095 2) 2096 as_fn_append ac_configure_args1 " '$ac_arg'" 2097 if test $ac_must_keep_next = true; then 2098 ac_must_keep_next=false # Got value, back to normal. 2099 else 2100 case $ac_arg in 2101 *=* | --config-cache | -C | -disable-* | --disable-* \ 2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2104 | -with-* | --with-* | -without-* | --without-* | --x) 2105 case "$ac_configure_args0 " in 2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2107 esac 2108 ;; 2109 -* ) ac_must_keep_next=true ;; 2110 esac 2111 fi 2112 as_fn_append ac_configure_args " '$ac_arg'" 2113 ;; 2114 esac 2115 done 2116done 2117{ ac_configure_args0=; unset ac_configure_args0;} 2118{ ac_configure_args1=; unset ac_configure_args1;} 2119 2120# When interrupted or exit'd, cleanup temporary files, and complete 2121# config.log. We remove comments because anyway the quotes in there 2122# would cause problems or look ugly. 2123# WARNING: Use '\'' to represent an apostrophe within the trap. 2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2125trap 'exit_status=$? 2126 # Save into config.log some information that might help in debugging. 2127 { 2128 echo 2129 2130 $as_echo "## ---------------- ## 2131## Cache variables. ## 2132## ---------------- ##" 2133 echo 2134 # The following way of writing the cache mishandles newlines in values, 2135( 2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2137 eval ac_val=\$$ac_var 2138 case $ac_val in #( 2139 *${as_nl}*) 2140 case $ac_var in #( 2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2143 esac 2144 case $ac_var in #( 2145 _ | IFS | as_nl) ;; #( 2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2147 *) { eval $ac_var=; unset $ac_var;} ;; 2148 esac ;; 2149 esac 2150 done 2151 (set) 2>&1 | 2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2153 *${as_nl}ac_space=\ *) 2154 sed -n \ 2155 "s/'\''/'\''\\\\'\'''\''/g; 2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2157 ;; #( 2158 *) 2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2160 ;; 2161 esac | 2162 sort 2163) 2164 echo 2165 2166 $as_echo "## ----------------- ## 2167## Output variables. ## 2168## ----------------- ##" 2169 echo 2170 for ac_var in $ac_subst_vars 2171 do 2172 eval ac_val=\$$ac_var 2173 case $ac_val in 2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2175 esac 2176 $as_echo "$ac_var='\''$ac_val'\''" 2177 done | sort 2178 echo 2179 2180 if test -n "$ac_subst_files"; then 2181 $as_echo "## ------------------- ## 2182## File substitutions. ## 2183## ------------------- ##" 2184 echo 2185 for ac_var in $ac_subst_files 2186 do 2187 eval ac_val=\$$ac_var 2188 case $ac_val in 2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2190 esac 2191 $as_echo "$ac_var='\''$ac_val'\''" 2192 done | sort 2193 echo 2194 fi 2195 2196 if test -s confdefs.h; then 2197 $as_echo "## ----------- ## 2198## confdefs.h. ## 2199## ----------- ##" 2200 echo 2201 cat confdefs.h 2202 echo 2203 fi 2204 test "$ac_signal" != 0 && 2205 $as_echo "$as_me: caught signal $ac_signal" 2206 $as_echo "$as_me: exit $exit_status" 2207 } >&5 2208 rm -f core *.core core.conftest.* && 2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2210 exit $exit_status 2211' 0 2212for ac_signal in 1 2 13 15; do 2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2214done 2215ac_signal=0 2216 2217# confdefs.h avoids OS command line length limits that DEFS can exceed. 2218rm -f -r conftest* confdefs.h 2219 2220$as_echo "/* confdefs.h */" > confdefs.h 2221 2222# Predefined preprocessor variables. 2223 2224cat >>confdefs.h <<_ACEOF 2225@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2226_ACEOF 2227 2228cat >>confdefs.h <<_ACEOF 2229@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2230_ACEOF 2231 2232cat >>confdefs.h <<_ACEOF 2233@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2234_ACEOF 2235 2236cat >>confdefs.h <<_ACEOF 2237@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2238_ACEOF 2239 2240cat >>confdefs.h <<_ACEOF 2241@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2242_ACEOF 2243 2244cat >>confdefs.h <<_ACEOF 2245@%:@define PACKAGE_URL "$PACKAGE_URL" 2246_ACEOF 2247 2248 2249# Let the site file select an alternate cache file if it wants to. 2250# Prefer an explicitly selected file to automatically selected ones. 2251ac_site_file1=NONE 2252ac_site_file2=NONE 2253if test -n "$CONFIG_SITE"; then 2254 # We do not want a PATH search for config.site. 2255 case $CONFIG_SITE in @%:@(( 2256 -*) ac_site_file1=./$CONFIG_SITE;; 2257 */*) ac_site_file1=$CONFIG_SITE;; 2258 *) ac_site_file1=./$CONFIG_SITE;; 2259 esac 2260elif test "x$prefix" != xNONE; then 2261 ac_site_file1=$prefix/share/config.site 2262 ac_site_file2=$prefix/etc/config.site 2263else 2264 ac_site_file1=$ac_default_prefix/share/config.site 2265 ac_site_file2=$ac_default_prefix/etc/config.site 2266fi 2267for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2268do 2269 test "x$ac_site_file" = xNONE && continue 2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2272$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2273 sed 's/^/| /' "$ac_site_file" >&5 2274 . "$ac_site_file" \ 2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2277as_fn_error $? "failed to load site script $ac_site_file 2278See \`config.log' for more details" "$LINENO" 5; } 2279 fi 2280done 2281 2282if test -r "$cache_file"; then 2283 # Some versions of bash will fail to source /dev/null (special files 2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2287$as_echo "$as_me: loading cache $cache_file" >&6;} 2288 case $cache_file in 2289 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2290 *) . "./$cache_file";; 2291 esac 2292 fi 2293else 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2295$as_echo "$as_me: creating cache $cache_file" >&6;} 2296 >$cache_file 2297fi 2298 2299# Check that the precious variables saved in the cache have kept the same 2300# value. 2301ac_cache_corrupted=false 2302for ac_var in $ac_precious_vars; do 2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2304 eval ac_new_set=\$ac_env_${ac_var}_set 2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2306 eval ac_new_val=\$ac_env_${ac_var}_value 2307 case $ac_old_set,$ac_new_set in 2308 set,) 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2310$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2311 ac_cache_corrupted=: ;; 2312 ,set) 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2314$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2315 ac_cache_corrupted=: ;; 2316 ,);; 2317 *) 2318 if test "x$ac_old_val" != "x$ac_new_val"; then 2319 # differences in whitespace do not lead to failure. 2320 ac_old_val_w=`echo x $ac_old_val` 2321 ac_new_val_w=`echo x $ac_new_val` 2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2324$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2325 ac_cache_corrupted=: 2326 else 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2328$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2329 eval $ac_var=\$ac_old_val 2330 fi 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2332$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2334$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2335 fi;; 2336 esac 2337 # Pass precious variables to config.status. 2338 if test "$ac_new_set" = set; then 2339 case $ac_new_val in 2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 *) ac_arg=$ac_var=$ac_new_val ;; 2342 esac 2343 case " $ac_configure_args " in 2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2346 esac 2347 fi 2348done 2349if $ac_cache_corrupted; then 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2353$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2355fi 2356## -------------------- ## 2357## Main body of script. ## 2358## -------------------- ## 2359 2360ac_ext=c 2361ac_cpp='$CPP $CPPFLAGS' 2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2364ac_compiler_gnu=$ac_cv_c_compiler_gnu 2365 2366 2367 2368ac_config_headers="$ac_config_headers src/config.h" 2369 2370 2371ac_aux_dir= 2372for ac_dir in build-aux "$srcdir"/build-aux; do 2373 if test -f "$ac_dir/install-sh"; then 2374 ac_aux_dir=$ac_dir 2375 ac_install_sh="$ac_aux_dir/install-sh -c" 2376 break 2377 elif test -f "$ac_dir/install.sh"; then 2378 ac_aux_dir=$ac_dir 2379 ac_install_sh="$ac_aux_dir/install.sh -c" 2380 break 2381 elif test -f "$ac_dir/shtool"; then 2382 ac_aux_dir=$ac_dir 2383 ac_install_sh="$ac_aux_dir/shtool install -c" 2384 break 2385 fi 2386done 2387if test -z "$ac_aux_dir"; then 2388 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2389fi 2390 2391# These three variables are undocumented and unsupported, 2392# and are intended to be withdrawn in a future Autoconf release. 2393# They can cause serious problems if a builder's source tree is in a directory 2394# whose full name contains unusual characters. 2395ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2396ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2397ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2398 2399 2400 2401# Initialize Automake 2402am__api_version='1.14' 2403 2404# Find a good install program. We prefer a C program (faster), 2405# so one script is as good as another. But avoid the broken or 2406# incompatible versions: 2407# SysV /etc/install, /usr/sbin/install 2408# SunOS /usr/etc/install 2409# IRIX /sbin/install 2410# AIX /bin/install 2411# AmigaOS /C/install, which installs bootblocks on floppy discs 2412# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2413# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2414# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2415# OS/2's system install, which has a completely different semantic 2416# ./install, which can be erroneously created by make from ./install.sh. 2417# Reject install programs that cannot install multiple files. 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2419$as_echo_n "checking for a BSD-compatible install... " >&6; } 2420if test -z "$INSTALL"; then 2421if ${ac_cv_path_install+:} false; then : 2422 $as_echo_n "(cached) " >&6 2423else 2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425for as_dir in $PATH 2426do 2427 IFS=$as_save_IFS 2428 test -z "$as_dir" && as_dir=. 2429 # Account for people who put trailing slashes in PATH elements. 2430case $as_dir/ in @%:@(( 2431 ./ | .// | /[cC]/* | \ 2432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2433 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2434 /usr/ucb/* ) ;; 2435 *) 2436 # OSF1 and SCO ODT 3.0 have their own names for install. 2437 # Don't use installbsd from OSF since it installs stuff as root 2438 # by default. 2439 for ac_prog in ginstall scoinst install; do 2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2442 if test $ac_prog = install && 2443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2444 # AIX install. It has an incompatible calling convention. 2445 : 2446 elif test $ac_prog = install && 2447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2448 # program-specific install script used by HP pwplus--don't use. 2449 : 2450 else 2451 rm -rf conftest.one conftest.two conftest.dir 2452 echo one > conftest.one 2453 echo two > conftest.two 2454 mkdir conftest.dir 2455 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2456 test -s conftest.one && test -s conftest.two && 2457 test -s conftest.dir/conftest.one && 2458 test -s conftest.dir/conftest.two 2459 then 2460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2461 break 3 2462 fi 2463 fi 2464 fi 2465 done 2466 done 2467 ;; 2468esac 2469 2470 done 2471IFS=$as_save_IFS 2472 2473rm -rf conftest.one conftest.two conftest.dir 2474 2475fi 2476 if test "${ac_cv_path_install+set}" = set; then 2477 INSTALL=$ac_cv_path_install 2478 else 2479 # As a last resort, use the slow shell script. Don't cache a 2480 # value for INSTALL within a source directory, because that will 2481 # break other packages using the cache if that directory is 2482 # removed, or if the value is a relative name. 2483 INSTALL=$ac_install_sh 2484 fi 2485fi 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2487$as_echo "$INSTALL" >&6; } 2488 2489# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2490# It thinks the first close brace ends the variable substitution. 2491test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2492 2493test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2494 2495test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2496 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2498$as_echo_n "checking whether build environment is sane... " >&6; } 2499# Reject unsafe characters in $srcdir or the absolute working directory 2500# name. Accept space and tab only in the latter. 2501am_lf=' 2502' 2503case `pwd` in 2504 *[\\\"\#\$\&\'\`$am_lf]*) 2505 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2506esac 2507case $srcdir in 2508 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2509 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2510esac 2511 2512# Do 'set' in a subshell so we don't clobber the current shell's 2513# arguments. Must try -L first in case configure is actually a 2514# symlink; some systems play weird games with the mod time of symlinks 2515# (eg FreeBSD returns the mod time of the symlink's containing 2516# directory). 2517if ( 2518 am_has_slept=no 2519 for am_try in 1 2; do 2520 echo "timestamp, slept: $am_has_slept" > conftest.file 2521 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2522 if test "$*" = "X"; then 2523 # -L didn't work. 2524 set X `ls -t "$srcdir/configure" conftest.file` 2525 fi 2526 if test "$*" != "X $srcdir/configure conftest.file" \ 2527 && test "$*" != "X conftest.file $srcdir/configure"; then 2528 2529 # If neither matched, then we have a broken ls. This can happen 2530 # if, for instance, CONFIG_SHELL is bash and it inherits a 2531 # broken ls alias from the environment. This has actually 2532 # happened. Such a system could not be considered "sane". 2533 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2534 alias in your environment" "$LINENO" 5 2535 fi 2536 if test "$2" = conftest.file || test $am_try -eq 2; then 2537 break 2538 fi 2539 # Just in case. 2540 sleep 1 2541 am_has_slept=yes 2542 done 2543 test "$2" = conftest.file 2544 ) 2545then 2546 # Ok. 2547 : 2548else 2549 as_fn_error $? "newly created file is older than distributed files! 2550Check your system clock" "$LINENO" 5 2551fi 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2553$as_echo "yes" >&6; } 2554# If we didn't sleep, we still need to ensure time stamps of config.status and 2555# generated files are strictly newer. 2556am_sleep_pid= 2557if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2558 ( sleep 1 ) & 2559 am_sleep_pid=$! 2560fi 2561 2562rm -f conftest.file 2563 2564test "$program_prefix" != NONE && 2565 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2566# Use a double $ so make ignores it. 2567test "$program_suffix" != NONE && 2568 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2569# Double any \ or $. 2570# By default was `s,x,x', remove it if useless. 2571ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2572program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2573 2574# expand $ac_aux_dir to an absolute path 2575am_aux_dir=`cd $ac_aux_dir && pwd` 2576 2577if test x"${MISSING+set}" != xset; then 2578 case $am_aux_dir in 2579 *\ * | *\ *) 2580 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2581 *) 2582 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2583 esac 2584fi 2585# Use eval to expand $SHELL 2586if eval "$MISSING --is-lightweight"; then 2587 am_missing_run="$MISSING " 2588else 2589 am_missing_run= 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2591$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2592fi 2593 2594if test x"${install_sh}" != xset; then 2595 case $am_aux_dir in 2596 *\ * | *\ *) 2597 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2598 *) 2599 install_sh="\${SHELL} $am_aux_dir/install-sh" 2600 esac 2601fi 2602 2603# Installed binaries are usually stripped using 'strip' when the user 2604# run "make install-strip". However 'strip' might not be the right 2605# tool to use in cross-compilation environments, therefore Automake 2606# will honor the 'STRIP' environment variable to overrule this program. 2607if test "$cross_compiling" != no; then 2608 if test -n "$ac_tool_prefix"; then 2609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2610set dummy ${ac_tool_prefix}strip; ac_word=$2 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2612$as_echo_n "checking for $ac_word... " >&6; } 2613if ${ac_cv_prog_STRIP+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 if test -n "$STRIP"; then 2617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2618else 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2626 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2628 break 2 2629 fi 2630done 2631 done 2632IFS=$as_save_IFS 2633 2634fi 2635fi 2636STRIP=$ac_cv_prog_STRIP 2637if test -n "$STRIP"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2639$as_echo "$STRIP" >&6; } 2640else 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2642$as_echo "no" >&6; } 2643fi 2644 2645 2646fi 2647if test -z "$ac_cv_prog_STRIP"; then 2648 ac_ct_STRIP=$STRIP 2649 # Extract the first word of "strip", so it can be a program name with args. 2650set dummy strip; ac_word=$2 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2652$as_echo_n "checking for $ac_word... " >&6; } 2653if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 if test -n "$ac_ct_STRIP"; then 2657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2658else 2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660for as_dir in $PATH 2661do 2662 IFS=$as_save_IFS 2663 test -z "$as_dir" && as_dir=. 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2666 ac_cv_prog_ac_ct_STRIP="strip" 2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670done 2671 done 2672IFS=$as_save_IFS 2673 2674fi 2675fi 2676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2677if test -n "$ac_ct_STRIP"; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2679$as_echo "$ac_ct_STRIP" >&6; } 2680else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682$as_echo "no" >&6; } 2683fi 2684 2685 if test "x$ac_ct_STRIP" = x; then 2686 STRIP=":" 2687 else 2688 case $cross_compiling:$ac_tool_warned in 2689yes:) 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2692ac_tool_warned=yes ;; 2693esac 2694 STRIP=$ac_ct_STRIP 2695 fi 2696else 2697 STRIP="$ac_cv_prog_STRIP" 2698fi 2699 2700fi 2701INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2702 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2704$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2705if test -z "$MKDIR_P"; then 2706 if ${ac_cv_path_mkdir+:} false; then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_prog in mkdir gmkdir; do 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2717 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2718 'mkdir (GNU coreutils) '* | \ 2719 'mkdir (coreutils) '* | \ 2720 'mkdir (fileutils) '4.1*) 2721 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2722 break 3;; 2723 esac 2724 done 2725 done 2726 done 2727IFS=$as_save_IFS 2728 2729fi 2730 2731 test -d ./--version && rmdir ./--version 2732 if test "${ac_cv_path_mkdir+set}" = set; then 2733 MKDIR_P="$ac_cv_path_mkdir -p" 2734 else 2735 # As a last resort, use the slow shell script. Don't cache a 2736 # value for MKDIR_P within a source directory, because that will 2737 # break other packages using the cache if that directory is 2738 # removed, or if the value is a relative name. 2739 MKDIR_P="$ac_install_sh -d" 2740 fi 2741fi 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2743$as_echo "$MKDIR_P" >&6; } 2744 2745for ac_prog in gawk mawk nawk awk 2746do 2747 # Extract the first word of "$ac_prog", so it can be a program name with args. 2748set dummy $ac_prog; ac_word=$2 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2750$as_echo_n "checking for $ac_word... " >&6; } 2751if ${ac_cv_prog_AWK+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 if test -n "$AWK"; then 2755 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2756else 2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2758for as_dir in $PATH 2759do 2760 IFS=$as_save_IFS 2761 test -z "$as_dir" && as_dir=. 2762 for ac_exec_ext in '' $ac_executable_extensions; do 2763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2764 ac_cv_prog_AWK="$ac_prog" 2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2766 break 2 2767 fi 2768done 2769 done 2770IFS=$as_save_IFS 2771 2772fi 2773fi 2774AWK=$ac_cv_prog_AWK 2775if test -n "$AWK"; then 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2777$as_echo "$AWK" >&6; } 2778else 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780$as_echo "no" >&6; } 2781fi 2782 2783 2784 test -n "$AWK" && break 2785done 2786 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2788$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2789set x ${MAKE-make} 2790ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2791if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2792 $as_echo_n "(cached) " >&6 2793else 2794 cat >conftest.make <<\_ACEOF 2795SHELL = /bin/sh 2796all: 2797 @echo '@@@%%%=$(MAKE)=@@@%%%' 2798_ACEOF 2799# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2800case `${MAKE-make} -f conftest.make 2>/dev/null` in 2801 *@@@%%%=?*=@@@%%%*) 2802 eval ac_cv_prog_make_${ac_make}_set=yes;; 2803 *) 2804 eval ac_cv_prog_make_${ac_make}_set=no;; 2805esac 2806rm -f conftest.make 2807fi 2808if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2810$as_echo "yes" >&6; } 2811 SET_MAKE= 2812else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814$as_echo "no" >&6; } 2815 SET_MAKE="MAKE=${MAKE-make}" 2816fi 2817 2818rm -rf .tst 2>/dev/null 2819mkdir .tst 2>/dev/null 2820if test -d .tst; then 2821 am__leading_dot=. 2822else 2823 am__leading_dot=_ 2824fi 2825rmdir .tst 2>/dev/null 2826 2827@%:@ Check whether --enable-silent-rules was given. 2828if test "${enable_silent_rules+set}" = set; then : 2829 enableval=$enable_silent_rules; 2830fi 2831 2832case $enable_silent_rules in @%:@ ((( 2833 yes) AM_DEFAULT_VERBOSITY=0;; 2834 no) AM_DEFAULT_VERBOSITY=1;; 2835 *) AM_DEFAULT_VERBOSITY=1;; 2836esac 2837am_make=${MAKE-make} 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2839$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2840if ${am_cv_make_support_nested_variables+:} false; then : 2841 $as_echo_n "(cached) " >&6 2842else 2843 if $as_echo 'TRUE=$(BAR$(V)) 2844BAR0=false 2845BAR1=true 2846V=1 2847am__doit: 2848 @$(TRUE) 2849.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2850 am_cv_make_support_nested_variables=yes 2851else 2852 am_cv_make_support_nested_variables=no 2853fi 2854fi 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2856$as_echo "$am_cv_make_support_nested_variables" >&6; } 2857if test $am_cv_make_support_nested_variables = yes; then 2858 AM_V='$(V)' 2859 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2860else 2861 AM_V=$AM_DEFAULT_VERBOSITY 2862 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2863fi 2864AM_BACKSLASH='\' 2865 2866if test "`cd $srcdir && pwd`" != "`pwd`"; then 2867 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2868 # is not polluted with repeated "-I." 2869 am__isrc=' -I$(srcdir)' 2870 # test to see if srcdir already configured 2871 if test -f $srcdir/config.status; then 2872 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2873 fi 2874fi 2875 2876# test whether we have cygpath 2877if test -z "$CYGPATH_W"; then 2878 if (cygpath --version) >/dev/null 2>/dev/null; then 2879 CYGPATH_W='cygpath -w' 2880 else 2881 CYGPATH_W=echo 2882 fi 2883fi 2884 2885 2886# Define the identity of the package. 2887 PACKAGE='libxkbcommon' 2888 VERSION='0.5.0' 2889 2890 2891cat >>confdefs.h <<_ACEOF 2892@%:@define PACKAGE "$PACKAGE" 2893_ACEOF 2894 2895 2896cat >>confdefs.h <<_ACEOF 2897@%:@define VERSION "$VERSION" 2898_ACEOF 2899 2900# Some tools Automake needs. 2901 2902ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2903 2904 2905AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2906 2907 2908AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2909 2910 2911AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2912 2913 2914MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2915 2916# For better backward compatibility. To be removed once Automake 1.9.x 2917# dies out for good. For more background, see: 2918# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2919# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2920mkdir_p='$(MKDIR_P)' 2921 2922# We need awk for the "check" target. The system "awk" is bad on 2923# some platforms. 2924# Always define AMTAR for backward compatibility. Yes, it's still used 2925# in the wild :-( We should find a proper way to deprecate it ... 2926AMTAR='$${TAR-tar}' 2927 2928 2929# We'll loop over all known methods to create a tar archive until one works. 2930_am_tools='gnutar pax cpio none' 2931 2932am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2933 2934 2935 2936 2937 2938 2939# POSIX will say in a future version that running "rm -f" with no argument 2940# is OK; and we want to be able to make that assumption in our Makefile 2941# recipes. So use an aggressive probe to check that the usage we want is 2942# actually supported "in the wild" to an acceptable degree. 2943# See automake bug#10828. 2944# To make any issue more visible, cause the running configure to be aborted 2945# by default if the 'rm' program in use doesn't match our expectations; the 2946# user can still override this though. 2947if rm -f && rm -fr && rm -rf; then : OK; else 2948 cat >&2 <<'END' 2949Oops! 2950 2951Your 'rm' program seems unable to run without file operands specified 2952on the command line, even when the '-f' option is present. This is contrary 2953to the behaviour of most rm programs out there, and not conforming with 2954the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2955 2956Please tell bug-automake@gnu.org about your system, including the value 2957of your $PATH and any error possibly output before this message. This 2958can help us improve future automake versions. 2959 2960END 2961 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2962 echo 'Configuration will proceed anyway, since you have set the' >&2 2963 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2964 echo >&2 2965 else 2966 cat >&2 <<'END' 2967Aborting the configuration process, to ensure you take notice of the issue. 2968 2969You can download and install GNU coreutils to get an 'rm' implementation 2970that behaves properly: <http://www.gnu.org/software/coreutils/>. 2971 2972If you want to complete the configuration process using your problematic 2973'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2974to "yes", and re-run configure. 2975 2976END 2977 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2978 fi 2979fi 2980 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2982$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2983 @%:@ Check whether --enable-maintainer-mode was given. 2984if test "${enable_maintainer_mode+set}" = set; then : 2985 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2986else 2987 USE_MAINTAINER_MODE=yes 2988fi 2989 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2991$as_echo "$USE_MAINTAINER_MODE" >&6; } 2992 if test $USE_MAINTAINER_MODE = yes; then 2993 MAINTAINER_MODE_TRUE= 2994 MAINTAINER_MODE_FALSE='#' 2995else 2996 MAINTAINER_MODE_TRUE='#' 2997 MAINTAINER_MODE_FALSE= 2998fi 2999 3000 MAINT=$MAINTAINER_MODE_TRUE 3001 3002 3003 3004# Get _GNU_SOURCE and friends 3005DEPDIR="${am__leading_dot}deps" 3006 3007ac_config_commands="$ac_config_commands depfiles" 3008 3009 3010am_make=${MAKE-make} 3011cat > confinc << 'END' 3012am__doit: 3013 @echo this is the am__doit target 3014.PHONY: am__doit 3015END 3016# If we don't find an include directive, just comment out the code. 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3018$as_echo_n "checking for style of include used by $am_make... " >&6; } 3019am__include="#" 3020am__quote= 3021_am_result=none 3022# First try GNU make style include. 3023echo "include confinc" > confmf 3024# Ignore all kinds of additional output from 'make'. 3025case `$am_make -s -f confmf 2> /dev/null` in #( 3026*the\ am__doit\ target*) 3027 am__include=include 3028 am__quote= 3029 _am_result=GNU 3030 ;; 3031esac 3032# Now try BSD make style include. 3033if test "$am__include" = "#"; then 3034 echo '.include "confinc"' > confmf 3035 case `$am_make -s -f confmf 2> /dev/null` in #( 3036 *the\ am__doit\ target*) 3037 am__include=.include 3038 am__quote="\"" 3039 _am_result=BSD 3040 ;; 3041 esac 3042fi 3043 3044 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3046$as_echo "$_am_result" >&6; } 3047rm -f confinc confmf 3048 3049@%:@ Check whether --enable-dependency-tracking was given. 3050if test "${enable_dependency_tracking+set}" = set; then : 3051 enableval=$enable_dependency_tracking; 3052fi 3053 3054if test "x$enable_dependency_tracking" != xno; then 3055 am_depcomp="$ac_aux_dir/depcomp" 3056 AMDEPBACKSLASH='\' 3057 am__nodep='_no' 3058fi 3059 if test "x$enable_dependency_tracking" != xno; then 3060 AMDEP_TRUE= 3061 AMDEP_FALSE='#' 3062else 3063 AMDEP_TRUE='#' 3064 AMDEP_FALSE= 3065fi 3066 3067 3068ac_ext=c 3069ac_cpp='$CPP $CPPFLAGS' 3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3072ac_compiler_gnu=$ac_cv_c_compiler_gnu 3073if test -n "$ac_tool_prefix"; then 3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3075set dummy ${ac_tool_prefix}gcc; ac_word=$2 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3077$as_echo_n "checking for $ac_word... " >&6; } 3078if ${ac_cv_prog_CC+:} false; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 if test -n "$CC"; then 3082 ac_cv_prog_CC="$CC" # Let the user override the test. 3083else 3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085for as_dir in $PATH 3086do 3087 IFS=$as_save_IFS 3088 test -z "$as_dir" && as_dir=. 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3091 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096 done 3097IFS=$as_save_IFS 3098 3099fi 3100fi 3101CC=$ac_cv_prog_CC 3102if test -n "$CC"; then 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3104$as_echo "$CC" >&6; } 3105else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107$as_echo "no" >&6; } 3108fi 3109 3110 3111fi 3112if test -z "$ac_cv_prog_CC"; then 3113 ac_ct_CC=$CC 3114 # Extract the first word of "gcc", so it can be a program name with args. 3115set dummy gcc; ac_word=$2 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3117$as_echo_n "checking for $ac_word... " >&6; } 3118if ${ac_cv_prog_ac_ct_CC+:} false; then : 3119 $as_echo_n "(cached) " >&6 3120else 3121 if test -n "$ac_ct_CC"; then 3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3131 ac_cv_prog_ac_ct_CC="gcc" 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141ac_ct_CC=$ac_cv_prog_ac_ct_CC 3142if test -n "$ac_ct_CC"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3144$as_echo "$ac_ct_CC" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 if test "x$ac_ct_CC" = x; then 3151 CC="" 3152 else 3153 case $cross_compiling:$ac_tool_warned in 3154yes:) 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3157ac_tool_warned=yes ;; 3158esac 3159 CC=$ac_ct_CC 3160 fi 3161else 3162 CC="$ac_cv_prog_CC" 3163fi 3164 3165if test -z "$CC"; then 3166 if test -n "$ac_tool_prefix"; then 3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3168set dummy ${ac_tool_prefix}cc; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if ${ac_cv_prog_CC+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$CC"; then 3175 ac_cv_prog_CC="$CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_CC="${ac_tool_prefix}cc" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194CC=$ac_cv_prog_CC 3195if test -n "$CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3197$as_echo "$CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 3204 fi 3205fi 3206if test -z "$CC"; then 3207 # Extract the first word of "cc", so it can be a program name with args. 3208set dummy cc; ac_word=$2 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3210$as_echo_n "checking for $ac_word... " >&6; } 3211if ${ac_cv_prog_CC+:} false; then : 3212 $as_echo_n "(cached) " >&6 3213else 3214 if test -n "$CC"; then 3215 ac_cv_prog_CC="$CC" # Let the user override the test. 3216else 3217 ac_prog_rejected=no 3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3219for as_dir in $PATH 3220do 3221 IFS=$as_save_IFS 3222 test -z "$as_dir" && as_dir=. 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3226 ac_prog_rejected=yes 3227 continue 3228 fi 3229 ac_cv_prog_CC="cc" 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3231 break 2 3232 fi 3233done 3234 done 3235IFS=$as_save_IFS 3236 3237if test $ac_prog_rejected = yes; then 3238 # We found a bogon in the path, so make sure we never use it. 3239 set dummy $ac_cv_prog_CC 3240 shift 3241 if test $@%:@ != 0; then 3242 # We chose a different compiler from the bogus one. 3243 # However, it has the same basename, so the bogon will be chosen 3244 # first if we set CC to just the basename; use the full file name. 3245 shift 3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3247 fi 3248fi 3249fi 3250fi 3251CC=$ac_cv_prog_CC 3252if test -n "$CC"; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3254$as_echo "$CC" >&6; } 3255else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258fi 3259 3260 3261fi 3262if test -z "$CC"; then 3263 if test -n "$ac_tool_prefix"; then 3264 for ac_prog in cl.exe 3265 do 3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3267set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269$as_echo_n "checking for $ac_word... " >&6; } 3270if ${ac_cv_prog_CC+:} false; then : 3271 $as_echo_n "(cached) " >&6 3272else 3273 if test -n "$CC"; then 3274 ac_cv_prog_CC="$CC" # Let the user override the test. 3275else 3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277for as_dir in $PATH 3278do 3279 IFS=$as_save_IFS 3280 test -z "$as_dir" && as_dir=. 3281 for ac_exec_ext in '' $ac_executable_extensions; do 3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3285 break 2 3286 fi 3287done 3288 done 3289IFS=$as_save_IFS 3290 3291fi 3292fi 3293CC=$ac_cv_prog_CC 3294if test -n "$CC"; then 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3296$as_echo "$CC" >&6; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300fi 3301 3302 3303 test -n "$CC" && break 3304 done 3305fi 3306if test -z "$CC"; then 3307 ac_ct_CC=$CC 3308 for ac_prog in cl.exe 3309do 3310 # Extract the first word of "$ac_prog", so it can be a program name with args. 3311set dummy $ac_prog; ac_word=$2 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3313$as_echo_n "checking for $ac_word... " >&6; } 3314if ${ac_cv_prog_ac_ct_CC+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 if test -n "$ac_ct_CC"; then 3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3319else 3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321for as_dir in $PATH 3322do 3323 IFS=$as_save_IFS 3324 test -z "$as_dir" && as_dir=. 3325 for ac_exec_ext in '' $ac_executable_extensions; do 3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3327 ac_cv_prog_ac_ct_CC="$ac_prog" 3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3329 break 2 3330 fi 3331done 3332 done 3333IFS=$as_save_IFS 3334 3335fi 3336fi 3337ac_ct_CC=$ac_cv_prog_ac_ct_CC 3338if test -n "$ac_ct_CC"; then 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3340$as_echo "$ac_ct_CC" >&6; } 3341else 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3343$as_echo "no" >&6; } 3344fi 3345 3346 3347 test -n "$ac_ct_CC" && break 3348done 3349 3350 if test "x$ac_ct_CC" = x; then 3351 CC="" 3352 else 3353 case $cross_compiling:$ac_tool_warned in 3354yes:) 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3357ac_tool_warned=yes ;; 3358esac 3359 CC=$ac_ct_CC 3360 fi 3361fi 3362 3363fi 3364 3365 3366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3368as_fn_error $? "no acceptable C compiler found in \$PATH 3369See \`config.log' for more details" "$LINENO" 5; } 3370 3371# Provide some information about the compiler. 3372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3373set X $ac_compile 3374ac_compiler=$2 3375for ac_option in --version -v -V -qversion; do 3376 { { ac_try="$ac_compiler $ac_option >&5" 3377case "(($ac_try" in 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3379 *) ac_try_echo=$ac_try;; 3380esac 3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3382$as_echo "$ac_try_echo"; } >&5 3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3384 ac_status=$? 3385 if test -s conftest.err; then 3386 sed '10a\ 3387... rest of stderr output deleted ... 3388 10q' conftest.err >conftest.er1 3389 cat conftest.er1 >&5 3390 fi 3391 rm -f conftest.er1 conftest.err 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; } 3394done 3395 3396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397/* end confdefs.h. */ 3398 3399int 3400main () 3401{ 3402 3403 ; 3404 return 0; 3405} 3406_ACEOF 3407ac_clean_files_save=$ac_clean_files 3408ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3409# Try to create an executable without -o first, disregard a.out. 3410# It will help us diagnose broken compilers, and finding out an intuition 3411# of exeext. 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3413$as_echo_n "checking whether the C compiler works... " >&6; } 3414ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3415 3416# The possible output files: 3417ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3418 3419ac_rmfiles= 3420for ac_file in $ac_files 3421do 3422 case $ac_file in 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3425 esac 3426done 3427rm -f $ac_rmfiles 3428 3429if { { ac_try="$ac_link_default" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435$as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_link_default") 2>&5 3437 ac_status=$? 3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3439 test $ac_status = 0; }; then : 3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3441# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3442# in a Makefile. We should not override ac_cv_exeext if it was cached, 3443# so that the user can short-circuit this test for compilers unknown to 3444# Autoconf. 3445for ac_file in $ac_files '' 3446do 3447 test -f "$ac_file" || continue 3448 case $ac_file in 3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3450 ;; 3451 [ab].out ) 3452 # We found the default executable, but exeext='' is most 3453 # certainly right. 3454 break;; 3455 *.* ) 3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3457 then :; else 3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3459 fi 3460 # We set ac_cv_exeext here because the later test for it is not 3461 # safe: cross compilers may not add the suffix if given an `-o' 3462 # argument, so we may need to know it at that point already. 3463 # Even if this section looks crufty: it has the advantage of 3464 # actually working. 3465 break;; 3466 * ) 3467 break;; 3468 esac 3469done 3470test "$ac_cv_exeext" = no && ac_cv_exeext= 3471 3472else 3473 ac_file='' 3474fi 3475if test -z "$ac_file"; then : 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3477$as_echo "no" >&6; } 3478$as_echo "$as_me: failed program was:" >&5 3479sed 's/^/| /' conftest.$ac_ext >&5 3480 3481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3483as_fn_error 77 "C compiler cannot create executables 3484See \`config.log' for more details" "$LINENO" 5; } 3485else 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3487$as_echo "yes" >&6; } 3488fi 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3490$as_echo_n "checking for C compiler default output file name... " >&6; } 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3492$as_echo "$ac_file" >&6; } 3493ac_exeext=$ac_cv_exeext 3494 3495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3496ac_clean_files=$ac_clean_files_save 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3498$as_echo_n "checking for suffix of executables... " >&6; } 3499if { { ac_try="$ac_link" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505$as_echo "$ac_try_echo"; } >&5 3506 (eval "$ac_link") 2>&5 3507 ac_status=$? 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; }; then : 3510 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3511# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3512# work properly (i.e., refer to `conftest.exe'), while it won't with 3513# `rm'. 3514for ac_file in conftest.exe conftest conftest.*; do 3515 test -f "$ac_file" || continue 3516 case $ac_file in 3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3519 break;; 3520 * ) break;; 3521 esac 3522done 3523else 3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3526as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3527See \`config.log' for more details" "$LINENO" 5; } 3528fi 3529rm -f conftest conftest$ac_cv_exeext 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3531$as_echo "$ac_cv_exeext" >&6; } 3532 3533rm -f conftest.$ac_ext 3534EXEEXT=$ac_cv_exeext 3535ac_exeext=$EXEEXT 3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538@%:@include <stdio.h> 3539int 3540main () 3541{ 3542FILE *f = fopen ("conftest.out", "w"); 3543 return ferror (f) || fclose (f) != 0; 3544 3545 ; 3546 return 0; 3547} 3548_ACEOF 3549ac_clean_files="$ac_clean_files conftest.out" 3550# Check that the compiler produces executables we can run. If not, either 3551# the compiler is broken, or we cross compile. 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3553$as_echo_n "checking whether we are cross compiling... " >&6; } 3554if test "$cross_compiling" != yes; then 3555 { { ac_try="$ac_link" 3556case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_link") 2>&5 3563 ac_status=$? 3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3565 test $ac_status = 0; } 3566 if { ac_try='./conftest$ac_cv_exeext' 3567 { { case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_try") 2>&5 3574 ac_status=$? 3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; }; }; then 3577 cross_compiling=no 3578 else 3579 if test "$cross_compiling" = maybe; then 3580 cross_compiling=yes 3581 else 3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584as_fn_error $? "cannot run C compiled programs. 3585If you meant to cross compile, use \`--host'. 3586See \`config.log' for more details" "$LINENO" 5; } 3587 fi 3588 fi 3589fi 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3591$as_echo "$cross_compiling" >&6; } 3592 3593rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3594ac_clean_files=$ac_clean_files_save 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3596$as_echo_n "checking for suffix of object files... " >&6; } 3597if ${ac_cv_objext+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602 3603int 3604main () 3605{ 3606 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611rm -f conftest.o conftest.obj 3612if { { ac_try="$ac_compile" 3613case "(($ac_try" in 3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3615 *) ac_try_echo=$ac_try;; 3616esac 3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3618$as_echo "$ac_try_echo"; } >&5 3619 (eval "$ac_compile") 2>&5 3620 ac_status=$? 3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3622 test $ac_status = 0; }; then : 3623 for ac_file in conftest.o conftest.obj conftest.*; do 3624 test -f "$ac_file" || continue; 3625 case $ac_file in 3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3628 break;; 3629 esac 3630done 3631else 3632 $as_echo "$as_me: failed program was:" >&5 3633sed 's/^/| /' conftest.$ac_ext >&5 3634 3635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3637as_fn_error $? "cannot compute suffix of object files: cannot compile 3638See \`config.log' for more details" "$LINENO" 5; } 3639fi 3640rm -f conftest.$ac_cv_objext conftest.$ac_ext 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3643$as_echo "$ac_cv_objext" >&6; } 3644OBJEXT=$ac_cv_objext 3645ac_objext=$OBJEXT 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3647$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3648if ${ac_cv_c_compiler_gnu+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650else 3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3652/* end confdefs.h. */ 3653 3654int 3655main () 3656{ 3657#ifndef __GNUC__ 3658 choke me 3659#endif 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665if ac_fn_c_try_compile "$LINENO"; then : 3666 ac_compiler_gnu=yes 3667else 3668 ac_compiler_gnu=no 3669fi 3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3671ac_cv_c_compiler_gnu=$ac_compiler_gnu 3672 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3675$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3676if test $ac_compiler_gnu = yes; then 3677 GCC=yes 3678else 3679 GCC= 3680fi 3681ac_test_CFLAGS=${CFLAGS+set} 3682ac_save_CFLAGS=$CFLAGS 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3684$as_echo_n "checking whether $CC accepts -g... " >&6; } 3685if ${ac_cv_prog_cc_g+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 ac_save_c_werror_flag=$ac_c_werror_flag 3689 ac_c_werror_flag=yes 3690 ac_cv_prog_cc_g=no 3691 CFLAGS="-g" 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 3695int 3696main () 3697{ 3698 3699 ; 3700 return 0; 3701} 3702_ACEOF 3703if ac_fn_c_try_compile "$LINENO"; then : 3704 ac_cv_prog_cc_g=yes 3705else 3706 CFLAGS="" 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709 3710int 3711main () 3712{ 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718if ac_fn_c_try_compile "$LINENO"; then : 3719 3720else 3721 ac_c_werror_flag=$ac_save_c_werror_flag 3722 CFLAGS="-g" 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main () 3728{ 3729 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734if ac_fn_c_try_compile "$LINENO"; then : 3735 ac_cv_prog_cc_g=yes 3736fi 3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3738fi 3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3740fi 3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3742 ac_c_werror_flag=$ac_save_c_werror_flag 3743fi 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3745$as_echo "$ac_cv_prog_cc_g" >&6; } 3746if test "$ac_test_CFLAGS" = set; then 3747 CFLAGS=$ac_save_CFLAGS 3748elif test $ac_cv_prog_cc_g = yes; then 3749 if test "$GCC" = yes; then 3750 CFLAGS="-g -O2" 3751 else 3752 CFLAGS="-g" 3753 fi 3754else 3755 if test "$GCC" = yes; then 3756 CFLAGS="-O2" 3757 else 3758 CFLAGS= 3759 fi 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3762$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3763if ${ac_cv_prog_cc_c89+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 ac_cv_prog_cc_c89=no 3767ac_save_CC=$CC 3768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770#include <stdarg.h> 3771#include <stdio.h> 3772struct stat; 3773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3774struct buf { int x; }; 3775FILE * (*rcsopen) (struct buf *, struct stat *, int); 3776static char *e (p, i) 3777 char **p; 3778 int i; 3779{ 3780 return p[i]; 3781} 3782static char *f (char * (*g) (char **, int), char **p, ...) 3783{ 3784 char *s; 3785 va_list v; 3786 va_start (v,p); 3787 s = g (p, va_arg (v,int)); 3788 va_end (v); 3789 return s; 3790} 3791 3792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3793 function prototypes and stuff, but not '\xHH' hex character constants. 3794 These don't provoke an error unfortunately, instead are silently treated 3795 as 'x'. The following induces an error, until -std is added to get 3796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3797 array size at least. It's necessary to write '\x00'==0 to get something 3798 that's true only with -std. */ 3799int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3800 3801/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3802 inside strings and character constants. */ 3803#define FOO(x) 'x' 3804int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3805 3806int test (int i, double x); 3807struct s1 {int (*f) (int a);}; 3808struct s2 {int (*f) (double a);}; 3809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3810int argc; 3811char **argv; 3812int 3813main () 3814{ 3815return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3822do 3823 CC="$ac_save_CC $ac_arg" 3824 if ac_fn_c_try_compile "$LINENO"; then : 3825 ac_cv_prog_cc_c89=$ac_arg 3826fi 3827rm -f core conftest.err conftest.$ac_objext 3828 test "x$ac_cv_prog_cc_c89" != "xno" && break 3829done 3830rm -f conftest.$ac_ext 3831CC=$ac_save_CC 3832 3833fi 3834# AC_CACHE_VAL 3835case "x$ac_cv_prog_cc_c89" in 3836 x) 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3838$as_echo "none needed" >&6; } ;; 3839 xno) 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3841$as_echo "unsupported" >&6; } ;; 3842 *) 3843 CC="$CC $ac_cv_prog_cc_c89" 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3845$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3846esac 3847if test "x$ac_cv_prog_cc_c89" != xno; then : 3848 3849fi 3850 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856 3857ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3863$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3864if ${am_cv_prog_cc_c_o+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main () 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878 # Make sure it works both with $CC and with simple cc. 3879 # Following AC_PROG_CC_C_O, we do the test twice because some 3880 # compilers refuse to overwrite an existing .o file with -o, 3881 # though they will create one. 3882 am_cv_prog_cc_c_o=yes 3883 for am_i in 1 2; do 3884 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3885 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3886 ac_status=$? 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); } \ 3889 && test -f conftest2.$ac_objext; then 3890 : OK 3891 else 3892 am_cv_prog_cc_c_o=no 3893 break 3894 fi 3895 done 3896 rm -f core conftest* 3897 unset am_i 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3900$as_echo "$am_cv_prog_cc_c_o" >&6; } 3901if test "$am_cv_prog_cc_c_o" != yes; then 3902 # Losing compiler, so override with the script. 3903 # FIXME: It is wrong to rewrite CC. 3904 # But if we don't then we get into trouble of one sort or another. 3905 # A longer-term fix would be to have automake use am__CC in this case, 3906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3907 CC="$am_aux_dir/compile $CC" 3908fi 3909ac_ext=c 3910ac_cpp='$CPP $CPPFLAGS' 3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3913ac_compiler_gnu=$ac_cv_c_compiler_gnu 3914 3915 3916depcc="$CC" am_compiler_list= 3917 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3919$as_echo_n "checking dependency style of $depcc... " >&6; } 3920if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3921 $as_echo_n "(cached) " >&6 3922else 3923 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3924 # We make a subdir and do the tests there. Otherwise we can end up 3925 # making bogus files that we don't know about and never remove. For 3926 # instance it was reported that on HP-UX the gcc test will end up 3927 # making a dummy file named 'D' -- because '-MD' means "put the output 3928 # in D". 3929 rm -rf conftest.dir 3930 mkdir conftest.dir 3931 # Copy depcomp to subdir because otherwise we won't find it if we're 3932 # using a relative directory. 3933 cp "$am_depcomp" conftest.dir 3934 cd conftest.dir 3935 # We will build objects and dependencies in a subdirectory because 3936 # it helps to detect inapplicable dependency modes. For instance 3937 # both Tru64's cc and ICC support -MD to output dependencies as a 3938 # side effect of compilation, but ICC will put the dependencies in 3939 # the current directory while Tru64 will put them in the object 3940 # directory. 3941 mkdir sub 3942 3943 am_cv_CC_dependencies_compiler_type=none 3944 if test "$am_compiler_list" = ""; then 3945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3946 fi 3947 am__universal=false 3948 case " $depcc " in #( 3949 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3950 esac 3951 3952 for depmode in $am_compiler_list; do 3953 # Setup a source with many dependencies, because some compilers 3954 # like to wrap large dependency lists on column 80 (with \), and 3955 # we should not choose a depcomp mode which is confused by this. 3956 # 3957 # We need to recreate these files for each test, as the compiler may 3958 # overwrite some of them when testing with obscure command lines. 3959 # This happens at least with the AIX C compiler. 3960 : > sub/conftest.c 3961 for i in 1 2 3 4 5 6; do 3962 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3963 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3964 # Solaris 10 /bin/sh. 3965 echo '/* dummy */' > sub/conftst$i.h 3966 done 3967 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3968 3969 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3970 # mode. It turns out that the SunPro C++ compiler does not properly 3971 # handle '-M -o', and we need to detect this. Also, some Intel 3972 # versions had trouble with output in subdirs. 3973 am__obj=sub/conftest.${OBJEXT-o} 3974 am__minus_obj="-o $am__obj" 3975 case $depmode in 3976 gcc) 3977 # This depmode causes a compiler race in universal mode. 3978 test "$am__universal" = false || continue 3979 ;; 3980 nosideeffect) 3981 # After this tag, mechanisms are not by side-effect, so they'll 3982 # only be used when explicitly requested. 3983 if test "x$enable_dependency_tracking" = xyes; then 3984 continue 3985 else 3986 break 3987 fi 3988 ;; 3989 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3990 # This compiler won't grok '-c -o', but also, the minuso test has 3991 # not run yet. These depmodes are late enough in the game, and 3992 # so weak that their functioning should not be impacted. 3993 am__obj=conftest.${OBJEXT-o} 3994 am__minus_obj= 3995 ;; 3996 none) break ;; 3997 esac 3998 if depmode=$depmode \ 3999 source=sub/conftest.c object=$am__obj \ 4000 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4001 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4002 >/dev/null 2>conftest.err && 4003 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4005 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4007 # icc doesn't choke on unknown options, it will just issue warnings 4008 # or remarks (even with -Werror). So we grep stderr for any message 4009 # that says an option was ignored or not supported. 4010 # When given -MP, icc 7.0 and 7.1 complain thusly: 4011 # icc: Command line warning: ignoring option '-M'; no argument required 4012 # The diagnosis changed in icc 8.0: 4013 # icc: Command line remark: option '-MP' not supported 4014 if (grep 'ignoring option' conftest.err || 4015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4016 am_cv_CC_dependencies_compiler_type=$depmode 4017 break 4018 fi 4019 fi 4020 done 4021 4022 cd .. 4023 rm -rf conftest.dir 4024else 4025 am_cv_CC_dependencies_compiler_type=none 4026fi 4027 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4030$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4032 4033 if 4034 test "x$enable_dependency_tracking" != xno \ 4035 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4036 am__fastdepCC_TRUE= 4037 am__fastdepCC_FALSE='#' 4038else 4039 am__fastdepCC_TRUE='#' 4040 am__fastdepCC_FALSE= 4041fi 4042 4043 4044 4045ac_ext=c 4046ac_cpp='$CPP $CPPFLAGS' 4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4049ac_compiler_gnu=$ac_cv_c_compiler_gnu 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4051$as_echo_n "checking how to run the C preprocessor... " >&6; } 4052# On Suns, sometimes $CPP names a directory. 4053if test -n "$CPP" && test -d "$CPP"; then 4054 CPP= 4055fi 4056if test -z "$CPP"; then 4057 if ${ac_cv_prog_CPP+:} false; then : 4058 $as_echo_n "(cached) " >&6 4059else 4060 # Double quotes because CPP needs to be expanded 4061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4062 do 4063 ac_preproc_ok=false 4064for ac_c_preproc_warn_flag in '' yes 4065do 4066 # Use a header file that comes with gcc, so configuring glibc 4067 # with a fresh cross-compiler works. 4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4069 # <limits.h> exists even on freestanding compilers. 4070 # On the NeXT, cc -E runs the code through the compiler's parser, 4071 # not just through cpp. "Syntax error" is here to catch this case. 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074@%:@ifdef __STDC__ 4075@%:@ include <limits.h> 4076@%:@else 4077@%:@ include <assert.h> 4078@%:@endif 4079 Syntax error 4080_ACEOF 4081if ac_fn_c_try_cpp "$LINENO"; then : 4082 4083else 4084 # Broken: fails on valid input. 4085continue 4086fi 4087rm -f conftest.err conftest.i conftest.$ac_ext 4088 4089 # OK, works on sane cases. Now check whether nonexistent headers 4090 # can be detected and how. 4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4092/* end confdefs.h. */ 4093@%:@include <ac_nonexistent.h> 4094_ACEOF 4095if ac_fn_c_try_cpp "$LINENO"; then : 4096 # Broken: success on invalid input. 4097continue 4098else 4099 # Passes both tests. 4100ac_preproc_ok=: 4101break 4102fi 4103rm -f conftest.err conftest.i conftest.$ac_ext 4104 4105done 4106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4107rm -f conftest.i conftest.err conftest.$ac_ext 4108if $ac_preproc_ok; then : 4109 break 4110fi 4111 4112 done 4113 ac_cv_prog_CPP=$CPP 4114 4115fi 4116 CPP=$ac_cv_prog_CPP 4117else 4118 ac_cv_prog_CPP=$CPP 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4121$as_echo "$CPP" >&6; } 4122ac_preproc_ok=false 4123for ac_c_preproc_warn_flag in '' yes 4124do 4125 # Use a header file that comes with gcc, so configuring glibc 4126 # with a fresh cross-compiler works. 4127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4128 # <limits.h> exists even on freestanding compilers. 4129 # On the NeXT, cc -E runs the code through the compiler's parser, 4130 # not just through cpp. "Syntax error" is here to catch this case. 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133@%:@ifdef __STDC__ 4134@%:@ include <limits.h> 4135@%:@else 4136@%:@ include <assert.h> 4137@%:@endif 4138 Syntax error 4139_ACEOF 4140if ac_fn_c_try_cpp "$LINENO"; then : 4141 4142else 4143 # Broken: fails on valid input. 4144continue 4145fi 4146rm -f conftest.err conftest.i conftest.$ac_ext 4147 4148 # OK, works on sane cases. Now check whether nonexistent headers 4149 # can be detected and how. 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152@%:@include <ac_nonexistent.h> 4153_ACEOF 4154if ac_fn_c_try_cpp "$LINENO"; then : 4155 # Broken: success on invalid input. 4156continue 4157else 4158 # Passes both tests. 4159ac_preproc_ok=: 4160break 4161fi 4162rm -f conftest.err conftest.i conftest.$ac_ext 4163 4164done 4165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4166rm -f conftest.i conftest.err conftest.$ac_ext 4167if $ac_preproc_ok; then : 4168 4169else 4170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4172as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4173See \`config.log' for more details" "$LINENO" 5; } 4174fi 4175 4176ac_ext=c 4177ac_cpp='$CPP $CPPFLAGS' 4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4180ac_compiler_gnu=$ac_cv_c_compiler_gnu 4181 4182 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4184$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4185if ${ac_cv_path_GREP+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 if test -z "$GREP"; then 4189 ac_path_GREP_found=false 4190 # Loop through the user's path and test for each of PROGNAME-LIST 4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4192for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4193do 4194 IFS=$as_save_IFS 4195 test -z "$as_dir" && as_dir=. 4196 for ac_prog in grep ggrep; do 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4199 as_fn_executable_p "$ac_path_GREP" || continue 4200# Check for GNU ac_path_GREP and select it if it is found. 4201 # Check for GNU $ac_path_GREP 4202case `"$ac_path_GREP" --version 2>&1` in 4203*GNU*) 4204 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4205*) 4206 ac_count=0 4207 $as_echo_n 0123456789 >"conftest.in" 4208 while : 4209 do 4210 cat "conftest.in" "conftest.in" >"conftest.tmp" 4211 mv "conftest.tmp" "conftest.in" 4212 cp "conftest.in" "conftest.nl" 4213 $as_echo 'GREP' >> "conftest.nl" 4214 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4216 as_fn_arith $ac_count + 1 && ac_count=$as_val 4217 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4218 # Best one so far, save it but keep looking for a better one 4219 ac_cv_path_GREP="$ac_path_GREP" 4220 ac_path_GREP_max=$ac_count 4221 fi 4222 # 10*(2^10) chars as input seems more than enough 4223 test $ac_count -gt 10 && break 4224 done 4225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4226esac 4227 4228 $ac_path_GREP_found && break 3 4229 done 4230 done 4231 done 4232IFS=$as_save_IFS 4233 if test -z "$ac_cv_path_GREP"; then 4234 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4235 fi 4236else 4237 ac_cv_path_GREP=$GREP 4238fi 4239 4240fi 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4242$as_echo "$ac_cv_path_GREP" >&6; } 4243 GREP="$ac_cv_path_GREP" 4244 4245 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4247$as_echo_n "checking for egrep... " >&6; } 4248if ${ac_cv_path_EGREP+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4252 then ac_cv_path_EGREP="$GREP -E" 4253 else 4254 if test -z "$EGREP"; then 4255 ac_path_EGREP_found=false 4256 # Loop through the user's path and test for each of PROGNAME-LIST 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_prog in egrep; do 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4265 as_fn_executable_p "$ac_path_EGREP" || continue 4266# Check for GNU ac_path_EGREP and select it if it is found. 4267 # Check for GNU $ac_path_EGREP 4268case `"$ac_path_EGREP" --version 2>&1` in 4269*GNU*) 4270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4271*) 4272 ac_count=0 4273 $as_echo_n 0123456789 >"conftest.in" 4274 while : 4275 do 4276 cat "conftest.in" "conftest.in" >"conftest.tmp" 4277 mv "conftest.tmp" "conftest.in" 4278 cp "conftest.in" "conftest.nl" 4279 $as_echo 'EGREP' >> "conftest.nl" 4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4282 as_fn_arith $ac_count + 1 && ac_count=$as_val 4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4284 # Best one so far, save it but keep looking for a better one 4285 ac_cv_path_EGREP="$ac_path_EGREP" 4286 ac_path_EGREP_max=$ac_count 4287 fi 4288 # 10*(2^10) chars as input seems more than enough 4289 test $ac_count -gt 10 && break 4290 done 4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4292esac 4293 4294 $ac_path_EGREP_found && break 3 4295 done 4296 done 4297 done 4298IFS=$as_save_IFS 4299 if test -z "$ac_cv_path_EGREP"; then 4300 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4301 fi 4302else 4303 ac_cv_path_EGREP=$EGREP 4304fi 4305 4306 fi 4307fi 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4309$as_echo "$ac_cv_path_EGREP" >&6; } 4310 EGREP="$ac_cv_path_EGREP" 4311 4312 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4314$as_echo_n "checking for ANSI C header files... " >&6; } 4315if ${ac_cv_header_stdc+:} false; then : 4316 $as_echo_n "(cached) " >&6 4317else 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4319/* end confdefs.h. */ 4320#include <stdlib.h> 4321#include <stdarg.h> 4322#include <string.h> 4323#include <float.h> 4324 4325int 4326main () 4327{ 4328 4329 ; 4330 return 0; 4331} 4332_ACEOF 4333if ac_fn_c_try_compile "$LINENO"; then : 4334 ac_cv_header_stdc=yes 4335else 4336 ac_cv_header_stdc=no 4337fi 4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4339 4340if test $ac_cv_header_stdc = yes; then 4341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343/* end confdefs.h. */ 4344#include <string.h> 4345 4346_ACEOF 4347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4348 $EGREP "memchr" >/dev/null 2>&1; then : 4349 4350else 4351 ac_cv_header_stdc=no 4352fi 4353rm -f conftest* 4354 4355fi 4356 4357if test $ac_cv_header_stdc = yes; then 4358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360/* end confdefs.h. */ 4361#include <stdlib.h> 4362 4363_ACEOF 4364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4365 $EGREP "free" >/dev/null 2>&1; then : 4366 4367else 4368 ac_cv_header_stdc=no 4369fi 4370rm -f conftest* 4371 4372fi 4373 4374if test $ac_cv_header_stdc = yes; then 4375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4376 if test "$cross_compiling" = yes; then : 4377 : 4378else 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381#include <ctype.h> 4382#include <stdlib.h> 4383#if ((' ' & 0x0FF) == 0x020) 4384# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4385# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4386#else 4387# define ISLOWER(c) \ 4388 (('a' <= (c) && (c) <= 'i') \ 4389 || ('j' <= (c) && (c) <= 'r') \ 4390 || ('s' <= (c) && (c) <= 'z')) 4391# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4392#endif 4393 4394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4395int 4396main () 4397{ 4398 int i; 4399 for (i = 0; i < 256; i++) 4400 if (XOR (islower (i), ISLOWER (i)) 4401 || toupper (i) != TOUPPER (i)) 4402 return 2; 4403 return 0; 4404} 4405_ACEOF 4406if ac_fn_c_try_run "$LINENO"; then : 4407 4408else 4409 ac_cv_header_stdc=no 4410fi 4411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4412 conftest.$ac_objext conftest.beam conftest.$ac_ext 4413fi 4414 4415fi 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4418$as_echo "$ac_cv_header_stdc" >&6; } 4419if test $ac_cv_header_stdc = yes; then 4420 4421$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 4422 4423fi 4424 4425# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4427 inttypes.h stdint.h unistd.h 4428do : 4429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4430ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4431" 4432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4433 cat >>confdefs.h <<_ACEOF 4434@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4435_ACEOF 4436 4437fi 4438 4439done 4440 4441 4442 4443 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4444if test "x$ac_cv_header_minix_config_h" = xyes; then : 4445 MINIX=yes 4446else 4447 MINIX= 4448fi 4449 4450 4451 if test "$MINIX" = yes; then 4452 4453$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h 4454 4455 4456$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h 4457 4458 4459$as_echo "@%:@define _MINIX 1" >>confdefs.h 4460 4461 fi 4462 4463 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4465$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4466if ${ac_cv_safe_to_define___extensions__+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4470/* end confdefs.h. */ 4471 4472# define __EXTENSIONS__ 1 4473 $ac_includes_default 4474int 4475main () 4476{ 4477 4478 ; 4479 return 0; 4480} 4481_ACEOF 4482if ac_fn_c_try_compile "$LINENO"; then : 4483 ac_cv_safe_to_define___extensions__=yes 4484else 4485 ac_cv_safe_to_define___extensions__=no 4486fi 4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4488fi 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4490$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4491 test $ac_cv_safe_to_define___extensions__ = yes && 4492 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h 4493 4494 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h 4495 4496 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h 4497 4498 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4499 4500 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h 4501 4502 4503 4504# Initialize libtool 4505case `pwd` in 4506 *\ * | *\ *) 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4508$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4509esac 4510 4511 4512 4513macro_version='2.4.2' 4514macro_revision='1.3337' 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528ltmain="$ac_aux_dir/ltmain.sh" 4529 4530# Make sure we can run config.sub. 4531$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4532 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4535$as_echo_n "checking build system type... " >&6; } 4536if ${ac_cv_build+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 ac_build_alias=$build_alias 4540test "x$ac_build_alias" = x && 4541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4542test "x$ac_build_alias" = x && 4543 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4544ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4546 4547fi 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4549$as_echo "$ac_cv_build" >&6; } 4550case $ac_cv_build in 4551*-*-*) ;; 4552*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4553esac 4554build=$ac_cv_build 4555ac_save_IFS=$IFS; IFS='-' 4556set x $ac_cv_build 4557shift 4558build_cpu=$1 4559build_vendor=$2 4560shift; shift 4561# Remember, the first character of IFS is used to create $*, 4562# except with old shells: 4563build_os=$* 4564IFS=$ac_save_IFS 4565case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4566 4567 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4569$as_echo_n "checking host system type... " >&6; } 4570if ${ac_cv_host+:} false; then : 4571 $as_echo_n "(cached) " >&6 4572else 4573 if test "x$host_alias" = x; then 4574 ac_cv_host=$ac_cv_build 4575else 4576 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4578fi 4579 4580fi 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4582$as_echo "$ac_cv_host" >&6; } 4583case $ac_cv_host in 4584*-*-*) ;; 4585*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4586esac 4587host=$ac_cv_host 4588ac_save_IFS=$IFS; IFS='-' 4589set x $ac_cv_host 4590shift 4591host_cpu=$1 4592host_vendor=$2 4593shift; shift 4594# Remember, the first character of IFS is used to create $*, 4595# except with old shells: 4596host_os=$* 4597IFS=$ac_save_IFS 4598case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4599 4600 4601# Backslashify metacharacters that are still active within 4602# double-quoted strings. 4603sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4604 4605# Same as above, but do not quote variable references. 4606double_quote_subst='s/\(["`\\]\)/\\\1/g' 4607 4608# Sed substitution to delay expansion of an escaped shell variable in a 4609# double_quote_subst'ed string. 4610delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4611 4612# Sed substitution to delay expansion of an escaped single quote. 4613delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4614 4615# Sed substitution to avoid accidental globbing in evaled expressions 4616no_glob_subst='s/\*/\\\*/g' 4617 4618ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4619ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4620ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4621 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4623$as_echo_n "checking how to print strings... " >&6; } 4624# Test print first, because it will be a builtin if present. 4625if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4626 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4627 ECHO='print -r --' 4628elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4629 ECHO='printf %s\n' 4630else 4631 # Use this function as a fallback that always works. 4632 func_fallback_echo () 4633 { 4634 eval 'cat <<_LTECHO_EOF 4635$1 4636_LTECHO_EOF' 4637 } 4638 ECHO='func_fallback_echo' 4639fi 4640 4641# func_echo_all arg... 4642# Invoke $ECHO with all args, space-separated. 4643func_echo_all () 4644{ 4645 $ECHO "" 4646} 4647 4648case "$ECHO" in 4649 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4650$as_echo "printf" >&6; } ;; 4651 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4652$as_echo "print -r" >&6; } ;; 4653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4654$as_echo "cat" >&6; } ;; 4655esac 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4671$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4672if ${ac_cv_path_SED+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4676 for ac_i in 1 2 3 4 5 6 7; do 4677 ac_script="$ac_script$as_nl$ac_script" 4678 done 4679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4680 { ac_script=; unset ac_script;} 4681 if test -z "$SED"; then 4682 ac_path_SED_found=false 4683 # Loop through the user's path and test for each of PROGNAME-LIST 4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4685for as_dir in $PATH 4686do 4687 IFS=$as_save_IFS 4688 test -z "$as_dir" && as_dir=. 4689 for ac_prog in sed gsed; do 4690 for ac_exec_ext in '' $ac_executable_extensions; do 4691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4692 as_fn_executable_p "$ac_path_SED" || continue 4693# Check for GNU ac_path_SED and select it if it is found. 4694 # Check for GNU $ac_path_SED 4695case `"$ac_path_SED" --version 2>&1` in 4696*GNU*) 4697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4698*) 4699 ac_count=0 4700 $as_echo_n 0123456789 >"conftest.in" 4701 while : 4702 do 4703 cat "conftest.in" "conftest.in" >"conftest.tmp" 4704 mv "conftest.tmp" "conftest.in" 4705 cp "conftest.in" "conftest.nl" 4706 $as_echo '' >> "conftest.nl" 4707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4709 as_fn_arith $ac_count + 1 && ac_count=$as_val 4710 if test $ac_count -gt ${ac_path_SED_max-0}; then 4711 # Best one so far, save it but keep looking for a better one 4712 ac_cv_path_SED="$ac_path_SED" 4713 ac_path_SED_max=$ac_count 4714 fi 4715 # 10*(2^10) chars as input seems more than enough 4716 test $ac_count -gt 10 && break 4717 done 4718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4719esac 4720 4721 $ac_path_SED_found && break 3 4722 done 4723 done 4724 done 4725IFS=$as_save_IFS 4726 if test -z "$ac_cv_path_SED"; then 4727 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4728 fi 4729else 4730 ac_cv_path_SED=$SED 4731fi 4732 4733fi 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4735$as_echo "$ac_cv_path_SED" >&6; } 4736 SED="$ac_cv_path_SED" 4737 rm -f conftest.sed 4738 4739test -z "$SED" && SED=sed 4740Xsed="$SED -e 1s/^X//" 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4753$as_echo_n "checking for fgrep... " >&6; } 4754if ${ac_cv_path_FGREP+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4758 then ac_cv_path_FGREP="$GREP -F" 4759 else 4760 if test -z "$FGREP"; then 4761 ac_path_FGREP_found=false 4762 # Loop through the user's path and test for each of PROGNAME-LIST 4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_prog in fgrep; do 4769 for ac_exec_ext in '' $ac_executable_extensions; do 4770 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4771 as_fn_executable_p "$ac_path_FGREP" || continue 4772# Check for GNU ac_path_FGREP and select it if it is found. 4773 # Check for GNU $ac_path_FGREP 4774case `"$ac_path_FGREP" --version 2>&1` in 4775*GNU*) 4776 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4777*) 4778 ac_count=0 4779 $as_echo_n 0123456789 >"conftest.in" 4780 while : 4781 do 4782 cat "conftest.in" "conftest.in" >"conftest.tmp" 4783 mv "conftest.tmp" "conftest.in" 4784 cp "conftest.in" "conftest.nl" 4785 $as_echo 'FGREP' >> "conftest.nl" 4786 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4788 as_fn_arith $ac_count + 1 && ac_count=$as_val 4789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4790 # Best one so far, save it but keep looking for a better one 4791 ac_cv_path_FGREP="$ac_path_FGREP" 4792 ac_path_FGREP_max=$ac_count 4793 fi 4794 # 10*(2^10) chars as input seems more than enough 4795 test $ac_count -gt 10 && break 4796 done 4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4798esac 4799 4800 $ac_path_FGREP_found && break 3 4801 done 4802 done 4803 done 4804IFS=$as_save_IFS 4805 if test -z "$ac_cv_path_FGREP"; then 4806 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4807 fi 4808else 4809 ac_cv_path_FGREP=$FGREP 4810fi 4811 4812 fi 4813fi 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4815$as_echo "$ac_cv_path_FGREP" >&6; } 4816 FGREP="$ac_cv_path_FGREP" 4817 4818 4819test -z "$GREP" && GREP=grep 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839@%:@ Check whether --with-gnu-ld was given. 4840if test "${with_gnu_ld+set}" = set; then : 4841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4842else 4843 with_gnu_ld=no 4844fi 4845 4846ac_prog=ld 4847if test "$GCC" = yes; then 4848 # Check if gcc -print-prog-name=ld gives a path. 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4850$as_echo_n "checking for ld used by $CC... " >&6; } 4851 case $host in 4852 *-*-mingw*) 4853 # gcc leaves a trailing carriage return which upsets mingw 4854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4855 *) 4856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4857 esac 4858 case $ac_prog in 4859 # Accept absolute paths. 4860 [\\/]* | ?:[\\/]*) 4861 re_direlt='/[^/][^/]*/\.\./' 4862 # Canonicalize the pathname of ld 4863 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4864 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4865 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4866 done 4867 test -z "$LD" && LD="$ac_prog" 4868 ;; 4869 "") 4870 # If it fails, then pretend we aren't using GCC. 4871 ac_prog=ld 4872 ;; 4873 *) 4874 # If it is relative, then search for the first ld in PATH. 4875 with_gnu_ld=unknown 4876 ;; 4877 esac 4878elif test "$with_gnu_ld" = yes; then 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4880$as_echo_n "checking for GNU ld... " >&6; } 4881else 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4883$as_echo_n "checking for non-GNU ld... " >&6; } 4884fi 4885if ${lt_cv_path_LD+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 if test -z "$LD"; then 4889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4890 for ac_dir in $PATH; do 4891 IFS="$lt_save_ifs" 4892 test -z "$ac_dir" && ac_dir=. 4893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4894 lt_cv_path_LD="$ac_dir/$ac_prog" 4895 # Check to see if the program is GNU ld. I'd rather use --version, 4896 # but apparently some variants of GNU ld only accept -v. 4897 # Break only if it was the GNU/non-GNU ld that we prefer. 4898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4899 *GNU* | *'with BFD'*) 4900 test "$with_gnu_ld" != no && break 4901 ;; 4902 *) 4903 test "$with_gnu_ld" != yes && break 4904 ;; 4905 esac 4906 fi 4907 done 4908 IFS="$lt_save_ifs" 4909else 4910 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4911fi 4912fi 4913 4914LD="$lt_cv_path_LD" 4915if test -n "$LD"; then 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4917$as_echo "$LD" >&6; } 4918else 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4920$as_echo "no" >&6; } 4921fi 4922test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4924$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4925if ${lt_cv_prog_gnu_ld+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4929case `$LD -v 2>&1 </dev/null` in 4930*GNU* | *'with BFD'*) 4931 lt_cv_prog_gnu_ld=yes 4932 ;; 4933*) 4934 lt_cv_prog_gnu_ld=no 4935 ;; 4936esac 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4939$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4940with_gnu_ld=$lt_cv_prog_gnu_ld 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4951$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4952if ${lt_cv_path_NM+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 if test -n "$NM"; then 4956 # Let the user override the test. 4957 lt_cv_path_NM="$NM" 4958else 4959 lt_nm_to_check="${ac_tool_prefix}nm" 4960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4961 lt_nm_to_check="$lt_nm_to_check nm" 4962 fi 4963 for lt_tmp_nm in $lt_nm_to_check; do 4964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4965 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4966 IFS="$lt_save_ifs" 4967 test -z "$ac_dir" && ac_dir=. 4968 tmp_nm="$ac_dir/$lt_tmp_nm" 4969 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4970 # Check to see if the nm accepts a BSD-compat flag. 4971 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4972 # nm: unknown option "B" ignored 4973 # Tru64's nm complains that /dev/null is an invalid object file 4974 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4975 */dev/null* | *'Invalid file or object type'*) 4976 lt_cv_path_NM="$tmp_nm -B" 4977 break 4978 ;; 4979 *) 4980 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4981 */dev/null*) 4982 lt_cv_path_NM="$tmp_nm -p" 4983 break 4984 ;; 4985 *) 4986 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4987 continue # so that we can try to find one that supports BSD flags 4988 ;; 4989 esac 4990 ;; 4991 esac 4992 fi 4993 done 4994 IFS="$lt_save_ifs" 4995 done 4996 : ${lt_cv_path_NM=no} 4997fi 4998fi 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5000$as_echo "$lt_cv_path_NM" >&6; } 5001if test "$lt_cv_path_NM" != "no"; then 5002 NM="$lt_cv_path_NM" 5003else 5004 # Didn't find any BSD compatible name lister, look for dumpbin. 5005 if test -n "$DUMPBIN"; then : 5006 # Let the user override the test. 5007 else 5008 if test -n "$ac_tool_prefix"; then 5009 for ac_prog in dumpbin "link -dump" 5010 do 5011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5012set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5014$as_echo_n "checking for $ac_word... " >&6; } 5015if ${ac_cv_prog_DUMPBIN+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 if test -n "$DUMPBIN"; then 5019 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5020else 5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5028 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032done 5033 done 5034IFS=$as_save_IFS 5035 5036fi 5037fi 5038DUMPBIN=$ac_cv_prog_DUMPBIN 5039if test -n "$DUMPBIN"; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5041$as_echo "$DUMPBIN" >&6; } 5042else 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044$as_echo "no" >&6; } 5045fi 5046 5047 5048 test -n "$DUMPBIN" && break 5049 done 5050fi 5051if test -z "$DUMPBIN"; then 5052 ac_ct_DUMPBIN=$DUMPBIN 5053 for ac_prog in dumpbin "link -dump" 5054do 5055 # Extract the first word of "$ac_prog", so it can be a program name with args. 5056set dummy $ac_prog; ac_word=$2 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5058$as_echo_n "checking for $ac_word... " >&6; } 5059if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 if test -n "$ac_ct_DUMPBIN"; then 5063 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5064else 5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5066for as_dir in $PATH 5067do 5068 IFS=$as_save_IFS 5069 test -z "$as_dir" && as_dir=. 5070 for ac_exec_ext in '' $ac_executable_extensions; do 5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5072 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5074 break 2 5075 fi 5076done 5077 done 5078IFS=$as_save_IFS 5079 5080fi 5081fi 5082ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5083if test -n "$ac_ct_DUMPBIN"; then 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5085$as_echo "$ac_ct_DUMPBIN" >&6; } 5086else 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5088$as_echo "no" >&6; } 5089fi 5090 5091 5092 test -n "$ac_ct_DUMPBIN" && break 5093done 5094 5095 if test "x$ac_ct_DUMPBIN" = x; then 5096 DUMPBIN=":" 5097 else 5098 case $cross_compiling:$ac_tool_warned in 5099yes:) 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5102ac_tool_warned=yes ;; 5103esac 5104 DUMPBIN=$ac_ct_DUMPBIN 5105 fi 5106fi 5107 5108 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5109 *COFF*) 5110 DUMPBIN="$DUMPBIN -symbols" 5111 ;; 5112 *) 5113 DUMPBIN=: 5114 ;; 5115 esac 5116 fi 5117 5118 if test "$DUMPBIN" != ":"; then 5119 NM="$DUMPBIN" 5120 fi 5121fi 5122test -z "$NM" && NM=nm 5123 5124 5125 5126 5127 5128 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5130$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5131if ${lt_cv_nm_interface+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 lt_cv_nm_interface="BSD nm" 5135 echo "int some_variable = 0;" > conftest.$ac_ext 5136 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5137 (eval "$ac_compile" 2>conftest.err) 5138 cat conftest.err >&5 5139 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5140 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5141 cat conftest.err >&5 5142 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5143 cat conftest.out >&5 5144 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5145 lt_cv_nm_interface="MS dumpbin" 5146 fi 5147 rm -f conftest* 5148fi 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5150$as_echo "$lt_cv_nm_interface" >&6; } 5151 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5153$as_echo_n "checking whether ln -s works... " >&6; } 5154LN_S=$as_ln_s 5155if test "$LN_S" = "ln -s"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5157$as_echo "yes" >&6; } 5158else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5160$as_echo "no, using $LN_S" >&6; } 5161fi 5162 5163# find the maximum length of command line arguments 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5165$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5166if ${lt_cv_sys_max_cmd_len+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 i=0 5170 teststring="ABCD" 5171 5172 case $build_os in 5173 msdosdjgpp*) 5174 # On DJGPP, this test can blow up pretty badly due to problems in libc 5175 # (any single argument exceeding 2000 bytes causes a buffer overrun 5176 # during glob expansion). Even if it were fixed, the result of this 5177 # check would be larger than it should be. 5178 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5179 ;; 5180 5181 gnu*) 5182 # Under GNU Hurd, this test is not required because there is 5183 # no limit to the length of command line arguments. 5184 # Libtool will interpret -1 as no limit whatsoever 5185 lt_cv_sys_max_cmd_len=-1; 5186 ;; 5187 5188 cygwin* | mingw* | cegcc*) 5189 # On Win9x/ME, this test blows up -- it succeeds, but takes 5190 # about 5 minutes as the teststring grows exponentially. 5191 # Worse, since 9x/ME are not pre-emptively multitasking, 5192 # you end up with a "frozen" computer, even though with patience 5193 # the test eventually succeeds (with a max line length of 256k). 5194 # Instead, let's just punt: use the minimum linelength reported by 5195 # all of the supported platforms: 8192 (on NT/2K/XP). 5196 lt_cv_sys_max_cmd_len=8192; 5197 ;; 5198 5199 mint*) 5200 # On MiNT this can take a long time and run out of memory. 5201 lt_cv_sys_max_cmd_len=8192; 5202 ;; 5203 5204 amigaos*) 5205 # On AmigaOS with pdksh, this test takes hours, literally. 5206 # So we just punt and use a minimum line length of 8192. 5207 lt_cv_sys_max_cmd_len=8192; 5208 ;; 5209 5210 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5211 # This has been around since 386BSD, at least. Likely further. 5212 if test -x /sbin/sysctl; then 5213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5214 elif test -x /usr/sbin/sysctl; then 5215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5216 else 5217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5218 fi 5219 # And add a safety zone 5220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5222 ;; 5223 5224 interix*) 5225 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5226 lt_cv_sys_max_cmd_len=196608 5227 ;; 5228 5229 os2*) 5230 # The test takes a long time on OS/2. 5231 lt_cv_sys_max_cmd_len=8192 5232 ;; 5233 5234 osf*) 5235 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5236 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5237 # nice to cause kernel panics so lets avoid the loop below. 5238 # First set a reasonable default. 5239 lt_cv_sys_max_cmd_len=16384 5240 # 5241 if test -x /sbin/sysconfig; then 5242 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5243 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5244 esac 5245 fi 5246 ;; 5247 sco3.2v5*) 5248 lt_cv_sys_max_cmd_len=102400 5249 ;; 5250 sysv5* | sco5v6* | sysv4.2uw2*) 5251 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5252 if test -n "$kargmax"; then 5253 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5254 else 5255 lt_cv_sys_max_cmd_len=32768 5256 fi 5257 ;; 5258 *) 5259 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5260 if test -n "$lt_cv_sys_max_cmd_len" && \ 5261 test undefined != "$lt_cv_sys_max_cmd_len"; then 5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5264 else 5265 # Make teststring a little bigger before we do anything with it. 5266 # a 1K string should be a reasonable start. 5267 for i in 1 2 3 4 5 6 7 8 ; do 5268 teststring=$teststring$teststring 5269 done 5270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5271 # If test is not a shell built-in, we'll probably end up computing a 5272 # maximum length that is only half of the actual maximum length, but 5273 # we can't tell. 5274 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5275 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5276 test $i != 17 # 1/2 MB should be enough 5277 do 5278 i=`expr $i + 1` 5279 teststring=$teststring$teststring 5280 done 5281 # Only check the string length outside the loop. 5282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5283 teststring= 5284 # Add a significant safety factor because C++ compilers can tack on 5285 # massive amounts of additional arguments before passing them to the 5286 # linker. It appears as though 1/2 is a usable value. 5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5288 fi 5289 ;; 5290 esac 5291 5292fi 5293 5294if test -n $lt_cv_sys_max_cmd_len ; then 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5296$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5297else 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5299$as_echo "none" >&6; } 5300fi 5301max_cmd_len=$lt_cv_sys_max_cmd_len 5302 5303 5304 5305 5306 5307 5308: ${CP="cp -f"} 5309: ${MV="mv -f"} 5310: ${RM="rm -f"} 5311 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5313$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5314# Try some XSI features 5315xsi_shell=no 5316( _lt_dummy="a/b/c" 5317 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5318 = c,a/b,b/c, \ 5319 && eval 'test $(( 1 + 1 )) -eq 2 \ 5320 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5321 && xsi_shell=yes 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5323$as_echo "$xsi_shell" >&6; } 5324 5325 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5327$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5328lt_shell_append=no 5329( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5330 >/dev/null 2>&1 \ 5331 && lt_shell_append=yes 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5333$as_echo "$lt_shell_append" >&6; } 5334 5335 5336if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5337 lt_unset=unset 5338else 5339 lt_unset=false 5340fi 5341 5342 5343 5344 5345 5346# test EBCDIC or ASCII 5347case `echo X|tr X '\101'` in 5348 A) # ASCII based system 5349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5350 lt_SP2NL='tr \040 \012' 5351 lt_NL2SP='tr \015\012 \040\040' 5352 ;; 5353 *) # EBCDIC based system 5354 lt_SP2NL='tr \100 \n' 5355 lt_NL2SP='tr \r\n \100\100' 5356 ;; 5357esac 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5368$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5369if ${lt_cv_to_host_file_cmd+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 case $host in 5373 *-*-mingw* ) 5374 case $build in 5375 *-*-mingw* ) # actually msys 5376 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5377 ;; 5378 *-*-cygwin* ) 5379 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5380 ;; 5381 * ) # otherwise, assume *nix 5382 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5383 ;; 5384 esac 5385 ;; 5386 *-*-cygwin* ) 5387 case $build in 5388 *-*-mingw* ) # actually msys 5389 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5390 ;; 5391 *-*-cygwin* ) 5392 lt_cv_to_host_file_cmd=func_convert_file_noop 5393 ;; 5394 * ) # otherwise, assume *nix 5395 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5396 ;; 5397 esac 5398 ;; 5399 * ) # unhandled hosts (and "normal" native builds) 5400 lt_cv_to_host_file_cmd=func_convert_file_noop 5401 ;; 5402esac 5403 5404fi 5405 5406to_host_file_cmd=$lt_cv_to_host_file_cmd 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5408$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5409 5410 5411 5412 5413 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5415$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5416if ${lt_cv_to_tool_file_cmd+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 #assume ordinary cross tools, or native build. 5420lt_cv_to_tool_file_cmd=func_convert_file_noop 5421case $host in 5422 *-*-mingw* ) 5423 case $build in 5424 *-*-mingw* ) # actually msys 5425 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5426 ;; 5427 esac 5428 ;; 5429esac 5430 5431fi 5432 5433to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5435$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5436 5437 5438 5439 5440 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5442$as_echo_n "checking for $LD option to reload object files... " >&6; } 5443if ${lt_cv_ld_reload_flag+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 lt_cv_ld_reload_flag='-r' 5447fi 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5449$as_echo "$lt_cv_ld_reload_flag" >&6; } 5450reload_flag=$lt_cv_ld_reload_flag 5451case $reload_flag in 5452"" | " "*) ;; 5453*) reload_flag=" $reload_flag" ;; 5454esac 5455reload_cmds='$LD$reload_flag -o $output$reload_objs' 5456case $host_os in 5457 cygwin* | mingw* | pw32* | cegcc*) 5458 if test "$GCC" != yes; then 5459 reload_cmds=false 5460 fi 5461 ;; 5462 darwin*) 5463 if test "$GCC" = yes; then 5464 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5465 else 5466 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5467 fi 5468 ;; 5469esac 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479if test -n "$ac_tool_prefix"; then 5480 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5481set dummy ${ac_tool_prefix}objdump; ac_word=$2 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5483$as_echo_n "checking for $ac_word... " >&6; } 5484if ${ac_cv_prog_OBJDUMP+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 if test -n "$OBJDUMP"; then 5488 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5489else 5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491for as_dir in $PATH 5492do 5493 IFS=$as_save_IFS 5494 test -z "$as_dir" && as_dir=. 5495 for ac_exec_ext in '' $ac_executable_extensions; do 5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5499 break 2 5500 fi 5501done 5502 done 5503IFS=$as_save_IFS 5504 5505fi 5506fi 5507OBJDUMP=$ac_cv_prog_OBJDUMP 5508if test -n "$OBJDUMP"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5510$as_echo "$OBJDUMP" >&6; } 5511else 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513$as_echo "no" >&6; } 5514fi 5515 5516 5517fi 5518if test -z "$ac_cv_prog_OBJDUMP"; then 5519 ac_ct_OBJDUMP=$OBJDUMP 5520 # Extract the first word of "objdump", so it can be a program name with args. 5521set dummy objdump; ac_word=$2 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5523$as_echo_n "checking for $ac_word... " >&6; } 5524if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 if test -n "$ac_ct_OBJDUMP"; then 5528 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5529else 5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5531for as_dir in $PATH 5532do 5533 IFS=$as_save_IFS 5534 test -z "$as_dir" && as_dir=. 5535 for ac_exec_ext in '' $ac_executable_extensions; do 5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5537 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5539 break 2 5540 fi 5541done 5542 done 5543IFS=$as_save_IFS 5544 5545fi 5546fi 5547ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5548if test -n "$ac_ct_OBJDUMP"; then 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5550$as_echo "$ac_ct_OBJDUMP" >&6; } 5551else 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5553$as_echo "no" >&6; } 5554fi 5555 5556 if test "x$ac_ct_OBJDUMP" = x; then 5557 OBJDUMP="false" 5558 else 5559 case $cross_compiling:$ac_tool_warned in 5560yes:) 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5563ac_tool_warned=yes ;; 5564esac 5565 OBJDUMP=$ac_ct_OBJDUMP 5566 fi 5567else 5568 OBJDUMP="$ac_cv_prog_OBJDUMP" 5569fi 5570 5571test -z "$OBJDUMP" && OBJDUMP=objdump 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5582$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5583if ${lt_cv_deplibs_check_method+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 lt_cv_file_magic_cmd='$MAGIC_CMD' 5587lt_cv_file_magic_test_file= 5588lt_cv_deplibs_check_method='unknown' 5589# Need to set the preceding variable on all platforms that support 5590# interlibrary dependencies. 5591# 'none' -- dependencies not supported. 5592# `unknown' -- same as none, but documents that we really don't know. 5593# 'pass_all' -- all dependencies passed with no checks. 5594# 'test_compile' -- check by making test program. 5595# 'file_magic [[regex]]' -- check by looking for files in library path 5596# which responds to the $file_magic_cmd with a given extended regex. 5597# If you have `file' or equivalent on your system and you're not sure 5598# whether `pass_all' will *always* work, you probably want this one. 5599 5600case $host_os in 5601aix[4-9]*) 5602 lt_cv_deplibs_check_method=pass_all 5603 ;; 5604 5605beos*) 5606 lt_cv_deplibs_check_method=pass_all 5607 ;; 5608 5609bsdi[45]*) 5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5611 lt_cv_file_magic_cmd='/usr/bin/file -L' 5612 lt_cv_file_magic_test_file=/shlib/libc.so 5613 ;; 5614 5615cygwin*) 5616 # func_win32_libid is a shell function defined in ltmain.sh 5617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5618 lt_cv_file_magic_cmd='func_win32_libid' 5619 ;; 5620 5621mingw* | pw32*) 5622 # Base MSYS/MinGW do not provide the 'file' command needed by 5623 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5624 # unless we find 'file', for example because we are cross-compiling. 5625 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5626 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5627 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5628 lt_cv_file_magic_cmd='func_win32_libid' 5629 else 5630 # Keep this pattern in sync with the one in func_win32_libid. 5631 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5632 lt_cv_file_magic_cmd='$OBJDUMP -f' 5633 fi 5634 ;; 5635 5636cegcc*) 5637 # use the weaker test based on 'objdump'. See mingw*. 5638 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5639 lt_cv_file_magic_cmd='$OBJDUMP -f' 5640 ;; 5641 5642darwin* | rhapsody*) 5643 lt_cv_deplibs_check_method=pass_all 5644 ;; 5645 5646freebsd* | dragonfly*) 5647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5648 case $host_cpu in 5649 i*86 ) 5650 # Not sure whether the presence of OpenBSD here was a mistake. 5651 # Let's accept both of them until this is cleared up. 5652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5653 lt_cv_file_magic_cmd=/usr/bin/file 5654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5655 ;; 5656 esac 5657 else 5658 lt_cv_deplibs_check_method=pass_all 5659 fi 5660 ;; 5661 5662haiku*) 5663 lt_cv_deplibs_check_method=pass_all 5664 ;; 5665 5666hpux10.20* | hpux11*) 5667 lt_cv_file_magic_cmd=/usr/bin/file 5668 case $host_cpu in 5669 ia64*) 5670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5671 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5672 ;; 5673 hppa*64*) 5674 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]' 5675 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5676 ;; 5677 *) 5678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5679 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5680 ;; 5681 esac 5682 ;; 5683 5684interix[3-9]*) 5685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5687 ;; 5688 5689irix5* | irix6* | nonstopux*) 5690 case $LD in 5691 *-32|*"-32 ") libmagic=32-bit;; 5692 *-n32|*"-n32 ") libmagic=N32;; 5693 *-64|*"-64 ") libmagic=64-bit;; 5694 *) libmagic=never-match;; 5695 esac 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699# This must be glibc/ELF. 5700linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5701 lt_cv_deplibs_check_method=pass_all 5702 ;; 5703 5704netbsd* | netbsdelf*-gnu) 5705 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5707 else 5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5709 fi 5710 ;; 5711 5712newos6*) 5713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5714 lt_cv_file_magic_cmd=/usr/bin/file 5715 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5716 ;; 5717 5718*nto* | *qnx*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721 5722openbsd*) 5723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5725 else 5726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5727 fi 5728 ;; 5729 5730osf3* | osf4* | osf5*) 5731 lt_cv_deplibs_check_method=pass_all 5732 ;; 5733 5734rdos*) 5735 lt_cv_deplibs_check_method=pass_all 5736 ;; 5737 5738solaris*) 5739 lt_cv_deplibs_check_method=pass_all 5740 ;; 5741 5742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5743 lt_cv_deplibs_check_method=pass_all 5744 ;; 5745 5746sysv4 | sysv4.3*) 5747 case $host_vendor in 5748 motorola) 5749 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]' 5750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5751 ;; 5752 ncr) 5753 lt_cv_deplibs_check_method=pass_all 5754 ;; 5755 sequent) 5756 lt_cv_file_magic_cmd='/bin/file' 5757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5758 ;; 5759 sni) 5760 lt_cv_file_magic_cmd='/bin/file' 5761 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5762 lt_cv_file_magic_test_file=/lib/libc.so 5763 ;; 5764 siemens) 5765 lt_cv_deplibs_check_method=pass_all 5766 ;; 5767 pc) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 esac 5771 ;; 5772 5773tpf*) 5774 lt_cv_deplibs_check_method=pass_all 5775 ;; 5776esac 5777 5778fi 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5780$as_echo "$lt_cv_deplibs_check_method" >&6; } 5781 5782file_magic_glob= 5783want_nocaseglob=no 5784if test "$build" = "$host"; then 5785 case $host_os in 5786 mingw* | pw32*) 5787 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5788 want_nocaseglob=yes 5789 else 5790 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5791 fi 5792 ;; 5793 esac 5794fi 5795 5796file_magic_cmd=$lt_cv_file_magic_cmd 5797deplibs_check_method=$lt_cv_deplibs_check_method 5798test -z "$deplibs_check_method" && deplibs_check_method=unknown 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821if test -n "$ac_tool_prefix"; then 5822 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5823set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5825$as_echo_n "checking for $ac_word... " >&6; } 5826if ${ac_cv_prog_DLLTOOL+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 if test -n "$DLLTOOL"; then 5830 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5839 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844 done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849DLLTOOL=$ac_cv_prog_DLLTOOL 5850if test -n "$DLLTOOL"; then 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5852$as_echo "$DLLTOOL" >&6; } 5853else 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855$as_echo "no" >&6; } 5856fi 5857 5858 5859fi 5860if test -z "$ac_cv_prog_DLLTOOL"; then 5861 ac_ct_DLLTOOL=$DLLTOOL 5862 # Extract the first word of "dlltool", so it can be a program name with args. 5863set dummy dlltool; ac_word=$2 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5865$as_echo_n "checking for $ac_word... " >&6; } 5866if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 if test -n "$ac_ct_DLLTOOL"; then 5870 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5871else 5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5873for as_dir in $PATH 5874do 5875 IFS=$as_save_IFS 5876 test -z "$as_dir" && as_dir=. 5877 for ac_exec_ext in '' $ac_executable_extensions; do 5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5879 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5881 break 2 5882 fi 5883done 5884 done 5885IFS=$as_save_IFS 5886 5887fi 5888fi 5889ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5890if test -n "$ac_ct_DLLTOOL"; then 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5892$as_echo "$ac_ct_DLLTOOL" >&6; } 5893else 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5895$as_echo "no" >&6; } 5896fi 5897 5898 if test "x$ac_ct_DLLTOOL" = x; then 5899 DLLTOOL="false" 5900 else 5901 case $cross_compiling:$ac_tool_warned in 5902yes:) 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5905ac_tool_warned=yes ;; 5906esac 5907 DLLTOOL=$ac_ct_DLLTOOL 5908 fi 5909else 5910 DLLTOOL="$ac_cv_prog_DLLTOOL" 5911fi 5912 5913test -z "$DLLTOOL" && DLLTOOL=dlltool 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5925$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5926if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 lt_cv_sharedlib_from_linklib_cmd='unknown' 5930 5931case $host_os in 5932cygwin* | mingw* | pw32* | cegcc*) 5933 # two different shell functions defined in ltmain.sh 5934 # decide which to use based on capabilities of $DLLTOOL 5935 case `$DLLTOOL --help 2>&1` in 5936 *--identify-strict*) 5937 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5938 ;; 5939 *) 5940 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5941 ;; 5942 esac 5943 ;; 5944*) 5945 # fallback: assume linklib IS sharedlib 5946 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5947 ;; 5948esac 5949 5950fi 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5952$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5953sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5954test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5955 5956 5957 5958 5959 5960 5961 5962if test -n "$ac_tool_prefix"; then 5963 for ac_prog in ar 5964 do 5965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5966set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5968$as_echo_n "checking for $ac_word... " >&6; } 5969if ${ac_cv_prog_AR+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 if test -n "$AR"; then 5973 ac_cv_prog_AR="$AR" # Let the user override the test. 5974else 5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5982 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987 done 5988IFS=$as_save_IFS 5989 5990fi 5991fi 5992AR=$ac_cv_prog_AR 5993if test -n "$AR"; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5995$as_echo "$AR" >&6; } 5996else 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5998$as_echo "no" >&6; } 5999fi 6000 6001 6002 test -n "$AR" && break 6003 done 6004fi 6005if test -z "$AR"; then 6006 ac_ct_AR=$AR 6007 for ac_prog in ar 6008do 6009 # Extract the first word of "$ac_prog", so it can be a program name with args. 6010set dummy $ac_prog; ac_word=$2 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6012$as_echo_n "checking for $ac_word... " >&6; } 6013if ${ac_cv_prog_ac_ct_AR+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015else 6016 if test -n "$ac_ct_AR"; then 6017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6018else 6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6020for as_dir in $PATH 6021do 6022 IFS=$as_save_IFS 6023 test -z "$as_dir" && as_dir=. 6024 for ac_exec_ext in '' $ac_executable_extensions; do 6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6026 ac_cv_prog_ac_ct_AR="$ac_prog" 6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6028 break 2 6029 fi 6030done 6031 done 6032IFS=$as_save_IFS 6033 6034fi 6035fi 6036ac_ct_AR=$ac_cv_prog_ac_ct_AR 6037if test -n "$ac_ct_AR"; then 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6039$as_echo "$ac_ct_AR" >&6; } 6040else 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042$as_echo "no" >&6; } 6043fi 6044 6045 6046 test -n "$ac_ct_AR" && break 6047done 6048 6049 if test "x$ac_ct_AR" = x; then 6050 AR="false" 6051 else 6052 case $cross_compiling:$ac_tool_warned in 6053yes:) 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6056ac_tool_warned=yes ;; 6057esac 6058 AR=$ac_ct_AR 6059 fi 6060fi 6061 6062: ${AR=ar} 6063: ${AR_FLAGS=cru} 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6076$as_echo_n "checking for archiver @FILE support... " >&6; } 6077if ${lt_cv_ar_at_file+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 lt_cv_ar_at_file=no 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083 6084int 6085main () 6086{ 6087 6088 ; 6089 return 0; 6090} 6091_ACEOF 6092if ac_fn_c_try_compile "$LINENO"; then : 6093 echo conftest.$ac_objext > conftest.lst 6094 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6096 (eval $lt_ar_try) 2>&5 6097 ac_status=$? 6098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6099 test $ac_status = 0; } 6100 if test "$ac_status" -eq 0; then 6101 # Ensure the archiver fails upon bogus file names. 6102 rm -f conftest.$ac_objext libconftest.a 6103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6104 (eval $lt_ar_try) 2>&5 6105 ac_status=$? 6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6107 test $ac_status = 0; } 6108 if test "$ac_status" -ne 0; then 6109 lt_cv_ar_at_file=@ 6110 fi 6111 fi 6112 rm -f conftest.* libconftest.a 6113 6114fi 6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6116 6117fi 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6119$as_echo "$lt_cv_ar_at_file" >&6; } 6120 6121if test "x$lt_cv_ar_at_file" = xno; then 6122 archiver_list_spec= 6123else 6124 archiver_list_spec=$lt_cv_ar_at_file 6125fi 6126 6127 6128 6129 6130 6131 6132 6133if test -n "$ac_tool_prefix"; then 6134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6135set dummy ${ac_tool_prefix}strip; ac_word=$2 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6137$as_echo_n "checking for $ac_word... " >&6; } 6138if ${ac_cv_prog_STRIP+:} false; then : 6139 $as_echo_n "(cached) " >&6 6140else 6141 if test -n "$STRIP"; then 6142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6143else 6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6145for as_dir in $PATH 6146do 6147 IFS=$as_save_IFS 6148 test -z "$as_dir" && as_dir=. 6149 for ac_exec_ext in '' $ac_executable_extensions; do 6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6151 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6153 break 2 6154 fi 6155done 6156 done 6157IFS=$as_save_IFS 6158 6159fi 6160fi 6161STRIP=$ac_cv_prog_STRIP 6162if test -n "$STRIP"; then 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6164$as_echo "$STRIP" >&6; } 6165else 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6167$as_echo "no" >&6; } 6168fi 6169 6170 6171fi 6172if test -z "$ac_cv_prog_STRIP"; then 6173 ac_ct_STRIP=$STRIP 6174 # Extract the first word of "strip", so it can be a program name with args. 6175set dummy strip; ac_word=$2 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177$as_echo_n "checking for $ac_word... " >&6; } 6178if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 if test -n "$ac_ct_STRIP"; then 6182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6183else 6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6185for as_dir in $PATH 6186do 6187 IFS=$as_save_IFS 6188 test -z "$as_dir" && as_dir=. 6189 for ac_exec_ext in '' $ac_executable_extensions; do 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6191 ac_cv_prog_ac_ct_STRIP="strip" 6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6193 break 2 6194 fi 6195done 6196 done 6197IFS=$as_save_IFS 6198 6199fi 6200fi 6201ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6202if test -n "$ac_ct_STRIP"; then 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6204$as_echo "$ac_ct_STRIP" >&6; } 6205else 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6207$as_echo "no" >&6; } 6208fi 6209 6210 if test "x$ac_ct_STRIP" = x; then 6211 STRIP=":" 6212 else 6213 case $cross_compiling:$ac_tool_warned in 6214yes:) 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6217ac_tool_warned=yes ;; 6218esac 6219 STRIP=$ac_ct_STRIP 6220 fi 6221else 6222 STRIP="$ac_cv_prog_STRIP" 6223fi 6224 6225test -z "$STRIP" && STRIP=: 6226 6227 6228 6229 6230 6231 6232if test -n "$ac_tool_prefix"; then 6233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6234set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$RANLIB"; then 6241 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib" 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 6260RANLIB=$ac_cv_prog_RANLIB 6261if test -n "$RANLIB"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6263$as_echo "$RANLIB" >&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_RANLIB"; then 6272 ac_ct_RANLIB=$RANLIB 6273 # Extract the first word of "ranlib", so it can be a program name with args. 6274set dummy ranlib; 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_RANLIB+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 if test -n "$ac_ct_RANLIB"; then 6281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" 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_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6301if test -n "$ac_ct_RANLIB"; then 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6303$as_echo "$ac_ct_RANLIB" >&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_RANLIB" = x; then 6310 RANLIB=":" 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 RANLIB=$ac_ct_RANLIB 6319 fi 6320else 6321 RANLIB="$ac_cv_prog_RANLIB" 6322fi 6323 6324test -z "$RANLIB" && RANLIB=: 6325 6326 6327 6328 6329 6330 6331# Determine commands to create old-style static archives. 6332old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6333old_postinstall_cmds='chmod 644 $oldlib' 6334old_postuninstall_cmds= 6335 6336if test -n "$RANLIB"; then 6337 case $host_os in 6338 openbsd*) 6339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6340 ;; 6341 *) 6342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6343 ;; 6344 esac 6345 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6346fi 6347 6348case $host_os in 6349 darwin*) 6350 lock_old_archive_extraction=yes ;; 6351 *) 6352 lock_old_archive_extraction=no ;; 6353esac 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393# If no C compiler was specified, use CC. 6394LTCC=${LTCC-"$CC"} 6395 6396# If no C compiler flags were specified, use CFLAGS. 6397LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6398 6399# Allow CC to be a program name with arguments. 6400compiler=$CC 6401 6402 6403# Check for command to grab the raw symbol name followed by C symbol from nm. 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6405$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6406if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 6410# These are sane defaults that work on at least a few old systems. 6411# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6412 6413# Character class describing NM global symbol codes. 6414symcode='[BCDEGRST]' 6415 6416# Regexp to match symbols that can be accessed directly from C. 6417sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6418 6419# Define system-specific variables. 6420case $host_os in 6421aix*) 6422 symcode='[BCDT]' 6423 ;; 6424cygwin* | mingw* | pw32* | cegcc*) 6425 symcode='[ABCDGISTW]' 6426 ;; 6427hpux*) 6428 if test "$host_cpu" = ia64; then 6429 symcode='[ABCDEGRST]' 6430 fi 6431 ;; 6432irix* | nonstopux*) 6433 symcode='[BCDEGRST]' 6434 ;; 6435osf*) 6436 symcode='[BCDEGQRST]' 6437 ;; 6438solaris*) 6439 symcode='[BDRT]' 6440 ;; 6441sco3.2v5*) 6442 symcode='[DT]' 6443 ;; 6444sysv4.2uw2*) 6445 symcode='[DT]' 6446 ;; 6447sysv5* | sco5v6* | unixware* | OpenUNIX*) 6448 symcode='[ABDT]' 6449 ;; 6450sysv4) 6451 symcode='[DFNSTU]' 6452 ;; 6453esac 6454 6455# If we're using GNU nm, then use its standard symbol codes. 6456case `$NM -V 2>&1` in 6457*GNU* | *'with BFD'*) 6458 symcode='[ABCDGIRSTW]' ;; 6459esac 6460 6461# Transform an extracted symbol line into a proper C declaration. 6462# Some systems (esp. on ia64) link data and code symbols differently, 6463# so use this general approach. 6464lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6465 6466# Transform an extracted symbol line into symbol name and symbol address 6467lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6468lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6469 6470# Handle CRLF in mingw tool chain 6471opt_cr= 6472case $build_os in 6473mingw*) 6474 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6475 ;; 6476esac 6477 6478# Try without a prefix underscore, then with it. 6479for ac_symprfx in "" "_"; do 6480 6481 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6482 symxfrm="\\1 $ac_symprfx\\2 \\2" 6483 6484 # Write the raw and C identifiers. 6485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6486 # Fake it for dumpbin and say T for any non-static function 6487 # and D for any global variable. 6488 # Also find C++ and __fastcall symbols from MSVC++, 6489 # which start with @ or ?. 6490 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6491" {last_section=section; section=\$ 3};"\ 6492" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6493" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6494" \$ 0!~/External *\|/{next};"\ 6495" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6496" {if(hide[section]) next};"\ 6497" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6498" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6499" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6500" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6501" ' prfx=^$ac_symprfx" 6502 else 6503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6504 fi 6505 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6506 6507 # Check to see that the pipe works correctly. 6508 pipe_works=no 6509 6510 rm -f conftest* 6511 cat > conftest.$ac_ext <<_LT_EOF 6512#ifdef __cplusplus 6513extern "C" { 6514#endif 6515char nm_test_var; 6516void nm_test_func(void); 6517void nm_test_func(void){} 6518#ifdef __cplusplus 6519} 6520#endif 6521int main(){nm_test_var='a';nm_test_func();return(0);} 6522_LT_EOF 6523 6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6525 (eval $ac_compile) 2>&5 6526 ac_status=$? 6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6528 test $ac_status = 0; }; then 6529 # Now try to grab the symbols. 6530 nlist=conftest.nm 6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6532 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6533 ac_status=$? 6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6535 test $ac_status = 0; } && test -s "$nlist"; then 6536 # Try sorting and uniquifying the output. 6537 if sort "$nlist" | uniq > "$nlist"T; then 6538 mv -f "$nlist"T "$nlist" 6539 else 6540 rm -f "$nlist"T 6541 fi 6542 6543 # Make sure that we snagged all the symbols we need. 6544 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6545 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6546 cat <<_LT_EOF > conftest.$ac_ext 6547/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6548#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6549/* DATA imports from DLLs on WIN32 con't be const, because runtime 6550 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6551# define LT@&t@_DLSYM_CONST 6552#elif defined(__osf__) 6553/* This system does not cope well with relocations in const data. */ 6554# define LT@&t@_DLSYM_CONST 6555#else 6556# define LT@&t@_DLSYM_CONST const 6557#endif 6558 6559#ifdef __cplusplus 6560extern "C" { 6561#endif 6562 6563_LT_EOF 6564 # Now generate the symbol file. 6565 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6566 6567 cat <<_LT_EOF >> conftest.$ac_ext 6568 6569/* The mapping between symbol names and symbols. */ 6570LT@&t@_DLSYM_CONST struct { 6571 const char *name; 6572 void *address; 6573} 6574lt__PROGRAM__LTX_preloaded_symbols[] = 6575{ 6576 { "@PROGRAM@", (void *) 0 }, 6577_LT_EOF 6578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6579 cat <<\_LT_EOF >> conftest.$ac_ext 6580 {0, (void *) 0} 6581}; 6582 6583/* This works around a problem in FreeBSD linker */ 6584#ifdef FREEBSD_WORKAROUND 6585static const void *lt_preloaded_setup() { 6586 return lt__PROGRAM__LTX_preloaded_symbols; 6587} 6588#endif 6589 6590#ifdef __cplusplus 6591} 6592#endif 6593_LT_EOF 6594 # Now try linking the two files. 6595 mv conftest.$ac_objext conftstm.$ac_objext 6596 lt_globsym_save_LIBS=$LIBS 6597 lt_globsym_save_CFLAGS=$CFLAGS 6598 LIBS="conftstm.$ac_objext" 6599 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6601 (eval $ac_link) 2>&5 6602 ac_status=$? 6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6604 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6605 pipe_works=yes 6606 fi 6607 LIBS=$lt_globsym_save_LIBS 6608 CFLAGS=$lt_globsym_save_CFLAGS 6609 else 6610 echo "cannot find nm_test_func in $nlist" >&5 6611 fi 6612 else 6613 echo "cannot find nm_test_var in $nlist" >&5 6614 fi 6615 else 6616 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6617 fi 6618 else 6619 echo "$progname: failed program was:" >&5 6620 cat conftest.$ac_ext >&5 6621 fi 6622 rm -rf conftest* conftst* 6623 6624 # Do not use the global_symbol_pipe unless it works. 6625 if test "$pipe_works" = yes; then 6626 break 6627 else 6628 lt_cv_sys_global_symbol_pipe= 6629 fi 6630done 6631 6632fi 6633 6634if test -z "$lt_cv_sys_global_symbol_pipe"; then 6635 lt_cv_sys_global_symbol_to_cdecl= 6636fi 6637if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6639$as_echo "failed" >&6; } 6640else 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6642$as_echo "ok" >&6; } 6643fi 6644 6645# Response file support. 6646if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6647 nm_file_list_spec='@' 6648elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6649 nm_file_list_spec='@' 6650fi 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6679$as_echo_n "checking for sysroot... " >&6; } 6680 6681@%:@ Check whether --with-sysroot was given. 6682if test "${with_sysroot+set}" = set; then : 6683 withval=$with_sysroot; 6684else 6685 with_sysroot=no 6686fi 6687 6688 6689lt_sysroot= 6690case ${with_sysroot} in #( 6691 yes) 6692 if test "$GCC" = yes; then 6693 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6694 fi 6695 ;; #( 6696 /*) 6697 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6698 ;; #( 6699 no|'') 6700 ;; #( 6701 *) 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6703$as_echo "${with_sysroot}" >&6; } 6704 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6705 ;; 6706esac 6707 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6709$as_echo "${lt_sysroot:-no}" >&6; } 6710 6711 6712 6713 6714 6715@%:@ Check whether --enable-libtool-lock was given. 6716if test "${enable_libtool_lock+set}" = set; then : 6717 enableval=$enable_libtool_lock; 6718fi 6719 6720test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6721 6722# Some flags need to be propagated to the compiler or linker for good 6723# libtool support. 6724case $host in 6725ia64-*-hpux*) 6726 # Find out which ABI we are using. 6727 echo 'int i;' > conftest.$ac_ext 6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6729 (eval $ac_compile) 2>&5 6730 ac_status=$? 6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6732 test $ac_status = 0; }; then 6733 case `/usr/bin/file conftest.$ac_objext` in 6734 *ELF-32*) 6735 HPUX_IA64_MODE="32" 6736 ;; 6737 *ELF-64*) 6738 HPUX_IA64_MODE="64" 6739 ;; 6740 esac 6741 fi 6742 rm -rf conftest* 6743 ;; 6744*-*-irix6*) 6745 # Find out which ABI we are using. 6746 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6748 (eval $ac_compile) 2>&5 6749 ac_status=$? 6750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6751 test $ac_status = 0; }; then 6752 if test "$lt_cv_prog_gnu_ld" = yes; then 6753 case `/usr/bin/file conftest.$ac_objext` in 6754 *32-bit*) 6755 LD="${LD-ld} -melf32bsmip" 6756 ;; 6757 *N32*) 6758 LD="${LD-ld} -melf32bmipn32" 6759 ;; 6760 *64-bit*) 6761 LD="${LD-ld} -melf64bmip" 6762 ;; 6763 esac 6764 else 6765 case `/usr/bin/file conftest.$ac_objext` in 6766 *32-bit*) 6767 LD="${LD-ld} -32" 6768 ;; 6769 *N32*) 6770 LD="${LD-ld} -n32" 6771 ;; 6772 *64-bit*) 6773 LD="${LD-ld} -64" 6774 ;; 6775 esac 6776 fi 6777 fi 6778 rm -rf conftest* 6779 ;; 6780 6781x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6782s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6783 # Find out which ABI we are using. 6784 echo 'int i;' > conftest.$ac_ext 6785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6786 (eval $ac_compile) 2>&5 6787 ac_status=$? 6788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6789 test $ac_status = 0; }; then 6790 case `/usr/bin/file conftest.o` in 6791 *32-bit*) 6792 case $host in 6793 x86_64-*kfreebsd*-gnu) 6794 LD="${LD-ld} -m elf_i386_fbsd" 6795 ;; 6796 x86_64-*linux*) 6797 case `/usr/bin/file conftest.o` in 6798 *x86-64*) 6799 LD="${LD-ld} -m elf32_x86_64" 6800 ;; 6801 *) 6802 LD="${LD-ld} -m elf_i386" 6803 ;; 6804 esac 6805 ;; 6806 powerpc64le-*) 6807 LD="${LD-ld} -m elf32lppclinux" 6808 ;; 6809 powerpc64-*) 6810 LD="${LD-ld} -m elf32ppclinux" 6811 ;; 6812 s390x-*linux*) 6813 LD="${LD-ld} -m elf_s390" 6814 ;; 6815 sparc64-*linux*) 6816 LD="${LD-ld} -m elf32_sparc" 6817 ;; 6818 esac 6819 ;; 6820 *64-bit*) 6821 case $host in 6822 x86_64-*kfreebsd*-gnu) 6823 LD="${LD-ld} -m elf_x86_64_fbsd" 6824 ;; 6825 x86_64-*linux*) 6826 LD="${LD-ld} -m elf_x86_64" 6827 ;; 6828 powerpcle-*) 6829 LD="${LD-ld} -m elf64lppc" 6830 ;; 6831 powerpc-*) 6832 LD="${LD-ld} -m elf64ppc" 6833 ;; 6834 s390*-*linux*|s390*-*tpf*) 6835 LD="${LD-ld} -m elf64_s390" 6836 ;; 6837 sparc*-*linux*) 6838 LD="${LD-ld} -m elf64_sparc" 6839 ;; 6840 esac 6841 ;; 6842 esac 6843 fi 6844 rm -rf conftest* 6845 ;; 6846 6847*-*-sco3.2v5*) 6848 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6849 SAVE_CFLAGS="$CFLAGS" 6850 CFLAGS="$CFLAGS -belf" 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6852$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6853if ${lt_cv_cc_needs_belf+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 ac_ext=c 6857ac_cpp='$CPP $CPPFLAGS' 6858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6860ac_compiler_gnu=$ac_cv_c_compiler_gnu 6861 6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863/* end confdefs.h. */ 6864 6865int 6866main () 6867{ 6868 6869 ; 6870 return 0; 6871} 6872_ACEOF 6873if ac_fn_c_try_link "$LINENO"; then : 6874 lt_cv_cc_needs_belf=yes 6875else 6876 lt_cv_cc_needs_belf=no 6877fi 6878rm -f core conftest.err conftest.$ac_objext \ 6879 conftest$ac_exeext conftest.$ac_ext 6880 ac_ext=c 6881ac_cpp='$CPP $CPPFLAGS' 6882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6884ac_compiler_gnu=$ac_cv_c_compiler_gnu 6885 6886fi 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6888$as_echo "$lt_cv_cc_needs_belf" >&6; } 6889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6891 CFLAGS="$SAVE_CFLAGS" 6892 fi 6893 ;; 6894*-*solaris*) 6895 # Find out which ABI we are using. 6896 echo 'int i;' > conftest.$ac_ext 6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6898 (eval $ac_compile) 2>&5 6899 ac_status=$? 6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6901 test $ac_status = 0; }; then 6902 case `/usr/bin/file conftest.o` in 6903 *64-bit*) 6904 case $lt_cv_prog_gnu_ld in 6905 yes*) 6906 case $host in 6907 i?86-*-solaris*) 6908 LD="${LD-ld} -m elf_x86_64" 6909 ;; 6910 sparc*-*-solaris*) 6911 LD="${LD-ld} -m elf64_sparc" 6912 ;; 6913 esac 6914 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6915 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6916 LD="${LD-ld}_sol2" 6917 fi 6918 ;; 6919 *) 6920 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6921 LD="${LD-ld} -64" 6922 fi 6923 ;; 6924 esac 6925 ;; 6926 esac 6927 fi 6928 rm -rf conftest* 6929 ;; 6930esac 6931 6932need_locks="$enable_libtool_lock" 6933 6934if test -n "$ac_tool_prefix"; then 6935 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6936set dummy ${ac_tool_prefix}mt; ac_word=$2 6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6938$as_echo_n "checking for $ac_word... " >&6; } 6939if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6940 $as_echo_n "(cached) " >&6 6941else 6942 if test -n "$MANIFEST_TOOL"; then 6943 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6944else 6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946for as_dir in $PATH 6947do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6952 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956done 6957 done 6958IFS=$as_save_IFS 6959 6960fi 6961fi 6962MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6963if test -n "$MANIFEST_TOOL"; then 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6965$as_echo "$MANIFEST_TOOL" >&6; } 6966else 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6968$as_echo "no" >&6; } 6969fi 6970 6971 6972fi 6973if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6974 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6975 # Extract the first word of "mt", so it can be a program name with args. 6976set dummy mt; ac_word=$2 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6978$as_echo_n "checking for $ac_word... " >&6; } 6979if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 if test -n "$ac_ct_MANIFEST_TOOL"; then 6983 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6984else 6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986for as_dir in $PATH 6987do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6992 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996done 6997 done 6998IFS=$as_save_IFS 6999 7000fi 7001fi 7002ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7003if test -n "$ac_ct_MANIFEST_TOOL"; then 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7005$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7006else 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7008$as_echo "no" >&6; } 7009fi 7010 7011 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7012 MANIFEST_TOOL=":" 7013 else 7014 case $cross_compiling:$ac_tool_warned in 7015yes:) 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7018ac_tool_warned=yes ;; 7019esac 7020 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7021 fi 7022else 7023 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7024fi 7025 7026test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7028$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7029if ${lt_cv_path_mainfest_tool+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 lt_cv_path_mainfest_tool=no 7033 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7034 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7035 cat conftest.err >&5 7036 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7037 lt_cv_path_mainfest_tool=yes 7038 fi 7039 rm -f conftest* 7040fi 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7042$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7043if test "x$lt_cv_path_mainfest_tool" != xyes; then 7044 MANIFEST_TOOL=: 7045fi 7046 7047 7048 7049 7050 7051 7052 case $host_os in 7053 rhapsody* | darwin*) 7054 if test -n "$ac_tool_prefix"; then 7055 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7056set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7058$as_echo_n "checking for $ac_word... " >&6; } 7059if ${ac_cv_prog_DSYMUTIL+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 if test -n "$DSYMUTIL"; then 7063 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7064else 7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066for as_dir in $PATH 7067do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7072 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082DSYMUTIL=$ac_cv_prog_DSYMUTIL 7083if test -n "$DSYMUTIL"; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7085$as_echo "$DSYMUTIL" >&6; } 7086else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088$as_echo "no" >&6; } 7089fi 7090 7091 7092fi 7093if test -z "$ac_cv_prog_DSYMUTIL"; then 7094 ac_ct_DSYMUTIL=$DSYMUTIL 7095 # Extract the first word of "dsymutil", so it can be a program name with args. 7096set dummy dsymutil; ac_word=$2 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7098$as_echo_n "checking for $ac_word... " >&6; } 7099if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 if test -n "$ac_ct_DSYMUTIL"; then 7103 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7104else 7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7106for as_dir in $PATH 7107do 7108 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 7110 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7112 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7114 break 2 7115 fi 7116done 7117 done 7118IFS=$as_save_IFS 7119 7120fi 7121fi 7122ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7123if test -n "$ac_ct_DSYMUTIL"; then 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7125$as_echo "$ac_ct_DSYMUTIL" >&6; } 7126else 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7128$as_echo "no" >&6; } 7129fi 7130 7131 if test "x$ac_ct_DSYMUTIL" = x; then 7132 DSYMUTIL=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135yes:) 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138ac_tool_warned=yes ;; 7139esac 7140 DSYMUTIL=$ac_ct_DSYMUTIL 7141 fi 7142else 7143 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7144fi 7145 7146 if test -n "$ac_tool_prefix"; then 7147 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7148set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if ${ac_cv_prog_NMEDIT+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 if test -n "$NMEDIT"; then 7155 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7164 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172fi 7173fi 7174NMEDIT=$ac_cv_prog_NMEDIT 7175if test -n "$NMEDIT"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7177$as_echo "$NMEDIT" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 7184fi 7185if test -z "$ac_cv_prog_NMEDIT"; then 7186 ac_ct_NMEDIT=$NMEDIT 7187 # Extract the first word of "nmedit", so it can be a program name with args. 7188set dummy nmedit; ac_word=$2 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7190$as_echo_n "checking for $ac_word... " >&6; } 7191if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 if test -n "$ac_ct_NMEDIT"; then 7195 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7196else 7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7198for as_dir in $PATH 7199do 7200 IFS=$as_save_IFS 7201 test -z "$as_dir" && as_dir=. 7202 for ac_exec_ext in '' $ac_executable_extensions; do 7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7204 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7206 break 2 7207 fi 7208done 7209 done 7210IFS=$as_save_IFS 7211 7212fi 7213fi 7214ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7215if test -n "$ac_ct_NMEDIT"; then 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7217$as_echo "$ac_ct_NMEDIT" >&6; } 7218else 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7220$as_echo "no" >&6; } 7221fi 7222 7223 if test "x$ac_ct_NMEDIT" = x; then 7224 NMEDIT=":" 7225 else 7226 case $cross_compiling:$ac_tool_warned in 7227yes:) 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7230ac_tool_warned=yes ;; 7231esac 7232 NMEDIT=$ac_ct_NMEDIT 7233 fi 7234else 7235 NMEDIT="$ac_cv_prog_NMEDIT" 7236fi 7237 7238 if test -n "$ac_tool_prefix"; then 7239 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7240set dummy ${ac_tool_prefix}lipo; ac_word=$2 7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7242$as_echo_n "checking for $ac_word... " >&6; } 7243if ${ac_cv_prog_LIPO+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 if test -n "$LIPO"; then 7247 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7248else 7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 test -z "$as_dir" && as_dir=. 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7256 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7258 break 2 7259 fi 7260done 7261 done 7262IFS=$as_save_IFS 7263 7264fi 7265fi 7266LIPO=$ac_cv_prog_LIPO 7267if test -n "$LIPO"; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7269$as_echo "$LIPO" >&6; } 7270else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7272$as_echo "no" >&6; } 7273fi 7274 7275 7276fi 7277if test -z "$ac_cv_prog_LIPO"; then 7278 ac_ct_LIPO=$LIPO 7279 # Extract the first word of "lipo", so it can be a program name with args. 7280set dummy lipo; ac_word=$2 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7282$as_echo_n "checking for $ac_word... " >&6; } 7283if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 if test -n "$ac_ct_LIPO"; then 7287 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7288else 7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 test -z "$as_dir" && as_dir=. 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7296 ac_cv_prog_ac_ct_LIPO="lipo" 7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300done 7301 done 7302IFS=$as_save_IFS 7303 7304fi 7305fi 7306ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7307if test -n "$ac_ct_LIPO"; then 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7309$as_echo "$ac_ct_LIPO" >&6; } 7310else 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7312$as_echo "no" >&6; } 7313fi 7314 7315 if test "x$ac_ct_LIPO" = x; then 7316 LIPO=":" 7317 else 7318 case $cross_compiling:$ac_tool_warned in 7319yes:) 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7322ac_tool_warned=yes ;; 7323esac 7324 LIPO=$ac_ct_LIPO 7325 fi 7326else 7327 LIPO="$ac_cv_prog_LIPO" 7328fi 7329 7330 if test -n "$ac_tool_prefix"; then 7331 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7332set dummy ${ac_tool_prefix}otool; ac_word=$2 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7334$as_echo_n "checking for $ac_word... " >&6; } 7335if ${ac_cv_prog_OTOOL+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337else 7338 if test -n "$OTOOL"; then 7339 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7340else 7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7342for as_dir in $PATH 7343do 7344 IFS=$as_save_IFS 7345 test -z "$as_dir" && as_dir=. 7346 for ac_exec_ext in '' $ac_executable_extensions; do 7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7348 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7350 break 2 7351 fi 7352done 7353 done 7354IFS=$as_save_IFS 7355 7356fi 7357fi 7358OTOOL=$ac_cv_prog_OTOOL 7359if test -n "$OTOOL"; then 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7361$as_echo "$OTOOL" >&6; } 7362else 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7364$as_echo "no" >&6; } 7365fi 7366 7367 7368fi 7369if test -z "$ac_cv_prog_OTOOL"; then 7370 ac_ct_OTOOL=$OTOOL 7371 # Extract the first word of "otool", so it can be a program name with args. 7372set dummy otool; ac_word=$2 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7374$as_echo_n "checking for $ac_word... " >&6; } 7375if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 if test -n "$ac_ct_OTOOL"; then 7379 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7380else 7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7382for as_dir in $PATH 7383do 7384 IFS=$as_save_IFS 7385 test -z "$as_dir" && as_dir=. 7386 for ac_exec_ext in '' $ac_executable_extensions; do 7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7388 ac_cv_prog_ac_ct_OTOOL="otool" 7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7390 break 2 7391 fi 7392done 7393 done 7394IFS=$as_save_IFS 7395 7396fi 7397fi 7398ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7399if test -n "$ac_ct_OTOOL"; then 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7401$as_echo "$ac_ct_OTOOL" >&6; } 7402else 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7404$as_echo "no" >&6; } 7405fi 7406 7407 if test "x$ac_ct_OTOOL" = x; then 7408 OTOOL=":" 7409 else 7410 case $cross_compiling:$ac_tool_warned in 7411yes:) 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7414ac_tool_warned=yes ;; 7415esac 7416 OTOOL=$ac_ct_OTOOL 7417 fi 7418else 7419 OTOOL="$ac_cv_prog_OTOOL" 7420fi 7421 7422 if test -n "$ac_tool_prefix"; then 7423 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7424set dummy ${ac_tool_prefix}otool64; ac_word=$2 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7426$as_echo_n "checking for $ac_word... " >&6; } 7427if ${ac_cv_prog_OTOOL64+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 if test -n "$OTOOL64"; then 7431 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7432else 7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7434for as_dir in $PATH 7435do 7436 IFS=$as_save_IFS 7437 test -z "$as_dir" && as_dir=. 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7440 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7442 break 2 7443 fi 7444done 7445 done 7446IFS=$as_save_IFS 7447 7448fi 7449fi 7450OTOOL64=$ac_cv_prog_OTOOL64 7451if test -n "$OTOOL64"; then 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7453$as_echo "$OTOOL64" >&6; } 7454else 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7456$as_echo "no" >&6; } 7457fi 7458 7459 7460fi 7461if test -z "$ac_cv_prog_OTOOL64"; then 7462 ac_ct_OTOOL64=$OTOOL64 7463 # Extract the first word of "otool64", so it can be a program name with args. 7464set dummy otool64; ac_word=$2 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7466$as_echo_n "checking for $ac_word... " >&6; } 7467if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469else 7470 if test -n "$ac_ct_OTOOL64"; then 7471 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7472else 7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7474for as_dir in $PATH 7475do 7476 IFS=$as_save_IFS 7477 test -z "$as_dir" && as_dir=. 7478 for ac_exec_ext in '' $ac_executable_extensions; do 7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7480 ac_cv_prog_ac_ct_OTOOL64="otool64" 7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7482 break 2 7483 fi 7484done 7485 done 7486IFS=$as_save_IFS 7487 7488fi 7489fi 7490ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7491if test -n "$ac_ct_OTOOL64"; then 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7493$as_echo "$ac_ct_OTOOL64" >&6; } 7494else 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7496$as_echo "no" >&6; } 7497fi 7498 7499 if test "x$ac_ct_OTOOL64" = x; then 7500 OTOOL64=":" 7501 else 7502 case $cross_compiling:$ac_tool_warned in 7503yes:) 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7506ac_tool_warned=yes ;; 7507esac 7508 OTOOL64=$ac_ct_OTOOL64 7509 fi 7510else 7511 OTOOL64="$ac_cv_prog_OTOOL64" 7512fi 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7541$as_echo_n "checking for -single_module linker flag... " >&6; } 7542if ${lt_cv_apple_cc_single_mod+:} false; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 lt_cv_apple_cc_single_mod=no 7546 if test -z "${LT_MULTI_MODULE}"; then 7547 # By default we will add the -single_module flag. You can override 7548 # by either setting the environment variable LT_MULTI_MODULE 7549 # non-empty at configure time, or by adding -multi_module to the 7550 # link flags. 7551 rm -rf libconftest.dylib* 7552 echo "int foo(void){return 1;}" > conftest.c 7553 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7554-dynamiclib -Wl,-single_module conftest.c" >&5 7555 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7556 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7557 _lt_result=$? 7558 # If there is a non-empty error log, and "single_module" 7559 # appears in it, assume the flag caused a linker warning 7560 if test -s conftest.err && $GREP single_module conftest.err; then 7561 cat conftest.err >&5 7562 # Otherwise, if the output was created with a 0 exit code from 7563 # the compiler, it worked. 7564 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7565 lt_cv_apple_cc_single_mod=yes 7566 else 7567 cat conftest.err >&5 7568 fi 7569 rm -rf libconftest.dylib* 7570 rm -f conftest.* 7571 fi 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7574$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7575 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7577$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7578if ${lt_cv_ld_exported_symbols_list+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 lt_cv_ld_exported_symbols_list=no 7582 save_LDFLAGS=$LDFLAGS 7583 echo "_main" > conftest.sym 7584 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586/* end confdefs.h. */ 7587 7588int 7589main () 7590{ 7591 7592 ; 7593 return 0; 7594} 7595_ACEOF 7596if ac_fn_c_try_link "$LINENO"; then : 7597 lt_cv_ld_exported_symbols_list=yes 7598else 7599 lt_cv_ld_exported_symbols_list=no 7600fi 7601rm -f core conftest.err conftest.$ac_objext \ 7602 conftest$ac_exeext conftest.$ac_ext 7603 LDFLAGS="$save_LDFLAGS" 7604 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7607$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7608 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7610$as_echo_n "checking for -force_load linker flag... " >&6; } 7611if ${lt_cv_ld_force_load+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 lt_cv_ld_force_load=no 7615 cat > conftest.c << _LT_EOF 7616int forced_loaded() { return 2;} 7617_LT_EOF 7618 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7619 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7620 echo "$AR cru libconftest.a conftest.o" >&5 7621 $AR cru libconftest.a conftest.o 2>&5 7622 echo "$RANLIB libconftest.a" >&5 7623 $RANLIB libconftest.a 2>&5 7624 cat > conftest.c << _LT_EOF 7625int main() { return 0;} 7626_LT_EOF 7627 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7628 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7629 _lt_result=$? 7630 if test -s conftest.err && $GREP force_load conftest.err; then 7631 cat conftest.err >&5 7632 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7633 lt_cv_ld_force_load=yes 7634 else 7635 cat conftest.err >&5 7636 fi 7637 rm -f conftest.err libconftest.a conftest conftest.c 7638 rm -rf conftest.dSYM 7639 7640fi 7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7642$as_echo "$lt_cv_ld_force_load" >&6; } 7643 case $host_os in 7644 rhapsody* | darwin1.[012]) 7645 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7646 darwin1.*) 7647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7648 darwin*) # darwin 5.x on 7649 # if running on 10.5 or later, the deployment target defaults 7650 # to the OS version, if on x86, and 10.4, the deployment 7651 # target defaults to 10.4. Don't you love it? 7652 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7653 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7655 10.[012]*) 7656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7657 10.*) 7658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7659 esac 7660 ;; 7661 esac 7662 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7663 _lt_dar_single_mod='$single_module' 7664 fi 7665 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7666 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7667 else 7668 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7669 fi 7670 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7671 _lt_dsymutil='~$DSYMUTIL $lib || :' 7672 else 7673 _lt_dsymutil= 7674 fi 7675 ;; 7676 esac 7677 7678for ac_header in dlfcn.h 7679do : 7680 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7681" 7682if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7683 cat >>confdefs.h <<_ACEOF 7684@%:@define HAVE_DLFCN_H 1 7685_ACEOF 7686 7687fi 7688 7689done 7690 7691 7692 7693 7694 7695# Set options 7696 7697 7698 7699 enable_dlopen=no 7700 7701 7702 enable_win32_dll=no 7703 7704 7705 @%:@ Check whether --enable-shared was given. 7706if test "${enable_shared+set}" = set; then : 7707 enableval=$enable_shared; p=${PACKAGE-default} 7708 case $enableval in 7709 yes) enable_shared=yes ;; 7710 no) enable_shared=no ;; 7711 *) 7712 enable_shared=no 7713 # Look at the argument we got. We use all the common list separators. 7714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7715 for pkg in $enableval; do 7716 IFS="$lt_save_ifs" 7717 if test "X$pkg" = "X$p"; then 7718 enable_shared=yes 7719 fi 7720 done 7721 IFS="$lt_save_ifs" 7722 ;; 7723 esac 7724else 7725 enable_shared=yes 7726fi 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 @%:@ Check whether --enable-static was given. 7737if test "${enable_static+set}" = set; then : 7738 enableval=$enable_static; p=${PACKAGE-default} 7739 case $enableval in 7740 yes) enable_static=yes ;; 7741 no) enable_static=no ;; 7742 *) 7743 enable_static=no 7744 # Look at the argument we got. We use all the common list separators. 7745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7746 for pkg in $enableval; do 7747 IFS="$lt_save_ifs" 7748 if test "X$pkg" = "X$p"; then 7749 enable_static=yes 7750 fi 7751 done 7752 IFS="$lt_save_ifs" 7753 ;; 7754 esac 7755else 7756 enable_static=yes 7757fi 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768@%:@ Check whether --with-pic was given. 7769if test "${with_pic+set}" = set; then : 7770 withval=$with_pic; lt_p=${PACKAGE-default} 7771 case $withval in 7772 yes|no) pic_mode=$withval ;; 7773 *) 7774 pic_mode=default 7775 # Look at the argument we got. We use all the common list separators. 7776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7777 for lt_pkg in $withval; do 7778 IFS="$lt_save_ifs" 7779 if test "X$lt_pkg" = "X$lt_p"; then 7780 pic_mode=yes 7781 fi 7782 done 7783 IFS="$lt_save_ifs" 7784 ;; 7785 esac 7786else 7787 pic_mode=default 7788fi 7789 7790 7791test -z "$pic_mode" && pic_mode=default 7792 7793 7794 7795 7796 7797 7798 7799 @%:@ Check whether --enable-fast-install was given. 7800if test "${enable_fast_install+set}" = set; then : 7801 enableval=$enable_fast_install; p=${PACKAGE-default} 7802 case $enableval in 7803 yes) enable_fast_install=yes ;; 7804 no) enable_fast_install=no ;; 7805 *) 7806 enable_fast_install=no 7807 # Look at the argument we got. We use all the common list separators. 7808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7809 for pkg in $enableval; do 7810 IFS="$lt_save_ifs" 7811 if test "X$pkg" = "X$p"; then 7812 enable_fast_install=yes 7813 fi 7814 done 7815 IFS="$lt_save_ifs" 7816 ;; 7817 esac 7818else 7819 enable_fast_install=yes 7820fi 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832# This can be used to rebuild libtool when needed 7833LIBTOOL_DEPS="$ltmain" 7834 7835# Always use our own libtool. 7836LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867test -z "$LN_S" && LN_S="ln -s" 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882if test -n "${ZSH_VERSION+set}" ; then 7883 setopt NO_GLOB_SUBST 7884fi 7885 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7887$as_echo_n "checking for objdir... " >&6; } 7888if ${lt_cv_objdir+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 rm -f .libs 2>/dev/null 7892mkdir .libs 2>/dev/null 7893if test -d .libs; then 7894 lt_cv_objdir=.libs 7895else 7896 # MS-DOS does not allow filenames that begin with a dot. 7897 lt_cv_objdir=_libs 7898fi 7899rmdir .libs 2>/dev/null 7900fi 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7902$as_echo "$lt_cv_objdir" >&6; } 7903objdir=$lt_cv_objdir 7904 7905 7906 7907 7908 7909cat >>confdefs.h <<_ACEOF 7910@%:@define LT_OBJDIR "$lt_cv_objdir/" 7911_ACEOF 7912 7913 7914 7915 7916case $host_os in 7917aix3*) 7918 # AIX sometimes has problems with the GCC collect2 program. For some 7919 # reason, if we set the COLLECT_NAMES environment variable, the problems 7920 # vanish in a puff of smoke. 7921 if test "X${COLLECT_NAMES+set}" != Xset; then 7922 COLLECT_NAMES= 7923 export COLLECT_NAMES 7924 fi 7925 ;; 7926esac 7927 7928# Global variables: 7929ofile=libtool 7930can_build_shared=yes 7931 7932# All known linkers require a `.a' archive for static linking (except MSVC, 7933# which needs '.lib'). 7934libext=a 7935 7936with_gnu_ld="$lt_cv_prog_gnu_ld" 7937 7938old_CC="$CC" 7939old_CFLAGS="$CFLAGS" 7940 7941# Set sane defaults for various variables 7942test -z "$CC" && CC=cc 7943test -z "$LTCC" && LTCC=$CC 7944test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7945test -z "$LD" && LD=ld 7946test -z "$ac_objext" && ac_objext=o 7947 7948for cc_temp in $compiler""; do 7949 case $cc_temp in 7950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7952 \-*) ;; 7953 *) break;; 7954 esac 7955done 7956cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7957 7958 7959# Only perform the check for file, if the check method requires it 7960test -z "$MAGIC_CMD" && MAGIC_CMD=file 7961case $deplibs_check_method in 7962file_magic*) 7963 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7965$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7966if ${lt_cv_path_MAGIC_CMD+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968else 7969 case $MAGIC_CMD in 7970[\\/*] | ?:[\\/]*) 7971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7972 ;; 7973*) 7974 lt_save_MAGIC_CMD="$MAGIC_CMD" 7975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7977 for ac_dir in $ac_dummy; do 7978 IFS="$lt_save_ifs" 7979 test -z "$ac_dir" && ac_dir=. 7980 if test -f $ac_dir/${ac_tool_prefix}file; then 7981 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7982 if test -n "$file_magic_test_file"; then 7983 case $deplibs_check_method in 7984 "file_magic "*) 7985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7988 $EGREP "$file_magic_regex" > /dev/null; then 7989 : 7990 else 7991 cat <<_LT_EOF 1>&2 7992 7993*** Warning: the command libtool uses to detect shared libraries, 7994*** $file_magic_cmd, produces output that libtool cannot recognize. 7995*** The result is that libtool may fail to recognize shared libraries 7996*** as such. This will affect the creation of libtool libraries that 7997*** depend on shared libraries, but programs linked with such libtool 7998*** libraries will work regardless of this problem. Nevertheless, you 7999*** may want to report the problem to your system manager and/or to 8000*** bug-libtool@gnu.org 8001 8002_LT_EOF 8003 fi ;; 8004 esac 8005 fi 8006 break 8007 fi 8008 done 8009 IFS="$lt_save_ifs" 8010 MAGIC_CMD="$lt_save_MAGIC_CMD" 8011 ;; 8012esac 8013fi 8014 8015MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8016if test -n "$MAGIC_CMD"; then 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8018$as_echo "$MAGIC_CMD" >&6; } 8019else 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021$as_echo "no" >&6; } 8022fi 8023 8024 8025 8026 8027 8028if test -z "$lt_cv_path_MAGIC_CMD"; then 8029 if test -n "$ac_tool_prefix"; then 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8031$as_echo_n "checking for file... " >&6; } 8032if ${lt_cv_path_MAGIC_CMD+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034else 8035 case $MAGIC_CMD in 8036[\\/*] | ?:[\\/]*) 8037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8038 ;; 8039*) 8040 lt_save_MAGIC_CMD="$MAGIC_CMD" 8041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8043 for ac_dir in $ac_dummy; do 8044 IFS="$lt_save_ifs" 8045 test -z "$ac_dir" && ac_dir=. 8046 if test -f $ac_dir/file; then 8047 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8048 if test -n "$file_magic_test_file"; then 8049 case $deplibs_check_method in 8050 "file_magic "*) 8051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8054 $EGREP "$file_magic_regex" > /dev/null; then 8055 : 8056 else 8057 cat <<_LT_EOF 1>&2 8058 8059*** Warning: the command libtool uses to detect shared libraries, 8060*** $file_magic_cmd, produces output that libtool cannot recognize. 8061*** The result is that libtool may fail to recognize shared libraries 8062*** as such. This will affect the creation of libtool libraries that 8063*** depend on shared libraries, but programs linked with such libtool 8064*** libraries will work regardless of this problem. Nevertheless, you 8065*** may want to report the problem to your system manager and/or to 8066*** bug-libtool@gnu.org 8067 8068_LT_EOF 8069 fi ;; 8070 esac 8071 fi 8072 break 8073 fi 8074 done 8075 IFS="$lt_save_ifs" 8076 MAGIC_CMD="$lt_save_MAGIC_CMD" 8077 ;; 8078esac 8079fi 8080 8081MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8082if test -n "$MAGIC_CMD"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8084$as_echo "$MAGIC_CMD" >&6; } 8085else 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8087$as_echo "no" >&6; } 8088fi 8089 8090 8091 else 8092 MAGIC_CMD=: 8093 fi 8094fi 8095 8096 fi 8097 ;; 8098esac 8099 8100# Use C for the default configuration in the libtool script 8101 8102lt_save_CC="$CC" 8103ac_ext=c 8104ac_cpp='$CPP $CPPFLAGS' 8105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8107ac_compiler_gnu=$ac_cv_c_compiler_gnu 8108 8109 8110# Source file extension for C test sources. 8111ac_ext=c 8112 8113# Object file extension for compiled C test sources. 8114objext=o 8115objext=$objext 8116 8117# Code to be used in simple compile tests 8118lt_simple_compile_test_code="int some_variable = 0;" 8119 8120# Code to be used in simple link tests 8121lt_simple_link_test_code='int main(){return(0);}' 8122 8123 8124 8125 8126 8127 8128 8129# If no C compiler was specified, use CC. 8130LTCC=${LTCC-"$CC"} 8131 8132# If no C compiler flags were specified, use CFLAGS. 8133LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8134 8135# Allow CC to be a program name with arguments. 8136compiler=$CC 8137 8138# Save the default compiler, since it gets overwritten when the other 8139# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8140compiler_DEFAULT=$CC 8141 8142# save warnings/boilerplate of simple test code 8143ac_outfile=conftest.$ac_objext 8144echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8146_lt_compiler_boilerplate=`cat conftest.err` 8147$RM conftest* 8148 8149ac_outfile=conftest.$ac_objext 8150echo "$lt_simple_link_test_code" >conftest.$ac_ext 8151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8152_lt_linker_boilerplate=`cat conftest.err` 8153$RM -r conftest* 8154 8155 8156## CAVEAT EMPTOR: 8157## There is no encapsulation within the following macros, do not change 8158## the running order or otherwise move them around unless you know exactly 8159## what you are doing... 8160if test -n "$compiler"; then 8161 8162lt_prog_compiler_no_builtin_flag= 8163 8164if test "$GCC" = yes; then 8165 case $cc_basename in 8166 nvcc*) 8167 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8168 *) 8169 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8170 esac 8171 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8173$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8174if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 lt_cv_prog_compiler_rtti_exceptions=no 8178 ac_outfile=conftest.$ac_objext 8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8180 lt_compiler_flag="-fno-rtti -fno-exceptions" 8181 # Insert the option either (1) after the last *FLAGS variable, or 8182 # (2) before a word containing "conftest.", or (3) at the end. 8183 # Note that $ac_compile itself does not contain backslashes and begins 8184 # with a dollar sign (not a hyphen), so the echo should work correctly. 8185 # The option is referenced via a variable to avoid confusing sed. 8186 lt_compile=`echo "$ac_compile" | $SED \ 8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8189 -e 's:$: $lt_compiler_flag:'` 8190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8191 (eval "$lt_compile" 2>conftest.err) 8192 ac_status=$? 8193 cat conftest.err >&5 8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8195 if (exit $ac_status) && test -s "$ac_outfile"; then 8196 # The compiler can only warn and ignore the option if not recognized 8197 # So say no if there are warnings other than the usual output. 8198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8201 lt_cv_prog_compiler_rtti_exceptions=yes 8202 fi 8203 fi 8204 $RM conftest* 8205 8206fi 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8208$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8209 8210if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8211 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8212else 8213 : 8214fi 8215 8216fi 8217 8218 8219 8220 8221 8222 8223 lt_prog_compiler_wl= 8224lt_prog_compiler_pic= 8225lt_prog_compiler_static= 8226 8227 8228 if test "$GCC" = yes; then 8229 lt_prog_compiler_wl='-Wl,' 8230 lt_prog_compiler_static='-static' 8231 8232 case $host_os in 8233 aix*) 8234 # All AIX code is PIC. 8235 if test "$host_cpu" = ia64; then 8236 # AIX 5 now supports IA64 processor 8237 lt_prog_compiler_static='-Bstatic' 8238 fi 8239 ;; 8240 8241 amigaos*) 8242 case $host_cpu in 8243 powerpc) 8244 # see comment about AmigaOS4 .so support 8245 lt_prog_compiler_pic='-fPIC' 8246 ;; 8247 m68k) 8248 # FIXME: we need at least 68020 code to build shared libraries, but 8249 # adding the `-m68020' flag to GCC prevents building anything better, 8250 # like `-m68040'. 8251 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8252 ;; 8253 esac 8254 ;; 8255 8256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8257 # PIC is the default for these OSes. 8258 ;; 8259 8260 mingw* | cygwin* | pw32* | os2* | cegcc*) 8261 # This hack is so that the source file can tell whether it is being 8262 # built for inclusion in a dll (and should export symbols for example). 8263 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8264 # (--disable-auto-import) libraries 8265 lt_prog_compiler_pic='-DDLL_EXPORT' 8266 ;; 8267 8268 darwin* | rhapsody*) 8269 # PIC is the default on this platform 8270 # Common symbols not allowed in MH_DYLIB files 8271 lt_prog_compiler_pic='-fno-common' 8272 ;; 8273 8274 haiku*) 8275 # PIC is the default for Haiku. 8276 # The "-static" flag exists, but is broken. 8277 lt_prog_compiler_static= 8278 ;; 8279 8280 hpux*) 8281 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8282 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8283 # sets the default TLS model and affects inlining. 8284 case $host_cpu in 8285 hppa*64*) 8286 # +Z the default 8287 ;; 8288 *) 8289 lt_prog_compiler_pic='-fPIC' 8290 ;; 8291 esac 8292 ;; 8293 8294 interix[3-9]*) 8295 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8296 # Instead, we relocate shared libraries at runtime. 8297 ;; 8298 8299 msdosdjgpp*) 8300 # Just because we use GCC doesn't mean we suddenly get shared libraries 8301 # on systems that don't support them. 8302 lt_prog_compiler_can_build_shared=no 8303 enable_shared=no 8304 ;; 8305 8306 *nto* | *qnx*) 8307 # QNX uses GNU C++, but need to define -shared option too, otherwise 8308 # it will coredump. 8309 lt_prog_compiler_pic='-fPIC -shared' 8310 ;; 8311 8312 sysv4*MP*) 8313 if test -d /usr/nec; then 8314 lt_prog_compiler_pic=-Kconform_pic 8315 fi 8316 ;; 8317 8318 *) 8319 lt_prog_compiler_pic='-fPIC' 8320 ;; 8321 esac 8322 8323 case $cc_basename in 8324 nvcc*) # Cuda Compiler Driver 2.2 8325 lt_prog_compiler_wl='-Xlinker ' 8326 if test -n "$lt_prog_compiler_pic"; then 8327 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8328 fi 8329 ;; 8330 esac 8331 else 8332 # PORTME Check for flag to pass linker flags through the system compiler. 8333 case $host_os in 8334 aix*) 8335 lt_prog_compiler_wl='-Wl,' 8336 if test "$host_cpu" = ia64; then 8337 # AIX 5 now supports IA64 processor 8338 lt_prog_compiler_static='-Bstatic' 8339 else 8340 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8341 fi 8342 ;; 8343 8344 mingw* | cygwin* | pw32* | os2* | cegcc*) 8345 # This hack is so that the source file can tell whether it is being 8346 # built for inclusion in a dll (and should export symbols for example). 8347 lt_prog_compiler_pic='-DDLL_EXPORT' 8348 ;; 8349 8350 hpux9* | hpux10* | hpux11*) 8351 lt_prog_compiler_wl='-Wl,' 8352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8353 # not for PA HP-UX. 8354 case $host_cpu in 8355 hppa*64*|ia64*) 8356 # +Z the default 8357 ;; 8358 *) 8359 lt_prog_compiler_pic='+Z' 8360 ;; 8361 esac 8362 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8363 lt_prog_compiler_static='${wl}-a ${wl}archive' 8364 ;; 8365 8366 irix5* | irix6* | nonstopux*) 8367 lt_prog_compiler_wl='-Wl,' 8368 # PIC (with -KPIC) is the default. 8369 lt_prog_compiler_static='-non_shared' 8370 ;; 8371 8372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8373 case $cc_basename in 8374 # old Intel for x86_64 which still supported -KPIC. 8375 ecc*) 8376 lt_prog_compiler_wl='-Wl,' 8377 lt_prog_compiler_pic='-KPIC' 8378 lt_prog_compiler_static='-static' 8379 ;; 8380 # icc used to be incompatible with GCC. 8381 # ICC 10 doesn't accept -KPIC any more. 8382 icc* | ifort*) 8383 lt_prog_compiler_wl='-Wl,' 8384 lt_prog_compiler_pic='-fPIC' 8385 lt_prog_compiler_static='-static' 8386 ;; 8387 # Lahey Fortran 8.1. 8388 lf95*) 8389 lt_prog_compiler_wl='-Wl,' 8390 lt_prog_compiler_pic='--shared' 8391 lt_prog_compiler_static='--static' 8392 ;; 8393 nagfor*) 8394 # NAG Fortran compiler 8395 lt_prog_compiler_wl='-Wl,-Wl,,' 8396 lt_prog_compiler_pic='-PIC' 8397 lt_prog_compiler_static='-Bstatic' 8398 ;; 8399 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8400 # Portland Group compilers (*not* the Pentium gcc compiler, 8401 # which looks to be a dead project) 8402 lt_prog_compiler_wl='-Wl,' 8403 lt_prog_compiler_pic='-fpic' 8404 lt_prog_compiler_static='-Bstatic' 8405 ;; 8406 ccc*) 8407 lt_prog_compiler_wl='-Wl,' 8408 # All Alpha code is PIC. 8409 lt_prog_compiler_static='-non_shared' 8410 ;; 8411 xl* | bgxl* | bgf* | mpixl*) 8412 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8413 lt_prog_compiler_wl='-Wl,' 8414 lt_prog_compiler_pic='-qpic' 8415 lt_prog_compiler_static='-qstaticlink' 8416 ;; 8417 *) 8418 case `$CC -V 2>&1 | sed 5q` in 8419 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8420 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8421 lt_prog_compiler_pic='-KPIC' 8422 lt_prog_compiler_static='-Bstatic' 8423 lt_prog_compiler_wl='' 8424 ;; 8425 *Sun\ F* | *Sun*Fortran*) 8426 lt_prog_compiler_pic='-KPIC' 8427 lt_prog_compiler_static='-Bstatic' 8428 lt_prog_compiler_wl='-Qoption ld ' 8429 ;; 8430 *Sun\ C*) 8431 # Sun C 5.9 8432 lt_prog_compiler_pic='-KPIC' 8433 lt_prog_compiler_static='-Bstatic' 8434 lt_prog_compiler_wl='-Wl,' 8435 ;; 8436 *Intel*\ [CF]*Compiler*) 8437 lt_prog_compiler_wl='-Wl,' 8438 lt_prog_compiler_pic='-fPIC' 8439 lt_prog_compiler_static='-static' 8440 ;; 8441 *Portland\ Group*) 8442 lt_prog_compiler_wl='-Wl,' 8443 lt_prog_compiler_pic='-fpic' 8444 lt_prog_compiler_static='-Bstatic' 8445 ;; 8446 esac 8447 ;; 8448 esac 8449 ;; 8450 8451 newsos6) 8452 lt_prog_compiler_pic='-KPIC' 8453 lt_prog_compiler_static='-Bstatic' 8454 ;; 8455 8456 *nto* | *qnx*) 8457 # QNX uses GNU C++, but need to define -shared option too, otherwise 8458 # it will coredump. 8459 lt_prog_compiler_pic='-fPIC -shared' 8460 ;; 8461 8462 osf3* | osf4* | osf5*) 8463 lt_prog_compiler_wl='-Wl,' 8464 # All OSF/1 code is PIC. 8465 lt_prog_compiler_static='-non_shared' 8466 ;; 8467 8468 rdos*) 8469 lt_prog_compiler_static='-non_shared' 8470 ;; 8471 8472 solaris*) 8473 lt_prog_compiler_pic='-KPIC' 8474 lt_prog_compiler_static='-Bstatic' 8475 case $cc_basename in 8476 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8477 lt_prog_compiler_wl='-Qoption ld ';; 8478 *) 8479 lt_prog_compiler_wl='-Wl,';; 8480 esac 8481 ;; 8482 8483 sunos4*) 8484 lt_prog_compiler_wl='-Qoption ld ' 8485 lt_prog_compiler_pic='-PIC' 8486 lt_prog_compiler_static='-Bstatic' 8487 ;; 8488 8489 sysv4 | sysv4.2uw2* | sysv4.3*) 8490 lt_prog_compiler_wl='-Wl,' 8491 lt_prog_compiler_pic='-KPIC' 8492 lt_prog_compiler_static='-Bstatic' 8493 ;; 8494 8495 sysv4*MP*) 8496 if test -d /usr/nec ;then 8497 lt_prog_compiler_pic='-Kconform_pic' 8498 lt_prog_compiler_static='-Bstatic' 8499 fi 8500 ;; 8501 8502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8503 lt_prog_compiler_wl='-Wl,' 8504 lt_prog_compiler_pic='-KPIC' 8505 lt_prog_compiler_static='-Bstatic' 8506 ;; 8507 8508 unicos*) 8509 lt_prog_compiler_wl='-Wl,' 8510 lt_prog_compiler_can_build_shared=no 8511 ;; 8512 8513 uts4*) 8514 lt_prog_compiler_pic='-pic' 8515 lt_prog_compiler_static='-Bstatic' 8516 ;; 8517 8518 *) 8519 lt_prog_compiler_can_build_shared=no 8520 ;; 8521 esac 8522 fi 8523 8524case $host_os in 8525 # For platforms which do not support PIC, -DPIC is meaningless: 8526 *djgpp*) 8527 lt_prog_compiler_pic= 8528 ;; 8529 *) 8530 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 8531 ;; 8532esac 8533 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8535$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8536if ${lt_cv_prog_compiler_pic+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8540fi 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8542$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8543lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8544 8545# 8546# Check to make sure the PIC flag actually works. 8547# 8548if test -n "$lt_prog_compiler_pic"; then 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8550$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8551if ${lt_cv_prog_compiler_pic_works+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 lt_cv_prog_compiler_pic_works=no 8555 ac_outfile=conftest.$ac_objext 8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8557 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" 8558 # Insert the option either (1) after the last *FLAGS variable, or 8559 # (2) before a word containing "conftest.", or (3) at the end. 8560 # Note that $ac_compile itself does not contain backslashes and begins 8561 # with a dollar sign (not a hyphen), so the echo should work correctly. 8562 # The option is referenced via a variable to avoid confusing sed. 8563 lt_compile=`echo "$ac_compile" | $SED \ 8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8566 -e 's:$: $lt_compiler_flag:'` 8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8568 (eval "$lt_compile" 2>conftest.err) 8569 ac_status=$? 8570 cat conftest.err >&5 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 if (exit $ac_status) && test -s "$ac_outfile"; then 8573 # The compiler can only warn and ignore the option if not recognized 8574 # So say no if there are warnings other than the usual output. 8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8578 lt_cv_prog_compiler_pic_works=yes 8579 fi 8580 fi 8581 $RM conftest* 8582 8583fi 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8585$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8586 8587if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8588 case $lt_prog_compiler_pic in 8589 "" | " "*) ;; 8590 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8591 esac 8592else 8593 lt_prog_compiler_pic= 8594 lt_prog_compiler_can_build_shared=no 8595fi 8596 8597fi 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609# 8610# Check to make sure the static flag actually works. 8611# 8612wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8614$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8615if ${lt_cv_prog_compiler_static_works+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617else 8618 lt_cv_prog_compiler_static_works=no 8619 save_LDFLAGS="$LDFLAGS" 8620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8621 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8623 # The linker can only warn and ignore the option if not recognized 8624 # So say no if there are warnings 8625 if test -s conftest.err; then 8626 # Append any errors to the config.log. 8627 cat conftest.err 1>&5 8628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8630 if diff conftest.exp conftest.er2 >/dev/null; then 8631 lt_cv_prog_compiler_static_works=yes 8632 fi 8633 else 8634 lt_cv_prog_compiler_static_works=yes 8635 fi 8636 fi 8637 $RM -r conftest* 8638 LDFLAGS="$save_LDFLAGS" 8639 8640fi 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8642$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8643 8644if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8645 : 8646else 8647 lt_prog_compiler_static= 8648fi 8649 8650 8651 8652 8653 8654 8655 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8657$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8658if ${lt_cv_prog_compiler_c_o+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 lt_cv_prog_compiler_c_o=no 8662 $RM -r conftest 2>/dev/null 8663 mkdir conftest 8664 cd conftest 8665 mkdir out 8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8667 8668 lt_compiler_flag="-o out/conftest2.$ac_objext" 8669 # Insert the option either (1) after the last *FLAGS variable, or 8670 # (2) before a word containing "conftest.", or (3) at the end. 8671 # Note that $ac_compile itself does not contain backslashes and begins 8672 # with a dollar sign (not a hyphen), so the echo should work correctly. 8673 lt_compile=`echo "$ac_compile" | $SED \ 8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8676 -e 's:$: $lt_compiler_flag:'` 8677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8678 (eval "$lt_compile" 2>out/conftest.err) 8679 ac_status=$? 8680 cat out/conftest.err >&5 8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8682 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8683 then 8684 # The compiler can only warn and ignore the option if not recognized 8685 # So say no if there are warnings 8686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8689 lt_cv_prog_compiler_c_o=yes 8690 fi 8691 fi 8692 chmod u+w . 2>&5 8693 $RM conftest* 8694 # SGI C++ compiler will create directory out/ii_files/ for 8695 # template instantiation 8696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8697 $RM out/* && rmdir out 8698 cd .. 8699 $RM -r conftest 8700 $RM conftest* 8701 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8704$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8705 8706 8707 8708 8709 8710 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8712$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8713if ${lt_cv_prog_compiler_c_o+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 lt_cv_prog_compiler_c_o=no 8717 $RM -r conftest 2>/dev/null 8718 mkdir conftest 8719 cd conftest 8720 mkdir out 8721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8722 8723 lt_compiler_flag="-o out/conftest2.$ac_objext" 8724 # Insert the option either (1) after the last *FLAGS variable, or 8725 # (2) before a word containing "conftest.", or (3) at the end. 8726 # Note that $ac_compile itself does not contain backslashes and begins 8727 # with a dollar sign (not a hyphen), so the echo should work correctly. 8728 lt_compile=`echo "$ac_compile" | $SED \ 8729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8731 -e 's:$: $lt_compiler_flag:'` 8732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8733 (eval "$lt_compile" 2>out/conftest.err) 8734 ac_status=$? 8735 cat out/conftest.err >&5 8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8737 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8738 then 8739 # The compiler can only warn and ignore the option if not recognized 8740 # So say no if there are warnings 8741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8744 lt_cv_prog_compiler_c_o=yes 8745 fi 8746 fi 8747 chmod u+w . 2>&5 8748 $RM conftest* 8749 # SGI C++ compiler will create directory out/ii_files/ for 8750 # template instantiation 8751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8752 $RM out/* && rmdir out 8753 cd .. 8754 $RM -r conftest 8755 $RM conftest* 8756 8757fi 8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8759$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8760 8761 8762 8763 8764hard_links="nottested" 8765if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8766 # do not overwrite the value of need_locks provided by the user 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8768$as_echo_n "checking if we can lock with hard links... " >&6; } 8769 hard_links=yes 8770 $RM conftest* 8771 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8772 touch conftest.a 8773 ln conftest.a conftest.b 2>&5 || hard_links=no 8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8776$as_echo "$hard_links" >&6; } 8777 if test "$hard_links" = no; then 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8779$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8780 need_locks=warn 8781 fi 8782else 8783 need_locks=no 8784fi 8785 8786 8787 8788 8789 8790 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8792$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8793 8794 runpath_var= 8795 allow_undefined_flag= 8796 always_export_symbols=no 8797 archive_cmds= 8798 archive_expsym_cmds= 8799 compiler_needs_object=no 8800 enable_shared_with_static_runtimes=no 8801 export_dynamic_flag_spec= 8802 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8803 hardcode_automatic=no 8804 hardcode_direct=no 8805 hardcode_direct_absolute=no 8806 hardcode_libdir_flag_spec= 8807 hardcode_libdir_separator= 8808 hardcode_minus_L=no 8809 hardcode_shlibpath_var=unsupported 8810 inherit_rpath=no 8811 link_all_deplibs=unknown 8812 module_cmds= 8813 module_expsym_cmds= 8814 old_archive_from_new_cmds= 8815 old_archive_from_expsyms_cmds= 8816 thread_safe_flag_spec= 8817 whole_archive_flag_spec= 8818 # include_expsyms should be a list of space-separated symbols to be *always* 8819 # included in the symbol list 8820 include_expsyms= 8821 # exclude_expsyms can be an extended regexp of symbols to exclude 8822 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8823 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8824 # as well as any symbol that contains `d'. 8825 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8826 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8827 # platforms (ab)use it in PIC code, but their linkers get confused if 8828 # the symbol is explicitly referenced. Since portable code cannot 8829 # rely on this symbol name, it's probably fine to never include it in 8830 # preloaded symbol tables. 8831 # Exclude shared library initialization/finalization symbols. 8832 extract_expsyms_cmds= 8833 8834 case $host_os in 8835 cygwin* | mingw* | pw32* | cegcc*) 8836 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8837 # When not using gcc, we currently assume that we are using 8838 # Microsoft Visual C++. 8839 if test "$GCC" != yes; then 8840 with_gnu_ld=no 8841 fi 8842 ;; 8843 interix*) 8844 # we just hope/assume this is gcc and not c89 (= MSVC++) 8845 with_gnu_ld=yes 8846 ;; 8847 openbsd*) 8848 with_gnu_ld=no 8849 ;; 8850 linux* | k*bsd*-gnu | gnu*) 8851 link_all_deplibs=no 8852 ;; 8853 esac 8854 8855 ld_shlibs=yes 8856 8857 # On some targets, GNU ld is compatible enough with the native linker 8858 # that we're better off using the native interface for both. 8859 lt_use_gnu_ld_interface=no 8860 if test "$with_gnu_ld" = yes; then 8861 case $host_os in 8862 aix*) 8863 # The AIX port of GNU ld has always aspired to compatibility 8864 # with the native linker. However, as the warning in the GNU ld 8865 # block says, versions before 2.19.5* couldn't really create working 8866 # shared libraries, regardless of the interface used. 8867 case `$LD -v 2>&1` in 8868 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8869 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8870 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8871 *) 8872 lt_use_gnu_ld_interface=yes 8873 ;; 8874 esac 8875 ;; 8876 *) 8877 lt_use_gnu_ld_interface=yes 8878 ;; 8879 esac 8880 fi 8881 8882 if test "$lt_use_gnu_ld_interface" = yes; then 8883 # If archive_cmds runs LD, not CC, wlarc should be empty 8884 wlarc='${wl}' 8885 8886 # Set some defaults for GNU ld with shared library support. These 8887 # are reset later if shared libraries are not supported. Putting them 8888 # here allows them to be overridden if necessary. 8889 runpath_var=LD_RUN_PATH 8890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8891 export_dynamic_flag_spec='${wl}--export-dynamic' 8892 # ancient GNU ld didn't support --whole-archive et. al. 8893 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8894 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8895 else 8896 whole_archive_flag_spec= 8897 fi 8898 supports_anon_versioning=no 8899 case `$LD -v 2>&1` in 8900 *GNU\ gold*) supports_anon_versioning=yes ;; 8901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8904 *\ 2.11.*) ;; # other 2.11 versions 8905 *) supports_anon_versioning=yes ;; 8906 esac 8907 8908 # See if GNU ld supports shared libraries. 8909 case $host_os in 8910 aix[3-9]*) 8911 # On AIX/PPC, the GNU linker is very broken 8912 if test "$host_cpu" != ia64; then 8913 ld_shlibs=no 8914 cat <<_LT_EOF 1>&2 8915 8916*** Warning: the GNU linker, at least up to release 2.19, is reported 8917*** to be unable to reliably create shared libraries on AIX. 8918*** Therefore, libtool is disabling shared libraries support. If you 8919*** really care for shared libraries, you may want to install binutils 8920*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8921*** You will then need to restart the configuration process. 8922 8923_LT_EOF 8924 fi 8925 ;; 8926 8927 amigaos*) 8928 case $host_cpu in 8929 powerpc) 8930 # see comment about AmigaOS4 .so support 8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8932 archive_expsym_cmds='' 8933 ;; 8934 m68k) 8935 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)' 8936 hardcode_libdir_flag_spec='-L$libdir' 8937 hardcode_minus_L=yes 8938 ;; 8939 esac 8940 ;; 8941 8942 beos*) 8943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8944 allow_undefined_flag=unsupported 8945 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8946 # support --undefined. This deserves some investigation. FIXME 8947 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8948 else 8949 ld_shlibs=no 8950 fi 8951 ;; 8952 8953 cygwin* | mingw* | pw32* | cegcc*) 8954 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8955 # as there is no search path for DLLs. 8956 hardcode_libdir_flag_spec='-L$libdir' 8957 export_dynamic_flag_spec='${wl}--export-all-symbols' 8958 allow_undefined_flag=unsupported 8959 always_export_symbols=no 8960 enable_shared_with_static_runtimes=yes 8961 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' 8962 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8963 8964 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8966 # If the export-symbols file already is a .def file (1st line 8967 # is EXPORTS), use it as is; otherwise, prepend... 8968 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8969 cp $export_symbols $output_objdir/$soname.def; 8970 else 8971 echo EXPORTS > $output_objdir/$soname.def; 8972 cat $export_symbols >> $output_objdir/$soname.def; 8973 fi~ 8974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8975 else 8976 ld_shlibs=no 8977 fi 8978 ;; 8979 8980 haiku*) 8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8982 link_all_deplibs=yes 8983 ;; 8984 8985 interix[3-9]*) 8986 hardcode_direct=no 8987 hardcode_shlibpath_var=no 8988 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8989 export_dynamic_flag_spec='${wl}-E' 8990 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8991 # Instead, shared libraries are loaded at an image base (0x10000000 by 8992 # default) and relocated if they conflict, which is a slow very memory 8993 # consuming and fragmenting process. To avoid this, we pick a random, 8994 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8995 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8996 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8997 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' 8998 ;; 8999 9000 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9001 tmp_diet=no 9002 if test "$host_os" = linux-dietlibc; then 9003 case $cc_basename in 9004 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9005 esac 9006 fi 9007 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9008 && test "$tmp_diet" = no 9009 then 9010 tmp_addflag=' $pic_flag' 9011 tmp_sharedflag='-shared' 9012 case $cc_basename,$host_cpu in 9013 pgcc*) # Portland Group C compiler 9014 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' 9015 tmp_addflag=' $pic_flag' 9016 ;; 9017 pgf77* | pgf90* | pgf95* | pgfortran*) 9018 # Portland Group f77 and f90 compilers 9019 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' 9020 tmp_addflag=' $pic_flag -Mnomain' ;; 9021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9022 tmp_addflag=' -i_dynamic' ;; 9023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9024 tmp_addflag=' -i_dynamic -nofor_main' ;; 9025 ifc* | ifort*) # Intel Fortran compiler 9026 tmp_addflag=' -nofor_main' ;; 9027 lf95*) # Lahey Fortran 8.1 9028 whole_archive_flag_spec= 9029 tmp_sharedflag='--shared' ;; 9030 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9031 tmp_sharedflag='-qmkshrobj' 9032 tmp_addflag= ;; 9033 nvcc*) # Cuda Compiler Driver 2.2 9034 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' 9035 compiler_needs_object=yes 9036 ;; 9037 esac 9038 case `$CC -V 2>&1 | sed 5q` in 9039 *Sun\ C*) # Sun C 5.9 9040 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' 9041 compiler_needs_object=yes 9042 tmp_sharedflag='-G' ;; 9043 *Sun\ F*) # Sun Fortran 8.3 9044 tmp_sharedflag='-G' ;; 9045 esac 9046 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9047 9048 if test "x$supports_anon_versioning" = xyes; then 9049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9051 echo "local: *; };" >> $output_objdir/$libname.ver~ 9052 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9053 fi 9054 9055 case $cc_basename in 9056 xlf* | bgf* | bgxlf* | mpixlf*) 9057 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9058 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9060 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9061 if test "x$supports_anon_versioning" = xyes; then 9062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9064 echo "local: *; };" >> $output_objdir/$libname.ver~ 9065 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9066 fi 9067 ;; 9068 esac 9069 else 9070 ld_shlibs=no 9071 fi 9072 ;; 9073 9074 netbsd* | netbsdelf*-gnu) 9075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9076 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9077 wlarc= 9078 else 9079 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9080 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9081 fi 9082 ;; 9083 9084 solaris*) 9085 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9086 ld_shlibs=no 9087 cat <<_LT_EOF 1>&2 9088 9089*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9090*** create shared libraries on Solaris systems. Therefore, libtool 9091*** is disabling shared libraries support. We urge you to upgrade GNU 9092*** binutils to release 2.9.1 or newer. Another option is to modify 9093*** your PATH or compiler configuration so that the native linker is 9094*** used, and then restart. 9095 9096_LT_EOF 9097 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9099 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9100 else 9101 ld_shlibs=no 9102 fi 9103 ;; 9104 9105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9106 case `$LD -v 2>&1` in 9107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9108 ld_shlibs=no 9109 cat <<_LT_EOF 1>&2 9110 9111*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9112*** reliably create shared libraries on SCO systems. Therefore, libtool 9113*** is disabling shared libraries support. We urge you to upgrade GNU 9114*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9115*** your PATH or compiler configuration so that the native linker is 9116*** used, and then restart. 9117 9118_LT_EOF 9119 ;; 9120 *) 9121 # For security reasons, it is highly recommended that you always 9122 # use absolute paths for naming shared libraries, and exclude the 9123 # DT_RUNPATH tag from executables and libraries. But doing so 9124 # requires that you compile everything twice, which is a pain. 9125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9129 else 9130 ld_shlibs=no 9131 fi 9132 ;; 9133 esac 9134 ;; 9135 9136 sunos4*) 9137 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9138 wlarc= 9139 hardcode_direct=yes 9140 hardcode_shlibpath_var=no 9141 ;; 9142 9143 *) 9144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9146 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9147 else 9148 ld_shlibs=no 9149 fi 9150 ;; 9151 esac 9152 9153 if test "$ld_shlibs" = no; then 9154 runpath_var= 9155 hardcode_libdir_flag_spec= 9156 export_dynamic_flag_spec= 9157 whole_archive_flag_spec= 9158 fi 9159 else 9160 # PORTME fill in a description of your system's linker (not GNU ld) 9161 case $host_os in 9162 aix3*) 9163 allow_undefined_flag=unsupported 9164 always_export_symbols=yes 9165 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' 9166 # Note: this linker hardcodes the directories in LIBPATH if there 9167 # are no directories specified by -L. 9168 hardcode_minus_L=yes 9169 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9170 # Neither direct hardcoding nor static linking is supported with a 9171 # broken collect2. 9172 hardcode_direct=unsupported 9173 fi 9174 ;; 9175 9176 aix[4-9]*) 9177 if test "$host_cpu" = ia64; then 9178 # On IA64, the linker does run time linking by default, so we don't 9179 # have to do anything special. 9180 aix_use_runtimelinking=no 9181 exp_sym_flag='-Bexport' 9182 no_entry_flag="" 9183 else 9184 # If we're using GNU nm, then we don't want the "-C" option. 9185 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9186 # Also, AIX nm treats weak defined symbols like other global 9187 # defined symbols, whereas GNU nm marks them as "W". 9188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9189 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9190 else 9191 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9192 fi 9193 aix_use_runtimelinking=no 9194 9195 # Test if we are trying to use run time linking or normal 9196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9197 # need to do runtime linking. 9198 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9199 for ld_flag in $LDFLAGS; do 9200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9201 aix_use_runtimelinking=yes 9202 break 9203 fi 9204 done 9205 ;; 9206 esac 9207 9208 exp_sym_flag='-bexport' 9209 no_entry_flag='-bnoentry' 9210 fi 9211 9212 # When large executables or shared objects are built, AIX ld can 9213 # have problems creating the table of contents. If linking a library 9214 # or program results in "error TOC overflow" add -mminimal-toc to 9215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9217 9218 archive_cmds='' 9219 hardcode_direct=yes 9220 hardcode_direct_absolute=yes 9221 hardcode_libdir_separator=':' 9222 link_all_deplibs=yes 9223 file_list_spec='${wl}-f,' 9224 9225 if test "$GCC" = yes; then 9226 case $host_os in aix4.[012]|aix4.[012].*) 9227 # We only want to do this on AIX 4.2 and lower, the check 9228 # below for broken collect2 doesn't work under 4.3+ 9229 collect2name=`${CC} -print-prog-name=collect2` 9230 if test -f "$collect2name" && 9231 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9232 then 9233 # We have reworked collect2 9234 : 9235 else 9236 # We have old collect2 9237 hardcode_direct=unsupported 9238 # It fails to find uninstalled libraries when the uninstalled 9239 # path is not listed in the libpath. Setting hardcode_minus_L 9240 # to unsupported forces relinking 9241 hardcode_minus_L=yes 9242 hardcode_libdir_flag_spec='-L$libdir' 9243 hardcode_libdir_separator= 9244 fi 9245 ;; 9246 esac 9247 shared_flag='-shared' 9248 if test "$aix_use_runtimelinking" = yes; then 9249 shared_flag="$shared_flag "'${wl}-G' 9250 fi 9251 link_all_deplibs=no 9252 else 9253 # not using gcc 9254 if test "$host_cpu" = ia64; then 9255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9256 # chokes on -Wl,-G. The following line is correct: 9257 shared_flag='-G' 9258 else 9259 if test "$aix_use_runtimelinking" = yes; then 9260 shared_flag='${wl}-G' 9261 else 9262 shared_flag='${wl}-bM:SRE' 9263 fi 9264 fi 9265 fi 9266 9267 export_dynamic_flag_spec='${wl}-bexpall' 9268 # It seems that -bexpall does not export symbols beginning with 9269 # underscore (_), so it is better to generate a list of symbols to export. 9270 always_export_symbols=yes 9271 if test "$aix_use_runtimelinking" = yes; then 9272 # Warning - without using the other runtime loading flags (-brtl), 9273 # -berok will link without error, but may produce a broken library. 9274 allow_undefined_flag='-berok' 9275 # Determine the default libpath from the value encoded in an 9276 # empty executable. 9277 if test "${lt_cv_aix_libpath+set}" = set; then 9278 aix_libpath=$lt_cv_aix_libpath 9279else 9280 if ${lt_cv_aix_libpath_+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285 9286int 9287main () 9288{ 9289 9290 ; 9291 return 0; 9292} 9293_ACEOF 9294if ac_fn_c_try_link "$LINENO"; then : 9295 9296 lt_aix_libpath_sed=' 9297 /Import File Strings/,/^$/ { 9298 /^0/ { 9299 s/^0 *\([^ ]*\) *$/\1/ 9300 p 9301 } 9302 }' 9303 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9304 # Check for a 64-bit object if we didn't find anything. 9305 if test -z "$lt_cv_aix_libpath_"; then 9306 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9307 fi 9308fi 9309rm -f core conftest.err conftest.$ac_objext \ 9310 conftest$ac_exeext conftest.$ac_ext 9311 if test -z "$lt_cv_aix_libpath_"; then 9312 lt_cv_aix_libpath_="/usr/lib:/lib" 9313 fi 9314 9315fi 9316 9317 aix_libpath=$lt_cv_aix_libpath_ 9318fi 9319 9320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9321 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9322 else 9323 if test "$host_cpu" = ia64; then 9324 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9325 allow_undefined_flag="-z nodefs" 9326 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" 9327 else 9328 # Determine the default libpath from the value encoded in an 9329 # empty executable. 9330 if test "${lt_cv_aix_libpath+set}" = set; then 9331 aix_libpath=$lt_cv_aix_libpath 9332else 9333 if ${lt_cv_aix_libpath_+:} false; then : 9334 $as_echo_n "(cached) " >&6 9335else 9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338 9339int 9340main () 9341{ 9342 9343 ; 9344 return 0; 9345} 9346_ACEOF 9347if ac_fn_c_try_link "$LINENO"; then : 9348 9349 lt_aix_libpath_sed=' 9350 /Import File Strings/,/^$/ { 9351 /^0/ { 9352 s/^0 *\([^ ]*\) *$/\1/ 9353 p 9354 } 9355 }' 9356 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9357 # Check for a 64-bit object if we didn't find anything. 9358 if test -z "$lt_cv_aix_libpath_"; then 9359 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9360 fi 9361fi 9362rm -f core conftest.err conftest.$ac_objext \ 9363 conftest$ac_exeext conftest.$ac_ext 9364 if test -z "$lt_cv_aix_libpath_"; then 9365 lt_cv_aix_libpath_="/usr/lib:/lib" 9366 fi 9367 9368fi 9369 9370 aix_libpath=$lt_cv_aix_libpath_ 9371fi 9372 9373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9374 # Warning - without using the other run time loading flags, 9375 # -berok will link without error, but may produce a broken library. 9376 no_undefined_flag=' ${wl}-bernotok' 9377 allow_undefined_flag=' ${wl}-berok' 9378 if test "$with_gnu_ld" = yes; then 9379 # We only use this code for GNU lds that support --whole-archive. 9380 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9381 else 9382 # Exported symbols can be pulled into shared objects from archives 9383 whole_archive_flag_spec='$convenience' 9384 fi 9385 archive_cmds_need_lc=yes 9386 # This is similar to how AIX traditionally builds its shared libraries. 9387 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9388 fi 9389 fi 9390 ;; 9391 9392 amigaos*) 9393 case $host_cpu in 9394 powerpc) 9395 # see comment about AmigaOS4 .so support 9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9397 archive_expsym_cmds='' 9398 ;; 9399 m68k) 9400 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)' 9401 hardcode_libdir_flag_spec='-L$libdir' 9402 hardcode_minus_L=yes 9403 ;; 9404 esac 9405 ;; 9406 9407 bsdi[45]*) 9408 export_dynamic_flag_spec=-rdynamic 9409 ;; 9410 9411 cygwin* | mingw* | pw32* | cegcc*) 9412 # When not using gcc, we currently assume that we are using 9413 # Microsoft Visual C++. 9414 # hardcode_libdir_flag_spec is actually meaningless, as there is 9415 # no search path for DLLs. 9416 case $cc_basename in 9417 cl*) 9418 # Native MSVC 9419 hardcode_libdir_flag_spec=' ' 9420 allow_undefined_flag=unsupported 9421 always_export_symbols=yes 9422 file_list_spec='@' 9423 # Tell ltmain to make .lib files, not .a files. 9424 libext=lib 9425 # Tell ltmain to make .dll files, not .so files. 9426 shrext_cmds=".dll" 9427 # FIXME: Setting linknames here is a bad hack. 9428 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9429 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9430 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9431 else 9432 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9433 fi~ 9434 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9435 linknames=' 9436 # The linker will not automatically build a static lib if we build a DLL. 9437 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9438 enable_shared_with_static_runtimes=yes 9439 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9441 # Don't use ranlib 9442 old_postinstall_cmds='chmod 644 $oldlib' 9443 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9444 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9445 case $lt_outputfile in 9446 *.exe|*.EXE) ;; 9447 *) 9448 lt_outputfile="$lt_outputfile.exe" 9449 lt_tool_outputfile="$lt_tool_outputfile.exe" 9450 ;; 9451 esac~ 9452 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9453 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9454 $RM "$lt_outputfile.manifest"; 9455 fi' 9456 ;; 9457 *) 9458 # Assume MSVC wrapper 9459 hardcode_libdir_flag_spec=' ' 9460 allow_undefined_flag=unsupported 9461 # Tell ltmain to make .lib files, not .a files. 9462 libext=lib 9463 # Tell ltmain to make .dll files, not .so files. 9464 shrext_cmds=".dll" 9465 # FIXME: Setting linknames here is a bad hack. 9466 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9467 # The linker will automatically build a .lib file if we build a DLL. 9468 old_archive_from_new_cmds='true' 9469 # FIXME: Should let the user specify the lib program. 9470 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9471 enable_shared_with_static_runtimes=yes 9472 ;; 9473 esac 9474 ;; 9475 9476 darwin* | rhapsody*) 9477 9478 9479 archive_cmds_need_lc=no 9480 hardcode_direct=no 9481 hardcode_automatic=yes 9482 hardcode_shlibpath_var=unsupported 9483 if test "$lt_cv_ld_force_load" = "yes"; then 9484 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\"`' 9485 9486 else 9487 whole_archive_flag_spec='' 9488 fi 9489 link_all_deplibs=yes 9490 allow_undefined_flag="$_lt_dar_allow_undefined" 9491 case $cc_basename in 9492 ifort*) _lt_dar_can_shared=yes ;; 9493 *) _lt_dar_can_shared=$GCC ;; 9494 esac 9495 if test "$_lt_dar_can_shared" = "yes"; then 9496 output_verbose_link_cmd=func_echo_all 9497 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9498 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9499 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}" 9500 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}" 9501 9502 else 9503 ld_shlibs=no 9504 fi 9505 9506 ;; 9507 9508 dgux*) 9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9510 hardcode_libdir_flag_spec='-L$libdir' 9511 hardcode_shlibpath_var=no 9512 ;; 9513 9514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9515 # support. Future versions do this automatically, but an explicit c++rt0.o 9516 # does not break anything, and helps significantly (at the cost of a little 9517 # extra space). 9518 freebsd2.2*) 9519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9520 hardcode_libdir_flag_spec='-R$libdir' 9521 hardcode_direct=yes 9522 hardcode_shlibpath_var=no 9523 ;; 9524 9525 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9526 freebsd2.*) 9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9528 hardcode_direct=yes 9529 hardcode_minus_L=yes 9530 hardcode_shlibpath_var=no 9531 ;; 9532 9533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9534 freebsd* | dragonfly*) 9535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9536 hardcode_libdir_flag_spec='-R$libdir' 9537 hardcode_direct=yes 9538 hardcode_shlibpath_var=no 9539 ;; 9540 9541 hpux9*) 9542 if test "$GCC" = yes; then 9543 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9544 else 9545 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9546 fi 9547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9548 hardcode_libdir_separator=: 9549 hardcode_direct=yes 9550 9551 # hardcode_minus_L: Not really in the search PATH, 9552 # but as the default location of the library. 9553 hardcode_minus_L=yes 9554 export_dynamic_flag_spec='${wl}-E' 9555 ;; 9556 9557 hpux10*) 9558 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9559 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9560 else 9561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9562 fi 9563 if test "$with_gnu_ld" = no; then 9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9565 hardcode_libdir_separator=: 9566 hardcode_direct=yes 9567 hardcode_direct_absolute=yes 9568 export_dynamic_flag_spec='${wl}-E' 9569 # hardcode_minus_L: Not really in the search PATH, 9570 # but as the default location of the library. 9571 hardcode_minus_L=yes 9572 fi 9573 ;; 9574 9575 hpux11*) 9576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9577 case $host_cpu in 9578 hppa*64*) 9579 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9580 ;; 9581 ia64*) 9582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9583 ;; 9584 *) 9585 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9586 ;; 9587 esac 9588 else 9589 case $host_cpu in 9590 hppa*64*) 9591 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9592 ;; 9593 ia64*) 9594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9595 ;; 9596 *) 9597 9598 # Older versions of the 11.00 compiler do not understand -b yet 9599 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9601$as_echo_n "checking if $CC understands -b... " >&6; } 9602if ${lt_cv_prog_compiler__b+:} false; then : 9603 $as_echo_n "(cached) " >&6 9604else 9605 lt_cv_prog_compiler__b=no 9606 save_LDFLAGS="$LDFLAGS" 9607 LDFLAGS="$LDFLAGS -b" 9608 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9610 # The linker can only warn and ignore the option if not recognized 9611 # So say no if there are warnings 9612 if test -s conftest.err; then 9613 # Append any errors to the config.log. 9614 cat conftest.err 1>&5 9615 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9617 if diff conftest.exp conftest.er2 >/dev/null; then 9618 lt_cv_prog_compiler__b=yes 9619 fi 9620 else 9621 lt_cv_prog_compiler__b=yes 9622 fi 9623 fi 9624 $RM -r conftest* 9625 LDFLAGS="$save_LDFLAGS" 9626 9627fi 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9629$as_echo "$lt_cv_prog_compiler__b" >&6; } 9630 9631if test x"$lt_cv_prog_compiler__b" = xyes; then 9632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9633else 9634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9635fi 9636 9637 ;; 9638 esac 9639 fi 9640 if test "$with_gnu_ld" = no; then 9641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9642 hardcode_libdir_separator=: 9643 9644 case $host_cpu in 9645 hppa*64*|ia64*) 9646 hardcode_direct=no 9647 hardcode_shlibpath_var=no 9648 ;; 9649 *) 9650 hardcode_direct=yes 9651 hardcode_direct_absolute=yes 9652 export_dynamic_flag_spec='${wl}-E' 9653 9654 # hardcode_minus_L: Not really in the search PATH, 9655 # but as the default location of the library. 9656 hardcode_minus_L=yes 9657 ;; 9658 esac 9659 fi 9660 ;; 9661 9662 irix5* | irix6* | nonstopux*) 9663 if test "$GCC" = yes; then 9664 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' 9665 # Try to use the -exported_symbol ld option, if it does not 9666 # work, assume that -exports_file does not work either and 9667 # implicitly export all symbols. 9668 # This should be the same for all languages, so no per-tag cache variable. 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9670$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9671if ${lt_cv_irix_exported_symbol+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 save_LDFLAGS="$LDFLAGS" 9675 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677/* end confdefs.h. */ 9678int foo (void) { return 0; } 9679_ACEOF 9680if ac_fn_c_try_link "$LINENO"; then : 9681 lt_cv_irix_exported_symbol=yes 9682else 9683 lt_cv_irix_exported_symbol=no 9684fi 9685rm -f core conftest.err conftest.$ac_objext \ 9686 conftest$ac_exeext conftest.$ac_ext 9687 LDFLAGS="$save_LDFLAGS" 9688fi 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9690$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9691 if test "$lt_cv_irix_exported_symbol" = yes; then 9692 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' 9693 fi 9694 else 9695 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' 9696 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' 9697 fi 9698 archive_cmds_need_lc='no' 9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9700 hardcode_libdir_separator=: 9701 inherit_rpath=yes 9702 link_all_deplibs=yes 9703 ;; 9704 9705 netbsd* | netbsdelf*-gnu) 9706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9708 else 9709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9710 fi 9711 hardcode_libdir_flag_spec='-R$libdir' 9712 hardcode_direct=yes 9713 hardcode_shlibpath_var=no 9714 ;; 9715 9716 newsos6) 9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9718 hardcode_direct=yes 9719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9720 hardcode_libdir_separator=: 9721 hardcode_shlibpath_var=no 9722 ;; 9723 9724 *nto* | *qnx*) 9725 ;; 9726 9727 openbsd*) 9728 if test -f /usr/libexec/ld.so; then 9729 hardcode_direct=yes 9730 hardcode_shlibpath_var=no 9731 hardcode_direct_absolute=yes 9732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9736 export_dynamic_flag_spec='${wl}-E' 9737 else 9738 case $host_os in 9739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_libdir_flag_spec='-R$libdir' 9742 ;; 9743 *) 9744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9746 ;; 9747 esac 9748 fi 9749 else 9750 ld_shlibs=no 9751 fi 9752 ;; 9753 9754 os2*) 9755 hardcode_libdir_flag_spec='-L$libdir' 9756 hardcode_minus_L=yes 9757 allow_undefined_flag=unsupported 9758 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9759 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9760 ;; 9761 9762 osf3*) 9763 if test "$GCC" = yes; then 9764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9765 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' 9766 else 9767 allow_undefined_flag=' -expect_unresolved \*' 9768 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' 9769 fi 9770 archive_cmds_need_lc='no' 9771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9772 hardcode_libdir_separator=: 9773 ;; 9774 9775 osf4* | osf5*) # as osf3* with the addition of -msym flag 9776 if test "$GCC" = yes; then 9777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9778 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' 9779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9780 else 9781 allow_undefined_flag=' -expect_unresolved \*' 9782 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' 9783 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~ 9784 $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' 9785 9786 # Both c and cxx compiler support -rpath directly 9787 hardcode_libdir_flag_spec='-rpath $libdir' 9788 fi 9789 archive_cmds_need_lc='no' 9790 hardcode_libdir_separator=: 9791 ;; 9792 9793 solaris*) 9794 no_undefined_flag=' -z defs' 9795 if test "$GCC" = yes; then 9796 wlarc='${wl}' 9797 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9799 $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' 9800 else 9801 case `$CC -V 2>&1` in 9802 *"Compilers 5.0"*) 9803 wlarc='' 9804 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9805 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9807 ;; 9808 *) 9809 wlarc='${wl}' 9810 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9812 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9813 ;; 9814 esac 9815 fi 9816 hardcode_libdir_flag_spec='-R$libdir' 9817 hardcode_shlibpath_var=no 9818 case $host_os in 9819 solaris2.[0-5] | solaris2.[0-5].*) ;; 9820 *) 9821 # The compiler driver will combine and reorder linker options, 9822 # but understands `-z linker_flag'. GCC discards it without `$wl', 9823 # but is careful enough not to reorder. 9824 # Supported since Solaris 2.6 (maybe 2.5.1?) 9825 if test "$GCC" = yes; then 9826 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9827 else 9828 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9829 fi 9830 ;; 9831 esac 9832 link_all_deplibs=yes 9833 ;; 9834 9835 sunos4*) 9836 if test "x$host_vendor" = xsequent; then 9837 # Use $CC to link under sequent, because it throws in some extra .o 9838 # files that make .init and .fini sections work. 9839 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9840 else 9841 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9842 fi 9843 hardcode_libdir_flag_spec='-L$libdir' 9844 hardcode_direct=yes 9845 hardcode_minus_L=yes 9846 hardcode_shlibpath_var=no 9847 ;; 9848 9849 sysv4) 9850 case $host_vendor in 9851 sni) 9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9853 hardcode_direct=yes # is this really true??? 9854 ;; 9855 siemens) 9856 ## LD is ld it makes a PLAMLIB 9857 ## CC just makes a GrossModule. 9858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9859 reload_cmds='$CC -r -o $output$reload_objs' 9860 hardcode_direct=no 9861 ;; 9862 motorola) 9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9864 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9865 ;; 9866 esac 9867 runpath_var='LD_RUN_PATH' 9868 hardcode_shlibpath_var=no 9869 ;; 9870 9871 sysv4.3*) 9872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9873 hardcode_shlibpath_var=no 9874 export_dynamic_flag_spec='-Bexport' 9875 ;; 9876 9877 sysv4*MP*) 9878 if test -d /usr/nec; then 9879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9880 hardcode_shlibpath_var=no 9881 runpath_var=LD_RUN_PATH 9882 hardcode_runpath_var=yes 9883 ld_shlibs=yes 9884 fi 9885 ;; 9886 9887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9888 no_undefined_flag='${wl}-z,text' 9889 archive_cmds_need_lc=no 9890 hardcode_shlibpath_var=no 9891 runpath_var='LD_RUN_PATH' 9892 9893 if test "$GCC" = yes; then 9894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9896 else 9897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9899 fi 9900 ;; 9901 9902 sysv5* | sco3.2v5* | sco5v6*) 9903 # Note: We can NOT use -z defs as we might desire, because we do not 9904 # link with -lc, and that would cause any symbols used from libc to 9905 # always be unresolved, which means just about no library would 9906 # ever link correctly. If we're not using GNU ld we use -z text 9907 # though, which does catch some bad symbols but isn't as heavy-handed 9908 # as -z defs. 9909 no_undefined_flag='${wl}-z,text' 9910 allow_undefined_flag='${wl}-z,nodefs' 9911 archive_cmds_need_lc=no 9912 hardcode_shlibpath_var=no 9913 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9914 hardcode_libdir_separator=':' 9915 link_all_deplibs=yes 9916 export_dynamic_flag_spec='${wl}-Bexport' 9917 runpath_var='LD_RUN_PATH' 9918 9919 if test "$GCC" = yes; then 9920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9922 else 9923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9925 fi 9926 ;; 9927 9928 uts4*) 9929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9930 hardcode_libdir_flag_spec='-L$libdir' 9931 hardcode_shlibpath_var=no 9932 ;; 9933 9934 *) 9935 ld_shlibs=no 9936 ;; 9937 esac 9938 9939 if test x$host_vendor = xsni; then 9940 case $host in 9941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9942 export_dynamic_flag_spec='${wl}-Blargedynsym' 9943 ;; 9944 esac 9945 fi 9946 fi 9947 9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9949$as_echo "$ld_shlibs" >&6; } 9950test "$ld_shlibs" = no && can_build_shared=no 9951 9952with_gnu_ld=$with_gnu_ld 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968# 9969# Do we need to explicitly link libc? 9970# 9971case "x$archive_cmds_need_lc" in 9972x|xyes) 9973 # Assume -lc should be added 9974 archive_cmds_need_lc=yes 9975 9976 if test "$enable_shared" = yes && test "$GCC" = yes; then 9977 case $archive_cmds in 9978 *'~'*) 9979 # FIXME: we may have to deal with multi-command sequences. 9980 ;; 9981 '$CC '*) 9982 # Test whether the compiler implicitly links with -lc since on some 9983 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9984 # to ld, don't add -lc before -lgcc. 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9986$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9987if ${lt_cv_archive_cmds_need_lc+:} false; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 $RM conftest* 9991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9992 9993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9994 (eval $ac_compile) 2>&5 9995 ac_status=$? 9996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9997 test $ac_status = 0; } 2>conftest.err; then 9998 soname=conftest 9999 lib=conftest 10000 libobjs=conftest.$ac_objext 10001 deplibs= 10002 wl=$lt_prog_compiler_wl 10003 pic_flag=$lt_prog_compiler_pic 10004 compiler_flags=-v 10005 linker_flags=-v 10006 verstring= 10007 output_objdir=. 10008 libname=conftest 10009 lt_save_allow_undefined_flag=$allow_undefined_flag 10010 allow_undefined_flag= 10011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10012 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10013 ac_status=$? 10014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10015 test $ac_status = 0; } 10016 then 10017 lt_cv_archive_cmds_need_lc=no 10018 else 10019 lt_cv_archive_cmds_need_lc=yes 10020 fi 10021 allow_undefined_flag=$lt_save_allow_undefined_flag 10022 else 10023 cat conftest.err 1>&5 10024 fi 10025 $RM conftest* 10026 10027fi 10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10029$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10030 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10031 ;; 10032 esac 10033 fi 10034 ;; 10035esac 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10189$as_echo_n "checking dynamic linker characteristics... " >&6; } 10190 10191if test "$GCC" = yes; then 10192 case $host_os in 10193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10194 *) lt_awk_arg="/^libraries:/" ;; 10195 esac 10196 case $host_os in 10197 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10198 *) lt_sed_strip_eq="s,=/,/,g" ;; 10199 esac 10200 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10201 case $lt_search_path_spec in 10202 *\;*) 10203 # if the path contains ";" then we assume it to be the separator 10204 # otherwise default to the standard path separator (i.e. ":") - it is 10205 # assumed that no part of a normal pathname contains ";" but that should 10206 # okay in the real world where ";" in dirpaths is itself problematic. 10207 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10208 ;; 10209 *) 10210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10211 ;; 10212 esac 10213 # Ok, now we have the path, separated by spaces, we can step through it 10214 # and add multilib dir if necessary. 10215 lt_tmp_lt_search_path_spec= 10216 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10217 for lt_sys_path in $lt_search_path_spec; do 10218 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10220 else 10221 test -d "$lt_sys_path" && \ 10222 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10223 fi 10224 done 10225 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10226BEGIN {RS=" "; FS="/|\n";} { 10227 lt_foo=""; 10228 lt_count=0; 10229 for (lt_i = NF; lt_i > 0; lt_i--) { 10230 if ($lt_i != "" && $lt_i != ".") { 10231 if ($lt_i == "..") { 10232 lt_count++; 10233 } else { 10234 if (lt_count == 0) { 10235 lt_foo="/" $lt_i lt_foo; 10236 } else { 10237 lt_count--; 10238 } 10239 } 10240 } 10241 } 10242 if (lt_foo != "") { lt_freq[lt_foo]++; } 10243 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10244}'` 10245 # AWK program above erroneously prepends '/' to C:/dos/paths 10246 # for these hosts. 10247 case $host_os in 10248 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10249 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10250 esac 10251 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10252else 10253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10254fi 10255library_names_spec= 10256libname_spec='lib$name' 10257soname_spec= 10258shrext_cmds=".so" 10259postinstall_cmds= 10260postuninstall_cmds= 10261finish_cmds= 10262finish_eval= 10263shlibpath_var= 10264shlibpath_overrides_runpath=unknown 10265version_type=none 10266dynamic_linker="$host_os ld.so" 10267sys_lib_dlsearch_path_spec="/lib /usr/lib" 10268need_lib_prefix=unknown 10269hardcode_into_libs=no 10270 10271# when you set need_version to no, make sure it does not cause -set_version 10272# flags to be left without arguments 10273need_version=unknown 10274 10275case $host_os in 10276aix3*) 10277 version_type=linux # correct to gnu/linux during the next big refactor 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10279 shlibpath_var=LIBPATH 10280 10281 # AIX 3 has no versioning support, so we append a major version to the name. 10282 soname_spec='${libname}${release}${shared_ext}$major' 10283 ;; 10284 10285aix[4-9]*) 10286 version_type=linux # correct to gnu/linux during the next big refactor 10287 need_lib_prefix=no 10288 need_version=no 10289 hardcode_into_libs=yes 10290 if test "$host_cpu" = ia64; then 10291 # AIX 5 supports IA64 10292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10293 shlibpath_var=LD_LIBRARY_PATH 10294 else 10295 # With GCC up to 2.95.x, collect2 would create an import file 10296 # for dependence libraries. The import file would start with 10297 # the line `#! .'. This would cause the generated library to 10298 # depend on `.', always an invalid library. This was fixed in 10299 # development snapshots of GCC prior to 3.0. 10300 case $host_os in 10301 aix4 | aix4.[01] | aix4.[01].*) 10302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10303 echo ' yes ' 10304 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10305 : 10306 else 10307 can_build_shared=no 10308 fi 10309 ;; 10310 esac 10311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10312 # soname into executable. Probably we can add versioning support to 10313 # collect2, so additional links can be useful in future. 10314 if test "$aix_use_runtimelinking" = yes; then 10315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10316 # instead of lib<name>.a to let people know that these are not 10317 # typical AIX shared libraries. 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10319 else 10320 # We preserve .a as extension for shared libraries through AIX4.2 10321 # and later when we are not doing run time linking. 10322 library_names_spec='${libname}${release}.a $libname.a' 10323 soname_spec='${libname}${release}${shared_ext}$major' 10324 fi 10325 shlibpath_var=LIBPATH 10326 fi 10327 ;; 10328 10329amigaos*) 10330 case $host_cpu in 10331 powerpc) 10332 # Since July 2007 AmigaOS4 officially supports .so libraries. 10333 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10335 ;; 10336 m68k) 10337 library_names_spec='$libname.ixlibrary $libname.a' 10338 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10339 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10340 ;; 10341 esac 10342 ;; 10343 10344beos*) 10345 library_names_spec='${libname}${shared_ext}' 10346 dynamic_linker="$host_os ld.so" 10347 shlibpath_var=LIBRARY_PATH 10348 ;; 10349 10350bsdi[45]*) 10351 version_type=linux # correct to gnu/linux during the next big refactor 10352 need_version=no 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10356 shlibpath_var=LD_LIBRARY_PATH 10357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10359 # the default ld.so.conf also contains /usr/contrib/lib and 10360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10361 # libtool to hard-code these into programs 10362 ;; 10363 10364cygwin* | mingw* | pw32* | cegcc*) 10365 version_type=windows 10366 shrext_cmds=".dll" 10367 need_version=no 10368 need_lib_prefix=no 10369 10370 case $GCC,$cc_basename in 10371 yes,*) 10372 # gcc 10373 library_names_spec='$libname.dll.a' 10374 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10375 postinstall_cmds='base_file=`basename \${file}`~ 10376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10377 dldir=$destdir/`dirname \$dlpath`~ 10378 test -d \$dldir || mkdir -p \$dldir~ 10379 $install_prog $dir/$dlname \$dldir/$dlname~ 10380 chmod a+x \$dldir/$dlname~ 10381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10383 fi' 10384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10385 dlpath=$dir/\$dldll~ 10386 $RM \$dlpath' 10387 shlibpath_overrides_runpath=yes 10388 10389 case $host_os in 10390 cygwin*) 10391 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10392 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10393 10394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10395 ;; 10396 mingw* | cegcc*) 10397 # MinGW DLLs use traditional 'lib' prefix 10398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10399 ;; 10400 pw32*) 10401 # pw32 DLLs use 'pw' prefix rather than 'lib' 10402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10403 ;; 10404 esac 10405 dynamic_linker='Win32 ld.exe' 10406 ;; 10407 10408 *,cl*) 10409 # Native MSVC 10410 libname_spec='$name' 10411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10412 library_names_spec='${libname}.dll.lib' 10413 10414 case $build_os in 10415 mingw*) 10416 sys_lib_search_path_spec= 10417 lt_save_ifs=$IFS 10418 IFS=';' 10419 for lt_path in $LIB 10420 do 10421 IFS=$lt_save_ifs 10422 # Let DOS variable expansion print the short 8.3 style file name. 10423 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10424 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10425 done 10426 IFS=$lt_save_ifs 10427 # Convert to MSYS style. 10428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10429 ;; 10430 cygwin*) 10431 # Convert to unix form, then to dos form, then back to unix form 10432 # but this time dos style (no spaces!) so that the unix form looks 10433 # like /cygdrive/c/PROGRA~1:/cygdr... 10434 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10435 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10436 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10437 ;; 10438 *) 10439 sys_lib_search_path_spec="$LIB" 10440 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10441 # It is most probably a Windows format PATH. 10442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10443 else 10444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10445 fi 10446 # FIXME: find the short name or the path components, as spaces are 10447 # common. (e.g. "Program Files" -> "PROGRA~1") 10448 ;; 10449 esac 10450 10451 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10452 postinstall_cmds='base_file=`basename \${file}`~ 10453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10454 dldir=$destdir/`dirname \$dlpath`~ 10455 test -d \$dldir || mkdir -p \$dldir~ 10456 $install_prog $dir/$dlname \$dldir/$dlname' 10457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10458 dlpath=$dir/\$dldll~ 10459 $RM \$dlpath' 10460 shlibpath_overrides_runpath=yes 10461 dynamic_linker='Win32 link.exe' 10462 ;; 10463 10464 *) 10465 # Assume MSVC wrapper 10466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10467 dynamic_linker='Win32 ld.exe' 10468 ;; 10469 esac 10470 # FIXME: first we should search . and the directory the executable is in 10471 shlibpath_var=PATH 10472 ;; 10473 10474darwin* | rhapsody*) 10475 dynamic_linker="$host_os dyld" 10476 version_type=darwin 10477 need_lib_prefix=no 10478 need_version=no 10479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10480 soname_spec='${libname}${release}${major}$shared_ext' 10481 shlibpath_overrides_runpath=yes 10482 shlibpath_var=DYLD_LIBRARY_PATH 10483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10484 10485 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10487 ;; 10488 10489dgux*) 10490 version_type=linux # correct to gnu/linux during the next big refactor 10491 need_lib_prefix=no 10492 need_version=no 10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10494 soname_spec='${libname}${release}${shared_ext}$major' 10495 shlibpath_var=LD_LIBRARY_PATH 10496 ;; 10497 10498freebsd* | dragonfly*) 10499 # DragonFly does not have aout. When/if they implement a new 10500 # versioning mechanism, adjust this. 10501 if test -x /usr/bin/objformat; then 10502 objformat=`/usr/bin/objformat` 10503 else 10504 case $host_os in 10505 freebsd[23].*) objformat=aout ;; 10506 *) objformat=elf ;; 10507 esac 10508 fi 10509 version_type=freebsd-$objformat 10510 case $version_type in 10511 freebsd-elf*) 10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10513 need_version=no 10514 need_lib_prefix=no 10515 ;; 10516 freebsd-*) 10517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10518 need_version=yes 10519 ;; 10520 esac 10521 shlibpath_var=LD_LIBRARY_PATH 10522 case $host_os in 10523 freebsd2.*) 10524 shlibpath_overrides_runpath=yes 10525 ;; 10526 freebsd3.[01]* | freebsdelf3.[01]*) 10527 shlibpath_overrides_runpath=yes 10528 hardcode_into_libs=yes 10529 ;; 10530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10532 shlibpath_overrides_runpath=no 10533 hardcode_into_libs=yes 10534 ;; 10535 *) # from 4.6 on, and DragonFly 10536 shlibpath_overrides_runpath=yes 10537 hardcode_into_libs=yes 10538 ;; 10539 esac 10540 ;; 10541 10542haiku*) 10543 version_type=linux # correct to gnu/linux during the next big refactor 10544 need_lib_prefix=no 10545 need_version=no 10546 dynamic_linker="$host_os runtime_loader" 10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10548 soname_spec='${libname}${release}${shared_ext}$major' 10549 shlibpath_var=LIBRARY_PATH 10550 shlibpath_overrides_runpath=yes 10551 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10552 hardcode_into_libs=yes 10553 ;; 10554 10555hpux9* | hpux10* | hpux11*) 10556 # Give a soname corresponding to the major version so that dld.sl refuses to 10557 # link against other versions. 10558 version_type=sunos 10559 need_lib_prefix=no 10560 need_version=no 10561 case $host_cpu in 10562 ia64*) 10563 shrext_cmds='.so' 10564 hardcode_into_libs=yes 10565 dynamic_linker="$host_os dld.so" 10566 shlibpath_var=LD_LIBRARY_PATH 10567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10569 soname_spec='${libname}${release}${shared_ext}$major' 10570 if test "X$HPUX_IA64_MODE" = X32; then 10571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10572 else 10573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10574 fi 10575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10576 ;; 10577 hppa*64*) 10578 shrext_cmds='.sl' 10579 hardcode_into_libs=yes 10580 dynamic_linker="$host_os dld.sl" 10581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10584 soname_spec='${libname}${release}${shared_ext}$major' 10585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10587 ;; 10588 *) 10589 shrext_cmds='.sl' 10590 dynamic_linker="$host_os dld.sl" 10591 shlibpath_var=SHLIB_PATH 10592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10594 soname_spec='${libname}${release}${shared_ext}$major' 10595 ;; 10596 esac 10597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10598 postinstall_cmds='chmod 555 $lib' 10599 # or fails outright, so override atomically: 10600 install_override_mode=555 10601 ;; 10602 10603interix[3-9]*) 10604 version_type=linux # correct to gnu/linux during the next big refactor 10605 need_lib_prefix=no 10606 need_version=no 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10610 shlibpath_var=LD_LIBRARY_PATH 10611 shlibpath_overrides_runpath=no 10612 hardcode_into_libs=yes 10613 ;; 10614 10615irix5* | irix6* | nonstopux*) 10616 case $host_os in 10617 nonstopux*) version_type=nonstopux ;; 10618 *) 10619 if test "$lt_cv_prog_gnu_ld" = yes; then 10620 version_type=linux # correct to gnu/linux during the next big refactor 10621 else 10622 version_type=irix 10623 fi ;; 10624 esac 10625 need_lib_prefix=no 10626 need_version=no 10627 soname_spec='${libname}${release}${shared_ext}$major' 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10629 case $host_os in 10630 irix5* | nonstopux*) 10631 libsuff= shlibsuff= 10632 ;; 10633 *) 10634 case $LD in # libtool.m4 will add one of these switches to LD 10635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10636 libsuff= shlibsuff= libmagic=32-bit;; 10637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10638 libsuff=32 shlibsuff=N32 libmagic=N32;; 10639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10640 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10641 *) libsuff= shlibsuff= libmagic=never-match;; 10642 esac 10643 ;; 10644 esac 10645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10646 shlibpath_overrides_runpath=no 10647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10649 hardcode_into_libs=yes 10650 ;; 10651 10652# No shared lib support for Linux oldld, aout, or coff. 10653linux*oldld* | linux*aout* | linux*coff*) 10654 dynamic_linker=no 10655 ;; 10656 10657# This must be glibc/ELF. 10658linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10659 version_type=linux # correct to gnu/linux during the next big refactor 10660 need_lib_prefix=no 10661 need_version=no 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 shlibpath_overrides_runpath=no 10667 10668 # Some binutils ld are patched to set DT_RUNPATH 10669 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10670 $as_echo_n "(cached) " >&6 10671else 10672 lt_cv_shlibpath_overrides_runpath=no 10673 save_LDFLAGS=$LDFLAGS 10674 save_libdir=$libdir 10675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10678/* end confdefs.h. */ 10679 10680int 10681main () 10682{ 10683 10684 ; 10685 return 0; 10686} 10687_ACEOF 10688if ac_fn_c_try_link "$LINENO"; then : 10689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10690 lt_cv_shlibpath_overrides_runpath=yes 10691fi 10692fi 10693rm -f core conftest.err conftest.$ac_objext \ 10694 conftest$ac_exeext conftest.$ac_ext 10695 LDFLAGS=$save_LDFLAGS 10696 libdir=$save_libdir 10697 10698fi 10699 10700 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10701 10702 # This implies no fast_install, which is unacceptable. 10703 # Some rework will be needed to allow for fast_install 10704 # before this can be enabled. 10705 hardcode_into_libs=yes 10706 10707 # Append ld.so.conf contents to the search path 10708 if test -f /etc/ld.so.conf; then 10709 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' ' '` 10710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10711 fi 10712 10713 # We used to test for /lib/ld.so.1 and disable shared libraries on 10714 # powerpc, because MkLinux only supported shared libraries with the 10715 # GNU dynamic linker. Since this was broken with cross compilers, 10716 # most powerpc-linux boxes support dynamic linking these days and 10717 # people can always --disable-shared, the test was removed, and we 10718 # assume the GNU/Linux dynamic linker is in use. 10719 dynamic_linker='GNU/Linux ld.so' 10720 ;; 10721 10722netbsdelf*-gnu) 10723 version_type=linux 10724 need_lib_prefix=no 10725 need_version=no 10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10727 soname_spec='${libname}${release}${shared_ext}$major' 10728 shlibpath_var=LD_LIBRARY_PATH 10729 shlibpath_overrides_runpath=no 10730 hardcode_into_libs=yes 10731 dynamic_linker='NetBSD ld.elf_so' 10732 ;; 10733 10734netbsd*) 10735 version_type=sunos 10736 need_lib_prefix=no 10737 need_version=no 10738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10741 dynamic_linker='NetBSD (a.out) ld.so' 10742 else 10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10744 soname_spec='${libname}${release}${shared_ext}$major' 10745 dynamic_linker='NetBSD ld.elf_so' 10746 fi 10747 shlibpath_var=LD_LIBRARY_PATH 10748 shlibpath_overrides_runpath=yes 10749 hardcode_into_libs=yes 10750 ;; 10751 10752newsos6) 10753 version_type=linux # correct to gnu/linux during the next big refactor 10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10755 shlibpath_var=LD_LIBRARY_PATH 10756 shlibpath_overrides_runpath=yes 10757 ;; 10758 10759*nto* | *qnx*) 10760 version_type=qnx 10761 need_lib_prefix=no 10762 need_version=no 10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10764 soname_spec='${libname}${release}${shared_ext}$major' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 shlibpath_overrides_runpath=no 10767 hardcode_into_libs=yes 10768 dynamic_linker='ldqnx.so' 10769 ;; 10770 10771openbsd*) 10772 version_type=sunos 10773 sys_lib_dlsearch_path_spec="/usr/lib" 10774 need_lib_prefix=no 10775 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10776 case $host_os in 10777 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10778 *) need_version=no ;; 10779 esac 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10782 shlibpath_var=LD_LIBRARY_PATH 10783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10784 case $host_os in 10785 openbsd2.[89] | openbsd2.[89].*) 10786 shlibpath_overrides_runpath=no 10787 ;; 10788 *) 10789 shlibpath_overrides_runpath=yes 10790 ;; 10791 esac 10792 else 10793 shlibpath_overrides_runpath=yes 10794 fi 10795 ;; 10796 10797os2*) 10798 libname_spec='$name' 10799 shrext_cmds=".dll" 10800 need_lib_prefix=no 10801 library_names_spec='$libname${shared_ext} $libname.a' 10802 dynamic_linker='OS/2 ld.exe' 10803 shlibpath_var=LIBPATH 10804 ;; 10805 10806osf3* | osf4* | osf5*) 10807 version_type=osf 10808 need_lib_prefix=no 10809 need_version=no 10810 soname_spec='${libname}${release}${shared_ext}$major' 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10812 shlibpath_var=LD_LIBRARY_PATH 10813 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10814 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10815 ;; 10816 10817rdos*) 10818 dynamic_linker=no 10819 ;; 10820 10821solaris*) 10822 version_type=linux # correct to gnu/linux during the next big refactor 10823 need_lib_prefix=no 10824 need_version=no 10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10826 soname_spec='${libname}${release}${shared_ext}$major' 10827 shlibpath_var=LD_LIBRARY_PATH 10828 shlibpath_overrides_runpath=yes 10829 hardcode_into_libs=yes 10830 # ldd complains unless libraries are executable 10831 postinstall_cmds='chmod +x $lib' 10832 ;; 10833 10834sunos4*) 10835 version_type=sunos 10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10838 shlibpath_var=LD_LIBRARY_PATH 10839 shlibpath_overrides_runpath=yes 10840 if test "$with_gnu_ld" = yes; then 10841 need_lib_prefix=no 10842 fi 10843 need_version=yes 10844 ;; 10845 10846sysv4 | sysv4.3*) 10847 version_type=linux # correct to gnu/linux during the next big refactor 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10849 soname_spec='${libname}${release}${shared_ext}$major' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 case $host_vendor in 10852 sni) 10853 shlibpath_overrides_runpath=no 10854 need_lib_prefix=no 10855 runpath_var=LD_RUN_PATH 10856 ;; 10857 siemens) 10858 need_lib_prefix=no 10859 ;; 10860 motorola) 10861 need_lib_prefix=no 10862 need_version=no 10863 shlibpath_overrides_runpath=no 10864 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10865 ;; 10866 esac 10867 ;; 10868 10869sysv4*MP*) 10870 if test -d /usr/nec ;then 10871 version_type=linux # correct to gnu/linux during the next big refactor 10872 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10873 soname_spec='$libname${shared_ext}.$major' 10874 shlibpath_var=LD_LIBRARY_PATH 10875 fi 10876 ;; 10877 10878sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10879 version_type=freebsd-elf 10880 need_lib_prefix=no 10881 need_version=no 10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10883 soname_spec='${libname}${release}${shared_ext}$major' 10884 shlibpath_var=LD_LIBRARY_PATH 10885 shlibpath_overrides_runpath=yes 10886 hardcode_into_libs=yes 10887 if test "$with_gnu_ld" = yes; then 10888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10889 else 10890 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10891 case $host_os in 10892 sco3.2v5*) 10893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10894 ;; 10895 esac 10896 fi 10897 sys_lib_dlsearch_path_spec='/usr/lib' 10898 ;; 10899 10900tpf*) 10901 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10902 version_type=linux # correct to gnu/linux during the next big refactor 10903 need_lib_prefix=no 10904 need_version=no 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10906 shlibpath_var=LD_LIBRARY_PATH 10907 shlibpath_overrides_runpath=no 10908 hardcode_into_libs=yes 10909 ;; 10910 10911uts4*) 10912 version_type=linux # correct to gnu/linux during the next big refactor 10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10914 soname_spec='${libname}${release}${shared_ext}$major' 10915 shlibpath_var=LD_LIBRARY_PATH 10916 ;; 10917 10918*) 10919 dynamic_linker=no 10920 ;; 10921esac 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10923$as_echo "$dynamic_linker" >&6; } 10924test "$dynamic_linker" = no && can_build_shared=no 10925 10926variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10927if test "$GCC" = yes; then 10928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10929fi 10930 10931if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10932 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10933fi 10934if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10935 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10936fi 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11030$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11031hardcode_action= 11032if test -n "$hardcode_libdir_flag_spec" || 11033 test -n "$runpath_var" || 11034 test "X$hardcode_automatic" = "Xyes" ; then 11035 11036 # We can hardcode non-existent directories. 11037 if test "$hardcode_direct" != no && 11038 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11039 # have to relink, otherwise we might link with an installed library 11040 # when we should be linking with a yet-to-be-installed one 11041 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11042 test "$hardcode_minus_L" != no; then 11043 # Linking always hardcodes the temporary library directory. 11044 hardcode_action=relink 11045 else 11046 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11047 hardcode_action=immediate 11048 fi 11049else 11050 # We cannot hardcode anything, or else we can only hardcode existing 11051 # directories. 11052 hardcode_action=unsupported 11053fi 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11055$as_echo "$hardcode_action" >&6; } 11056 11057if test "$hardcode_action" = relink || 11058 test "$inherit_rpath" = yes; then 11059 # Fast installation is not supported 11060 enable_fast_install=no 11061elif test "$shlibpath_overrides_runpath" = yes || 11062 test "$enable_shared" = no; then 11063 # Fast installation is not necessary 11064 enable_fast_install=needless 11065fi 11066 11067 11068 11069 11070 11071 11072 if test "x$enable_dlopen" != xyes; then 11073 enable_dlopen=unknown 11074 enable_dlopen_self=unknown 11075 enable_dlopen_self_static=unknown 11076else 11077 lt_cv_dlopen=no 11078 lt_cv_dlopen_libs= 11079 11080 case $host_os in 11081 beos*) 11082 lt_cv_dlopen="load_add_on" 11083 lt_cv_dlopen_libs= 11084 lt_cv_dlopen_self=yes 11085 ;; 11086 11087 mingw* | pw32* | cegcc*) 11088 lt_cv_dlopen="LoadLibrary" 11089 lt_cv_dlopen_libs= 11090 ;; 11091 11092 cygwin*) 11093 lt_cv_dlopen="dlopen" 11094 lt_cv_dlopen_libs= 11095 ;; 11096 11097 darwin*) 11098 # if libdl is installed we need to link against it 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11100$as_echo_n "checking for dlopen in -ldl... " >&6; } 11101if ${ac_cv_lib_dl_dlopen+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103else 11104 ac_check_lib_save_LIBS=$LIBS 11105LIBS="-ldl $LIBS" 11106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11107/* end confdefs.h. */ 11108 11109/* Override any GCC internal prototype to avoid an error. 11110 Use char because int might match the return type of a GCC 11111 builtin and then its argument prototype would still apply. */ 11112#ifdef __cplusplus 11113extern "C" 11114#endif 11115char dlopen (); 11116int 11117main () 11118{ 11119return dlopen (); 11120 ; 11121 return 0; 11122} 11123_ACEOF 11124if ac_fn_c_try_link "$LINENO"; then : 11125 ac_cv_lib_dl_dlopen=yes 11126else 11127 ac_cv_lib_dl_dlopen=no 11128fi 11129rm -f core conftest.err conftest.$ac_objext \ 11130 conftest$ac_exeext conftest.$ac_ext 11131LIBS=$ac_check_lib_save_LIBS 11132fi 11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11134$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11135if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11137else 11138 11139 lt_cv_dlopen="dyld" 11140 lt_cv_dlopen_libs= 11141 lt_cv_dlopen_self=yes 11142 11143fi 11144 11145 ;; 11146 11147 *) 11148 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11149if test "x$ac_cv_func_shl_load" = xyes; then : 11150 lt_cv_dlopen="shl_load" 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11153$as_echo_n "checking for shl_load in -ldld... " >&6; } 11154if ${ac_cv_lib_dld_shl_load+:} false; then : 11155 $as_echo_n "(cached) " >&6 11156else 11157 ac_check_lib_save_LIBS=$LIBS 11158LIBS="-ldld $LIBS" 11159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11160/* end confdefs.h. */ 11161 11162/* Override any GCC internal prototype to avoid an error. 11163 Use char because int might match the return type of a GCC 11164 builtin and then its argument prototype would still apply. */ 11165#ifdef __cplusplus 11166extern "C" 11167#endif 11168char shl_load (); 11169int 11170main () 11171{ 11172return shl_load (); 11173 ; 11174 return 0; 11175} 11176_ACEOF 11177if ac_fn_c_try_link "$LINENO"; then : 11178 ac_cv_lib_dld_shl_load=yes 11179else 11180 ac_cv_lib_dld_shl_load=no 11181fi 11182rm -f core conftest.err conftest.$ac_objext \ 11183 conftest$ac_exeext conftest.$ac_ext 11184LIBS=$ac_check_lib_save_LIBS 11185fi 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11187$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11188if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11189 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11190else 11191 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11192if test "x$ac_cv_func_dlopen" = xyes; then : 11193 lt_cv_dlopen="dlopen" 11194else 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11196$as_echo_n "checking for dlopen in -ldl... " >&6; } 11197if ${ac_cv_lib_dl_dlopen+:} false; then : 11198 $as_echo_n "(cached) " >&6 11199else 11200 ac_check_lib_save_LIBS=$LIBS 11201LIBS="-ldl $LIBS" 11202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11203/* end confdefs.h. */ 11204 11205/* Override any GCC internal prototype to avoid an error. 11206 Use char because int might match the return type of a GCC 11207 builtin and then its argument prototype would still apply. */ 11208#ifdef __cplusplus 11209extern "C" 11210#endif 11211char dlopen (); 11212int 11213main () 11214{ 11215return dlopen (); 11216 ; 11217 return 0; 11218} 11219_ACEOF 11220if ac_fn_c_try_link "$LINENO"; then : 11221 ac_cv_lib_dl_dlopen=yes 11222else 11223 ac_cv_lib_dl_dlopen=no 11224fi 11225rm -f core conftest.err conftest.$ac_objext \ 11226 conftest$ac_exeext conftest.$ac_ext 11227LIBS=$ac_check_lib_save_LIBS 11228fi 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11230$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11231if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11233else 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11235$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11236if ${ac_cv_lib_svld_dlopen+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238else 11239 ac_check_lib_save_LIBS=$LIBS 11240LIBS="-lsvld $LIBS" 11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11242/* end confdefs.h. */ 11243 11244/* Override any GCC internal prototype to avoid an error. 11245 Use char because int might match the return type of a GCC 11246 builtin and then its argument prototype would still apply. */ 11247#ifdef __cplusplus 11248extern "C" 11249#endif 11250char dlopen (); 11251int 11252main () 11253{ 11254return dlopen (); 11255 ; 11256 return 0; 11257} 11258_ACEOF 11259if ac_fn_c_try_link "$LINENO"; then : 11260 ac_cv_lib_svld_dlopen=yes 11261else 11262 ac_cv_lib_svld_dlopen=no 11263fi 11264rm -f core conftest.err conftest.$ac_objext \ 11265 conftest$ac_exeext conftest.$ac_ext 11266LIBS=$ac_check_lib_save_LIBS 11267fi 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11269$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11270if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11272else 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11274$as_echo_n "checking for dld_link in -ldld... " >&6; } 11275if ${ac_cv_lib_dld_dld_link+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 ac_check_lib_save_LIBS=$LIBS 11279LIBS="-ldld $LIBS" 11280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11281/* end confdefs.h. */ 11282 11283/* Override any GCC internal prototype to avoid an error. 11284 Use char because int might match the return type of a GCC 11285 builtin and then its argument prototype would still apply. */ 11286#ifdef __cplusplus 11287extern "C" 11288#endif 11289char dld_link (); 11290int 11291main () 11292{ 11293return dld_link (); 11294 ; 11295 return 0; 11296} 11297_ACEOF 11298if ac_fn_c_try_link "$LINENO"; then : 11299 ac_cv_lib_dld_dld_link=yes 11300else 11301 ac_cv_lib_dld_dld_link=no 11302fi 11303rm -f core conftest.err conftest.$ac_objext \ 11304 conftest$ac_exeext conftest.$ac_ext 11305LIBS=$ac_check_lib_save_LIBS 11306fi 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11308$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11309if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11310 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11311fi 11312 11313 11314fi 11315 11316 11317fi 11318 11319 11320fi 11321 11322 11323fi 11324 11325 11326fi 11327 11328 ;; 11329 esac 11330 11331 if test "x$lt_cv_dlopen" != xno; then 11332 enable_dlopen=yes 11333 else 11334 enable_dlopen=no 11335 fi 11336 11337 case $lt_cv_dlopen in 11338 dlopen) 11339 save_CPPFLAGS="$CPPFLAGS" 11340 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11341 11342 save_LDFLAGS="$LDFLAGS" 11343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11344 11345 save_LIBS="$LIBS" 11346 LIBS="$lt_cv_dlopen_libs $LIBS" 11347 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11349$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11350if ${lt_cv_dlopen_self+:} false; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 if test "$cross_compiling" = yes; then : 11354 lt_cv_dlopen_self=cross 11355else 11356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11357 lt_status=$lt_dlunknown 11358 cat > conftest.$ac_ext <<_LT_EOF 11359#line $LINENO "configure" 11360#include "confdefs.h" 11361 11362#if HAVE_DLFCN_H 11363#include <dlfcn.h> 11364#endif 11365 11366#include <stdio.h> 11367 11368#ifdef RTLD_GLOBAL 11369# define LT_DLGLOBAL RTLD_GLOBAL 11370#else 11371# ifdef DL_GLOBAL 11372# define LT_DLGLOBAL DL_GLOBAL 11373# else 11374# define LT_DLGLOBAL 0 11375# endif 11376#endif 11377 11378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11379 find out it does not work in some platform. */ 11380#ifndef LT_DLLAZY_OR_NOW 11381# ifdef RTLD_LAZY 11382# define LT_DLLAZY_OR_NOW RTLD_LAZY 11383# else 11384# ifdef DL_LAZY 11385# define LT_DLLAZY_OR_NOW DL_LAZY 11386# else 11387# ifdef RTLD_NOW 11388# define LT_DLLAZY_OR_NOW RTLD_NOW 11389# else 11390# ifdef DL_NOW 11391# define LT_DLLAZY_OR_NOW DL_NOW 11392# else 11393# define LT_DLLAZY_OR_NOW 0 11394# endif 11395# endif 11396# endif 11397# endif 11398#endif 11399 11400/* When -fvisbility=hidden is used, assume the code has been annotated 11401 correspondingly for the symbols needed. */ 11402#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11403int fnord () __attribute__((visibility("default"))); 11404#endif 11405 11406int fnord () { return 42; } 11407int main () 11408{ 11409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11410 int status = $lt_dlunknown; 11411 11412 if (self) 11413 { 11414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11415 else 11416 { 11417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11418 else puts (dlerror ()); 11419 } 11420 /* dlclose (self); */ 11421 } 11422 else 11423 puts (dlerror ()); 11424 11425 return status; 11426} 11427_LT_EOF 11428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11429 (eval $ac_link) 2>&5 11430 ac_status=$? 11431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11433 (./conftest; exit; ) >&5 2>/dev/null 11434 lt_status=$? 11435 case x$lt_status in 11436 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11437 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11438 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11439 esac 11440 else : 11441 # compilation failed 11442 lt_cv_dlopen_self=no 11443 fi 11444fi 11445rm -fr conftest* 11446 11447 11448fi 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11450$as_echo "$lt_cv_dlopen_self" >&6; } 11451 11452 if test "x$lt_cv_dlopen_self" = xyes; then 11453 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11455$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11456if ${lt_cv_dlopen_self_static+:} false; then : 11457 $as_echo_n "(cached) " >&6 11458else 11459 if test "$cross_compiling" = yes; then : 11460 lt_cv_dlopen_self_static=cross 11461else 11462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11463 lt_status=$lt_dlunknown 11464 cat > conftest.$ac_ext <<_LT_EOF 11465#line $LINENO "configure" 11466#include "confdefs.h" 11467 11468#if HAVE_DLFCN_H 11469#include <dlfcn.h> 11470#endif 11471 11472#include <stdio.h> 11473 11474#ifdef RTLD_GLOBAL 11475# define LT_DLGLOBAL RTLD_GLOBAL 11476#else 11477# ifdef DL_GLOBAL 11478# define LT_DLGLOBAL DL_GLOBAL 11479# else 11480# define LT_DLGLOBAL 0 11481# endif 11482#endif 11483 11484/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11485 find out it does not work in some platform. */ 11486#ifndef LT_DLLAZY_OR_NOW 11487# ifdef RTLD_LAZY 11488# define LT_DLLAZY_OR_NOW RTLD_LAZY 11489# else 11490# ifdef DL_LAZY 11491# define LT_DLLAZY_OR_NOW DL_LAZY 11492# else 11493# ifdef RTLD_NOW 11494# define LT_DLLAZY_OR_NOW RTLD_NOW 11495# else 11496# ifdef DL_NOW 11497# define LT_DLLAZY_OR_NOW DL_NOW 11498# else 11499# define LT_DLLAZY_OR_NOW 0 11500# endif 11501# endif 11502# endif 11503# endif 11504#endif 11505 11506/* When -fvisbility=hidden is used, assume the code has been annotated 11507 correspondingly for the symbols needed. */ 11508#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11509int fnord () __attribute__((visibility("default"))); 11510#endif 11511 11512int fnord () { return 42; } 11513int main () 11514{ 11515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11516 int status = $lt_dlunknown; 11517 11518 if (self) 11519 { 11520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11521 else 11522 { 11523 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11524 else puts (dlerror ()); 11525 } 11526 /* dlclose (self); */ 11527 } 11528 else 11529 puts (dlerror ()); 11530 11531 return status; 11532} 11533_LT_EOF 11534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11535 (eval $ac_link) 2>&5 11536 ac_status=$? 11537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11538 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11539 (./conftest; exit; ) >&5 2>/dev/null 11540 lt_status=$? 11541 case x$lt_status in 11542 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11543 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11544 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11545 esac 11546 else : 11547 # compilation failed 11548 lt_cv_dlopen_self_static=no 11549 fi 11550fi 11551rm -fr conftest* 11552 11553 11554fi 11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11556$as_echo "$lt_cv_dlopen_self_static" >&6; } 11557 fi 11558 11559 CPPFLAGS="$save_CPPFLAGS" 11560 LDFLAGS="$save_LDFLAGS" 11561 LIBS="$save_LIBS" 11562 ;; 11563 esac 11564 11565 case $lt_cv_dlopen_self in 11566 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11567 *) enable_dlopen_self=unknown ;; 11568 esac 11569 11570 case $lt_cv_dlopen_self_static in 11571 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11572 *) enable_dlopen_self_static=unknown ;; 11573 esac 11574fi 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592striplib= 11593old_striplib= 11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11595$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11596if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11597 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11598 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11600$as_echo "yes" >&6; } 11601else 11602# FIXME - insert some real tests, host_os isn't really good enough 11603 case $host_os in 11604 darwin*) 11605 if test -n "$STRIP" ; then 11606 striplib="$STRIP -x" 11607 old_striplib="$STRIP -S" 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11609$as_echo "yes" >&6; } 11610 else 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11612$as_echo "no" >&6; } 11613 fi 11614 ;; 11615 *) 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11617$as_echo "no" >&6; } 11618 ;; 11619 esac 11620fi 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 # Report which library types will actually be built 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11635$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11637$as_echo "$can_build_shared" >&6; } 11638 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11640$as_echo_n "checking whether to build shared libraries... " >&6; } 11641 test "$can_build_shared" = "no" && enable_shared=no 11642 11643 # On AIX, shared libraries and static libraries use the same namespace, and 11644 # are all built from PIC. 11645 case $host_os in 11646 aix3*) 11647 test "$enable_shared" = yes && enable_static=no 11648 if test -n "$RANLIB"; then 11649 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11650 postinstall_cmds='$RANLIB $lib' 11651 fi 11652 ;; 11653 11654 aix[4-9]*) 11655 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11656 test "$enable_shared" = yes && enable_static=no 11657 fi 11658 ;; 11659 esac 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11661$as_echo "$enable_shared" >&6; } 11662 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11664$as_echo_n "checking whether to build static libraries... " >&6; } 11665 # Make sure either enable_shared or enable_static is yes. 11666 test "$enable_shared" = yes || enable_static=yes 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11668$as_echo "$enable_static" >&6; } 11669 11670 11671 11672 11673fi 11674ac_ext=c 11675ac_cpp='$CPP $CPPFLAGS' 11676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11678ac_compiler_gnu=$ac_cv_c_compiler_gnu 11679 11680CC="$lt_save_CC" 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 ac_config_commands="$ac_config_commands libtool" 11697 11698 11699 11700 11701# Only expand once: 11702 11703 11704 11705# Add xorg-macros stuff 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11718$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11719if ${ac_cv_prog_cc_c99+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721else 11722 ac_cv_prog_cc_c99=no 11723ac_save_CC=$CC 11724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725/* end confdefs.h. */ 11726#include <stdarg.h> 11727#include <stdbool.h> 11728#include <stdlib.h> 11729#include <wchar.h> 11730#include <stdio.h> 11731 11732// Check varargs macros. These examples are taken from C99 6.10.3.5. 11733#define debug(...) fprintf (stderr, __VA_ARGS__) 11734#define showlist(...) puts (#__VA_ARGS__) 11735#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11736static void 11737test_varargs_macros (void) 11738{ 11739 int x = 1234; 11740 int y = 5678; 11741 debug ("Flag"); 11742 debug ("X = %d\n", x); 11743 showlist (The first, second, and third items.); 11744 report (x>y, "x is %d but y is %d", x, y); 11745} 11746 11747// Check long long types. 11748#define BIG64 18446744073709551615ull 11749#define BIG32 4294967295ul 11750#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11751#if !BIG_OK 11752 your preprocessor is broken; 11753#endif 11754#if BIG_OK 11755#else 11756 your preprocessor is broken; 11757#endif 11758static long long int bignum = -9223372036854775807LL; 11759static unsigned long long int ubignum = BIG64; 11760 11761struct incomplete_array 11762{ 11763 int datasize; 11764 double data[]; 11765}; 11766 11767struct named_init { 11768 int number; 11769 const wchar_t *name; 11770 double average; 11771}; 11772 11773typedef const char *ccp; 11774 11775static inline int 11776test_restrict (ccp restrict text) 11777{ 11778 // See if C++-style comments work. 11779 // Iterate through items via the restricted pointer. 11780 // Also check for declarations in for loops. 11781 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11782 continue; 11783 return 0; 11784} 11785 11786// Check varargs and va_copy. 11787static void 11788test_varargs (const char *format, ...) 11789{ 11790 va_list args; 11791 va_start (args, format); 11792 va_list args_copy; 11793 va_copy (args_copy, args); 11794 11795 const char *str; 11796 int number; 11797 float fnumber; 11798 11799 while (*format) 11800 { 11801 switch (*format++) 11802 { 11803 case 's': // string 11804 str = va_arg (args_copy, const char *); 11805 break; 11806 case 'd': // int 11807 number = va_arg (args_copy, int); 11808 break; 11809 case 'f': // float 11810 fnumber = va_arg (args_copy, double); 11811 break; 11812 default: 11813 break; 11814 } 11815 } 11816 va_end (args_copy); 11817 va_end (args); 11818} 11819 11820int 11821main () 11822{ 11823 11824 // Check bool. 11825 _Bool success = false; 11826 11827 // Check restrict. 11828 if (test_restrict ("String literal") == 0) 11829 success = true; 11830 char *restrict newvar = "Another string"; 11831 11832 // Check varargs. 11833 test_varargs ("s, d' f .", "string", 65, 34.234); 11834 test_varargs_macros (); 11835 11836 // Check flexible array members. 11837 struct incomplete_array *ia = 11838 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11839 ia->datasize = 10; 11840 for (int i = 0; i < ia->datasize; ++i) 11841 ia->data[i] = i * 1.234; 11842 11843 // Check named initializers. 11844 struct named_init ni = { 11845 .number = 34, 11846 .name = L"Test wide string", 11847 .average = 543.34343, 11848 }; 11849 11850 ni.number = 58; 11851 11852 int dynamic_array[ni.number]; 11853 dynamic_array[ni.number - 1] = 543; 11854 11855 // work around unused variable warnings 11856 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11857 || dynamic_array[ni.number - 1] != 543); 11858 11859 ; 11860 return 0; 11861} 11862_ACEOF 11863for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11864do 11865 CC="$ac_save_CC $ac_arg" 11866 if ac_fn_c_try_compile "$LINENO"; then : 11867 ac_cv_prog_cc_c99=$ac_arg 11868fi 11869rm -f core conftest.err conftest.$ac_objext 11870 test "x$ac_cv_prog_cc_c99" != "xno" && break 11871done 11872rm -f conftest.$ac_ext 11873CC=$ac_save_CC 11874 11875fi 11876# AC_CACHE_VAL 11877case "x$ac_cv_prog_cc_c99" in 11878 x) 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11880$as_echo "none needed" >&6; } ;; 11881 xno) 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11883$as_echo "unsupported" >&6; } ;; 11884 *) 11885 CC="$CC $ac_cv_prog_cc_c99" 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11887$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11888esac 11889if test "x$ac_cv_prog_cc_c99" != xno; then : 11890 11891fi 11892 11893 11894 11895 11896 11897 11898ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11899if test "x$ac_cv_have_decl___clang__" = xyes; then : 11900 CLANGCC="yes" 11901else 11902 CLANGCC="no" 11903fi 11904 11905ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11906if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11907 INTELCC="yes" 11908else 11909 INTELCC="no" 11910fi 11911 11912ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11913if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11914 SUNCC="yes" 11915else 11916 SUNCC="no" 11917fi 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11928 if test -n "$ac_tool_prefix"; then 11929 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11930set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11932$as_echo_n "checking for $ac_word... " >&6; } 11933if ${ac_cv_path_PKG_CONFIG+:} false; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 case $PKG_CONFIG in 11937 [\\/]* | ?:[\\/]*) 11938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11939 ;; 11940 *) 11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11942for as_dir in $PATH 11943do 11944 IFS=$as_save_IFS 11945 test -z "$as_dir" && as_dir=. 11946 for ac_exec_ext in '' $ac_executable_extensions; do 11947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11950 break 2 11951 fi 11952done 11953 done 11954IFS=$as_save_IFS 11955 11956 ;; 11957esac 11958fi 11959PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11960if test -n "$PKG_CONFIG"; then 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11962$as_echo "$PKG_CONFIG" >&6; } 11963else 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11965$as_echo "no" >&6; } 11966fi 11967 11968 11969fi 11970if test -z "$ac_cv_path_PKG_CONFIG"; then 11971 ac_pt_PKG_CONFIG=$PKG_CONFIG 11972 # Extract the first word of "pkg-config", so it can be a program name with args. 11973set dummy pkg-config; ac_word=$2 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11975$as_echo_n "checking for $ac_word... " >&6; } 11976if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11977 $as_echo_n "(cached) " >&6 11978else 11979 case $ac_pt_PKG_CONFIG in 11980 [\\/]* | ?:[\\/]*) 11981 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11982 ;; 11983 *) 11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11985for as_dir in $PATH 11986do 11987 IFS=$as_save_IFS 11988 test -z "$as_dir" && as_dir=. 11989 for ac_exec_ext in '' $ac_executable_extensions; do 11990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11991 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11993 break 2 11994 fi 11995done 11996 done 11997IFS=$as_save_IFS 11998 11999 ;; 12000esac 12001fi 12002ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12003if test -n "$ac_pt_PKG_CONFIG"; then 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12005$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12006else 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12008$as_echo "no" >&6; } 12009fi 12010 12011 if test "x$ac_pt_PKG_CONFIG" = x; then 12012 PKG_CONFIG="" 12013 else 12014 case $cross_compiling:$ac_tool_warned in 12015yes:) 12016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12018ac_tool_warned=yes ;; 12019esac 12020 PKG_CONFIG=$ac_pt_PKG_CONFIG 12021 fi 12022else 12023 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12024fi 12025 12026fi 12027if test -n "$PKG_CONFIG"; then 12028 _pkg_min_version=0.9.0 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12030$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12031 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12033$as_echo "yes" >&6; } 12034 else 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12036$as_echo "no" >&6; } 12037 PKG_CONFIG="" 12038 fi 12039fi 12040 12041 12042 12043 12044 12045@%:@ Check whether --enable-selective-werror was given. 12046if test "${enable_selective_werror+set}" = set; then : 12047 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12048else 12049 SELECTIVE_WERROR=yes 12050fi 12051 12052 12053 12054 12055 12056# -v is too short to test reliably with XORG_TESTSET_CFLAG 12057if test "x$SUNCC" = "xyes"; then 12058 BASE_CFLAGS="-v" 12059else 12060 BASE_CFLAGS="" 12061fi 12062 12063# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077xorg_testset_save_CFLAGS="$CFLAGS" 12078 12079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085else 12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087/* end confdefs.h. */ 12088int i; 12089_ACEOF 12090if ac_fn_c_try_compile "$LINENO"; then : 12091 xorg_cv_cc_flag_unknown_warning_option=yes 12092else 12093 xorg_cv_cc_flag_unknown_warning_option=no 12094fi 12095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12096fi 12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12100 CFLAGS="$xorg_testset_save_CFLAGS" 12101fi 12102 12103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12106 fi 12107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112else 12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12114/* end confdefs.h. */ 12115int i; 12116_ACEOF 12117if ac_fn_c_try_compile "$LINENO"; then : 12118 xorg_cv_cc_flag_unused_command_line_argument=yes 12119else 12120 xorg_cv_cc_flag_unused_command_line_argument=no 12121fi 12122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12123fi 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12127 CFLAGS="$xorg_testset_save_CFLAGS" 12128fi 12129 12130found="no" 12131 12132 if test $found = "no" ; then 12133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12135 fi 12136 12137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12139 fi 12140 12141 CFLAGS="$CFLAGS -Wall" 12142 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 12144$as_echo_n "checking if $CC supports-Wall... " >&6; } 12145 cacheid=xorg_cv_cc_flag__Wall 12146 if eval \${$cacheid+:} false; then : 12147 $as_echo_n "(cached) " >&6 12148else 12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12150/* end confdefs.h. */ 12151int i; 12152int 12153main () 12154{ 12155 12156 ; 12157 return 0; 12158} 12159_ACEOF 12160if ac_fn_c_try_link "$LINENO"; then : 12161 eval $cacheid=yes 12162else 12163 eval $cacheid=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext \ 12166 conftest$ac_exeext conftest.$ac_ext 12167fi 12168 12169 12170 CFLAGS="$xorg_testset_save_CFLAGS" 12171 12172 eval supported=\$$cacheid 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12174$as_echo "$supported" >&6; } 12175 if test "$supported" = "yes" ; then 12176 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12177 found="yes" 12178 fi 12179 fi 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195xorg_testset_save_CFLAGS="$CFLAGS" 12196 12197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206int i; 12207_ACEOF 12208if ac_fn_c_try_compile "$LINENO"; then : 12209 xorg_cv_cc_flag_unknown_warning_option=yes 12210else 12211 xorg_cv_cc_flag_unknown_warning_option=no 12212fi 12213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12214fi 12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12218 CFLAGS="$xorg_testset_save_CFLAGS" 12219fi 12220 12221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12224 fi 12225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12229 $as_echo_n "(cached) " >&6 12230else 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12232/* end confdefs.h. */ 12233int i; 12234_ACEOF 12235if ac_fn_c_try_compile "$LINENO"; then : 12236 xorg_cv_cc_flag_unused_command_line_argument=yes 12237else 12238 xorg_cv_cc_flag_unused_command_line_argument=no 12239fi 12240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12241fi 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12245 CFLAGS="$xorg_testset_save_CFLAGS" 12246fi 12247 12248found="no" 12249 12250 if test $found = "no" ; then 12251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12253 fi 12254 12255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12257 fi 12258 12259 CFLAGS="$CFLAGS -Wpointer-arith" 12260 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 12262$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 12263 cacheid=xorg_cv_cc_flag__Wpointer_arith 12264 if eval \${$cacheid+:} false; then : 12265 $as_echo_n "(cached) " >&6 12266else 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12268/* end confdefs.h. */ 12269int i; 12270int 12271main () 12272{ 12273 12274 ; 12275 return 0; 12276} 12277_ACEOF 12278if ac_fn_c_try_link "$LINENO"; then : 12279 eval $cacheid=yes 12280else 12281 eval $cacheid=no 12282fi 12283rm -f core conftest.err conftest.$ac_objext \ 12284 conftest$ac_exeext conftest.$ac_ext 12285fi 12286 12287 12288 CFLAGS="$xorg_testset_save_CFLAGS" 12289 12290 eval supported=\$$cacheid 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12292$as_echo "$supported" >&6; } 12293 if test "$supported" = "yes" ; then 12294 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12295 found="yes" 12296 fi 12297 fi 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313xorg_testset_save_CFLAGS="$CFLAGS" 12314 12315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323/* end confdefs.h. */ 12324int i; 12325_ACEOF 12326if ac_fn_c_try_compile "$LINENO"; then : 12327 xorg_cv_cc_flag_unknown_warning_option=yes 12328else 12329 xorg_cv_cc_flag_unknown_warning_option=no 12330fi 12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12332fi 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12336 CFLAGS="$xorg_testset_save_CFLAGS" 12337fi 12338 12339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12342 fi 12343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348else 12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12350/* end confdefs.h. */ 12351int i; 12352_ACEOF 12353if ac_fn_c_try_compile "$LINENO"; then : 12354 xorg_cv_cc_flag_unused_command_line_argument=yes 12355else 12356 xorg_cv_cc_flag_unused_command_line_argument=no 12357fi 12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12359fi 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12363 CFLAGS="$xorg_testset_save_CFLAGS" 12364fi 12365 12366found="no" 12367 12368 if test $found = "no" ; then 12369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12371 fi 12372 12373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12375 fi 12376 12377 CFLAGS="$CFLAGS -Wmissing-declarations" 12378 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 12380$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 12381 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12382 if eval \${$cacheid+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12386/* end confdefs.h. */ 12387int i; 12388int 12389main () 12390{ 12391 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396if ac_fn_c_try_link "$LINENO"; then : 12397 eval $cacheid=yes 12398else 12399 eval $cacheid=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403fi 12404 12405 12406 CFLAGS="$xorg_testset_save_CFLAGS" 12407 12408 eval supported=\$$cacheid 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12410$as_echo "$supported" >&6; } 12411 if test "$supported" = "yes" ; then 12412 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12413 found="yes" 12414 fi 12415 fi 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431xorg_testset_save_CFLAGS="$CFLAGS" 12432 12433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12441/* end confdefs.h. */ 12442int i; 12443_ACEOF 12444if ac_fn_c_try_compile "$LINENO"; then : 12445 xorg_cv_cc_flag_unknown_warning_option=yes 12446else 12447 xorg_cv_cc_flag_unknown_warning_option=no 12448fi 12449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12450fi 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12454 CFLAGS="$xorg_testset_save_CFLAGS" 12455fi 12456 12457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12460 fi 12461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12468/* end confdefs.h. */ 12469int i; 12470_ACEOF 12471if ac_fn_c_try_compile "$LINENO"; then : 12472 xorg_cv_cc_flag_unused_command_line_argument=yes 12473else 12474 xorg_cv_cc_flag_unused_command_line_argument=no 12475fi 12476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12477fi 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12481 CFLAGS="$xorg_testset_save_CFLAGS" 12482fi 12483 12484found="no" 12485 12486 if test $found = "no" ; then 12487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12489 fi 12490 12491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12493 fi 12494 12495 CFLAGS="$CFLAGS -Wformat=2" 12496 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 12498$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 12499 cacheid=xorg_cv_cc_flag__Wformat_2 12500 if eval \${$cacheid+:} false; then : 12501 $as_echo_n "(cached) " >&6 12502else 12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12504/* end confdefs.h. */ 12505int i; 12506int 12507main () 12508{ 12509 12510 ; 12511 return 0; 12512} 12513_ACEOF 12514if ac_fn_c_try_link "$LINENO"; then : 12515 eval $cacheid=yes 12516else 12517 eval $cacheid=no 12518fi 12519rm -f core conftest.err conftest.$ac_objext \ 12520 conftest$ac_exeext conftest.$ac_ext 12521fi 12522 12523 12524 CFLAGS="$xorg_testset_save_CFLAGS" 12525 12526 eval supported=\$$cacheid 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12528$as_echo "$supported" >&6; } 12529 if test "$supported" = "yes" ; then 12530 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12531 found="yes" 12532 fi 12533 fi 12534 12535 if test $found = "no" ; then 12536 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12538 fi 12539 12540 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12542 fi 12543 12544 CFLAGS="$CFLAGS -Wformat" 12545 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 12547$as_echo_n "checking if $CC supports-Wformat... " >&6; } 12548 cacheid=xorg_cv_cc_flag__Wformat 12549 if eval \${$cacheid+:} false; then : 12550 $as_echo_n "(cached) " >&6 12551else 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554int i; 12555int 12556main () 12557{ 12558 12559 ; 12560 return 0; 12561} 12562_ACEOF 12563if ac_fn_c_try_link "$LINENO"; then : 12564 eval $cacheid=yes 12565else 12566 eval $cacheid=no 12567fi 12568rm -f core conftest.err conftest.$ac_objext \ 12569 conftest$ac_exeext conftest.$ac_ext 12570fi 12571 12572 12573 CFLAGS="$xorg_testset_save_CFLAGS" 12574 12575 eval supported=\$$cacheid 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12577$as_echo "$supported" >&6; } 12578 if test "$supported" = "yes" ; then 12579 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12580 found="yes" 12581 fi 12582 fi 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600xorg_testset_save_CFLAGS="$CFLAGS" 12601 12602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12607 $as_echo_n "(cached) " >&6 12608else 12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12610/* end confdefs.h. */ 12611int i; 12612_ACEOF 12613if ac_fn_c_try_compile "$LINENO"; then : 12614 xorg_cv_cc_flag_unknown_warning_option=yes 12615else 12616 xorg_cv_cc_flag_unknown_warning_option=no 12617fi 12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12619fi 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12623 CFLAGS="$xorg_testset_save_CFLAGS" 12624fi 12625 12626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12629 fi 12630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12634 $as_echo_n "(cached) " >&6 12635else 12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12637/* end confdefs.h. */ 12638int i; 12639_ACEOF 12640if ac_fn_c_try_compile "$LINENO"; then : 12641 xorg_cv_cc_flag_unused_command_line_argument=yes 12642else 12643 xorg_cv_cc_flag_unused_command_line_argument=no 12644fi 12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12646fi 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12650 CFLAGS="$xorg_testset_save_CFLAGS" 12651fi 12652 12653found="no" 12654 12655 if test $found = "no" ; then 12656 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12658 fi 12659 12660 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12662 fi 12663 12664 CFLAGS="$CFLAGS -Wstrict-prototypes" 12665 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 12667$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 12668 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12669 if eval \${$cacheid+:} false; then : 12670 $as_echo_n "(cached) " >&6 12671else 12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673/* end confdefs.h. */ 12674int i; 12675int 12676main () 12677{ 12678 12679 ; 12680 return 0; 12681} 12682_ACEOF 12683if ac_fn_c_try_link "$LINENO"; then : 12684 eval $cacheid=yes 12685else 12686 eval $cacheid=no 12687fi 12688rm -f core conftest.err conftest.$ac_objext \ 12689 conftest$ac_exeext conftest.$ac_ext 12690fi 12691 12692 12693 CFLAGS="$xorg_testset_save_CFLAGS" 12694 12695 eval supported=\$$cacheid 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12697$as_echo "$supported" >&6; } 12698 if test "$supported" = "yes" ; then 12699 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12700 found="yes" 12701 fi 12702 fi 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718xorg_testset_save_CFLAGS="$CFLAGS" 12719 12720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729int i; 12730_ACEOF 12731if ac_fn_c_try_compile "$LINENO"; then : 12732 xorg_cv_cc_flag_unknown_warning_option=yes 12733else 12734 xorg_cv_cc_flag_unknown_warning_option=no 12735fi 12736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12737fi 12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12741 CFLAGS="$xorg_testset_save_CFLAGS" 12742fi 12743 12744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12747 fi 12748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12752 $as_echo_n "(cached) " >&6 12753else 12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12755/* end confdefs.h. */ 12756int i; 12757_ACEOF 12758if ac_fn_c_try_compile "$LINENO"; then : 12759 xorg_cv_cc_flag_unused_command_line_argument=yes 12760else 12761 xorg_cv_cc_flag_unused_command_line_argument=no 12762fi 12763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12764fi 12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12768 CFLAGS="$xorg_testset_save_CFLAGS" 12769fi 12770 12771found="no" 12772 12773 if test $found = "no" ; then 12774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12776 fi 12777 12778 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12780 fi 12781 12782 CFLAGS="$CFLAGS -Wmissing-prototypes" 12783 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 12785$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 12786 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12787 if eval \${$cacheid+:} false; then : 12788 $as_echo_n "(cached) " >&6 12789else 12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12791/* end confdefs.h. */ 12792int i; 12793int 12794main () 12795{ 12796 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_link "$LINENO"; then : 12802 eval $cacheid=yes 12803else 12804 eval $cacheid=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext \ 12807 conftest$ac_exeext conftest.$ac_ext 12808fi 12809 12810 12811 CFLAGS="$xorg_testset_save_CFLAGS" 12812 12813 eval supported=\$$cacheid 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12815$as_echo "$supported" >&6; } 12816 if test "$supported" = "yes" ; then 12817 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12818 found="yes" 12819 fi 12820 fi 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836xorg_testset_save_CFLAGS="$CFLAGS" 12837 12838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12846/* end confdefs.h. */ 12847int i; 12848_ACEOF 12849if ac_fn_c_try_compile "$LINENO"; then : 12850 xorg_cv_cc_flag_unknown_warning_option=yes 12851else 12852 xorg_cv_cc_flag_unknown_warning_option=no 12853fi 12854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12855fi 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12859 CFLAGS="$xorg_testset_save_CFLAGS" 12860fi 12861 12862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12865 fi 12866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12870 $as_echo_n "(cached) " >&6 12871else 12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873/* end confdefs.h. */ 12874int i; 12875_ACEOF 12876if ac_fn_c_try_compile "$LINENO"; then : 12877 xorg_cv_cc_flag_unused_command_line_argument=yes 12878else 12879 xorg_cv_cc_flag_unused_command_line_argument=no 12880fi 12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12882fi 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12886 CFLAGS="$xorg_testset_save_CFLAGS" 12887fi 12888 12889found="no" 12890 12891 if test $found = "no" ; then 12892 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12894 fi 12895 12896 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12898 fi 12899 12900 CFLAGS="$CFLAGS -Wnested-externs" 12901 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 12903$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 12904 cacheid=xorg_cv_cc_flag__Wnested_externs 12905 if eval \${$cacheid+:} false; then : 12906 $as_echo_n "(cached) " >&6 12907else 12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910int i; 12911int 12912main () 12913{ 12914 12915 ; 12916 return 0; 12917} 12918_ACEOF 12919if ac_fn_c_try_link "$LINENO"; then : 12920 eval $cacheid=yes 12921else 12922 eval $cacheid=no 12923fi 12924rm -f core conftest.err conftest.$ac_objext \ 12925 conftest$ac_exeext conftest.$ac_ext 12926fi 12927 12928 12929 CFLAGS="$xorg_testset_save_CFLAGS" 12930 12931 eval supported=\$$cacheid 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12933$as_echo "$supported" >&6; } 12934 if test "$supported" = "yes" ; then 12935 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12936 found="yes" 12937 fi 12938 fi 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954xorg_testset_save_CFLAGS="$CFLAGS" 12955 12956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965int i; 12966_ACEOF 12967if ac_fn_c_try_compile "$LINENO"; then : 12968 xorg_cv_cc_flag_unknown_warning_option=yes 12969else 12970 xorg_cv_cc_flag_unknown_warning_option=no 12971fi 12972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12973fi 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12977 CFLAGS="$xorg_testset_save_CFLAGS" 12978fi 12979 12980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12983 fi 12984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12988 $as_echo_n "(cached) " >&6 12989else 12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12991/* end confdefs.h. */ 12992int i; 12993_ACEOF 12994if ac_fn_c_try_compile "$LINENO"; then : 12995 xorg_cv_cc_flag_unused_command_line_argument=yes 12996else 12997 xorg_cv_cc_flag_unused_command_line_argument=no 12998fi 12999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13000fi 13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13004 CFLAGS="$xorg_testset_save_CFLAGS" 13005fi 13006 13007found="no" 13008 13009 if test $found = "no" ; then 13010 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13012 fi 13013 13014 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13016 fi 13017 13018 CFLAGS="$CFLAGS -Wbad-function-cast" 13019 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 13021$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 13022 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13023 if eval \${$cacheid+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028int i; 13029int 13030main () 13031{ 13032 13033 ; 13034 return 0; 13035} 13036_ACEOF 13037if ac_fn_c_try_link "$LINENO"; then : 13038 eval $cacheid=yes 13039else 13040 eval $cacheid=no 13041fi 13042rm -f core conftest.err conftest.$ac_objext \ 13043 conftest$ac_exeext conftest.$ac_ext 13044fi 13045 13046 13047 CFLAGS="$xorg_testset_save_CFLAGS" 13048 13049 eval supported=\$$cacheid 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13051$as_echo "$supported" >&6; } 13052 if test "$supported" = "yes" ; then 13053 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13054 found="yes" 13055 fi 13056 fi 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072xorg_testset_save_CFLAGS="$CFLAGS" 13073 13074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083int i; 13084_ACEOF 13085if ac_fn_c_try_compile "$LINENO"; then : 13086 xorg_cv_cc_flag_unknown_warning_option=yes 13087else 13088 xorg_cv_cc_flag_unknown_warning_option=no 13089fi 13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13091fi 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13095 CFLAGS="$xorg_testset_save_CFLAGS" 13096fi 13097 13098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13101 fi 13102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110int i; 13111_ACEOF 13112if ac_fn_c_try_compile "$LINENO"; then : 13113 xorg_cv_cc_flag_unused_command_line_argument=yes 13114else 13115 xorg_cv_cc_flag_unused_command_line_argument=no 13116fi 13117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13122 CFLAGS="$xorg_testset_save_CFLAGS" 13123fi 13124 13125found="no" 13126 13127 if test $found = "no" ; then 13128 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13130 fi 13131 13132 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13134 fi 13135 13136 CFLAGS="$CFLAGS -Wold-style-definition" 13137 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 13139$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 13140 cacheid=xorg_cv_cc_flag__Wold_style_definition 13141 if eval \${$cacheid+:} false; then : 13142 $as_echo_n "(cached) " >&6 13143else 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146int i; 13147int 13148main () 13149{ 13150 13151 ; 13152 return 0; 13153} 13154_ACEOF 13155if ac_fn_c_try_link "$LINENO"; then : 13156 eval $cacheid=yes 13157else 13158 eval $cacheid=no 13159fi 13160rm -f core conftest.err conftest.$ac_objext \ 13161 conftest$ac_exeext conftest.$ac_ext 13162fi 13163 13164 13165 CFLAGS="$xorg_testset_save_CFLAGS" 13166 13167 eval supported=\$$cacheid 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13169$as_echo "$supported" >&6; } 13170 if test "$supported" = "yes" ; then 13171 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13172 found="yes" 13173 fi 13174 fi 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190xorg_testset_save_CFLAGS="$CFLAGS" 13191 13192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201int i; 13202_ACEOF 13203if ac_fn_c_try_compile "$LINENO"; then : 13204 xorg_cv_cc_flag_unknown_warning_option=yes 13205else 13206 xorg_cv_cc_flag_unknown_warning_option=no 13207fi 13208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13209fi 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13213 CFLAGS="$xorg_testset_save_CFLAGS" 13214fi 13215 13216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13219 fi 13220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225else 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228int i; 13229_ACEOF 13230if ac_fn_c_try_compile "$LINENO"; then : 13231 xorg_cv_cc_flag_unused_command_line_argument=yes 13232else 13233 xorg_cv_cc_flag_unused_command_line_argument=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13236fi 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13240 CFLAGS="$xorg_testset_save_CFLAGS" 13241fi 13242 13243found="no" 13244 13245 if test $found = "no" ; then 13246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13248 fi 13249 13250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13252 fi 13253 13254 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13255 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 13257$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 13258 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13259 if eval \${$cacheid+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263/* end confdefs.h. */ 13264int i; 13265int 13266main () 13267{ 13268 13269 ; 13270 return 0; 13271} 13272_ACEOF 13273if ac_fn_c_try_link "$LINENO"; then : 13274 eval $cacheid=yes 13275else 13276 eval $cacheid=no 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280fi 13281 13282 13283 CFLAGS="$xorg_testset_save_CFLAGS" 13284 13285 eval supported=\$$cacheid 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13287$as_echo "$supported" >&6; } 13288 if test "$supported" = "yes" ; then 13289 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13290 found="yes" 13291 fi 13292 fi 13293 13294 13295 13296 13297 13298# This chunk adds additional warnings that could catch undesired effects. 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312xorg_testset_save_CFLAGS="$CFLAGS" 13313 13314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13322/* end confdefs.h. */ 13323int i; 13324_ACEOF 13325if ac_fn_c_try_compile "$LINENO"; then : 13326 xorg_cv_cc_flag_unknown_warning_option=yes 13327else 13328 xorg_cv_cc_flag_unknown_warning_option=no 13329fi 13330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13331fi 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13335 CFLAGS="$xorg_testset_save_CFLAGS" 13336fi 13337 13338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13341 fi 13342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347else 13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13349/* end confdefs.h. */ 13350int i; 13351_ACEOF 13352if ac_fn_c_try_compile "$LINENO"; then : 13353 xorg_cv_cc_flag_unused_command_line_argument=yes 13354else 13355 xorg_cv_cc_flag_unused_command_line_argument=no 13356fi 13357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13358fi 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13362 CFLAGS="$xorg_testset_save_CFLAGS" 13363fi 13364 13365found="no" 13366 13367 if test $found = "no" ; then 13368 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13370 fi 13371 13372 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13374 fi 13375 13376 CFLAGS="$CFLAGS -Wunused" 13377 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 13379$as_echo_n "checking if $CC supports-Wunused... " >&6; } 13380 cacheid=xorg_cv_cc_flag__Wunused 13381 if eval \${$cacheid+:} false; then : 13382 $as_echo_n "(cached) " >&6 13383else 13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13385/* end confdefs.h. */ 13386int i; 13387int 13388main () 13389{ 13390 13391 ; 13392 return 0; 13393} 13394_ACEOF 13395if ac_fn_c_try_link "$LINENO"; then : 13396 eval $cacheid=yes 13397else 13398 eval $cacheid=no 13399fi 13400rm -f core conftest.err conftest.$ac_objext \ 13401 conftest$ac_exeext conftest.$ac_ext 13402fi 13403 13404 13405 CFLAGS="$xorg_testset_save_CFLAGS" 13406 13407 eval supported=\$$cacheid 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13409$as_echo "$supported" >&6; } 13410 if test "$supported" = "yes" ; then 13411 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13412 found="yes" 13413 fi 13414 fi 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430xorg_testset_save_CFLAGS="$CFLAGS" 13431 13432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13437 $as_echo_n "(cached) " >&6 13438else 13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13440/* end confdefs.h. */ 13441int i; 13442_ACEOF 13443if ac_fn_c_try_compile "$LINENO"; then : 13444 xorg_cv_cc_flag_unknown_warning_option=yes 13445else 13446 xorg_cv_cc_flag_unknown_warning_option=no 13447fi 13448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13449fi 13450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13453 CFLAGS="$xorg_testset_save_CFLAGS" 13454fi 13455 13456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13459 fi 13460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13464 $as_echo_n "(cached) " >&6 13465else 13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13467/* end confdefs.h. */ 13468int i; 13469_ACEOF 13470if ac_fn_c_try_compile "$LINENO"; then : 13471 xorg_cv_cc_flag_unused_command_line_argument=yes 13472else 13473 xorg_cv_cc_flag_unused_command_line_argument=no 13474fi 13475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13476fi 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13480 CFLAGS="$xorg_testset_save_CFLAGS" 13481fi 13482 13483found="no" 13484 13485 if test $found = "no" ; then 13486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13488 fi 13489 13490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13492 fi 13493 13494 CFLAGS="$CFLAGS -Wuninitialized" 13495 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 13497$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 13498 cacheid=xorg_cv_cc_flag__Wuninitialized 13499 if eval \${$cacheid+:} false; then : 13500 $as_echo_n "(cached) " >&6 13501else 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503/* end confdefs.h. */ 13504int i; 13505int 13506main () 13507{ 13508 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513if ac_fn_c_try_link "$LINENO"; then : 13514 eval $cacheid=yes 13515else 13516 eval $cacheid=no 13517fi 13518rm -f core conftest.err conftest.$ac_objext \ 13519 conftest$ac_exeext conftest.$ac_ext 13520fi 13521 13522 13523 CFLAGS="$xorg_testset_save_CFLAGS" 13524 13525 eval supported=\$$cacheid 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13527$as_echo "$supported" >&6; } 13528 if test "$supported" = "yes" ; then 13529 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13530 found="yes" 13531 fi 13532 fi 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548xorg_testset_save_CFLAGS="$CFLAGS" 13549 13550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13555 $as_echo_n "(cached) " >&6 13556else 13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13558/* end confdefs.h. */ 13559int i; 13560_ACEOF 13561if ac_fn_c_try_compile "$LINENO"; then : 13562 xorg_cv_cc_flag_unknown_warning_option=yes 13563else 13564 xorg_cv_cc_flag_unknown_warning_option=no 13565fi 13566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13567fi 13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13571 CFLAGS="$xorg_testset_save_CFLAGS" 13572fi 13573 13574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13577 fi 13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13582 $as_echo_n "(cached) " >&6 13583else 13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13585/* end confdefs.h. */ 13586int i; 13587_ACEOF 13588if ac_fn_c_try_compile "$LINENO"; then : 13589 xorg_cv_cc_flag_unused_command_line_argument=yes 13590else 13591 xorg_cv_cc_flag_unused_command_line_argument=no 13592fi 13593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13594fi 13595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13598 CFLAGS="$xorg_testset_save_CFLAGS" 13599fi 13600 13601found="no" 13602 13603 if test $found = "no" ; then 13604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13606 fi 13607 13608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13610 fi 13611 13612 CFLAGS="$CFLAGS -Wshadow" 13613 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 13615$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 13616 cacheid=xorg_cv_cc_flag__Wshadow 13617 if eval \${$cacheid+:} false; then : 13618 $as_echo_n "(cached) " >&6 13619else 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621/* end confdefs.h. */ 13622int i; 13623int 13624main () 13625{ 13626 13627 ; 13628 return 0; 13629} 13630_ACEOF 13631if ac_fn_c_try_link "$LINENO"; then : 13632 eval $cacheid=yes 13633else 13634 eval $cacheid=no 13635fi 13636rm -f core conftest.err conftest.$ac_objext \ 13637 conftest$ac_exeext conftest.$ac_ext 13638fi 13639 13640 13641 CFLAGS="$xorg_testset_save_CFLAGS" 13642 13643 eval supported=\$$cacheid 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13645$as_echo "$supported" >&6; } 13646 if test "$supported" = "yes" ; then 13647 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13648 found="yes" 13649 fi 13650 fi 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666xorg_testset_save_CFLAGS="$CFLAGS" 13667 13668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674else 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677int i; 13678_ACEOF 13679if ac_fn_c_try_compile "$LINENO"; then : 13680 xorg_cv_cc_flag_unknown_warning_option=yes 13681else 13682 xorg_cv_cc_flag_unknown_warning_option=no 13683fi 13684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13685fi 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13689 CFLAGS="$xorg_testset_save_CFLAGS" 13690fi 13691 13692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13695 fi 13696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13700 $as_echo_n "(cached) " >&6 13701else 13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13703/* end confdefs.h. */ 13704int i; 13705_ACEOF 13706if ac_fn_c_try_compile "$LINENO"; then : 13707 xorg_cv_cc_flag_unused_command_line_argument=yes 13708else 13709 xorg_cv_cc_flag_unused_command_line_argument=no 13710fi 13711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13712fi 13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13716 CFLAGS="$xorg_testset_save_CFLAGS" 13717fi 13718 13719found="no" 13720 13721 if test $found = "no" ; then 13722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13724 fi 13725 13726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13728 fi 13729 13730 CFLAGS="$CFLAGS -Wcast-qual" 13731 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 13733$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 13734 cacheid=xorg_cv_cc_flag__Wcast_qual 13735 if eval \${$cacheid+:} false; then : 13736 $as_echo_n "(cached) " >&6 13737else 13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13739/* end confdefs.h. */ 13740int i; 13741int 13742main () 13743{ 13744 13745 ; 13746 return 0; 13747} 13748_ACEOF 13749if ac_fn_c_try_link "$LINENO"; then : 13750 eval $cacheid=yes 13751else 13752 eval $cacheid=no 13753fi 13754rm -f core conftest.err conftest.$ac_objext \ 13755 conftest$ac_exeext conftest.$ac_ext 13756fi 13757 13758 13759 CFLAGS="$xorg_testset_save_CFLAGS" 13760 13761 eval supported=\$$cacheid 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13763$as_echo "$supported" >&6; } 13764 if test "$supported" = "yes" ; then 13765 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13766 found="yes" 13767 fi 13768 fi 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784xorg_testset_save_CFLAGS="$CFLAGS" 13785 13786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13791 $as_echo_n "(cached) " >&6 13792else 13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13794/* end confdefs.h. */ 13795int i; 13796_ACEOF 13797if ac_fn_c_try_compile "$LINENO"; then : 13798 xorg_cv_cc_flag_unknown_warning_option=yes 13799else 13800 xorg_cv_cc_flag_unknown_warning_option=no 13801fi 13802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13803fi 13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13807 CFLAGS="$xorg_testset_save_CFLAGS" 13808fi 13809 13810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13813 fi 13814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13817if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 13826else 13827 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 13832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13834 CFLAGS="$xorg_testset_save_CFLAGS" 13835fi 13836 13837found="no" 13838 13839 if test $found = "no" ; then 13840 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13842 fi 13843 13844 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13846 fi 13847 13848 CFLAGS="$CFLAGS -Wmissing-noreturn" 13849 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 13851$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 13852 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13853 if eval \${$cacheid+:} false; then : 13854 $as_echo_n "(cached) " >&6 13855else 13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858int i; 13859int 13860main () 13861{ 13862 13863 ; 13864 return 0; 13865} 13866_ACEOF 13867if ac_fn_c_try_link "$LINENO"; then : 13868 eval $cacheid=yes 13869else 13870 eval $cacheid=no 13871fi 13872rm -f core conftest.err conftest.$ac_objext \ 13873 conftest$ac_exeext conftest.$ac_ext 13874fi 13875 13876 13877 CFLAGS="$xorg_testset_save_CFLAGS" 13878 13879 eval supported=\$$cacheid 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13881$as_echo "$supported" >&6; } 13882 if test "$supported" = "yes" ; then 13883 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13884 found="yes" 13885 fi 13886 fi 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902xorg_testset_save_CFLAGS="$CFLAGS" 13903 13904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13909 $as_echo_n "(cached) " >&6 13910else 13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13912/* end confdefs.h. */ 13913int i; 13914_ACEOF 13915if ac_fn_c_try_compile "$LINENO"; then : 13916 xorg_cv_cc_flag_unknown_warning_option=yes 13917else 13918 xorg_cv_cc_flag_unknown_warning_option=no 13919fi 13920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13921fi 13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13925 CFLAGS="$xorg_testset_save_CFLAGS" 13926fi 13927 13928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13931 fi 13932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13935if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 13944else 13945 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 13950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13952 CFLAGS="$xorg_testset_save_CFLAGS" 13953fi 13954 13955found="no" 13956 13957 if test $found = "no" ; then 13958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13960 fi 13961 13962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13964 fi 13965 13966 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13967 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 13969$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 13970 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13971 if eval \${$cacheid+:} false; then : 13972 $as_echo_n "(cached) " >&6 13973else 13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13975/* end confdefs.h. */ 13976int i; 13977int 13978main () 13979{ 13980 13981 ; 13982 return 0; 13983} 13984_ACEOF 13985if ac_fn_c_try_link "$LINENO"; then : 13986 eval $cacheid=yes 13987else 13988 eval $cacheid=no 13989fi 13990rm -f core conftest.err conftest.$ac_objext \ 13991 conftest$ac_exeext conftest.$ac_ext 13992fi 13993 13994 13995 CFLAGS="$xorg_testset_save_CFLAGS" 13996 13997 eval supported=\$$cacheid 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13999$as_echo "$supported" >&6; } 14000 if test "$supported" = "yes" ; then 14001 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14002 found="yes" 14003 fi 14004 fi 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020xorg_testset_save_CFLAGS="$CFLAGS" 14021 14022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14027 $as_echo_n "(cached) " >&6 14028else 14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031int i; 14032_ACEOF 14033if ac_fn_c_try_compile "$LINENO"; then : 14034 xorg_cv_cc_flag_unknown_warning_option=yes 14035else 14036 xorg_cv_cc_flag_unknown_warning_option=no 14037fi 14038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14039fi 14040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14043 CFLAGS="$xorg_testset_save_CFLAGS" 14044fi 14045 14046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14049 fi 14050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14053if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 14062else 14063 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 14068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14070 CFLAGS="$xorg_testset_save_CFLAGS" 14071fi 14072 14073found="no" 14074 14075 if test $found = "no" ; then 14076 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14078 fi 14079 14080 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14082 fi 14083 14084 CFLAGS="$CFLAGS -Wredundant-decls" 14085 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 14087$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 14088 cacheid=xorg_cv_cc_flag__Wredundant_decls 14089 if eval \${$cacheid+:} false; then : 14090 $as_echo_n "(cached) " >&6 14091else 14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14093/* end confdefs.h. */ 14094int i; 14095int 14096main () 14097{ 14098 14099 ; 14100 return 0; 14101} 14102_ACEOF 14103if ac_fn_c_try_link "$LINENO"; then : 14104 eval $cacheid=yes 14105else 14106 eval $cacheid=no 14107fi 14108rm -f core conftest.err conftest.$ac_objext \ 14109 conftest$ac_exeext conftest.$ac_ext 14110fi 14111 14112 14113 CFLAGS="$xorg_testset_save_CFLAGS" 14114 14115 eval supported=\$$cacheid 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14117$as_echo "$supported" >&6; } 14118 if test "$supported" = "yes" ; then 14119 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14120 found="yes" 14121 fi 14122 fi 14123 14124 14125 14126# These are currently disabled because they are noisy. They will be enabled 14127# in the future once the codebase is sufficiently modernized to silence 14128# them. For now, I don't want them to drown out the other warnings. 14129# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14130# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14131# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14132 14133# Turn some warnings into errors, so we don't accidently get successful builds 14134# when there are problems that should be fixed. 14135 14136if test "x$SELECTIVE_WERROR" = "xyes" ; then 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150xorg_testset_save_CFLAGS="$CFLAGS" 14151 14152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161int i; 14162_ACEOF 14163if ac_fn_c_try_compile "$LINENO"; then : 14164 xorg_cv_cc_flag_unknown_warning_option=yes 14165else 14166 xorg_cv_cc_flag_unknown_warning_option=no 14167fi 14168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14169fi 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14173 CFLAGS="$xorg_testset_save_CFLAGS" 14174fi 14175 14176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14179 fi 14180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188int i; 14189_ACEOF 14190if ac_fn_c_try_compile "$LINENO"; then : 14191 xorg_cv_cc_flag_unused_command_line_argument=yes 14192else 14193 xorg_cv_cc_flag_unused_command_line_argument=no 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14200 CFLAGS="$xorg_testset_save_CFLAGS" 14201fi 14202 14203found="no" 14204 14205 if test $found = "no" ; then 14206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 fi 14209 14210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14212 fi 14213 14214 CFLAGS="$CFLAGS -Werror=implicit" 14215 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 14217$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 14218 cacheid=xorg_cv_cc_flag__Werror_implicit 14219 if eval \${$cacheid+:} false; then : 14220 $as_echo_n "(cached) " >&6 14221else 14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14223/* end confdefs.h. */ 14224int i; 14225int 14226main () 14227{ 14228 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_link "$LINENO"; then : 14234 eval $cacheid=yes 14235else 14236 eval $cacheid=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext \ 14239 conftest$ac_exeext conftest.$ac_ext 14240fi 14241 14242 14243 CFLAGS="$xorg_testset_save_CFLAGS" 14244 14245 eval supported=\$$cacheid 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14247$as_echo "$supported" >&6; } 14248 if test "$supported" = "yes" ; then 14249 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14250 found="yes" 14251 fi 14252 fi 14253 14254 if test $found = "no" ; then 14255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14257 fi 14258 14259 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14261 fi 14262 14263 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14264 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14266$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14267 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14268 if eval \${$cacheid+:} false; then : 14269 $as_echo_n "(cached) " >&6 14270else 14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14272/* end confdefs.h. */ 14273int i; 14274int 14275main () 14276{ 14277 14278 ; 14279 return 0; 14280} 14281_ACEOF 14282if ac_fn_c_try_link "$LINENO"; then : 14283 eval $cacheid=yes 14284else 14285 eval $cacheid=no 14286fi 14287rm -f core conftest.err conftest.$ac_objext \ 14288 conftest$ac_exeext conftest.$ac_ext 14289fi 14290 14291 14292 CFLAGS="$xorg_testset_save_CFLAGS" 14293 14294 eval supported=\$$cacheid 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14296$as_echo "$supported" >&6; } 14297 if test "$supported" = "yes" ; then 14298 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14299 found="yes" 14300 fi 14301 fi 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317xorg_testset_save_CFLAGS="$CFLAGS" 14318 14319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14324 $as_echo_n "(cached) " >&6 14325else 14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14327/* end confdefs.h. */ 14328int i; 14329_ACEOF 14330if ac_fn_c_try_compile "$LINENO"; then : 14331 xorg_cv_cc_flag_unknown_warning_option=yes 14332else 14333 xorg_cv_cc_flag_unknown_warning_option=no 14334fi 14335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14336fi 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14340 CFLAGS="$xorg_testset_save_CFLAGS" 14341fi 14342 14343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14346 fi 14347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14351 $as_echo_n "(cached) " >&6 14352else 14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14354/* end confdefs.h. */ 14355int i; 14356_ACEOF 14357if ac_fn_c_try_compile "$LINENO"; then : 14358 xorg_cv_cc_flag_unused_command_line_argument=yes 14359else 14360 xorg_cv_cc_flag_unused_command_line_argument=no 14361fi 14362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14363fi 14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14367 CFLAGS="$xorg_testset_save_CFLAGS" 14368fi 14369 14370found="no" 14371 14372 if test $found = "no" ; then 14373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14375 fi 14376 14377 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14379 fi 14380 14381 CFLAGS="$CFLAGS -Werror=nonnull" 14382 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 14384$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 14385 cacheid=xorg_cv_cc_flag__Werror_nonnull 14386 if eval \${$cacheid+:} false; then : 14387 $as_echo_n "(cached) " >&6 14388else 14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14390/* end confdefs.h. */ 14391int i; 14392int 14393main () 14394{ 14395 14396 ; 14397 return 0; 14398} 14399_ACEOF 14400if ac_fn_c_try_link "$LINENO"; then : 14401 eval $cacheid=yes 14402else 14403 eval $cacheid=no 14404fi 14405rm -f core conftest.err conftest.$ac_objext \ 14406 conftest$ac_exeext conftest.$ac_ext 14407fi 14408 14409 14410 CFLAGS="$xorg_testset_save_CFLAGS" 14411 14412 eval supported=\$$cacheid 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14414$as_echo "$supported" >&6; } 14415 if test "$supported" = "yes" ; then 14416 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14417 found="yes" 14418 fi 14419 fi 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435xorg_testset_save_CFLAGS="$CFLAGS" 14436 14437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14442 $as_echo_n "(cached) " >&6 14443else 14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14445/* end confdefs.h. */ 14446int i; 14447_ACEOF 14448if ac_fn_c_try_compile "$LINENO"; then : 14449 xorg_cv_cc_flag_unknown_warning_option=yes 14450else 14451 xorg_cv_cc_flag_unknown_warning_option=no 14452fi 14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14454fi 14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14458 CFLAGS="$xorg_testset_save_CFLAGS" 14459fi 14460 14461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14464 fi 14465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14469 $as_echo_n "(cached) " >&6 14470else 14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472/* end confdefs.h. */ 14473int i; 14474_ACEOF 14475if ac_fn_c_try_compile "$LINENO"; then : 14476 xorg_cv_cc_flag_unused_command_line_argument=yes 14477else 14478 xorg_cv_cc_flag_unused_command_line_argument=no 14479fi 14480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14481fi 14482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14485 CFLAGS="$xorg_testset_save_CFLAGS" 14486fi 14487 14488found="no" 14489 14490 if test $found = "no" ; then 14491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14493 fi 14494 14495 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14497 fi 14498 14499 CFLAGS="$CFLAGS -Werror=init-self" 14500 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 14502$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 14503 cacheid=xorg_cv_cc_flag__Werror_init_self 14504 if eval \${$cacheid+:} false; then : 14505 $as_echo_n "(cached) " >&6 14506else 14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14508/* end confdefs.h. */ 14509int i; 14510int 14511main () 14512{ 14513 14514 ; 14515 return 0; 14516} 14517_ACEOF 14518if ac_fn_c_try_link "$LINENO"; then : 14519 eval $cacheid=yes 14520else 14521 eval $cacheid=no 14522fi 14523rm -f core conftest.err conftest.$ac_objext \ 14524 conftest$ac_exeext conftest.$ac_ext 14525fi 14526 14527 14528 CFLAGS="$xorg_testset_save_CFLAGS" 14529 14530 eval supported=\$$cacheid 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14532$as_echo "$supported" >&6; } 14533 if test "$supported" = "yes" ; then 14534 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14535 found="yes" 14536 fi 14537 fi 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553xorg_testset_save_CFLAGS="$CFLAGS" 14554 14555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14560 $as_echo_n "(cached) " >&6 14561else 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564int i; 14565_ACEOF 14566if ac_fn_c_try_compile "$LINENO"; then : 14567 xorg_cv_cc_flag_unknown_warning_option=yes 14568else 14569 xorg_cv_cc_flag_unknown_warning_option=no 14570fi 14571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14572fi 14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14576 CFLAGS="$xorg_testset_save_CFLAGS" 14577fi 14578 14579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14582 fi 14583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14587 $as_echo_n "(cached) " >&6 14588else 14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14590/* end confdefs.h. */ 14591int i; 14592_ACEOF 14593if ac_fn_c_try_compile "$LINENO"; then : 14594 xorg_cv_cc_flag_unused_command_line_argument=yes 14595else 14596 xorg_cv_cc_flag_unused_command_line_argument=no 14597fi 14598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14599fi 14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14603 CFLAGS="$xorg_testset_save_CFLAGS" 14604fi 14605 14606found="no" 14607 14608 if test $found = "no" ; then 14609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14611 fi 14612 14613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14615 fi 14616 14617 CFLAGS="$CFLAGS -Werror=main" 14618 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 14620$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 14621 cacheid=xorg_cv_cc_flag__Werror_main 14622 if eval \${$cacheid+:} false; then : 14623 $as_echo_n "(cached) " >&6 14624else 14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14626/* end confdefs.h. */ 14627int i; 14628int 14629main () 14630{ 14631 14632 ; 14633 return 0; 14634} 14635_ACEOF 14636if ac_fn_c_try_link "$LINENO"; then : 14637 eval $cacheid=yes 14638else 14639 eval $cacheid=no 14640fi 14641rm -f core conftest.err conftest.$ac_objext \ 14642 conftest$ac_exeext conftest.$ac_ext 14643fi 14644 14645 14646 CFLAGS="$xorg_testset_save_CFLAGS" 14647 14648 eval supported=\$$cacheid 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14650$as_echo "$supported" >&6; } 14651 if test "$supported" = "yes" ; then 14652 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14653 found="yes" 14654 fi 14655 fi 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671xorg_testset_save_CFLAGS="$CFLAGS" 14672 14673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681/* end confdefs.h. */ 14682int i; 14683_ACEOF 14684if ac_fn_c_try_compile "$LINENO"; then : 14685 xorg_cv_cc_flag_unknown_warning_option=yes 14686else 14687 xorg_cv_cc_flag_unknown_warning_option=no 14688fi 14689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14690fi 14691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14694 CFLAGS="$xorg_testset_save_CFLAGS" 14695fi 14696 14697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14700 fi 14701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14705 $as_echo_n "(cached) " >&6 14706else 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708/* end confdefs.h. */ 14709int i; 14710_ACEOF 14711if ac_fn_c_try_compile "$LINENO"; then : 14712 xorg_cv_cc_flag_unused_command_line_argument=yes 14713else 14714 xorg_cv_cc_flag_unused_command_line_argument=no 14715fi 14716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14717fi 14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14721 CFLAGS="$xorg_testset_save_CFLAGS" 14722fi 14723 14724found="no" 14725 14726 if test $found = "no" ; then 14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14729 fi 14730 14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14733 fi 14734 14735 CFLAGS="$CFLAGS -Werror=missing-braces" 14736 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 14738$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 14739 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14740 if eval \${$cacheid+:} false; then : 14741 $as_echo_n "(cached) " >&6 14742else 14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745int i; 14746int 14747main () 14748{ 14749 14750 ; 14751 return 0; 14752} 14753_ACEOF 14754if ac_fn_c_try_link "$LINENO"; then : 14755 eval $cacheid=yes 14756else 14757 eval $cacheid=no 14758fi 14759rm -f core conftest.err conftest.$ac_objext \ 14760 conftest$ac_exeext conftest.$ac_ext 14761fi 14762 14763 14764 CFLAGS="$xorg_testset_save_CFLAGS" 14765 14766 eval supported=\$$cacheid 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14768$as_echo "$supported" >&6; } 14769 if test "$supported" = "yes" ; then 14770 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14771 found="yes" 14772 fi 14773 fi 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789xorg_testset_save_CFLAGS="$CFLAGS" 14790 14791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14796 $as_echo_n "(cached) " >&6 14797else 14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799/* end confdefs.h. */ 14800int i; 14801_ACEOF 14802if ac_fn_c_try_compile "$LINENO"; then : 14803 xorg_cv_cc_flag_unknown_warning_option=yes 14804else 14805 xorg_cv_cc_flag_unknown_warning_option=no 14806fi 14807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14808fi 14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14812 CFLAGS="$xorg_testset_save_CFLAGS" 14813fi 14814 14815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827int i; 14828_ACEOF 14829if ac_fn_c_try_compile "$LINENO"; then : 14830 xorg_cv_cc_flag_unused_command_line_argument=yes 14831else 14832 xorg_cv_cc_flag_unused_command_line_argument=no 14833fi 14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14835fi 14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14839 CFLAGS="$xorg_testset_save_CFLAGS" 14840fi 14841 14842found="no" 14843 14844 if test $found = "no" ; then 14845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14847 fi 14848 14849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14851 fi 14852 14853 CFLAGS="$CFLAGS -Werror=sequence-point" 14854 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 14856$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 14857 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14858 if eval \${$cacheid+:} false; then : 14859 $as_echo_n "(cached) " >&6 14860else 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863int i; 14864int 14865main () 14866{ 14867 14868 ; 14869 return 0; 14870} 14871_ACEOF 14872if ac_fn_c_try_link "$LINENO"; then : 14873 eval $cacheid=yes 14874else 14875 eval $cacheid=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext \ 14878 conftest$ac_exeext conftest.$ac_ext 14879fi 14880 14881 14882 CFLAGS="$xorg_testset_save_CFLAGS" 14883 14884 eval supported=\$$cacheid 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14886$as_echo "$supported" >&6; } 14887 if test "$supported" = "yes" ; then 14888 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14889 found="yes" 14890 fi 14891 fi 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907xorg_testset_save_CFLAGS="$CFLAGS" 14908 14909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14914 $as_echo_n "(cached) " >&6 14915else 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918int i; 14919_ACEOF 14920if ac_fn_c_try_compile "$LINENO"; then : 14921 xorg_cv_cc_flag_unknown_warning_option=yes 14922else 14923 xorg_cv_cc_flag_unknown_warning_option=no 14924fi 14925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14926fi 14927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14930 CFLAGS="$xorg_testset_save_CFLAGS" 14931fi 14932 14933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14941 $as_echo_n "(cached) " >&6 14942else 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945int i; 14946_ACEOF 14947if ac_fn_c_try_compile "$LINENO"; then : 14948 xorg_cv_cc_flag_unused_command_line_argument=yes 14949else 14950 xorg_cv_cc_flag_unused_command_line_argument=no 14951fi 14952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14953fi 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14957 CFLAGS="$xorg_testset_save_CFLAGS" 14958fi 14959 14960found="no" 14961 14962 if test $found = "no" ; then 14963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14965 fi 14966 14967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14969 fi 14970 14971 CFLAGS="$CFLAGS -Werror=return-type" 14972 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 14974$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 14975 cacheid=xorg_cv_cc_flag__Werror_return_type 14976 if eval \${$cacheid+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978else 14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980/* end confdefs.h. */ 14981int i; 14982int 14983main () 14984{ 14985 14986 ; 14987 return 0; 14988} 14989_ACEOF 14990if ac_fn_c_try_link "$LINENO"; then : 14991 eval $cacheid=yes 14992else 14993 eval $cacheid=no 14994fi 14995rm -f core conftest.err conftest.$ac_objext \ 14996 conftest$ac_exeext conftest.$ac_ext 14997fi 14998 14999 15000 CFLAGS="$xorg_testset_save_CFLAGS" 15001 15002 eval supported=\$$cacheid 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15004$as_echo "$supported" >&6; } 15005 if test "$supported" = "yes" ; then 15006 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15007 found="yes" 15008 fi 15009 fi 15010 15011 if test $found = "no" ; then 15012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15014 fi 15015 15016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15018 fi 15019 15020 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15021 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15023$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15024 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15025 if eval \${$cacheid+:} false; then : 15026 $as_echo_n "(cached) " >&6 15027else 15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15029/* end confdefs.h. */ 15030int i; 15031int 15032main () 15033{ 15034 15035 ; 15036 return 0; 15037} 15038_ACEOF 15039if ac_fn_c_try_link "$LINENO"; then : 15040 eval $cacheid=yes 15041else 15042 eval $cacheid=no 15043fi 15044rm -f core conftest.err conftest.$ac_objext \ 15045 conftest$ac_exeext conftest.$ac_ext 15046fi 15047 15048 15049 CFLAGS="$xorg_testset_save_CFLAGS" 15050 15051 eval supported=\$$cacheid 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15053$as_echo "$supported" >&6; } 15054 if test "$supported" = "yes" ; then 15055 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15056 found="yes" 15057 fi 15058 fi 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074xorg_testset_save_CFLAGS="$CFLAGS" 15075 15076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15081 $as_echo_n "(cached) " >&6 15082else 15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15084/* end confdefs.h. */ 15085int i; 15086_ACEOF 15087if ac_fn_c_try_compile "$LINENO"; then : 15088 xorg_cv_cc_flag_unknown_warning_option=yes 15089else 15090 xorg_cv_cc_flag_unknown_warning_option=no 15091fi 15092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15093fi 15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15097 CFLAGS="$xorg_testset_save_CFLAGS" 15098fi 15099 15100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15103 fi 15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15108 $as_echo_n "(cached) " >&6 15109else 15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111/* end confdefs.h. */ 15112int i; 15113_ACEOF 15114if ac_fn_c_try_compile "$LINENO"; then : 15115 xorg_cv_cc_flag_unused_command_line_argument=yes 15116else 15117 xorg_cv_cc_flag_unused_command_line_argument=no 15118fi 15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15120fi 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15124 CFLAGS="$xorg_testset_save_CFLAGS" 15125fi 15126 15127found="no" 15128 15129 if test $found = "no" ; then 15130 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15132 fi 15133 15134 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15136 fi 15137 15138 CFLAGS="$CFLAGS -Werror=trigraphs" 15139 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 15141$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 15142 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15143 if eval \${$cacheid+:} false; then : 15144 $as_echo_n "(cached) " >&6 15145else 15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15147/* end confdefs.h. */ 15148int i; 15149int 15150main () 15151{ 15152 15153 ; 15154 return 0; 15155} 15156_ACEOF 15157if ac_fn_c_try_link "$LINENO"; then : 15158 eval $cacheid=yes 15159else 15160 eval $cacheid=no 15161fi 15162rm -f core conftest.err conftest.$ac_objext \ 15163 conftest$ac_exeext conftest.$ac_ext 15164fi 15165 15166 15167 CFLAGS="$xorg_testset_save_CFLAGS" 15168 15169 eval supported=\$$cacheid 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15171$as_echo "$supported" >&6; } 15172 if test "$supported" = "yes" ; then 15173 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15174 found="yes" 15175 fi 15176 fi 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192xorg_testset_save_CFLAGS="$CFLAGS" 15193 15194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15199 $as_echo_n "(cached) " >&6 15200else 15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15202/* end confdefs.h. */ 15203int i; 15204_ACEOF 15205if ac_fn_c_try_compile "$LINENO"; then : 15206 xorg_cv_cc_flag_unknown_warning_option=yes 15207else 15208 xorg_cv_cc_flag_unknown_warning_option=no 15209fi 15210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15211fi 15212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15215 CFLAGS="$xorg_testset_save_CFLAGS" 15216fi 15217 15218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15221 fi 15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227else 15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15229/* end confdefs.h. */ 15230int i; 15231_ACEOF 15232if ac_fn_c_try_compile "$LINENO"; then : 15233 xorg_cv_cc_flag_unused_command_line_argument=yes 15234else 15235 xorg_cv_cc_flag_unused_command_line_argument=no 15236fi 15237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15238fi 15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15242 CFLAGS="$xorg_testset_save_CFLAGS" 15243fi 15244 15245found="no" 15246 15247 if test $found = "no" ; then 15248 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15250 fi 15251 15252 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15254 fi 15255 15256 CFLAGS="$CFLAGS -Werror=array-bounds" 15257 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 15259$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 15260 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15261 if eval \${$cacheid+:} false; then : 15262 $as_echo_n "(cached) " >&6 15263else 15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15265/* end confdefs.h. */ 15266int i; 15267int 15268main () 15269{ 15270 15271 ; 15272 return 0; 15273} 15274_ACEOF 15275if ac_fn_c_try_link "$LINENO"; then : 15276 eval $cacheid=yes 15277else 15278 eval $cacheid=no 15279fi 15280rm -f core conftest.err conftest.$ac_objext \ 15281 conftest$ac_exeext conftest.$ac_ext 15282fi 15283 15284 15285 CFLAGS="$xorg_testset_save_CFLAGS" 15286 15287 eval supported=\$$cacheid 15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15289$as_echo "$supported" >&6; } 15290 if test "$supported" = "yes" ; then 15291 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15292 found="yes" 15293 fi 15294 fi 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310xorg_testset_save_CFLAGS="$CFLAGS" 15311 15312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15317 $as_echo_n "(cached) " >&6 15318else 15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15320/* end confdefs.h. */ 15321int i; 15322_ACEOF 15323if ac_fn_c_try_compile "$LINENO"; then : 15324 xorg_cv_cc_flag_unknown_warning_option=yes 15325else 15326 xorg_cv_cc_flag_unknown_warning_option=no 15327fi 15328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15329fi 15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15333 CFLAGS="$xorg_testset_save_CFLAGS" 15334fi 15335 15336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15339 fi 15340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15344 $as_echo_n "(cached) " >&6 15345else 15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347/* end confdefs.h. */ 15348int i; 15349_ACEOF 15350if ac_fn_c_try_compile "$LINENO"; then : 15351 xorg_cv_cc_flag_unused_command_line_argument=yes 15352else 15353 xorg_cv_cc_flag_unused_command_line_argument=no 15354fi 15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15356fi 15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15360 CFLAGS="$xorg_testset_save_CFLAGS" 15361fi 15362 15363found="no" 15364 15365 if test $found = "no" ; then 15366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15368 fi 15369 15370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15372 fi 15373 15374 CFLAGS="$CFLAGS -Werror=write-strings" 15375 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 15377$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 15378 cacheid=xorg_cv_cc_flag__Werror_write_strings 15379 if eval \${$cacheid+:} false; then : 15380 $as_echo_n "(cached) " >&6 15381else 15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15383/* end confdefs.h. */ 15384int i; 15385int 15386main () 15387{ 15388 15389 ; 15390 return 0; 15391} 15392_ACEOF 15393if ac_fn_c_try_link "$LINENO"; then : 15394 eval $cacheid=yes 15395else 15396 eval $cacheid=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext \ 15399 conftest$ac_exeext conftest.$ac_ext 15400fi 15401 15402 15403 CFLAGS="$xorg_testset_save_CFLAGS" 15404 15405 eval supported=\$$cacheid 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15407$as_echo "$supported" >&6; } 15408 if test "$supported" = "yes" ; then 15409 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15410 found="yes" 15411 fi 15412 fi 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428xorg_testset_save_CFLAGS="$CFLAGS" 15429 15430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15435 $as_echo_n "(cached) " >&6 15436else 15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15438/* end confdefs.h. */ 15439int i; 15440_ACEOF 15441if ac_fn_c_try_compile "$LINENO"; then : 15442 xorg_cv_cc_flag_unknown_warning_option=yes 15443else 15444 xorg_cv_cc_flag_unknown_warning_option=no 15445fi 15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15447fi 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15451 CFLAGS="$xorg_testset_save_CFLAGS" 15452fi 15453 15454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15457 fi 15458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463else 15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15465/* end confdefs.h. */ 15466int i; 15467_ACEOF 15468if ac_fn_c_try_compile "$LINENO"; then : 15469 xorg_cv_cc_flag_unused_command_line_argument=yes 15470else 15471 xorg_cv_cc_flag_unused_command_line_argument=no 15472fi 15473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15474fi 15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15478 CFLAGS="$xorg_testset_save_CFLAGS" 15479fi 15480 15481found="no" 15482 15483 if test $found = "no" ; then 15484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15486 fi 15487 15488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15490 fi 15491 15492 CFLAGS="$CFLAGS -Werror=address" 15493 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 15495$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 15496 cacheid=xorg_cv_cc_flag__Werror_address 15497 if eval \${$cacheid+:} false; then : 15498 $as_echo_n "(cached) " >&6 15499else 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502int i; 15503int 15504main () 15505{ 15506 15507 ; 15508 return 0; 15509} 15510_ACEOF 15511if ac_fn_c_try_link "$LINENO"; then : 15512 eval $cacheid=yes 15513else 15514 eval $cacheid=no 15515fi 15516rm -f core conftest.err conftest.$ac_objext \ 15517 conftest$ac_exeext conftest.$ac_ext 15518fi 15519 15520 15521 CFLAGS="$xorg_testset_save_CFLAGS" 15522 15523 eval supported=\$$cacheid 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15525$as_echo "$supported" >&6; } 15526 if test "$supported" = "yes" ; then 15527 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15528 found="yes" 15529 fi 15530 fi 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546xorg_testset_save_CFLAGS="$CFLAGS" 15547 15548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15553 $as_echo_n "(cached) " >&6 15554else 15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15556/* end confdefs.h. */ 15557int i; 15558_ACEOF 15559if ac_fn_c_try_compile "$LINENO"; then : 15560 xorg_cv_cc_flag_unknown_warning_option=yes 15561else 15562 xorg_cv_cc_flag_unknown_warning_option=no 15563fi 15564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15565fi 15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15569 CFLAGS="$xorg_testset_save_CFLAGS" 15570fi 15571 15572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15575 fi 15576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15580 $as_echo_n "(cached) " >&6 15581else 15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15583/* end confdefs.h. */ 15584int i; 15585_ACEOF 15586if ac_fn_c_try_compile "$LINENO"; then : 15587 xorg_cv_cc_flag_unused_command_line_argument=yes 15588else 15589 xorg_cv_cc_flag_unused_command_line_argument=no 15590fi 15591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15592fi 15593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15596 CFLAGS="$xorg_testset_save_CFLAGS" 15597fi 15598 15599found="no" 15600 15601 if test $found = "no" ; then 15602 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15604 fi 15605 15606 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15608 fi 15609 15610 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15611 15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 15613$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 15614 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15615 if eval \${$cacheid+:} false; then : 15616 $as_echo_n "(cached) " >&6 15617else 15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15619/* end confdefs.h. */ 15620int i; 15621int 15622main () 15623{ 15624 15625 ; 15626 return 0; 15627} 15628_ACEOF 15629if ac_fn_c_try_link "$LINENO"; then : 15630 eval $cacheid=yes 15631else 15632 eval $cacheid=no 15633fi 15634rm -f core conftest.err conftest.$ac_objext \ 15635 conftest$ac_exeext conftest.$ac_ext 15636fi 15637 15638 15639 CFLAGS="$xorg_testset_save_CFLAGS" 15640 15641 eval supported=\$$cacheid 15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15643$as_echo "$supported" >&6; } 15644 if test "$supported" = "yes" ; then 15645 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15646 found="yes" 15647 fi 15648 fi 15649 15650 if test $found = "no" ; then 15651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15653 fi 15654 15655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15657 fi 15658 15659 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15660 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15662$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15663 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15664 if eval \${$cacheid+:} false; then : 15665 $as_echo_n "(cached) " >&6 15666else 15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669int i; 15670int 15671main () 15672{ 15673 15674 ; 15675 return 0; 15676} 15677_ACEOF 15678if ac_fn_c_try_link "$LINENO"; then : 15679 eval $cacheid=yes 15680else 15681 eval $cacheid=no 15682fi 15683rm -f core conftest.err conftest.$ac_objext \ 15684 conftest$ac_exeext conftest.$ac_ext 15685fi 15686 15687 15688 CFLAGS="$xorg_testset_save_CFLAGS" 15689 15690 eval supported=\$$cacheid 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15692$as_echo "$supported" >&6; } 15693 if test "$supported" = "yes" ; then 15694 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15695 found="yes" 15696 fi 15697 fi 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713xorg_testset_save_CFLAGS="$CFLAGS" 15714 15715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15720 $as_echo_n "(cached) " >&6 15721else 15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723/* end confdefs.h. */ 15724int i; 15725_ACEOF 15726if ac_fn_c_try_compile "$LINENO"; then : 15727 xorg_cv_cc_flag_unknown_warning_option=yes 15728else 15729 xorg_cv_cc_flag_unknown_warning_option=no 15730fi 15731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15732fi 15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15736 CFLAGS="$xorg_testset_save_CFLAGS" 15737fi 15738 15739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15742 fi 15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15747 $as_echo_n "(cached) " >&6 15748else 15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750/* end confdefs.h. */ 15751int i; 15752_ACEOF 15753if ac_fn_c_try_compile "$LINENO"; then : 15754 xorg_cv_cc_flag_unused_command_line_argument=yes 15755else 15756 xorg_cv_cc_flag_unused_command_line_argument=no 15757fi 15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15759fi 15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15763 CFLAGS="$xorg_testset_save_CFLAGS" 15764fi 15765 15766found="no" 15767 15768 if test $found = "no" ; then 15769 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15771 fi 15772 15773 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15775 fi 15776 15777 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15778 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 15780$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 15781 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15782 if eval \${$cacheid+:} false; then : 15783 $as_echo_n "(cached) " >&6 15784else 15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15786/* end confdefs.h. */ 15787int i; 15788int 15789main () 15790{ 15791 15792 ; 15793 return 0; 15794} 15795_ACEOF 15796if ac_fn_c_try_link "$LINENO"; then : 15797 eval $cacheid=yes 15798else 15799 eval $cacheid=no 15800fi 15801rm -f core conftest.err conftest.$ac_objext \ 15802 conftest$ac_exeext conftest.$ac_ext 15803fi 15804 15805 15806 CFLAGS="$xorg_testset_save_CFLAGS" 15807 15808 eval supported=\$$cacheid 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15810$as_echo "$supported" >&6; } 15811 if test "$supported" = "yes" ; then 15812 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15813 found="yes" 15814 fi 15815 fi 15816 15817 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15818else 15819{ $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 15820$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;} 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834xorg_testset_save_CFLAGS="$CFLAGS" 15835 15836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15841 $as_echo_n "(cached) " >&6 15842else 15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15844/* end confdefs.h. */ 15845int i; 15846_ACEOF 15847if ac_fn_c_try_compile "$LINENO"; then : 15848 xorg_cv_cc_flag_unknown_warning_option=yes 15849else 15850 xorg_cv_cc_flag_unknown_warning_option=no 15851fi 15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15853fi 15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15857 CFLAGS="$xorg_testset_save_CFLAGS" 15858fi 15859 15860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15863 fi 15864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15868 $as_echo_n "(cached) " >&6 15869else 15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871/* end confdefs.h. */ 15872int i; 15873_ACEOF 15874if ac_fn_c_try_compile "$LINENO"; then : 15875 xorg_cv_cc_flag_unused_command_line_argument=yes 15876else 15877 xorg_cv_cc_flag_unused_command_line_argument=no 15878fi 15879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15880fi 15881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15884 CFLAGS="$xorg_testset_save_CFLAGS" 15885fi 15886 15887found="no" 15888 15889 if test $found = "no" ; then 15890 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15892 fi 15893 15894 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15896 fi 15897 15898 CFLAGS="$CFLAGS -Wimplicit" 15899 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 15901$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 15902 cacheid=xorg_cv_cc_flag__Wimplicit 15903 if eval \${$cacheid+:} false; then : 15904 $as_echo_n "(cached) " >&6 15905else 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15907/* end confdefs.h. */ 15908int i; 15909int 15910main () 15911{ 15912 15913 ; 15914 return 0; 15915} 15916_ACEOF 15917if ac_fn_c_try_link "$LINENO"; then : 15918 eval $cacheid=yes 15919else 15920 eval $cacheid=no 15921fi 15922rm -f core conftest.err conftest.$ac_objext \ 15923 conftest$ac_exeext conftest.$ac_ext 15924fi 15925 15926 15927 CFLAGS="$xorg_testset_save_CFLAGS" 15928 15929 eval supported=\$$cacheid 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15931$as_echo "$supported" >&6; } 15932 if test "$supported" = "yes" ; then 15933 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15934 found="yes" 15935 fi 15936 fi 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952xorg_testset_save_CFLAGS="$CFLAGS" 15953 15954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15962/* end confdefs.h. */ 15963int i; 15964_ACEOF 15965if ac_fn_c_try_compile "$LINENO"; then : 15966 xorg_cv_cc_flag_unknown_warning_option=yes 15967else 15968 xorg_cv_cc_flag_unknown_warning_option=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15971fi 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976fi 15977 15978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15981 fi 15982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15986 $as_echo_n "(cached) " >&6 15987else 15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15989/* end confdefs.h. */ 15990int i; 15991_ACEOF 15992if ac_fn_c_try_compile "$LINENO"; then : 15993 xorg_cv_cc_flag_unused_command_line_argument=yes 15994else 15995 xorg_cv_cc_flag_unused_command_line_argument=no 15996fi 15997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15998fi 15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16002 CFLAGS="$xorg_testset_save_CFLAGS" 16003fi 16004 16005found="no" 16006 16007 if test $found = "no" ; then 16008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16010 fi 16011 16012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16014 fi 16015 16016 CFLAGS="$CFLAGS -Wnonnull" 16017 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 16019$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 16020 cacheid=xorg_cv_cc_flag__Wnonnull 16021 if eval \${$cacheid+:} false; then : 16022 $as_echo_n "(cached) " >&6 16023else 16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16025/* end confdefs.h. */ 16026int i; 16027int 16028main () 16029{ 16030 16031 ; 16032 return 0; 16033} 16034_ACEOF 16035if ac_fn_c_try_link "$LINENO"; then : 16036 eval $cacheid=yes 16037else 16038 eval $cacheid=no 16039fi 16040rm -f core conftest.err conftest.$ac_objext \ 16041 conftest$ac_exeext conftest.$ac_ext 16042fi 16043 16044 16045 CFLAGS="$xorg_testset_save_CFLAGS" 16046 16047 eval supported=\$$cacheid 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16049$as_echo "$supported" >&6; } 16050 if test "$supported" = "yes" ; then 16051 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16052 found="yes" 16053 fi 16054 fi 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070xorg_testset_save_CFLAGS="$CFLAGS" 16071 16072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16077 $as_echo_n "(cached) " >&6 16078else 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081int i; 16082_ACEOF 16083if ac_fn_c_try_compile "$LINENO"; then : 16084 xorg_cv_cc_flag_unknown_warning_option=yes 16085else 16086 xorg_cv_cc_flag_unknown_warning_option=no 16087fi 16088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16089fi 16090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16093 CFLAGS="$xorg_testset_save_CFLAGS" 16094fi 16095 16096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16099 fi 16100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16104 $as_echo_n "(cached) " >&6 16105else 16106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16107/* end confdefs.h. */ 16108int i; 16109_ACEOF 16110if ac_fn_c_try_compile "$LINENO"; then : 16111 xorg_cv_cc_flag_unused_command_line_argument=yes 16112else 16113 xorg_cv_cc_flag_unused_command_line_argument=no 16114fi 16115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16116fi 16117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16120 CFLAGS="$xorg_testset_save_CFLAGS" 16121fi 16122 16123found="no" 16124 16125 if test $found = "no" ; then 16126 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16128 fi 16129 16130 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16132 fi 16133 16134 CFLAGS="$CFLAGS -Winit-self" 16135 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 16137$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 16138 cacheid=xorg_cv_cc_flag__Winit_self 16139 if eval \${$cacheid+:} false; then : 16140 $as_echo_n "(cached) " >&6 16141else 16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16143/* end confdefs.h. */ 16144int i; 16145int 16146main () 16147{ 16148 16149 ; 16150 return 0; 16151} 16152_ACEOF 16153if ac_fn_c_try_link "$LINENO"; then : 16154 eval $cacheid=yes 16155else 16156 eval $cacheid=no 16157fi 16158rm -f core conftest.err conftest.$ac_objext \ 16159 conftest$ac_exeext conftest.$ac_ext 16160fi 16161 16162 16163 CFLAGS="$xorg_testset_save_CFLAGS" 16164 16165 eval supported=\$$cacheid 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16167$as_echo "$supported" >&6; } 16168 if test "$supported" = "yes" ; then 16169 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16170 found="yes" 16171 fi 16172 fi 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188xorg_testset_save_CFLAGS="$CFLAGS" 16189 16190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199int i; 16200_ACEOF 16201if ac_fn_c_try_compile "$LINENO"; then : 16202 xorg_cv_cc_flag_unknown_warning_option=yes 16203else 16204 xorg_cv_cc_flag_unknown_warning_option=no 16205fi 16206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16207fi 16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16211 CFLAGS="$xorg_testset_save_CFLAGS" 16212fi 16213 16214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16217 fi 16218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16222 $as_echo_n "(cached) " >&6 16223else 16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16225/* end confdefs.h. */ 16226int i; 16227_ACEOF 16228if ac_fn_c_try_compile "$LINENO"; then : 16229 xorg_cv_cc_flag_unused_command_line_argument=yes 16230else 16231 xorg_cv_cc_flag_unused_command_line_argument=no 16232fi 16233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16234fi 16235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16238 CFLAGS="$xorg_testset_save_CFLAGS" 16239fi 16240 16241found="no" 16242 16243 if test $found = "no" ; then 16244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16246 fi 16247 16248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16250 fi 16251 16252 CFLAGS="$CFLAGS -Wmain" 16253 16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 16255$as_echo_n "checking if $CC supports-Wmain... " >&6; } 16256 cacheid=xorg_cv_cc_flag__Wmain 16257 if eval \${$cacheid+:} false; then : 16258 $as_echo_n "(cached) " >&6 16259else 16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16261/* end confdefs.h. */ 16262int i; 16263int 16264main () 16265{ 16266 16267 ; 16268 return 0; 16269} 16270_ACEOF 16271if ac_fn_c_try_link "$LINENO"; then : 16272 eval $cacheid=yes 16273else 16274 eval $cacheid=no 16275fi 16276rm -f core conftest.err conftest.$ac_objext \ 16277 conftest$ac_exeext conftest.$ac_ext 16278fi 16279 16280 16281 CFLAGS="$xorg_testset_save_CFLAGS" 16282 16283 eval supported=\$$cacheid 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16285$as_echo "$supported" >&6; } 16286 if test "$supported" = "yes" ; then 16287 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16288 found="yes" 16289 fi 16290 fi 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306xorg_testset_save_CFLAGS="$CFLAGS" 16307 16308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16313 $as_echo_n "(cached) " >&6 16314else 16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16316/* end confdefs.h. */ 16317int i; 16318_ACEOF 16319if ac_fn_c_try_compile "$LINENO"; then : 16320 xorg_cv_cc_flag_unknown_warning_option=yes 16321else 16322 xorg_cv_cc_flag_unknown_warning_option=no 16323fi 16324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16325fi 16326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16329 CFLAGS="$xorg_testset_save_CFLAGS" 16330fi 16331 16332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16335 fi 16336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16340 $as_echo_n "(cached) " >&6 16341else 16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16343/* end confdefs.h. */ 16344int i; 16345_ACEOF 16346if ac_fn_c_try_compile "$LINENO"; then : 16347 xorg_cv_cc_flag_unused_command_line_argument=yes 16348else 16349 xorg_cv_cc_flag_unused_command_line_argument=no 16350fi 16351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16352fi 16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16356 CFLAGS="$xorg_testset_save_CFLAGS" 16357fi 16358 16359found="no" 16360 16361 if test $found = "no" ; then 16362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16364 fi 16365 16366 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16368 fi 16369 16370 CFLAGS="$CFLAGS -Wmissing-braces" 16371 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 16373$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 16374 cacheid=xorg_cv_cc_flag__Wmissing_braces 16375 if eval \${$cacheid+:} false; then : 16376 $as_echo_n "(cached) " >&6 16377else 16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16379/* end confdefs.h. */ 16380int i; 16381int 16382main () 16383{ 16384 16385 ; 16386 return 0; 16387} 16388_ACEOF 16389if ac_fn_c_try_link "$LINENO"; then : 16390 eval $cacheid=yes 16391else 16392 eval $cacheid=no 16393fi 16394rm -f core conftest.err conftest.$ac_objext \ 16395 conftest$ac_exeext conftest.$ac_ext 16396fi 16397 16398 16399 CFLAGS="$xorg_testset_save_CFLAGS" 16400 16401 eval supported=\$$cacheid 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16403$as_echo "$supported" >&6; } 16404 if test "$supported" = "yes" ; then 16405 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16406 found="yes" 16407 fi 16408 fi 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424xorg_testset_save_CFLAGS="$CFLAGS" 16425 16426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16431 $as_echo_n "(cached) " >&6 16432else 16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434/* end confdefs.h. */ 16435int i; 16436_ACEOF 16437if ac_fn_c_try_compile "$LINENO"; then : 16438 xorg_cv_cc_flag_unknown_warning_option=yes 16439else 16440 xorg_cv_cc_flag_unknown_warning_option=no 16441fi 16442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16443fi 16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448fi 16449 16450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16453 fi 16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16458 $as_echo_n "(cached) " >&6 16459else 16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16461/* end confdefs.h. */ 16462int i; 16463_ACEOF 16464if ac_fn_c_try_compile "$LINENO"; then : 16465 xorg_cv_cc_flag_unused_command_line_argument=yes 16466else 16467 xorg_cv_cc_flag_unused_command_line_argument=no 16468fi 16469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16470fi 16471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16474 CFLAGS="$xorg_testset_save_CFLAGS" 16475fi 16476 16477found="no" 16478 16479 if test $found = "no" ; then 16480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16482 fi 16483 16484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16486 fi 16487 16488 CFLAGS="$CFLAGS -Wsequence-point" 16489 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 16491$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 16492 cacheid=xorg_cv_cc_flag__Wsequence_point 16493 if eval \${$cacheid+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495else 16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497/* end confdefs.h. */ 16498int i; 16499int 16500main () 16501{ 16502 16503 ; 16504 return 0; 16505} 16506_ACEOF 16507if ac_fn_c_try_link "$LINENO"; then : 16508 eval $cacheid=yes 16509else 16510 eval $cacheid=no 16511fi 16512rm -f core conftest.err conftest.$ac_objext \ 16513 conftest$ac_exeext conftest.$ac_ext 16514fi 16515 16516 16517 CFLAGS="$xorg_testset_save_CFLAGS" 16518 16519 eval supported=\$$cacheid 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16521$as_echo "$supported" >&6; } 16522 if test "$supported" = "yes" ; then 16523 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16524 found="yes" 16525 fi 16526 fi 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542xorg_testset_save_CFLAGS="$CFLAGS" 16543 16544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16549 $as_echo_n "(cached) " >&6 16550else 16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16552/* end confdefs.h. */ 16553int i; 16554_ACEOF 16555if ac_fn_c_try_compile "$LINENO"; then : 16556 xorg_cv_cc_flag_unknown_warning_option=yes 16557else 16558 xorg_cv_cc_flag_unknown_warning_option=no 16559fi 16560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16561fi 16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16565 CFLAGS="$xorg_testset_save_CFLAGS" 16566fi 16567 16568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 fi 16572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16576 $as_echo_n "(cached) " >&6 16577else 16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16579/* end confdefs.h. */ 16580int i; 16581_ACEOF 16582if ac_fn_c_try_compile "$LINENO"; then : 16583 xorg_cv_cc_flag_unused_command_line_argument=yes 16584else 16585 xorg_cv_cc_flag_unused_command_line_argument=no 16586fi 16587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16588fi 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16592 CFLAGS="$xorg_testset_save_CFLAGS" 16593fi 16594 16595found="no" 16596 16597 if test $found = "no" ; then 16598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16600 fi 16601 16602 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16604 fi 16605 16606 CFLAGS="$CFLAGS -Wreturn-type" 16607 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 16609$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 16610 cacheid=xorg_cv_cc_flag__Wreturn_type 16611 if eval \${$cacheid+:} false; then : 16612 $as_echo_n "(cached) " >&6 16613else 16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16615/* end confdefs.h. */ 16616int i; 16617int 16618main () 16619{ 16620 16621 ; 16622 return 0; 16623} 16624_ACEOF 16625if ac_fn_c_try_link "$LINENO"; then : 16626 eval $cacheid=yes 16627else 16628 eval $cacheid=no 16629fi 16630rm -f core conftest.err conftest.$ac_objext \ 16631 conftest$ac_exeext conftest.$ac_ext 16632fi 16633 16634 16635 CFLAGS="$xorg_testset_save_CFLAGS" 16636 16637 eval supported=\$$cacheid 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16639$as_echo "$supported" >&6; } 16640 if test "$supported" = "yes" ; then 16641 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16642 found="yes" 16643 fi 16644 fi 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660xorg_testset_save_CFLAGS="$CFLAGS" 16661 16662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16667 $as_echo_n "(cached) " >&6 16668else 16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16670/* end confdefs.h. */ 16671int i; 16672_ACEOF 16673if ac_fn_c_try_compile "$LINENO"; then : 16674 xorg_cv_cc_flag_unknown_warning_option=yes 16675else 16676 xorg_cv_cc_flag_unknown_warning_option=no 16677fi 16678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16679fi 16680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16683 CFLAGS="$xorg_testset_save_CFLAGS" 16684fi 16685 16686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16689 fi 16690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16694 $as_echo_n "(cached) " >&6 16695else 16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16697/* end confdefs.h. */ 16698int i; 16699_ACEOF 16700if ac_fn_c_try_compile "$LINENO"; then : 16701 xorg_cv_cc_flag_unused_command_line_argument=yes 16702else 16703 xorg_cv_cc_flag_unused_command_line_argument=no 16704fi 16705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16706fi 16707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16710 CFLAGS="$xorg_testset_save_CFLAGS" 16711fi 16712 16713found="no" 16714 16715 if test $found = "no" ; then 16716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16718 fi 16719 16720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16722 fi 16723 16724 CFLAGS="$CFLAGS -Wtrigraphs" 16725 16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 16727$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 16728 cacheid=xorg_cv_cc_flag__Wtrigraphs 16729 if eval \${$cacheid+:} false; then : 16730 $as_echo_n "(cached) " >&6 16731else 16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16733/* end confdefs.h. */ 16734int i; 16735int 16736main () 16737{ 16738 16739 ; 16740 return 0; 16741} 16742_ACEOF 16743if ac_fn_c_try_link "$LINENO"; then : 16744 eval $cacheid=yes 16745else 16746 eval $cacheid=no 16747fi 16748rm -f core conftest.err conftest.$ac_objext \ 16749 conftest$ac_exeext conftest.$ac_ext 16750fi 16751 16752 16753 CFLAGS="$xorg_testset_save_CFLAGS" 16754 16755 eval supported=\$$cacheid 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16757$as_echo "$supported" >&6; } 16758 if test "$supported" = "yes" ; then 16759 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16760 found="yes" 16761 fi 16762 fi 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778xorg_testset_save_CFLAGS="$CFLAGS" 16779 16780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16785 $as_echo_n "(cached) " >&6 16786else 16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16788/* end confdefs.h. */ 16789int i; 16790_ACEOF 16791if ac_fn_c_try_compile "$LINENO"; then : 16792 xorg_cv_cc_flag_unknown_warning_option=yes 16793else 16794 xorg_cv_cc_flag_unknown_warning_option=no 16795fi 16796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16797fi 16798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16801 CFLAGS="$xorg_testset_save_CFLAGS" 16802fi 16803 16804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16807 fi 16808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16812 $as_echo_n "(cached) " >&6 16813else 16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16815/* end confdefs.h. */ 16816int i; 16817_ACEOF 16818if ac_fn_c_try_compile "$LINENO"; then : 16819 xorg_cv_cc_flag_unused_command_line_argument=yes 16820else 16821 xorg_cv_cc_flag_unused_command_line_argument=no 16822fi 16823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16824fi 16825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16828 CFLAGS="$xorg_testset_save_CFLAGS" 16829fi 16830 16831found="no" 16832 16833 if test $found = "no" ; then 16834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16836 fi 16837 16838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16840 fi 16841 16842 CFLAGS="$CFLAGS -Warray-bounds" 16843 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 16845$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 16846 cacheid=xorg_cv_cc_flag__Warray_bounds 16847 if eval \${$cacheid+:} false; then : 16848 $as_echo_n "(cached) " >&6 16849else 16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16851/* end confdefs.h. */ 16852int i; 16853int 16854main () 16855{ 16856 16857 ; 16858 return 0; 16859} 16860_ACEOF 16861if ac_fn_c_try_link "$LINENO"; then : 16862 eval $cacheid=yes 16863else 16864 eval $cacheid=no 16865fi 16866rm -f core conftest.err conftest.$ac_objext \ 16867 conftest$ac_exeext conftest.$ac_ext 16868fi 16869 16870 16871 CFLAGS="$xorg_testset_save_CFLAGS" 16872 16873 eval supported=\$$cacheid 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16875$as_echo "$supported" >&6; } 16876 if test "$supported" = "yes" ; then 16877 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16878 found="yes" 16879 fi 16880 fi 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896xorg_testset_save_CFLAGS="$CFLAGS" 16897 16898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16903 $as_echo_n "(cached) " >&6 16904else 16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16906/* end confdefs.h. */ 16907int i; 16908_ACEOF 16909if ac_fn_c_try_compile "$LINENO"; then : 16910 xorg_cv_cc_flag_unknown_warning_option=yes 16911else 16912 xorg_cv_cc_flag_unknown_warning_option=no 16913fi 16914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16915fi 16916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16919 CFLAGS="$xorg_testset_save_CFLAGS" 16920fi 16921 16922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16925 fi 16926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16930 $as_echo_n "(cached) " >&6 16931else 16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16933/* end confdefs.h. */ 16934int i; 16935_ACEOF 16936if ac_fn_c_try_compile "$LINENO"; then : 16937 xorg_cv_cc_flag_unused_command_line_argument=yes 16938else 16939 xorg_cv_cc_flag_unused_command_line_argument=no 16940fi 16941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16942fi 16943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16946 CFLAGS="$xorg_testset_save_CFLAGS" 16947fi 16948 16949found="no" 16950 16951 if test $found = "no" ; then 16952 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16954 fi 16955 16956 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16958 fi 16959 16960 CFLAGS="$CFLAGS -Wwrite-strings" 16961 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 16963$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 16964 cacheid=xorg_cv_cc_flag__Wwrite_strings 16965 if eval \${$cacheid+:} false; then : 16966 $as_echo_n "(cached) " >&6 16967else 16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16969/* end confdefs.h. */ 16970int i; 16971int 16972main () 16973{ 16974 16975 ; 16976 return 0; 16977} 16978_ACEOF 16979if ac_fn_c_try_link "$LINENO"; then : 16980 eval $cacheid=yes 16981else 16982 eval $cacheid=no 16983fi 16984rm -f core conftest.err conftest.$ac_objext \ 16985 conftest$ac_exeext conftest.$ac_ext 16986fi 16987 16988 16989 CFLAGS="$xorg_testset_save_CFLAGS" 16990 16991 eval supported=\$$cacheid 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16993$as_echo "$supported" >&6; } 16994 if test "$supported" = "yes" ; then 16995 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16996 found="yes" 16997 fi 16998 fi 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014xorg_testset_save_CFLAGS="$CFLAGS" 17015 17016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17021 $as_echo_n "(cached) " >&6 17022else 17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17024/* end confdefs.h. */ 17025int i; 17026_ACEOF 17027if ac_fn_c_try_compile "$LINENO"; then : 17028 xorg_cv_cc_flag_unknown_warning_option=yes 17029else 17030 xorg_cv_cc_flag_unknown_warning_option=no 17031fi 17032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17033fi 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17037 CFLAGS="$xorg_testset_save_CFLAGS" 17038fi 17039 17040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17043 fi 17044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17048 $as_echo_n "(cached) " >&6 17049else 17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17051/* end confdefs.h. */ 17052int i; 17053_ACEOF 17054if ac_fn_c_try_compile "$LINENO"; then : 17055 xorg_cv_cc_flag_unused_command_line_argument=yes 17056else 17057 xorg_cv_cc_flag_unused_command_line_argument=no 17058fi 17059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17060fi 17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17064 CFLAGS="$xorg_testset_save_CFLAGS" 17065fi 17066 17067found="no" 17068 17069 if test $found = "no" ; then 17070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17072 fi 17073 17074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17076 fi 17077 17078 CFLAGS="$CFLAGS -Waddress" 17079 17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 17081$as_echo_n "checking if $CC supports-Waddress... " >&6; } 17082 cacheid=xorg_cv_cc_flag__Waddress 17083 if eval \${$cacheid+:} false; then : 17084 $as_echo_n "(cached) " >&6 17085else 17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17087/* end confdefs.h. */ 17088int i; 17089int 17090main () 17091{ 17092 17093 ; 17094 return 0; 17095} 17096_ACEOF 17097if ac_fn_c_try_link "$LINENO"; then : 17098 eval $cacheid=yes 17099else 17100 eval $cacheid=no 17101fi 17102rm -f core conftest.err conftest.$ac_objext \ 17103 conftest$ac_exeext conftest.$ac_ext 17104fi 17105 17106 17107 CFLAGS="$xorg_testset_save_CFLAGS" 17108 17109 eval supported=\$$cacheid 17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17111$as_echo "$supported" >&6; } 17112 if test "$supported" = "yes" ; then 17113 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17114 found="yes" 17115 fi 17116 fi 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132xorg_testset_save_CFLAGS="$CFLAGS" 17133 17134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17139 $as_echo_n "(cached) " >&6 17140else 17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17142/* end confdefs.h. */ 17143int i; 17144_ACEOF 17145if ac_fn_c_try_compile "$LINENO"; then : 17146 xorg_cv_cc_flag_unknown_warning_option=yes 17147else 17148 xorg_cv_cc_flag_unknown_warning_option=no 17149fi 17150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17151fi 17152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17155 CFLAGS="$xorg_testset_save_CFLAGS" 17156fi 17157 17158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17161 fi 17162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17166 $as_echo_n "(cached) " >&6 17167else 17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17169/* end confdefs.h. */ 17170int i; 17171_ACEOF 17172if ac_fn_c_try_compile "$LINENO"; then : 17173 xorg_cv_cc_flag_unused_command_line_argument=yes 17174else 17175 xorg_cv_cc_flag_unused_command_line_argument=no 17176fi 17177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17178fi 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17182 CFLAGS="$xorg_testset_save_CFLAGS" 17183fi 17184 17185found="no" 17186 17187 if test $found = "no" ; then 17188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17190 fi 17191 17192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17194 fi 17195 17196 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17197 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 17199$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 17200 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17201 if eval \${$cacheid+:} false; then : 17202 $as_echo_n "(cached) " >&6 17203else 17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17205/* end confdefs.h. */ 17206int i; 17207int 17208main () 17209{ 17210 17211 ; 17212 return 0; 17213} 17214_ACEOF 17215if ac_fn_c_try_link "$LINENO"; then : 17216 eval $cacheid=yes 17217else 17218 eval $cacheid=no 17219fi 17220rm -f core conftest.err conftest.$ac_objext \ 17221 conftest$ac_exeext conftest.$ac_ext 17222fi 17223 17224 17225 CFLAGS="$xorg_testset_save_CFLAGS" 17226 17227 eval supported=\$$cacheid 17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17229$as_echo "$supported" >&6; } 17230 if test "$supported" = "yes" ; then 17231 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17232 found="yes" 17233 fi 17234 fi 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250xorg_testset_save_CFLAGS="$CFLAGS" 17251 17252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17257 $as_echo_n "(cached) " >&6 17258else 17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17260/* end confdefs.h. */ 17261int i; 17262_ACEOF 17263if ac_fn_c_try_compile "$LINENO"; then : 17264 xorg_cv_cc_flag_unknown_warning_option=yes 17265else 17266 xorg_cv_cc_flag_unknown_warning_option=no 17267fi 17268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17269fi 17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17273 CFLAGS="$xorg_testset_save_CFLAGS" 17274fi 17275 17276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17279 fi 17280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17284 $as_echo_n "(cached) " >&6 17285else 17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17287/* end confdefs.h. */ 17288int i; 17289_ACEOF 17290if ac_fn_c_try_compile "$LINENO"; then : 17291 xorg_cv_cc_flag_unused_command_line_argument=yes 17292else 17293 xorg_cv_cc_flag_unused_command_line_argument=no 17294fi 17295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17296fi 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17300 CFLAGS="$xorg_testset_save_CFLAGS" 17301fi 17302 17303found="no" 17304 17305 if test $found = "no" ; then 17306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17308 fi 17309 17310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17312 fi 17313 17314 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17315 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 17317$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 17318 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17319 if eval \${$cacheid+:} false; then : 17320 $as_echo_n "(cached) " >&6 17321else 17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17323/* end confdefs.h. */ 17324int i; 17325int 17326main () 17327{ 17328 17329 ; 17330 return 0; 17331} 17332_ACEOF 17333if ac_fn_c_try_link "$LINENO"; then : 17334 eval $cacheid=yes 17335else 17336 eval $cacheid=no 17337fi 17338rm -f core conftest.err conftest.$ac_objext \ 17339 conftest$ac_exeext conftest.$ac_ext 17340fi 17341 17342 17343 CFLAGS="$xorg_testset_save_CFLAGS" 17344 17345 eval supported=\$$cacheid 17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17347$as_echo "$supported" >&6; } 17348 if test "$supported" = "yes" ; then 17349 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17350 found="yes" 17351 fi 17352 fi 17353 17354 17355fi 17356 17357 17358 17359 17360 17361 17362 17363 CWARNFLAGS="$BASE_CFLAGS" 17364 if test "x$GCC" = xyes ; then 17365 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17366 fi 17367 17368 17369 17370 17371 17372 17373 17374 17375@%:@ Check whether --enable-strict-compilation was given. 17376if test "${enable_strict_compilation+set}" = set; then : 17377 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17378else 17379 STRICT_COMPILE=no 17380fi 17381 17382 17383 17384 17385 17386 17387STRICT_CFLAGS="" 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401xorg_testset_save_CFLAGS="$CFLAGS" 17402 17403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17408 $as_echo_n "(cached) " >&6 17409else 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412int i; 17413_ACEOF 17414if ac_fn_c_try_compile "$LINENO"; then : 17415 xorg_cv_cc_flag_unknown_warning_option=yes 17416else 17417 xorg_cv_cc_flag_unknown_warning_option=no 17418fi 17419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17420fi 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17424 CFLAGS="$xorg_testset_save_CFLAGS" 17425fi 17426 17427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17430 fi 17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436else 17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17438/* end confdefs.h. */ 17439int i; 17440_ACEOF 17441if ac_fn_c_try_compile "$LINENO"; then : 17442 xorg_cv_cc_flag_unused_command_line_argument=yes 17443else 17444 xorg_cv_cc_flag_unused_command_line_argument=no 17445fi 17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17447fi 17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17451 CFLAGS="$xorg_testset_save_CFLAGS" 17452fi 17453 17454found="no" 17455 17456 if test $found = "no" ; then 17457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17459 fi 17460 17461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17463 fi 17464 17465 CFLAGS="$CFLAGS -pedantic" 17466 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 17468$as_echo_n "checking if $CC supports-pedantic... " >&6; } 17469 cacheid=xorg_cv_cc_flag__pedantic 17470 if eval \${$cacheid+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475int i; 17476int 17477main () 17478{ 17479 17480 ; 17481 return 0; 17482} 17483_ACEOF 17484if ac_fn_c_try_link "$LINENO"; then : 17485 eval $cacheid=yes 17486else 17487 eval $cacheid=no 17488fi 17489rm -f core conftest.err conftest.$ac_objext \ 17490 conftest$ac_exeext conftest.$ac_ext 17491fi 17492 17493 17494 CFLAGS="$xorg_testset_save_CFLAGS" 17495 17496 eval supported=\$$cacheid 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17498$as_echo "$supported" >&6; } 17499 if test "$supported" = "yes" ; then 17500 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17501 found="yes" 17502 fi 17503 fi 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519xorg_testset_save_CFLAGS="$CFLAGS" 17520 17521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17526 $as_echo_n "(cached) " >&6 17527else 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531_ACEOF 17532if ac_fn_c_try_compile "$LINENO"; then : 17533 xorg_cv_cc_flag_unknown_warning_option=yes 17534else 17535 xorg_cv_cc_flag_unknown_warning_option=no 17536fi 17537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17538fi 17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17542 CFLAGS="$xorg_testset_save_CFLAGS" 17543fi 17544 17545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557int i; 17558_ACEOF 17559if ac_fn_c_try_compile "$LINENO"; then : 17560 xorg_cv_cc_flag_unused_command_line_argument=yes 17561else 17562 xorg_cv_cc_flag_unused_command_line_argument=no 17563fi 17564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17569 CFLAGS="$xorg_testset_save_CFLAGS" 17570fi 17571 17572found="no" 17573 17574 if test $found = "no" ; then 17575 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17577 fi 17578 17579 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17581 fi 17582 17583 CFLAGS="$CFLAGS -Werror" 17584 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 17586$as_echo_n "checking if $CC supports-Werror... " >&6; } 17587 cacheid=xorg_cv_cc_flag__Werror 17588 if eval \${$cacheid+:} false; then : 17589 $as_echo_n "(cached) " >&6 17590else 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593int i; 17594int 17595main () 17596{ 17597 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602if ac_fn_c_try_link "$LINENO"; then : 17603 eval $cacheid=yes 17604else 17605 eval $cacheid=no 17606fi 17607rm -f core conftest.err conftest.$ac_objext \ 17608 conftest$ac_exeext conftest.$ac_ext 17609fi 17610 17611 17612 CFLAGS="$xorg_testset_save_CFLAGS" 17613 17614 eval supported=\$$cacheid 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17616$as_echo "$supported" >&6; } 17617 if test "$supported" = "yes" ; then 17618 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17619 found="yes" 17620 fi 17621 fi 17622 17623 if test $found = "no" ; then 17624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17626 fi 17627 17628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17630 fi 17631 17632 CFLAGS="$CFLAGS -errwarn" 17633 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 17635$as_echo_n "checking if $CC supports-errwarn... " >&6; } 17636 cacheid=xorg_cv_cc_flag__errwarn 17637 if eval \${$cacheid+:} false; then : 17638 $as_echo_n "(cached) " >&6 17639else 17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17641/* end confdefs.h. */ 17642int i; 17643int 17644main () 17645{ 17646 17647 ; 17648 return 0; 17649} 17650_ACEOF 17651if ac_fn_c_try_link "$LINENO"; then : 17652 eval $cacheid=yes 17653else 17654 eval $cacheid=no 17655fi 17656rm -f core conftest.err conftest.$ac_objext \ 17657 conftest$ac_exeext conftest.$ac_ext 17658fi 17659 17660 17661 CFLAGS="$xorg_testset_save_CFLAGS" 17662 17663 eval supported=\$$cacheid 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17665$as_echo "$supported" >&6; } 17666 if test "$supported" = "yes" ; then 17667 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17668 found="yes" 17669 fi 17670 fi 17671 17672 17673 17674# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17675# activate it with -Werror, so we add it here explicitly. 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689xorg_testset_save_CFLAGS="$CFLAGS" 17690 17691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17696 $as_echo_n "(cached) " >&6 17697else 17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17699/* end confdefs.h. */ 17700int i; 17701_ACEOF 17702if ac_fn_c_try_compile "$LINENO"; then : 17703 xorg_cv_cc_flag_unknown_warning_option=yes 17704else 17705 xorg_cv_cc_flag_unknown_warning_option=no 17706fi 17707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17708fi 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17712 CFLAGS="$xorg_testset_save_CFLAGS" 17713fi 17714 17715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17718 fi 17719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17723 $as_echo_n "(cached) " >&6 17724else 17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17726/* end confdefs.h. */ 17727int i; 17728_ACEOF 17729if ac_fn_c_try_compile "$LINENO"; then : 17730 xorg_cv_cc_flag_unused_command_line_argument=yes 17731else 17732 xorg_cv_cc_flag_unused_command_line_argument=no 17733fi 17734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17735fi 17736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17739 CFLAGS="$xorg_testset_save_CFLAGS" 17740fi 17741 17742found="no" 17743 17744 if test $found = "no" ; then 17745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17747 fi 17748 17749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17751 fi 17752 17753 CFLAGS="$CFLAGS -Werror=attributes" 17754 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 17756$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 17757 cacheid=xorg_cv_cc_flag__Werror_attributes 17758 if eval \${$cacheid+:} false; then : 17759 $as_echo_n "(cached) " >&6 17760else 17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762/* end confdefs.h. */ 17763int i; 17764int 17765main () 17766{ 17767 17768 ; 17769 return 0; 17770} 17771_ACEOF 17772if ac_fn_c_try_link "$LINENO"; then : 17773 eval $cacheid=yes 17774else 17775 eval $cacheid=no 17776fi 17777rm -f core conftest.err conftest.$ac_objext \ 17778 conftest$ac_exeext conftest.$ac_ext 17779fi 17780 17781 17782 CFLAGS="$xorg_testset_save_CFLAGS" 17783 17784 eval supported=\$$cacheid 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17786$as_echo "$supported" >&6; } 17787 if test "$supported" = "yes" ; then 17788 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17789 found="yes" 17790 fi 17791 fi 17792 17793 17794 17795if test "x$STRICT_COMPILE" = "xyes"; then 17796 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17797 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17798fi 17799 17800 17801 17802 17803 17804 17805cat >>confdefs.h <<_ACEOF 17806@%:@define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17807_ACEOF 17808 17809 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17810 if test "x$PVM" = "x"; then 17811 PVM="0" 17812 fi 17813 17814cat >>confdefs.h <<_ACEOF 17815@%:@define PACKAGE_VERSION_MINOR $PVM 17816_ACEOF 17817 17818 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17819 if test "x$PVP" = "x"; then 17820 PVP="0" 17821 fi 17822 17823cat >>confdefs.h <<_ACEOF 17824@%:@define PACKAGE_VERSION_PATCHLEVEL $PVP 17825_ACEOF 17826 17827 17828 17829CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17830mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17831|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17832echo 'git directory not found: installing possibly empty changelog.' >&2)" 17833 17834 17835 17836 17837macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17838INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17839mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17840|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17841echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17842 17843 17844 17845 17846 17847 17848if test x$APP_MAN_SUFFIX = x ; then 17849 APP_MAN_SUFFIX=1 17850fi 17851if test x$APP_MAN_DIR = x ; then 17852 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17853fi 17854 17855if test x$LIB_MAN_SUFFIX = x ; then 17856 LIB_MAN_SUFFIX=3 17857fi 17858if test x$LIB_MAN_DIR = x ; then 17859 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17860fi 17861 17862if test x$FILE_MAN_SUFFIX = x ; then 17863 case $host_os in 17864 solaris*) FILE_MAN_SUFFIX=4 ;; 17865 *) FILE_MAN_SUFFIX=5 ;; 17866 esac 17867fi 17868if test x$FILE_MAN_DIR = x ; then 17869 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17870fi 17871 17872if test x$MISC_MAN_SUFFIX = x ; then 17873 case $host_os in 17874 solaris*) MISC_MAN_SUFFIX=5 ;; 17875 *) MISC_MAN_SUFFIX=7 ;; 17876 esac 17877fi 17878if test x$MISC_MAN_DIR = x ; then 17879 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17880fi 17881 17882if test x$DRIVER_MAN_SUFFIX = x ; then 17883 case $host_os in 17884 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17885 *) DRIVER_MAN_SUFFIX=4 ;; 17886 esac 17887fi 17888if test x$DRIVER_MAN_DIR = x ; then 17889 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17890fi 17891 17892if test x$ADMIN_MAN_SUFFIX = x ; then 17893 case $host_os in 17894 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17895 *) ADMIN_MAN_SUFFIX=8 ;; 17896 esac 17897fi 17898if test x$ADMIN_MAN_DIR = x ; then 17899 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17900fi 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916XORG_MAN_PAGE="X Version 11" 17917 17918MAN_SUBSTS="\ 17919 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17920 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17921 -e 's|__xservername__|Xorg|g' \ 17922 -e 's|__xconfigfile__|xorg.conf|g' \ 17923 -e 's|__projectroot__|\$(prefix)|g' \ 17924 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17925 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17926 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17927 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17928 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17929 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17930 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17931 17932 17933 17934@%:@ Check whether --enable-silent-rules was given. 17935if test "${enable_silent_rules+set}" = set; then : 17936 enableval=$enable_silent_rules; 17937fi 17938 17939case $enable_silent_rules in @%:@ ((( 17940 yes) AM_DEFAULT_VERBOSITY=0;; 17941 no) AM_DEFAULT_VERBOSITY=1;; 17942 *) AM_DEFAULT_VERBOSITY=0;; 17943esac 17944am_make=${MAKE-make} 17945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17946$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17947if ${am_cv_make_support_nested_variables+:} false; then : 17948 $as_echo_n "(cached) " >&6 17949else 17950 if $as_echo 'TRUE=$(BAR$(V)) 17951BAR0=false 17952BAR1=true 17953V=1 17954am__doit: 17955 @$(TRUE) 17956.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17957 am_cv_make_support_nested_variables=yes 17958else 17959 am_cv_make_support_nested_variables=no 17960fi 17961fi 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17963$as_echo "$am_cv_make_support_nested_variables" >&6; } 17964if test $am_cv_make_support_nested_variables = yes; then 17965 AM_V='$(V)' 17966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17967else 17968 AM_V=$AM_DEFAULT_VERBOSITY 17969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17970fi 17971AM_BACKSLASH='\' 17972 17973 17974 17975 17976 17977 17978 17979# Check for different types of support on different platforms 17980case $host_os in 17981 solaris*) 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 17983$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 17984if ${ac_cv_lib_umem_umem_alloc+:} false; then : 17985 $as_echo_n "(cached) " >&6 17986else 17987 ac_check_lib_save_LIBS=$LIBS 17988LIBS="-lumem $LIBS" 17989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17990/* end confdefs.h. */ 17991 17992/* Override any GCC internal prototype to avoid an error. 17993 Use char because int might match the return type of a GCC 17994 builtin and then its argument prototype would still apply. */ 17995#ifdef __cplusplus 17996extern "C" 17997#endif 17998char umem_alloc (); 17999int 18000main () 18001{ 18002return umem_alloc (); 18003 ; 18004 return 0; 18005} 18006_ACEOF 18007if ac_fn_c_try_link "$LINENO"; then : 18008 ac_cv_lib_umem_umem_alloc=yes 18009else 18010 ac_cv_lib_umem_umem_alloc=no 18011fi 18012rm -f core conftest.err conftest.$ac_objext \ 18013 conftest$ac_exeext conftest.$ac_ext 18014LIBS=$ac_check_lib_save_LIBS 18015fi 18016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 18017$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 18018if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 18019 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 18020fi 18021 18022 ;; 18023 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 18024 # both directly and inverted, so should not be 0 or 255. 18025 malloc_debug_env='MALLOC_PERTURB_=15' 18026 ;; 18027 darwin*) 18028 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 18029 ;; 18030 *bsd*) 18031 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 18032 ;; 18033esac 18034 18035# User supplied flags override default flags 18036if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 18037 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 18038fi 18039 18040XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 18041 18042 18043 18044 18045@%:@ Check whether --enable-docs was given. 18046if test "${enable_docs+set}" = set; then : 18047 enableval=$enable_docs; build_docs=$enableval 18048else 18049 build_docs=yes 18050fi 18051 18052 18053 if test x$build_docs = xyes; then 18054 ENABLE_DOCS_TRUE= 18055 ENABLE_DOCS_FALSE='#' 18056else 18057 ENABLE_DOCS_TRUE='#' 18058 ENABLE_DOCS_FALSE= 18059fi 18060 18061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 18062$as_echo_n "checking whether to build documentation... " >&6; } 18063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 18064$as_echo "$build_docs" >&6; } 18065 18066 18067 18068 18069 18070@%:@ Check whether --with-doxygen was given. 18071if test "${with_doxygen+set}" = set; then : 18072 withval=$with_doxygen; use_doxygen=$withval 18073else 18074 use_doxygen=auto 18075fi 18076 18077 18078 18079if test "x$use_doxygen" = x"auto"; then 18080 # Extract the first word of "doxygen", so it can be a program name with args. 18081set dummy doxygen; ac_word=$2 18082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18083$as_echo_n "checking for $ac_word... " >&6; } 18084if ${ac_cv_path_DOXYGEN+:} false; then : 18085 $as_echo_n "(cached) " >&6 18086else 18087 case $DOXYGEN in 18088 [\\/]* | ?:[\\/]*) 18089 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18090 ;; 18091 *) 18092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18093for as_dir in $PATH 18094do 18095 IFS=$as_save_IFS 18096 test -z "$as_dir" && as_dir=. 18097 for ac_exec_ext in '' $ac_executable_extensions; do 18098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18099 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18101 break 2 18102 fi 18103done 18104 done 18105IFS=$as_save_IFS 18106 18107 ;; 18108esac 18109fi 18110DOXYGEN=$ac_cv_path_DOXYGEN 18111if test -n "$DOXYGEN"; then 18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18113$as_echo "$DOXYGEN" >&6; } 18114else 18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18116$as_echo "no" >&6; } 18117fi 18118 18119 18120 if test "x$DOXYGEN" = "x"; then 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 18122$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 18123 have_doxygen=no 18124 else 18125 have_doxygen=yes 18126 fi 18127elif test "x$use_doxygen" = x"yes" ; then 18128 # Extract the first word of "doxygen", so it can be a program name with args. 18129set dummy doxygen; ac_word=$2 18130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18131$as_echo_n "checking for $ac_word... " >&6; } 18132if ${ac_cv_path_DOXYGEN+:} false; then : 18133 $as_echo_n "(cached) " >&6 18134else 18135 case $DOXYGEN in 18136 [\\/]* | ?:[\\/]*) 18137 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18138 ;; 18139 *) 18140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18141for as_dir in $PATH 18142do 18143 IFS=$as_save_IFS 18144 test -z "$as_dir" && as_dir=. 18145 for ac_exec_ext in '' $ac_executable_extensions; do 18146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18147 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18149 break 2 18150 fi 18151done 18152 done 18153IFS=$as_save_IFS 18154 18155 ;; 18156esac 18157fi 18158DOXYGEN=$ac_cv_path_DOXYGEN 18159if test -n "$DOXYGEN"; then 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18161$as_echo "$DOXYGEN" >&6; } 18162else 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18164$as_echo "no" >&6; } 18165fi 18166 18167 18168 if test "x$DOXYGEN" = "x"; then 18169 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 18170 fi 18171 have_doxygen=yes 18172elif test "x$use_doxygen" = x"no" ; then 18173 if test "x$DOXYGEN" != "x"; then 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 18175$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 18176 fi 18177 have_doxygen=no 18178else 18179 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 18180fi 18181 18182 if test "$have_doxygen" = yes; then 18183 HAVE_DOXYGEN_TRUE= 18184 HAVE_DOXYGEN_FALSE='#' 18185else 18186 HAVE_DOXYGEN_TRUE='#' 18187 HAVE_DOXYGEN_FALSE= 18188fi 18189 18190 18191 18192# Needed in older Automakes for subdir-objects 18193 18194 18195# Check for compiler features 18196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18197$as_echo_n "checking for inline... " >&6; } 18198if ${ac_cv_c_inline+:} false; then : 18199 $as_echo_n "(cached) " >&6 18200else 18201 ac_cv_c_inline=no 18202for ac_kw in inline __inline__ __inline; do 18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18204/* end confdefs.h. */ 18205#ifndef __cplusplus 18206typedef int foo_t; 18207static $ac_kw foo_t static_foo () {return 0; } 18208$ac_kw foo_t foo () {return 0; } 18209#endif 18210 18211_ACEOF 18212if ac_fn_c_try_compile "$LINENO"; then : 18213 ac_cv_c_inline=$ac_kw 18214fi 18215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18216 test "$ac_cv_c_inline" != no && break 18217done 18218 18219fi 18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18221$as_echo "$ac_cv_c_inline" >&6; } 18222 18223case $ac_cv_c_inline in 18224 inline | yes) ;; 18225 *) 18226 case $ac_cv_c_inline in 18227 no) ac_val=;; 18228 *) ac_val=$ac_cv_c_inline;; 18229 esac 18230 cat >>confdefs.h <<_ACEOF 18231#ifndef __cplusplus 18232#define inline $ac_val 18233#endif 18234_ACEOF 18235 ;; 18236esac 18237 18238 18239# Check for programs 18240 18241 18242 18243 18244 18245 18246 18247 18248if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18249 if test -n "$ac_tool_prefix"; then 18250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18251set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18253$as_echo_n "checking for $ac_word... " >&6; } 18254if ${ac_cv_path_PKG_CONFIG+:} false; then : 18255 $as_echo_n "(cached) " >&6 18256else 18257 case $PKG_CONFIG in 18258 [\\/]* | ?:[\\/]*) 18259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18260 ;; 18261 *) 18262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18263for as_dir in $PATH 18264do 18265 IFS=$as_save_IFS 18266 test -z "$as_dir" && as_dir=. 18267 for ac_exec_ext in '' $ac_executable_extensions; do 18268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18271 break 2 18272 fi 18273done 18274 done 18275IFS=$as_save_IFS 18276 18277 ;; 18278esac 18279fi 18280PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18281if test -n "$PKG_CONFIG"; then 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18283$as_echo "$PKG_CONFIG" >&6; } 18284else 18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18286$as_echo "no" >&6; } 18287fi 18288 18289 18290fi 18291if test -z "$ac_cv_path_PKG_CONFIG"; then 18292 ac_pt_PKG_CONFIG=$PKG_CONFIG 18293 # Extract the first word of "pkg-config", so it can be a program name with args. 18294set dummy pkg-config; ac_word=$2 18295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18296$as_echo_n "checking for $ac_word... " >&6; } 18297if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18298 $as_echo_n "(cached) " >&6 18299else 18300 case $ac_pt_PKG_CONFIG in 18301 [\\/]* | ?:[\\/]*) 18302 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18303 ;; 18304 *) 18305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18306for as_dir in $PATH 18307do 18308 IFS=$as_save_IFS 18309 test -z "$as_dir" && as_dir=. 18310 for ac_exec_ext in '' $ac_executable_extensions; do 18311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18312 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18314 break 2 18315 fi 18316done 18317 done 18318IFS=$as_save_IFS 18319 18320 ;; 18321esac 18322fi 18323ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18324if test -n "$ac_pt_PKG_CONFIG"; then 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18326$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18327else 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18329$as_echo "no" >&6; } 18330fi 18331 18332 if test "x$ac_pt_PKG_CONFIG" = x; then 18333 PKG_CONFIG="" 18334 else 18335 case $cross_compiling:$ac_tool_warned in 18336yes:) 18337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18339ac_tool_warned=yes ;; 18340esac 18341 PKG_CONFIG=$ac_pt_PKG_CONFIG 18342 fi 18343else 18344 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18345fi 18346 18347fi 18348if test -n "$PKG_CONFIG"; then 18349 _pkg_min_version=0.9.0 18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18351$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18352 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18354$as_echo "yes" >&6; } 18355 else 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18357$as_echo "no" >&6; } 18358 PKG_CONFIG="" 18359 fi 18360fi 18361 18362# Note: we use some yacc extensions, which work with either GNU bison 18363# (preferred) or byacc. Other yacc's may or may not work. 18364for ac_prog in 'bison -y' byacc 18365do 18366 # Extract the first word of "$ac_prog", so it can be a program name with args. 18367set dummy $ac_prog; ac_word=$2 18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18369$as_echo_n "checking for $ac_word... " >&6; } 18370if ${ac_cv_prog_YACC+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372else 18373 if test -n "$YACC"; then 18374 ac_cv_prog_YACC="$YACC" # Let the user override the test. 18375else 18376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18377for as_dir in $PATH 18378do 18379 IFS=$as_save_IFS 18380 test -z "$as_dir" && as_dir=. 18381 for ac_exec_ext in '' $ac_executable_extensions; do 18382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18383 ac_cv_prog_YACC="$ac_prog" 18384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18385 break 2 18386 fi 18387done 18388 done 18389IFS=$as_save_IFS 18390 18391fi 18392fi 18393YACC=$ac_cv_prog_YACC 18394if test -n "$YACC"; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 18396$as_echo "$YACC" >&6; } 18397else 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18399$as_echo "no" >&6; } 18400fi 18401 18402 18403 test -n "$YACC" && break 18404done 18405test -n "$YACC" || YACC="yacc" 18406 18407# Extract the first word of "$YACC", so it can be a program name with args. 18408set dummy $YACC; ac_word=$2 18409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18410$as_echo_n "checking for $ac_word... " >&6; } 18411if ${ac_cv_path_YACC_INST+:} false; then : 18412 $as_echo_n "(cached) " >&6 18413else 18414 case $YACC_INST in 18415 [\\/]* | ?:[\\/]*) 18416 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 18417 ;; 18418 *) 18419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18420for as_dir in $PATH 18421do 18422 IFS=$as_save_IFS 18423 test -z "$as_dir" && as_dir=. 18424 for ac_exec_ext in '' $ac_executable_extensions; do 18425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18426 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext" 18427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18428 break 2 18429 fi 18430done 18431 done 18432IFS=$as_save_IFS 18433 18434 ;; 18435esac 18436fi 18437YACC_INST=$ac_cv_path_YACC_INST 18438if test -n "$YACC_INST"; then 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 18440$as_echo "$YACC_INST" >&6; } 18441else 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18443$as_echo "no" >&6; } 18444fi 18445 18446 18447if test ! -f "src/xkbcomp/parser.c" -a "x$YACC_INST" = x; then : 18448 18449 as_fn_error $? "yacc not found - unable to compile src/xkbcomp/parser.y" "$LINENO" 5 18450 18451fi 18452 18453# Checks for library functions. 18454for ac_func in strcasecmp strncasecmp 18455do : 18456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18457ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18458if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18459 cat >>confdefs.h <<_ACEOF 18460@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18461_ACEOF 18462 18463fi 18464done 18465 18466if test "x$ac_cv_func_strcasecmp" = xno -o \ 18467 "x$ac_cv_func_strncasecmp" = xno; then : 18468 18469 as_fn_error $? "C library does not support strcasecmp/strncasecmp" "$LINENO" 5 18470 18471fi 18472 18473for ac_func in eaccess euidaccess mmap 18474do : 18475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18476ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18477if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18478 cat >>confdefs.h <<_ACEOF 18479@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18480_ACEOF 18481 18482fi 18483done 18484 18485 18486for ac_func in secure_getenv __secure_getenv 18487do : 18488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18489ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18490if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18491 cat >>confdefs.h <<_ACEOF 18492@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18493_ACEOF 18494 18495fi 18496done 18497 18498if test "x$ac_cv_func_secure_getenv" = xno -a \ 18499 "x$ac_cv_func___secure_getenv" = xno; then : 18500 18501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C library does not support secure_getenv, using getenv instead" >&5 18502$as_echo "$as_me: WARNING: C library does not support secure_getenv, using getenv instead" >&2;} 18503 18504fi 18505 18506 18507 18508 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 18510$as_echo_n "checking for __builtin_expect... " >&6; } 18511if ${ax_cv_have___builtin_expect+:} false; then : 18512 $as_echo_n "(cached) " >&6 18513else 18514 18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18516/* end confdefs.h. */ 18517 18518int 18519main () 18520{ 18521 18522 __builtin_expect(0, 0) 18523 18524 ; 18525 return 0; 18526} 18527_ACEOF 18528if ac_fn_c_try_link "$LINENO"; then : 18529 ax_cv_have___builtin_expect=yes 18530else 18531 ax_cv_have___builtin_expect=no 18532fi 18533rm -f core conftest.err conftest.$ac_objext \ 18534 conftest$ac_exeext conftest.$ac_ext 18535 18536fi 18537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_expect" >&5 18538$as_echo "$ax_cv_have___builtin_expect" >&6; } 18539 18540 if test yes = $ax_cv_have___builtin_expect; then : 18541 18542cat >>confdefs.h <<_ACEOF 18543@%:@define HAVE___BUILTIN_EXPECT 1 18544_ACEOF 18545 18546fi 18547 18548 18549 18550 18551# Some tests use Linux-specific headers 18552ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 18553if test "x$ac_cv_header_linux_input_h" = xyes; then : 18554 18555fi 18556 18557 18558 if test "x$ac_cv_header_linux_input_h" = xyes; then 18559 BUILD_LINUX_TESTS_TRUE= 18560 BUILD_LINUX_TESTS_FALSE='#' 18561else 18562 BUILD_LINUX_TESTS_TRUE='#' 18563 BUILD_LINUX_TESTS_FALSE= 18564fi 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580xorg_testset_save_CFLAGS="$CFLAGS" 18581 18582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18587 $as_echo_n "(cached) " >&6 18588else 18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18590/* end confdefs.h. */ 18591int i; 18592_ACEOF 18593if ac_fn_c_try_compile "$LINENO"; then : 18594 xorg_cv_cc_flag_unknown_warning_option=yes 18595else 18596 xorg_cv_cc_flag_unknown_warning_option=no 18597fi 18598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18599fi 18600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18603 CFLAGS="$xorg_testset_save_CFLAGS" 18604fi 18605 18606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18609 fi 18610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18614 $as_echo_n "(cached) " >&6 18615else 18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18617/* end confdefs.h. */ 18618int i; 18619_ACEOF 18620if ac_fn_c_try_compile "$LINENO"; then : 18621 xorg_cv_cc_flag_unused_command_line_argument=yes 18622else 18623 xorg_cv_cc_flag_unused_command_line_argument=no 18624fi 18625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18626fi 18627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18630 CFLAGS="$xorg_testset_save_CFLAGS" 18631fi 18632 18633found="no" 18634 18635 if test $found = "no" ; then 18636 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 18637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18638 fi 18639 18640 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 18641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18642 fi 18643 18644 CFLAGS="$CFLAGS -fvisibility=hidden" 18645 18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-fvisibility=hidden" >&5 18647$as_echo_n "checking if $CC supports-fvisibility=hidden... " >&6; } 18648 cacheid=xorg_cv_cc_flag__fvisibility_hidden 18649 if eval \${$cacheid+:} false; then : 18650 $as_echo_n "(cached) " >&6 18651else 18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18653/* end confdefs.h. */ 18654int i; 18655int 18656main () 18657{ 18658 18659 ; 18660 return 0; 18661} 18662_ACEOF 18663if ac_fn_c_try_link "$LINENO"; then : 18664 eval $cacheid=yes 18665else 18666 eval $cacheid=no 18667fi 18668rm -f core conftest.err conftest.$ac_objext \ 18669 conftest$ac_exeext conftest.$ac_ext 18670fi 18671 18672 18673 CFLAGS="$xorg_testset_save_CFLAGS" 18674 18675 eval supported=\$$cacheid 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18677$as_echo "$supported" >&6; } 18678 if test "$supported" = "yes" ; then 18679 BASE_CFLAGS="$BASE_CFLAGS -fvisibility=hidden" 18680 found="yes" 18681 fi 18682 fi 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698xorg_testset_save_CFLAGS="$CFLAGS" 18699 18700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18705 $as_echo_n "(cached) " >&6 18706else 18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18708/* end confdefs.h. */ 18709int i; 18710_ACEOF 18711if ac_fn_c_try_compile "$LINENO"; then : 18712 xorg_cv_cc_flag_unknown_warning_option=yes 18713else 18714 xorg_cv_cc_flag_unknown_warning_option=no 18715fi 18716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18717fi 18718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18721 CFLAGS="$xorg_testset_save_CFLAGS" 18722fi 18723 18724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18727 fi 18728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18732 $as_echo_n "(cached) " >&6 18733else 18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18735/* end confdefs.h. */ 18736int i; 18737_ACEOF 18738if ac_fn_c_try_compile "$LINENO"; then : 18739 xorg_cv_cc_flag_unused_command_line_argument=yes 18740else 18741 xorg_cv_cc_flag_unused_command_line_argument=no 18742fi 18743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18744fi 18745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18748 CFLAGS="$xorg_testset_save_CFLAGS" 18749fi 18750 18751found="no" 18752 18753 if test $found = "no" ; then 18754 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 18755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18756 fi 18757 18758 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 18759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18760 fi 18761 18762 CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter -Wno-missing-field-initializers" 18763 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wextra -Wno-unused-parameter -Wno-missing-field-initializers" >&5 18765$as_echo_n "checking if $CC supports-Wextra -Wno-unused-parameter -Wno-missing-field-initializers... " >&6; } 18766 cacheid=xorg_cv_cc_flag__Wextra__Wno_unused_parameter__Wno_missing_field_initializers 18767 if eval \${$cacheid+:} false; then : 18768 $as_echo_n "(cached) " >&6 18769else 18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18771/* end confdefs.h. */ 18772int i; 18773int 18774main () 18775{ 18776 18777 ; 18778 return 0; 18779} 18780_ACEOF 18781if ac_fn_c_try_link "$LINENO"; then : 18782 eval $cacheid=yes 18783else 18784 eval $cacheid=no 18785fi 18786rm -f core conftest.err conftest.$ac_objext \ 18787 conftest$ac_exeext conftest.$ac_ext 18788fi 18789 18790 18791 CFLAGS="$xorg_testset_save_CFLAGS" 18792 18793 eval supported=\$$cacheid 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18795$as_echo "$supported" >&6; } 18796 if test "$supported" = "yes" ; then 18797 BASE_CFLAGS="$BASE_CFLAGS -Wextra -Wno-unused-parameter -Wno-missing-field-initializers" 18798 found="yes" 18799 fi 18800 fi 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816xorg_testset_save_CFLAGS="$CFLAGS" 18817 18818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18823 $as_echo_n "(cached) " >&6 18824else 18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18826/* end confdefs.h. */ 18827int i; 18828_ACEOF 18829if ac_fn_c_try_compile "$LINENO"; then : 18830 xorg_cv_cc_flag_unknown_warning_option=yes 18831else 18832 xorg_cv_cc_flag_unknown_warning_option=no 18833fi 18834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18835fi 18836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18839 CFLAGS="$xorg_testset_save_CFLAGS" 18840fi 18841 18842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18845 fi 18846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18850 $as_echo_n "(cached) " >&6 18851else 18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18853/* end confdefs.h. */ 18854int i; 18855_ACEOF 18856if ac_fn_c_try_compile "$LINENO"; then : 18857 xorg_cv_cc_flag_unused_command_line_argument=yes 18858else 18859 xorg_cv_cc_flag_unused_command_line_argument=no 18860fi 18861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18862fi 18863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18866 CFLAGS="$xorg_testset_save_CFLAGS" 18867fi 18868 18869found="no" 18870 18871 if test $found = "no" ; then 18872 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 18873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18874 fi 18875 18876 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 18877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18878 fi 18879 18880 CFLAGS="$CFLAGS -Wdocumentation" 18881 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdocumentation" >&5 18883$as_echo_n "checking if $CC supports-Wdocumentation... " >&6; } 18884 cacheid=xorg_cv_cc_flag__Wdocumentation 18885 if eval \${$cacheid+:} false; then : 18886 $as_echo_n "(cached) " >&6 18887else 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890int i; 18891int 18892main () 18893{ 18894 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899if ac_fn_c_try_link "$LINENO"; then : 18900 eval $cacheid=yes 18901else 18902 eval $cacheid=no 18903fi 18904rm -f core conftest.err conftest.$ac_objext \ 18905 conftest$ac_exeext conftest.$ac_ext 18906fi 18907 18908 18909 CFLAGS="$xorg_testset_save_CFLAGS" 18910 18911 eval supported=\$$cacheid 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18913$as_echo "$supported" >&6; } 18914 if test "$supported" = "yes" ; then 18915 BASE_CFLAGS="$BASE_CFLAGS -Wdocumentation" 18916 found="yes" 18917 fi 18918 fi 18919 18920 18921 18922# OpenBSD does not have DT_NEEDED entries for libc by design 18923# so when these flags are passed to ld via libtool the checks will fail 18924case "$host_os" in 18925openbsd*) 18926 ;; 18927*) 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-undefined" >&5 18929$as_echo_n "checking whether the linker accepts -Wl,--no-undefined... " >&6; } 18930if ${xorg_cv_linker_flags__Wl___no_undefined+:} false; then : 18931 $as_echo_n "(cached) " >&6 18932else 18933 18934 ax_save_FLAGS=$LDFLAGS 18935 LDFLAGS="-Wl,--no-undefined" 18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18937/* end confdefs.h. */ 18938 18939int 18940main () 18941{ 18942 18943 ; 18944 return 0; 18945} 18946_ACEOF 18947if ac_fn_c_try_link "$LINENO"; then : 18948 xorg_cv_linker_flags__Wl___no_undefined=yes 18949else 18950 xorg_cv_linker_flags__Wl___no_undefined=no 18951fi 18952rm -f core conftest.err conftest.$ac_objext \ 18953 conftest$ac_exeext conftest.$ac_ext 18954 LDFLAGS=$ax_save_FLAGS 18955fi 18956 18957eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl___no_undefined 18958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 18959$as_echo "$xorg_check_linker_flags" >&6; } 18960if test "x$xorg_check_linker_flags" = xyes; then 18961 have_no_undefined=yes 18962else 18963 : 18964fi 18965 ;; 18966esac 18967 18968 if test "x$have_no_undefined" = xyes; then 18969 HAVE_NO_UNDEFINED_TRUE= 18970 HAVE_NO_UNDEFINED_FALSE='#' 18971else 18972 HAVE_NO_UNDEFINED_TRUE='#' 18973 HAVE_NO_UNDEFINED_FALSE= 18974fi 18975 18976 18977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 18978$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 18979if ${ac_cv_lib_rt_clock_gettime+:} false; then : 18980 $as_echo_n "(cached) " >&6 18981else 18982 ac_check_lib_save_LIBS=$LIBS 18983LIBS="-lrt -lrt $LIBS" 18984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18985/* end confdefs.h. */ 18986 18987/* Override any GCC internal prototype to avoid an error. 18988 Use char because int might match the return type of a GCC 18989 builtin and then its argument prototype would still apply. */ 18990#ifdef __cplusplus 18991extern "C" 18992#endif 18993char clock_gettime (); 18994int 18995main () 18996{ 18997return clock_gettime (); 18998 ; 18999 return 0; 19000} 19001_ACEOF 19002if ac_fn_c_try_link "$LINENO"; then : 19003 ac_cv_lib_rt_clock_gettime=yes 19004else 19005 ac_cv_lib_rt_clock_gettime=no 19006fi 19007rm -f core conftest.err conftest.$ac_objext \ 19008 conftest$ac_exeext conftest.$ac_ext 19009LIBS=$ac_check_lib_save_LIBS 19010fi 19011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 19012$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 19013if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 19014 RT_LIBS="-lrt" 19015 19016else 19017 RT_LIBS="" 19018 19019fi 19020 19021 19022# Define a configuration option for the XKB config root 19023xkb_base=`$PKG_CONFIG --variable=xkb_base xkeyboard-config` 19024if test "x$xkb_base" = x; then : 19025 19026 xkb_base="$datadir/X11/xkb" 19027 19028fi 19029 19030@%:@ Check whether --with-xkb_config_root was given. 19031if test "${with_xkb_config_root+set}" = set; then : 19032 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval" 19033else 19034 XKBCONFIGROOT="$xkb_base" 19035fi 19036 19037 19038 19039# Define a configuration option for the X locale directory for compose 19040 19041@%:@ Check whether --with-x_locale_root was given. 19042if test "${with_x_locale_root+set}" = set; then : 19043 withval=$with_x_locale_root; XLOCALEDIR="$withval" 19044else 19045 XLOCALEDIR="$datadir/X11/locale" 19046fi 19047 19048 19049 19050 19051@%:@ Check whether --with-default_rules was given. 19052if test "${with_default_rules+set}" = set; then : 19053 withval=$with_default_rules; DEFAULT_XKB_RULES="$withval" 19054else 19055 DEFAULT_XKB_RULES="evdev" 19056fi 19057 19058 19059cat >>confdefs.h <<_ACEOF 19060@%:@define DEFAULT_XKB_RULES "$DEFAULT_XKB_RULES" 19061_ACEOF 19062 19063 19064 19065@%:@ Check whether --with-default_model was given. 19066if test "${with_default_model+set}" = set; then : 19067 withval=$with_default_model; DEFAULT_XKB_MODEL="$withval" 19068else 19069 DEFAULT_XKB_MODEL="pc105" 19070fi 19071 19072 19073cat >>confdefs.h <<_ACEOF 19074@%:@define DEFAULT_XKB_MODEL "$DEFAULT_XKB_MODEL" 19075_ACEOF 19076 19077 19078 19079@%:@ Check whether --with-default_layout was given. 19080if test "${with_default_layout+set}" = set; then : 19081 withval=$with_default_layout; DEFAULT_XKB_LAYOUT="$withval" 19082else 19083 DEFAULT_XKB_LAYOUT="us" 19084fi 19085 19086 19087cat >>confdefs.h <<_ACEOF 19088@%:@define DEFAULT_XKB_LAYOUT "$DEFAULT_XKB_LAYOUT" 19089_ACEOF 19090 19091 19092 19093@%:@ Check whether --with-default_variant was given. 19094if test "${with_default_variant+set}" = set; then : 19095 withval=$with_default_variant; DEFAULT_XKB_VARIANT="$withval" 19096else 19097 DEFAULT_XKB_VARIANT= 19098fi 19099 19100if test "x$DEFAULT_XKB_VARIANT" != x; then : 19101 19102 19103cat >>confdefs.h <<_ACEOF 19104@%:@define DEFAULT_XKB_VARIANT "$DEFAULT_XKB_VARIANT" 19105_ACEOF 19106 19107 19108fi 19109 19110 19111@%:@ Check whether --with-default_options was given. 19112if test "${with_default_options+set}" = set; then : 19113 withval=$with_default_options; DEFAULT_XKB_OPTIONS="$withval" 19114else 19115 DEFAULT_XKB_OPTIONS= 19116fi 19117 19118if test "x$DEFAULT_XKB_OPTIONS" != x; then : 19119 19120 19121cat >>confdefs.h <<_ACEOF 19122@%:@define DEFAULT_XKB_OPTIONS "$DEFAULT_XKB_OPTIONS" 19123_ACEOF 19124 19125 19126fi 19127 19128@%:@ Check whether --enable-x11 was given. 19129if test "${enable_x11+set}" = set; then : 19130 enableval=$enable_x11; 19131else 19132 enable_x11=yes 19133fi 19134 19135if test "x$enable_x11" = xyes; then : 19136 19137 19138pkg_failed=no 19139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XKB" >&5 19140$as_echo_n "checking for XCB_XKB... " >&6; } 19141 19142if test -n "$XCB_XKB_CFLAGS"; then 19143 pkg_cv_XCB_XKB_CFLAGS="$XCB_XKB_CFLAGS" 19144 elif test -n "$PKG_CONFIG"; then 19145 if test -n "$PKG_CONFIG" && \ 19146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-xkb >= 1.10\""; } >&5 19147 ($PKG_CONFIG --exists --print-errors "xcb xcb-xkb >= 1.10") 2>&5 19148 ac_status=$? 19149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19150 test $ac_status = 0; }; then 19151 pkg_cv_XCB_XKB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-xkb >= 1.10" 2>/dev/null` 19152 test "x$?" != "x0" && pkg_failed=yes 19153else 19154 pkg_failed=yes 19155fi 19156 else 19157 pkg_failed=untried 19158fi 19159if test -n "$XCB_XKB_LIBS"; then 19160 pkg_cv_XCB_XKB_LIBS="$XCB_XKB_LIBS" 19161 elif test -n "$PKG_CONFIG"; then 19162 if test -n "$PKG_CONFIG" && \ 19163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-xkb >= 1.10\""; } >&5 19164 ($PKG_CONFIG --exists --print-errors "xcb xcb-xkb >= 1.10") 2>&5 19165 ac_status=$? 19166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19167 test $ac_status = 0; }; then 19168 pkg_cv_XCB_XKB_LIBS=`$PKG_CONFIG --libs "xcb xcb-xkb >= 1.10" 2>/dev/null` 19169 test "x$?" != "x0" && pkg_failed=yes 19170else 19171 pkg_failed=yes 19172fi 19173 else 19174 pkg_failed=untried 19175fi 19176 19177 19178 19179if test $pkg_failed = yes; then 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19181$as_echo "no" >&6; } 19182 19183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19184 _pkg_short_errors_supported=yes 19185else 19186 _pkg_short_errors_supported=no 19187fi 19188 if test $_pkg_short_errors_supported = yes; then 19189 XCB_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb xcb-xkb >= 1.10" 2>&1` 19190 else 19191 XCB_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb xcb-xkb >= 1.10" 2>&1` 19192 fi 19193 # Put the nasty error message in config.log where it belongs 19194 echo "$XCB_XKB_PKG_ERRORS" >&5 19195 19196 as_fn_error $? "xkbcommon-x11 requires xcb-xkb >= 1.10 which was not found. \ 19197You can disable X11 support with --disable-x11." "$LINENO" 5 19198elif test $pkg_failed = untried; then 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19200$as_echo "no" >&6; } 19201 as_fn_error $? "xkbcommon-x11 requires xcb-xkb >= 1.10 which was not found. \ 19202You can disable X11 support with --disable-x11." "$LINENO" 5 19203else 19204 XCB_XKB_CFLAGS=$pkg_cv_XCB_XKB_CFLAGS 19205 XCB_XKB_LIBS=$pkg_cv_XCB_XKB_LIBS 19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19207$as_echo "yes" >&6; } 19208 19209fi 19210 19211else 19212 enable_x11=no 19213fi 19214 if test "x$enable_x11" = xyes; then 19215 ENABLE_X11_TRUE= 19216 ENABLE_X11_FALSE='#' 19217else 19218 ENABLE_X11_TRUE='#' 19219 ENABLE_X11_FALSE= 19220fi 19221 19222 19223ac_config_files="$ac_config_files Makefile xkbcommon-uninstalled.pc xkbcommon.pc xkbcommon-x11.pc xkbcommon-x11-uninstalled.pc doc/Doxyfile" 19224 19225cat >confcache <<\_ACEOF 19226# This file is a shell script that caches the results of configure 19227# tests run on this system so they can be shared between configure 19228# scripts and configure runs, see configure's option --config-cache. 19229# It is not useful on other systems. If it contains results you don't 19230# want to keep, you may remove or edit it. 19231# 19232# config.status only pays attention to the cache file if you give it 19233# the --recheck option to rerun configure. 19234# 19235# `ac_cv_env_foo' variables (set or unset) will be overridden when 19236# loading this file, other *unset* `ac_cv_foo' will be assigned the 19237# following values. 19238 19239_ACEOF 19240 19241# The following way of writing the cache mishandles newlines in values, 19242# but we know of no workaround that is simple, portable, and efficient. 19243# So, we kill variables containing newlines. 19244# Ultrix sh set writes to stderr and can't be redirected directly, 19245# and sets the high bit in the cache file unless we assign to the vars. 19246( 19247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19248 eval ac_val=\$$ac_var 19249 case $ac_val in #( 19250 *${as_nl}*) 19251 case $ac_var in #( 19252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19254 esac 19255 case $ac_var in #( 19256 _ | IFS | as_nl) ;; #( 19257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19258 *) { eval $ac_var=; unset $ac_var;} ;; 19259 esac ;; 19260 esac 19261 done 19262 19263 (set) 2>&1 | 19264 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19265 *${as_nl}ac_space=\ *) 19266 # `set' does not quote correctly, so add quotes: double-quote 19267 # substitution turns \\\\ into \\, and sed turns \\ into \. 19268 sed -n \ 19269 "s/'/'\\\\''/g; 19270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19271 ;; #( 19272 *) 19273 # `set' quotes correctly as required by POSIX, so do not add quotes. 19274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19275 ;; 19276 esac | 19277 sort 19278) | 19279 sed ' 19280 /^ac_cv_env_/b end 19281 t clear 19282 :clear 19283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19284 t end 19285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19286 :end' >>confcache 19287if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19288 if test -w "$cache_file"; then 19289 if test "x$cache_file" != "x/dev/null"; then 19290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19291$as_echo "$as_me: updating cache $cache_file" >&6;} 19292 if test ! -f "$cache_file" || test -h "$cache_file"; then 19293 cat confcache >"$cache_file" 19294 else 19295 case $cache_file in #( 19296 */* | ?:*) 19297 mv -f confcache "$cache_file"$$ && 19298 mv -f "$cache_file"$$ "$cache_file" ;; #( 19299 *) 19300 mv -f confcache "$cache_file" ;; 19301 esac 19302 fi 19303 fi 19304 else 19305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19306$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19307 fi 19308fi 19309rm -f confcache 19310 19311test "x$prefix" = xNONE && prefix=$ac_default_prefix 19312# Let make expand exec_prefix. 19313test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19314 19315DEFS=-DHAVE_CONFIG_H 19316 19317ac_libobjs= 19318ac_ltlibobjs= 19319U= 19320for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 19321 # 1. Remove the extension, and $U if already installed. 19322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19325 # will be set to the directory where LIBOBJS objects are built. 19326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19328done 19329LIB@&t@OBJS=$ac_libobjs 19330 19331LTLIBOBJS=$ac_ltlibobjs 19332 19333 19334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19335$as_echo_n "checking that generated files are newer than configure... " >&6; } 19336 if test -n "$am_sleep_pid"; then 19337 # Hide warnings about reused PIDs. 19338 wait $am_sleep_pid 2>/dev/null 19339 fi 19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19341$as_echo "done" >&6; } 19342 if test -n "$EXEEXT"; then 19343 am__EXEEXT_TRUE= 19344 am__EXEEXT_FALSE='#' 19345else 19346 am__EXEEXT_TRUE='#' 19347 am__EXEEXT_FALSE= 19348fi 19349 19350if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19351 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19352Usually this means the macro was only invoked conditionally." "$LINENO" 5 19353fi 19354if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19355 as_fn_error $? "conditional \"AMDEP\" was never defined. 19356Usually this means the macro was only invoked conditionally." "$LINENO" 5 19357fi 19358if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19359 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19360Usually this means the macro was only invoked conditionally." "$LINENO" 5 19361fi 19362if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 19363 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 19364Usually this means the macro was only invoked conditionally." "$LINENO" 5 19365fi 19366if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 19367 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 19368Usually this means the macro was only invoked conditionally." "$LINENO" 5 19369fi 19370if test -z "${BUILD_LINUX_TESTS_TRUE}" && test -z "${BUILD_LINUX_TESTS_FALSE}"; then 19371 as_fn_error $? "conditional \"BUILD_LINUX_TESTS\" was never defined. 19372Usually this means the macro was only invoked conditionally." "$LINENO" 5 19373fi 19374if test -z "${HAVE_NO_UNDEFINED_TRUE}" && test -z "${HAVE_NO_UNDEFINED_FALSE}"; then 19375 as_fn_error $? "conditional \"HAVE_NO_UNDEFINED\" was never defined. 19376Usually this means the macro was only invoked conditionally." "$LINENO" 5 19377fi 19378if test -z "${ENABLE_X11_TRUE}" && test -z "${ENABLE_X11_FALSE}"; then 19379 as_fn_error $? "conditional \"ENABLE_X11\" was never defined. 19380Usually this means the macro was only invoked conditionally." "$LINENO" 5 19381fi 19382 19383: "${CONFIG_STATUS=./config.status}" 19384ac_write_fail=0 19385ac_clean_files_save=$ac_clean_files 19386ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19387{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19388$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19389as_write_fail=0 19390cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19391#! $SHELL 19392# Generated by $as_me. 19393# Run this file to recreate the current configuration. 19394# Compiler output produced by configure, useful for debugging 19395# configure, is in config.log if it exists. 19396 19397debug=false 19398ac_cs_recheck=false 19399ac_cs_silent=false 19400 19401SHELL=\${CONFIG_SHELL-$SHELL} 19402export SHELL 19403_ASEOF 19404cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19405## -------------------- ## 19406## M4sh Initialization. ## 19407## -------------------- ## 19408 19409# Be more Bourne compatible 19410DUALCASE=1; export DUALCASE # for MKS sh 19411if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19412 emulate sh 19413 NULLCMD=: 19414 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19415 # is contrary to our usage. Disable this feature. 19416 alias -g '${1+"$@"}'='"$@"' 19417 setopt NO_GLOB_SUBST 19418else 19419 case `(set -o) 2>/dev/null` in @%:@( 19420 *posix*) : 19421 set -o posix ;; @%:@( 19422 *) : 19423 ;; 19424esac 19425fi 19426 19427 19428as_nl=' 19429' 19430export as_nl 19431# Printing a long string crashes Solaris 7 /usr/bin/printf. 19432as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19433as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19434as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19435# Prefer a ksh shell builtin over an external printf program on Solaris, 19436# but without wasting forks for bash or zsh. 19437if test -z "$BASH_VERSION$ZSH_VERSION" \ 19438 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19439 as_echo='print -r --' 19440 as_echo_n='print -rn --' 19441elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19442 as_echo='printf %s\n' 19443 as_echo_n='printf %s' 19444else 19445 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19446 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19447 as_echo_n='/usr/ucb/echo -n' 19448 else 19449 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19450 as_echo_n_body='eval 19451 arg=$1; 19452 case $arg in @%:@( 19453 *"$as_nl"*) 19454 expr "X$arg" : "X\\(.*\\)$as_nl"; 19455 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19456 esac; 19457 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19458 ' 19459 export as_echo_n_body 19460 as_echo_n='sh -c $as_echo_n_body as_echo' 19461 fi 19462 export as_echo_body 19463 as_echo='sh -c $as_echo_body as_echo' 19464fi 19465 19466# The user is always right. 19467if test "${PATH_SEPARATOR+set}" != set; then 19468 PATH_SEPARATOR=: 19469 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19470 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19471 PATH_SEPARATOR=';' 19472 } 19473fi 19474 19475 19476# IFS 19477# We need space, tab and new line, in precisely that order. Quoting is 19478# there to prevent editors from complaining about space-tab. 19479# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19480# splitting by setting IFS to empty value.) 19481IFS=" "" $as_nl" 19482 19483# Find who we are. Look in the path if we contain no directory separator. 19484as_myself= 19485case $0 in @%:@(( 19486 *[\\/]* ) as_myself=$0 ;; 19487 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19488for as_dir in $PATH 19489do 19490 IFS=$as_save_IFS 19491 test -z "$as_dir" && as_dir=. 19492 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19493 done 19494IFS=$as_save_IFS 19495 19496 ;; 19497esac 19498# We did not find ourselves, most probably we were run as `sh COMMAND' 19499# in which case we are not to be found in the path. 19500if test "x$as_myself" = x; then 19501 as_myself=$0 19502fi 19503if test ! -f "$as_myself"; then 19504 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19505 exit 1 19506fi 19507 19508# Unset variables that we do not need and which cause bugs (e.g. in 19509# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19510# suppresses any "Segmentation fault" message there. '((' could 19511# trigger a bug in pdksh 5.2.14. 19512for as_var in BASH_ENV ENV MAIL MAILPATH 19513do eval test x\${$as_var+set} = xset \ 19514 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19515done 19516PS1='$ ' 19517PS2='> ' 19518PS4='+ ' 19519 19520# NLS nuisances. 19521LC_ALL=C 19522export LC_ALL 19523LANGUAGE=C 19524export LANGUAGE 19525 19526# CDPATH. 19527(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19528 19529 19530@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 19531@%:@ ---------------------------------------- 19532@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19533@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19534@%:@ script with STATUS, using 1 if that was 0. 19535as_fn_error () 19536{ 19537 as_status=$1; test $as_status -eq 0 && as_status=1 19538 if test "$4"; then 19539 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19540 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19541 fi 19542 $as_echo "$as_me: error: $2" >&2 19543 as_fn_exit $as_status 19544} @%:@ as_fn_error 19545 19546 19547@%:@ as_fn_set_status STATUS 19548@%:@ ----------------------- 19549@%:@ Set @S|@? to STATUS, without forking. 19550as_fn_set_status () 19551{ 19552 return $1 19553} @%:@ as_fn_set_status 19554 19555@%:@ as_fn_exit STATUS 19556@%:@ ----------------- 19557@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19558as_fn_exit () 19559{ 19560 set +e 19561 as_fn_set_status $1 19562 exit $1 19563} @%:@ as_fn_exit 19564 19565@%:@ as_fn_unset VAR 19566@%:@ --------------- 19567@%:@ Portably unset VAR. 19568as_fn_unset () 19569{ 19570 { eval $1=; unset $1;} 19571} 19572as_unset=as_fn_unset 19573@%:@ as_fn_append VAR VALUE 19574@%:@ ---------------------- 19575@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 19576@%:@ advantage of any shell optimizations that allow amortized linear growth over 19577@%:@ repeated appends, instead of the typical quadratic growth present in naive 19578@%:@ implementations. 19579if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19580 eval 'as_fn_append () 19581 { 19582 eval $1+=\$2 19583 }' 19584else 19585 as_fn_append () 19586 { 19587 eval $1=\$$1\$2 19588 } 19589fi # as_fn_append 19590 19591@%:@ as_fn_arith ARG... 19592@%:@ ------------------ 19593@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 19594@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 19595@%:@ must be portable across @S|@(()) and expr. 19596if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19597 eval 'as_fn_arith () 19598 { 19599 as_val=$(( $* )) 19600 }' 19601else 19602 as_fn_arith () 19603 { 19604 as_val=`expr "$@" || test $? -eq 1` 19605 } 19606fi # as_fn_arith 19607 19608 19609if expr a : '\(a\)' >/dev/null 2>&1 && 19610 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19611 as_expr=expr 19612else 19613 as_expr=false 19614fi 19615 19616if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19617 as_basename=basename 19618else 19619 as_basename=false 19620fi 19621 19622if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19623 as_dirname=dirname 19624else 19625 as_dirname=false 19626fi 19627 19628as_me=`$as_basename -- "$0" || 19629$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19630 X"$0" : 'X\(//\)$' \| \ 19631 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19632$as_echo X/"$0" | 19633 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19634 s//\1/ 19635 q 19636 } 19637 /^X\/\(\/\/\)$/{ 19638 s//\1/ 19639 q 19640 } 19641 /^X\/\(\/\).*/{ 19642 s//\1/ 19643 q 19644 } 19645 s/.*/./; q'` 19646 19647# Avoid depending upon Character Ranges. 19648as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19649as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19650as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19651as_cr_digits='0123456789' 19652as_cr_alnum=$as_cr_Letters$as_cr_digits 19653 19654ECHO_C= ECHO_N= ECHO_T= 19655case `echo -n x` in @%:@((((( 19656-n*) 19657 case `echo 'xy\c'` in 19658 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19659 xy) ECHO_C='\c';; 19660 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19661 ECHO_T=' ';; 19662 esac;; 19663*) 19664 ECHO_N='-n';; 19665esac 19666 19667rm -f conf$$ conf$$.exe conf$$.file 19668if test -d conf$$.dir; then 19669 rm -f conf$$.dir/conf$$.file 19670else 19671 rm -f conf$$.dir 19672 mkdir conf$$.dir 2>/dev/null 19673fi 19674if (echo >conf$$.file) 2>/dev/null; then 19675 if ln -s conf$$.file conf$$ 2>/dev/null; then 19676 as_ln_s='ln -s' 19677 # ... but there are two gotchas: 19678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19680 # In both cases, we have to default to `cp -pR'. 19681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19682 as_ln_s='cp -pR' 19683 elif ln conf$$.file conf$$ 2>/dev/null; then 19684 as_ln_s=ln 19685 else 19686 as_ln_s='cp -pR' 19687 fi 19688else 19689 as_ln_s='cp -pR' 19690fi 19691rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19692rmdir conf$$.dir 2>/dev/null 19693 19694 19695@%:@ as_fn_mkdir_p 19696@%:@ ------------- 19697@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 19698as_fn_mkdir_p () 19699{ 19700 19701 case $as_dir in #( 19702 -*) as_dir=./$as_dir;; 19703 esac 19704 test -d "$as_dir" || eval $as_mkdir_p || { 19705 as_dirs= 19706 while :; do 19707 case $as_dir in #( 19708 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19709 *) as_qdir=$as_dir;; 19710 esac 19711 as_dirs="'$as_qdir' $as_dirs" 19712 as_dir=`$as_dirname -- "$as_dir" || 19713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19714 X"$as_dir" : 'X\(//\)[^/]' \| \ 19715 X"$as_dir" : 'X\(//\)$' \| \ 19716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19717$as_echo X"$as_dir" | 19718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19719 s//\1/ 19720 q 19721 } 19722 /^X\(\/\/\)[^/].*/{ 19723 s//\1/ 19724 q 19725 } 19726 /^X\(\/\/\)$/{ 19727 s//\1/ 19728 q 19729 } 19730 /^X\(\/\).*/{ 19731 s//\1/ 19732 q 19733 } 19734 s/.*/./; q'` 19735 test -d "$as_dir" && break 19736 done 19737 test -z "$as_dirs" || eval "mkdir $as_dirs" 19738 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19739 19740 19741} @%:@ as_fn_mkdir_p 19742if mkdir -p . 2>/dev/null; then 19743 as_mkdir_p='mkdir -p "$as_dir"' 19744else 19745 test -d ./-p && rmdir ./-p 19746 as_mkdir_p=false 19747fi 19748 19749 19750@%:@ as_fn_executable_p FILE 19751@%:@ ----------------------- 19752@%:@ Test if FILE is an executable regular file. 19753as_fn_executable_p () 19754{ 19755 test -f "$1" && test -x "$1" 19756} @%:@ as_fn_executable_p 19757as_test_x='test -x' 19758as_executable_p=as_fn_executable_p 19759 19760# Sed expression to map a string onto a valid CPP name. 19761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19762 19763# Sed expression to map a string onto a valid variable name. 19764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19765 19766 19767exec 6>&1 19768## ----------------------------------- ## 19769## Main body of $CONFIG_STATUS script. ## 19770## ----------------------------------- ## 19771_ASEOF 19772test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19773 19774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19775# Save the log message, to keep $0 and so on meaningful, and to 19776# report actual input values of CONFIG_FILES etc. instead of their 19777# values after options handling. 19778ac_log=" 19779This file was extended by libxkbcommon $as_me 0.5.0, which was 19780generated by GNU Autoconf 2.69. Invocation command line was 19781 19782 CONFIG_FILES = $CONFIG_FILES 19783 CONFIG_HEADERS = $CONFIG_HEADERS 19784 CONFIG_LINKS = $CONFIG_LINKS 19785 CONFIG_COMMANDS = $CONFIG_COMMANDS 19786 $ $0 $@ 19787 19788on `(hostname || uname -n) 2>/dev/null | sed 1q` 19789" 19790 19791_ACEOF 19792 19793case $ac_config_files in *" 19794"*) set x $ac_config_files; shift; ac_config_files=$*;; 19795esac 19796 19797case $ac_config_headers in *" 19798"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19799esac 19800 19801 19802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19803# Files that config.status was made for. 19804config_files="$ac_config_files" 19805config_headers="$ac_config_headers" 19806config_commands="$ac_config_commands" 19807 19808_ACEOF 19809 19810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19811ac_cs_usage="\ 19812\`$as_me' instantiates files and other configuration actions 19813from templates according to the current configuration. Unless the files 19814and actions are specified as TAGs, all are instantiated by default. 19815 19816Usage: $0 [OPTION]... [TAG]... 19817 19818 -h, --help print this help, then exit 19819 -V, --version print version number and configuration settings, then exit 19820 --config print configuration, then exit 19821 -q, --quiet, --silent 19822 do not print progress messages 19823 -d, --debug don't remove temporary files 19824 --recheck update $as_me by reconfiguring in the same conditions 19825 --file=FILE[:TEMPLATE] 19826 instantiate the configuration file FILE 19827 --header=FILE[:TEMPLATE] 19828 instantiate the configuration header FILE 19829 19830Configuration files: 19831$config_files 19832 19833Configuration headers: 19834$config_headers 19835 19836Configuration commands: 19837$config_commands 19838 19839Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon>. 19840libxkbcommon home page: <http://xkbcommon.org>." 19841 19842_ACEOF 19843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19844ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19845ac_cs_version="\\ 19846libxkbcommon config.status 0.5.0 19847configured by $0, generated by GNU Autoconf 2.69, 19848 with options \\"\$ac_cs_config\\" 19849 19850Copyright (C) 2012 Free Software Foundation, Inc. 19851This config.status script is free software; the Free Software Foundation 19852gives unlimited permission to copy, distribute and modify it." 19853 19854ac_pwd='$ac_pwd' 19855srcdir='$srcdir' 19856INSTALL='$INSTALL' 19857MKDIR_P='$MKDIR_P' 19858AWK='$AWK' 19859test -n "\$AWK" || AWK=awk 19860_ACEOF 19861 19862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19863# The default lists apply if the user does not specify any file. 19864ac_need_defaults=: 19865while test $# != 0 19866do 19867 case $1 in 19868 --*=?*) 19869 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19870 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19871 ac_shift=: 19872 ;; 19873 --*=) 19874 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19875 ac_optarg= 19876 ac_shift=: 19877 ;; 19878 *) 19879 ac_option=$1 19880 ac_optarg=$2 19881 ac_shift=shift 19882 ;; 19883 esac 19884 19885 case $ac_option in 19886 # Handling of the options. 19887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19888 ac_cs_recheck=: ;; 19889 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19890 $as_echo "$ac_cs_version"; exit ;; 19891 --config | --confi | --conf | --con | --co | --c ) 19892 $as_echo "$ac_cs_config"; exit ;; 19893 --debug | --debu | --deb | --de | --d | -d ) 19894 debug=: ;; 19895 --file | --fil | --fi | --f ) 19896 $ac_shift 19897 case $ac_optarg in 19898 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19899 '') as_fn_error $? "missing file argument" ;; 19900 esac 19901 as_fn_append CONFIG_FILES " '$ac_optarg'" 19902 ac_need_defaults=false;; 19903 --header | --heade | --head | --hea ) 19904 $ac_shift 19905 case $ac_optarg in 19906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19907 esac 19908 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19909 ac_need_defaults=false;; 19910 --he | --h) 19911 # Conflict between --help and --header 19912 as_fn_error $? "ambiguous option: \`$1' 19913Try \`$0 --help' for more information.";; 19914 --help | --hel | -h ) 19915 $as_echo "$ac_cs_usage"; exit ;; 19916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19917 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19918 ac_cs_silent=: ;; 19919 19920 # This is an error. 19921 -*) as_fn_error $? "unrecognized option: \`$1' 19922Try \`$0 --help' for more information." ;; 19923 19924 *) as_fn_append ac_config_targets " $1" 19925 ac_need_defaults=false ;; 19926 19927 esac 19928 shift 19929done 19930 19931ac_configure_extra_args= 19932 19933if $ac_cs_silent; then 19934 exec 6>/dev/null 19935 ac_configure_extra_args="$ac_configure_extra_args --silent" 19936fi 19937 19938_ACEOF 19939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19940if \$ac_cs_recheck; then 19941 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19942 shift 19943 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19944 CONFIG_SHELL='$SHELL' 19945 export CONFIG_SHELL 19946 exec "\$@" 19947fi 19948 19949_ACEOF 19950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19951exec 5>>config.log 19952{ 19953 echo 19954 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 19955@%:@@%:@ Running $as_me. @%:@@%:@ 19956_ASBOX 19957 $as_echo "$ac_log" 19958} >&5 19959 19960_ACEOF 19961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19962# 19963# INIT-COMMANDS 19964# 19965AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19966 19967 19968# The HP-UX ksh and POSIX shell print the target directory to stdout 19969# if CDPATH is set. 19970(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19971 19972sed_quote_subst='$sed_quote_subst' 19973double_quote_subst='$double_quote_subst' 19974delay_variable_subst='$delay_variable_subst' 19975macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19976macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19977enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19978enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19979pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19980enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19981SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19982ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19983PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19984host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19985host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19986host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19987build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19988build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19989build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19990SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19991Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19992GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19993EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19994FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19995LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19996NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19997LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19998max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19999ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20000exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20001lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20002lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20003lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20004lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20005lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20006reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20007reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20008OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20009deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20010file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20011file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20012want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20013DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20014sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20015AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20016AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20017archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20018STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20019RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20020old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20021old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20022old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20023lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20024CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20025CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20026compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20027GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20028lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20029lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20030lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20031lt_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"`' 20032nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20033lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20034objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20035MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20036lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20037lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20038lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20039lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20040lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20041need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20042MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20043DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20044NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20045LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20046OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20047OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20048libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20049shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20050extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20051archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20052enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20053export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20054whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20055compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20056old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20057old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20058archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20059archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20060module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20061module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20062with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20063allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20064no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20065hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20066hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20067hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20068hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20069hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20070hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20071hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20072inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20073link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20074always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20075export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20076exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20077include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20078prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20079postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20080file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20081variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20082need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20083need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20084version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20085runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20086shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20087shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20088libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20089library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20090soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20091install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20092postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20093postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20094finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20095finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20096hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20097sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20098sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20099hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20100enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20101enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20102enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20103old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20104striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20105 20106LTCC='$LTCC' 20107LTCFLAGS='$LTCFLAGS' 20108compiler='$compiler_DEFAULT' 20109 20110# A function that is used when there is no print builtin or printf. 20111func_fallback_echo () 20112{ 20113 eval 'cat <<_LTECHO_EOF 20114\$1 20115_LTECHO_EOF' 20116} 20117 20118# Quote evaled strings. 20119for var in SHELL \ 20120ECHO \ 20121PATH_SEPARATOR \ 20122SED \ 20123GREP \ 20124EGREP \ 20125FGREP \ 20126LD \ 20127NM \ 20128LN_S \ 20129lt_SP2NL \ 20130lt_NL2SP \ 20131reload_flag \ 20132OBJDUMP \ 20133deplibs_check_method \ 20134file_magic_cmd \ 20135file_magic_glob \ 20136want_nocaseglob \ 20137DLLTOOL \ 20138sharedlib_from_linklib_cmd \ 20139AR \ 20140AR_FLAGS \ 20141archiver_list_spec \ 20142STRIP \ 20143RANLIB \ 20144CC \ 20145CFLAGS \ 20146compiler \ 20147lt_cv_sys_global_symbol_pipe \ 20148lt_cv_sys_global_symbol_to_cdecl \ 20149lt_cv_sys_global_symbol_to_c_name_address \ 20150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20151nm_file_list_spec \ 20152lt_prog_compiler_no_builtin_flag \ 20153lt_prog_compiler_pic \ 20154lt_prog_compiler_wl \ 20155lt_prog_compiler_static \ 20156lt_cv_prog_compiler_c_o \ 20157need_locks \ 20158MANIFEST_TOOL \ 20159DSYMUTIL \ 20160NMEDIT \ 20161LIPO \ 20162OTOOL \ 20163OTOOL64 \ 20164shrext_cmds \ 20165export_dynamic_flag_spec \ 20166whole_archive_flag_spec \ 20167compiler_needs_object \ 20168with_gnu_ld \ 20169allow_undefined_flag \ 20170no_undefined_flag \ 20171hardcode_libdir_flag_spec \ 20172hardcode_libdir_separator \ 20173exclude_expsyms \ 20174include_expsyms \ 20175file_list_spec \ 20176variables_saved_for_relink \ 20177libname_spec \ 20178library_names_spec \ 20179soname_spec \ 20180install_override_mode \ 20181finish_eval \ 20182old_striplib \ 20183striplib; do 20184 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20185 *[\\\\\\\`\\"\\\$]*) 20186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20187 ;; 20188 *) 20189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20190 ;; 20191 esac 20192done 20193 20194# Double-quote double-evaled strings. 20195for var in reload_cmds \ 20196old_postinstall_cmds \ 20197old_postuninstall_cmds \ 20198old_archive_cmds \ 20199extract_expsyms_cmds \ 20200old_archive_from_new_cmds \ 20201old_archive_from_expsyms_cmds \ 20202archive_cmds \ 20203archive_expsym_cmds \ 20204module_cmds \ 20205module_expsym_cmds \ 20206export_symbols_cmds \ 20207prelink_cmds \ 20208postlink_cmds \ 20209postinstall_cmds \ 20210postuninstall_cmds \ 20211finish_cmds \ 20212sys_lib_search_path_spec \ 20213sys_lib_dlsearch_path_spec; do 20214 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20215 *[\\\\\\\`\\"\\\$]*) 20216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20217 ;; 20218 *) 20219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20220 ;; 20221 esac 20222done 20223 20224ac_aux_dir='$ac_aux_dir' 20225xsi_shell='$xsi_shell' 20226lt_shell_append='$lt_shell_append' 20227 20228# See if we are running on zsh, and set the options which allow our 20229# commands through without removal of \ escapes INIT. 20230if test -n "\${ZSH_VERSION+set}" ; then 20231 setopt NO_GLOB_SUBST 20232fi 20233 20234 20235 PACKAGE='$PACKAGE' 20236 VERSION='$VERSION' 20237 TIMESTAMP='$TIMESTAMP' 20238 RM='$RM' 20239 ofile='$ofile' 20240 20241 20242 20243 20244_ACEOF 20245 20246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20247 20248# Handling of arguments. 20249for ac_config_target in $ac_config_targets 20250do 20251 case $ac_config_target in 20252 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 20253 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20254 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20255 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20256 "xkbcommon-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES xkbcommon-uninstalled.pc" ;; 20257 "xkbcommon.pc") CONFIG_FILES="$CONFIG_FILES xkbcommon.pc" ;; 20258 "xkbcommon-x11.pc") CONFIG_FILES="$CONFIG_FILES xkbcommon-x11.pc" ;; 20259 "xkbcommon-x11-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES xkbcommon-x11-uninstalled.pc" ;; 20260 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 20261 20262 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20263 esac 20264done 20265 20266 20267# If the user did not use the arguments to specify the items to instantiate, 20268# then the envvar interface is used. Set only those that are not. 20269# We use the long form for the default assignment because of an extremely 20270# bizarre bug on SunOS 4.1.3. 20271if $ac_need_defaults; then 20272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20275fi 20276 20277# Have a temporary directory for convenience. Make it in the build tree 20278# simply because there is no reason against having it here, and in addition, 20279# creating and moving files from /tmp can sometimes cause problems. 20280# Hook for its removal unless debugging. 20281# Note that there is a small window in which the directory will not be cleaned: 20282# after its creation but before its name has been assigned to `$tmp'. 20283$debug || 20284{ 20285 tmp= ac_tmp= 20286 trap 'exit_status=$? 20287 : "${ac_tmp:=$tmp}" 20288 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20289' 0 20290 trap 'as_fn_exit 1' 1 2 13 15 20291} 20292# Create a (secure) tmp directory for tmp files. 20293 20294{ 20295 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20296 test -d "$tmp" 20297} || 20298{ 20299 tmp=./conf$$-$RANDOM 20300 (umask 077 && mkdir "$tmp") 20301} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20302ac_tmp=$tmp 20303 20304# Set up the scripts for CONFIG_FILES section. 20305# No need to generate them if there are no CONFIG_FILES. 20306# This happens for instance with `./config.status config.h'. 20307if test -n "$CONFIG_FILES"; then 20308 20309 20310ac_cr=`echo X | tr X '\015'` 20311# On cygwin, bash can eat \r inside `` if the user requested igncr. 20312# But we know of no other shell where ac_cr would be empty at this 20313# point, so we can use a bashism as a fallback. 20314if test "x$ac_cr" = x; then 20315 eval ac_cr=\$\'\\r\' 20316fi 20317ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20318if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20319 ac_cs_awk_cr='\\r' 20320else 20321 ac_cs_awk_cr=$ac_cr 20322fi 20323 20324echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20325_ACEOF 20326 20327 20328{ 20329 echo "cat >conf$$subs.awk <<_ACEOF" && 20330 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20331 echo "_ACEOF" 20332} >conf$$subs.sh || 20333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20334ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20335ac_delim='%!_!# ' 20336for ac_last_try in false false false false false :; do 20337 . ./conf$$subs.sh || 20338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20339 20340 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20341 if test $ac_delim_n = $ac_delim_num; then 20342 break 20343 elif $ac_last_try; then 20344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20345 else 20346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20347 fi 20348done 20349rm -f conf$$subs.sh 20350 20351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20352cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20353_ACEOF 20354sed -n ' 20355h 20356s/^/S["/; s/!.*/"]=/ 20357p 20358g 20359s/^[^!]*!// 20360:repl 20361t repl 20362s/'"$ac_delim"'$// 20363t delim 20364:nl 20365h 20366s/\(.\{148\}\)..*/\1/ 20367t more1 20368s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20369p 20370n 20371b repl 20372:more1 20373s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20374p 20375g 20376s/.\{148\}// 20377t nl 20378:delim 20379h 20380s/\(.\{148\}\)..*/\1/ 20381t more2 20382s/["\\]/\\&/g; s/^/"/; s/$/"/ 20383p 20384b 20385:more2 20386s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20387p 20388g 20389s/.\{148\}// 20390t delim 20391' <conf$$subs.awk | sed ' 20392/^[^""]/{ 20393 N 20394 s/\n// 20395} 20396' >>$CONFIG_STATUS || ac_write_fail=1 20397rm -f conf$$subs.awk 20398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20399_ACAWK 20400cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20401 for (key in S) S_is_set[key] = 1 20402 FS = "" 20403 20404} 20405{ 20406 line = $ 0 20407 nfields = split(line, field, "@") 20408 substed = 0 20409 len = length(field[1]) 20410 for (i = 2; i < nfields; i++) { 20411 key = field[i] 20412 keylen = length(key) 20413 if (S_is_set[key]) { 20414 value = S[key] 20415 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20416 len += length(value) + length(field[++i]) 20417 substed = 1 20418 } else 20419 len += 1 + keylen 20420 } 20421 20422 print line 20423} 20424 20425_ACAWK 20426_ACEOF 20427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20428if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20429 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20430else 20431 cat 20432fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20433 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20434_ACEOF 20435 20436# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20437# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20438# trailing colons and then remove the whole line if VPATH becomes empty 20439# (actually we leave an empty line to preserve line numbers). 20440if test "x$srcdir" = x.; then 20441 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20442h 20443s/// 20444s/^/:/ 20445s/[ ]*$/:/ 20446s/:\$(srcdir):/:/g 20447s/:\${srcdir}:/:/g 20448s/:@srcdir@:/:/g 20449s/^:*// 20450s/:*$// 20451x 20452s/\(=[ ]*\).*/\1/ 20453G 20454s/\n// 20455s/^[^=]*=[ ]*$// 20456}' 20457fi 20458 20459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20460fi # test -n "$CONFIG_FILES" 20461 20462# Set up the scripts for CONFIG_HEADERS section. 20463# No need to generate them if there are no CONFIG_HEADERS. 20464# This happens for instance with `./config.status Makefile'. 20465if test -n "$CONFIG_HEADERS"; then 20466cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20467BEGIN { 20468_ACEOF 20469 20470# Transform confdefs.h into an awk script `defines.awk', embedded as 20471# here-document in config.status, that substitutes the proper values into 20472# config.h.in to produce config.h. 20473 20474# Create a delimiter string that does not exist in confdefs.h, to ease 20475# handling of long lines. 20476ac_delim='%!_!# ' 20477for ac_last_try in false false :; do 20478 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20479 if test -z "$ac_tt"; then 20480 break 20481 elif $ac_last_try; then 20482 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20483 else 20484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20485 fi 20486done 20487 20488# For the awk script, D is an array of macro values keyed by name, 20489# likewise P contains macro parameters if any. Preserve backslash 20490# newline sequences. 20491 20492ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20493sed -n ' 20494s/.\{148\}/&'"$ac_delim"'/g 20495t rset 20496:rset 20497s/^[ ]*#[ ]*define[ ][ ]*/ / 20498t def 20499d 20500:def 20501s/\\$// 20502t bsnl 20503s/["\\]/\\&/g 20504s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20505D["\1"]=" \3"/p 20506s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20507d 20508:bsnl 20509s/["\\]/\\&/g 20510s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20511D["\1"]=" \3\\\\\\n"\\/p 20512t cont 20513s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20514t cont 20515d 20516:cont 20517n 20518s/.\{148\}/&'"$ac_delim"'/g 20519t clear 20520:clear 20521s/\\$// 20522t bsnlc 20523s/["\\]/\\&/g; s/^/"/; s/$/"/p 20524d 20525:bsnlc 20526s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20527b cont 20528' <confdefs.h | sed ' 20529s/'"$ac_delim"'/"\\\ 20530"/g' >>$CONFIG_STATUS || ac_write_fail=1 20531 20532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20533 for (key in D) D_is_set[key] = 1 20534 FS = "" 20535} 20536/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20537 line = \$ 0 20538 split(line, arg, " ") 20539 if (arg[1] == "#") { 20540 defundef = arg[2] 20541 mac1 = arg[3] 20542 } else { 20543 defundef = substr(arg[1], 2) 20544 mac1 = arg[2] 20545 } 20546 split(mac1, mac2, "(") #) 20547 macro = mac2[1] 20548 prefix = substr(line, 1, index(line, defundef) - 1) 20549 if (D_is_set[macro]) { 20550 # Preserve the white space surrounding the "#". 20551 print prefix "define", macro P[macro] D[macro] 20552 next 20553 } else { 20554 # Replace #undef with comments. This is necessary, for example, 20555 # in the case of _POSIX_SOURCE, which is predefined and required 20556 # on some systems where configure will not decide to define it. 20557 if (defundef == "undef") { 20558 print "/*", prefix defundef, macro, "*/" 20559 next 20560 } 20561 } 20562} 20563{ print } 20564_ACAWK 20565_ACEOF 20566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20567 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20568fi # test -n "$CONFIG_HEADERS" 20569 20570 20571eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20572shift 20573for ac_tag 20574do 20575 case $ac_tag in 20576 :[FHLC]) ac_mode=$ac_tag; continue;; 20577 esac 20578 case $ac_mode$ac_tag in 20579 :[FHL]*:*);; 20580 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20581 :[FH]-) ac_tag=-:-;; 20582 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20583 esac 20584 ac_save_IFS=$IFS 20585 IFS=: 20586 set x $ac_tag 20587 IFS=$ac_save_IFS 20588 shift 20589 ac_file=$1 20590 shift 20591 20592 case $ac_mode in 20593 :L) ac_source=$1;; 20594 :[FH]) 20595 ac_file_inputs= 20596 for ac_f 20597 do 20598 case $ac_f in 20599 -) ac_f="$ac_tmp/stdin";; 20600 *) # Look for the file first in the build tree, then in the source tree 20601 # (if the path is not absolute). The absolute path cannot be DOS-style, 20602 # because $ac_f cannot contain `:'. 20603 test -f "$ac_f" || 20604 case $ac_f in 20605 [\\/$]*) false;; 20606 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20607 esac || 20608 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20609 esac 20610 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20611 as_fn_append ac_file_inputs " '$ac_f'" 20612 done 20613 20614 # Let's still pretend it is `configure' which instantiates (i.e., don't 20615 # use $as_me), people would be surprised to read: 20616 # /* config.h. Generated by config.status. */ 20617 configure_input='Generated from '` 20618 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20619 `' by configure.' 20620 if test x"$ac_file" != x-; then 20621 configure_input="$ac_file. $configure_input" 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20623$as_echo "$as_me: creating $ac_file" >&6;} 20624 fi 20625 # Neutralize special characters interpreted by sed in replacement strings. 20626 case $configure_input in #( 20627 *\&* | *\|* | *\\* ) 20628 ac_sed_conf_input=`$as_echo "$configure_input" | 20629 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20630 *) ac_sed_conf_input=$configure_input;; 20631 esac 20632 20633 case $ac_tag in 20634 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20636 esac 20637 ;; 20638 esac 20639 20640 ac_dir=`$as_dirname -- "$ac_file" || 20641$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20642 X"$ac_file" : 'X\(//\)[^/]' \| \ 20643 X"$ac_file" : 'X\(//\)$' \| \ 20644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20645$as_echo X"$ac_file" | 20646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20647 s//\1/ 20648 q 20649 } 20650 /^X\(\/\/\)[^/].*/{ 20651 s//\1/ 20652 q 20653 } 20654 /^X\(\/\/\)$/{ 20655 s//\1/ 20656 q 20657 } 20658 /^X\(\/\).*/{ 20659 s//\1/ 20660 q 20661 } 20662 s/.*/./; q'` 20663 as_dir="$ac_dir"; as_fn_mkdir_p 20664 ac_builddir=. 20665 20666case "$ac_dir" in 20667.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20668*) 20669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20670 # A ".." for each directory in $ac_dir_suffix. 20671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20672 case $ac_top_builddir_sub in 20673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20675 esac ;; 20676esac 20677ac_abs_top_builddir=$ac_pwd 20678ac_abs_builddir=$ac_pwd$ac_dir_suffix 20679# for backward compatibility: 20680ac_top_builddir=$ac_top_build_prefix 20681 20682case $srcdir in 20683 .) # We are building in place. 20684 ac_srcdir=. 20685 ac_top_srcdir=$ac_top_builddir_sub 20686 ac_abs_top_srcdir=$ac_pwd ;; 20687 [\\/]* | ?:[\\/]* ) # Absolute name. 20688 ac_srcdir=$srcdir$ac_dir_suffix; 20689 ac_top_srcdir=$srcdir 20690 ac_abs_top_srcdir=$srcdir ;; 20691 *) # Relative name. 20692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20693 ac_top_srcdir=$ac_top_build_prefix$srcdir 20694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20695esac 20696ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20697 20698 20699 case $ac_mode in 20700 :F) 20701 # 20702 # CONFIG_FILE 20703 # 20704 20705 case $INSTALL in 20706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20708 esac 20709 ac_MKDIR_P=$MKDIR_P 20710 case $MKDIR_P in 20711 [\\/$]* | ?:[\\/]* ) ;; 20712 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20713 esac 20714_ACEOF 20715 20716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20717# If the template does not know about datarootdir, expand it. 20718# FIXME: This hack should be removed a few years after 2.60. 20719ac_datarootdir_hack=; ac_datarootdir_seen= 20720ac_sed_dataroot=' 20721/datarootdir/ { 20722 p 20723 q 20724} 20725/@datadir@/p 20726/@docdir@/p 20727/@infodir@/p 20728/@localedir@/p 20729/@mandir@/p' 20730case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20731*datarootdir*) ac_datarootdir_seen=yes;; 20732*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20734$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20735_ACEOF 20736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20737 ac_datarootdir_hack=' 20738 s&@datadir@&$datadir&g 20739 s&@docdir@&$docdir&g 20740 s&@infodir@&$infodir&g 20741 s&@localedir@&$localedir&g 20742 s&@mandir@&$mandir&g 20743 s&\\\${datarootdir}&$datarootdir&g' ;; 20744esac 20745_ACEOF 20746 20747# Neutralize VPATH when `$srcdir' = `.'. 20748# Shell code in configure.ac might set extrasub. 20749# FIXME: do we really want to maintain this feature? 20750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20751ac_sed_extra="$ac_vpsub 20752$extrasub 20753_ACEOF 20754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20755:t 20756/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20757s|@configure_input@|$ac_sed_conf_input|;t t 20758s&@top_builddir@&$ac_top_builddir_sub&;t t 20759s&@top_build_prefix@&$ac_top_build_prefix&;t t 20760s&@srcdir@&$ac_srcdir&;t t 20761s&@abs_srcdir@&$ac_abs_srcdir&;t t 20762s&@top_srcdir@&$ac_top_srcdir&;t t 20763s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20764s&@builddir@&$ac_builddir&;t t 20765s&@abs_builddir@&$ac_abs_builddir&;t t 20766s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20767s&@INSTALL@&$ac_INSTALL&;t t 20768s&@MKDIR_P@&$ac_MKDIR_P&;t t 20769$ac_datarootdir_hack 20770" 20771eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20772 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20773 20774test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20775 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20776 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20777 "$ac_tmp/out"`; test -z "$ac_out"; } && 20778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20779which seems to be undefined. Please make sure it is defined" >&5 20780$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20781which seems to be undefined. Please make sure it is defined" >&2;} 20782 20783 rm -f "$ac_tmp/stdin" 20784 case $ac_file in 20785 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20786 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20787 esac \ 20788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20789 ;; 20790 :H) 20791 # 20792 # CONFIG_HEADER 20793 # 20794 if test x"$ac_file" != x-; then 20795 { 20796 $as_echo "/* $configure_input */" \ 20797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20798 } >"$ac_tmp/config.h" \ 20799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20800 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20801 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20802$as_echo "$as_me: $ac_file is unchanged" >&6;} 20803 else 20804 rm -f "$ac_file" 20805 mv "$ac_tmp/config.h" "$ac_file" \ 20806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20807 fi 20808 else 20809 $as_echo "/* $configure_input */" \ 20810 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20811 || as_fn_error $? "could not create -" "$LINENO" 5 20812 fi 20813# Compute "$ac_file"'s index in $config_headers. 20814_am_arg="$ac_file" 20815_am_stamp_count=1 20816for _am_header in $config_headers :; do 20817 case $_am_header in 20818 $_am_arg | $_am_arg:* ) 20819 break ;; 20820 * ) 20821 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20822 esac 20823done 20824echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20825$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20826 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20827 X"$_am_arg" : 'X\(//\)$' \| \ 20828 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20829$as_echo X"$_am_arg" | 20830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20831 s//\1/ 20832 q 20833 } 20834 /^X\(\/\/\)[^/].*/{ 20835 s//\1/ 20836 q 20837 } 20838 /^X\(\/\/\)$/{ 20839 s//\1/ 20840 q 20841 } 20842 /^X\(\/\).*/{ 20843 s//\1/ 20844 q 20845 } 20846 s/.*/./; q'`/stamp-h$_am_stamp_count 20847 ;; 20848 20849 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20850$as_echo "$as_me: executing $ac_file commands" >&6;} 20851 ;; 20852 esac 20853 20854 20855 case $ac_file$ac_mode in 20856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20857 # Older Autoconf quotes --file arguments for eval, but not when files 20858 # are listed without --file. Let's play safe and only enable the eval 20859 # if we detect the quoting. 20860 case $CONFIG_FILES in 20861 *\'*) eval set x "$CONFIG_FILES" ;; 20862 *) set x $CONFIG_FILES ;; 20863 esac 20864 shift 20865 for mf 20866 do 20867 # Strip MF so we end up with the name of the file. 20868 mf=`echo "$mf" | sed -e 's/:.*$//'` 20869 # Check whether this is an Automake generated Makefile or not. 20870 # We used to match only the files named 'Makefile.in', but 20871 # some people rename them; so instead we look at the file content. 20872 # Grep'ing the first line is not enough: some people post-process 20873 # each Makefile.in and add a new line on top of each file to say so. 20874 # Grep'ing the whole file is not good either: AIX grep has a line 20875 # limit of 2048, but all sed's we know have understand at least 4000. 20876 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20877 dirpart=`$as_dirname -- "$mf" || 20878$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20879 X"$mf" : 'X\(//\)[^/]' \| \ 20880 X"$mf" : 'X\(//\)$' \| \ 20881 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20882$as_echo X"$mf" | 20883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20884 s//\1/ 20885 q 20886 } 20887 /^X\(\/\/\)[^/].*/{ 20888 s//\1/ 20889 q 20890 } 20891 /^X\(\/\/\)$/{ 20892 s//\1/ 20893 q 20894 } 20895 /^X\(\/\).*/{ 20896 s//\1/ 20897 q 20898 } 20899 s/.*/./; q'` 20900 else 20901 continue 20902 fi 20903 # Extract the definition of DEPDIR, am__include, and am__quote 20904 # from the Makefile without running 'make'. 20905 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20906 test -z "$DEPDIR" && continue 20907 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20908 test -z "$am__include" && continue 20909 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20910 # Find all dependency output files, they are included files with 20911 # $(DEPDIR) in their names. We invoke sed twice because it is the 20912 # simplest approach to changing $(DEPDIR) to its actual value in the 20913 # expansion. 20914 for file in `sed -n " 20915 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20916 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20917 # Make sure the directory exists. 20918 test -f "$dirpart/$file" && continue 20919 fdir=`$as_dirname -- "$file" || 20920$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20921 X"$file" : 'X\(//\)[^/]' \| \ 20922 X"$file" : 'X\(//\)$' \| \ 20923 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20924$as_echo X"$file" | 20925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20926 s//\1/ 20927 q 20928 } 20929 /^X\(\/\/\)[^/].*/{ 20930 s//\1/ 20931 q 20932 } 20933 /^X\(\/\/\)$/{ 20934 s//\1/ 20935 q 20936 } 20937 /^X\(\/\).*/{ 20938 s//\1/ 20939 q 20940 } 20941 s/.*/./; q'` 20942 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20943 # echo "creating $dirpart/$file" 20944 echo '# dummy' > "$dirpart/$file" 20945 done 20946 done 20947} 20948 ;; 20949 "libtool":C) 20950 20951 # See if we are running on zsh, and set the options which allow our 20952 # commands through without removal of \ escapes. 20953 if test -n "${ZSH_VERSION+set}" ; then 20954 setopt NO_GLOB_SUBST 20955 fi 20956 20957 cfgfile="${ofile}T" 20958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20959 $RM "$cfgfile" 20960 20961 cat <<_LT_EOF >> "$cfgfile" 20962#! $SHELL 20963 20964# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20965# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20967# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20968# 20969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20970# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20971# Foundation, Inc. 20972# Written by Gordon Matzigkeit, 1996 20973# 20974# This file is part of GNU Libtool. 20975# 20976# GNU Libtool is free software; you can redistribute it and/or 20977# modify it under the terms of the GNU General Public License as 20978# published by the Free Software Foundation; either version 2 of 20979# the License, or (at your option) any later version. 20980# 20981# As a special exception to the GNU General Public License, 20982# if you distribute this file as part of a program or library that 20983# is built using GNU Libtool, you may include this file under the 20984# same distribution terms that you use for the rest of that program. 20985# 20986# GNU Libtool is distributed in the hope that it will be useful, 20987# but WITHOUT ANY WARRANTY; without even the implied warranty of 20988# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20989# GNU General Public License for more details. 20990# 20991# You should have received a copy of the GNU General Public License 20992# along with GNU Libtool; see the file COPYING. If not, a copy 20993# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20994# obtained by writing to the Free Software Foundation, Inc., 20995# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20996 20997 20998# The names of the tagged configurations supported by this script. 20999available_tags="" 21000 21001# ### BEGIN LIBTOOL CONFIG 21002 21003# Which release of libtool.m4 was used? 21004macro_version=$macro_version 21005macro_revision=$macro_revision 21006 21007# Whether or not to build shared libraries. 21008build_libtool_libs=$enable_shared 21009 21010# Whether or not to build static libraries. 21011build_old_libs=$enable_static 21012 21013# What type of objects to build. 21014pic_mode=$pic_mode 21015 21016# Whether or not to optimize for fast installation. 21017fast_install=$enable_fast_install 21018 21019# Shell to use when invoking shell scripts. 21020SHELL=$lt_SHELL 21021 21022# An echo program that protects backslashes. 21023ECHO=$lt_ECHO 21024 21025# The PATH separator for the build system. 21026PATH_SEPARATOR=$lt_PATH_SEPARATOR 21027 21028# The host system. 21029host_alias=$host_alias 21030host=$host 21031host_os=$host_os 21032 21033# The build system. 21034build_alias=$build_alias 21035build=$build 21036build_os=$build_os 21037 21038# A sed program that does not truncate output. 21039SED=$lt_SED 21040 21041# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21042Xsed="\$SED -e 1s/^X//" 21043 21044# A grep program that handles long lines. 21045GREP=$lt_GREP 21046 21047# An ERE matcher. 21048EGREP=$lt_EGREP 21049 21050# A literal string matcher. 21051FGREP=$lt_FGREP 21052 21053# A BSD- or MS-compatible name lister. 21054NM=$lt_NM 21055 21056# Whether we need soft or hard links. 21057LN_S=$lt_LN_S 21058 21059# What is the maximum length of a command? 21060max_cmd_len=$max_cmd_len 21061 21062# Object file suffix (normally "o"). 21063objext=$ac_objext 21064 21065# Executable file suffix (normally ""). 21066exeext=$exeext 21067 21068# whether the shell understands "unset". 21069lt_unset=$lt_unset 21070 21071# turn spaces into newlines. 21072SP2NL=$lt_lt_SP2NL 21073 21074# turn newlines into spaces. 21075NL2SP=$lt_lt_NL2SP 21076 21077# convert \$build file names to \$host format. 21078to_host_file_cmd=$lt_cv_to_host_file_cmd 21079 21080# convert \$build files to toolchain format. 21081to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21082 21083# An object symbol dumper. 21084OBJDUMP=$lt_OBJDUMP 21085 21086# Method to check whether dependent libraries are shared objects. 21087deplibs_check_method=$lt_deplibs_check_method 21088 21089# Command to use when deplibs_check_method = "file_magic". 21090file_magic_cmd=$lt_file_magic_cmd 21091 21092# How to find potential files when deplibs_check_method = "file_magic". 21093file_magic_glob=$lt_file_magic_glob 21094 21095# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21096want_nocaseglob=$lt_want_nocaseglob 21097 21098# DLL creation program. 21099DLLTOOL=$lt_DLLTOOL 21100 21101# Command to associate shared and link libraries. 21102sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21103 21104# The archiver. 21105AR=$lt_AR 21106 21107# Flags to create an archive. 21108AR_FLAGS=$lt_AR_FLAGS 21109 21110# How to feed a file listing to the archiver. 21111archiver_list_spec=$lt_archiver_list_spec 21112 21113# A symbol stripping program. 21114STRIP=$lt_STRIP 21115 21116# Commands used to install an old-style archive. 21117RANLIB=$lt_RANLIB 21118old_postinstall_cmds=$lt_old_postinstall_cmds 21119old_postuninstall_cmds=$lt_old_postuninstall_cmds 21120 21121# Whether to use a lock for old archive extraction. 21122lock_old_archive_extraction=$lock_old_archive_extraction 21123 21124# A C compiler. 21125LTCC=$lt_CC 21126 21127# LTCC compiler flags. 21128LTCFLAGS=$lt_CFLAGS 21129 21130# Take the output of nm and produce a listing of raw symbols and C names. 21131global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21132 21133# Transform the output of nm in a proper C declaration. 21134global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21135 21136# Transform the output of nm in a C name address pair. 21137global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21138 21139# Transform the output of nm in a C name address pair when lib prefix is needed. 21140global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21141 21142# Specify filename containing input files for \$NM. 21143nm_file_list_spec=$lt_nm_file_list_spec 21144 21145# The root where to search for dependent libraries,and in which our libraries should be installed. 21146lt_sysroot=$lt_sysroot 21147 21148# The name of the directory that contains temporary libtool files. 21149objdir=$objdir 21150 21151# Used to examine libraries when file_magic_cmd begins with "file". 21152MAGIC_CMD=$MAGIC_CMD 21153 21154# Must we lock files when doing compilation? 21155need_locks=$lt_need_locks 21156 21157# Manifest tool. 21158MANIFEST_TOOL=$lt_MANIFEST_TOOL 21159 21160# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21161DSYMUTIL=$lt_DSYMUTIL 21162 21163# Tool to change global to local symbols on Mac OS X. 21164NMEDIT=$lt_NMEDIT 21165 21166# Tool to manipulate fat objects and archives on Mac OS X. 21167LIPO=$lt_LIPO 21168 21169# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21170OTOOL=$lt_OTOOL 21171 21172# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21173OTOOL64=$lt_OTOOL64 21174 21175# Old archive suffix (normally "a"). 21176libext=$libext 21177 21178# Shared library suffix (normally ".so"). 21179shrext_cmds=$lt_shrext_cmds 21180 21181# The commands to extract the exported symbol list from a shared archive. 21182extract_expsyms_cmds=$lt_extract_expsyms_cmds 21183 21184# Variables whose values should be saved in libtool wrapper scripts and 21185# restored at link time. 21186variables_saved_for_relink=$lt_variables_saved_for_relink 21187 21188# Do we need the "lib" prefix for modules? 21189need_lib_prefix=$need_lib_prefix 21190 21191# Do we need a version for libraries? 21192need_version=$need_version 21193 21194# Library versioning type. 21195version_type=$version_type 21196 21197# Shared library runtime path variable. 21198runpath_var=$runpath_var 21199 21200# Shared library path variable. 21201shlibpath_var=$shlibpath_var 21202 21203# Is shlibpath searched before the hard-coded library search path? 21204shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21205 21206# Format of library name prefix. 21207libname_spec=$lt_libname_spec 21208 21209# List of archive names. First name is the real one, the rest are links. 21210# The last name is the one that the linker finds with -lNAME 21211library_names_spec=$lt_library_names_spec 21212 21213# The coded name of the library, if different from the real name. 21214soname_spec=$lt_soname_spec 21215 21216# Permission mode override for installation of shared libraries. 21217install_override_mode=$lt_install_override_mode 21218 21219# Command to use after installation of a shared archive. 21220postinstall_cmds=$lt_postinstall_cmds 21221 21222# Command to use after uninstallation of a shared archive. 21223postuninstall_cmds=$lt_postuninstall_cmds 21224 21225# Commands used to finish a libtool library installation in a directory. 21226finish_cmds=$lt_finish_cmds 21227 21228# As "finish_cmds", except a single script fragment to be evaled but 21229# not shown. 21230finish_eval=$lt_finish_eval 21231 21232# Whether we should hardcode library paths into libraries. 21233hardcode_into_libs=$hardcode_into_libs 21234 21235# Compile-time system search path for libraries. 21236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21237 21238# Run-time system search path for libraries. 21239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21240 21241# Whether dlopen is supported. 21242dlopen_support=$enable_dlopen 21243 21244# Whether dlopen of programs is supported. 21245dlopen_self=$enable_dlopen_self 21246 21247# Whether dlopen of statically linked programs is supported. 21248dlopen_self_static=$enable_dlopen_self_static 21249 21250# Commands to strip libraries. 21251old_striplib=$lt_old_striplib 21252striplib=$lt_striplib 21253 21254 21255# The linker used to build libraries. 21256LD=$lt_LD 21257 21258# How to create reloadable object files. 21259reload_flag=$lt_reload_flag 21260reload_cmds=$lt_reload_cmds 21261 21262# Commands used to build an old-style archive. 21263old_archive_cmds=$lt_old_archive_cmds 21264 21265# A language specific compiler. 21266CC=$lt_compiler 21267 21268# Is the compiler the GNU compiler? 21269with_gcc=$GCC 21270 21271# Compiler flag to turn off builtin functions. 21272no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21273 21274# Additional compiler flags for building library objects. 21275pic_flag=$lt_lt_prog_compiler_pic 21276 21277# How to pass a linker flag through the compiler. 21278wl=$lt_lt_prog_compiler_wl 21279 21280# Compiler flag to prevent dynamic linking. 21281link_static_flag=$lt_lt_prog_compiler_static 21282 21283# Does compiler simultaneously support -c and -o options? 21284compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21285 21286# Whether or not to add -lc for building shared libraries. 21287build_libtool_need_lc=$archive_cmds_need_lc 21288 21289# Whether or not to disallow shared libs when runtime libs are static. 21290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21291 21292# Compiler flag to allow reflexive dlopens. 21293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21294 21295# Compiler flag to generate shared objects directly from archives. 21296whole_archive_flag_spec=$lt_whole_archive_flag_spec 21297 21298# Whether the compiler copes with passing no objects directly. 21299compiler_needs_object=$lt_compiler_needs_object 21300 21301# Create an old-style archive from a shared archive. 21302old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21303 21304# Create a temporary old-style archive to link instead of a shared archive. 21305old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21306 21307# Commands used to build a shared archive. 21308archive_cmds=$lt_archive_cmds 21309archive_expsym_cmds=$lt_archive_expsym_cmds 21310 21311# Commands used to build a loadable module if different from building 21312# a shared archive. 21313module_cmds=$lt_module_cmds 21314module_expsym_cmds=$lt_module_expsym_cmds 21315 21316# Whether we are building with GNU ld or not. 21317with_gnu_ld=$lt_with_gnu_ld 21318 21319# Flag that allows shared libraries with undefined symbols to be built. 21320allow_undefined_flag=$lt_allow_undefined_flag 21321 21322# Flag that enforces no undefined symbols. 21323no_undefined_flag=$lt_no_undefined_flag 21324 21325# Flag to hardcode \$libdir into a binary during linking. 21326# This must work even if \$libdir does not exist 21327hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21328 21329# Whether we need a single "-rpath" flag with a separated argument. 21330hardcode_libdir_separator=$lt_hardcode_libdir_separator 21331 21332# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21333# DIR into the resulting binary. 21334hardcode_direct=$hardcode_direct 21335 21336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21337# DIR into the resulting binary and the resulting library dependency is 21338# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21339# library is relocated. 21340hardcode_direct_absolute=$hardcode_direct_absolute 21341 21342# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21343# into the resulting binary. 21344hardcode_minus_L=$hardcode_minus_L 21345 21346# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21347# into the resulting binary. 21348hardcode_shlibpath_var=$hardcode_shlibpath_var 21349 21350# Set to "yes" if building a shared library automatically hardcodes DIR 21351# into the library and all subsequent libraries and executables linked 21352# against it. 21353hardcode_automatic=$hardcode_automatic 21354 21355# Set to yes if linker adds runtime paths of dependent libraries 21356# to runtime path list. 21357inherit_rpath=$inherit_rpath 21358 21359# Whether libtool must link a program against all its dependency libraries. 21360link_all_deplibs=$link_all_deplibs 21361 21362# Set to "yes" if exported symbols are required. 21363always_export_symbols=$always_export_symbols 21364 21365# The commands to list exported symbols. 21366export_symbols_cmds=$lt_export_symbols_cmds 21367 21368# Symbols that should not be listed in the preloaded symbols. 21369exclude_expsyms=$lt_exclude_expsyms 21370 21371# Symbols that must always be exported. 21372include_expsyms=$lt_include_expsyms 21373 21374# Commands necessary for linking programs (against libraries) with templates. 21375prelink_cmds=$lt_prelink_cmds 21376 21377# Commands necessary for finishing linking programs. 21378postlink_cmds=$lt_postlink_cmds 21379 21380# Specify filename containing input files. 21381file_list_spec=$lt_file_list_spec 21382 21383# How to hardcode a shared library path into an executable. 21384hardcode_action=$hardcode_action 21385 21386# ### END LIBTOOL CONFIG 21387 21388_LT_EOF 21389 21390 case $host_os in 21391 aix3*) 21392 cat <<\_LT_EOF >> "$cfgfile" 21393# AIX sometimes has problems with the GCC collect2 program. For some 21394# reason, if we set the COLLECT_NAMES environment variable, the problems 21395# vanish in a puff of smoke. 21396if test "X${COLLECT_NAMES+set}" != Xset; then 21397 COLLECT_NAMES= 21398 export COLLECT_NAMES 21399fi 21400_LT_EOF 21401 ;; 21402 esac 21403 21404 21405ltmain="$ac_aux_dir/ltmain.sh" 21406 21407 21408 # We use sed instead of cat because bash on DJGPP gets confused if 21409 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21410 # text mode, it properly converts lines to CR/LF. This bash problem 21411 # is reportedly fixed, but why not run on old versions too? 21412 sed '$q' "$ltmain" >> "$cfgfile" \ 21413 || (rm -f "$cfgfile"; exit 1) 21414 21415 if test x"$xsi_shell" = xyes; then 21416 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21417func_dirname ()\ 21418{\ 21419\ case ${1} in\ 21420\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21421\ * ) func_dirname_result="${3}" ;;\ 21422\ esac\ 21423} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21424 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21426test 0 -eq $? || _lt_function_replace_fail=: 21427 21428 21429 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21430func_basename ()\ 21431{\ 21432\ func_basename_result="${1##*/}"\ 21433} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21434 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21436test 0 -eq $? || _lt_function_replace_fail=: 21437 21438 21439 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21440func_dirname_and_basename ()\ 21441{\ 21442\ case ${1} in\ 21443\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21444\ * ) func_dirname_result="${3}" ;;\ 21445\ esac\ 21446\ func_basename_result="${1##*/}"\ 21447} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21448 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21449 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21450test 0 -eq $? || _lt_function_replace_fail=: 21451 21452 21453 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21454func_stripname ()\ 21455{\ 21456\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21457\ # positional parameters, so assign one to ordinary parameter first.\ 21458\ func_stripname_result=${3}\ 21459\ func_stripname_result=${func_stripname_result#"${1}"}\ 21460\ func_stripname_result=${func_stripname_result%"${2}"}\ 21461} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21462 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21463 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21464test 0 -eq $? || _lt_function_replace_fail=: 21465 21466 21467 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21468func_split_long_opt ()\ 21469{\ 21470\ func_split_long_opt_name=${1%%=*}\ 21471\ func_split_long_opt_arg=${1#*=}\ 21472} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21473 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21474 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21475test 0 -eq $? || _lt_function_replace_fail=: 21476 21477 21478 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21479func_split_short_opt ()\ 21480{\ 21481\ func_split_short_opt_arg=${1#??}\ 21482\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21483} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21484 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21485 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21486test 0 -eq $? || _lt_function_replace_fail=: 21487 21488 21489 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21490func_lo2o ()\ 21491{\ 21492\ case ${1} in\ 21493\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21494\ *) func_lo2o_result=${1} ;;\ 21495\ esac\ 21496} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21497 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21499test 0 -eq $? || _lt_function_replace_fail=: 21500 21501 21502 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21503func_xform ()\ 21504{\ 21505 func_xform_result=${1%.*}.lo\ 21506} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21507 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21509test 0 -eq $? || _lt_function_replace_fail=: 21510 21511 21512 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21513func_arith ()\ 21514{\ 21515 func_arith_result=$(( $* ))\ 21516} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21517 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21518 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21519test 0 -eq $? || _lt_function_replace_fail=: 21520 21521 21522 sed -e '/^func_len ()$/,/^} # func_len /c\ 21523func_len ()\ 21524{\ 21525 func_len_result=${#1}\ 21526} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21527 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21529test 0 -eq $? || _lt_function_replace_fail=: 21530 21531fi 21532 21533if test x"$lt_shell_append" = xyes; then 21534 sed -e '/^func_append ()$/,/^} # func_append /c\ 21535func_append ()\ 21536{\ 21537 eval "${1}+=\\${2}"\ 21538} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21539 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21541test 0 -eq $? || _lt_function_replace_fail=: 21542 21543 21544 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21545func_append_quoted ()\ 21546{\ 21547\ func_quote_for_eval "${2}"\ 21548\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21549} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21550 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21552test 0 -eq $? || _lt_function_replace_fail=: 21553 21554 21555 # Save a `func_append' function call where possible by direct use of '+=' 21556 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21557 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21559 test 0 -eq $? || _lt_function_replace_fail=: 21560else 21561 # Save a `func_append' function call even when '+=' is not available 21562 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21563 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21565 test 0 -eq $? || _lt_function_replace_fail=: 21566fi 21567 21568if test x"$_lt_function_replace_fail" = x":"; then 21569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21570$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21571fi 21572 21573 21574 mv -f "$cfgfile" "$ofile" || 21575 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21576 chmod +x "$ofile" 21577 21578 ;; 21579 21580 esac 21581done # for ac_tag 21582 21583 21584as_fn_exit 0 21585_ACEOF 21586ac_clean_files=$ac_clean_files_save 21587 21588test $ac_write_fail = 0 || 21589 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21590 21591 21592# configure is writing to config.log, and then calls config.status. 21593# config.status does its own redirection, appending to config.log. 21594# Unfortunately, on DOS this fails, as config.log is still kept open 21595# by configure, so config.status won't be able to write to it; its 21596# output is simply discarded. So we exec the FD to /dev/null, 21597# effectively closing config.log, so it can be properly (re)opened and 21598# appended to by config.status. When coming back to configure, we 21599# need to make the FD available again. 21600if test "$no_create" != yes; then 21601 ac_cs_success=: 21602 ac_config_status_args= 21603 test "$silent" = yes && 21604 ac_config_status_args="$ac_config_status_args --quiet" 21605 exec 5>/dev/null 21606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21607 exec 5>>config.log 21608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21609 # would make configure fail if this is the last instruction. 21610 $ac_cs_success || as_fn_exit 1 21611fi 21612if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21614$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21615fi 21616 21617 21618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 21619 $PACKAGE_NAME $VERSION 21620 21621 libxkbcommon: yes 21622 libxkbcommon-x11: ${enable_x11} 21623 documentation: ${build_docs} 21624 21625 default XKB rules: ${DEFAULT_XKB_RULES} 21626 default XKB model: ${DEFAULT_XKB_MODEL} 21627 default XKB layout: ${DEFAULT_XKB_LAYOUT} 21628 default XKB variant: ${DEFAULT_XKB_VARIANT} 21629 default XKB options: ${DEFAULT_XKB_OPTIONS} 21630 21631 prefix: ${prefix} 21632 includedir: ${includedir} 21633 lib dir: ${libdir} 21634 XKB config root: ${XKBCONFIGROOT} 21635 X11 locale root: ${XLOCALEDIR} 21636" >&5 21637$as_echo " 21638 $PACKAGE_NAME $VERSION 21639 21640 libxkbcommon: yes 21641 libxkbcommon-x11: ${enable_x11} 21642 documentation: ${build_docs} 21643 21644 default XKB rules: ${DEFAULT_XKB_RULES} 21645 default XKB model: ${DEFAULT_XKB_MODEL} 21646 default XKB layout: ${DEFAULT_XKB_LAYOUT} 21647 default XKB variant: ${DEFAULT_XKB_VARIANT} 21648 default XKB options: ${DEFAULT_XKB_OPTIONS} 21649 21650 prefix: ${prefix} 21651 includedir: ${includedir} 21652 lib dir: ${libdir} 21653 XKB config root: ${XKBCONFIGROOT} 21654 X11 locale root: ${XLOCALEDIR} 21655" >&6; } 21656