configure revision 70728a38
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libxkbfile 1.0.9. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libxkbfile' 593PACKAGE_TARNAME='libxkbfile' 594PACKAGE_VERSION='1.0.9' 595PACKAGE_STRING='libxkbfile 1.0.9' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 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 639LIBOBJS 640XKBFILE_LIBS 641XKBFILE_CFLAGS 642MAN_SUBSTS 643XORG_MAN_PAGE 644ADMIN_MAN_DIR 645DRIVER_MAN_DIR 646MISC_MAN_DIR 647FILE_MAN_DIR 648LIB_MAN_DIR 649APP_MAN_DIR 650ADMIN_MAN_SUFFIX 651DRIVER_MAN_SUFFIX 652MISC_MAN_SUFFIX 653FILE_MAN_SUFFIX 654LIB_MAN_SUFFIX 655APP_MAN_SUFFIX 656INSTALL_CMD 657PKG_CONFIG 658CHANGELOG_CMD 659STRICT_CFLAGS 660CWARNFLAGS 661BASE_CFLAGS 662CPP 663OTOOL64 664OTOOL 665LIPO 666NMEDIT 667DSYMUTIL 668MANIFEST_TOOL 669RANLIB 670ac_ct_AR 671AR 672DLLTOOL 673OBJDUMP 674LN_S 675NM 676ac_ct_DUMPBIN 677DUMPBIN 678LD 679FGREP 680EGREP 681GREP 682SED 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__quote 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700host_os 701host_vendor 702host_cpu 703host 704build_os 705build_vendor 706build_cpu 707build 708LIBTOOL 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711AM_DEFAULT_V 712AM_V 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733INSTALL_DATA 734INSTALL_SCRIPT 735INSTALL_PROGRAM 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_silent_rules 778enable_shared 779enable_static 780with_pic 781enable_fast_install 782enable_dependency_tracking 783with_gnu_ld 784with_sysroot 785enable_libtool_lock 786enable_selective_werror 787enable_strict_compilation 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797CPP 798PKG_CONFIG 799XKBFILE_CFLAGS 800XKBFILE_LIBS' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1092 ac_prev=sbindir ;; 1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1094 | --sbi=* | --sb=*) 1095 sbindir=$ac_optarg ;; 1096 1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1099 | --sharedst | --shareds | --shared | --share | --shar \ 1100 | --sha | --sh) 1101 ac_prev=sharedstatedir ;; 1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1105 | --sha=* | --sh=*) 1106 sharedstatedir=$ac_optarg ;; 1107 1108 -site | --site | --sit) 1109 ac_prev=site ;; 1110 -site=* | --site=* | --sit=*) 1111 site=$ac_optarg ;; 1112 1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1114 ac_prev=srcdir ;; 1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1116 srcdir=$ac_optarg ;; 1117 1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1119 | --syscon | --sysco | --sysc | --sys | --sy) 1120 ac_prev=sysconfdir ;; 1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1123 sysconfdir=$ac_optarg ;; 1124 1125 -target | --target | --targe | --targ | --tar | --ta | --t) 1126 ac_prev=target_alias ;; 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1128 target_alias=$ac_optarg ;; 1129 1130 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1131 verbose=yes ;; 1132 1133 -version | --version | --versio | --versi | --vers | -V) 1134 ac_init_version=: ;; 1135 1136 -with-* | --with-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"with_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=\$ac_optarg ;; 1151 1152 -without-* | --without-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1187Try \`$0 --help' for more information" 1188 ;; 1189 1190 *=*) 1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 # Reject names that are not valid shell variable names. 1193 case $ac_envvar in #( 1194 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1196 esac 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1206 ;; 1207 1208 esac 1209done 1210 1211if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 as_fn_error $? "missing argument to $ac_option" 1214fi 1215 1216if test -n "$ac_unrecognized_opts"; then 1217 case $enable_option_checking in 1218 no) ;; 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1221 esac 1222fi 1223 1224# Check all directory arguments for consistency. 1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 datadir sysconfdir sharedstatedir localstatedir includedir \ 1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1228 libdir localedir mandir 1229do 1230 eval ac_val=\$$ac_var 1231 # Remove trailing slashes. 1232 case $ac_val in 1233 */ ) 1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1235 eval $ac_var=\$ac_val;; 1236 esac 1237 # Be sure to have absolute directory names. 1238 case $ac_val in 1239 [\\/$]* | ?:[\\/]* ) continue;; 1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 esac 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1243done 1244 1245# There might be people who depend on the old broken behavior: `$host' 1246# used to hold the argument of --host etc. 1247# FIXME: To remove some day. 1248build=$build_alias 1249host=$host_alias 1250target=$target_alias 1251 1252# FIXME: To remove some day. 1253if test "x$host_alias" != x; then 1254 if test "x$build_alias" = x; then 1255 cross_compiling=maybe 1256 elif test "x$build_alias" != "x$host_alias"; then 1257 cross_compiling=yes 1258 fi 1259fi 1260 1261ac_tool_prefix= 1262test -n "$host_alias" && ac_tool_prefix=$host_alias- 1263 1264test "$silent" = yes && exec 6>/dev/null 1265 1266 1267ac_pwd=`pwd` && test -n "$ac_pwd" && 1268ac_ls_di=`ls -di .` && 1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1270 as_fn_error $? "working directory cannot be determined" 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1272 as_fn_error $? "pwd does not report name of working directory" 1273 1274 1275# Find the source files, if location was not specified. 1276if test -z "$srcdir"; then 1277 ac_srcdir_defaulted=yes 1278 # Try the directory containing this script, then the parent directory. 1279 ac_confdir=`$as_dirname -- "$as_myself" || 1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1281 X"$as_myself" : 'X\(//\)[^/]' \| \ 1282 X"$as_myself" : 'X\(//\)$' \| \ 1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1284$as_echo X"$as_myself" | 1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)[^/].*/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\).*/{ 1298 s//\1/ 1299 q 1300 } 1301 s/.*/./; q'` 1302 srcdir=$ac_confdir 1303 if test ! -r "$srcdir/$ac_unique_file"; then 1304 srcdir=.. 1305 fi 1306else 1307 ac_srcdir_defaulted=no 1308fi 1309if test ! -r "$srcdir/$ac_unique_file"; then 1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1312fi 1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1314ac_abs_confdir=`( 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1316 pwd)` 1317# When building in place, set srcdir=. 1318if test "$ac_abs_confdir" = "$ac_pwd"; then 1319 srcdir=. 1320fi 1321# Remove unnecessary trailing slashes from srcdir. 1322# Double slashes in file names in object file debugging info 1323# mess up M-x gdb in Emacs. 1324case $srcdir in 1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1326esac 1327for ac_var in $ac_precious_vars; do 1328 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_env_${ac_var}_value=\$${ac_var} 1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1332done 1333 1334# 1335# Report the --help message. 1336# 1337if test "$ac_init_help" = "long"; then 1338 # Omit some internal or obsolete options to make the list less imposing. 1339 # This message is too long to be a string in the A/UX 3.1 sh. 1340 cat <<_ACEOF 1341\`configure' configures libxkbfile 1.0.9 to adapt to many kinds of systems. 1342 1343Usage: $0 [OPTION]... [VAR=VALUE]... 1344 1345To assign environment variables (e.g., CC, CFLAGS...), specify them as 1346VAR=VALUE. See below for descriptions of some of the useful variables. 1347 1348Defaults for the options are specified in brackets. 1349 1350Configuration: 1351 -h, --help display this help and exit 1352 --help=short display options specific to this package 1353 --help=recursive display the short help of all the included packages 1354 -V, --version display version information and exit 1355 -q, --quiet, --silent do not print \`checking ...' messages 1356 --cache-file=FILE cache test results in FILE [disabled] 1357 -C, --config-cache alias for \`--cache-file=config.cache' 1358 -n, --no-create do not create output files 1359 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1360 1361Installation directories: 1362 --prefix=PREFIX install architecture-independent files in PREFIX 1363 [$ac_default_prefix] 1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1365 [PREFIX] 1366 1367By default, \`make install' will install all the files in 1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1369an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1370for instance \`--prefix=\$HOME'. 1371 1372For better control, use the options below. 1373 1374Fine tuning of the installation directories: 1375 --bindir=DIR user executables [EPREFIX/bin] 1376 --sbindir=DIR system admin executables [EPREFIX/sbin] 1377 --libexecdir=DIR program executables [EPREFIX/libexec] 1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of libxkbfile 1.0.9:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-shared[=PKGS] build shared libraries [default=yes] 1422 --enable-static[=PKGS] build static libraries [default=yes] 1423 --enable-fast-install[=PKGS] 1424 optimize for fast installation [default=yes] 1425 --enable-dependency-tracking 1426 do not reject slow dependency extractors 1427 --disable-dependency-tracking 1428 speeds up one-time build 1429 --disable-libtool-lock avoid locking (might break parallel builds) 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 1437Optional Packages: 1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1441 both] 1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1443 --with-sysroot=DIR Search for dependent libraries within DIR 1444 (or the compiler's sysroot if not specified). 1445 1446Some influential environment variables: 1447 CC C compiler command 1448 CFLAGS C compiler flags 1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450 nonstandard directory <lib dir> 1451 LIBS libraries to pass to the linker, e.g. -l<library> 1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453 you have headers in a nonstandard directory <include dir> 1454 CPP C preprocessor 1455 PKG_CONFIG path to pkg-config utility 1456 XKBFILE_CFLAGS 1457 C compiler flags for XKBFILE, overriding pkg-config 1458 XKBFILE_LIBS 1459 linker flags for XKBFILE, overriding pkg-config 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for guested configure. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527libxkbfile configure 1.0.9 1528generated by GNU Autoconf 2.69 1529 1530Copyright (C) 2012 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext; then : 1567 ac_retval=0 1568else 1569 $as_echo "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 1573fi 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 as_fn_set_status $ac_retval 1576 1577} # ac_fn_c_try_compile 1578 1579# ac_fn_c_try_link LINENO 1580# ----------------------- 1581# Try to link conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_link () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext conftest$ac_exeext 1586 if { { ac_try="$ac_link" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_link") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest$ac_exeext && { 1605 test "$cross_compiling" = yes || 1606 test -x conftest$ac_exeext 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1617 # interfere with the next link command; also delete a directory that is 1618 # left behind by Apple's compiler. We do this before executing the actions. 1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_link 1624 1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1626# ------------------------------------------------------- 1627# Tests whether HEADER exists and can be compiled using the include files in 1628# INCLUDES, setting the cache variable VAR accordingly. 1629ac_fn_c_check_header_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640#include <$2> 1641_ACEOF 1642if ac_fn_c_try_compile "$LINENO"; then : 1643 eval "$3=yes" 1644else 1645 eval "$3=no" 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1648fi 1649eval ac_res=\$$3 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651$as_echo "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_c_check_header_compile 1655 1656# ac_fn_c_try_cpp LINENO 1657# ---------------------- 1658# Try to preprocess conftest.$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_try_run LINENO 1694# ---------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1696# that executables *can* be run. 1697ac_fn_c_try_run () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1711 { { case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_try") 2>&5 1718 ac_status=$? 1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1720 test $ac_status = 0; }; }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: program exited with status $ac_status" >&5 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=$ac_status 1728fi 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_run 1734 1735# ac_fn_c_check_func LINENO FUNC VAR 1736# ---------------------------------- 1737# Tests whether FUNC exists, setting the cache variable VAR accordingly 1738ac_fn_c_check_func () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742$as_echo_n "checking for $2... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. 1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1755 <limits.h> exists even on freestanding compilers. */ 1756 1757#ifdef __STDC__ 1758# include <limits.h> 1759#else 1760# include <assert.h> 1761#endif 1762 1763#undef $2 1764 1765/* Override any GCC internal prototype to avoid an error. 1766 Use char because int might match the return type of a GCC 1767 builtin and then its argument prototype would still apply. */ 1768#ifdef __cplusplus 1769extern "C" 1770#endif 1771char $2 (); 1772/* The GNU C library defines this for functions which it implements 1773 to always fail with ENOSYS. Some functions are actually named 1774 something starting with __ and the normal name is an alias. */ 1775#if defined __stub_$2 || defined __stub___$2 1776choke me 1777#endif 1778 1779int 1780main () 1781{ 1782return $2 (); 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_link "$LINENO"; then : 1788 eval "$3=yes" 1789else 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext \ 1793 conftest$ac_exeext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_func 1801 1802# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1803# --------------------------------------------- 1804# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1805# accordingly. 1806ac_fn_c_check_decl () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 as_decl_name=`echo $2|sed 's/ *(.*//'` 1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1812$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819int 1820main () 1821{ 1822#ifndef $as_decl_name 1823#ifdef __cplusplus 1824 (void) $as_decl_use; 1825#else 1826 (void) $as_decl_name; 1827#endif 1828#endif 1829 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO"; then : 1835 eval "$3=yes" 1836else 1837 eval "$3=no" 1838fi 1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1840fi 1841eval ac_res=\$$3 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843$as_echo "$ac_res" >&6; } 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 1846} # ac_fn_c_check_decl 1847cat >config.log <<_ACEOF 1848This file contains any messages produced by compilers while 1849running configure, to aid debugging if configure makes a mistake. 1850 1851It was created by libxkbfile $as_me 1.0.9, which was 1852generated by GNU Autoconf 2.69. Invocation command line was 1853 1854 $ $0 $@ 1855 1856_ACEOF 1857exec 5>>config.log 1858{ 1859cat <<_ASUNAME 1860## --------- ## 1861## Platform. ## 1862## --------- ## 1863 1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1865uname -m = `(uname -m) 2>/dev/null || echo unknown` 1866uname -r = `(uname -r) 2>/dev/null || echo unknown` 1867uname -s = `(uname -s) 2>/dev/null || echo unknown` 1868uname -v = `(uname -v) 2>/dev/null || echo unknown` 1869 1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1871/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1872 1873/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1874/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1876/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1877/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1878/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1879/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1880 1881_ASUNAME 1882 1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1884for as_dir in $PATH 1885do 1886 IFS=$as_save_IFS 1887 test -z "$as_dir" && as_dir=. 1888 $as_echo "PATH: $as_dir" 1889 done 1890IFS=$as_save_IFS 1891 1892} >&5 1893 1894cat >&5 <<_ACEOF 1895 1896 1897## ----------- ## 1898## Core tests. ## 1899## ----------- ## 1900 1901_ACEOF 1902 1903 1904# Keep a trace of the command line. 1905# Strip out --no-create and --no-recursion so they do not pile up. 1906# Strip out --silent because we don't want to record it for future runs. 1907# Also quote any args containing shell meta-characters. 1908# Make two passes to allow for proper duplicate-argument suppression. 1909ac_configure_args= 1910ac_configure_args0= 1911ac_configure_args1= 1912ac_must_keep_next=false 1913for ac_pass in 1 2 1914do 1915 for ac_arg 1916 do 1917 case $ac_arg in 1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1920 | -silent | --silent | --silen | --sile | --sil) 1921 continue ;; 1922 *\'*) 1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1924 esac 1925 case $ac_pass in 1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1927 2) 1928 as_fn_append ac_configure_args1 " '$ac_arg'" 1929 if test $ac_must_keep_next = true; then 1930 ac_must_keep_next=false # Got value, back to normal. 1931 else 1932 case $ac_arg in 1933 *=* | --config-cache | -C | -disable-* | --disable-* \ 1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1936 | -with-* | --with-* | -without-* | --without-* | --x) 1937 case "$ac_configure_args0 " in 1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1939 esac 1940 ;; 1941 -* ) ac_must_keep_next=true ;; 1942 esac 1943 fi 1944 as_fn_append ac_configure_args " '$ac_arg'" 1945 ;; 1946 esac 1947 done 1948done 1949{ ac_configure_args0=; unset ac_configure_args0;} 1950{ ac_configure_args1=; unset ac_configure_args1;} 1951 1952# When interrupted or exit'd, cleanup temporary files, and complete 1953# config.log. We remove comments because anyway the quotes in there 1954# would cause problems or look ugly. 1955# WARNING: Use '\'' to represent an apostrophe within the trap. 1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1957trap 'exit_status=$? 1958 # Save into config.log some information that might help in debugging. 1959 { 1960 echo 1961 1962 $as_echo "## ---------------- ## 1963## Cache variables. ## 1964## ---------------- ##" 1965 echo 1966 # The following way of writing the cache mishandles newlines in values, 1967( 1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1969 eval ac_val=\$$ac_var 1970 case $ac_val in #( 1971 *${as_nl}*) 1972 case $ac_var in #( 1973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1974$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1975 esac 1976 case $ac_var in #( 1977 _ | IFS | as_nl) ;; #( 1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1979 *) { eval $ac_var=; unset $ac_var;} ;; 1980 esac ;; 1981 esac 1982 done 1983 (set) 2>&1 | 1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1985 *${as_nl}ac_space=\ *) 1986 sed -n \ 1987 "s/'\''/'\''\\\\'\'''\''/g; 1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1989 ;; #( 1990 *) 1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1992 ;; 1993 esac | 1994 sort 1995) 1996 echo 1997 1998 $as_echo "## ----------------- ## 1999## Output variables. ## 2000## ----------------- ##" 2001 echo 2002 for ac_var in $ac_subst_vars 2003 do 2004 eval ac_val=\$$ac_var 2005 case $ac_val in 2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2007 esac 2008 $as_echo "$ac_var='\''$ac_val'\''" 2009 done | sort 2010 echo 2011 2012 if test -n "$ac_subst_files"; then 2013 $as_echo "## ------------------- ## 2014## File substitutions. ## 2015## ------------------- ##" 2016 echo 2017 for ac_var in $ac_subst_files 2018 do 2019 eval ac_val=\$$ac_var 2020 case $ac_val in 2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2022 esac 2023 $as_echo "$ac_var='\''$ac_val'\''" 2024 done | sort 2025 echo 2026 fi 2027 2028 if test -s confdefs.h; then 2029 $as_echo "## ----------- ## 2030## confdefs.h. ## 2031## ----------- ##" 2032 echo 2033 cat confdefs.h 2034 echo 2035 fi 2036 test "$ac_signal" != 0 && 2037 $as_echo "$as_me: caught signal $ac_signal" 2038 $as_echo "$as_me: exit $exit_status" 2039 } >&5 2040 rm -f core *.core core.conftest.* && 2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2042 exit $exit_status 2043' 0 2044for ac_signal in 1 2 13 15; do 2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2046done 2047ac_signal=0 2048 2049# confdefs.h avoids OS command line length limits that DEFS can exceed. 2050rm -f -r conftest* confdefs.h 2051 2052$as_echo "/* confdefs.h */" > confdefs.h 2053 2054# Predefined preprocessor variables. 2055 2056cat >>confdefs.h <<_ACEOF 2057#define PACKAGE_NAME "$PACKAGE_NAME" 2058_ACEOF 2059 2060cat >>confdefs.h <<_ACEOF 2061#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2062_ACEOF 2063 2064cat >>confdefs.h <<_ACEOF 2065#define PACKAGE_VERSION "$PACKAGE_VERSION" 2066_ACEOF 2067 2068cat >>confdefs.h <<_ACEOF 2069#define PACKAGE_STRING "$PACKAGE_STRING" 2070_ACEOF 2071 2072cat >>confdefs.h <<_ACEOF 2073#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2074_ACEOF 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_URL "$PACKAGE_URL" 2078_ACEOF 2079 2080 2081# Let the site file select an alternate cache file if it wants to. 2082# Prefer an explicitly selected file to automatically selected ones. 2083ac_site_file1=NONE 2084ac_site_file2=NONE 2085if test -n "$CONFIG_SITE"; then 2086 # We do not want a PATH search for config.site. 2087 case $CONFIG_SITE in #(( 2088 -*) ac_site_file1=./$CONFIG_SITE;; 2089 */*) ac_site_file1=$CONFIG_SITE;; 2090 *) ac_site_file1=./$CONFIG_SITE;; 2091 esac 2092elif test "x$prefix" != xNONE; then 2093 ac_site_file1=$prefix/share/config.site 2094 ac_site_file2=$prefix/etc/config.site 2095else 2096 ac_site_file1=$ac_default_prefix/share/config.site 2097 ac_site_file2=$ac_default_prefix/etc/config.site 2098fi 2099for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2100do 2101 test "x$ac_site_file" = xNONE && continue 2102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2104$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2105 sed 's/^/| /' "$ac_site_file" >&5 2106 . "$ac_site_file" \ 2107 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2109as_fn_error $? "failed to load site script $ac_site_file 2110See \`config.log' for more details" "$LINENO" 5; } 2111 fi 2112done 2113 2114if test -r "$cache_file"; then 2115 # Some versions of bash will fail to source /dev/null (special files 2116 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2119$as_echo "$as_me: loading cache $cache_file" >&6;} 2120 case $cache_file in 2121 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2122 *) . "./$cache_file";; 2123 esac 2124 fi 2125else 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2127$as_echo "$as_me: creating cache $cache_file" >&6;} 2128 >$cache_file 2129fi 2130 2131# Check that the precious variables saved in the cache have kept the same 2132# value. 2133ac_cache_corrupted=false 2134for ac_var in $ac_precious_vars; do 2135 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2136 eval ac_new_set=\$ac_env_${ac_var}_set 2137 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2138 eval ac_new_val=\$ac_env_${ac_var}_value 2139 case $ac_old_set,$ac_new_set in 2140 set,) 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2142$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2143 ac_cache_corrupted=: ;; 2144 ,set) 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2146$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2147 ac_cache_corrupted=: ;; 2148 ,);; 2149 *) 2150 if test "x$ac_old_val" != "x$ac_new_val"; then 2151 # differences in whitespace do not lead to failure. 2152 ac_old_val_w=`echo x $ac_old_val` 2153 ac_new_val_w=`echo x $ac_new_val` 2154 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2156$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2157 ac_cache_corrupted=: 2158 else 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2160$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2161 eval $ac_var=\$ac_old_val 2162 fi 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2164$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2166$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2167 fi;; 2168 esac 2169 # Pass precious variables to config.status. 2170 if test "$ac_new_set" = set; then 2171 case $ac_new_val in 2172 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2173 *) ac_arg=$ac_var=$ac_new_val ;; 2174 esac 2175 case " $ac_configure_args " in 2176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2177 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2178 esac 2179 fi 2180done 2181if $ac_cache_corrupted; then 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2185$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2186 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2187fi 2188## -------------------- ## 2189## Main body of script. ## 2190## -------------------- ## 2191 2192ac_ext=c 2193ac_cpp='$CPP $CPPFLAGS' 2194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2196ac_compiler_gnu=$ac_cv_c_compiler_gnu 2197 2198 2199 2200ac_config_headers="$ac_config_headers config.h" 2201 2202 2203# Initialize Automake 2204am__api_version='1.15' 2205 2206ac_aux_dir= 2207for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2208 if test -f "$ac_dir/install-sh"; then 2209 ac_aux_dir=$ac_dir 2210 ac_install_sh="$ac_aux_dir/install-sh -c" 2211 break 2212 elif test -f "$ac_dir/install.sh"; then 2213 ac_aux_dir=$ac_dir 2214 ac_install_sh="$ac_aux_dir/install.sh -c" 2215 break 2216 elif test -f "$ac_dir/shtool"; then 2217 ac_aux_dir=$ac_dir 2218 ac_install_sh="$ac_aux_dir/shtool install -c" 2219 break 2220 fi 2221done 2222if test -z "$ac_aux_dir"; then 2223 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2224fi 2225 2226# These three variables are undocumented and unsupported, 2227# and are intended to be withdrawn in a future Autoconf release. 2228# They can cause serious problems if a builder's source tree is in a directory 2229# whose full name contains unusual characters. 2230ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2231ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2232ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2233 2234 2235# Find a good install program. We prefer a C program (faster), 2236# so one script is as good as another. But avoid the broken or 2237# incompatible versions: 2238# SysV /etc/install, /usr/sbin/install 2239# SunOS /usr/etc/install 2240# IRIX /sbin/install 2241# AIX /bin/install 2242# AmigaOS /C/install, which installs bootblocks on floppy discs 2243# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2244# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2245# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2246# OS/2's system install, which has a completely different semantic 2247# ./install, which can be erroneously created by make from ./install.sh. 2248# Reject install programs that cannot install multiple files. 2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2250$as_echo_n "checking for a BSD-compatible install... " >&6; } 2251if test -z "$INSTALL"; then 2252if ${ac_cv_path_install+:} false; then : 2253 $as_echo_n "(cached) " >&6 2254else 2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2256for as_dir in $PATH 2257do 2258 IFS=$as_save_IFS 2259 test -z "$as_dir" && as_dir=. 2260 # Account for people who put trailing slashes in PATH elements. 2261case $as_dir/ in #(( 2262 ./ | .// | /[cC]/* | \ 2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2265 /usr/ucb/* ) ;; 2266 *) 2267 # OSF1 and SCO ODT 3.0 have their own names for install. 2268 # Don't use installbsd from OSF since it installs stuff as root 2269 # by default. 2270 for ac_prog in ginstall scoinst install; do 2271 for ac_exec_ext in '' $ac_executable_extensions; do 2272 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2273 if test $ac_prog = install && 2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2275 # AIX install. It has an incompatible calling convention. 2276 : 2277 elif test $ac_prog = install && 2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2279 # program-specific install script used by HP pwplus--don't use. 2280 : 2281 else 2282 rm -rf conftest.one conftest.two conftest.dir 2283 echo one > conftest.one 2284 echo two > conftest.two 2285 mkdir conftest.dir 2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2287 test -s conftest.one && test -s conftest.two && 2288 test -s conftest.dir/conftest.one && 2289 test -s conftest.dir/conftest.two 2290 then 2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2292 break 3 2293 fi 2294 fi 2295 fi 2296 done 2297 done 2298 ;; 2299esac 2300 2301 done 2302IFS=$as_save_IFS 2303 2304rm -rf conftest.one conftest.two conftest.dir 2305 2306fi 2307 if test "${ac_cv_path_install+set}" = set; then 2308 INSTALL=$ac_cv_path_install 2309 else 2310 # As a last resort, use the slow shell script. Don't cache a 2311 # value for INSTALL within a source directory, because that will 2312 # break other packages using the cache if that directory is 2313 # removed, or if the value is a relative name. 2314 INSTALL=$ac_install_sh 2315 fi 2316fi 2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2318$as_echo "$INSTALL" >&6; } 2319 2320# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2321# It thinks the first close brace ends the variable substitution. 2322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2323 2324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2325 2326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2327 2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2329$as_echo_n "checking whether build environment is sane... " >&6; } 2330# Reject unsafe characters in $srcdir or the absolute working directory 2331# name. Accept space and tab only in the latter. 2332am_lf=' 2333' 2334case `pwd` in 2335 *[\\\"\#\$\&\'\`$am_lf]*) 2336 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2337esac 2338case $srcdir in 2339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2340 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2341esac 2342 2343# Do 'set' in a subshell so we don't clobber the current shell's 2344# arguments. Must try -L first in case configure is actually a 2345# symlink; some systems play weird games with the mod time of symlinks 2346# (eg FreeBSD returns the mod time of the symlink's containing 2347# directory). 2348if ( 2349 am_has_slept=no 2350 for am_try in 1 2; do 2351 echo "timestamp, slept: $am_has_slept" > conftest.file 2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2353 if test "$*" = "X"; then 2354 # -L didn't work. 2355 set X `ls -t "$srcdir/configure" conftest.file` 2356 fi 2357 if test "$*" != "X $srcdir/configure conftest.file" \ 2358 && test "$*" != "X conftest.file $srcdir/configure"; then 2359 2360 # If neither matched, then we have a broken ls. This can happen 2361 # if, for instance, CONFIG_SHELL is bash and it inherits a 2362 # broken ls alias from the environment. This has actually 2363 # happened. Such a system could not be considered "sane". 2364 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2365 alias in your environment" "$LINENO" 5 2366 fi 2367 if test "$2" = conftest.file || test $am_try -eq 2; then 2368 break 2369 fi 2370 # Just in case. 2371 sleep 1 2372 am_has_slept=yes 2373 done 2374 test "$2" = conftest.file 2375 ) 2376then 2377 # Ok. 2378 : 2379else 2380 as_fn_error $? "newly created file is older than distributed files! 2381Check your system clock" "$LINENO" 5 2382fi 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2384$as_echo "yes" >&6; } 2385# If we didn't sleep, we still need to ensure time stamps of config.status and 2386# generated files are strictly newer. 2387am_sleep_pid= 2388if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2389 ( sleep 1 ) & 2390 am_sleep_pid=$! 2391fi 2392 2393rm -f conftest.file 2394 2395test "$program_prefix" != NONE && 2396 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2397# Use a double $ so make ignores it. 2398test "$program_suffix" != NONE && 2399 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2400# Double any \ or $. 2401# By default was `s,x,x', remove it if useless. 2402ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2403program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2404 2405# Expand $ac_aux_dir to an absolute path. 2406am_aux_dir=`cd "$ac_aux_dir" && pwd` 2407 2408if test x"${MISSING+set}" != xset; then 2409 case $am_aux_dir in 2410 *\ * | *\ *) 2411 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2412 *) 2413 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2414 esac 2415fi 2416# Use eval to expand $SHELL 2417if eval "$MISSING --is-lightweight"; then 2418 am_missing_run="$MISSING " 2419else 2420 am_missing_run= 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2422$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2423fi 2424 2425if test x"${install_sh+set}" != xset; then 2426 case $am_aux_dir in 2427 *\ * | *\ *) 2428 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2429 *) 2430 install_sh="\${SHELL} $am_aux_dir/install-sh" 2431 esac 2432fi 2433 2434# Installed binaries are usually stripped using 'strip' when the user 2435# run "make install-strip". However 'strip' might not be the right 2436# tool to use in cross-compilation environments, therefore Automake 2437# will honor the 'STRIP' environment variable to overrule this program. 2438if test "$cross_compiling" != no; then 2439 if test -n "$ac_tool_prefix"; then 2440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2441set dummy ${ac_tool_prefix}strip; ac_word=$2 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2443$as_echo_n "checking for $ac_word... " >&6; } 2444if ${ac_cv_prog_STRIP+:} false; then : 2445 $as_echo_n "(cached) " >&6 2446else 2447 if test -n "$STRIP"; then 2448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2457 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462 done 2463IFS=$as_save_IFS 2464 2465fi 2466fi 2467STRIP=$ac_cv_prog_STRIP 2468if test -n "$STRIP"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2470$as_echo "$STRIP" >&6; } 2471else 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2473$as_echo "no" >&6; } 2474fi 2475 2476 2477fi 2478if test -z "$ac_cv_prog_STRIP"; then 2479 ac_ct_STRIP=$STRIP 2480 # Extract the first word of "strip", so it can be a program name with args. 2481set dummy strip; ac_word=$2 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2483$as_echo_n "checking for $ac_word... " >&6; } 2484if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2485 $as_echo_n "(cached) " >&6 2486else 2487 if test -n "$ac_ct_STRIP"; then 2488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2489else 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2497 ac_cv_prog_ac_ct_STRIP="strip" 2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502 done 2503IFS=$as_save_IFS 2504 2505fi 2506fi 2507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2508if test -n "$ac_ct_STRIP"; then 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2510$as_echo "$ac_ct_STRIP" >&6; } 2511else 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2513$as_echo "no" >&6; } 2514fi 2515 2516 if test "x$ac_ct_STRIP" = x; then 2517 STRIP=":" 2518 else 2519 case $cross_compiling:$ac_tool_warned in 2520yes:) 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2523ac_tool_warned=yes ;; 2524esac 2525 STRIP=$ac_ct_STRIP 2526 fi 2527else 2528 STRIP="$ac_cv_prog_STRIP" 2529fi 2530 2531fi 2532INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2533 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2535$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2536if test -z "$MKDIR_P"; then 2537 if ${ac_cv_path_mkdir+:} false; then : 2538 $as_echo_n "(cached) " >&6 2539else 2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_prog in mkdir gmkdir; do 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2548 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2549 'mkdir (GNU coreutils) '* | \ 2550 'mkdir (coreutils) '* | \ 2551 'mkdir (fileutils) '4.1*) 2552 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2553 break 3;; 2554 esac 2555 done 2556 done 2557 done 2558IFS=$as_save_IFS 2559 2560fi 2561 2562 test -d ./--version && rmdir ./--version 2563 if test "${ac_cv_path_mkdir+set}" = set; then 2564 MKDIR_P="$ac_cv_path_mkdir -p" 2565 else 2566 # As a last resort, use the slow shell script. Don't cache a 2567 # value for MKDIR_P within a source directory, because that will 2568 # break other packages using the cache if that directory is 2569 # removed, or if the value is a relative name. 2570 MKDIR_P="$ac_install_sh -d" 2571 fi 2572fi 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2574$as_echo "$MKDIR_P" >&6; } 2575 2576for ac_prog in gawk mawk nawk awk 2577do 2578 # Extract the first word of "$ac_prog", so it can be a program name with args. 2579set dummy $ac_prog; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if ${ac_cv_prog_AWK+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$AWK"; then 2586 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_AWK="$ac_prog" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605AWK=$ac_cv_prog_AWK 2606if test -n "$AWK"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2608$as_echo "$AWK" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615 test -n "$AWK" && break 2616done 2617 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2619$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2620set x ${MAKE-make} 2621ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2622if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 cat >conftest.make <<\_ACEOF 2626SHELL = /bin/sh 2627all: 2628 @echo '@@@%%%=$(MAKE)=@@@%%%' 2629_ACEOF 2630# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2631case `${MAKE-make} -f conftest.make 2>/dev/null` in 2632 *@@@%%%=?*=@@@%%%*) 2633 eval ac_cv_prog_make_${ac_make}_set=yes;; 2634 *) 2635 eval ac_cv_prog_make_${ac_make}_set=no;; 2636esac 2637rm -f conftest.make 2638fi 2639if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2641$as_echo "yes" >&6; } 2642 SET_MAKE= 2643else 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2645$as_echo "no" >&6; } 2646 SET_MAKE="MAKE=${MAKE-make}" 2647fi 2648 2649rm -rf .tst 2>/dev/null 2650mkdir .tst 2>/dev/null 2651if test -d .tst; then 2652 am__leading_dot=. 2653else 2654 am__leading_dot=_ 2655fi 2656rmdir .tst 2>/dev/null 2657 2658# Check whether --enable-silent-rules was given. 2659if test "${enable_silent_rules+set}" = set; then : 2660 enableval=$enable_silent_rules; 2661fi 2662 2663case $enable_silent_rules in # ((( 2664 yes) AM_DEFAULT_VERBOSITY=0;; 2665 no) AM_DEFAULT_VERBOSITY=1;; 2666 *) AM_DEFAULT_VERBOSITY=1;; 2667esac 2668am_make=${MAKE-make} 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2670$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2671if ${am_cv_make_support_nested_variables+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673else 2674 if $as_echo 'TRUE=$(BAR$(V)) 2675BAR0=false 2676BAR1=true 2677V=1 2678am__doit: 2679 @$(TRUE) 2680.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2681 am_cv_make_support_nested_variables=yes 2682else 2683 am_cv_make_support_nested_variables=no 2684fi 2685fi 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2687$as_echo "$am_cv_make_support_nested_variables" >&6; } 2688if test $am_cv_make_support_nested_variables = yes; then 2689 AM_V='$(V)' 2690 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2691else 2692 AM_V=$AM_DEFAULT_VERBOSITY 2693 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2694fi 2695AM_BACKSLASH='\' 2696 2697if test "`cd $srcdir && pwd`" != "`pwd`"; then 2698 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2699 # is not polluted with repeated "-I." 2700 am__isrc=' -I$(srcdir)' 2701 # test to see if srcdir already configured 2702 if test -f $srcdir/config.status; then 2703 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2704 fi 2705fi 2706 2707# test whether we have cygpath 2708if test -z "$CYGPATH_W"; then 2709 if (cygpath --version) >/dev/null 2>/dev/null; then 2710 CYGPATH_W='cygpath -w' 2711 else 2712 CYGPATH_W=echo 2713 fi 2714fi 2715 2716 2717# Define the identity of the package. 2718 PACKAGE='libxkbfile' 2719 VERSION='1.0.9' 2720 2721 2722cat >>confdefs.h <<_ACEOF 2723#define PACKAGE "$PACKAGE" 2724_ACEOF 2725 2726 2727cat >>confdefs.h <<_ACEOF 2728#define VERSION "$VERSION" 2729_ACEOF 2730 2731# Some tools Automake needs. 2732 2733ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2734 2735 2736AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2737 2738 2739AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2740 2741 2742AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2743 2744 2745MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2746 2747# For better backward compatibility. To be removed once Automake 1.9.x 2748# dies out for good. For more background, see: 2749# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2750# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2751mkdir_p='$(MKDIR_P)' 2752 2753# We need awk for the "check" target (and possibly the TAP driver). The 2754# system "awk" is bad on some platforms. 2755# Always define AMTAR for backward compatibility. Yes, it's still used 2756# in the wild :-( We should find a proper way to deprecate it ... 2757AMTAR='$${TAR-tar}' 2758 2759 2760# We'll loop over all known methods to create a tar archive until one works. 2761_am_tools='gnutar pax cpio none' 2762 2763am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2764 2765 2766 2767 2768 2769 2770# POSIX will say in a future version that running "rm -f" with no argument 2771# is OK; and we want to be able to make that assumption in our Makefile 2772# recipes. So use an aggressive probe to check that the usage we want is 2773# actually supported "in the wild" to an acceptable degree. 2774# See automake bug#10828. 2775# To make any issue more visible, cause the running configure to be aborted 2776# by default if the 'rm' program in use doesn't match our expectations; the 2777# user can still override this though. 2778if rm -f && rm -fr && rm -rf; then : OK; else 2779 cat >&2 <<'END' 2780Oops! 2781 2782Your 'rm' program seems unable to run without file operands specified 2783on the command line, even when the '-f' option is present. This is contrary 2784to the behaviour of most rm programs out there, and not conforming with 2785the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2786 2787Please tell bug-automake@gnu.org about your system, including the value 2788of your $PATH and any error possibly output before this message. This 2789can help us improve future automake versions. 2790 2791END 2792 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2793 echo 'Configuration will proceed anyway, since you have set the' >&2 2794 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2795 echo >&2 2796 else 2797 cat >&2 <<'END' 2798Aborting the configuration process, to ensure you take notice of the issue. 2799 2800You can download and install GNU coreutils to get an 'rm' implementation 2801that behaves properly: <http://www.gnu.org/software/coreutils/>. 2802 2803If you want to complete the configuration process using your problematic 2804'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2805to "yes", and re-run configure. 2806 2807END 2808 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2809 fi 2810fi 2811 2812 2813# Initialize libtool 2814case `pwd` in 2815 *\ * | *\ *) 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2817$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2818esac 2819 2820 2821 2822macro_version='2.4.2' 2823macro_revision='1.3337' 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837ltmain="$ac_aux_dir/ltmain.sh" 2838 2839# Make sure we can run config.sub. 2840$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2841 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2842 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2844$as_echo_n "checking build system type... " >&6; } 2845if ${ac_cv_build+:} false; then : 2846 $as_echo_n "(cached) " >&6 2847else 2848 ac_build_alias=$build_alias 2849test "x$ac_build_alias" = x && 2850 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2851test "x$ac_build_alias" = x && 2852 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2853ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2854 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2855 2856fi 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2858$as_echo "$ac_cv_build" >&6; } 2859case $ac_cv_build in 2860*-*-*) ;; 2861*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2862esac 2863build=$ac_cv_build 2864ac_save_IFS=$IFS; IFS='-' 2865set x $ac_cv_build 2866shift 2867build_cpu=$1 2868build_vendor=$2 2869shift; shift 2870# Remember, the first character of IFS is used to create $*, 2871# except with old shells: 2872build_os=$* 2873IFS=$ac_save_IFS 2874case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2875 2876 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2878$as_echo_n "checking host system type... " >&6; } 2879if ${ac_cv_host+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test "x$host_alias" = x; then 2883 ac_cv_host=$ac_cv_build 2884else 2885 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2887fi 2888 2889fi 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2891$as_echo "$ac_cv_host" >&6; } 2892case $ac_cv_host in 2893*-*-*) ;; 2894*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2895esac 2896host=$ac_cv_host 2897ac_save_IFS=$IFS; IFS='-' 2898set x $ac_cv_host 2899shift 2900host_cpu=$1 2901host_vendor=$2 2902shift; shift 2903# Remember, the first character of IFS is used to create $*, 2904# except with old shells: 2905host_os=$* 2906IFS=$ac_save_IFS 2907case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2908 2909 2910# Backslashify metacharacters that are still active within 2911# double-quoted strings. 2912sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2913 2914# Same as above, but do not quote variable references. 2915double_quote_subst='s/\(["`\\]\)/\\\1/g' 2916 2917# Sed substitution to delay expansion of an escaped shell variable in a 2918# double_quote_subst'ed string. 2919delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2920 2921# Sed substitution to delay expansion of an escaped single quote. 2922delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2923 2924# Sed substitution to avoid accidental globbing in evaled expressions 2925no_glob_subst='s/\*/\\\*/g' 2926 2927ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2928ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2929ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2930 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2932$as_echo_n "checking how to print strings... " >&6; } 2933# Test print first, because it will be a builtin if present. 2934if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2935 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2936 ECHO='print -r --' 2937elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2938 ECHO='printf %s\n' 2939else 2940 # Use this function as a fallback that always works. 2941 func_fallback_echo () 2942 { 2943 eval 'cat <<_LTECHO_EOF 2944$1 2945_LTECHO_EOF' 2946 } 2947 ECHO='func_fallback_echo' 2948fi 2949 2950# func_echo_all arg... 2951# Invoke $ECHO with all args, space-separated. 2952func_echo_all () 2953{ 2954 $ECHO "" 2955} 2956 2957case "$ECHO" in 2958 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2959$as_echo "printf" >&6; } ;; 2960 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2961$as_echo "print -r" >&6; } ;; 2962 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2963$as_echo "cat" >&6; } ;; 2964esac 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979DEPDIR="${am__leading_dot}deps" 2980 2981ac_config_commands="$ac_config_commands depfiles" 2982 2983 2984am_make=${MAKE-make} 2985cat > confinc << 'END' 2986am__doit: 2987 @echo this is the am__doit target 2988.PHONY: am__doit 2989END 2990# If we don't find an include directive, just comment out the code. 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2992$as_echo_n "checking for style of include used by $am_make... " >&6; } 2993am__include="#" 2994am__quote= 2995_am_result=none 2996# First try GNU make style include. 2997echo "include confinc" > confmf 2998# Ignore all kinds of additional output from 'make'. 2999case `$am_make -s -f confmf 2> /dev/null` in #( 3000*the\ am__doit\ target*) 3001 am__include=include 3002 am__quote= 3003 _am_result=GNU 3004 ;; 3005esac 3006# Now try BSD make style include. 3007if test "$am__include" = "#"; then 3008 echo '.include "confinc"' > confmf 3009 case `$am_make -s -f confmf 2> /dev/null` in #( 3010 *the\ am__doit\ target*) 3011 am__include=.include 3012 am__quote="\"" 3013 _am_result=BSD 3014 ;; 3015 esac 3016fi 3017 3018 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3020$as_echo "$_am_result" >&6; } 3021rm -f confinc confmf 3022 3023# Check whether --enable-dependency-tracking was given. 3024if test "${enable_dependency_tracking+set}" = set; then : 3025 enableval=$enable_dependency_tracking; 3026fi 3027 3028if test "x$enable_dependency_tracking" != xno; then 3029 am_depcomp="$ac_aux_dir/depcomp" 3030 AMDEPBACKSLASH='\' 3031 am__nodep='_no' 3032fi 3033 if test "x$enable_dependency_tracking" != xno; then 3034 AMDEP_TRUE= 3035 AMDEP_FALSE='#' 3036else 3037 AMDEP_TRUE='#' 3038 AMDEP_FALSE= 3039fi 3040 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047if test -n "$ac_tool_prefix"; then 3048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3049set dummy ${ac_tool_prefix}gcc; ac_word=$2 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051$as_echo_n "checking for $ac_word... " >&6; } 3052if ${ac_cv_prog_CC+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 if test -n "$CC"; then 3056 ac_cv_prog_CC="$CC" # Let the user override the test. 3057else 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3065 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069done 3070 done 3071IFS=$as_save_IFS 3072 3073fi 3074fi 3075CC=$ac_cv_prog_CC 3076if test -n "$CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3078$as_echo "$CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085fi 3086if test -z "$ac_cv_prog_CC"; then 3087 ac_ct_CC=$CC 3088 # Extract the first word of "gcc", so it can be a program name with args. 3089set dummy gcc; ac_word=$2 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3091$as_echo_n "checking for $ac_word... " >&6; } 3092if ${ac_cv_prog_ac_ct_CC+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -n "$ac_ct_CC"; then 3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_ac_ct_CC="gcc" 3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115ac_ct_CC=$ac_cv_prog_ac_ct_CC 3116if test -n "$ac_ct_CC"; then 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3118$as_echo "$ac_ct_CC" >&6; } 3119else 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122fi 3123 3124 if test "x$ac_ct_CC" = x; then 3125 CC="" 3126 else 3127 case $cross_compiling:$ac_tool_warned in 3128yes:) 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3131ac_tool_warned=yes ;; 3132esac 3133 CC=$ac_ct_CC 3134 fi 3135else 3136 CC="$ac_cv_prog_CC" 3137fi 3138 3139if test -z "$CC"; then 3140 if test -n "$ac_tool_prefix"; then 3141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3142set dummy ${ac_tool_prefix}cc; ac_word=$2 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144$as_echo_n "checking for $ac_word... " >&6; } 3145if ${ac_cv_prog_CC+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 if test -n "$CC"; then 3149 ac_cv_prog_CC="$CC" # Let the user override the test. 3150else 3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH 3153do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3158 ac_cv_prog_CC="${ac_tool_prefix}cc" 3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162done 3163 done 3164IFS=$as_save_IFS 3165 3166fi 3167fi 3168CC=$ac_cv_prog_CC 3169if test -n "$CC"; then 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3171$as_echo "$CC" >&6; } 3172else 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174$as_echo "no" >&6; } 3175fi 3176 3177 3178 fi 3179fi 3180if test -z "$CC"; then 3181 # Extract the first word of "cc", so it can be a program name with args. 3182set dummy cc; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$CC"; then 3189 ac_cv_prog_CC="$CC" # Let the user override the test. 3190else 3191 ac_prog_rejected=no 3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193for as_dir in $PATH 3194do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3200 ac_prog_rejected=yes 3201 continue 3202 fi 3203 ac_cv_prog_CC="cc" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207done 3208 done 3209IFS=$as_save_IFS 3210 3211if test $ac_prog_rejected = yes; then 3212 # We found a bogon in the path, so make sure we never use it. 3213 set dummy $ac_cv_prog_CC 3214 shift 3215 if test $# != 0; then 3216 # We chose a different compiler from the bogus one. 3217 # However, it has the same basename, so the bogon will be chosen 3218 # first if we set CC to just the basename; use the full file name. 3219 shift 3220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3221 fi 3222fi 3223fi 3224fi 3225CC=$ac_cv_prog_CC 3226if test -n "$CC"; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3228$as_echo "$CC" >&6; } 3229else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232fi 3233 3234 3235fi 3236if test -z "$CC"; then 3237 if test -n "$ac_tool_prefix"; then 3238 for ac_prog in cl.exe 3239 do 3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3241set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243$as_echo_n "checking for $ac_word... " >&6; } 3244if ${ac_cv_prog_CC+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 if test -n "$CC"; then 3248 ac_cv_prog_CC="$CC" # Let the user override the test. 3249else 3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH 3252do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261done 3262 done 3263IFS=$as_save_IFS 3264 3265fi 3266fi 3267CC=$ac_cv_prog_CC 3268if test -n "$CC"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3270$as_echo "$CC" >&6; } 3271else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273$as_echo "no" >&6; } 3274fi 3275 3276 3277 test -n "$CC" && break 3278 done 3279fi 3280if test -z "$CC"; then 3281 ac_ct_CC=$CC 3282 for ac_prog in cl.exe 3283do 3284 # Extract the first word of "$ac_prog", so it can be a program name with args. 3285set dummy $ac_prog; ac_word=$2 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3287$as_echo_n "checking for $ac_word... " >&6; } 3288if ${ac_cv_prog_ac_ct_CC+:} false; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 if test -n "$ac_ct_CC"; then 3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3293else 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3301 ac_cv_prog_ac_ct_CC="$ac_prog" 3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306 done 3307IFS=$as_save_IFS 3308 3309fi 3310fi 3311ac_ct_CC=$ac_cv_prog_ac_ct_CC 3312if test -n "$ac_ct_CC"; then 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3314$as_echo "$ac_ct_CC" >&6; } 3315else 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317$as_echo "no" >&6; } 3318fi 3319 3320 3321 test -n "$ac_ct_CC" && break 3322done 3323 3324 if test "x$ac_ct_CC" = x; then 3325 CC="" 3326 else 3327 case $cross_compiling:$ac_tool_warned in 3328yes:) 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3331ac_tool_warned=yes ;; 3332esac 3333 CC=$ac_ct_CC 3334 fi 3335fi 3336 3337fi 3338 3339 3340test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3342as_fn_error $? "no acceptable C compiler found in \$PATH 3343See \`config.log' for more details" "$LINENO" 5; } 3344 3345# Provide some information about the compiler. 3346$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3347set X $ac_compile 3348ac_compiler=$2 3349for ac_option in --version -v -V -qversion; do 3350 { { ac_try="$ac_compiler $ac_option >&5" 3351case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356$as_echo "$ac_try_echo"; } >&5 3357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3358 ac_status=$? 3359 if test -s conftest.err; then 3360 sed '10a\ 3361... rest of stderr output deleted ... 3362 10q' conftest.err >conftest.er1 3363 cat conftest.er1 >&5 3364 fi 3365 rm -f conftest.er1 conftest.err 3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3367 test $ac_status = 0; } 3368done 3369 3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372 3373int 3374main () 3375{ 3376 3377 ; 3378 return 0; 3379} 3380_ACEOF 3381ac_clean_files_save=$ac_clean_files 3382ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3383# Try to create an executable without -o first, disregard a.out. 3384# It will help us diagnose broken compilers, and finding out an intuition 3385# of exeext. 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3387$as_echo_n "checking whether the C compiler works... " >&6; } 3388ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3389 3390# The possible output files: 3391ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3392 3393ac_rmfiles= 3394for ac_file in $ac_files 3395do 3396 case $ac_file in 3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3399 esac 3400done 3401rm -f $ac_rmfiles 3402 3403if { { ac_try="$ac_link_default" 3404case "(($ac_try" in 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3406 *) ac_try_echo=$ac_try;; 3407esac 3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3409$as_echo "$ac_try_echo"; } >&5 3410 (eval "$ac_link_default") 2>&5 3411 ac_status=$? 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; }; then : 3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3415# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3416# in a Makefile. We should not override ac_cv_exeext if it was cached, 3417# so that the user can short-circuit this test for compilers unknown to 3418# Autoconf. 3419for ac_file in $ac_files '' 3420do 3421 test -f "$ac_file" || continue 3422 case $ac_file in 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3424 ;; 3425 [ab].out ) 3426 # We found the default executable, but exeext='' is most 3427 # certainly right. 3428 break;; 3429 *.* ) 3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3431 then :; else 3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3433 fi 3434 # We set ac_cv_exeext here because the later test for it is not 3435 # safe: cross compilers may not add the suffix if given an `-o' 3436 # argument, so we may need to know it at that point already. 3437 # Even if this section looks crufty: it has the advantage of 3438 # actually working. 3439 break;; 3440 * ) 3441 break;; 3442 esac 3443done 3444test "$ac_cv_exeext" = no && ac_cv_exeext= 3445 3446else 3447 ac_file='' 3448fi 3449if test -z "$ac_file"; then : 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3451$as_echo "no" >&6; } 3452$as_echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3457as_fn_error 77 "C compiler cannot create executables 3458See \`config.log' for more details" "$LINENO" 5; } 3459else 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3461$as_echo "yes" >&6; } 3462fi 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3464$as_echo_n "checking for C compiler default output file name... " >&6; } 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3466$as_echo "$ac_file" >&6; } 3467ac_exeext=$ac_cv_exeext 3468 3469rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3470ac_clean_files=$ac_clean_files_save 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3472$as_echo_n "checking for suffix of executables... " >&6; } 3473if { { ac_try="$ac_link" 3474case "(($ac_try" in 3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3476 *) ac_try_echo=$ac_try;; 3477esac 3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3479$as_echo "$ac_try_echo"; } >&5 3480 (eval "$ac_link") 2>&5 3481 ac_status=$? 3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3483 test $ac_status = 0; }; then : 3484 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3485# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3486# work properly (i.e., refer to `conftest.exe'), while it won't with 3487# `rm'. 3488for ac_file in conftest.exe conftest conftest.*; do 3489 test -f "$ac_file" || continue 3490 case $ac_file in 3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3493 break;; 3494 * ) break;; 3495 esac 3496done 3497else 3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3500as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3501See \`config.log' for more details" "$LINENO" 5; } 3502fi 3503rm -f conftest conftest$ac_cv_exeext 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3505$as_echo "$ac_cv_exeext" >&6; } 3506 3507rm -f conftest.$ac_ext 3508EXEEXT=$ac_cv_exeext 3509ac_exeext=$EXEEXT 3510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512#include <stdio.h> 3513int 3514main () 3515{ 3516FILE *f = fopen ("conftest.out", "w"); 3517 return ferror (f) || fclose (f) != 0; 3518 3519 ; 3520 return 0; 3521} 3522_ACEOF 3523ac_clean_files="$ac_clean_files conftest.out" 3524# Check that the compiler produces executables we can run. If not, either 3525# the compiler is broken, or we cross compile. 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3527$as_echo_n "checking whether we are cross compiling... " >&6; } 3528if test "$cross_compiling" != yes; then 3529 { { ac_try="$ac_link" 3530case "(($ac_try" in 3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *) ac_try_echo=$ac_try;; 3533esac 3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3535$as_echo "$ac_try_echo"; } >&5 3536 (eval "$ac_link") 2>&5 3537 ac_status=$? 3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3539 test $ac_status = 0; } 3540 if { ac_try='./conftest$ac_cv_exeext' 3541 { { case "(($ac_try" in 3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3543 *) ac_try_echo=$ac_try;; 3544esac 3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3546$as_echo "$ac_try_echo"; } >&5 3547 (eval "$ac_try") 2>&5 3548 ac_status=$? 3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3550 test $ac_status = 0; }; }; then 3551 cross_compiling=no 3552 else 3553 if test "$cross_compiling" = maybe; then 3554 cross_compiling=yes 3555 else 3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558as_fn_error $? "cannot run C compiled programs. 3559If you meant to cross compile, use \`--host'. 3560See \`config.log' for more details" "$LINENO" 5; } 3561 fi 3562 fi 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3565$as_echo "$cross_compiling" >&6; } 3566 3567rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3568ac_clean_files=$ac_clean_files_save 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3570$as_echo_n "checking for suffix of object files... " >&6; } 3571if ${ac_cv_objext+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3575/* end confdefs.h. */ 3576 3577int 3578main () 3579{ 3580 3581 ; 3582 return 0; 3583} 3584_ACEOF 3585rm -f conftest.o conftest.obj 3586if { { ac_try="$ac_compile" 3587case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592$as_echo "$ac_try_echo"; } >&5 3593 (eval "$ac_compile") 2>&5 3594 ac_status=$? 3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 test $ac_status = 0; }; then : 3597 for ac_file in conftest.o conftest.obj conftest.*; do 3598 test -f "$ac_file" || continue; 3599 case $ac_file in 3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3602 break;; 3603 esac 3604done 3605else 3606 $as_echo "$as_me: failed program was:" >&5 3607sed 's/^/| /' conftest.$ac_ext >&5 3608 3609{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3611as_fn_error $? "cannot compute suffix of object files: cannot compile 3612See \`config.log' for more details" "$LINENO" 5; } 3613fi 3614rm -f conftest.$ac_cv_objext conftest.$ac_ext 3615fi 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3617$as_echo "$ac_cv_objext" >&6; } 3618OBJEXT=$ac_cv_objext 3619ac_objext=$OBJEXT 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3621$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3622if ${ac_cv_c_compiler_gnu+:} false; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627 3628int 3629main () 3630{ 3631#ifndef __GNUC__ 3632 choke me 3633#endif 3634 3635 ; 3636 return 0; 3637} 3638_ACEOF 3639if ac_fn_c_try_compile "$LINENO"; then : 3640 ac_compiler_gnu=yes 3641else 3642 ac_compiler_gnu=no 3643fi 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3645ac_cv_c_compiler_gnu=$ac_compiler_gnu 3646 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3649$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3650if test $ac_compiler_gnu = yes; then 3651 GCC=yes 3652else 3653 GCC= 3654fi 3655ac_test_CFLAGS=${CFLAGS+set} 3656ac_save_CFLAGS=$CFLAGS 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3658$as_echo_n "checking whether $CC accepts -g... " >&6; } 3659if ${ac_cv_prog_cc_g+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 ac_save_c_werror_flag=$ac_c_werror_flag 3663 ac_c_werror_flag=yes 3664 ac_cv_prog_cc_g=no 3665 CFLAGS="-g" 3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668 3669int 3670main () 3671{ 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_cv_prog_cc_g=yes 3679else 3680 CFLAGS="" 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO"; then : 3693 3694else 3695 ac_c_werror_flag=$ac_save_c_werror_flag 3696 CFLAGS="-g" 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708if ac_fn_c_try_compile "$LINENO"; then : 3709 ac_cv_prog_cc_g=yes 3710fi 3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3712fi 3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716 ac_c_werror_flag=$ac_save_c_werror_flag 3717fi 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3719$as_echo "$ac_cv_prog_cc_g" >&6; } 3720if test "$ac_test_CFLAGS" = set; then 3721 CFLAGS=$ac_save_CFLAGS 3722elif test $ac_cv_prog_cc_g = yes; then 3723 if test "$GCC" = yes; then 3724 CFLAGS="-g -O2" 3725 else 3726 CFLAGS="-g" 3727 fi 3728else 3729 if test "$GCC" = yes; then 3730 CFLAGS="-O2" 3731 else 3732 CFLAGS= 3733 fi 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3736$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3737if ${ac_cv_prog_cc_c89+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 ac_cv_prog_cc_c89=no 3741ac_save_CC=$CC 3742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743/* end confdefs.h. */ 3744#include <stdarg.h> 3745#include <stdio.h> 3746struct stat; 3747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3748struct buf { int x; }; 3749FILE * (*rcsopen) (struct buf *, struct stat *, int); 3750static char *e (p, i) 3751 char **p; 3752 int i; 3753{ 3754 return p[i]; 3755} 3756static char *f (char * (*g) (char **, int), char **p, ...) 3757{ 3758 char *s; 3759 va_list v; 3760 va_start (v,p); 3761 s = g (p, va_arg (v,int)); 3762 va_end (v); 3763 return s; 3764} 3765 3766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3767 function prototypes and stuff, but not '\xHH' hex character constants. 3768 These don't provoke an error unfortunately, instead are silently treated 3769 as 'x'. The following induces an error, until -std is added to get 3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3771 array size at least. It's necessary to write '\x00'==0 to get something 3772 that's true only with -std. */ 3773int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3774 3775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3776 inside strings and character constants. */ 3777#define FOO(x) 'x' 3778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3779 3780int test (int i, double x); 3781struct s1 {int (*f) (int a);}; 3782struct s2 {int (*f) (double a);}; 3783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3784int argc; 3785char **argv; 3786int 3787main () 3788{ 3789return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3796do 3797 CC="$ac_save_CC $ac_arg" 3798 if ac_fn_c_try_compile "$LINENO"; then : 3799 ac_cv_prog_cc_c89=$ac_arg 3800fi 3801rm -f core conftest.err conftest.$ac_objext 3802 test "x$ac_cv_prog_cc_c89" != "xno" && break 3803done 3804rm -f conftest.$ac_ext 3805CC=$ac_save_CC 3806 3807fi 3808# AC_CACHE_VAL 3809case "x$ac_cv_prog_cc_c89" in 3810 x) 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3812$as_echo "none needed" >&6; } ;; 3813 xno) 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3815$as_echo "unsupported" >&6; } ;; 3816 *) 3817 CC="$CC $ac_cv_prog_cc_c89" 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3820esac 3821if test "x$ac_cv_prog_cc_c89" != xno; then : 3822 3823fi 3824 3825ac_ext=c 3826ac_cpp='$CPP $CPPFLAGS' 3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3829ac_compiler_gnu=$ac_cv_c_compiler_gnu 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3837$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3838if ${am_cv_prog_cc_c_o+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843 3844int 3845main () 3846{ 3847 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852 # Make sure it works both with $CC and with simple cc. 3853 # Following AC_PROG_CC_C_O, we do the test twice because some 3854 # compilers refuse to overwrite an existing .o file with -o, 3855 # though they will create one. 3856 am_cv_prog_cc_c_o=yes 3857 for am_i in 1 2; do 3858 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3859 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3860 ac_status=$? 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } \ 3863 && test -f conftest2.$ac_objext; then 3864 : OK 3865 else 3866 am_cv_prog_cc_c_o=no 3867 break 3868 fi 3869 done 3870 rm -f core conftest* 3871 unset am_i 3872fi 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3874$as_echo "$am_cv_prog_cc_c_o" >&6; } 3875if test "$am_cv_prog_cc_c_o" != yes; then 3876 # Losing compiler, so override with the script. 3877 # FIXME: It is wrong to rewrite CC. 3878 # But if we don't then we get into trouble of one sort or another. 3879 # A longer-term fix would be to have automake use am__CC in this case, 3880 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3881 CC="$am_aux_dir/compile $CC" 3882fi 3883ac_ext=c 3884ac_cpp='$CPP $CPPFLAGS' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu 3888 3889 3890depcc="$CC" am_compiler_list= 3891 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3893$as_echo_n "checking dependency style of $depcc... " >&6; } 3894if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3898 # We make a subdir and do the tests there. Otherwise we can end up 3899 # making bogus files that we don't know about and never remove. For 3900 # instance it was reported that on HP-UX the gcc test will end up 3901 # making a dummy file named 'D' -- because '-MD' means "put the output 3902 # in D". 3903 rm -rf conftest.dir 3904 mkdir conftest.dir 3905 # Copy depcomp to subdir because otherwise we won't find it if we're 3906 # using a relative directory. 3907 cp "$am_depcomp" conftest.dir 3908 cd conftest.dir 3909 # We will build objects and dependencies in a subdirectory because 3910 # it helps to detect inapplicable dependency modes. For instance 3911 # both Tru64's cc and ICC support -MD to output dependencies as a 3912 # side effect of compilation, but ICC will put the dependencies in 3913 # the current directory while Tru64 will put them in the object 3914 # directory. 3915 mkdir sub 3916 3917 am_cv_CC_dependencies_compiler_type=none 3918 if test "$am_compiler_list" = ""; then 3919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3920 fi 3921 am__universal=false 3922 case " $depcc " in #( 3923 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3924 esac 3925 3926 for depmode in $am_compiler_list; do 3927 # Setup a source with many dependencies, because some compilers 3928 # like to wrap large dependency lists on column 80 (with \), and 3929 # we should not choose a depcomp mode which is confused by this. 3930 # 3931 # We need to recreate these files for each test, as the compiler may 3932 # overwrite some of them when testing with obscure command lines. 3933 # This happens at least with the AIX C compiler. 3934 : > sub/conftest.c 3935 for i in 1 2 3 4 5 6; do 3936 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3937 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3938 # Solaris 10 /bin/sh. 3939 echo '/* dummy */' > sub/conftst$i.h 3940 done 3941 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3942 3943 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3944 # mode. It turns out that the SunPro C++ compiler does not properly 3945 # handle '-M -o', and we need to detect this. Also, some Intel 3946 # versions had trouble with output in subdirs. 3947 am__obj=sub/conftest.${OBJEXT-o} 3948 am__minus_obj="-o $am__obj" 3949 case $depmode in 3950 gcc) 3951 # This depmode causes a compiler race in universal mode. 3952 test "$am__universal" = false || continue 3953 ;; 3954 nosideeffect) 3955 # After this tag, mechanisms are not by side-effect, so they'll 3956 # only be used when explicitly requested. 3957 if test "x$enable_dependency_tracking" = xyes; then 3958 continue 3959 else 3960 break 3961 fi 3962 ;; 3963 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3964 # This compiler won't grok '-c -o', but also, the minuso test has 3965 # not run yet. These depmodes are late enough in the game, and 3966 # so weak that their functioning should not be impacted. 3967 am__obj=conftest.${OBJEXT-o} 3968 am__minus_obj= 3969 ;; 3970 none) break ;; 3971 esac 3972 if depmode=$depmode \ 3973 source=sub/conftest.c object=$am__obj \ 3974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3975 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3976 >/dev/null 2>conftest.err && 3977 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3978 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3979 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3981 # icc doesn't choke on unknown options, it will just issue warnings 3982 # or remarks (even with -Werror). So we grep stderr for any message 3983 # that says an option was ignored or not supported. 3984 # When given -MP, icc 7.0 and 7.1 complain thusly: 3985 # icc: Command line warning: ignoring option '-M'; no argument required 3986 # The diagnosis changed in icc 8.0: 3987 # icc: Command line remark: option '-MP' not supported 3988 if (grep 'ignoring option' conftest.err || 3989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3990 am_cv_CC_dependencies_compiler_type=$depmode 3991 break 3992 fi 3993 fi 3994 done 3995 3996 cd .. 3997 rm -rf conftest.dir 3998else 3999 am_cv_CC_dependencies_compiler_type=none 4000fi 4001 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4004$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4005CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4006 4007 if 4008 test "x$enable_dependency_tracking" != xno \ 4009 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4010 am__fastdepCC_TRUE= 4011 am__fastdepCC_FALSE='#' 4012else 4013 am__fastdepCC_TRUE='#' 4014 am__fastdepCC_FALSE= 4015fi 4016 4017 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4019$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4020if ${ac_cv_path_SED+:} false; then : 4021 $as_echo_n "(cached) " >&6 4022else 4023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4024 for ac_i in 1 2 3 4 5 6 7; do 4025 ac_script="$ac_script$as_nl$ac_script" 4026 done 4027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4028 { ac_script=; unset ac_script;} 4029 if test -z "$SED"; then 4030 ac_path_SED_found=false 4031 # Loop through the user's path and test for each of PROGNAME-LIST 4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4033for as_dir in $PATH 4034do 4035 IFS=$as_save_IFS 4036 test -z "$as_dir" && as_dir=. 4037 for ac_prog in sed gsed; do 4038 for ac_exec_ext in '' $ac_executable_extensions; do 4039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4040 as_fn_executable_p "$ac_path_SED" || continue 4041# Check for GNU ac_path_SED and select it if it is found. 4042 # Check for GNU $ac_path_SED 4043case `"$ac_path_SED" --version 2>&1` in 4044*GNU*) 4045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4046*) 4047 ac_count=0 4048 $as_echo_n 0123456789 >"conftest.in" 4049 while : 4050 do 4051 cat "conftest.in" "conftest.in" >"conftest.tmp" 4052 mv "conftest.tmp" "conftest.in" 4053 cp "conftest.in" "conftest.nl" 4054 $as_echo '' >> "conftest.nl" 4055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4057 as_fn_arith $ac_count + 1 && ac_count=$as_val 4058 if test $ac_count -gt ${ac_path_SED_max-0}; then 4059 # Best one so far, save it but keep looking for a better one 4060 ac_cv_path_SED="$ac_path_SED" 4061 ac_path_SED_max=$ac_count 4062 fi 4063 # 10*(2^10) chars as input seems more than enough 4064 test $ac_count -gt 10 && break 4065 done 4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4067esac 4068 4069 $ac_path_SED_found && break 3 4070 done 4071 done 4072 done 4073IFS=$as_save_IFS 4074 if test -z "$ac_cv_path_SED"; then 4075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4076 fi 4077else 4078 ac_cv_path_SED=$SED 4079fi 4080 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4083$as_echo "$ac_cv_path_SED" >&6; } 4084 SED="$ac_cv_path_SED" 4085 rm -f conftest.sed 4086 4087test -z "$SED" && SED=sed 4088Xsed="$SED -e 1s/^X//" 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4101$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4102if ${ac_cv_path_GREP+:} false; then : 4103 $as_echo_n "(cached) " >&6 4104else 4105 if test -z "$GREP"; then 4106 ac_path_GREP_found=false 4107 # Loop through the user's path and test for each of PROGNAME-LIST 4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4110do 4111 IFS=$as_save_IFS 4112 test -z "$as_dir" && as_dir=. 4113 for ac_prog in grep ggrep; do 4114 for ac_exec_ext in '' $ac_executable_extensions; do 4115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4116 as_fn_executable_p "$ac_path_GREP" || continue 4117# Check for GNU ac_path_GREP and select it if it is found. 4118 # Check for GNU $ac_path_GREP 4119case `"$ac_path_GREP" --version 2>&1` in 4120*GNU*) 4121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4122*) 4123 ac_count=0 4124 $as_echo_n 0123456789 >"conftest.in" 4125 while : 4126 do 4127 cat "conftest.in" "conftest.in" >"conftest.tmp" 4128 mv "conftest.tmp" "conftest.in" 4129 cp "conftest.in" "conftest.nl" 4130 $as_echo 'GREP' >> "conftest.nl" 4131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4133 as_fn_arith $ac_count + 1 && ac_count=$as_val 4134 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4135 # Best one so far, save it but keep looking for a better one 4136 ac_cv_path_GREP="$ac_path_GREP" 4137 ac_path_GREP_max=$ac_count 4138 fi 4139 # 10*(2^10) chars as input seems more than enough 4140 test $ac_count -gt 10 && break 4141 done 4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4143esac 4144 4145 $ac_path_GREP_found && break 3 4146 done 4147 done 4148 done 4149IFS=$as_save_IFS 4150 if test -z "$ac_cv_path_GREP"; then 4151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4152 fi 4153else 4154 ac_cv_path_GREP=$GREP 4155fi 4156 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4159$as_echo "$ac_cv_path_GREP" >&6; } 4160 GREP="$ac_cv_path_GREP" 4161 4162 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4164$as_echo_n "checking for egrep... " >&6; } 4165if ${ac_cv_path_EGREP+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4169 then ac_cv_path_EGREP="$GREP -E" 4170 else 4171 if test -z "$EGREP"; then 4172 ac_path_EGREP_found=false 4173 # Loop through the user's path and test for each of PROGNAME-LIST 4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4176do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_prog in egrep; do 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4182 as_fn_executable_p "$ac_path_EGREP" || continue 4183# Check for GNU ac_path_EGREP and select it if it is found. 4184 # Check for GNU $ac_path_EGREP 4185case `"$ac_path_EGREP" --version 2>&1` in 4186*GNU*) 4187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4188*) 4189 ac_count=0 4190 $as_echo_n 0123456789 >"conftest.in" 4191 while : 4192 do 4193 cat "conftest.in" "conftest.in" >"conftest.tmp" 4194 mv "conftest.tmp" "conftest.in" 4195 cp "conftest.in" "conftest.nl" 4196 $as_echo 'EGREP' >> "conftest.nl" 4197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4199 as_fn_arith $ac_count + 1 && ac_count=$as_val 4200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4201 # Best one so far, save it but keep looking for a better one 4202 ac_cv_path_EGREP="$ac_path_EGREP" 4203 ac_path_EGREP_max=$ac_count 4204 fi 4205 # 10*(2^10) chars as input seems more than enough 4206 test $ac_count -gt 10 && break 4207 done 4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4209esac 4210 4211 $ac_path_EGREP_found && break 3 4212 done 4213 done 4214 done 4215IFS=$as_save_IFS 4216 if test -z "$ac_cv_path_EGREP"; then 4217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4218 fi 4219else 4220 ac_cv_path_EGREP=$EGREP 4221fi 4222 4223 fi 4224fi 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4226$as_echo "$ac_cv_path_EGREP" >&6; } 4227 EGREP="$ac_cv_path_EGREP" 4228 4229 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4231$as_echo_n "checking for fgrep... " >&6; } 4232if ${ac_cv_path_FGREP+:} false; then : 4233 $as_echo_n "(cached) " >&6 4234else 4235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4236 then ac_cv_path_FGREP="$GREP -F" 4237 else 4238 if test -z "$FGREP"; then 4239 ac_path_FGREP_found=false 4240 # Loop through the user's path and test for each of PROGNAME-LIST 4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_prog in fgrep; do 4247 for ac_exec_ext in '' $ac_executable_extensions; do 4248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4249 as_fn_executable_p "$ac_path_FGREP" || continue 4250# Check for GNU ac_path_FGREP and select it if it is found. 4251 # Check for GNU $ac_path_FGREP 4252case `"$ac_path_FGREP" --version 2>&1` in 4253*GNU*) 4254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4255*) 4256 ac_count=0 4257 $as_echo_n 0123456789 >"conftest.in" 4258 while : 4259 do 4260 cat "conftest.in" "conftest.in" >"conftest.tmp" 4261 mv "conftest.tmp" "conftest.in" 4262 cp "conftest.in" "conftest.nl" 4263 $as_echo 'FGREP' >> "conftest.nl" 4264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4266 as_fn_arith $ac_count + 1 && ac_count=$as_val 4267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4268 # Best one so far, save it but keep looking for a better one 4269 ac_cv_path_FGREP="$ac_path_FGREP" 4270 ac_path_FGREP_max=$ac_count 4271 fi 4272 # 10*(2^10) chars as input seems more than enough 4273 test $ac_count -gt 10 && break 4274 done 4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4276esac 4277 4278 $ac_path_FGREP_found && break 3 4279 done 4280 done 4281 done 4282IFS=$as_save_IFS 4283 if test -z "$ac_cv_path_FGREP"; then 4284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4285 fi 4286else 4287 ac_cv_path_FGREP=$FGREP 4288fi 4289 4290 fi 4291fi 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4293$as_echo "$ac_cv_path_FGREP" >&6; } 4294 FGREP="$ac_cv_path_FGREP" 4295 4296 4297test -z "$GREP" && GREP=grep 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317# Check whether --with-gnu-ld was given. 4318if test "${with_gnu_ld+set}" = set; then : 4319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4320else 4321 with_gnu_ld=no 4322fi 4323 4324ac_prog=ld 4325if test "$GCC" = yes; then 4326 # Check if gcc -print-prog-name=ld gives a path. 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4328$as_echo_n "checking for ld used by $CC... " >&6; } 4329 case $host in 4330 *-*-mingw*) 4331 # gcc leaves a trailing carriage return which upsets mingw 4332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4333 *) 4334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4335 esac 4336 case $ac_prog in 4337 # Accept absolute paths. 4338 [\\/]* | ?:[\\/]*) 4339 re_direlt='/[^/][^/]*/\.\./' 4340 # Canonicalize the pathname of ld 4341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4344 done 4345 test -z "$LD" && LD="$ac_prog" 4346 ;; 4347 "") 4348 # If it fails, then pretend we aren't using GCC. 4349 ac_prog=ld 4350 ;; 4351 *) 4352 # If it is relative, then search for the first ld in PATH. 4353 with_gnu_ld=unknown 4354 ;; 4355 esac 4356elif test "$with_gnu_ld" = yes; then 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4358$as_echo_n "checking for GNU ld... " >&6; } 4359else 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4361$as_echo_n "checking for non-GNU ld... " >&6; } 4362fi 4363if ${lt_cv_path_LD+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365else 4366 if test -z "$LD"; then 4367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4368 for ac_dir in $PATH; do 4369 IFS="$lt_save_ifs" 4370 test -z "$ac_dir" && ac_dir=. 4371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4372 lt_cv_path_LD="$ac_dir/$ac_prog" 4373 # Check to see if the program is GNU ld. I'd rather use --version, 4374 # but apparently some variants of GNU ld only accept -v. 4375 # Break only if it was the GNU/non-GNU ld that we prefer. 4376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4377 *GNU* | *'with BFD'*) 4378 test "$with_gnu_ld" != no && break 4379 ;; 4380 *) 4381 test "$with_gnu_ld" != yes && break 4382 ;; 4383 esac 4384 fi 4385 done 4386 IFS="$lt_save_ifs" 4387else 4388 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4389fi 4390fi 4391 4392LD="$lt_cv_path_LD" 4393if test -n "$LD"; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4395$as_echo "$LD" >&6; } 4396else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4398$as_echo "no" >&6; } 4399fi 4400test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4402$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4403if ${lt_cv_prog_gnu_ld+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4407case `$LD -v 2>&1 </dev/null` in 4408*GNU* | *'with BFD'*) 4409 lt_cv_prog_gnu_ld=yes 4410 ;; 4411*) 4412 lt_cv_prog_gnu_ld=no 4413 ;; 4414esac 4415fi 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4417$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4418with_gnu_ld=$lt_cv_prog_gnu_ld 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4429$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4430if ${lt_cv_path_NM+:} false; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 if test -n "$NM"; then 4434 # Let the user override the test. 4435 lt_cv_path_NM="$NM" 4436else 4437 lt_nm_to_check="${ac_tool_prefix}nm" 4438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4439 lt_nm_to_check="$lt_nm_to_check nm" 4440 fi 4441 for lt_tmp_nm in $lt_nm_to_check; do 4442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4444 IFS="$lt_save_ifs" 4445 test -z "$ac_dir" && ac_dir=. 4446 tmp_nm="$ac_dir/$lt_tmp_nm" 4447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4448 # Check to see if the nm accepts a BSD-compat flag. 4449 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4450 # nm: unknown option "B" ignored 4451 # Tru64's nm complains that /dev/null is an invalid object file 4452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4453 */dev/null* | *'Invalid file or object type'*) 4454 lt_cv_path_NM="$tmp_nm -B" 4455 break 4456 ;; 4457 *) 4458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4459 */dev/null*) 4460 lt_cv_path_NM="$tmp_nm -p" 4461 break 4462 ;; 4463 *) 4464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4465 continue # so that we can try to find one that supports BSD flags 4466 ;; 4467 esac 4468 ;; 4469 esac 4470 fi 4471 done 4472 IFS="$lt_save_ifs" 4473 done 4474 : ${lt_cv_path_NM=no} 4475fi 4476fi 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4478$as_echo "$lt_cv_path_NM" >&6; } 4479if test "$lt_cv_path_NM" != "no"; then 4480 NM="$lt_cv_path_NM" 4481else 4482 # Didn't find any BSD compatible name lister, look for dumpbin. 4483 if test -n "$DUMPBIN"; then : 4484 # Let the user override the test. 4485 else 4486 if test -n "$ac_tool_prefix"; then 4487 for ac_prog in dumpbin "link -dump" 4488 do 4489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4490set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4492$as_echo_n "checking for $ac_word... " >&6; } 4493if ${ac_cv_prog_DUMPBIN+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495else 4496 if test -n "$DUMPBIN"; then 4497 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4498else 4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500for as_dir in $PATH 4501do 4502 IFS=$as_save_IFS 4503 test -z "$as_dir" && as_dir=. 4504 for ac_exec_ext in '' $ac_executable_extensions; do 4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4506 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4508 break 2 4509 fi 4510done 4511 done 4512IFS=$as_save_IFS 4513 4514fi 4515fi 4516DUMPBIN=$ac_cv_prog_DUMPBIN 4517if test -n "$DUMPBIN"; then 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4519$as_echo "$DUMPBIN" >&6; } 4520else 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4522$as_echo "no" >&6; } 4523fi 4524 4525 4526 test -n "$DUMPBIN" && break 4527 done 4528fi 4529if test -z "$DUMPBIN"; then 4530 ac_ct_DUMPBIN=$DUMPBIN 4531 for ac_prog in dumpbin "link -dump" 4532do 4533 # Extract the first word of "$ac_prog", so it can be a program name with args. 4534set dummy $ac_prog; ac_word=$2 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4536$as_echo_n "checking for $ac_word... " >&6; } 4537if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 if test -n "$ac_ct_DUMPBIN"; then 4541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4542else 4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4544for as_dir in $PATH 4545do 4546 IFS=$as_save_IFS 4547 test -z "$as_dir" && as_dir=. 4548 for ac_exec_ext in '' $ac_executable_extensions; do 4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4550 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4552 break 2 4553 fi 4554done 4555 done 4556IFS=$as_save_IFS 4557 4558fi 4559fi 4560ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4561if test -n "$ac_ct_DUMPBIN"; then 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4563$as_echo "$ac_ct_DUMPBIN" >&6; } 4564else 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4566$as_echo "no" >&6; } 4567fi 4568 4569 4570 test -n "$ac_ct_DUMPBIN" && break 4571done 4572 4573 if test "x$ac_ct_DUMPBIN" = x; then 4574 DUMPBIN=":" 4575 else 4576 case $cross_compiling:$ac_tool_warned in 4577yes:) 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4580ac_tool_warned=yes ;; 4581esac 4582 DUMPBIN=$ac_ct_DUMPBIN 4583 fi 4584fi 4585 4586 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4587 *COFF*) 4588 DUMPBIN="$DUMPBIN -symbols" 4589 ;; 4590 *) 4591 DUMPBIN=: 4592 ;; 4593 esac 4594 fi 4595 4596 if test "$DUMPBIN" != ":"; then 4597 NM="$DUMPBIN" 4598 fi 4599fi 4600test -z "$NM" && NM=nm 4601 4602 4603 4604 4605 4606 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4608$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4609if ${lt_cv_nm_interface+:} false; then : 4610 $as_echo_n "(cached) " >&6 4611else 4612 lt_cv_nm_interface="BSD nm" 4613 echo "int some_variable = 0;" > conftest.$ac_ext 4614 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4615 (eval "$ac_compile" 2>conftest.err) 4616 cat conftest.err >&5 4617 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4618 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4619 cat conftest.err >&5 4620 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4621 cat conftest.out >&5 4622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4623 lt_cv_nm_interface="MS dumpbin" 4624 fi 4625 rm -f conftest* 4626fi 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4628$as_echo "$lt_cv_nm_interface" >&6; } 4629 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4631$as_echo_n "checking whether ln -s works... " >&6; } 4632LN_S=$as_ln_s 4633if test "$LN_S" = "ln -s"; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4635$as_echo "yes" >&6; } 4636else 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4638$as_echo "no, using $LN_S" >&6; } 4639fi 4640 4641# find the maximum length of command line arguments 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4643$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4644if ${lt_cv_sys_max_cmd_len+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 i=0 4648 teststring="ABCD" 4649 4650 case $build_os in 4651 msdosdjgpp*) 4652 # On DJGPP, this test can blow up pretty badly due to problems in libc 4653 # (any single argument exceeding 2000 bytes causes a buffer overrun 4654 # during glob expansion). Even if it were fixed, the result of this 4655 # check would be larger than it should be. 4656 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4657 ;; 4658 4659 gnu*) 4660 # Under GNU Hurd, this test is not required because there is 4661 # no limit to the length of command line arguments. 4662 # Libtool will interpret -1 as no limit whatsoever 4663 lt_cv_sys_max_cmd_len=-1; 4664 ;; 4665 4666 cygwin* | mingw* | cegcc*) 4667 # On Win9x/ME, this test blows up -- it succeeds, but takes 4668 # about 5 minutes as the teststring grows exponentially. 4669 # Worse, since 9x/ME are not pre-emptively multitasking, 4670 # you end up with a "frozen" computer, even though with patience 4671 # the test eventually succeeds (with a max line length of 256k). 4672 # Instead, let's just punt: use the minimum linelength reported by 4673 # all of the supported platforms: 8192 (on NT/2K/XP). 4674 lt_cv_sys_max_cmd_len=8192; 4675 ;; 4676 4677 mint*) 4678 # On MiNT this can take a long time and run out of memory. 4679 lt_cv_sys_max_cmd_len=8192; 4680 ;; 4681 4682 amigaos*) 4683 # On AmigaOS with pdksh, this test takes hours, literally. 4684 # So we just punt and use a minimum line length of 8192. 4685 lt_cv_sys_max_cmd_len=8192; 4686 ;; 4687 4688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4689 # This has been around since 386BSD, at least. Likely further. 4690 if test -x /sbin/sysctl; then 4691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4692 elif test -x /usr/sbin/sysctl; then 4693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4694 else 4695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4696 fi 4697 # And add a safety zone 4698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4700 ;; 4701 4702 interix*) 4703 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4704 lt_cv_sys_max_cmd_len=196608 4705 ;; 4706 4707 os2*) 4708 # The test takes a long time on OS/2. 4709 lt_cv_sys_max_cmd_len=8192 4710 ;; 4711 4712 osf*) 4713 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4714 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4715 # nice to cause kernel panics so lets avoid the loop below. 4716 # First set a reasonable default. 4717 lt_cv_sys_max_cmd_len=16384 4718 # 4719 if test -x /sbin/sysconfig; then 4720 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4721 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4722 esac 4723 fi 4724 ;; 4725 sco3.2v5*) 4726 lt_cv_sys_max_cmd_len=102400 4727 ;; 4728 sysv5* | sco5v6* | sysv4.2uw2*) 4729 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4730 if test -n "$kargmax"; then 4731 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4732 else 4733 lt_cv_sys_max_cmd_len=32768 4734 fi 4735 ;; 4736 *) 4737 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4738 if test -n "$lt_cv_sys_max_cmd_len"; then 4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4741 else 4742 # Make teststring a little bigger before we do anything with it. 4743 # a 1K string should be a reasonable start. 4744 for i in 1 2 3 4 5 6 7 8 ; do 4745 teststring=$teststring$teststring 4746 done 4747 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4748 # If test is not a shell built-in, we'll probably end up computing a 4749 # maximum length that is only half of the actual maximum length, but 4750 # we can't tell. 4751 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4752 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4753 test $i != 17 # 1/2 MB should be enough 4754 do 4755 i=`expr $i + 1` 4756 teststring=$teststring$teststring 4757 done 4758 # Only check the string length outside the loop. 4759 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4760 teststring= 4761 # Add a significant safety factor because C++ compilers can tack on 4762 # massive amounts of additional arguments before passing them to the 4763 # linker. It appears as though 1/2 is a usable value. 4764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4765 fi 4766 ;; 4767 esac 4768 4769fi 4770 4771if test -n $lt_cv_sys_max_cmd_len ; then 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4773$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4774else 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4776$as_echo "none" >&6; } 4777fi 4778max_cmd_len=$lt_cv_sys_max_cmd_len 4779 4780 4781 4782 4783 4784 4785: ${CP="cp -f"} 4786: ${MV="mv -f"} 4787: ${RM="rm -f"} 4788 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4790$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4791# Try some XSI features 4792xsi_shell=no 4793( _lt_dummy="a/b/c" 4794 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4795 = c,a/b,b/c, \ 4796 && eval 'test $(( 1 + 1 )) -eq 2 \ 4797 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4798 && xsi_shell=yes 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4800$as_echo "$xsi_shell" >&6; } 4801 4802 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4804$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4805lt_shell_append=no 4806( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4807 >/dev/null 2>&1 \ 4808 && lt_shell_append=yes 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4810$as_echo "$lt_shell_append" >&6; } 4811 4812 4813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4814 lt_unset=unset 4815else 4816 lt_unset=false 4817fi 4818 4819 4820 4821 4822 4823# test EBCDIC or ASCII 4824case `echo X|tr X '\101'` in 4825 A) # ASCII based system 4826 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4827 lt_SP2NL='tr \040 \012' 4828 lt_NL2SP='tr \015\012 \040\040' 4829 ;; 4830 *) # EBCDIC based system 4831 lt_SP2NL='tr \100 \n' 4832 lt_NL2SP='tr \r\n \100\100' 4833 ;; 4834esac 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4845$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4846if ${lt_cv_to_host_file_cmd+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 case $host in 4850 *-*-mingw* ) 4851 case $build in 4852 *-*-mingw* ) # actually msys 4853 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4854 ;; 4855 *-*-cygwin* ) 4856 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4857 ;; 4858 * ) # otherwise, assume *nix 4859 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4860 ;; 4861 esac 4862 ;; 4863 *-*-cygwin* ) 4864 case $build in 4865 *-*-mingw* ) # actually msys 4866 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4867 ;; 4868 *-*-cygwin* ) 4869 lt_cv_to_host_file_cmd=func_convert_file_noop 4870 ;; 4871 * ) # otherwise, assume *nix 4872 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4873 ;; 4874 esac 4875 ;; 4876 * ) # unhandled hosts (and "normal" native builds) 4877 lt_cv_to_host_file_cmd=func_convert_file_noop 4878 ;; 4879esac 4880 4881fi 4882 4883to_host_file_cmd=$lt_cv_to_host_file_cmd 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4885$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4886 4887 4888 4889 4890 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4892$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4893if ${lt_cv_to_tool_file_cmd+:} false; then : 4894 $as_echo_n "(cached) " >&6 4895else 4896 #assume ordinary cross tools, or native build. 4897lt_cv_to_tool_file_cmd=func_convert_file_noop 4898case $host in 4899 *-*-mingw* ) 4900 case $build in 4901 *-*-mingw* ) # actually msys 4902 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4903 ;; 4904 esac 4905 ;; 4906esac 4907 4908fi 4909 4910to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4912$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4913 4914 4915 4916 4917 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4919$as_echo_n "checking for $LD option to reload object files... " >&6; } 4920if ${lt_cv_ld_reload_flag+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 lt_cv_ld_reload_flag='-r' 4924fi 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4926$as_echo "$lt_cv_ld_reload_flag" >&6; } 4927reload_flag=$lt_cv_ld_reload_flag 4928case $reload_flag in 4929"" | " "*) ;; 4930*) reload_flag=" $reload_flag" ;; 4931esac 4932reload_cmds='$LD$reload_flag -o $output$reload_objs' 4933case $host_os in 4934 cygwin* | mingw* | pw32* | cegcc*) 4935 if test "$GCC" != yes; then 4936 reload_cmds=false 4937 fi 4938 ;; 4939 darwin*) 4940 if test "$GCC" = yes; then 4941 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4942 else 4943 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4944 fi 4945 ;; 4946esac 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956if test -n "$ac_tool_prefix"; then 4957 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4958set dummy ${ac_tool_prefix}objdump; ac_word=$2 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4960$as_echo_n "checking for $ac_word... " >&6; } 4961if ${ac_cv_prog_OBJDUMP+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 if test -n "$OBJDUMP"; then 4965 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4966else 4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4968for as_dir in $PATH 4969do 4970 IFS=$as_save_IFS 4971 test -z "$as_dir" && as_dir=. 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4974 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4976 break 2 4977 fi 4978done 4979 done 4980IFS=$as_save_IFS 4981 4982fi 4983fi 4984OBJDUMP=$ac_cv_prog_OBJDUMP 4985if test -n "$OBJDUMP"; then 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4987$as_echo "$OBJDUMP" >&6; } 4988else 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4990$as_echo "no" >&6; } 4991fi 4992 4993 4994fi 4995if test -z "$ac_cv_prog_OBJDUMP"; then 4996 ac_ct_OBJDUMP=$OBJDUMP 4997 # Extract the first word of "objdump", so it can be a program name with args. 4998set dummy objdump; ac_word=$2 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5000$as_echo_n "checking for $ac_word... " >&6; } 5001if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -n "$ac_ct_OBJDUMP"; then 5005 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5006else 5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5008for as_dir in $PATH 5009do 5010 IFS=$as_save_IFS 5011 test -z "$as_dir" && as_dir=. 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5014 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5016 break 2 5017 fi 5018done 5019 done 5020IFS=$as_save_IFS 5021 5022fi 5023fi 5024ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5025if test -n "$ac_ct_OBJDUMP"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5027$as_echo "$ac_ct_OBJDUMP" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 if test "x$ac_ct_OBJDUMP" = x; then 5034 OBJDUMP="false" 5035 else 5036 case $cross_compiling:$ac_tool_warned in 5037yes:) 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5040ac_tool_warned=yes ;; 5041esac 5042 OBJDUMP=$ac_ct_OBJDUMP 5043 fi 5044else 5045 OBJDUMP="$ac_cv_prog_OBJDUMP" 5046fi 5047 5048test -z "$OBJDUMP" && OBJDUMP=objdump 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5059$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5060if ${lt_cv_deplibs_check_method+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 lt_cv_file_magic_cmd='$MAGIC_CMD' 5064lt_cv_file_magic_test_file= 5065lt_cv_deplibs_check_method='unknown' 5066# Need to set the preceding variable on all platforms that support 5067# interlibrary dependencies. 5068# 'none' -- dependencies not supported. 5069# `unknown' -- same as none, but documents that we really don't know. 5070# 'pass_all' -- all dependencies passed with no checks. 5071# 'test_compile' -- check by making test program. 5072# 'file_magic [[regex]]' -- check by looking for files in library path 5073# which responds to the $file_magic_cmd with a given extended regex. 5074# If you have `file' or equivalent on your system and you're not sure 5075# whether `pass_all' will *always* work, you probably want this one. 5076 5077case $host_os in 5078aix[4-9]*) 5079 lt_cv_deplibs_check_method=pass_all 5080 ;; 5081 5082beos*) 5083 lt_cv_deplibs_check_method=pass_all 5084 ;; 5085 5086bsdi[45]*) 5087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5088 lt_cv_file_magic_cmd='/usr/bin/file -L' 5089 lt_cv_file_magic_test_file=/shlib/libc.so 5090 ;; 5091 5092cygwin*) 5093 # func_win32_libid is a shell function defined in ltmain.sh 5094 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5095 lt_cv_file_magic_cmd='func_win32_libid' 5096 ;; 5097 5098mingw* | pw32*) 5099 # Base MSYS/MinGW do not provide the 'file' command needed by 5100 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5101 # unless we find 'file', for example because we are cross-compiling. 5102 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5103 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5105 lt_cv_file_magic_cmd='func_win32_libid' 5106 else 5107 # Keep this pattern in sync with the one in func_win32_libid. 5108 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5109 lt_cv_file_magic_cmd='$OBJDUMP -f' 5110 fi 5111 ;; 5112 5113cegcc*) 5114 # use the weaker test based on 'objdump'. See mingw*. 5115 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5116 lt_cv_file_magic_cmd='$OBJDUMP -f' 5117 ;; 5118 5119darwin* | rhapsody*) 5120 lt_cv_deplibs_check_method=pass_all 5121 ;; 5122 5123freebsd* | dragonfly*) 5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5125 case $host_cpu in 5126 i*86 ) 5127 # Not sure whether the presence of OpenBSD here was a mistake. 5128 # Let's accept both of them until this is cleared up. 5129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5130 lt_cv_file_magic_cmd=/usr/bin/file 5131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5132 ;; 5133 esac 5134 else 5135 lt_cv_deplibs_check_method=pass_all 5136 fi 5137 ;; 5138 5139gnu*) 5140 lt_cv_deplibs_check_method=pass_all 5141 ;; 5142 5143haiku*) 5144 lt_cv_deplibs_check_method=pass_all 5145 ;; 5146 5147hpux10.20* | hpux11*) 5148 lt_cv_file_magic_cmd=/usr/bin/file 5149 case $host_cpu in 5150 ia64*) 5151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5152 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5153 ;; 5154 hppa*64*) 5155 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]' 5156 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5157 ;; 5158 *) 5159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5160 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5161 ;; 5162 esac 5163 ;; 5164 5165interix[3-9]*) 5166 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5168 ;; 5169 5170irix5* | irix6* | nonstopux*) 5171 case $LD in 5172 *-32|*"-32 ") libmagic=32-bit;; 5173 *-n32|*"-n32 ") libmagic=N32;; 5174 *-64|*"-64 ") libmagic=64-bit;; 5175 *) libmagic=never-match;; 5176 esac 5177 lt_cv_deplibs_check_method=pass_all 5178 ;; 5179 5180# This must be glibc/ELF. 5181linux* | k*bsd*-gnu | kopensolaris*-gnu) 5182 lt_cv_deplibs_check_method=pass_all 5183 ;; 5184 5185netbsd*) 5186 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5188 else 5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5190 fi 5191 ;; 5192 5193newos6*) 5194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5195 lt_cv_file_magic_cmd=/usr/bin/file 5196 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5197 ;; 5198 5199*nto* | *qnx*) 5200 lt_cv_deplibs_check_method=pass_all 5201 ;; 5202 5203openbsd*) 5204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5206 else 5207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5208 fi 5209 ;; 5210 5211osf3* | osf4* | osf5*) 5212 lt_cv_deplibs_check_method=pass_all 5213 ;; 5214 5215rdos*) 5216 lt_cv_deplibs_check_method=pass_all 5217 ;; 5218 5219solaris*) 5220 lt_cv_deplibs_check_method=pass_all 5221 ;; 5222 5223sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5224 lt_cv_deplibs_check_method=pass_all 5225 ;; 5226 5227sysv4 | sysv4.3*) 5228 case $host_vendor in 5229 motorola) 5230 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]' 5231 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5232 ;; 5233 ncr) 5234 lt_cv_deplibs_check_method=pass_all 5235 ;; 5236 sequent) 5237 lt_cv_file_magic_cmd='/bin/file' 5238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5239 ;; 5240 sni) 5241 lt_cv_file_magic_cmd='/bin/file' 5242 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5243 lt_cv_file_magic_test_file=/lib/libc.so 5244 ;; 5245 siemens) 5246 lt_cv_deplibs_check_method=pass_all 5247 ;; 5248 pc) 5249 lt_cv_deplibs_check_method=pass_all 5250 ;; 5251 esac 5252 ;; 5253 5254tpf*) 5255 lt_cv_deplibs_check_method=pass_all 5256 ;; 5257esac 5258 5259fi 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5261$as_echo "$lt_cv_deplibs_check_method" >&6; } 5262 5263file_magic_glob= 5264want_nocaseglob=no 5265if test "$build" = "$host"; then 5266 case $host_os in 5267 mingw* | pw32*) 5268 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5269 want_nocaseglob=yes 5270 else 5271 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5272 fi 5273 ;; 5274 esac 5275fi 5276 5277file_magic_cmd=$lt_cv_file_magic_cmd 5278deplibs_check_method=$lt_cv_deplibs_check_method 5279test -z "$deplibs_check_method" && deplibs_check_method=unknown 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302if test -n "$ac_tool_prefix"; then 5303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5304set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5306$as_echo_n "checking for $ac_word... " >&6; } 5307if ${ac_cv_prog_DLLTOOL+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 if test -n "$DLLTOOL"; then 5311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5312else 5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314for as_dir in $PATH 5315do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_exec_ext in '' $ac_executable_extensions; do 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5320 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5322 break 2 5323 fi 5324done 5325 done 5326IFS=$as_save_IFS 5327 5328fi 5329fi 5330DLLTOOL=$ac_cv_prog_DLLTOOL 5331if test -n "$DLLTOOL"; then 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5333$as_echo "$DLLTOOL" >&6; } 5334else 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5336$as_echo "no" >&6; } 5337fi 5338 5339 5340fi 5341if test -z "$ac_cv_prog_DLLTOOL"; then 5342 ac_ct_DLLTOOL=$DLLTOOL 5343 # Extract the first word of "dlltool", so it can be a program name with args. 5344set dummy dlltool; ac_word=$2 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5346$as_echo_n "checking for $ac_word... " >&6; } 5347if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5348 $as_echo_n "(cached) " >&6 5349else 5350 if test -n "$ac_ct_DLLTOOL"; then 5351 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5352else 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5360 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365 done 5366IFS=$as_save_IFS 5367 5368fi 5369fi 5370ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5371if test -n "$ac_ct_DLLTOOL"; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5373$as_echo "$ac_ct_DLLTOOL" >&6; } 5374else 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376$as_echo "no" >&6; } 5377fi 5378 5379 if test "x$ac_ct_DLLTOOL" = x; then 5380 DLLTOOL="false" 5381 else 5382 case $cross_compiling:$ac_tool_warned in 5383yes:) 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5386ac_tool_warned=yes ;; 5387esac 5388 DLLTOOL=$ac_ct_DLLTOOL 5389 fi 5390else 5391 DLLTOOL="$ac_cv_prog_DLLTOOL" 5392fi 5393 5394test -z "$DLLTOOL" && DLLTOOL=dlltool 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5406$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5407if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 lt_cv_sharedlib_from_linklib_cmd='unknown' 5411 5412case $host_os in 5413cygwin* | mingw* | pw32* | cegcc*) 5414 # two different shell functions defined in ltmain.sh 5415 # decide which to use based on capabilities of $DLLTOOL 5416 case `$DLLTOOL --help 2>&1` in 5417 *--identify-strict*) 5418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5419 ;; 5420 *) 5421 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5422 ;; 5423 esac 5424 ;; 5425*) 5426 # fallback: assume linklib IS sharedlib 5427 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5428 ;; 5429esac 5430 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5433$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5434sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5435test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5436 5437 5438 5439 5440 5441 5442 5443 5444if test -n "$ac_tool_prefix"; then 5445 for ac_prog in ar 5446 do 5447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5448set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if ${ac_cv_prog_AR+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$AR"; then 5455 ac_cv_prog_AR="$AR" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5464 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469 done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474AR=$ac_cv_prog_AR 5475if test -n "$AR"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5477$as_echo "$AR" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 5484 test -n "$AR" && break 5485 done 5486fi 5487if test -z "$AR"; then 5488 ac_ct_AR=$AR 5489 for ac_prog in ar 5490do 5491 # Extract the first word of "$ac_prog", so it can be a program name with args. 5492set dummy $ac_prog; ac_word=$2 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5494$as_echo_n "checking for $ac_word... " >&6; } 5495if ${ac_cv_prog_ac_ct_AR+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 if test -n "$ac_ct_AR"; then 5499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5500else 5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502for as_dir in $PATH 5503do 5504 IFS=$as_save_IFS 5505 test -z "$as_dir" && as_dir=. 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5508 ac_cv_prog_ac_ct_AR="$ac_prog" 5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5510 break 2 5511 fi 5512done 5513 done 5514IFS=$as_save_IFS 5515 5516fi 5517fi 5518ac_ct_AR=$ac_cv_prog_ac_ct_AR 5519if test -n "$ac_ct_AR"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5521$as_echo "$ac_ct_AR" >&6; } 5522else 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524$as_echo "no" >&6; } 5525fi 5526 5527 5528 test -n "$ac_ct_AR" && break 5529done 5530 5531 if test "x$ac_ct_AR" = x; then 5532 AR="false" 5533 else 5534 case $cross_compiling:$ac_tool_warned in 5535yes:) 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5538ac_tool_warned=yes ;; 5539esac 5540 AR=$ac_ct_AR 5541 fi 5542fi 5543 5544: ${AR=ar} 5545: ${AR_FLAGS=cru} 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5558$as_echo_n "checking for archiver @FILE support... " >&6; } 5559if ${lt_cv_ar_at_file+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 lt_cv_ar_at_file=no 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565 5566int 5567main () 5568{ 5569 5570 ; 5571 return 0; 5572} 5573_ACEOF 5574if ac_fn_c_try_compile "$LINENO"; then : 5575 echo conftest.$ac_objext > conftest.lst 5576 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5578 (eval $lt_ar_try) 2>&5 5579 ac_status=$? 5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5581 test $ac_status = 0; } 5582 if test "$ac_status" -eq 0; then 5583 # Ensure the archiver fails upon bogus file names. 5584 rm -f conftest.$ac_objext libconftest.a 5585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5586 (eval $lt_ar_try) 2>&5 5587 ac_status=$? 5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5589 test $ac_status = 0; } 5590 if test "$ac_status" -ne 0; then 5591 lt_cv_ar_at_file=@ 5592 fi 5593 fi 5594 rm -f conftest.* libconftest.a 5595 5596fi 5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5598 5599fi 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5601$as_echo "$lt_cv_ar_at_file" >&6; } 5602 5603if test "x$lt_cv_ar_at_file" = xno; then 5604 archiver_list_spec= 5605else 5606 archiver_list_spec=$lt_cv_ar_at_file 5607fi 5608 5609 5610 5611 5612 5613 5614 5615if test -n "$ac_tool_prefix"; then 5616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5617set dummy ${ac_tool_prefix}strip; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_prog_STRIP+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$STRIP"; then 5624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643STRIP=$ac_cv_prog_STRIP 5644if test -n "$STRIP"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5646$as_echo "$STRIP" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 5653fi 5654if test -z "$ac_cv_prog_STRIP"; then 5655 ac_ct_STRIP=$STRIP 5656 # Extract the first word of "strip", so it can be a program name with args. 5657set dummy strip; ac_word=$2 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5659$as_echo_n "checking for $ac_word... " >&6; } 5660if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 if test -n "$ac_ct_STRIP"; then 5664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5665else 5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667for as_dir in $PATH 5668do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5673 ac_cv_prog_ac_ct_STRIP="strip" 5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677done 5678 done 5679IFS=$as_save_IFS 5680 5681fi 5682fi 5683ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5684if test -n "$ac_ct_STRIP"; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5686$as_echo "$ac_ct_STRIP" >&6; } 5687else 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5689$as_echo "no" >&6; } 5690fi 5691 5692 if test "x$ac_ct_STRIP" = x; then 5693 STRIP=":" 5694 else 5695 case $cross_compiling:$ac_tool_warned in 5696yes:) 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5699ac_tool_warned=yes ;; 5700esac 5701 STRIP=$ac_ct_STRIP 5702 fi 5703else 5704 STRIP="$ac_cv_prog_STRIP" 5705fi 5706 5707test -z "$STRIP" && STRIP=: 5708 5709 5710 5711 5712 5713 5714if test -n "$ac_tool_prefix"; then 5715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5716set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if ${ac_cv_prog_RANLIB+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$RANLIB"; then 5723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742RANLIB=$ac_cv_prog_RANLIB 5743if test -n "$RANLIB"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5745$as_echo "$RANLIB" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 5752fi 5753if test -z "$ac_cv_prog_RANLIB"; then 5754 ac_ct_RANLIB=$RANLIB 5755 # Extract the first word of "ranlib", so it can be a program name with args. 5756set dummy ranlib; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$ac_ct_RANLIB"; then 5763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_ac_ct_RANLIB="ranlib" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5783if test -n "$ac_ct_RANLIB"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5785$as_echo "$ac_ct_RANLIB" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 if test "x$ac_ct_RANLIB" = x; then 5792 RANLIB=":" 5793 else 5794 case $cross_compiling:$ac_tool_warned in 5795yes:) 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5798ac_tool_warned=yes ;; 5799esac 5800 RANLIB=$ac_ct_RANLIB 5801 fi 5802else 5803 RANLIB="$ac_cv_prog_RANLIB" 5804fi 5805 5806test -z "$RANLIB" && RANLIB=: 5807 5808 5809 5810 5811 5812 5813# Determine commands to create old-style static archives. 5814old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5815old_postinstall_cmds='chmod 644 $oldlib' 5816old_postuninstall_cmds= 5817 5818if test -n "$RANLIB"; then 5819 case $host_os in 5820 openbsd*) 5821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5822 ;; 5823 *) 5824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5825 ;; 5826 esac 5827 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5828fi 5829 5830case $host_os in 5831 darwin*) 5832 lock_old_archive_extraction=yes ;; 5833 *) 5834 lock_old_archive_extraction=no ;; 5835esac 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875# If no C compiler was specified, use CC. 5876LTCC=${LTCC-"$CC"} 5877 5878# If no C compiler flags were specified, use CFLAGS. 5879LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5880 5881# Allow CC to be a program name with arguments. 5882compiler=$CC 5883 5884 5885# Check for command to grab the raw symbol name followed by C symbol from nm. 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5887$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5888if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 5892# These are sane defaults that work on at least a few old systems. 5893# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5894 5895# Character class describing NM global symbol codes. 5896symcode='[BCDEGRST]' 5897 5898# Regexp to match symbols that can be accessed directly from C. 5899sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5900 5901# Define system-specific variables. 5902case $host_os in 5903aix*) 5904 symcode='[BCDT]' 5905 ;; 5906cygwin* | mingw* | pw32* | cegcc*) 5907 symcode='[ABCDGISTW]' 5908 ;; 5909hpux*) 5910 if test "$host_cpu" = ia64; then 5911 symcode='[ABCDEGRST]' 5912 fi 5913 ;; 5914irix* | nonstopux*) 5915 symcode='[BCDEGRST]' 5916 ;; 5917osf*) 5918 symcode='[BCDEGQRST]' 5919 ;; 5920solaris*) 5921 symcode='[BDRT]' 5922 ;; 5923sco3.2v5*) 5924 symcode='[DT]' 5925 ;; 5926sysv4.2uw2*) 5927 symcode='[DT]' 5928 ;; 5929sysv5* | sco5v6* | unixware* | OpenUNIX*) 5930 symcode='[ABDT]' 5931 ;; 5932sysv4) 5933 symcode='[DFNSTU]' 5934 ;; 5935esac 5936 5937# If we're using GNU nm, then use its standard symbol codes. 5938case `$NM -V 2>&1` in 5939*GNU* | *'with BFD'*) 5940 symcode='[ABCDGIRSTW]' ;; 5941esac 5942 5943# Transform an extracted symbol line into a proper C declaration. 5944# Some systems (esp. on ia64) link data and code symbols differently, 5945# so use this general approach. 5946lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5947 5948# Transform an extracted symbol line into symbol name and symbol address 5949lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5950lt_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'" 5951 5952# Handle CRLF in mingw tool chain 5953opt_cr= 5954case $build_os in 5955mingw*) 5956 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5957 ;; 5958esac 5959 5960# Try without a prefix underscore, then with it. 5961for ac_symprfx in "" "_"; do 5962 5963 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5964 symxfrm="\\1 $ac_symprfx\\2 \\2" 5965 5966 # Write the raw and C identifiers. 5967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5968 # Fake it for dumpbin and say T for any non-static function 5969 # and D for any global variable. 5970 # Also find C++ and __fastcall symbols from MSVC++, 5971 # which start with @ or ?. 5972 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5973" {last_section=section; section=\$ 3};"\ 5974" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5975" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5976" \$ 0!~/External *\|/{next};"\ 5977" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5978" {if(hide[section]) next};"\ 5979" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5980" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5981" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5982" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5983" ' prfx=^$ac_symprfx" 5984 else 5985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5986 fi 5987 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5988 5989 # Check to see that the pipe works correctly. 5990 pipe_works=no 5991 5992 rm -f conftest* 5993 cat > conftest.$ac_ext <<_LT_EOF 5994#ifdef __cplusplus 5995extern "C" { 5996#endif 5997char nm_test_var; 5998void nm_test_func(void); 5999void nm_test_func(void){} 6000#ifdef __cplusplus 6001} 6002#endif 6003int main(){nm_test_var='a';nm_test_func();return(0);} 6004_LT_EOF 6005 6006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6007 (eval $ac_compile) 2>&5 6008 ac_status=$? 6009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6010 test $ac_status = 0; }; then 6011 # Now try to grab the symbols. 6012 nlist=conftest.nm 6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6014 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6015 ac_status=$? 6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6017 test $ac_status = 0; } && test -s "$nlist"; then 6018 # Try sorting and uniquifying the output. 6019 if sort "$nlist" | uniq > "$nlist"T; then 6020 mv -f "$nlist"T "$nlist" 6021 else 6022 rm -f "$nlist"T 6023 fi 6024 6025 # Make sure that we snagged all the symbols we need. 6026 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6027 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6028 cat <<_LT_EOF > conftest.$ac_ext 6029/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6030#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6031/* DATA imports from DLLs on WIN32 con't be const, because runtime 6032 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6033# define LT_DLSYM_CONST 6034#elif defined(__osf__) 6035/* This system does not cope well with relocations in const data. */ 6036# define LT_DLSYM_CONST 6037#else 6038# define LT_DLSYM_CONST const 6039#endif 6040 6041#ifdef __cplusplus 6042extern "C" { 6043#endif 6044 6045_LT_EOF 6046 # Now generate the symbol file. 6047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6048 6049 cat <<_LT_EOF >> conftest.$ac_ext 6050 6051/* The mapping between symbol names and symbols. */ 6052LT_DLSYM_CONST struct { 6053 const char *name; 6054 void *address; 6055} 6056lt__PROGRAM__LTX_preloaded_symbols[] = 6057{ 6058 { "@PROGRAM@", (void *) 0 }, 6059_LT_EOF 6060 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6061 cat <<\_LT_EOF >> conftest.$ac_ext 6062 {0, (void *) 0} 6063}; 6064 6065/* This works around a problem in FreeBSD linker */ 6066#ifdef FREEBSD_WORKAROUND 6067static const void *lt_preloaded_setup() { 6068 return lt__PROGRAM__LTX_preloaded_symbols; 6069} 6070#endif 6071 6072#ifdef __cplusplus 6073} 6074#endif 6075_LT_EOF 6076 # Now try linking the two files. 6077 mv conftest.$ac_objext conftstm.$ac_objext 6078 lt_globsym_save_LIBS=$LIBS 6079 lt_globsym_save_CFLAGS=$CFLAGS 6080 LIBS="conftstm.$ac_objext" 6081 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6083 (eval $ac_link) 2>&5 6084 ac_status=$? 6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6086 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6087 pipe_works=yes 6088 fi 6089 LIBS=$lt_globsym_save_LIBS 6090 CFLAGS=$lt_globsym_save_CFLAGS 6091 else 6092 echo "cannot find nm_test_func in $nlist" >&5 6093 fi 6094 else 6095 echo "cannot find nm_test_var in $nlist" >&5 6096 fi 6097 else 6098 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6099 fi 6100 else 6101 echo "$progname: failed program was:" >&5 6102 cat conftest.$ac_ext >&5 6103 fi 6104 rm -rf conftest* conftst* 6105 6106 # Do not use the global_symbol_pipe unless it works. 6107 if test "$pipe_works" = yes; then 6108 break 6109 else 6110 lt_cv_sys_global_symbol_pipe= 6111 fi 6112done 6113 6114fi 6115 6116if test -z "$lt_cv_sys_global_symbol_pipe"; then 6117 lt_cv_sys_global_symbol_to_cdecl= 6118fi 6119if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6121$as_echo "failed" >&6; } 6122else 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6124$as_echo "ok" >&6; } 6125fi 6126 6127# Response file support. 6128if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6129 nm_file_list_spec='@' 6130elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6131 nm_file_list_spec='@' 6132fi 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6161$as_echo_n "checking for sysroot... " >&6; } 6162 6163# Check whether --with-sysroot was given. 6164if test "${with_sysroot+set}" = set; then : 6165 withval=$with_sysroot; 6166else 6167 with_sysroot=no 6168fi 6169 6170 6171lt_sysroot= 6172case ${with_sysroot} in #( 6173 yes) 6174 if test "$GCC" = yes; then 6175 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6176 fi 6177 ;; #( 6178 /*) 6179 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6180 ;; #( 6181 no|'') 6182 ;; #( 6183 *) 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6185$as_echo "${with_sysroot}" >&6; } 6186 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6187 ;; 6188esac 6189 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6191$as_echo "${lt_sysroot:-no}" >&6; } 6192 6193 6194 6195 6196 6197# Check whether --enable-libtool-lock was given. 6198if test "${enable_libtool_lock+set}" = set; then : 6199 enableval=$enable_libtool_lock; 6200fi 6201 6202test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6203 6204# Some flags need to be propagated to the compiler or linker for good 6205# libtool support. 6206case $host in 6207ia64-*-hpux*) 6208 # Find out which ABI we are using. 6209 echo 'int i;' > conftest.$ac_ext 6210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6211 (eval $ac_compile) 2>&5 6212 ac_status=$? 6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214 test $ac_status = 0; }; then 6215 case `/usr/bin/file conftest.$ac_objext` in 6216 *ELF-32*) 6217 HPUX_IA64_MODE="32" 6218 ;; 6219 *ELF-64*) 6220 HPUX_IA64_MODE="64" 6221 ;; 6222 esac 6223 fi 6224 rm -rf conftest* 6225 ;; 6226*-*-irix6*) 6227 # Find out which ABI we are using. 6228 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6230 (eval $ac_compile) 2>&5 6231 ac_status=$? 6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6233 test $ac_status = 0; }; then 6234 if test "$lt_cv_prog_gnu_ld" = yes; then 6235 case `/usr/bin/file conftest.$ac_objext` in 6236 *32-bit*) 6237 LD="${LD-ld} -melf32bsmip" 6238 ;; 6239 *N32*) 6240 LD="${LD-ld} -melf32bmipn32" 6241 ;; 6242 *64-bit*) 6243 LD="${LD-ld} -melf64bmip" 6244 ;; 6245 esac 6246 else 6247 case `/usr/bin/file conftest.$ac_objext` in 6248 *32-bit*) 6249 LD="${LD-ld} -32" 6250 ;; 6251 *N32*) 6252 LD="${LD-ld} -n32" 6253 ;; 6254 *64-bit*) 6255 LD="${LD-ld} -64" 6256 ;; 6257 esac 6258 fi 6259 fi 6260 rm -rf conftest* 6261 ;; 6262 6263x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6264s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6265 # Find out which ABI we are using. 6266 echo 'int i;' > conftest.$ac_ext 6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6268 (eval $ac_compile) 2>&5 6269 ac_status=$? 6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6271 test $ac_status = 0; }; then 6272 case `/usr/bin/file conftest.o` in 6273 *32-bit*) 6274 case $host in 6275 x86_64-*kfreebsd*-gnu) 6276 LD="${LD-ld} -m elf_i386_fbsd" 6277 ;; 6278 x86_64-*linux*) 6279 LD="${LD-ld} -m elf_i386" 6280 ;; 6281 ppc64-*linux*|powerpc64-*linux*) 6282 LD="${LD-ld} -m elf32ppclinux" 6283 ;; 6284 s390x-*linux*) 6285 LD="${LD-ld} -m elf_s390" 6286 ;; 6287 sparc64-*linux*) 6288 LD="${LD-ld} -m elf32_sparc" 6289 ;; 6290 esac 6291 ;; 6292 *64-bit*) 6293 case $host in 6294 x86_64-*kfreebsd*-gnu) 6295 LD="${LD-ld} -m elf_x86_64_fbsd" 6296 ;; 6297 x86_64-*linux*) 6298 LD="${LD-ld} -m elf_x86_64" 6299 ;; 6300 ppc*-*linux*|powerpc*-*linux*) 6301 LD="${LD-ld} -m elf64ppc" 6302 ;; 6303 s390*-*linux*|s390*-*tpf*) 6304 LD="${LD-ld} -m elf64_s390" 6305 ;; 6306 sparc*-*linux*) 6307 LD="${LD-ld} -m elf64_sparc" 6308 ;; 6309 esac 6310 ;; 6311 esac 6312 fi 6313 rm -rf conftest* 6314 ;; 6315 6316*-*-sco3.2v5*) 6317 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6318 SAVE_CFLAGS="$CFLAGS" 6319 CFLAGS="$CFLAGS -belf" 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6321$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6322if ${lt_cv_cc_needs_belf+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 ac_ext=c 6326ac_cpp='$CPP $CPPFLAGS' 6327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6329ac_compiler_gnu=$ac_cv_c_compiler_gnu 6330 6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6332/* end confdefs.h. */ 6333 6334int 6335main () 6336{ 6337 6338 ; 6339 return 0; 6340} 6341_ACEOF 6342if ac_fn_c_try_link "$LINENO"; then : 6343 lt_cv_cc_needs_belf=yes 6344else 6345 lt_cv_cc_needs_belf=no 6346fi 6347rm -f core conftest.err conftest.$ac_objext \ 6348 conftest$ac_exeext conftest.$ac_ext 6349 ac_ext=c 6350ac_cpp='$CPP $CPPFLAGS' 6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6353ac_compiler_gnu=$ac_cv_c_compiler_gnu 6354 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6357$as_echo "$lt_cv_cc_needs_belf" >&6; } 6358 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6359 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6360 CFLAGS="$SAVE_CFLAGS" 6361 fi 6362 ;; 6363*-*solaris*) 6364 # Find out which ABI we are using. 6365 echo 'int i;' > conftest.$ac_ext 6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6367 (eval $ac_compile) 2>&5 6368 ac_status=$? 6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6370 test $ac_status = 0; }; then 6371 case `/usr/bin/file conftest.o` in 6372 *64-bit*) 6373 case $lt_cv_prog_gnu_ld in 6374 yes*) 6375 case $host in 6376 i?86-*-solaris*) 6377 LD="${LD-ld} -m elf_x86_64" 6378 ;; 6379 sparc*-*-solaris*) 6380 LD="${LD-ld} -m elf64_sparc" 6381 ;; 6382 esac 6383 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6384 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6385 LD="${LD-ld}_sol2" 6386 fi 6387 ;; 6388 *) 6389 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6390 LD="${LD-ld} -64" 6391 fi 6392 ;; 6393 esac 6394 ;; 6395 esac 6396 fi 6397 rm -rf conftest* 6398 ;; 6399esac 6400 6401need_locks="$enable_libtool_lock" 6402 6403if test -n "$ac_tool_prefix"; then 6404 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6405set dummy ${ac_tool_prefix}mt; ac_word=$2 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6407$as_echo_n "checking for $ac_word... " >&6; } 6408if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 if test -n "$MANIFEST_TOOL"; then 6412 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6413else 6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6421 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426 done 6427IFS=$as_save_IFS 6428 6429fi 6430fi 6431MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6432if test -n "$MANIFEST_TOOL"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6434$as_echo "$MANIFEST_TOOL" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 6440 6441fi 6442if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6443 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6444 # Extract the first word of "mt", so it can be a program name with args. 6445set dummy mt; ac_word=$2 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6447$as_echo_n "checking for $ac_word... " >&6; } 6448if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 if test -n "$ac_ct_MANIFEST_TOOL"; then 6452 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6453else 6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455for as_dir in $PATH 6456do 6457 IFS=$as_save_IFS 6458 test -z "$as_dir" && as_dir=. 6459 for ac_exec_ext in '' $ac_executable_extensions; do 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6461 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 break 2 6464 fi 6465done 6466 done 6467IFS=$as_save_IFS 6468 6469fi 6470fi 6471ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6472if test -n "$ac_ct_MANIFEST_TOOL"; then 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6474$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6475else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477$as_echo "no" >&6; } 6478fi 6479 6480 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6481 MANIFEST_TOOL=":" 6482 else 6483 case $cross_compiling:$ac_tool_warned in 6484yes:) 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6487ac_tool_warned=yes ;; 6488esac 6489 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6490 fi 6491else 6492 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6493fi 6494 6495test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6497$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6498if ${lt_cv_path_mainfest_tool+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 lt_cv_path_mainfest_tool=no 6502 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6503 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6504 cat conftest.err >&5 6505 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6506 lt_cv_path_mainfest_tool=yes 6507 fi 6508 rm -f conftest* 6509fi 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6511$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6512if test "x$lt_cv_path_mainfest_tool" != xyes; then 6513 MANIFEST_TOOL=: 6514fi 6515 6516 6517 6518 6519 6520 6521 case $host_os in 6522 rhapsody* | darwin*) 6523 if test -n "$ac_tool_prefix"; then 6524 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6525set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_prog_DSYMUTIL+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$DSYMUTIL"; then 6532 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551DSYMUTIL=$ac_cv_prog_DSYMUTIL 6552if test -n "$DSYMUTIL"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6554$as_echo "$DSYMUTIL" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 6561fi 6562if test -z "$ac_cv_prog_DSYMUTIL"; then 6563 ac_ct_DSYMUTIL=$DSYMUTIL 6564 # Extract the first word of "dsymutil", so it can be a program name with args. 6565set dummy dsymutil; ac_word=$2 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6567$as_echo_n "checking for $ac_word... " >&6; } 6568if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 if test -n "$ac_ct_DSYMUTIL"; then 6572 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6573else 6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6581 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6583 break 2 6584 fi 6585done 6586 done 6587IFS=$as_save_IFS 6588 6589fi 6590fi 6591ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6592if test -n "$ac_ct_DSYMUTIL"; then 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6594$as_echo "$ac_ct_DSYMUTIL" >&6; } 6595else 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6597$as_echo "no" >&6; } 6598fi 6599 6600 if test "x$ac_ct_DSYMUTIL" = x; then 6601 DSYMUTIL=":" 6602 else 6603 case $cross_compiling:$ac_tool_warned in 6604yes:) 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6607ac_tool_warned=yes ;; 6608esac 6609 DSYMUTIL=$ac_ct_DSYMUTIL 6610 fi 6611else 6612 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6613fi 6614 6615 if test -n "$ac_tool_prefix"; then 6616 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6617set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619$as_echo_n "checking for $ac_word... " >&6; } 6620if ${ac_cv_prog_NMEDIT+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 if test -n "$NMEDIT"; then 6624 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6625else 6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6627for as_dir in $PATH 6628do 6629 IFS=$as_save_IFS 6630 test -z "$as_dir" && as_dir=. 6631 for ac_exec_ext in '' $ac_executable_extensions; do 6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6633 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6635 break 2 6636 fi 6637done 6638 done 6639IFS=$as_save_IFS 6640 6641fi 6642fi 6643NMEDIT=$ac_cv_prog_NMEDIT 6644if test -n "$NMEDIT"; then 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6646$as_echo "$NMEDIT" >&6; } 6647else 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6649$as_echo "no" >&6; } 6650fi 6651 6652 6653fi 6654if test -z "$ac_cv_prog_NMEDIT"; then 6655 ac_ct_NMEDIT=$NMEDIT 6656 # Extract the first word of "nmedit", so it can be a program name with args. 6657set dummy nmedit; ac_word=$2 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6659$as_echo_n "checking for $ac_word... " >&6; } 6660if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 if test -n "$ac_ct_NMEDIT"; then 6664 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6665else 6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6667for as_dir in $PATH 6668do 6669 IFS=$as_save_IFS 6670 test -z "$as_dir" && as_dir=. 6671 for ac_exec_ext in '' $ac_executable_extensions; do 6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6673 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6675 break 2 6676 fi 6677done 6678 done 6679IFS=$as_save_IFS 6680 6681fi 6682fi 6683ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6684if test -n "$ac_ct_NMEDIT"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6686$as_echo "$ac_ct_NMEDIT" >&6; } 6687else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689$as_echo "no" >&6; } 6690fi 6691 6692 if test "x$ac_ct_NMEDIT" = x; then 6693 NMEDIT=":" 6694 else 6695 case $cross_compiling:$ac_tool_warned in 6696yes:) 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6699ac_tool_warned=yes ;; 6700esac 6701 NMEDIT=$ac_ct_NMEDIT 6702 fi 6703else 6704 NMEDIT="$ac_cv_prog_NMEDIT" 6705fi 6706 6707 if test -n "$ac_tool_prefix"; then 6708 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6709set dummy ${ac_tool_prefix}lipo; ac_word=$2 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711$as_echo_n "checking for $ac_word... " >&6; } 6712if ${ac_cv_prog_LIPO+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 if test -n "$LIPO"; then 6716 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6717else 6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719for as_dir in $PATH 6720do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6725 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735LIPO=$ac_cv_prog_LIPO 6736if test -n "$LIPO"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6738$as_echo "$LIPO" >&6; } 6739else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741$as_echo "no" >&6; } 6742fi 6743 6744 6745fi 6746if test -z "$ac_cv_prog_LIPO"; then 6747 ac_ct_LIPO=$LIPO 6748 # Extract the first word of "lipo", so it can be a program name with args. 6749set dummy lipo; ac_word=$2 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751$as_echo_n "checking for $ac_word... " >&6; } 6752if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 if test -n "$ac_ct_LIPO"; then 6756 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6757else 6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_ac_ct_LIPO="lipo" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6776if test -n "$ac_ct_LIPO"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6778$as_echo "$ac_ct_LIPO" >&6; } 6779else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781$as_echo "no" >&6; } 6782fi 6783 6784 if test "x$ac_ct_LIPO" = x; then 6785 LIPO=":" 6786 else 6787 case $cross_compiling:$ac_tool_warned in 6788yes:) 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6791ac_tool_warned=yes ;; 6792esac 6793 LIPO=$ac_ct_LIPO 6794 fi 6795else 6796 LIPO="$ac_cv_prog_LIPO" 6797fi 6798 6799 if test -n "$ac_tool_prefix"; then 6800 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6801set dummy ${ac_tool_prefix}otool; ac_word=$2 6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6803$as_echo_n "checking for $ac_word... " >&6; } 6804if ${ac_cv_prog_OTOOL+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 if test -n "$OTOOL"; then 6808 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6809else 6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811for as_dir in $PATH 6812do 6813 IFS=$as_save_IFS 6814 test -z "$as_dir" && as_dir=. 6815 for ac_exec_ext in '' $ac_executable_extensions; do 6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6817 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6819 break 2 6820 fi 6821done 6822 done 6823IFS=$as_save_IFS 6824 6825fi 6826fi 6827OTOOL=$ac_cv_prog_OTOOL 6828if test -n "$OTOOL"; then 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6830$as_echo "$OTOOL" >&6; } 6831else 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6833$as_echo "no" >&6; } 6834fi 6835 6836 6837fi 6838if test -z "$ac_cv_prog_OTOOL"; then 6839 ac_ct_OTOOL=$OTOOL 6840 # Extract the first word of "otool", so it can be a program name with args. 6841set dummy otool; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$ac_ct_OTOOL"; then 6848 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_prog_ac_ct_OTOOL="otool" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6868if test -n "$ac_ct_OTOOL"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6870$as_echo "$ac_ct_OTOOL" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 if test "x$ac_ct_OTOOL" = x; then 6877 OTOOL=":" 6878 else 6879 case $cross_compiling:$ac_tool_warned in 6880yes:) 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6883ac_tool_warned=yes ;; 6884esac 6885 OTOOL=$ac_ct_OTOOL 6886 fi 6887else 6888 OTOOL="$ac_cv_prog_OTOOL" 6889fi 6890 6891 if test -n "$ac_tool_prefix"; then 6892 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6893set dummy ${ac_tool_prefix}otool64; ac_word=$2 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895$as_echo_n "checking for $ac_word... " >&6; } 6896if ${ac_cv_prog_OTOOL64+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 if test -n "$OTOOL64"; then 6900 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6901else 6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6903for as_dir in $PATH 6904do 6905 IFS=$as_save_IFS 6906 test -z "$as_dir" && as_dir=. 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6909 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6911 break 2 6912 fi 6913done 6914 done 6915IFS=$as_save_IFS 6916 6917fi 6918fi 6919OTOOL64=$ac_cv_prog_OTOOL64 6920if test -n "$OTOOL64"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6922$as_echo "$OTOOL64" >&6; } 6923else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925$as_echo "no" >&6; } 6926fi 6927 6928 6929fi 6930if test -z "$ac_cv_prog_OTOOL64"; then 6931 ac_ct_OTOOL64=$OTOOL64 6932 # Extract the first word of "otool64", so it can be a program name with args. 6933set dummy otool64; ac_word=$2 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6935$as_echo_n "checking for $ac_word... " >&6; } 6936if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 if test -n "$ac_ct_OTOOL64"; then 6940 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6941else 6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6949 ac_cv_prog_ac_ct_OTOOL64="otool64" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi 6958fi 6959ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6960if test -n "$ac_ct_OTOOL64"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6962$as_echo "$ac_ct_OTOOL64" >&6; } 6963else 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965$as_echo "no" >&6; } 6966fi 6967 6968 if test "x$ac_ct_OTOOL64" = x; then 6969 OTOOL64=":" 6970 else 6971 case $cross_compiling:$ac_tool_warned in 6972yes:) 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6975ac_tool_warned=yes ;; 6976esac 6977 OTOOL64=$ac_ct_OTOOL64 6978 fi 6979else 6980 OTOOL64="$ac_cv_prog_OTOOL64" 6981fi 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7010$as_echo_n "checking for -single_module linker flag... " >&6; } 7011if ${lt_cv_apple_cc_single_mod+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 lt_cv_apple_cc_single_mod=no 7015 if test -z "${LT_MULTI_MODULE}"; then 7016 # By default we will add the -single_module flag. You can override 7017 # by either setting the environment variable LT_MULTI_MODULE 7018 # non-empty at configure time, or by adding -multi_module to the 7019 # link flags. 7020 rm -rf libconftest.dylib* 7021 echo "int foo(void){return 1;}" > conftest.c 7022 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7023-dynamiclib -Wl,-single_module conftest.c" >&5 7024 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7025 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7026 _lt_result=$? 7027 # If there is a non-empty error log, and "single_module" 7028 # appears in it, assume the flag caused a linker warning 7029 if test -s conftest.err && $GREP single_module conftest.err; then 7030 cat conftest.err >&5 7031 # Otherwise, if the output was created with a 0 exit code from 7032 # the compiler, it worked. 7033 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7034 lt_cv_apple_cc_single_mod=yes 7035 else 7036 cat conftest.err >&5 7037 fi 7038 rm -rf libconftest.dylib* 7039 rm -f conftest.* 7040 fi 7041fi 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7043$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7044 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7046$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7047if ${lt_cv_ld_exported_symbols_list+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 lt_cv_ld_exported_symbols_list=no 7051 save_LDFLAGS=$LDFLAGS 7052 echo "_main" > conftest.sym 7053 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055/* end confdefs.h. */ 7056 7057int 7058main () 7059{ 7060 7061 ; 7062 return 0; 7063} 7064_ACEOF 7065if ac_fn_c_try_link "$LINENO"; then : 7066 lt_cv_ld_exported_symbols_list=yes 7067else 7068 lt_cv_ld_exported_symbols_list=no 7069fi 7070rm -f core conftest.err conftest.$ac_objext \ 7071 conftest$ac_exeext conftest.$ac_ext 7072 LDFLAGS="$save_LDFLAGS" 7073 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7076$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7077 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7079$as_echo_n "checking for -force_load linker flag... " >&6; } 7080if ${lt_cv_ld_force_load+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 lt_cv_ld_force_load=no 7084 cat > conftest.c << _LT_EOF 7085int forced_loaded() { return 2;} 7086_LT_EOF 7087 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7088 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7089 echo "$AR cru libconftest.a conftest.o" >&5 7090 $AR cru libconftest.a conftest.o 2>&5 7091 echo "$RANLIB libconftest.a" >&5 7092 $RANLIB libconftest.a 2>&5 7093 cat > conftest.c << _LT_EOF 7094int main() { return 0;} 7095_LT_EOF 7096 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7097 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7098 _lt_result=$? 7099 if test -s conftest.err && $GREP force_load conftest.err; then 7100 cat conftest.err >&5 7101 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7102 lt_cv_ld_force_load=yes 7103 else 7104 cat conftest.err >&5 7105 fi 7106 rm -f conftest.err libconftest.a conftest conftest.c 7107 rm -rf conftest.dSYM 7108 7109fi 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7111$as_echo "$lt_cv_ld_force_load" >&6; } 7112 case $host_os in 7113 rhapsody* | darwin1.[012]) 7114 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7115 darwin1.*) 7116 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7117 darwin*) # darwin 5.x on 7118 # if running on 10.5 or later, the deployment target defaults 7119 # to the OS version, if on x86, and 10.4, the deployment 7120 # target defaults to 10.4. Don't you love it? 7121 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7122 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7123 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7124 10.[012]*) 7125 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7126 10.*) 7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7128 esac 7129 ;; 7130 esac 7131 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7132 _lt_dar_single_mod='$single_module' 7133 fi 7134 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7135 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7136 else 7137 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7138 fi 7139 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7140 _lt_dsymutil='~$DSYMUTIL $lib || :' 7141 else 7142 _lt_dsymutil= 7143 fi 7144 ;; 7145 esac 7146 7147ac_ext=c 7148ac_cpp='$CPP $CPPFLAGS' 7149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7151ac_compiler_gnu=$ac_cv_c_compiler_gnu 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7153$as_echo_n "checking how to run the C preprocessor... " >&6; } 7154# On Suns, sometimes $CPP names a directory. 7155if test -n "$CPP" && test -d "$CPP"; then 7156 CPP= 7157fi 7158if test -z "$CPP"; then 7159 if ${ac_cv_prog_CPP+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161else 7162 # Double quotes because CPP needs to be expanded 7163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7164 do 7165 ac_preproc_ok=false 7166for ac_c_preproc_warn_flag in '' yes 7167do 7168 # Use a header file that comes with gcc, so configuring glibc 7169 # with a fresh cross-compiler works. 7170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7171 # <limits.h> exists even on freestanding compilers. 7172 # On the NeXT, cc -E runs the code through the compiler's parser, 7173 # not just through cpp. "Syntax error" is here to catch this case. 7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7175/* end confdefs.h. */ 7176#ifdef __STDC__ 7177# include <limits.h> 7178#else 7179# include <assert.h> 7180#endif 7181 Syntax error 7182_ACEOF 7183if ac_fn_c_try_cpp "$LINENO"; then : 7184 7185else 7186 # Broken: fails on valid input. 7187continue 7188fi 7189rm -f conftest.err conftest.i conftest.$ac_ext 7190 7191 # OK, works on sane cases. Now check whether nonexistent headers 7192 # can be detected and how. 7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194/* end confdefs.h. */ 7195#include <ac_nonexistent.h> 7196_ACEOF 7197if ac_fn_c_try_cpp "$LINENO"; then : 7198 # Broken: success on invalid input. 7199continue 7200else 7201 # Passes both tests. 7202ac_preproc_ok=: 7203break 7204fi 7205rm -f conftest.err conftest.i conftest.$ac_ext 7206 7207done 7208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7209rm -f conftest.i conftest.err conftest.$ac_ext 7210if $ac_preproc_ok; then : 7211 break 7212fi 7213 7214 done 7215 ac_cv_prog_CPP=$CPP 7216 7217fi 7218 CPP=$ac_cv_prog_CPP 7219else 7220 ac_cv_prog_CPP=$CPP 7221fi 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7223$as_echo "$CPP" >&6; } 7224ac_preproc_ok=false 7225for ac_c_preproc_warn_flag in '' yes 7226do 7227 # Use a header file that comes with gcc, so configuring glibc 7228 # with a fresh cross-compiler works. 7229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7230 # <limits.h> exists even on freestanding compilers. 7231 # On the NeXT, cc -E runs the code through the compiler's parser, 7232 # not just through cpp. "Syntax error" is here to catch this case. 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235#ifdef __STDC__ 7236# include <limits.h> 7237#else 7238# include <assert.h> 7239#endif 7240 Syntax error 7241_ACEOF 7242if ac_fn_c_try_cpp "$LINENO"; then : 7243 7244else 7245 # Broken: fails on valid input. 7246continue 7247fi 7248rm -f conftest.err conftest.i conftest.$ac_ext 7249 7250 # OK, works on sane cases. Now check whether nonexistent headers 7251 # can be detected and how. 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254#include <ac_nonexistent.h> 7255_ACEOF 7256if ac_fn_c_try_cpp "$LINENO"; then : 7257 # Broken: success on invalid input. 7258continue 7259else 7260 # Passes both tests. 7261ac_preproc_ok=: 7262break 7263fi 7264rm -f conftest.err conftest.i conftest.$ac_ext 7265 7266done 7267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7268rm -f conftest.i conftest.err conftest.$ac_ext 7269if $ac_preproc_ok; then : 7270 7271else 7272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7274as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7275See \`config.log' for more details" "$LINENO" 5; } 7276fi 7277 7278ac_ext=c 7279ac_cpp='$CPP $CPPFLAGS' 7280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7282ac_compiler_gnu=$ac_cv_c_compiler_gnu 7283 7284 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7286$as_echo_n "checking for ANSI C header files... " >&6; } 7287if ${ac_cv_header_stdc+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291/* end confdefs.h. */ 7292#include <stdlib.h> 7293#include <stdarg.h> 7294#include <string.h> 7295#include <float.h> 7296 7297int 7298main () 7299{ 7300 7301 ; 7302 return 0; 7303} 7304_ACEOF 7305if ac_fn_c_try_compile "$LINENO"; then : 7306 ac_cv_header_stdc=yes 7307else 7308 ac_cv_header_stdc=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7311 7312if test $ac_cv_header_stdc = yes; then 7313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316#include <string.h> 7317 7318_ACEOF 7319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7320 $EGREP "memchr" >/dev/null 2>&1; then : 7321 7322else 7323 ac_cv_header_stdc=no 7324fi 7325rm -f conftest* 7326 7327fi 7328 7329if test $ac_cv_header_stdc = yes; then 7330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333#include <stdlib.h> 7334 7335_ACEOF 7336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7337 $EGREP "free" >/dev/null 2>&1; then : 7338 7339else 7340 ac_cv_header_stdc=no 7341fi 7342rm -f conftest* 7343 7344fi 7345 7346if test $ac_cv_header_stdc = yes; then 7347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7348 if test "$cross_compiling" = yes; then : 7349 : 7350else 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353#include <ctype.h> 7354#include <stdlib.h> 7355#if ((' ' & 0x0FF) == 0x020) 7356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7358#else 7359# define ISLOWER(c) \ 7360 (('a' <= (c) && (c) <= 'i') \ 7361 || ('j' <= (c) && (c) <= 'r') \ 7362 || ('s' <= (c) && (c) <= 'z')) 7363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7364#endif 7365 7366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7367int 7368main () 7369{ 7370 int i; 7371 for (i = 0; i < 256; i++) 7372 if (XOR (islower (i), ISLOWER (i)) 7373 || toupper (i) != TOUPPER (i)) 7374 return 2; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_run "$LINENO"; then : 7379 7380else 7381 ac_cv_header_stdc=no 7382fi 7383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7384 conftest.$ac_objext conftest.beam conftest.$ac_ext 7385fi 7386 7387fi 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7390$as_echo "$ac_cv_header_stdc" >&6; } 7391if test $ac_cv_header_stdc = yes; then 7392 7393$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7394 7395fi 7396 7397# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7399 inttypes.h stdint.h unistd.h 7400do : 7401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7402ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7403" 7404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7405 cat >>confdefs.h <<_ACEOF 7406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7407_ACEOF 7408 7409fi 7410 7411done 7412 7413 7414for ac_header in dlfcn.h 7415do : 7416 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7417" 7418if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7419 cat >>confdefs.h <<_ACEOF 7420#define HAVE_DLFCN_H 1 7421_ACEOF 7422 7423fi 7424 7425done 7426 7427 7428 7429 7430 7431# Set options 7432 7433 7434 7435 enable_dlopen=no 7436 7437 7438 enable_win32_dll=no 7439 7440 7441 # Check whether --enable-shared was given. 7442if test "${enable_shared+set}" = set; then : 7443 enableval=$enable_shared; p=${PACKAGE-default} 7444 case $enableval in 7445 yes) enable_shared=yes ;; 7446 no) enable_shared=no ;; 7447 *) 7448 enable_shared=no 7449 # Look at the argument we got. We use all the common list separators. 7450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7451 for pkg in $enableval; do 7452 IFS="$lt_save_ifs" 7453 if test "X$pkg" = "X$p"; then 7454 enable_shared=yes 7455 fi 7456 done 7457 IFS="$lt_save_ifs" 7458 ;; 7459 esac 7460else 7461 enable_shared=yes 7462fi 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 # Check whether --enable-static was given. 7473if test "${enable_static+set}" = set; then : 7474 enableval=$enable_static; p=${PACKAGE-default} 7475 case $enableval in 7476 yes) enable_static=yes ;; 7477 no) enable_static=no ;; 7478 *) 7479 enable_static=no 7480 # Look at the argument we got. We use all the common list separators. 7481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7482 for pkg in $enableval; do 7483 IFS="$lt_save_ifs" 7484 if test "X$pkg" = "X$p"; then 7485 enable_static=yes 7486 fi 7487 done 7488 IFS="$lt_save_ifs" 7489 ;; 7490 esac 7491else 7492 enable_static=yes 7493fi 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504# Check whether --with-pic was given. 7505if test "${with_pic+set}" = set; then : 7506 withval=$with_pic; lt_p=${PACKAGE-default} 7507 case $withval in 7508 yes|no) pic_mode=$withval ;; 7509 *) 7510 pic_mode=default 7511 # Look at the argument we got. We use all the common list separators. 7512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7513 for lt_pkg in $withval; do 7514 IFS="$lt_save_ifs" 7515 if test "X$lt_pkg" = "X$lt_p"; then 7516 pic_mode=yes 7517 fi 7518 done 7519 IFS="$lt_save_ifs" 7520 ;; 7521 esac 7522else 7523 pic_mode=default 7524fi 7525 7526 7527test -z "$pic_mode" && pic_mode=default 7528 7529 7530 7531 7532 7533 7534 7535 # Check whether --enable-fast-install was given. 7536if test "${enable_fast_install+set}" = set; then : 7537 enableval=$enable_fast_install; p=${PACKAGE-default} 7538 case $enableval in 7539 yes) enable_fast_install=yes ;; 7540 no) enable_fast_install=no ;; 7541 *) 7542 enable_fast_install=no 7543 # Look at the argument we got. We use all the common list separators. 7544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7545 for pkg in $enableval; do 7546 IFS="$lt_save_ifs" 7547 if test "X$pkg" = "X$p"; then 7548 enable_fast_install=yes 7549 fi 7550 done 7551 IFS="$lt_save_ifs" 7552 ;; 7553 esac 7554else 7555 enable_fast_install=yes 7556fi 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568# This can be used to rebuild libtool when needed 7569LIBTOOL_DEPS="$ltmain" 7570 7571# Always use our own libtool. 7572LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603test -z "$LN_S" && LN_S="ln -s" 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618if test -n "${ZSH_VERSION+set}" ; then 7619 setopt NO_GLOB_SUBST 7620fi 7621 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7623$as_echo_n "checking for objdir... " >&6; } 7624if ${lt_cv_objdir+:} false; then : 7625 $as_echo_n "(cached) " >&6 7626else 7627 rm -f .libs 2>/dev/null 7628mkdir .libs 2>/dev/null 7629if test -d .libs; then 7630 lt_cv_objdir=.libs 7631else 7632 # MS-DOS does not allow filenames that begin with a dot. 7633 lt_cv_objdir=_libs 7634fi 7635rmdir .libs 2>/dev/null 7636fi 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7638$as_echo "$lt_cv_objdir" >&6; } 7639objdir=$lt_cv_objdir 7640 7641 7642 7643 7644 7645cat >>confdefs.h <<_ACEOF 7646#define LT_OBJDIR "$lt_cv_objdir/" 7647_ACEOF 7648 7649 7650 7651 7652case $host_os in 7653aix3*) 7654 # AIX sometimes has problems with the GCC collect2 program. For some 7655 # reason, if we set the COLLECT_NAMES environment variable, the problems 7656 # vanish in a puff of smoke. 7657 if test "X${COLLECT_NAMES+set}" != Xset; then 7658 COLLECT_NAMES= 7659 export COLLECT_NAMES 7660 fi 7661 ;; 7662esac 7663 7664# Global variables: 7665ofile=libtool 7666can_build_shared=yes 7667 7668# All known linkers require a `.a' archive for static linking (except MSVC, 7669# which needs '.lib'). 7670libext=a 7671 7672with_gnu_ld="$lt_cv_prog_gnu_ld" 7673 7674old_CC="$CC" 7675old_CFLAGS="$CFLAGS" 7676 7677# Set sane defaults for various variables 7678test -z "$CC" && CC=cc 7679test -z "$LTCC" && LTCC=$CC 7680test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7681test -z "$LD" && LD=ld 7682test -z "$ac_objext" && ac_objext=o 7683 7684for cc_temp in $compiler""; do 7685 case $cc_temp in 7686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7688 \-*) ;; 7689 *) break;; 7690 esac 7691done 7692cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7693 7694 7695# Only perform the check for file, if the check method requires it 7696test -z "$MAGIC_CMD" && MAGIC_CMD=file 7697case $deplibs_check_method in 7698file_magic*) 7699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7701$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7702if ${lt_cv_path_MAGIC_CMD+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 case $MAGIC_CMD in 7706[\\/*] | ?:[\\/]*) 7707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7708 ;; 7709*) 7710 lt_save_MAGIC_CMD="$MAGIC_CMD" 7711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7713 for ac_dir in $ac_dummy; do 7714 IFS="$lt_save_ifs" 7715 test -z "$ac_dir" && ac_dir=. 7716 if test -f $ac_dir/${ac_tool_prefix}file; then 7717 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7718 if test -n "$file_magic_test_file"; then 7719 case $deplibs_check_method in 7720 "file_magic "*) 7721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7724 $EGREP "$file_magic_regex" > /dev/null; then 7725 : 7726 else 7727 cat <<_LT_EOF 1>&2 7728 7729*** Warning: the command libtool uses to detect shared libraries, 7730*** $file_magic_cmd, produces output that libtool cannot recognize. 7731*** The result is that libtool may fail to recognize shared libraries 7732*** as such. This will affect the creation of libtool libraries that 7733*** depend on shared libraries, but programs linked with such libtool 7734*** libraries will work regardless of this problem. Nevertheless, you 7735*** may want to report the problem to your system manager and/or to 7736*** bug-libtool@gnu.org 7737 7738_LT_EOF 7739 fi ;; 7740 esac 7741 fi 7742 break 7743 fi 7744 done 7745 IFS="$lt_save_ifs" 7746 MAGIC_CMD="$lt_save_MAGIC_CMD" 7747 ;; 7748esac 7749fi 7750 7751MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7752if test -n "$MAGIC_CMD"; then 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7754$as_echo "$MAGIC_CMD" >&6; } 7755else 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7757$as_echo "no" >&6; } 7758fi 7759 7760 7761 7762 7763 7764if test -z "$lt_cv_path_MAGIC_CMD"; then 7765 if test -n "$ac_tool_prefix"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7767$as_echo_n "checking for file... " >&6; } 7768if ${lt_cv_path_MAGIC_CMD+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 case $MAGIC_CMD in 7772[\\/*] | ?:[\\/]*) 7773 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7774 ;; 7775*) 7776 lt_save_MAGIC_CMD="$MAGIC_CMD" 7777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7779 for ac_dir in $ac_dummy; do 7780 IFS="$lt_save_ifs" 7781 test -z "$ac_dir" && ac_dir=. 7782 if test -f $ac_dir/file; then 7783 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7784 if test -n "$file_magic_test_file"; then 7785 case $deplibs_check_method in 7786 "file_magic "*) 7787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7790 $EGREP "$file_magic_regex" > /dev/null; then 7791 : 7792 else 7793 cat <<_LT_EOF 1>&2 7794 7795*** Warning: the command libtool uses to detect shared libraries, 7796*** $file_magic_cmd, produces output that libtool cannot recognize. 7797*** The result is that libtool may fail to recognize shared libraries 7798*** as such. This will affect the creation of libtool libraries that 7799*** depend on shared libraries, but programs linked with such libtool 7800*** libraries will work regardless of this problem. Nevertheless, you 7801*** may want to report the problem to your system manager and/or to 7802*** bug-libtool@gnu.org 7803 7804_LT_EOF 7805 fi ;; 7806 esac 7807 fi 7808 break 7809 fi 7810 done 7811 IFS="$lt_save_ifs" 7812 MAGIC_CMD="$lt_save_MAGIC_CMD" 7813 ;; 7814esac 7815fi 7816 7817MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7818if test -n "$MAGIC_CMD"; then 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7820$as_echo "$MAGIC_CMD" >&6; } 7821else 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7823$as_echo "no" >&6; } 7824fi 7825 7826 7827 else 7828 MAGIC_CMD=: 7829 fi 7830fi 7831 7832 fi 7833 ;; 7834esac 7835 7836# Use C for the default configuration in the libtool script 7837 7838lt_save_CC="$CC" 7839ac_ext=c 7840ac_cpp='$CPP $CPPFLAGS' 7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7843ac_compiler_gnu=$ac_cv_c_compiler_gnu 7844 7845 7846# Source file extension for C test sources. 7847ac_ext=c 7848 7849# Object file extension for compiled C test sources. 7850objext=o 7851objext=$objext 7852 7853# Code to be used in simple compile tests 7854lt_simple_compile_test_code="int some_variable = 0;" 7855 7856# Code to be used in simple link tests 7857lt_simple_link_test_code='int main(){return(0);}' 7858 7859 7860 7861 7862 7863 7864 7865# If no C compiler was specified, use CC. 7866LTCC=${LTCC-"$CC"} 7867 7868# If no C compiler flags were specified, use CFLAGS. 7869LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7870 7871# Allow CC to be a program name with arguments. 7872compiler=$CC 7873 7874# Save the default compiler, since it gets overwritten when the other 7875# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7876compiler_DEFAULT=$CC 7877 7878# save warnings/boilerplate of simple test code 7879ac_outfile=conftest.$ac_objext 7880echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7882_lt_compiler_boilerplate=`cat conftest.err` 7883$RM conftest* 7884 7885ac_outfile=conftest.$ac_objext 7886echo "$lt_simple_link_test_code" >conftest.$ac_ext 7887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7888_lt_linker_boilerplate=`cat conftest.err` 7889$RM -r conftest* 7890 7891 7892if test -n "$compiler"; then 7893 7894lt_prog_compiler_no_builtin_flag= 7895 7896if test "$GCC" = yes; then 7897 case $cc_basename in 7898 nvcc*) 7899 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7900 *) 7901 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7902 esac 7903 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7905$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7906if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908else 7909 lt_cv_prog_compiler_rtti_exceptions=no 7910 ac_outfile=conftest.$ac_objext 7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7912 lt_compiler_flag="-fno-rtti -fno-exceptions" 7913 # Insert the option either (1) after the last *FLAGS variable, or 7914 # (2) before a word containing "conftest.", or (3) at the end. 7915 # Note that $ac_compile itself does not contain backslashes and begins 7916 # with a dollar sign (not a hyphen), so the echo should work correctly. 7917 # The option is referenced via a variable to avoid confusing sed. 7918 lt_compile=`echo "$ac_compile" | $SED \ 7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7921 -e 's:$: $lt_compiler_flag:'` 7922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7923 (eval "$lt_compile" 2>conftest.err) 7924 ac_status=$? 7925 cat conftest.err >&5 7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7927 if (exit $ac_status) && test -s "$ac_outfile"; then 7928 # The compiler can only warn and ignore the option if not recognized 7929 # So say no if there are warnings other than the usual output. 7930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7933 lt_cv_prog_compiler_rtti_exceptions=yes 7934 fi 7935 fi 7936 $RM conftest* 7937 7938fi 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7940$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7941 7942if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7944else 7945 : 7946fi 7947 7948fi 7949 7950 7951 7952 7953 7954 7955 lt_prog_compiler_wl= 7956lt_prog_compiler_pic= 7957lt_prog_compiler_static= 7958 7959 7960 if test "$GCC" = yes; then 7961 lt_prog_compiler_wl='-Wl,' 7962 lt_prog_compiler_static='-static' 7963 7964 case $host_os in 7965 aix*) 7966 # All AIX code is PIC. 7967 if test "$host_cpu" = ia64; then 7968 # AIX 5 now supports IA64 processor 7969 lt_prog_compiler_static='-Bstatic' 7970 fi 7971 ;; 7972 7973 amigaos*) 7974 case $host_cpu in 7975 powerpc) 7976 # see comment about AmigaOS4 .so support 7977 lt_prog_compiler_pic='-fPIC' 7978 ;; 7979 m68k) 7980 # FIXME: we need at least 68020 code to build shared libraries, but 7981 # adding the `-m68020' flag to GCC prevents building anything better, 7982 # like `-m68040'. 7983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7984 ;; 7985 esac 7986 ;; 7987 7988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7989 # PIC is the default for these OSes. 7990 ;; 7991 7992 mingw* | cygwin* | pw32* | os2* | cegcc*) 7993 # This hack is so that the source file can tell whether it is being 7994 # built for inclusion in a dll (and should export symbols for example). 7995 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7996 # (--disable-auto-import) libraries 7997 lt_prog_compiler_pic='-DDLL_EXPORT' 7998 ;; 7999 8000 darwin* | rhapsody*) 8001 # PIC is the default on this platform 8002 # Common symbols not allowed in MH_DYLIB files 8003 lt_prog_compiler_pic='-fno-common' 8004 ;; 8005 8006 haiku*) 8007 # PIC is the default for Haiku. 8008 # The "-static" flag exists, but is broken. 8009 lt_prog_compiler_static= 8010 ;; 8011 8012 hpux*) 8013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8015 # sets the default TLS model and affects inlining. 8016 case $host_cpu in 8017 hppa*64*) 8018 # +Z the default 8019 ;; 8020 *) 8021 lt_prog_compiler_pic='-fPIC' 8022 ;; 8023 esac 8024 ;; 8025 8026 interix[3-9]*) 8027 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8028 # Instead, we relocate shared libraries at runtime. 8029 ;; 8030 8031 msdosdjgpp*) 8032 # Just because we use GCC doesn't mean we suddenly get shared libraries 8033 # on systems that don't support them. 8034 lt_prog_compiler_can_build_shared=no 8035 enable_shared=no 8036 ;; 8037 8038 *nto* | *qnx*) 8039 # QNX uses GNU C++, but need to define -shared option too, otherwise 8040 # it will coredump. 8041 lt_prog_compiler_pic='-fPIC -shared' 8042 ;; 8043 8044 sysv4*MP*) 8045 if test -d /usr/nec; then 8046 lt_prog_compiler_pic=-Kconform_pic 8047 fi 8048 ;; 8049 8050 *) 8051 lt_prog_compiler_pic='-fPIC' 8052 ;; 8053 esac 8054 8055 case $cc_basename in 8056 nvcc*) # Cuda Compiler Driver 2.2 8057 lt_prog_compiler_wl='-Xlinker ' 8058 if test -n "$lt_prog_compiler_pic"; then 8059 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8060 fi 8061 ;; 8062 esac 8063 else 8064 # PORTME Check for flag to pass linker flags through the system compiler. 8065 case $host_os in 8066 aix*) 8067 lt_prog_compiler_wl='-Wl,' 8068 if test "$host_cpu" = ia64; then 8069 # AIX 5 now supports IA64 processor 8070 lt_prog_compiler_static='-Bstatic' 8071 else 8072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8073 fi 8074 ;; 8075 8076 mingw* | cygwin* | pw32* | os2* | cegcc*) 8077 # This hack is so that the source file can tell whether it is being 8078 # built for inclusion in a dll (and should export symbols for example). 8079 lt_prog_compiler_pic='-DDLL_EXPORT' 8080 ;; 8081 8082 hpux9* | hpux10* | hpux11*) 8083 lt_prog_compiler_wl='-Wl,' 8084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8085 # not for PA HP-UX. 8086 case $host_cpu in 8087 hppa*64*|ia64*) 8088 # +Z the default 8089 ;; 8090 *) 8091 lt_prog_compiler_pic='+Z' 8092 ;; 8093 esac 8094 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8095 lt_prog_compiler_static='${wl}-a ${wl}archive' 8096 ;; 8097 8098 irix5* | irix6* | nonstopux*) 8099 lt_prog_compiler_wl='-Wl,' 8100 # PIC (with -KPIC) is the default. 8101 lt_prog_compiler_static='-non_shared' 8102 ;; 8103 8104 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8105 case $cc_basename in 8106 # old Intel for x86_64 which still supported -KPIC. 8107 ecc*) 8108 lt_prog_compiler_wl='-Wl,' 8109 lt_prog_compiler_pic='-KPIC' 8110 lt_prog_compiler_static='-static' 8111 ;; 8112 # icc used to be incompatible with GCC. 8113 # ICC 10 doesn't accept -KPIC any more. 8114 icc* | ifort*) 8115 lt_prog_compiler_wl='-Wl,' 8116 lt_prog_compiler_pic='-fPIC' 8117 lt_prog_compiler_static='-static' 8118 ;; 8119 # Lahey Fortran 8.1. 8120 lf95*) 8121 lt_prog_compiler_wl='-Wl,' 8122 lt_prog_compiler_pic='--shared' 8123 lt_prog_compiler_static='--static' 8124 ;; 8125 nagfor*) 8126 # NAG Fortran compiler 8127 lt_prog_compiler_wl='-Wl,-Wl,,' 8128 lt_prog_compiler_pic='-PIC' 8129 lt_prog_compiler_static='-Bstatic' 8130 ;; 8131 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8132 # Portland Group compilers (*not* the Pentium gcc compiler, 8133 # which looks to be a dead project) 8134 lt_prog_compiler_wl='-Wl,' 8135 lt_prog_compiler_pic='-fpic' 8136 lt_prog_compiler_static='-Bstatic' 8137 ;; 8138 ccc*) 8139 lt_prog_compiler_wl='-Wl,' 8140 # All Alpha code is PIC. 8141 lt_prog_compiler_static='-non_shared' 8142 ;; 8143 xl* | bgxl* | bgf* | mpixl*) 8144 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8145 lt_prog_compiler_wl='-Wl,' 8146 lt_prog_compiler_pic='-qpic' 8147 lt_prog_compiler_static='-qstaticlink' 8148 ;; 8149 *) 8150 case `$CC -V 2>&1 | sed 5q` in 8151 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8152 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8153 lt_prog_compiler_pic='-KPIC' 8154 lt_prog_compiler_static='-Bstatic' 8155 lt_prog_compiler_wl='' 8156 ;; 8157 *Sun\ F* | *Sun*Fortran*) 8158 lt_prog_compiler_pic='-KPIC' 8159 lt_prog_compiler_static='-Bstatic' 8160 lt_prog_compiler_wl='-Qoption ld ' 8161 ;; 8162 *Sun\ C*) 8163 # Sun C 5.9 8164 lt_prog_compiler_pic='-KPIC' 8165 lt_prog_compiler_static='-Bstatic' 8166 lt_prog_compiler_wl='-Wl,' 8167 ;; 8168 *Intel*\ [CF]*Compiler*) 8169 lt_prog_compiler_wl='-Wl,' 8170 lt_prog_compiler_pic='-fPIC' 8171 lt_prog_compiler_static='-static' 8172 ;; 8173 *Portland\ Group*) 8174 lt_prog_compiler_wl='-Wl,' 8175 lt_prog_compiler_pic='-fpic' 8176 lt_prog_compiler_static='-Bstatic' 8177 ;; 8178 esac 8179 ;; 8180 esac 8181 ;; 8182 8183 newsos6) 8184 lt_prog_compiler_pic='-KPIC' 8185 lt_prog_compiler_static='-Bstatic' 8186 ;; 8187 8188 *nto* | *qnx*) 8189 # QNX uses GNU C++, but need to define -shared option too, otherwise 8190 # it will coredump. 8191 lt_prog_compiler_pic='-fPIC -shared' 8192 ;; 8193 8194 osf3* | osf4* | osf5*) 8195 lt_prog_compiler_wl='-Wl,' 8196 # All OSF/1 code is PIC. 8197 lt_prog_compiler_static='-non_shared' 8198 ;; 8199 8200 rdos*) 8201 lt_prog_compiler_static='-non_shared' 8202 ;; 8203 8204 solaris*) 8205 lt_prog_compiler_pic='-KPIC' 8206 lt_prog_compiler_static='-Bstatic' 8207 case $cc_basename in 8208 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8209 lt_prog_compiler_wl='-Qoption ld ';; 8210 *) 8211 lt_prog_compiler_wl='-Wl,';; 8212 esac 8213 ;; 8214 8215 sunos4*) 8216 lt_prog_compiler_wl='-Qoption ld ' 8217 lt_prog_compiler_pic='-PIC' 8218 lt_prog_compiler_static='-Bstatic' 8219 ;; 8220 8221 sysv4 | sysv4.2uw2* | sysv4.3*) 8222 lt_prog_compiler_wl='-Wl,' 8223 lt_prog_compiler_pic='-KPIC' 8224 lt_prog_compiler_static='-Bstatic' 8225 ;; 8226 8227 sysv4*MP*) 8228 if test -d /usr/nec ;then 8229 lt_prog_compiler_pic='-Kconform_pic' 8230 lt_prog_compiler_static='-Bstatic' 8231 fi 8232 ;; 8233 8234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8235 lt_prog_compiler_wl='-Wl,' 8236 lt_prog_compiler_pic='-KPIC' 8237 lt_prog_compiler_static='-Bstatic' 8238 ;; 8239 8240 unicos*) 8241 lt_prog_compiler_wl='-Wl,' 8242 lt_prog_compiler_can_build_shared=no 8243 ;; 8244 8245 uts4*) 8246 lt_prog_compiler_pic='-pic' 8247 lt_prog_compiler_static='-Bstatic' 8248 ;; 8249 8250 *) 8251 lt_prog_compiler_can_build_shared=no 8252 ;; 8253 esac 8254 fi 8255 8256case $host_os in 8257 # For platforms which do not support PIC, -DPIC is meaningless: 8258 *djgpp*) 8259 lt_prog_compiler_pic= 8260 ;; 8261 *) 8262 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8263 ;; 8264esac 8265 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8267$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8268if ${lt_cv_prog_compiler_pic+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8272fi 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8274$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8275lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8276 8277# 8278# Check to make sure the PIC flag actually works. 8279# 8280if test -n "$lt_prog_compiler_pic"; then 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8282$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8283if ${lt_cv_prog_compiler_pic_works+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 lt_cv_prog_compiler_pic_works=no 8287 ac_outfile=conftest.$ac_objext 8288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8289 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8290 # Insert the option either (1) after the last *FLAGS variable, or 8291 # (2) before a word containing "conftest.", or (3) at the end. 8292 # Note that $ac_compile itself does not contain backslashes and begins 8293 # with a dollar sign (not a hyphen), so the echo should work correctly. 8294 # The option is referenced via a variable to avoid confusing sed. 8295 lt_compile=`echo "$ac_compile" | $SED \ 8296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8298 -e 's:$: $lt_compiler_flag:'` 8299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8300 (eval "$lt_compile" 2>conftest.err) 8301 ac_status=$? 8302 cat conftest.err >&5 8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8304 if (exit $ac_status) && test -s "$ac_outfile"; then 8305 # The compiler can only warn and ignore the option if not recognized 8306 # So say no if there are warnings other than the usual output. 8307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8310 lt_cv_prog_compiler_pic_works=yes 8311 fi 8312 fi 8313 $RM conftest* 8314 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8317$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8318 8319if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8320 case $lt_prog_compiler_pic in 8321 "" | " "*) ;; 8322 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8323 esac 8324else 8325 lt_prog_compiler_pic= 8326 lt_prog_compiler_can_build_shared=no 8327fi 8328 8329fi 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341# 8342# Check to make sure the static flag actually works. 8343# 8344wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8346$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8347if ${lt_cv_prog_compiler_static_works+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 lt_cv_prog_compiler_static_works=no 8351 save_LDFLAGS="$LDFLAGS" 8352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8353 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8355 # The linker can only warn and ignore the option if not recognized 8356 # So say no if there are warnings 8357 if test -s conftest.err; then 8358 # Append any errors to the config.log. 8359 cat conftest.err 1>&5 8360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8362 if diff conftest.exp conftest.er2 >/dev/null; then 8363 lt_cv_prog_compiler_static_works=yes 8364 fi 8365 else 8366 lt_cv_prog_compiler_static_works=yes 8367 fi 8368 fi 8369 $RM -r conftest* 8370 LDFLAGS="$save_LDFLAGS" 8371 8372fi 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8374$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8375 8376if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8377 : 8378else 8379 lt_prog_compiler_static= 8380fi 8381 8382 8383 8384 8385 8386 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8389$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8390if ${lt_cv_prog_compiler_c_o+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 lt_cv_prog_compiler_c_o=no 8394 $RM -r conftest 2>/dev/null 8395 mkdir conftest 8396 cd conftest 8397 mkdir out 8398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8399 8400 lt_compiler_flag="-o out/conftest2.$ac_objext" 8401 # Insert the option either (1) after the last *FLAGS variable, or 8402 # (2) before a word containing "conftest.", or (3) at the end. 8403 # Note that $ac_compile itself does not contain backslashes and begins 8404 # with a dollar sign (not a hyphen), so the echo should work correctly. 8405 lt_compile=`echo "$ac_compile" | $SED \ 8406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8408 -e 's:$: $lt_compiler_flag:'` 8409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8410 (eval "$lt_compile" 2>out/conftest.err) 8411 ac_status=$? 8412 cat out/conftest.err >&5 8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8415 then 8416 # The compiler can only warn and ignore the option if not recognized 8417 # So say no if there are warnings 8418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8421 lt_cv_prog_compiler_c_o=yes 8422 fi 8423 fi 8424 chmod u+w . 2>&5 8425 $RM conftest* 8426 # SGI C++ compiler will create directory out/ii_files/ for 8427 # template instantiation 8428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8429 $RM out/* && rmdir out 8430 cd .. 8431 $RM -r conftest 8432 $RM conftest* 8433 8434fi 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8436$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8437 8438 8439 8440 8441 8442 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8444$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8445if ${lt_cv_prog_compiler_c_o+:} false; then : 8446 $as_echo_n "(cached) " >&6 8447else 8448 lt_cv_prog_compiler_c_o=no 8449 $RM -r conftest 2>/dev/null 8450 mkdir conftest 8451 cd conftest 8452 mkdir out 8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8454 8455 lt_compiler_flag="-o out/conftest2.$ac_objext" 8456 # Insert the option either (1) after the last *FLAGS variable, or 8457 # (2) before a word containing "conftest.", or (3) at the end. 8458 # Note that $ac_compile itself does not contain backslashes and begins 8459 # with a dollar sign (not a hyphen), so the echo should work correctly. 8460 lt_compile=`echo "$ac_compile" | $SED \ 8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8463 -e 's:$: $lt_compiler_flag:'` 8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8465 (eval "$lt_compile" 2>out/conftest.err) 8466 ac_status=$? 8467 cat out/conftest.err >&5 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8470 then 8471 # The compiler can only warn and ignore the option if not recognized 8472 # So say no if there are warnings 8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8476 lt_cv_prog_compiler_c_o=yes 8477 fi 8478 fi 8479 chmod u+w . 2>&5 8480 $RM conftest* 8481 # SGI C++ compiler will create directory out/ii_files/ for 8482 # template instantiation 8483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8484 $RM out/* && rmdir out 8485 cd .. 8486 $RM -r conftest 8487 $RM conftest* 8488 8489fi 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8491$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8492 8493 8494 8495 8496hard_links="nottested" 8497if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8498 # do not overwrite the value of need_locks provided by the user 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8500$as_echo_n "checking if we can lock with hard links... " >&6; } 8501 hard_links=yes 8502 $RM conftest* 8503 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8504 touch conftest.a 8505 ln conftest.a conftest.b 2>&5 || hard_links=no 8506 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8508$as_echo "$hard_links" >&6; } 8509 if test "$hard_links" = no; then 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8511$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8512 need_locks=warn 8513 fi 8514else 8515 need_locks=no 8516fi 8517 8518 8519 8520 8521 8522 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8525 8526 runpath_var= 8527 allow_undefined_flag= 8528 always_export_symbols=no 8529 archive_cmds= 8530 archive_expsym_cmds= 8531 compiler_needs_object=no 8532 enable_shared_with_static_runtimes=no 8533 export_dynamic_flag_spec= 8534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8535 hardcode_automatic=no 8536 hardcode_direct=no 8537 hardcode_direct_absolute=no 8538 hardcode_libdir_flag_spec= 8539 hardcode_libdir_separator= 8540 hardcode_minus_L=no 8541 hardcode_shlibpath_var=unsupported 8542 inherit_rpath=no 8543 link_all_deplibs=unknown 8544 module_cmds= 8545 module_expsym_cmds= 8546 old_archive_from_new_cmds= 8547 old_archive_from_expsyms_cmds= 8548 thread_safe_flag_spec= 8549 whole_archive_flag_spec= 8550 # include_expsyms should be a list of space-separated symbols to be *always* 8551 # included in the symbol list 8552 include_expsyms= 8553 # exclude_expsyms can be an extended regexp of symbols to exclude 8554 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8556 # as well as any symbol that contains `d'. 8557 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8559 # platforms (ab)use it in PIC code, but their linkers get confused if 8560 # the symbol is explicitly referenced. Since portable code cannot 8561 # rely on this symbol name, it's probably fine to never include it in 8562 # preloaded symbol tables. 8563 # Exclude shared library initialization/finalization symbols. 8564 extract_expsyms_cmds= 8565 8566 case $host_os in 8567 cygwin* | mingw* | pw32* | cegcc*) 8568 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8569 # When not using gcc, we currently assume that we are using 8570 # Microsoft Visual C++. 8571 if test "$GCC" != yes; then 8572 with_gnu_ld=no 8573 fi 8574 ;; 8575 interix*) 8576 # we just hope/assume this is gcc and not c89 (= MSVC++) 8577 with_gnu_ld=yes 8578 ;; 8579 openbsd*) 8580 with_gnu_ld=no 8581 ;; 8582 esac 8583 8584 ld_shlibs=yes 8585 8586 # On some targets, GNU ld is compatible enough with the native linker 8587 # that we're better off using the native interface for both. 8588 lt_use_gnu_ld_interface=no 8589 if test "$with_gnu_ld" = yes; then 8590 case $host_os in 8591 aix*) 8592 # The AIX port of GNU ld has always aspired to compatibility 8593 # with the native linker. However, as the warning in the GNU ld 8594 # block says, versions before 2.19.5* couldn't really create working 8595 # shared libraries, regardless of the interface used. 8596 case `$LD -v 2>&1` in 8597 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8598 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8599 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8600 *) 8601 lt_use_gnu_ld_interface=yes 8602 ;; 8603 esac 8604 ;; 8605 *) 8606 lt_use_gnu_ld_interface=yes 8607 ;; 8608 esac 8609 fi 8610 8611 if test "$lt_use_gnu_ld_interface" = yes; then 8612 # If archive_cmds runs LD, not CC, wlarc should be empty 8613 wlarc='${wl}' 8614 8615 # Set some defaults for GNU ld with shared library support. These 8616 # are reset later if shared libraries are not supported. Putting them 8617 # here allows them to be overridden if necessary. 8618 runpath_var=LD_RUN_PATH 8619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8620 export_dynamic_flag_spec='${wl}--export-dynamic' 8621 # ancient GNU ld didn't support --whole-archive et. al. 8622 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8624 else 8625 whole_archive_flag_spec= 8626 fi 8627 supports_anon_versioning=no 8628 case `$LD -v 2>&1` in 8629 *GNU\ gold*) supports_anon_versioning=yes ;; 8630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8633 *\ 2.11.*) ;; # other 2.11 versions 8634 *) supports_anon_versioning=yes ;; 8635 esac 8636 8637 # See if GNU ld supports shared libraries. 8638 case $host_os in 8639 aix[3-9]*) 8640 # On AIX/PPC, the GNU linker is very broken 8641 if test "$host_cpu" != ia64; then 8642 ld_shlibs=no 8643 cat <<_LT_EOF 1>&2 8644 8645*** Warning: the GNU linker, at least up to release 2.19, is reported 8646*** to be unable to reliably create shared libraries on AIX. 8647*** Therefore, libtool is disabling shared libraries support. If you 8648*** really care for shared libraries, you may want to install binutils 8649*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8650*** You will then need to restart the configuration process. 8651 8652_LT_EOF 8653 fi 8654 ;; 8655 8656 amigaos*) 8657 case $host_cpu in 8658 powerpc) 8659 # see comment about AmigaOS4 .so support 8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8661 archive_expsym_cmds='' 8662 ;; 8663 m68k) 8664 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)' 8665 hardcode_libdir_flag_spec='-L$libdir' 8666 hardcode_minus_L=yes 8667 ;; 8668 esac 8669 ;; 8670 8671 beos*) 8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8673 allow_undefined_flag=unsupported 8674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8675 # support --undefined. This deserves some investigation. FIXME 8676 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8677 else 8678 ld_shlibs=no 8679 fi 8680 ;; 8681 8682 cygwin* | mingw* | pw32* | cegcc*) 8683 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8684 # as there is no search path for DLLs. 8685 hardcode_libdir_flag_spec='-L$libdir' 8686 export_dynamic_flag_spec='${wl}--export-all-symbols' 8687 allow_undefined_flag=unsupported 8688 always_export_symbols=no 8689 enable_shared_with_static_runtimes=yes 8690 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' 8691 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8692 8693 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8695 # If the export-symbols file already is a .def file (1st line 8696 # is EXPORTS), use it as is; otherwise, prepend... 8697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8698 cp $export_symbols $output_objdir/$soname.def; 8699 else 8700 echo EXPORTS > $output_objdir/$soname.def; 8701 cat $export_symbols >> $output_objdir/$soname.def; 8702 fi~ 8703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8704 else 8705 ld_shlibs=no 8706 fi 8707 ;; 8708 8709 haiku*) 8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8711 link_all_deplibs=yes 8712 ;; 8713 8714 interix[3-9]*) 8715 hardcode_direct=no 8716 hardcode_shlibpath_var=no 8717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8718 export_dynamic_flag_spec='${wl}-E' 8719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8720 # Instead, shared libraries are loaded at an image base (0x10000000 by 8721 # default) and relocated if they conflict, which is a slow very memory 8722 # consuming and fragmenting process. To avoid this, we pick a random, 8723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8724 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8726 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' 8727 ;; 8728 8729 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8730 tmp_diet=no 8731 if test "$host_os" = linux-dietlibc; then 8732 case $cc_basename in 8733 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8734 esac 8735 fi 8736 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8737 && test "$tmp_diet" = no 8738 then 8739 tmp_addflag=' $pic_flag' 8740 tmp_sharedflag='-shared' 8741 case $cc_basename,$host_cpu in 8742 pgcc*) # Portland Group C compiler 8743 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' 8744 tmp_addflag=' $pic_flag' 8745 ;; 8746 pgf77* | pgf90* | pgf95* | pgfortran*) 8747 # Portland Group f77 and f90 compilers 8748 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' 8749 tmp_addflag=' $pic_flag -Mnomain' ;; 8750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8751 tmp_addflag=' -i_dynamic' ;; 8752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8753 tmp_addflag=' -i_dynamic -nofor_main' ;; 8754 ifc* | ifort*) # Intel Fortran compiler 8755 tmp_addflag=' -nofor_main' ;; 8756 lf95*) # Lahey Fortran 8.1 8757 whole_archive_flag_spec= 8758 tmp_sharedflag='--shared' ;; 8759 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8760 tmp_sharedflag='-qmkshrobj' 8761 tmp_addflag= ;; 8762 nvcc*) # Cuda Compiler Driver 2.2 8763 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' 8764 compiler_needs_object=yes 8765 ;; 8766 esac 8767 case `$CC -V 2>&1 | sed 5q` in 8768 *Sun\ C*) # Sun C 5.9 8769 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' 8770 compiler_needs_object=yes 8771 tmp_sharedflag='-G' ;; 8772 *Sun\ F*) # Sun Fortran 8.3 8773 tmp_sharedflag='-G' ;; 8774 esac 8775 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8776 8777 if test "x$supports_anon_versioning" = xyes; then 8778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8780 echo "local: *; };" >> $output_objdir/$libname.ver~ 8781 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8782 fi 8783 8784 case $cc_basename in 8785 xlf* | bgf* | bgxlf* | mpixlf*) 8786 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8787 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8789 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8790 if test "x$supports_anon_versioning" = xyes; then 8791 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8793 echo "local: *; };" >> $output_objdir/$libname.ver~ 8794 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8795 fi 8796 ;; 8797 esac 8798 else 8799 ld_shlibs=no 8800 fi 8801 ;; 8802 8803 netbsd*) 8804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8806 wlarc= 8807 else 8808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8810 fi 8811 ;; 8812 8813 solaris*) 8814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8815 ld_shlibs=no 8816 cat <<_LT_EOF 1>&2 8817 8818*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8819*** create shared libraries on Solaris systems. Therefore, libtool 8820*** is disabling shared libraries support. We urge you to upgrade GNU 8821*** binutils to release 2.9.1 or newer. Another option is to modify 8822*** your PATH or compiler configuration so that the native linker is 8823*** used, and then restart. 8824 8825_LT_EOF 8826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8829 else 8830 ld_shlibs=no 8831 fi 8832 ;; 8833 8834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8835 case `$LD -v 2>&1` in 8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8837 ld_shlibs=no 8838 cat <<_LT_EOF 1>&2 8839 8840*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8841*** reliably create shared libraries on SCO systems. Therefore, libtool 8842*** is disabling shared libraries support. We urge you to upgrade GNU 8843*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8844*** your PATH or compiler configuration so that the native linker is 8845*** used, and then restart. 8846 8847_LT_EOF 8848 ;; 8849 *) 8850 # For security reasons, it is highly recommended that you always 8851 # use absolute paths for naming shared libraries, and exclude the 8852 # DT_RUNPATH tag from executables and libraries. But doing so 8853 # requires that you compile everything twice, which is a pain. 8854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8858 else 8859 ld_shlibs=no 8860 fi 8861 ;; 8862 esac 8863 ;; 8864 8865 sunos4*) 8866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8867 wlarc= 8868 hardcode_direct=yes 8869 hardcode_shlibpath_var=no 8870 ;; 8871 8872 *) 8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8876 else 8877 ld_shlibs=no 8878 fi 8879 ;; 8880 esac 8881 8882 if test "$ld_shlibs" = no; then 8883 runpath_var= 8884 hardcode_libdir_flag_spec= 8885 export_dynamic_flag_spec= 8886 whole_archive_flag_spec= 8887 fi 8888 else 8889 # PORTME fill in a description of your system's linker (not GNU ld) 8890 case $host_os in 8891 aix3*) 8892 allow_undefined_flag=unsupported 8893 always_export_symbols=yes 8894 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' 8895 # Note: this linker hardcodes the directories in LIBPATH if there 8896 # are no directories specified by -L. 8897 hardcode_minus_L=yes 8898 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8899 # Neither direct hardcoding nor static linking is supported with a 8900 # broken collect2. 8901 hardcode_direct=unsupported 8902 fi 8903 ;; 8904 8905 aix[4-9]*) 8906 if test "$host_cpu" = ia64; then 8907 # On IA64, the linker does run time linking by default, so we don't 8908 # have to do anything special. 8909 aix_use_runtimelinking=no 8910 exp_sym_flag='-Bexport' 8911 no_entry_flag="" 8912 else 8913 # If we're using GNU nm, then we don't want the "-C" option. 8914 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8915 # Also, AIX nm treats weak defined symbols like other global 8916 # defined symbols, whereas GNU nm marks them as "W". 8917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8918 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' 8919 else 8920 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' 8921 fi 8922 aix_use_runtimelinking=no 8923 8924 # Test if we are trying to use run time linking or normal 8925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8926 # need to do runtime linking. 8927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8928 for ld_flag in $LDFLAGS; do 8929 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8930 aix_use_runtimelinking=yes 8931 break 8932 fi 8933 done 8934 ;; 8935 esac 8936 8937 exp_sym_flag='-bexport' 8938 no_entry_flag='-bnoentry' 8939 fi 8940 8941 # When large executables or shared objects are built, AIX ld can 8942 # have problems creating the table of contents. If linking a library 8943 # or program results in "error TOC overflow" add -mminimal-toc to 8944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8946 8947 archive_cmds='' 8948 hardcode_direct=yes 8949 hardcode_direct_absolute=yes 8950 hardcode_libdir_separator=':' 8951 link_all_deplibs=yes 8952 file_list_spec='${wl}-f,' 8953 8954 if test "$GCC" = yes; then 8955 case $host_os in aix4.[012]|aix4.[012].*) 8956 # We only want to do this on AIX 4.2 and lower, the check 8957 # below for broken collect2 doesn't work under 4.3+ 8958 collect2name=`${CC} -print-prog-name=collect2` 8959 if test -f "$collect2name" && 8960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8961 then 8962 # We have reworked collect2 8963 : 8964 else 8965 # We have old collect2 8966 hardcode_direct=unsupported 8967 # It fails to find uninstalled libraries when the uninstalled 8968 # path is not listed in the libpath. Setting hardcode_minus_L 8969 # to unsupported forces relinking 8970 hardcode_minus_L=yes 8971 hardcode_libdir_flag_spec='-L$libdir' 8972 hardcode_libdir_separator= 8973 fi 8974 ;; 8975 esac 8976 shared_flag='-shared' 8977 if test "$aix_use_runtimelinking" = yes; then 8978 shared_flag="$shared_flag "'${wl}-G' 8979 fi 8980 else 8981 # not using gcc 8982 if test "$host_cpu" = ia64; then 8983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8984 # chokes on -Wl,-G. The following line is correct: 8985 shared_flag='-G' 8986 else 8987 if test "$aix_use_runtimelinking" = yes; then 8988 shared_flag='${wl}-G' 8989 else 8990 shared_flag='${wl}-bM:SRE' 8991 fi 8992 fi 8993 fi 8994 8995 export_dynamic_flag_spec='${wl}-bexpall' 8996 # It seems that -bexpall does not export symbols beginning with 8997 # underscore (_), so it is better to generate a list of symbols to export. 8998 always_export_symbols=yes 8999 if test "$aix_use_runtimelinking" = yes; then 9000 # Warning - without using the other runtime loading flags (-brtl), 9001 # -berok will link without error, but may produce a broken library. 9002 allow_undefined_flag='-berok' 9003 # Determine the default libpath from the value encoded in an 9004 # empty executable. 9005 if test "${lt_cv_aix_libpath+set}" = set; then 9006 aix_libpath=$lt_cv_aix_libpath 9007else 9008 if ${lt_cv_aix_libpath_+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013 9014int 9015main () 9016{ 9017 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022if ac_fn_c_try_link "$LINENO"; then : 9023 9024 lt_aix_libpath_sed=' 9025 /Import File Strings/,/^$/ { 9026 /^0/ { 9027 s/^0 *\([^ ]*\) *$/\1/ 9028 p 9029 } 9030 }' 9031 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9032 # Check for a 64-bit object if we didn't find anything. 9033 if test -z "$lt_cv_aix_libpath_"; then 9034 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9035 fi 9036fi 9037rm -f core conftest.err conftest.$ac_objext \ 9038 conftest$ac_exeext conftest.$ac_ext 9039 if test -z "$lt_cv_aix_libpath_"; then 9040 lt_cv_aix_libpath_="/usr/lib:/lib" 9041 fi 9042 9043fi 9044 9045 aix_libpath=$lt_cv_aix_libpath_ 9046fi 9047 9048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9049 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" 9050 else 9051 if test "$host_cpu" = ia64; then 9052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9053 allow_undefined_flag="-z nodefs" 9054 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" 9055 else 9056 # Determine the default libpath from the value encoded in an 9057 # empty executable. 9058 if test "${lt_cv_aix_libpath+set}" = set; then 9059 aix_libpath=$lt_cv_aix_libpath 9060else 9061 if ${lt_cv_aix_libpath_+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063else 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9065/* end confdefs.h. */ 9066 9067int 9068main () 9069{ 9070 9071 ; 9072 return 0; 9073} 9074_ACEOF 9075if ac_fn_c_try_link "$LINENO"; then : 9076 9077 lt_aix_libpath_sed=' 9078 /Import File Strings/,/^$/ { 9079 /^0/ { 9080 s/^0 *\([^ ]*\) *$/\1/ 9081 p 9082 } 9083 }' 9084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9085 # Check for a 64-bit object if we didn't find anything. 9086 if test -z "$lt_cv_aix_libpath_"; then 9087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9088 fi 9089fi 9090rm -f core conftest.err conftest.$ac_objext \ 9091 conftest$ac_exeext conftest.$ac_ext 9092 if test -z "$lt_cv_aix_libpath_"; then 9093 lt_cv_aix_libpath_="/usr/lib:/lib" 9094 fi 9095 9096fi 9097 9098 aix_libpath=$lt_cv_aix_libpath_ 9099fi 9100 9101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9102 # Warning - without using the other run time loading flags, 9103 # -berok will link without error, but may produce a broken library. 9104 no_undefined_flag=' ${wl}-bernotok' 9105 allow_undefined_flag=' ${wl}-berok' 9106 if test "$with_gnu_ld" = yes; then 9107 # We only use this code for GNU lds that support --whole-archive. 9108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9109 else 9110 # Exported symbols can be pulled into shared objects from archives 9111 whole_archive_flag_spec='$convenience' 9112 fi 9113 archive_cmds_need_lc=yes 9114 # This is similar to how AIX traditionally builds its shared libraries. 9115 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' 9116 fi 9117 fi 9118 ;; 9119 9120 amigaos*) 9121 case $host_cpu in 9122 powerpc) 9123 # see comment about AmigaOS4 .so support 9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9125 archive_expsym_cmds='' 9126 ;; 9127 m68k) 9128 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)' 9129 hardcode_libdir_flag_spec='-L$libdir' 9130 hardcode_minus_L=yes 9131 ;; 9132 esac 9133 ;; 9134 9135 bsdi[45]*) 9136 export_dynamic_flag_spec=-rdynamic 9137 ;; 9138 9139 cygwin* | mingw* | pw32* | cegcc*) 9140 # When not using gcc, we currently assume that we are using 9141 # Microsoft Visual C++. 9142 # hardcode_libdir_flag_spec is actually meaningless, as there is 9143 # no search path for DLLs. 9144 case $cc_basename in 9145 cl*) 9146 # Native MSVC 9147 hardcode_libdir_flag_spec=' ' 9148 allow_undefined_flag=unsupported 9149 always_export_symbols=yes 9150 file_list_spec='@' 9151 # Tell ltmain to make .lib files, not .a files. 9152 libext=lib 9153 # Tell ltmain to make .dll files, not .so files. 9154 shrext_cmds=".dll" 9155 # FIXME: Setting linknames here is a bad hack. 9156 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9158 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9159 else 9160 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9161 fi~ 9162 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9163 linknames=' 9164 # The linker will not automatically build a static lib if we build a DLL. 9165 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9166 enable_shared_with_static_runtimes=yes 9167 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9169 # Don't use ranlib 9170 old_postinstall_cmds='chmod 644 $oldlib' 9171 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9172 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9173 case $lt_outputfile in 9174 *.exe|*.EXE) ;; 9175 *) 9176 lt_outputfile="$lt_outputfile.exe" 9177 lt_tool_outputfile="$lt_tool_outputfile.exe" 9178 ;; 9179 esac~ 9180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9182 $RM "$lt_outputfile.manifest"; 9183 fi' 9184 ;; 9185 *) 9186 # Assume MSVC wrapper 9187 hardcode_libdir_flag_spec=' ' 9188 allow_undefined_flag=unsupported 9189 # Tell ltmain to make .lib files, not .a files. 9190 libext=lib 9191 # Tell ltmain to make .dll files, not .so files. 9192 shrext_cmds=".dll" 9193 # FIXME: Setting linknames here is a bad hack. 9194 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9195 # The linker will automatically build a .lib file if we build a DLL. 9196 old_archive_from_new_cmds='true' 9197 # FIXME: Should let the user specify the lib program. 9198 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9199 enable_shared_with_static_runtimes=yes 9200 ;; 9201 esac 9202 ;; 9203 9204 darwin* | rhapsody*) 9205 9206 9207 archive_cmds_need_lc=no 9208 hardcode_direct=no 9209 hardcode_automatic=yes 9210 hardcode_shlibpath_var=unsupported 9211 if test "$lt_cv_ld_force_load" = "yes"; then 9212 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\"`' 9213 9214 else 9215 whole_archive_flag_spec='' 9216 fi 9217 link_all_deplibs=yes 9218 allow_undefined_flag="$_lt_dar_allow_undefined" 9219 case $cc_basename in 9220 ifort*) _lt_dar_can_shared=yes ;; 9221 *) _lt_dar_can_shared=$GCC ;; 9222 esac 9223 if test "$_lt_dar_can_shared" = "yes"; then 9224 output_verbose_link_cmd=func_echo_all 9225 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9226 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9227 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}" 9228 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}" 9229 9230 else 9231 ld_shlibs=no 9232 fi 9233 9234 ;; 9235 9236 dgux*) 9237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9238 hardcode_libdir_flag_spec='-L$libdir' 9239 hardcode_shlibpath_var=no 9240 ;; 9241 9242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9243 # support. Future versions do this automatically, but an explicit c++rt0.o 9244 # does not break anything, and helps significantly (at the cost of a little 9245 # extra space). 9246 freebsd2.2*) 9247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9248 hardcode_libdir_flag_spec='-R$libdir' 9249 hardcode_direct=yes 9250 hardcode_shlibpath_var=no 9251 ;; 9252 9253 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9254 freebsd2.*) 9255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9256 hardcode_direct=yes 9257 hardcode_minus_L=yes 9258 hardcode_shlibpath_var=no 9259 ;; 9260 9261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9262 freebsd* | dragonfly*) 9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9264 hardcode_libdir_flag_spec='-R$libdir' 9265 hardcode_direct=yes 9266 hardcode_shlibpath_var=no 9267 ;; 9268 9269 hpux9*) 9270 if test "$GCC" = yes; then 9271 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' 9272 else 9273 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' 9274 fi 9275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9276 hardcode_libdir_separator=: 9277 hardcode_direct=yes 9278 9279 # hardcode_minus_L: Not really in the search PATH, 9280 # but as the default location of the library. 9281 hardcode_minus_L=yes 9282 export_dynamic_flag_spec='${wl}-E' 9283 ;; 9284 9285 hpux10*) 9286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9287 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9288 else 9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9290 fi 9291 if test "$with_gnu_ld" = no; then 9292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9293 hardcode_libdir_separator=: 9294 hardcode_direct=yes 9295 hardcode_direct_absolute=yes 9296 export_dynamic_flag_spec='${wl}-E' 9297 # hardcode_minus_L: Not really in the search PATH, 9298 # but as the default location of the library. 9299 hardcode_minus_L=yes 9300 fi 9301 ;; 9302 9303 hpux11*) 9304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9305 case $host_cpu in 9306 hppa*64*) 9307 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9308 ;; 9309 ia64*) 9310 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9311 ;; 9312 *) 9313 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9314 ;; 9315 esac 9316 else 9317 case $host_cpu in 9318 hppa*64*) 9319 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9320 ;; 9321 ia64*) 9322 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9323 ;; 9324 *) 9325 9326 # Older versions of the 11.00 compiler do not understand -b yet 9327 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9329$as_echo_n "checking if $CC understands -b... " >&6; } 9330if ${lt_cv_prog_compiler__b+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332else 9333 lt_cv_prog_compiler__b=no 9334 save_LDFLAGS="$LDFLAGS" 9335 LDFLAGS="$LDFLAGS -b" 9336 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9338 # The linker can only warn and ignore the option if not recognized 9339 # So say no if there are warnings 9340 if test -s conftest.err; then 9341 # Append any errors to the config.log. 9342 cat conftest.err 1>&5 9343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9345 if diff conftest.exp conftest.er2 >/dev/null; then 9346 lt_cv_prog_compiler__b=yes 9347 fi 9348 else 9349 lt_cv_prog_compiler__b=yes 9350 fi 9351 fi 9352 $RM -r conftest* 9353 LDFLAGS="$save_LDFLAGS" 9354 9355fi 9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9357$as_echo "$lt_cv_prog_compiler__b" >&6; } 9358 9359if test x"$lt_cv_prog_compiler__b" = xyes; then 9360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9361else 9362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9363fi 9364 9365 ;; 9366 esac 9367 fi 9368 if test "$with_gnu_ld" = no; then 9369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9370 hardcode_libdir_separator=: 9371 9372 case $host_cpu in 9373 hppa*64*|ia64*) 9374 hardcode_direct=no 9375 hardcode_shlibpath_var=no 9376 ;; 9377 *) 9378 hardcode_direct=yes 9379 hardcode_direct_absolute=yes 9380 export_dynamic_flag_spec='${wl}-E' 9381 9382 # hardcode_minus_L: Not really in the search PATH, 9383 # but as the default location of the library. 9384 hardcode_minus_L=yes 9385 ;; 9386 esac 9387 fi 9388 ;; 9389 9390 irix5* | irix6* | nonstopux*) 9391 if test "$GCC" = yes; then 9392 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' 9393 # Try to use the -exported_symbol ld option, if it does not 9394 # work, assume that -exports_file does not work either and 9395 # implicitly export all symbols. 9396 # This should be the same for all languages, so no per-tag cache variable. 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9398$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9399if ${lt_cv_irix_exported_symbol+:} false; then : 9400 $as_echo_n "(cached) " >&6 9401else 9402 save_LDFLAGS="$LDFLAGS" 9403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405/* end confdefs.h. */ 9406int foo (void) { return 0; } 9407_ACEOF 9408if ac_fn_c_try_link "$LINENO"; then : 9409 lt_cv_irix_exported_symbol=yes 9410else 9411 lt_cv_irix_exported_symbol=no 9412fi 9413rm -f core conftest.err conftest.$ac_objext \ 9414 conftest$ac_exeext conftest.$ac_ext 9415 LDFLAGS="$save_LDFLAGS" 9416fi 9417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9418$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9419 if test "$lt_cv_irix_exported_symbol" = yes; then 9420 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' 9421 fi 9422 else 9423 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' 9424 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' 9425 fi 9426 archive_cmds_need_lc='no' 9427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9428 hardcode_libdir_separator=: 9429 inherit_rpath=yes 9430 link_all_deplibs=yes 9431 ;; 9432 9433 netbsd*) 9434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9436 else 9437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9438 fi 9439 hardcode_libdir_flag_spec='-R$libdir' 9440 hardcode_direct=yes 9441 hardcode_shlibpath_var=no 9442 ;; 9443 9444 newsos6) 9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9446 hardcode_direct=yes 9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9448 hardcode_libdir_separator=: 9449 hardcode_shlibpath_var=no 9450 ;; 9451 9452 *nto* | *qnx*) 9453 ;; 9454 9455 openbsd*) 9456 if test -f /usr/libexec/ld.so; then 9457 hardcode_direct=yes 9458 hardcode_shlibpath_var=no 9459 hardcode_direct_absolute=yes 9460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9462 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9464 export_dynamic_flag_spec='${wl}-E' 9465 else 9466 case $host_os in 9467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9469 hardcode_libdir_flag_spec='-R$libdir' 9470 ;; 9471 *) 9472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9474 ;; 9475 esac 9476 fi 9477 else 9478 ld_shlibs=no 9479 fi 9480 ;; 9481 9482 os2*) 9483 hardcode_libdir_flag_spec='-L$libdir' 9484 hardcode_minus_L=yes 9485 allow_undefined_flag=unsupported 9486 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' 9487 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9488 ;; 9489 9490 osf3*) 9491 if test "$GCC" = yes; then 9492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9493 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' 9494 else 9495 allow_undefined_flag=' -expect_unresolved \*' 9496 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' 9497 fi 9498 archive_cmds_need_lc='no' 9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9500 hardcode_libdir_separator=: 9501 ;; 9502 9503 osf4* | osf5*) # as osf3* with the addition of -msym flag 9504 if test "$GCC" = yes; then 9505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9506 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' 9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9508 else 9509 allow_undefined_flag=' -expect_unresolved \*' 9510 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' 9511 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~ 9512 $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' 9513 9514 # Both c and cxx compiler support -rpath directly 9515 hardcode_libdir_flag_spec='-rpath $libdir' 9516 fi 9517 archive_cmds_need_lc='no' 9518 hardcode_libdir_separator=: 9519 ;; 9520 9521 solaris*) 9522 no_undefined_flag=' -z defs' 9523 if test "$GCC" = yes; then 9524 wlarc='${wl}' 9525 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9527 $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' 9528 else 9529 case `$CC -V 2>&1` in 9530 *"Compilers 5.0"*) 9531 wlarc='' 9532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9535 ;; 9536 *) 9537 wlarc='${wl}' 9538 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9540 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9541 ;; 9542 esac 9543 fi 9544 hardcode_libdir_flag_spec='-R$libdir' 9545 hardcode_shlibpath_var=no 9546 case $host_os in 9547 solaris2.[0-5] | solaris2.[0-5].*) ;; 9548 *) 9549 # The compiler driver will combine and reorder linker options, 9550 # but understands `-z linker_flag'. GCC discards it without `$wl', 9551 # but is careful enough not to reorder. 9552 # Supported since Solaris 2.6 (maybe 2.5.1?) 9553 if test "$GCC" = yes; then 9554 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9555 else 9556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9557 fi 9558 ;; 9559 esac 9560 link_all_deplibs=yes 9561 ;; 9562 9563 sunos4*) 9564 if test "x$host_vendor" = xsequent; then 9565 # Use $CC to link under sequent, because it throws in some extra .o 9566 # files that make .init and .fini sections work. 9567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9568 else 9569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9570 fi 9571 hardcode_libdir_flag_spec='-L$libdir' 9572 hardcode_direct=yes 9573 hardcode_minus_L=yes 9574 hardcode_shlibpath_var=no 9575 ;; 9576 9577 sysv4) 9578 case $host_vendor in 9579 sni) 9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9581 hardcode_direct=yes # is this really true??? 9582 ;; 9583 siemens) 9584 ## LD is ld it makes a PLAMLIB 9585 ## CC just makes a GrossModule. 9586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9587 reload_cmds='$CC -r -o $output$reload_objs' 9588 hardcode_direct=no 9589 ;; 9590 motorola) 9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9593 ;; 9594 esac 9595 runpath_var='LD_RUN_PATH' 9596 hardcode_shlibpath_var=no 9597 ;; 9598 9599 sysv4.3*) 9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9601 hardcode_shlibpath_var=no 9602 export_dynamic_flag_spec='-Bexport' 9603 ;; 9604 9605 sysv4*MP*) 9606 if test -d /usr/nec; then 9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9608 hardcode_shlibpath_var=no 9609 runpath_var=LD_RUN_PATH 9610 hardcode_runpath_var=yes 9611 ld_shlibs=yes 9612 fi 9613 ;; 9614 9615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9616 no_undefined_flag='${wl}-z,text' 9617 archive_cmds_need_lc=no 9618 hardcode_shlibpath_var=no 9619 runpath_var='LD_RUN_PATH' 9620 9621 if test "$GCC" = yes; then 9622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9624 else 9625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9627 fi 9628 ;; 9629 9630 sysv5* | sco3.2v5* | sco5v6*) 9631 # Note: We can NOT use -z defs as we might desire, because we do not 9632 # link with -lc, and that would cause any symbols used from libc to 9633 # always be unresolved, which means just about no library would 9634 # ever link correctly. If we're not using GNU ld we use -z text 9635 # though, which does catch some bad symbols but isn't as heavy-handed 9636 # as -z defs. 9637 no_undefined_flag='${wl}-z,text' 9638 allow_undefined_flag='${wl}-z,nodefs' 9639 archive_cmds_need_lc=no 9640 hardcode_shlibpath_var=no 9641 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9642 hardcode_libdir_separator=':' 9643 link_all_deplibs=yes 9644 export_dynamic_flag_spec='${wl}-Bexport' 9645 runpath_var='LD_RUN_PATH' 9646 9647 if test "$GCC" = yes; then 9648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9650 else 9651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9653 fi 9654 ;; 9655 9656 uts4*) 9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9658 hardcode_libdir_flag_spec='-L$libdir' 9659 hardcode_shlibpath_var=no 9660 ;; 9661 9662 *) 9663 ld_shlibs=no 9664 ;; 9665 esac 9666 9667 if test x$host_vendor = xsni; then 9668 case $host in 9669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9670 export_dynamic_flag_spec='${wl}-Blargedynsym' 9671 ;; 9672 esac 9673 fi 9674 fi 9675 9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9677$as_echo "$ld_shlibs" >&6; } 9678test "$ld_shlibs" = no && can_build_shared=no 9679 9680with_gnu_ld=$with_gnu_ld 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696# 9697# Do we need to explicitly link libc? 9698# 9699case "x$archive_cmds_need_lc" in 9700x|xyes) 9701 # Assume -lc should be added 9702 archive_cmds_need_lc=yes 9703 9704 if test "$enable_shared" = yes && test "$GCC" = yes; then 9705 case $archive_cmds in 9706 *'~'*) 9707 # FIXME: we may have to deal with multi-command sequences. 9708 ;; 9709 '$CC '*) 9710 # Test whether the compiler implicitly links with -lc since on some 9711 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9712 # to ld, don't add -lc before -lgcc. 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9714$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9715if ${lt_cv_archive_cmds_need_lc+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 $RM conftest* 9719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9720 9721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9722 (eval $ac_compile) 2>&5 9723 ac_status=$? 9724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9725 test $ac_status = 0; } 2>conftest.err; then 9726 soname=conftest 9727 lib=conftest 9728 libobjs=conftest.$ac_objext 9729 deplibs= 9730 wl=$lt_prog_compiler_wl 9731 pic_flag=$lt_prog_compiler_pic 9732 compiler_flags=-v 9733 linker_flags=-v 9734 verstring= 9735 output_objdir=. 9736 libname=conftest 9737 lt_save_allow_undefined_flag=$allow_undefined_flag 9738 allow_undefined_flag= 9739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9741 ac_status=$? 9742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9743 test $ac_status = 0; } 9744 then 9745 lt_cv_archive_cmds_need_lc=no 9746 else 9747 lt_cv_archive_cmds_need_lc=yes 9748 fi 9749 allow_undefined_flag=$lt_save_allow_undefined_flag 9750 else 9751 cat conftest.err 1>&5 9752 fi 9753 $RM conftest* 9754 9755fi 9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9757$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9759 ;; 9760 esac 9761 fi 9762 ;; 9763esac 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9917$as_echo_n "checking dynamic linker characteristics... " >&6; } 9918 9919if test "$GCC" = yes; then 9920 case $host_os in 9921 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9922 *) lt_awk_arg="/^libraries:/" ;; 9923 esac 9924 case $host_os in 9925 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9926 *) lt_sed_strip_eq="s,=/,/,g" ;; 9927 esac 9928 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9929 case $lt_search_path_spec in 9930 *\;*) 9931 # if the path contains ";" then we assume it to be the separator 9932 # otherwise default to the standard path separator (i.e. ":") - it is 9933 # assumed that no part of a normal pathname contains ";" but that should 9934 # okay in the real world where ";" in dirpaths is itself problematic. 9935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9936 ;; 9937 *) 9938 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9939 ;; 9940 esac 9941 # Ok, now we have the path, separated by spaces, we can step through it 9942 # and add multilib dir if necessary. 9943 lt_tmp_lt_search_path_spec= 9944 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9945 for lt_sys_path in $lt_search_path_spec; do 9946 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9948 else 9949 test -d "$lt_sys_path" && \ 9950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9951 fi 9952 done 9953 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9954BEGIN {RS=" "; FS="/|\n";} { 9955 lt_foo=""; 9956 lt_count=0; 9957 for (lt_i = NF; lt_i > 0; lt_i--) { 9958 if ($lt_i != "" && $lt_i != ".") { 9959 if ($lt_i == "..") { 9960 lt_count++; 9961 } else { 9962 if (lt_count == 0) { 9963 lt_foo="/" $lt_i lt_foo; 9964 } else { 9965 lt_count--; 9966 } 9967 } 9968 } 9969 } 9970 if (lt_foo != "") { lt_freq[lt_foo]++; } 9971 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9972}'` 9973 # AWK program above erroneously prepends '/' to C:/dos/paths 9974 # for these hosts. 9975 case $host_os in 9976 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9977 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9978 esac 9979 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9980else 9981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9982fi 9983library_names_spec= 9984libname_spec='lib$name' 9985soname_spec= 9986shrext_cmds=".so" 9987postinstall_cmds= 9988postuninstall_cmds= 9989finish_cmds= 9990finish_eval= 9991shlibpath_var= 9992shlibpath_overrides_runpath=unknown 9993version_type=none 9994dynamic_linker="$host_os ld.so" 9995sys_lib_dlsearch_path_spec="/lib /usr/lib" 9996need_lib_prefix=unknown 9997hardcode_into_libs=no 9998 9999# when you set need_version to no, make sure it does not cause -set_version 10000# flags to be left without arguments 10001need_version=unknown 10002 10003case $host_os in 10004aix3*) 10005 version_type=linux # correct to gnu/linux during the next big refactor 10006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10007 shlibpath_var=LIBPATH 10008 10009 # AIX 3 has no versioning support, so we append a major version to the name. 10010 soname_spec='${libname}${release}${shared_ext}$major' 10011 ;; 10012 10013aix[4-9]*) 10014 version_type=linux # correct to gnu/linux during the next big refactor 10015 need_lib_prefix=no 10016 need_version=no 10017 hardcode_into_libs=yes 10018 if test "$host_cpu" = ia64; then 10019 # AIX 5 supports IA64 10020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10021 shlibpath_var=LD_LIBRARY_PATH 10022 else 10023 # With GCC up to 2.95.x, collect2 would create an import file 10024 # for dependence libraries. The import file would start with 10025 # the line `#! .'. This would cause the generated library to 10026 # depend on `.', always an invalid library. This was fixed in 10027 # development snapshots of GCC prior to 3.0. 10028 case $host_os in 10029 aix4 | aix4.[01] | aix4.[01].*) 10030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10031 echo ' yes ' 10032 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10033 : 10034 else 10035 can_build_shared=no 10036 fi 10037 ;; 10038 esac 10039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10040 # soname into executable. Probably we can add versioning support to 10041 # collect2, so additional links can be useful in future. 10042 if test "$aix_use_runtimelinking" = yes; then 10043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10044 # instead of lib<name>.a to let people know that these are not 10045 # typical AIX shared libraries. 10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10047 else 10048 # We preserve .a as extension for shared libraries through AIX4.2 10049 # and later when we are not doing run time linking. 10050 library_names_spec='${libname}${release}.a $libname.a' 10051 soname_spec='${libname}${release}${shared_ext}$major' 10052 fi 10053 shlibpath_var=LIBPATH 10054 fi 10055 ;; 10056 10057amigaos*) 10058 case $host_cpu in 10059 powerpc) 10060 # Since July 2007 AmigaOS4 officially supports .so libraries. 10061 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10063 ;; 10064 m68k) 10065 library_names_spec='$libname.ixlibrary $libname.a' 10066 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10067 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' 10068 ;; 10069 esac 10070 ;; 10071 10072beos*) 10073 library_names_spec='${libname}${shared_ext}' 10074 dynamic_linker="$host_os ld.so" 10075 shlibpath_var=LIBRARY_PATH 10076 ;; 10077 10078bsdi[45]*) 10079 version_type=linux # correct to gnu/linux during the next big refactor 10080 need_version=no 10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10082 soname_spec='${libname}${release}${shared_ext}$major' 10083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10084 shlibpath_var=LD_LIBRARY_PATH 10085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10087 # the default ld.so.conf also contains /usr/contrib/lib and 10088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10089 # libtool to hard-code these into programs 10090 ;; 10091 10092cygwin* | mingw* | pw32* | cegcc*) 10093 version_type=windows 10094 shrext_cmds=".dll" 10095 need_version=no 10096 need_lib_prefix=no 10097 10098 case $GCC,$cc_basename in 10099 yes,*) 10100 # gcc 10101 library_names_spec='$libname.dll.a' 10102 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10103 postinstall_cmds='base_file=`basename \${file}`~ 10104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10105 dldir=$destdir/`dirname \$dlpath`~ 10106 test -d \$dldir || mkdir -p \$dldir~ 10107 $install_prog $dir/$dlname \$dldir/$dlname~ 10108 chmod a+x \$dldir/$dlname~ 10109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10111 fi' 10112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10113 dlpath=$dir/\$dldll~ 10114 $RM \$dlpath' 10115 shlibpath_overrides_runpath=yes 10116 10117 case $host_os in 10118 cygwin*) 10119 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10121 10122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10123 ;; 10124 mingw* | cegcc*) 10125 # MinGW DLLs use traditional 'lib' prefix 10126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10127 ;; 10128 pw32*) 10129 # pw32 DLLs use 'pw' prefix rather than 'lib' 10130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10131 ;; 10132 esac 10133 dynamic_linker='Win32 ld.exe' 10134 ;; 10135 10136 *,cl*) 10137 # Native MSVC 10138 libname_spec='$name' 10139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10140 library_names_spec='${libname}.dll.lib' 10141 10142 case $build_os in 10143 mingw*) 10144 sys_lib_search_path_spec= 10145 lt_save_ifs=$IFS 10146 IFS=';' 10147 for lt_path in $LIB 10148 do 10149 IFS=$lt_save_ifs 10150 # Let DOS variable expansion print the short 8.3 style file name. 10151 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10152 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10153 done 10154 IFS=$lt_save_ifs 10155 # Convert to MSYS style. 10156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10157 ;; 10158 cygwin*) 10159 # Convert to unix form, then to dos form, then back to unix form 10160 # but this time dos style (no spaces!) so that the unix form looks 10161 # like /cygdrive/c/PROGRA~1:/cygdr... 10162 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10163 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10164 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10165 ;; 10166 *) 10167 sys_lib_search_path_spec="$LIB" 10168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10169 # It is most probably a Windows format PATH. 10170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10171 else 10172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10173 fi 10174 # FIXME: find the short name or the path components, as spaces are 10175 # common. (e.g. "Program Files" -> "PROGRA~1") 10176 ;; 10177 esac 10178 10179 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10180 postinstall_cmds='base_file=`basename \${file}`~ 10181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10182 dldir=$destdir/`dirname \$dlpath`~ 10183 test -d \$dldir || mkdir -p \$dldir~ 10184 $install_prog $dir/$dlname \$dldir/$dlname' 10185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10186 dlpath=$dir/\$dldll~ 10187 $RM \$dlpath' 10188 shlibpath_overrides_runpath=yes 10189 dynamic_linker='Win32 link.exe' 10190 ;; 10191 10192 *) 10193 # Assume MSVC wrapper 10194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10195 dynamic_linker='Win32 ld.exe' 10196 ;; 10197 esac 10198 # FIXME: first we should search . and the directory the executable is in 10199 shlibpath_var=PATH 10200 ;; 10201 10202darwin* | rhapsody*) 10203 dynamic_linker="$host_os dyld" 10204 version_type=darwin 10205 need_lib_prefix=no 10206 need_version=no 10207 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10208 soname_spec='${libname}${release}${major}$shared_ext' 10209 shlibpath_overrides_runpath=yes 10210 shlibpath_var=DYLD_LIBRARY_PATH 10211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10212 10213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10215 ;; 10216 10217dgux*) 10218 version_type=linux # correct to gnu/linux during the next big refactor 10219 need_lib_prefix=no 10220 need_version=no 10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10222 soname_spec='${libname}${release}${shared_ext}$major' 10223 shlibpath_var=LD_LIBRARY_PATH 10224 ;; 10225 10226freebsd* | dragonfly*) 10227 # DragonFly does not have aout. When/if they implement a new 10228 # versioning mechanism, adjust this. 10229 if test -x /usr/bin/objformat; then 10230 objformat=`/usr/bin/objformat` 10231 else 10232 case $host_os in 10233 freebsd[23].*) objformat=aout ;; 10234 *) objformat=elf ;; 10235 esac 10236 fi 10237 version_type=freebsd-$objformat 10238 case $version_type in 10239 freebsd-elf*) 10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10241 need_version=no 10242 need_lib_prefix=no 10243 ;; 10244 freebsd-*) 10245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10246 need_version=yes 10247 ;; 10248 esac 10249 shlibpath_var=LD_LIBRARY_PATH 10250 case $host_os in 10251 freebsd2.*) 10252 shlibpath_overrides_runpath=yes 10253 ;; 10254 freebsd3.[01]* | freebsdelf3.[01]*) 10255 shlibpath_overrides_runpath=yes 10256 hardcode_into_libs=yes 10257 ;; 10258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10260 shlibpath_overrides_runpath=no 10261 hardcode_into_libs=yes 10262 ;; 10263 *) # from 4.6 on, and DragonFly 10264 shlibpath_overrides_runpath=yes 10265 hardcode_into_libs=yes 10266 ;; 10267 esac 10268 ;; 10269 10270gnu*) 10271 version_type=linux # correct to gnu/linux during the next big refactor 10272 need_lib_prefix=no 10273 need_version=no 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10275 soname_spec='${libname}${release}${shared_ext}$major' 10276 shlibpath_var=LD_LIBRARY_PATH 10277 shlibpath_overrides_runpath=no 10278 hardcode_into_libs=yes 10279 ;; 10280 10281haiku*) 10282 version_type=linux # correct to gnu/linux during the next big refactor 10283 need_lib_prefix=no 10284 need_version=no 10285 dynamic_linker="$host_os runtime_loader" 10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10287 soname_spec='${libname}${release}${shared_ext}$major' 10288 shlibpath_var=LIBRARY_PATH 10289 shlibpath_overrides_runpath=yes 10290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10291 hardcode_into_libs=yes 10292 ;; 10293 10294hpux9* | hpux10* | hpux11*) 10295 # Give a soname corresponding to the major version so that dld.sl refuses to 10296 # link against other versions. 10297 version_type=sunos 10298 need_lib_prefix=no 10299 need_version=no 10300 case $host_cpu in 10301 ia64*) 10302 shrext_cmds='.so' 10303 hardcode_into_libs=yes 10304 dynamic_linker="$host_os dld.so" 10305 shlibpath_var=LD_LIBRARY_PATH 10306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10308 soname_spec='${libname}${release}${shared_ext}$major' 10309 if test "X$HPUX_IA64_MODE" = X32; then 10310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10311 else 10312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10313 fi 10314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10315 ;; 10316 hppa*64*) 10317 shrext_cmds='.sl' 10318 hardcode_into_libs=yes 10319 dynamic_linker="$host_os dld.sl" 10320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10323 soname_spec='${libname}${release}${shared_ext}$major' 10324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10326 ;; 10327 *) 10328 shrext_cmds='.sl' 10329 dynamic_linker="$host_os dld.sl" 10330 shlibpath_var=SHLIB_PATH 10331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10333 soname_spec='${libname}${release}${shared_ext}$major' 10334 ;; 10335 esac 10336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10337 postinstall_cmds='chmod 555 $lib' 10338 # or fails outright, so override atomically: 10339 install_override_mode=555 10340 ;; 10341 10342interix[3-9]*) 10343 version_type=linux # correct to gnu/linux during the next big refactor 10344 need_lib_prefix=no 10345 need_version=no 10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10347 soname_spec='${libname}${release}${shared_ext}$major' 10348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10349 shlibpath_var=LD_LIBRARY_PATH 10350 shlibpath_overrides_runpath=no 10351 hardcode_into_libs=yes 10352 ;; 10353 10354irix5* | irix6* | nonstopux*) 10355 case $host_os in 10356 nonstopux*) version_type=nonstopux ;; 10357 *) 10358 if test "$lt_cv_prog_gnu_ld" = yes; then 10359 version_type=linux # correct to gnu/linux during the next big refactor 10360 else 10361 version_type=irix 10362 fi ;; 10363 esac 10364 need_lib_prefix=no 10365 need_version=no 10366 soname_spec='${libname}${release}${shared_ext}$major' 10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10368 case $host_os in 10369 irix5* | nonstopux*) 10370 libsuff= shlibsuff= 10371 ;; 10372 *) 10373 case $LD in # libtool.m4 will add one of these switches to LD 10374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10375 libsuff= shlibsuff= libmagic=32-bit;; 10376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10377 libsuff=32 shlibsuff=N32 libmagic=N32;; 10378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10379 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10380 *) libsuff= shlibsuff= libmagic=never-match;; 10381 esac 10382 ;; 10383 esac 10384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10385 shlibpath_overrides_runpath=no 10386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10388 hardcode_into_libs=yes 10389 ;; 10390 10391# No shared lib support for Linux oldld, aout, or coff. 10392linux*oldld* | linux*aout* | linux*coff*) 10393 dynamic_linker=no 10394 ;; 10395 10396# This must be glibc/ELF. 10397linux* | k*bsd*-gnu | kopensolaris*-gnu) 10398 version_type=linux # correct to gnu/linux during the next big refactor 10399 need_lib_prefix=no 10400 need_version=no 10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10402 soname_spec='${libname}${release}${shared_ext}$major' 10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10404 shlibpath_var=LD_LIBRARY_PATH 10405 shlibpath_overrides_runpath=no 10406 10407 # Some binutils ld are patched to set DT_RUNPATH 10408 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10409 $as_echo_n "(cached) " >&6 10410else 10411 lt_cv_shlibpath_overrides_runpath=no 10412 save_LDFLAGS=$LDFLAGS 10413 save_libdir=$libdir 10414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418 10419int 10420main () 10421{ 10422 10423 ; 10424 return 0; 10425} 10426_ACEOF 10427if ac_fn_c_try_link "$LINENO"; then : 10428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10429 lt_cv_shlibpath_overrides_runpath=yes 10430fi 10431fi 10432rm -f core conftest.err conftest.$ac_objext \ 10433 conftest$ac_exeext conftest.$ac_ext 10434 LDFLAGS=$save_LDFLAGS 10435 libdir=$save_libdir 10436 10437fi 10438 10439 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10440 10441 # This implies no fast_install, which is unacceptable. 10442 # Some rework will be needed to allow for fast_install 10443 # before this can be enabled. 10444 hardcode_into_libs=yes 10445 10446 # Append ld.so.conf contents to the search path 10447 if test -f /etc/ld.so.conf; then 10448 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' ' '` 10449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10450 fi 10451 10452 # We used to test for /lib/ld.so.1 and disable shared libraries on 10453 # powerpc, because MkLinux only supported shared libraries with the 10454 # GNU dynamic linker. Since this was broken with cross compilers, 10455 # most powerpc-linux boxes support dynamic linking these days and 10456 # people can always --disable-shared, the test was removed, and we 10457 # assume the GNU/Linux dynamic linker is in use. 10458 dynamic_linker='GNU/Linux ld.so' 10459 ;; 10460 10461netbsd*) 10462 version_type=sunos 10463 need_lib_prefix=no 10464 need_version=no 10465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10468 dynamic_linker='NetBSD (a.out) ld.so' 10469 else 10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10471 soname_spec='${libname}${release}${shared_ext}$major' 10472 dynamic_linker='NetBSD ld.elf_so' 10473 fi 10474 shlibpath_var=LD_LIBRARY_PATH 10475 shlibpath_overrides_runpath=yes 10476 hardcode_into_libs=yes 10477 ;; 10478 10479newsos6) 10480 version_type=linux # correct to gnu/linux during the next big refactor 10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10482 shlibpath_var=LD_LIBRARY_PATH 10483 shlibpath_overrides_runpath=yes 10484 ;; 10485 10486*nto* | *qnx*) 10487 version_type=qnx 10488 need_lib_prefix=no 10489 need_version=no 10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10491 soname_spec='${libname}${release}${shared_ext}$major' 10492 shlibpath_var=LD_LIBRARY_PATH 10493 shlibpath_overrides_runpath=no 10494 hardcode_into_libs=yes 10495 dynamic_linker='ldqnx.so' 10496 ;; 10497 10498openbsd*) 10499 version_type=sunos 10500 sys_lib_dlsearch_path_spec="/usr/lib" 10501 need_lib_prefix=no 10502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10503 case $host_os in 10504 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10505 *) need_version=no ;; 10506 esac 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10509 shlibpath_var=LD_LIBRARY_PATH 10510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10511 case $host_os in 10512 openbsd2.[89] | openbsd2.[89].*) 10513 shlibpath_overrides_runpath=no 10514 ;; 10515 *) 10516 shlibpath_overrides_runpath=yes 10517 ;; 10518 esac 10519 else 10520 shlibpath_overrides_runpath=yes 10521 fi 10522 ;; 10523 10524os2*) 10525 libname_spec='$name' 10526 shrext_cmds=".dll" 10527 need_lib_prefix=no 10528 library_names_spec='$libname${shared_ext} $libname.a' 10529 dynamic_linker='OS/2 ld.exe' 10530 shlibpath_var=LIBPATH 10531 ;; 10532 10533osf3* | osf4* | osf5*) 10534 version_type=osf 10535 need_lib_prefix=no 10536 need_version=no 10537 soname_spec='${libname}${release}${shared_ext}$major' 10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10539 shlibpath_var=LD_LIBRARY_PATH 10540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10542 ;; 10543 10544rdos*) 10545 dynamic_linker=no 10546 ;; 10547 10548solaris*) 10549 version_type=linux # correct to gnu/linux during the next big refactor 10550 need_lib_prefix=no 10551 need_version=no 10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10553 soname_spec='${libname}${release}${shared_ext}$major' 10554 shlibpath_var=LD_LIBRARY_PATH 10555 shlibpath_overrides_runpath=yes 10556 hardcode_into_libs=yes 10557 # ldd complains unless libraries are executable 10558 postinstall_cmds='chmod +x $lib' 10559 ;; 10560 10561sunos4*) 10562 version_type=sunos 10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10565 shlibpath_var=LD_LIBRARY_PATH 10566 shlibpath_overrides_runpath=yes 10567 if test "$with_gnu_ld" = yes; then 10568 need_lib_prefix=no 10569 fi 10570 need_version=yes 10571 ;; 10572 10573sysv4 | sysv4.3*) 10574 version_type=linux # correct to gnu/linux during the next big refactor 10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10576 soname_spec='${libname}${release}${shared_ext}$major' 10577 shlibpath_var=LD_LIBRARY_PATH 10578 case $host_vendor in 10579 sni) 10580 shlibpath_overrides_runpath=no 10581 need_lib_prefix=no 10582 runpath_var=LD_RUN_PATH 10583 ;; 10584 siemens) 10585 need_lib_prefix=no 10586 ;; 10587 motorola) 10588 need_lib_prefix=no 10589 need_version=no 10590 shlibpath_overrides_runpath=no 10591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10592 ;; 10593 esac 10594 ;; 10595 10596sysv4*MP*) 10597 if test -d /usr/nec ;then 10598 version_type=linux # correct to gnu/linux during the next big refactor 10599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10600 soname_spec='$libname${shared_ext}.$major' 10601 shlibpath_var=LD_LIBRARY_PATH 10602 fi 10603 ;; 10604 10605sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10606 version_type=freebsd-elf 10607 need_lib_prefix=no 10608 need_version=no 10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10610 soname_spec='${libname}${release}${shared_ext}$major' 10611 shlibpath_var=LD_LIBRARY_PATH 10612 shlibpath_overrides_runpath=yes 10613 hardcode_into_libs=yes 10614 if test "$with_gnu_ld" = yes; then 10615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10616 else 10617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10618 case $host_os in 10619 sco3.2v5*) 10620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10621 ;; 10622 esac 10623 fi 10624 sys_lib_dlsearch_path_spec='/usr/lib' 10625 ;; 10626 10627tpf*) 10628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10629 version_type=linux # correct to gnu/linux during the next big refactor 10630 need_lib_prefix=no 10631 need_version=no 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 shlibpath_overrides_runpath=no 10635 hardcode_into_libs=yes 10636 ;; 10637 10638uts4*) 10639 version_type=linux # correct to gnu/linux during the next big refactor 10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10641 soname_spec='${libname}${release}${shared_ext}$major' 10642 shlibpath_var=LD_LIBRARY_PATH 10643 ;; 10644 10645*) 10646 dynamic_linker=no 10647 ;; 10648esac 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10650$as_echo "$dynamic_linker" >&6; } 10651test "$dynamic_linker" = no && can_build_shared=no 10652 10653variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10654if test "$GCC" = yes; then 10655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10656fi 10657 10658if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10660fi 10661if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10662 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10663fi 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10757$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10758hardcode_action= 10759if test -n "$hardcode_libdir_flag_spec" || 10760 test -n "$runpath_var" || 10761 test "X$hardcode_automatic" = "Xyes" ; then 10762 10763 # We can hardcode non-existent directories. 10764 if test "$hardcode_direct" != no && 10765 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10766 # have to relink, otherwise we might link with an installed library 10767 # when we should be linking with a yet-to-be-installed one 10768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10769 test "$hardcode_minus_L" != no; then 10770 # Linking always hardcodes the temporary library directory. 10771 hardcode_action=relink 10772 else 10773 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10774 hardcode_action=immediate 10775 fi 10776else 10777 # We cannot hardcode anything, or else we can only hardcode existing 10778 # directories. 10779 hardcode_action=unsupported 10780fi 10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10782$as_echo "$hardcode_action" >&6; } 10783 10784if test "$hardcode_action" = relink || 10785 test "$inherit_rpath" = yes; then 10786 # Fast installation is not supported 10787 enable_fast_install=no 10788elif test "$shlibpath_overrides_runpath" = yes || 10789 test "$enable_shared" = no; then 10790 # Fast installation is not necessary 10791 enable_fast_install=needless 10792fi 10793 10794 10795 10796 10797 10798 10799 if test "x$enable_dlopen" != xyes; then 10800 enable_dlopen=unknown 10801 enable_dlopen_self=unknown 10802 enable_dlopen_self_static=unknown 10803else 10804 lt_cv_dlopen=no 10805 lt_cv_dlopen_libs= 10806 10807 case $host_os in 10808 beos*) 10809 lt_cv_dlopen="load_add_on" 10810 lt_cv_dlopen_libs= 10811 lt_cv_dlopen_self=yes 10812 ;; 10813 10814 mingw* | pw32* | cegcc*) 10815 lt_cv_dlopen="LoadLibrary" 10816 lt_cv_dlopen_libs= 10817 ;; 10818 10819 cygwin*) 10820 lt_cv_dlopen="dlopen" 10821 lt_cv_dlopen_libs= 10822 ;; 10823 10824 darwin*) 10825 # if libdl is installed we need to link against it 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10827$as_echo_n "checking for dlopen in -ldl... " >&6; } 10828if ${ac_cv_lib_dl_dlopen+:} false; then : 10829 $as_echo_n "(cached) " >&6 10830else 10831 ac_check_lib_save_LIBS=$LIBS 10832LIBS="-ldl $LIBS" 10833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834/* end confdefs.h. */ 10835 10836/* Override any GCC internal prototype to avoid an error. 10837 Use char because int might match the return type of a GCC 10838 builtin and then its argument prototype would still apply. */ 10839#ifdef __cplusplus 10840extern "C" 10841#endif 10842char dlopen (); 10843int 10844main () 10845{ 10846return dlopen (); 10847 ; 10848 return 0; 10849} 10850_ACEOF 10851if ac_fn_c_try_link "$LINENO"; then : 10852 ac_cv_lib_dl_dlopen=yes 10853else 10854 ac_cv_lib_dl_dlopen=no 10855fi 10856rm -f core conftest.err conftest.$ac_objext \ 10857 conftest$ac_exeext conftest.$ac_ext 10858LIBS=$ac_check_lib_save_LIBS 10859fi 10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10861$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10862if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10864else 10865 10866 lt_cv_dlopen="dyld" 10867 lt_cv_dlopen_libs= 10868 lt_cv_dlopen_self=yes 10869 10870fi 10871 10872 ;; 10873 10874 *) 10875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10876if test "x$ac_cv_func_shl_load" = xyes; then : 10877 lt_cv_dlopen="shl_load" 10878else 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10880$as_echo_n "checking for shl_load in -ldld... " >&6; } 10881if ${ac_cv_lib_dld_shl_load+:} false; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 ac_check_lib_save_LIBS=$LIBS 10885LIBS="-ldld $LIBS" 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888 10889/* Override any GCC internal prototype to avoid an error. 10890 Use char because int might match the return type of a GCC 10891 builtin and then its argument prototype would still apply. */ 10892#ifdef __cplusplus 10893extern "C" 10894#endif 10895char shl_load (); 10896int 10897main () 10898{ 10899return shl_load (); 10900 ; 10901 return 0; 10902} 10903_ACEOF 10904if ac_fn_c_try_link "$LINENO"; then : 10905 ac_cv_lib_dld_shl_load=yes 10906else 10907 ac_cv_lib_dld_shl_load=no 10908fi 10909rm -f core conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911LIBS=$ac_check_lib_save_LIBS 10912fi 10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10914$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10915if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10917else 10918 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10919if test "x$ac_cv_func_dlopen" = xyes; then : 10920 lt_cv_dlopen="dlopen" 10921else 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10923$as_echo_n "checking for dlopen in -ldl... " >&6; } 10924if ${ac_cv_lib_dl_dlopen+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 ac_check_lib_save_LIBS=$LIBS 10928LIBS="-ldl $LIBS" 10929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10930/* end confdefs.h. */ 10931 10932/* Override any GCC internal prototype to avoid an error. 10933 Use char because int might match the return type of a GCC 10934 builtin and then its argument prototype would still apply. */ 10935#ifdef __cplusplus 10936extern "C" 10937#endif 10938char dlopen (); 10939int 10940main () 10941{ 10942return dlopen (); 10943 ; 10944 return 0; 10945} 10946_ACEOF 10947if ac_fn_c_try_link "$LINENO"; then : 10948 ac_cv_lib_dl_dlopen=yes 10949else 10950 ac_cv_lib_dl_dlopen=no 10951fi 10952rm -f core conftest.err conftest.$ac_objext \ 10953 conftest$ac_exeext conftest.$ac_ext 10954LIBS=$ac_check_lib_save_LIBS 10955fi 10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10957$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10958if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10960else 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10962$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10963if ${ac_cv_lib_svld_dlopen+:} false; then : 10964 $as_echo_n "(cached) " >&6 10965else 10966 ac_check_lib_save_LIBS=$LIBS 10967LIBS="-lsvld $LIBS" 10968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10969/* end confdefs.h. */ 10970 10971/* Override any GCC internal prototype to avoid an error. 10972 Use char because int might match the return type of a GCC 10973 builtin and then its argument prototype would still apply. */ 10974#ifdef __cplusplus 10975extern "C" 10976#endif 10977char dlopen (); 10978int 10979main () 10980{ 10981return dlopen (); 10982 ; 10983 return 0; 10984} 10985_ACEOF 10986if ac_fn_c_try_link "$LINENO"; then : 10987 ac_cv_lib_svld_dlopen=yes 10988else 10989 ac_cv_lib_svld_dlopen=no 10990fi 10991rm -f core conftest.err conftest.$ac_objext \ 10992 conftest$ac_exeext conftest.$ac_ext 10993LIBS=$ac_check_lib_save_LIBS 10994fi 10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10996$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10997if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10999else 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11001$as_echo_n "checking for dld_link in -ldld... " >&6; } 11002if ${ac_cv_lib_dld_dld_link+:} false; then : 11003 $as_echo_n "(cached) " >&6 11004else 11005 ac_check_lib_save_LIBS=$LIBS 11006LIBS="-ldld $LIBS" 11007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11008/* end confdefs.h. */ 11009 11010/* Override any GCC internal prototype to avoid an error. 11011 Use char because int might match the return type of a GCC 11012 builtin and then its argument prototype would still apply. */ 11013#ifdef __cplusplus 11014extern "C" 11015#endif 11016char dld_link (); 11017int 11018main () 11019{ 11020return dld_link (); 11021 ; 11022 return 0; 11023} 11024_ACEOF 11025if ac_fn_c_try_link "$LINENO"; then : 11026 ac_cv_lib_dld_dld_link=yes 11027else 11028 ac_cv_lib_dld_dld_link=no 11029fi 11030rm -f core conftest.err conftest.$ac_objext \ 11031 conftest$ac_exeext conftest.$ac_ext 11032LIBS=$ac_check_lib_save_LIBS 11033fi 11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11035$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11036if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11038fi 11039 11040 11041fi 11042 11043 11044fi 11045 11046 11047fi 11048 11049 11050fi 11051 11052 11053fi 11054 11055 ;; 11056 esac 11057 11058 if test "x$lt_cv_dlopen" != xno; then 11059 enable_dlopen=yes 11060 else 11061 enable_dlopen=no 11062 fi 11063 11064 case $lt_cv_dlopen in 11065 dlopen) 11066 save_CPPFLAGS="$CPPFLAGS" 11067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11068 11069 save_LDFLAGS="$LDFLAGS" 11070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11071 11072 save_LIBS="$LIBS" 11073 LIBS="$lt_cv_dlopen_libs $LIBS" 11074 11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11076$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11077if ${lt_cv_dlopen_self+:} false; then : 11078 $as_echo_n "(cached) " >&6 11079else 11080 if test "$cross_compiling" = yes; then : 11081 lt_cv_dlopen_self=cross 11082else 11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11084 lt_status=$lt_dlunknown 11085 cat > conftest.$ac_ext <<_LT_EOF 11086#line $LINENO "configure" 11087#include "confdefs.h" 11088 11089#if HAVE_DLFCN_H 11090#include <dlfcn.h> 11091#endif 11092 11093#include <stdio.h> 11094 11095#ifdef RTLD_GLOBAL 11096# define LT_DLGLOBAL RTLD_GLOBAL 11097#else 11098# ifdef DL_GLOBAL 11099# define LT_DLGLOBAL DL_GLOBAL 11100# else 11101# define LT_DLGLOBAL 0 11102# endif 11103#endif 11104 11105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11106 find out it does not work in some platform. */ 11107#ifndef LT_DLLAZY_OR_NOW 11108# ifdef RTLD_LAZY 11109# define LT_DLLAZY_OR_NOW RTLD_LAZY 11110# else 11111# ifdef DL_LAZY 11112# define LT_DLLAZY_OR_NOW DL_LAZY 11113# else 11114# ifdef RTLD_NOW 11115# define LT_DLLAZY_OR_NOW RTLD_NOW 11116# else 11117# ifdef DL_NOW 11118# define LT_DLLAZY_OR_NOW DL_NOW 11119# else 11120# define LT_DLLAZY_OR_NOW 0 11121# endif 11122# endif 11123# endif 11124# endif 11125#endif 11126 11127/* When -fvisbility=hidden is used, assume the code has been annotated 11128 correspondingly for the symbols needed. */ 11129#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11130int fnord () __attribute__((visibility("default"))); 11131#endif 11132 11133int fnord () { return 42; } 11134int main () 11135{ 11136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11137 int status = $lt_dlunknown; 11138 11139 if (self) 11140 { 11141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11142 else 11143 { 11144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11145 else puts (dlerror ()); 11146 } 11147 /* dlclose (self); */ 11148 } 11149 else 11150 puts (dlerror ()); 11151 11152 return status; 11153} 11154_LT_EOF 11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11156 (eval $ac_link) 2>&5 11157 ac_status=$? 11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11160 (./conftest; exit; ) >&5 2>/dev/null 11161 lt_status=$? 11162 case x$lt_status in 11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11166 esac 11167 else : 11168 # compilation failed 11169 lt_cv_dlopen_self=no 11170 fi 11171fi 11172rm -fr conftest* 11173 11174 11175fi 11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11177$as_echo "$lt_cv_dlopen_self" >&6; } 11178 11179 if test "x$lt_cv_dlopen_self" = xyes; then 11180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11182$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11183if ${lt_cv_dlopen_self_static+:} false; then : 11184 $as_echo_n "(cached) " >&6 11185else 11186 if test "$cross_compiling" = yes; then : 11187 lt_cv_dlopen_self_static=cross 11188else 11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11190 lt_status=$lt_dlunknown 11191 cat > conftest.$ac_ext <<_LT_EOF 11192#line $LINENO "configure" 11193#include "confdefs.h" 11194 11195#if HAVE_DLFCN_H 11196#include <dlfcn.h> 11197#endif 11198 11199#include <stdio.h> 11200 11201#ifdef RTLD_GLOBAL 11202# define LT_DLGLOBAL RTLD_GLOBAL 11203#else 11204# ifdef DL_GLOBAL 11205# define LT_DLGLOBAL DL_GLOBAL 11206# else 11207# define LT_DLGLOBAL 0 11208# endif 11209#endif 11210 11211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11212 find out it does not work in some platform. */ 11213#ifndef LT_DLLAZY_OR_NOW 11214# ifdef RTLD_LAZY 11215# define LT_DLLAZY_OR_NOW RTLD_LAZY 11216# else 11217# ifdef DL_LAZY 11218# define LT_DLLAZY_OR_NOW DL_LAZY 11219# else 11220# ifdef RTLD_NOW 11221# define LT_DLLAZY_OR_NOW RTLD_NOW 11222# else 11223# ifdef DL_NOW 11224# define LT_DLLAZY_OR_NOW DL_NOW 11225# else 11226# define LT_DLLAZY_OR_NOW 0 11227# endif 11228# endif 11229# endif 11230# endif 11231#endif 11232 11233/* When -fvisbility=hidden is used, assume the code has been annotated 11234 correspondingly for the symbols needed. */ 11235#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11236int fnord () __attribute__((visibility("default"))); 11237#endif 11238 11239int fnord () { return 42; } 11240int main () 11241{ 11242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11243 int status = $lt_dlunknown; 11244 11245 if (self) 11246 { 11247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11248 else 11249 { 11250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11251 else puts (dlerror ()); 11252 } 11253 /* dlclose (self); */ 11254 } 11255 else 11256 puts (dlerror ()); 11257 11258 return status; 11259} 11260_LT_EOF 11261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11262 (eval $ac_link) 2>&5 11263 ac_status=$? 11264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11266 (./conftest; exit; ) >&5 2>/dev/null 11267 lt_status=$? 11268 case x$lt_status in 11269 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11270 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11271 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11272 esac 11273 else : 11274 # compilation failed 11275 lt_cv_dlopen_self_static=no 11276 fi 11277fi 11278rm -fr conftest* 11279 11280 11281fi 11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11283$as_echo "$lt_cv_dlopen_self_static" >&6; } 11284 fi 11285 11286 CPPFLAGS="$save_CPPFLAGS" 11287 LDFLAGS="$save_LDFLAGS" 11288 LIBS="$save_LIBS" 11289 ;; 11290 esac 11291 11292 case $lt_cv_dlopen_self in 11293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11294 *) enable_dlopen_self=unknown ;; 11295 esac 11296 11297 case $lt_cv_dlopen_self_static in 11298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11299 *) enable_dlopen_self_static=unknown ;; 11300 esac 11301fi 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319striplib= 11320old_striplib= 11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11322$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11323if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11325 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11327$as_echo "yes" >&6; } 11328else 11329# FIXME - insert some real tests, host_os isn't really good enough 11330 case $host_os in 11331 darwin*) 11332 if test -n "$STRIP" ; then 11333 striplib="$STRIP -x" 11334 old_striplib="$STRIP -S" 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11336$as_echo "yes" >&6; } 11337 else 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11339$as_echo "no" >&6; } 11340 fi 11341 ;; 11342 *) 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11344$as_echo "no" >&6; } 11345 ;; 11346 esac 11347fi 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 # Report which library types will actually be built 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11362$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11364$as_echo "$can_build_shared" >&6; } 11365 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11367$as_echo_n "checking whether to build shared libraries... " >&6; } 11368 test "$can_build_shared" = "no" && enable_shared=no 11369 11370 # On AIX, shared libraries and static libraries use the same namespace, and 11371 # are all built from PIC. 11372 case $host_os in 11373 aix3*) 11374 test "$enable_shared" = yes && enable_static=no 11375 if test -n "$RANLIB"; then 11376 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11377 postinstall_cmds='$RANLIB $lib' 11378 fi 11379 ;; 11380 11381 aix[4-9]*) 11382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11383 test "$enable_shared" = yes && enable_static=no 11384 fi 11385 ;; 11386 esac 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11388$as_echo "$enable_shared" >&6; } 11389 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11391$as_echo_n "checking whether to build static libraries... " >&6; } 11392 # Make sure either enable_shared or enable_static is yes. 11393 test "$enable_shared" = yes || enable_static=yes 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11395$as_echo "$enable_static" >&6; } 11396 11397 11398 11399 11400fi 11401ac_ext=c 11402ac_cpp='$CPP $CPPFLAGS' 11403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11405ac_compiler_gnu=$ac_cv_c_compiler_gnu 11406 11407CC="$lt_save_CC" 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 ac_config_commands="$ac_config_commands libtool" 11424 11425 11426 11427 11428# Only expand once: 11429 11430 11431 11432# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11445$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11446if ${ac_cv_prog_cc_c99+:} false; then : 11447 $as_echo_n "(cached) " >&6 11448else 11449 ac_cv_prog_cc_c99=no 11450ac_save_CC=$CC 11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11452/* end confdefs.h. */ 11453#include <stdarg.h> 11454#include <stdbool.h> 11455#include <stdlib.h> 11456#include <wchar.h> 11457#include <stdio.h> 11458 11459// Check varargs macros. These examples are taken from C99 6.10.3.5. 11460#define debug(...) fprintf (stderr, __VA_ARGS__) 11461#define showlist(...) puts (#__VA_ARGS__) 11462#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11463static void 11464test_varargs_macros (void) 11465{ 11466 int x = 1234; 11467 int y = 5678; 11468 debug ("Flag"); 11469 debug ("X = %d\n", x); 11470 showlist (The first, second, and third items.); 11471 report (x>y, "x is %d but y is %d", x, y); 11472} 11473 11474// Check long long types. 11475#define BIG64 18446744073709551615ull 11476#define BIG32 4294967295ul 11477#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11478#if !BIG_OK 11479 your preprocessor is broken; 11480#endif 11481#if BIG_OK 11482#else 11483 your preprocessor is broken; 11484#endif 11485static long long int bignum = -9223372036854775807LL; 11486static unsigned long long int ubignum = BIG64; 11487 11488struct incomplete_array 11489{ 11490 int datasize; 11491 double data[]; 11492}; 11493 11494struct named_init { 11495 int number; 11496 const wchar_t *name; 11497 double average; 11498}; 11499 11500typedef const char *ccp; 11501 11502static inline int 11503test_restrict (ccp restrict text) 11504{ 11505 // See if C++-style comments work. 11506 // Iterate through items via the restricted pointer. 11507 // Also check for declarations in for loops. 11508 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11509 continue; 11510 return 0; 11511} 11512 11513// Check varargs and va_copy. 11514static void 11515test_varargs (const char *format, ...) 11516{ 11517 va_list args; 11518 va_start (args, format); 11519 va_list args_copy; 11520 va_copy (args_copy, args); 11521 11522 const char *str; 11523 int number; 11524 float fnumber; 11525 11526 while (*format) 11527 { 11528 switch (*format++) 11529 { 11530 case 's': // string 11531 str = va_arg (args_copy, const char *); 11532 break; 11533 case 'd': // int 11534 number = va_arg (args_copy, int); 11535 break; 11536 case 'f': // float 11537 fnumber = va_arg (args_copy, double); 11538 break; 11539 default: 11540 break; 11541 } 11542 } 11543 va_end (args_copy); 11544 va_end (args); 11545} 11546 11547int 11548main () 11549{ 11550 11551 // Check bool. 11552 _Bool success = false; 11553 11554 // Check restrict. 11555 if (test_restrict ("String literal") == 0) 11556 success = true; 11557 char *restrict newvar = "Another string"; 11558 11559 // Check varargs. 11560 test_varargs ("s, d' f .", "string", 65, 34.234); 11561 test_varargs_macros (); 11562 11563 // Check flexible array members. 11564 struct incomplete_array *ia = 11565 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11566 ia->datasize = 10; 11567 for (int i = 0; i < ia->datasize; ++i) 11568 ia->data[i] = i * 1.234; 11569 11570 // Check named initializers. 11571 struct named_init ni = { 11572 .number = 34, 11573 .name = L"Test wide string", 11574 .average = 543.34343, 11575 }; 11576 11577 ni.number = 58; 11578 11579 int dynamic_array[ni.number]; 11580 dynamic_array[ni.number - 1] = 543; 11581 11582 // work around unused variable warnings 11583 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11584 || dynamic_array[ni.number - 1] != 543); 11585 11586 ; 11587 return 0; 11588} 11589_ACEOF 11590for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11591do 11592 CC="$ac_save_CC $ac_arg" 11593 if ac_fn_c_try_compile "$LINENO"; then : 11594 ac_cv_prog_cc_c99=$ac_arg 11595fi 11596rm -f core conftest.err conftest.$ac_objext 11597 test "x$ac_cv_prog_cc_c99" != "xno" && break 11598done 11599rm -f conftest.$ac_ext 11600CC=$ac_save_CC 11601 11602fi 11603# AC_CACHE_VAL 11604case "x$ac_cv_prog_cc_c99" in 11605 x) 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11607$as_echo "none needed" >&6; } ;; 11608 xno) 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11610$as_echo "unsupported" >&6; } ;; 11611 *) 11612 CC="$CC $ac_cv_prog_cc_c99" 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11614$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11615esac 11616if test "x$ac_cv_prog_cc_c99" != xno; then : 11617 11618fi 11619 11620 11621 11622 11623 11624 11625ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11626if test "x$ac_cv_have_decl___clang__" = xyes; then : 11627 CLANGCC="yes" 11628else 11629 CLANGCC="no" 11630fi 11631 11632ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11633if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11634 INTELCC="yes" 11635else 11636 INTELCC="no" 11637fi 11638 11639ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11640if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11641 SUNCC="yes" 11642else 11643 SUNCC="no" 11644fi 11645 11646 11647 11648 11649if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11650 if test -n "$ac_tool_prefix"; then 11651 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11652set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11654$as_echo_n "checking for $ac_word... " >&6; } 11655if ${ac_cv_path_PKG_CONFIG+:} false; then : 11656 $as_echo_n "(cached) " >&6 11657else 11658 case $PKG_CONFIG in 11659 [\\/]* | ?:[\\/]*) 11660 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11661 ;; 11662 *) 11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11664for as_dir in $PATH 11665do 11666 IFS=$as_save_IFS 11667 test -z "$as_dir" && as_dir=. 11668 for ac_exec_ext in '' $ac_executable_extensions; do 11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11670 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11672 break 2 11673 fi 11674done 11675 done 11676IFS=$as_save_IFS 11677 11678 ;; 11679esac 11680fi 11681PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11682if test -n "$PKG_CONFIG"; then 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11684$as_echo "$PKG_CONFIG" >&6; } 11685else 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11687$as_echo "no" >&6; } 11688fi 11689 11690 11691fi 11692if test -z "$ac_cv_path_PKG_CONFIG"; then 11693 ac_pt_PKG_CONFIG=$PKG_CONFIG 11694 # Extract the first word of "pkg-config", so it can be a program name with args. 11695set dummy pkg-config; ac_word=$2 11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697$as_echo_n "checking for $ac_word... " >&6; } 11698if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 case $ac_pt_PKG_CONFIG in 11702 [\\/]* | ?:[\\/]*) 11703 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11704 ;; 11705 *) 11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11707for as_dir in $PATH 11708do 11709 IFS=$as_save_IFS 11710 test -z "$as_dir" && as_dir=. 11711 for ac_exec_ext in '' $ac_executable_extensions; do 11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11713 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11715 break 2 11716 fi 11717done 11718 done 11719IFS=$as_save_IFS 11720 11721 ;; 11722esac 11723fi 11724ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11725if test -n "$ac_pt_PKG_CONFIG"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11727$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11728else 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11730$as_echo "no" >&6; } 11731fi 11732 11733 if test "x$ac_pt_PKG_CONFIG" = x; then 11734 PKG_CONFIG="" 11735 else 11736 case $cross_compiling:$ac_tool_warned in 11737yes:) 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11740ac_tool_warned=yes ;; 11741esac 11742 PKG_CONFIG=$ac_pt_PKG_CONFIG 11743 fi 11744else 11745 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11746fi 11747 11748fi 11749if test -n "$PKG_CONFIG"; then 11750 _pkg_min_version=0.9.0 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11752$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11753 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11755$as_echo "yes" >&6; } 11756 else 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11758$as_echo "no" >&6; } 11759 PKG_CONFIG="" 11760 fi 11761 11762fi 11763 11764 11765 11766 11767 11768# Check whether --enable-selective-werror was given. 11769if test "${enable_selective_werror+set}" = set; then : 11770 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11771else 11772 SELECTIVE_WERROR=yes 11773fi 11774 11775 11776 11777 11778 11779# -v is too short to test reliably with XORG_TESTSET_CFLAG 11780if test "x$SUNCC" = "xyes"; then 11781 BASE_CFLAGS="-v" 11782else 11783 BASE_CFLAGS="" 11784fi 11785 11786# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800xorg_testset_save_CFLAGS="$CFLAGS" 11801 11802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11807 $as_echo_n "(cached) " >&6 11808else 11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11810/* end confdefs.h. */ 11811int i; 11812_ACEOF 11813if ac_fn_c_try_compile "$LINENO"; then : 11814 xorg_cv_cc_flag_unknown_warning_option=yes 11815else 11816 xorg_cv_cc_flag_unknown_warning_option=no 11817fi 11818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11819fi 11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11823 CFLAGS="$xorg_testset_save_CFLAGS" 11824fi 11825 11826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11829 fi 11830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835else 11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11837/* end confdefs.h. */ 11838int i; 11839_ACEOF 11840if ac_fn_c_try_compile "$LINENO"; then : 11841 xorg_cv_cc_flag_unused_command_line_argument=yes 11842else 11843 xorg_cv_cc_flag_unused_command_line_argument=no 11844fi 11845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11846fi 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11850 CFLAGS="$xorg_testset_save_CFLAGS" 11851fi 11852 11853found="no" 11854 11855 if test $found = "no" ; then 11856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11858 fi 11859 11860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11862 fi 11863 11864 CFLAGS="$CFLAGS -Wall" 11865 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11867$as_echo_n "checking if $CC supports -Wall... " >&6; } 11868 cacheid=xorg_cv_cc_flag__Wall 11869 if eval \${$cacheid+:} false; then : 11870 $as_echo_n "(cached) " >&6 11871else 11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874int i; 11875int 11876main () 11877{ 11878 11879 ; 11880 return 0; 11881} 11882_ACEOF 11883if ac_fn_c_try_link "$LINENO"; then : 11884 eval $cacheid=yes 11885else 11886 eval $cacheid=no 11887fi 11888rm -f core conftest.err conftest.$ac_objext \ 11889 conftest$ac_exeext conftest.$ac_ext 11890fi 11891 11892 11893 CFLAGS="$xorg_testset_save_CFLAGS" 11894 11895 eval supported=\$$cacheid 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11897$as_echo "$supported" >&6; } 11898 if test "$supported" = "yes" ; then 11899 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11900 found="yes" 11901 fi 11902 fi 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918xorg_testset_save_CFLAGS="$CFLAGS" 11919 11920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11928/* end confdefs.h. */ 11929int i; 11930_ACEOF 11931if ac_fn_c_try_compile "$LINENO"; then : 11932 xorg_cv_cc_flag_unknown_warning_option=yes 11933else 11934 xorg_cv_cc_flag_unknown_warning_option=no 11935fi 11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11937fi 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11941 CFLAGS="$xorg_testset_save_CFLAGS" 11942fi 11943 11944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11947 fi 11948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11955/* end confdefs.h. */ 11956int i; 11957_ACEOF 11958if ac_fn_c_try_compile "$LINENO"; then : 11959 xorg_cv_cc_flag_unused_command_line_argument=yes 11960else 11961 xorg_cv_cc_flag_unused_command_line_argument=no 11962fi 11963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11964fi 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11968 CFLAGS="$xorg_testset_save_CFLAGS" 11969fi 11970 11971found="no" 11972 11973 if test $found = "no" ; then 11974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11976 fi 11977 11978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11980 fi 11981 11982 CFLAGS="$CFLAGS -Wpointer-arith" 11983 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11985$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11986 cacheid=xorg_cv_cc_flag__Wpointer_arith 11987 if eval \${$cacheid+:} false; then : 11988 $as_echo_n "(cached) " >&6 11989else 11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11991/* end confdefs.h. */ 11992int i; 11993int 11994main () 11995{ 11996 11997 ; 11998 return 0; 11999} 12000_ACEOF 12001if ac_fn_c_try_link "$LINENO"; then : 12002 eval $cacheid=yes 12003else 12004 eval $cacheid=no 12005fi 12006rm -f core conftest.err conftest.$ac_objext \ 12007 conftest$ac_exeext conftest.$ac_ext 12008fi 12009 12010 12011 CFLAGS="$xorg_testset_save_CFLAGS" 12012 12013 eval supported=\$$cacheid 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12015$as_echo "$supported" >&6; } 12016 if test "$supported" = "yes" ; then 12017 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12018 found="yes" 12019 fi 12020 fi 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036xorg_testset_save_CFLAGS="$CFLAGS" 12037 12038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12046/* end confdefs.h. */ 12047int i; 12048_ACEOF 12049if ac_fn_c_try_compile "$LINENO"; then : 12050 xorg_cv_cc_flag_unknown_warning_option=yes 12051else 12052 xorg_cv_cc_flag_unknown_warning_option=no 12053fi 12054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12055fi 12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12059 CFLAGS="$xorg_testset_save_CFLAGS" 12060fi 12061 12062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12065 fi 12066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12070 $as_echo_n "(cached) " >&6 12071else 12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12073/* end confdefs.h. */ 12074int i; 12075_ACEOF 12076if ac_fn_c_try_compile "$LINENO"; then : 12077 xorg_cv_cc_flag_unused_command_line_argument=yes 12078else 12079 xorg_cv_cc_flag_unused_command_line_argument=no 12080fi 12081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12082fi 12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12086 CFLAGS="$xorg_testset_save_CFLAGS" 12087fi 12088 12089found="no" 12090 12091 if test $found = "no" ; then 12092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12094 fi 12095 12096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12098 fi 12099 12100 CFLAGS="$CFLAGS -Wmissing-declarations" 12101 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12103$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12104 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12105 if eval \${$cacheid+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107else 12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110int i; 12111int 12112main () 12113{ 12114 12115 ; 12116 return 0; 12117} 12118_ACEOF 12119if ac_fn_c_try_link "$LINENO"; then : 12120 eval $cacheid=yes 12121else 12122 eval $cacheid=no 12123fi 12124rm -f core conftest.err conftest.$ac_objext \ 12125 conftest$ac_exeext conftest.$ac_ext 12126fi 12127 12128 12129 CFLAGS="$xorg_testset_save_CFLAGS" 12130 12131 eval supported=\$$cacheid 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12133$as_echo "$supported" >&6; } 12134 if test "$supported" = "yes" ; then 12135 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12136 found="yes" 12137 fi 12138 fi 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154xorg_testset_save_CFLAGS="$CFLAGS" 12155 12156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12161 $as_echo_n "(cached) " >&6 12162else 12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164/* end confdefs.h. */ 12165int i; 12166_ACEOF 12167if ac_fn_c_try_compile "$LINENO"; then : 12168 xorg_cv_cc_flag_unknown_warning_option=yes 12169else 12170 xorg_cv_cc_flag_unknown_warning_option=no 12171fi 12172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12173fi 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12177 CFLAGS="$xorg_testset_save_CFLAGS" 12178fi 12179 12180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12183 fi 12184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12188 $as_echo_n "(cached) " >&6 12189else 12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12191/* end confdefs.h. */ 12192int i; 12193_ACEOF 12194if ac_fn_c_try_compile "$LINENO"; then : 12195 xorg_cv_cc_flag_unused_command_line_argument=yes 12196else 12197 xorg_cv_cc_flag_unused_command_line_argument=no 12198fi 12199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12200fi 12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12204 CFLAGS="$xorg_testset_save_CFLAGS" 12205fi 12206 12207found="no" 12208 12209 if test $found = "no" ; then 12210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12212 fi 12213 12214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12216 fi 12217 12218 CFLAGS="$CFLAGS -Wformat=2" 12219 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12221$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12222 cacheid=xorg_cv_cc_flag__Wformat_2 12223 if eval \${$cacheid+:} false; then : 12224 $as_echo_n "(cached) " >&6 12225else 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228int i; 12229int 12230main () 12231{ 12232 12233 ; 12234 return 0; 12235} 12236_ACEOF 12237if ac_fn_c_try_link "$LINENO"; then : 12238 eval $cacheid=yes 12239else 12240 eval $cacheid=no 12241fi 12242rm -f core conftest.err conftest.$ac_objext \ 12243 conftest$ac_exeext conftest.$ac_ext 12244fi 12245 12246 12247 CFLAGS="$xorg_testset_save_CFLAGS" 12248 12249 eval supported=\$$cacheid 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12251$as_echo "$supported" >&6; } 12252 if test "$supported" = "yes" ; then 12253 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12254 found="yes" 12255 fi 12256 fi 12257 12258 if test $found = "no" ; then 12259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12261 fi 12262 12263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12265 fi 12266 12267 CFLAGS="$CFLAGS -Wformat" 12268 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12270$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12271 cacheid=xorg_cv_cc_flag__Wformat 12272 if eval \${$cacheid+:} false; then : 12273 $as_echo_n "(cached) " >&6 12274else 12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277int i; 12278int 12279main () 12280{ 12281 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_link "$LINENO"; then : 12287 eval $cacheid=yes 12288else 12289 eval $cacheid=no 12290fi 12291rm -f core conftest.err conftest.$ac_objext \ 12292 conftest$ac_exeext conftest.$ac_ext 12293fi 12294 12295 12296 CFLAGS="$xorg_testset_save_CFLAGS" 12297 12298 eval supported=\$$cacheid 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12300$as_echo "$supported" >&6; } 12301 if test "$supported" = "yes" ; then 12302 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12303 found="yes" 12304 fi 12305 fi 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323xorg_testset_save_CFLAGS="$CFLAGS" 12324 12325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12330 $as_echo_n "(cached) " >&6 12331else 12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12333/* end confdefs.h. */ 12334int i; 12335_ACEOF 12336if ac_fn_c_try_compile "$LINENO"; then : 12337 xorg_cv_cc_flag_unknown_warning_option=yes 12338else 12339 xorg_cv_cc_flag_unknown_warning_option=no 12340fi 12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12342fi 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12346 CFLAGS="$xorg_testset_save_CFLAGS" 12347fi 12348 12349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12352 fi 12353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12357 $as_echo_n "(cached) " >&6 12358else 12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361int i; 12362_ACEOF 12363if ac_fn_c_try_compile "$LINENO"; then : 12364 xorg_cv_cc_flag_unused_command_line_argument=yes 12365else 12366 xorg_cv_cc_flag_unused_command_line_argument=no 12367fi 12368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12369fi 12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12373 CFLAGS="$xorg_testset_save_CFLAGS" 12374fi 12375 12376found="no" 12377 12378 if test $found = "no" ; then 12379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12381 fi 12382 12383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12385 fi 12386 12387 CFLAGS="$CFLAGS -Wstrict-prototypes" 12388 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12390$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12391 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12392 if eval \${$cacheid+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394else 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397int i; 12398int 12399main () 12400{ 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_link "$LINENO"; then : 12407 eval $cacheid=yes 12408else 12409 eval $cacheid=no 12410fi 12411rm -f core conftest.err conftest.$ac_objext \ 12412 conftest$ac_exeext conftest.$ac_ext 12413fi 12414 12415 12416 CFLAGS="$xorg_testset_save_CFLAGS" 12417 12418 eval supported=\$$cacheid 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12420$as_echo "$supported" >&6; } 12421 if test "$supported" = "yes" ; then 12422 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12423 found="yes" 12424 fi 12425 fi 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441xorg_testset_save_CFLAGS="$CFLAGS" 12442 12443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12448 $as_echo_n "(cached) " >&6 12449else 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12451/* end confdefs.h. */ 12452int i; 12453_ACEOF 12454if ac_fn_c_try_compile "$LINENO"; then : 12455 xorg_cv_cc_flag_unknown_warning_option=yes 12456else 12457 xorg_cv_cc_flag_unknown_warning_option=no 12458fi 12459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12460fi 12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12464 CFLAGS="$xorg_testset_save_CFLAGS" 12465fi 12466 12467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12470 fi 12471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12475 $as_echo_n "(cached) " >&6 12476else 12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12478/* end confdefs.h. */ 12479int i; 12480_ACEOF 12481if ac_fn_c_try_compile "$LINENO"; then : 12482 xorg_cv_cc_flag_unused_command_line_argument=yes 12483else 12484 xorg_cv_cc_flag_unused_command_line_argument=no 12485fi 12486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12487fi 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12491 CFLAGS="$xorg_testset_save_CFLAGS" 12492fi 12493 12494found="no" 12495 12496 if test $found = "no" ; then 12497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12499 fi 12500 12501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12503 fi 12504 12505 CFLAGS="$CFLAGS -Wmissing-prototypes" 12506 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12508$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12509 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12510 if eval \${$cacheid+:} false; then : 12511 $as_echo_n "(cached) " >&6 12512else 12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515int i; 12516int 12517main () 12518{ 12519 12520 ; 12521 return 0; 12522} 12523_ACEOF 12524if ac_fn_c_try_link "$LINENO"; then : 12525 eval $cacheid=yes 12526else 12527 eval $cacheid=no 12528fi 12529rm -f core conftest.err conftest.$ac_objext \ 12530 conftest$ac_exeext conftest.$ac_ext 12531fi 12532 12533 12534 CFLAGS="$xorg_testset_save_CFLAGS" 12535 12536 eval supported=\$$cacheid 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12538$as_echo "$supported" >&6; } 12539 if test "$supported" = "yes" ; then 12540 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12541 found="yes" 12542 fi 12543 fi 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559xorg_testset_save_CFLAGS="$CFLAGS" 12560 12561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12566 $as_echo_n "(cached) " >&6 12567else 12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12569/* end confdefs.h. */ 12570int i; 12571_ACEOF 12572if ac_fn_c_try_compile "$LINENO"; then : 12573 xorg_cv_cc_flag_unknown_warning_option=yes 12574else 12575 xorg_cv_cc_flag_unknown_warning_option=no 12576fi 12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12578fi 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12582 CFLAGS="$xorg_testset_save_CFLAGS" 12583fi 12584 12585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12588 fi 12589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12593 $as_echo_n "(cached) " >&6 12594else 12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12596/* end confdefs.h. */ 12597int i; 12598_ACEOF 12599if ac_fn_c_try_compile "$LINENO"; then : 12600 xorg_cv_cc_flag_unused_command_line_argument=yes 12601else 12602 xorg_cv_cc_flag_unused_command_line_argument=no 12603fi 12604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12605fi 12606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12609 CFLAGS="$xorg_testset_save_CFLAGS" 12610fi 12611 12612found="no" 12613 12614 if test $found = "no" ; then 12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12617 fi 12618 12619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12621 fi 12622 12623 CFLAGS="$CFLAGS -Wnested-externs" 12624 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12626$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12627 cacheid=xorg_cv_cc_flag__Wnested_externs 12628 if eval \${$cacheid+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12632/* end confdefs.h. */ 12633int i; 12634int 12635main () 12636{ 12637 12638 ; 12639 return 0; 12640} 12641_ACEOF 12642if ac_fn_c_try_link "$LINENO"; then : 12643 eval $cacheid=yes 12644else 12645 eval $cacheid=no 12646fi 12647rm -f core conftest.err conftest.$ac_objext \ 12648 conftest$ac_exeext conftest.$ac_ext 12649fi 12650 12651 12652 CFLAGS="$xorg_testset_save_CFLAGS" 12653 12654 eval supported=\$$cacheid 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12656$as_echo "$supported" >&6; } 12657 if test "$supported" = "yes" ; then 12658 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12659 found="yes" 12660 fi 12661 fi 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677xorg_testset_save_CFLAGS="$CFLAGS" 12678 12679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685else 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688int i; 12689_ACEOF 12690if ac_fn_c_try_compile "$LINENO"; then : 12691 xorg_cv_cc_flag_unknown_warning_option=yes 12692else 12693 xorg_cv_cc_flag_unknown_warning_option=no 12694fi 12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12696fi 12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12700 CFLAGS="$xorg_testset_save_CFLAGS" 12701fi 12702 12703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12706 fi 12707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12711 $as_echo_n "(cached) " >&6 12712else 12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12714/* end confdefs.h. */ 12715int i; 12716_ACEOF 12717if ac_fn_c_try_compile "$LINENO"; then : 12718 xorg_cv_cc_flag_unused_command_line_argument=yes 12719else 12720 xorg_cv_cc_flag_unused_command_line_argument=no 12721fi 12722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12727 CFLAGS="$xorg_testset_save_CFLAGS" 12728fi 12729 12730found="no" 12731 12732 if test $found = "no" ; then 12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12735 fi 12736 12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12739 fi 12740 12741 CFLAGS="$CFLAGS -Wbad-function-cast" 12742 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12744$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12745 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12746 if eval \${$cacheid+:} false; then : 12747 $as_echo_n "(cached) " >&6 12748else 12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12750/* end confdefs.h. */ 12751int i; 12752int 12753main () 12754{ 12755 12756 ; 12757 return 0; 12758} 12759_ACEOF 12760if ac_fn_c_try_link "$LINENO"; then : 12761 eval $cacheid=yes 12762else 12763 eval $cacheid=no 12764fi 12765rm -f core conftest.err conftest.$ac_objext \ 12766 conftest$ac_exeext conftest.$ac_ext 12767fi 12768 12769 12770 CFLAGS="$xorg_testset_save_CFLAGS" 12771 12772 eval supported=\$$cacheid 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12774$as_echo "$supported" >&6; } 12775 if test "$supported" = "yes" ; then 12776 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12777 found="yes" 12778 fi 12779 fi 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795xorg_testset_save_CFLAGS="$CFLAGS" 12796 12797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805/* end confdefs.h. */ 12806int i; 12807_ACEOF 12808if ac_fn_c_try_compile "$LINENO"; then : 12809 xorg_cv_cc_flag_unknown_warning_option=yes 12810else 12811 xorg_cv_cc_flag_unknown_warning_option=no 12812fi 12813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12814fi 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12818 CFLAGS="$xorg_testset_save_CFLAGS" 12819fi 12820 12821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12824 fi 12825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12829 $as_echo_n "(cached) " >&6 12830else 12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12832/* end confdefs.h. */ 12833int i; 12834_ACEOF 12835if ac_fn_c_try_compile "$LINENO"; then : 12836 xorg_cv_cc_flag_unused_command_line_argument=yes 12837else 12838 xorg_cv_cc_flag_unused_command_line_argument=no 12839fi 12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12841fi 12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12845 CFLAGS="$xorg_testset_save_CFLAGS" 12846fi 12847 12848found="no" 12849 12850 if test $found = "no" ; then 12851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12853 fi 12854 12855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12857 fi 12858 12859 CFLAGS="$CFLAGS -Wold-style-definition" 12860 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12862$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12863 cacheid=xorg_cv_cc_flag__Wold_style_definition 12864 if eval \${$cacheid+:} false; then : 12865 $as_echo_n "(cached) " >&6 12866else 12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12868/* end confdefs.h. */ 12869int i; 12870int 12871main () 12872{ 12873 12874 ; 12875 return 0; 12876} 12877_ACEOF 12878if ac_fn_c_try_link "$LINENO"; then : 12879 eval $cacheid=yes 12880else 12881 eval $cacheid=no 12882fi 12883rm -f core conftest.err conftest.$ac_objext \ 12884 conftest$ac_exeext conftest.$ac_ext 12885fi 12886 12887 12888 CFLAGS="$xorg_testset_save_CFLAGS" 12889 12890 eval supported=\$$cacheid 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12892$as_echo "$supported" >&6; } 12893 if test "$supported" = "yes" ; then 12894 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12895 found="yes" 12896 fi 12897 fi 12898 12899 if test $found = "no" ; then 12900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12902 fi 12903 12904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12906 fi 12907 12908 CFLAGS="$CFLAGS -fd" 12909 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 12911$as_echo_n "checking if $CC supports -fd... " >&6; } 12912 cacheid=xorg_cv_cc_flag__fd 12913 if eval \${$cacheid+:} false; then : 12914 $as_echo_n "(cached) " >&6 12915else 12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12917/* end confdefs.h. */ 12918int i; 12919int 12920main () 12921{ 12922 12923 ; 12924 return 0; 12925} 12926_ACEOF 12927if ac_fn_c_try_link "$LINENO"; then : 12928 eval $cacheid=yes 12929else 12930 eval $cacheid=no 12931fi 12932rm -f core conftest.err conftest.$ac_objext \ 12933 conftest$ac_exeext conftest.$ac_ext 12934fi 12935 12936 12937 CFLAGS="$xorg_testset_save_CFLAGS" 12938 12939 eval supported=\$$cacheid 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12941$as_echo "$supported" >&6; } 12942 if test "$supported" = "yes" ; then 12943 BASE_CFLAGS="$BASE_CFLAGS -fd" 12944 found="yes" 12945 fi 12946 fi 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962xorg_testset_save_CFLAGS="$CFLAGS" 12963 12964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12969 $as_echo_n "(cached) " >&6 12970else 12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972/* end confdefs.h. */ 12973int i; 12974_ACEOF 12975if ac_fn_c_try_compile "$LINENO"; then : 12976 xorg_cv_cc_flag_unknown_warning_option=yes 12977else 12978 xorg_cv_cc_flag_unknown_warning_option=no 12979fi 12980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12981fi 12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12985 CFLAGS="$xorg_testset_save_CFLAGS" 12986fi 12987 12988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12991 fi 12992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12996 $as_echo_n "(cached) " >&6 12997else 12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12999/* end confdefs.h. */ 13000int i; 13001_ACEOF 13002if ac_fn_c_try_compile "$LINENO"; then : 13003 xorg_cv_cc_flag_unused_command_line_argument=yes 13004else 13005 xorg_cv_cc_flag_unused_command_line_argument=no 13006fi 13007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13008fi 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13012 CFLAGS="$xorg_testset_save_CFLAGS" 13013fi 13014 13015found="no" 13016 13017 if test $found = "no" ; then 13018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13020 fi 13021 13022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13024 fi 13025 13026 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13027 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13029$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13030 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13031 if eval \${$cacheid+:} false; then : 13032 $as_echo_n "(cached) " >&6 13033else 13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13035/* end confdefs.h. */ 13036int i; 13037int 13038main () 13039{ 13040 13041 ; 13042 return 0; 13043} 13044_ACEOF 13045if ac_fn_c_try_link "$LINENO"; then : 13046 eval $cacheid=yes 13047else 13048 eval $cacheid=no 13049fi 13050rm -f core conftest.err conftest.$ac_objext \ 13051 conftest$ac_exeext conftest.$ac_ext 13052fi 13053 13054 13055 CFLAGS="$xorg_testset_save_CFLAGS" 13056 13057 eval supported=\$$cacheid 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13059$as_echo "$supported" >&6; } 13060 if test "$supported" = "yes" ; then 13061 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13062 found="yes" 13063 fi 13064 fi 13065 13066 13067 13068 13069 13070# This chunk adds additional warnings that could catch undesired effects. 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084xorg_testset_save_CFLAGS="$CFLAGS" 13085 13086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13091 $as_echo_n "(cached) " >&6 13092else 13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094/* end confdefs.h. */ 13095int i; 13096_ACEOF 13097if ac_fn_c_try_compile "$LINENO"; then : 13098 xorg_cv_cc_flag_unknown_warning_option=yes 13099else 13100 xorg_cv_cc_flag_unknown_warning_option=no 13101fi 13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13103fi 13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13107 CFLAGS="$xorg_testset_save_CFLAGS" 13108fi 13109 13110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13113 fi 13114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13118 $as_echo_n "(cached) " >&6 13119else 13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13121/* end confdefs.h. */ 13122int i; 13123_ACEOF 13124if ac_fn_c_try_compile "$LINENO"; then : 13125 xorg_cv_cc_flag_unused_command_line_argument=yes 13126else 13127 xorg_cv_cc_flag_unused_command_line_argument=no 13128fi 13129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13130fi 13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13134 CFLAGS="$xorg_testset_save_CFLAGS" 13135fi 13136 13137found="no" 13138 13139 if test $found = "no" ; then 13140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13142 fi 13143 13144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13146 fi 13147 13148 CFLAGS="$CFLAGS -Wunused" 13149 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13151$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13152 cacheid=xorg_cv_cc_flag__Wunused 13153 if eval \${$cacheid+:} false; then : 13154 $as_echo_n "(cached) " >&6 13155else 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157/* end confdefs.h. */ 13158int i; 13159int 13160main () 13161{ 13162 13163 ; 13164 return 0; 13165} 13166_ACEOF 13167if ac_fn_c_try_link "$LINENO"; then : 13168 eval $cacheid=yes 13169else 13170 eval $cacheid=no 13171fi 13172rm -f core conftest.err conftest.$ac_objext \ 13173 conftest$ac_exeext conftest.$ac_ext 13174fi 13175 13176 13177 CFLAGS="$xorg_testset_save_CFLAGS" 13178 13179 eval supported=\$$cacheid 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13181$as_echo "$supported" >&6; } 13182 if test "$supported" = "yes" ; then 13183 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13184 found="yes" 13185 fi 13186 fi 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202xorg_testset_save_CFLAGS="$CFLAGS" 13203 13204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13209 $as_echo_n "(cached) " >&6 13210else 13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213int i; 13214_ACEOF 13215if ac_fn_c_try_compile "$LINENO"; then : 13216 xorg_cv_cc_flag_unknown_warning_option=yes 13217else 13218 xorg_cv_cc_flag_unknown_warning_option=no 13219fi 13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13221fi 13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13225 CFLAGS="$xorg_testset_save_CFLAGS" 13226fi 13227 13228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13231 fi 13232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13239/* end confdefs.h. */ 13240int i; 13241_ACEOF 13242if ac_fn_c_try_compile "$LINENO"; then : 13243 xorg_cv_cc_flag_unused_command_line_argument=yes 13244else 13245 xorg_cv_cc_flag_unused_command_line_argument=no 13246fi 13247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13248fi 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13252 CFLAGS="$xorg_testset_save_CFLAGS" 13253fi 13254 13255found="no" 13256 13257 if test $found = "no" ; then 13258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13260 fi 13261 13262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13264 fi 13265 13266 CFLAGS="$CFLAGS -Wuninitialized" 13267 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13269$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13270 cacheid=xorg_cv_cc_flag__Wuninitialized 13271 if eval \${$cacheid+:} false; then : 13272 $as_echo_n "(cached) " >&6 13273else 13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13275/* end confdefs.h. */ 13276int i; 13277int 13278main () 13279{ 13280 13281 ; 13282 return 0; 13283} 13284_ACEOF 13285if ac_fn_c_try_link "$LINENO"; then : 13286 eval $cacheid=yes 13287else 13288 eval $cacheid=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext \ 13291 conftest$ac_exeext conftest.$ac_ext 13292fi 13293 13294 13295 CFLAGS="$xorg_testset_save_CFLAGS" 13296 13297 eval supported=\$$cacheid 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13299$as_echo "$supported" >&6; } 13300 if test "$supported" = "yes" ; then 13301 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13302 found="yes" 13303 fi 13304 fi 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320xorg_testset_save_CFLAGS="$CFLAGS" 13321 13322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13327 $as_echo_n "(cached) " >&6 13328else 13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13330/* end confdefs.h. */ 13331int i; 13332_ACEOF 13333if ac_fn_c_try_compile "$LINENO"; then : 13334 xorg_cv_cc_flag_unknown_warning_option=yes 13335else 13336 xorg_cv_cc_flag_unknown_warning_option=no 13337fi 13338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13339fi 13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13343 CFLAGS="$xorg_testset_save_CFLAGS" 13344fi 13345 13346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13349 fi 13350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13354 $as_echo_n "(cached) " >&6 13355else 13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13357/* end confdefs.h. */ 13358int i; 13359_ACEOF 13360if ac_fn_c_try_compile "$LINENO"; then : 13361 xorg_cv_cc_flag_unused_command_line_argument=yes 13362else 13363 xorg_cv_cc_flag_unused_command_line_argument=no 13364fi 13365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13366fi 13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13370 CFLAGS="$xorg_testset_save_CFLAGS" 13371fi 13372 13373found="no" 13374 13375 if test $found = "no" ; then 13376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13378 fi 13379 13380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13382 fi 13383 13384 CFLAGS="$CFLAGS -Wshadow" 13385 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13387$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13388 cacheid=xorg_cv_cc_flag__Wshadow 13389 if eval \${$cacheid+:} false; then : 13390 $as_echo_n "(cached) " >&6 13391else 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13393/* end confdefs.h. */ 13394int i; 13395int 13396main () 13397{ 13398 13399 ; 13400 return 0; 13401} 13402_ACEOF 13403if ac_fn_c_try_link "$LINENO"; then : 13404 eval $cacheid=yes 13405else 13406 eval $cacheid=no 13407fi 13408rm -f core conftest.err conftest.$ac_objext \ 13409 conftest$ac_exeext conftest.$ac_ext 13410fi 13411 13412 13413 CFLAGS="$xorg_testset_save_CFLAGS" 13414 13415 eval supported=\$$cacheid 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13417$as_echo "$supported" >&6; } 13418 if test "$supported" = "yes" ; then 13419 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13420 found="yes" 13421 fi 13422 fi 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438xorg_testset_save_CFLAGS="$CFLAGS" 13439 13440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13445 $as_echo_n "(cached) " >&6 13446else 13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13448/* end confdefs.h. */ 13449int i; 13450_ACEOF 13451if ac_fn_c_try_compile "$LINENO"; then : 13452 xorg_cv_cc_flag_unknown_warning_option=yes 13453else 13454 xorg_cv_cc_flag_unknown_warning_option=no 13455fi 13456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13457fi 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13461 CFLAGS="$xorg_testset_save_CFLAGS" 13462fi 13463 13464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13467 fi 13468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13475/* end confdefs.h. */ 13476int i; 13477_ACEOF 13478if ac_fn_c_try_compile "$LINENO"; then : 13479 xorg_cv_cc_flag_unused_command_line_argument=yes 13480else 13481 xorg_cv_cc_flag_unused_command_line_argument=no 13482fi 13483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13484fi 13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13488 CFLAGS="$xorg_testset_save_CFLAGS" 13489fi 13490 13491found="no" 13492 13493 if test $found = "no" ; then 13494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13496 fi 13497 13498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13500 fi 13501 13502 CFLAGS="$CFLAGS -Wmissing-noreturn" 13503 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13505$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13506 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13507 if eval \${$cacheid+:} false; then : 13508 $as_echo_n "(cached) " >&6 13509else 13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13511/* end confdefs.h. */ 13512int i; 13513int 13514main () 13515{ 13516 13517 ; 13518 return 0; 13519} 13520_ACEOF 13521if ac_fn_c_try_link "$LINENO"; then : 13522 eval $cacheid=yes 13523else 13524 eval $cacheid=no 13525fi 13526rm -f core conftest.err conftest.$ac_objext \ 13527 conftest$ac_exeext conftest.$ac_ext 13528fi 13529 13530 13531 CFLAGS="$xorg_testset_save_CFLAGS" 13532 13533 eval supported=\$$cacheid 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13535$as_echo "$supported" >&6; } 13536 if test "$supported" = "yes" ; then 13537 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13538 found="yes" 13539 fi 13540 fi 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556xorg_testset_save_CFLAGS="$CFLAGS" 13557 13558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13563 $as_echo_n "(cached) " >&6 13564else 13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13566/* end confdefs.h. */ 13567int i; 13568_ACEOF 13569if ac_fn_c_try_compile "$LINENO"; then : 13570 xorg_cv_cc_flag_unknown_warning_option=yes 13571else 13572 xorg_cv_cc_flag_unknown_warning_option=no 13573fi 13574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13575fi 13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13579 CFLAGS="$xorg_testset_save_CFLAGS" 13580fi 13581 13582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13585 fi 13586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13590 $as_echo_n "(cached) " >&6 13591else 13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13593/* end confdefs.h. */ 13594int i; 13595_ACEOF 13596if ac_fn_c_try_compile "$LINENO"; then : 13597 xorg_cv_cc_flag_unused_command_line_argument=yes 13598else 13599 xorg_cv_cc_flag_unused_command_line_argument=no 13600fi 13601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13602fi 13603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13606 CFLAGS="$xorg_testset_save_CFLAGS" 13607fi 13608 13609found="no" 13610 13611 if test $found = "no" ; then 13612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13614 fi 13615 13616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13618 fi 13619 13620 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13621 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13623$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13624 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13625 if eval \${$cacheid+:} false; then : 13626 $as_echo_n "(cached) " >&6 13627else 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630int i; 13631int 13632main () 13633{ 13634 13635 ; 13636 return 0; 13637} 13638_ACEOF 13639if ac_fn_c_try_link "$LINENO"; then : 13640 eval $cacheid=yes 13641else 13642 eval $cacheid=no 13643fi 13644rm -f core conftest.err conftest.$ac_objext \ 13645 conftest$ac_exeext conftest.$ac_ext 13646fi 13647 13648 13649 CFLAGS="$xorg_testset_save_CFLAGS" 13650 13651 eval supported=\$$cacheid 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13653$as_echo "$supported" >&6; } 13654 if test "$supported" = "yes" ; then 13655 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13656 found="yes" 13657 fi 13658 fi 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674xorg_testset_save_CFLAGS="$CFLAGS" 13675 13676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13681 $as_echo_n "(cached) " >&6 13682else 13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13684/* end confdefs.h. */ 13685int i; 13686_ACEOF 13687if ac_fn_c_try_compile "$LINENO"; then : 13688 xorg_cv_cc_flag_unknown_warning_option=yes 13689else 13690 xorg_cv_cc_flag_unknown_warning_option=no 13691fi 13692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13693fi 13694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13697 CFLAGS="$xorg_testset_save_CFLAGS" 13698fi 13699 13700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13703 fi 13704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13708 $as_echo_n "(cached) " >&6 13709else 13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13711/* end confdefs.h. */ 13712int i; 13713_ACEOF 13714if ac_fn_c_try_compile "$LINENO"; then : 13715 xorg_cv_cc_flag_unused_command_line_argument=yes 13716else 13717 xorg_cv_cc_flag_unused_command_line_argument=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13720fi 13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13724 CFLAGS="$xorg_testset_save_CFLAGS" 13725fi 13726 13727found="no" 13728 13729 if test $found = "no" ; then 13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13732 fi 13733 13734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13736 fi 13737 13738 CFLAGS="$CFLAGS -Wredundant-decls" 13739 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13741$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13742 cacheid=xorg_cv_cc_flag__Wredundant_decls 13743 if eval \${$cacheid+:} false; then : 13744 $as_echo_n "(cached) " >&6 13745else 13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13747/* end confdefs.h. */ 13748int i; 13749int 13750main () 13751{ 13752 13753 ; 13754 return 0; 13755} 13756_ACEOF 13757if ac_fn_c_try_link "$LINENO"; then : 13758 eval $cacheid=yes 13759else 13760 eval $cacheid=no 13761fi 13762rm -f core conftest.err conftest.$ac_objext \ 13763 conftest$ac_exeext conftest.$ac_ext 13764fi 13765 13766 13767 CFLAGS="$xorg_testset_save_CFLAGS" 13768 13769 eval supported=\$$cacheid 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13771$as_echo "$supported" >&6; } 13772 if test "$supported" = "yes" ; then 13773 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13774 found="yes" 13775 fi 13776 fi 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792xorg_testset_save_CFLAGS="$CFLAGS" 13793 13794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800else 13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13802/* end confdefs.h. */ 13803int i; 13804_ACEOF 13805if ac_fn_c_try_compile "$LINENO"; then : 13806 xorg_cv_cc_flag_unknown_warning_option=yes 13807else 13808 xorg_cv_cc_flag_unknown_warning_option=no 13809fi 13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13811fi 13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13815 CFLAGS="$xorg_testset_save_CFLAGS" 13816fi 13817 13818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13821 fi 13822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13829/* end confdefs.h. */ 13830int i; 13831_ACEOF 13832if ac_fn_c_try_compile "$LINENO"; then : 13833 xorg_cv_cc_flag_unused_command_line_argument=yes 13834else 13835 xorg_cv_cc_flag_unused_command_line_argument=no 13836fi 13837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13838fi 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13842 CFLAGS="$xorg_testset_save_CFLAGS" 13843fi 13844 13845found="no" 13846 13847 if test $found = "no" ; then 13848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13850 fi 13851 13852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13854 fi 13855 13856 CFLAGS="$CFLAGS -Wlogical-op" 13857 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 13859$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 13860 cacheid=xorg_cv_cc_flag__Wlogical_op 13861 if eval \${$cacheid+:} false; then : 13862 $as_echo_n "(cached) " >&6 13863else 13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13865/* end confdefs.h. */ 13866int i; 13867int 13868main () 13869{ 13870 13871 ; 13872 return 0; 13873} 13874_ACEOF 13875if ac_fn_c_try_link "$LINENO"; then : 13876 eval $cacheid=yes 13877else 13878 eval $cacheid=no 13879fi 13880rm -f core conftest.err conftest.$ac_objext \ 13881 conftest$ac_exeext conftest.$ac_ext 13882fi 13883 13884 13885 CFLAGS="$xorg_testset_save_CFLAGS" 13886 13887 eval supported=\$$cacheid 13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13889$as_echo "$supported" >&6; } 13890 if test "$supported" = "yes" ; then 13891 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 13892 found="yes" 13893 fi 13894 fi 13895 13896 13897 13898# These are currently disabled because they are noisy. They will be enabled 13899# in the future once the codebase is sufficiently modernized to silence 13900# them. For now, I don't want them to drown out the other warnings. 13901# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13902# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13903# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 13904 13905# Turn some warnings into errors, so we don't accidently get successful builds 13906# when there are problems that should be fixed. 13907 13908if test "x$SELECTIVE_WERROR" = "xyes" ; then 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922xorg_testset_save_CFLAGS="$CFLAGS" 13923 13924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13929 $as_echo_n "(cached) " >&6 13930else 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933int i; 13934_ACEOF 13935if ac_fn_c_try_compile "$LINENO"; then : 13936 xorg_cv_cc_flag_unknown_warning_option=yes 13937else 13938 xorg_cv_cc_flag_unknown_warning_option=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13941fi 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946fi 13947 13948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13951 fi 13952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13956 $as_echo_n "(cached) " >&6 13957else 13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13959/* end confdefs.h. */ 13960int i; 13961_ACEOF 13962if ac_fn_c_try_compile "$LINENO"; then : 13963 xorg_cv_cc_flag_unused_command_line_argument=yes 13964else 13965 xorg_cv_cc_flag_unused_command_line_argument=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13968fi 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13972 CFLAGS="$xorg_testset_save_CFLAGS" 13973fi 13974 13975found="no" 13976 13977 if test $found = "no" ; then 13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13980 fi 13981 13982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13984 fi 13985 13986 CFLAGS="$CFLAGS -Werror=implicit" 13987 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13989$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13990 cacheid=xorg_cv_cc_flag__Werror_implicit 13991 if eval \${$cacheid+:} false; then : 13992 $as_echo_n "(cached) " >&6 13993else 13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13995/* end confdefs.h. */ 13996int i; 13997int 13998main () 13999{ 14000 14001 ; 14002 return 0; 14003} 14004_ACEOF 14005if ac_fn_c_try_link "$LINENO"; then : 14006 eval $cacheid=yes 14007else 14008 eval $cacheid=no 14009fi 14010rm -f core conftest.err conftest.$ac_objext \ 14011 conftest$ac_exeext conftest.$ac_ext 14012fi 14013 14014 14015 CFLAGS="$xorg_testset_save_CFLAGS" 14016 14017 eval supported=\$$cacheid 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14019$as_echo "$supported" >&6; } 14020 if test "$supported" = "yes" ; then 14021 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14022 found="yes" 14023 fi 14024 fi 14025 14026 if test $found = "no" ; then 14027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14029 fi 14030 14031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14033 fi 14034 14035 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14036 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14038$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14039 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14040 if eval \${$cacheid+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14044/* end confdefs.h. */ 14045int i; 14046int 14047main () 14048{ 14049 14050 ; 14051 return 0; 14052} 14053_ACEOF 14054if ac_fn_c_try_link "$LINENO"; then : 14055 eval $cacheid=yes 14056else 14057 eval $cacheid=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext \ 14060 conftest$ac_exeext conftest.$ac_ext 14061fi 14062 14063 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065 14066 eval supported=\$$cacheid 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14068$as_echo "$supported" >&6; } 14069 if test "$supported" = "yes" ; then 14070 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14071 found="yes" 14072 fi 14073 fi 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089xorg_testset_save_CFLAGS="$CFLAGS" 14090 14091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 xorg_cv_cc_flag_unknown_warning_option=yes 14104else 14105 xorg_cv_cc_flag_unknown_warning_option=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14112 CFLAGS="$xorg_testset_save_CFLAGS" 14113fi 14114 14115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14118 fi 14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127int i; 14128_ACEOF 14129if ac_fn_c_try_compile "$LINENO"; then : 14130 xorg_cv_cc_flag_unused_command_line_argument=yes 14131else 14132 xorg_cv_cc_flag_unused_command_line_argument=no 14133fi 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14135fi 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14139 CFLAGS="$xorg_testset_save_CFLAGS" 14140fi 14141 14142found="no" 14143 14144 if test $found = "no" ; then 14145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14147 fi 14148 14149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14151 fi 14152 14153 CFLAGS="$CFLAGS -Werror=nonnull" 14154 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14156$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14157 cacheid=xorg_cv_cc_flag__Werror_nonnull 14158 if eval \${$cacheid+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163int i; 14164int 14165main () 14166{ 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 eval $cacheid=yes 14174else 14175 eval $cacheid=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext \ 14178 conftest$ac_exeext conftest.$ac_ext 14179fi 14180 14181 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183 14184 eval supported=\$$cacheid 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14186$as_echo "$supported" >&6; } 14187 if test "$supported" = "yes" ; then 14188 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14189 found="yes" 14190 fi 14191 fi 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207xorg_testset_save_CFLAGS="$CFLAGS" 14208 14209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14214 $as_echo_n "(cached) " >&6 14215else 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218int i; 14219_ACEOF 14220if ac_fn_c_try_compile "$LINENO"; then : 14221 xorg_cv_cc_flag_unknown_warning_option=yes 14222else 14223 xorg_cv_cc_flag_unknown_warning_option=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14230 CFLAGS="$xorg_testset_save_CFLAGS" 14231fi 14232 14233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14236 fi 14237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245int i; 14246_ACEOF 14247if ac_fn_c_try_compile "$LINENO"; then : 14248 xorg_cv_cc_flag_unused_command_line_argument=yes 14249else 14250 xorg_cv_cc_flag_unused_command_line_argument=no 14251fi 14252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14253fi 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14257 CFLAGS="$xorg_testset_save_CFLAGS" 14258fi 14259 14260found="no" 14261 14262 if test $found = "no" ; then 14263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14265 fi 14266 14267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14269 fi 14270 14271 CFLAGS="$CFLAGS -Werror=init-self" 14272 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14274$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14275 cacheid=xorg_cv_cc_flag__Werror_init_self 14276 if eval \${$cacheid+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14280/* end confdefs.h. */ 14281int i; 14282int 14283main () 14284{ 14285 14286 ; 14287 return 0; 14288} 14289_ACEOF 14290if ac_fn_c_try_link "$LINENO"; then : 14291 eval $cacheid=yes 14292else 14293 eval $cacheid=no 14294fi 14295rm -f core conftest.err conftest.$ac_objext \ 14296 conftest$ac_exeext conftest.$ac_ext 14297fi 14298 14299 14300 CFLAGS="$xorg_testset_save_CFLAGS" 14301 14302 eval supported=\$$cacheid 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14304$as_echo "$supported" >&6; } 14305 if test "$supported" = "yes" ; then 14306 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14307 found="yes" 14308 fi 14309 fi 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325xorg_testset_save_CFLAGS="$CFLAGS" 14326 14327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335/* end confdefs.h. */ 14336int i; 14337_ACEOF 14338if ac_fn_c_try_compile "$LINENO"; then : 14339 xorg_cv_cc_flag_unknown_warning_option=yes 14340else 14341 xorg_cv_cc_flag_unknown_warning_option=no 14342fi 14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14344fi 14345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14348 CFLAGS="$xorg_testset_save_CFLAGS" 14349fi 14350 14351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14354 fi 14355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14359 $as_echo_n "(cached) " >&6 14360else 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14362/* end confdefs.h. */ 14363int i; 14364_ACEOF 14365if ac_fn_c_try_compile "$LINENO"; then : 14366 xorg_cv_cc_flag_unused_command_line_argument=yes 14367else 14368 xorg_cv_cc_flag_unused_command_line_argument=no 14369fi 14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14371fi 14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14375 CFLAGS="$xorg_testset_save_CFLAGS" 14376fi 14377 14378found="no" 14379 14380 if test $found = "no" ; then 14381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14383 fi 14384 14385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14387 fi 14388 14389 CFLAGS="$CFLAGS -Werror=main" 14390 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14392$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14393 cacheid=xorg_cv_cc_flag__Werror_main 14394 if eval \${$cacheid+:} false; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399int i; 14400int 14401main () 14402{ 14403 14404 ; 14405 return 0; 14406} 14407_ACEOF 14408if ac_fn_c_try_link "$LINENO"; then : 14409 eval $cacheid=yes 14410else 14411 eval $cacheid=no 14412fi 14413rm -f core conftest.err conftest.$ac_objext \ 14414 conftest$ac_exeext conftest.$ac_ext 14415fi 14416 14417 14418 CFLAGS="$xorg_testset_save_CFLAGS" 14419 14420 eval supported=\$$cacheid 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14422$as_echo "$supported" >&6; } 14423 if test "$supported" = "yes" ; then 14424 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14425 found="yes" 14426 fi 14427 fi 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443xorg_testset_save_CFLAGS="$CFLAGS" 14444 14445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14450 $as_echo_n "(cached) " >&6 14451else 14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14453/* end confdefs.h. */ 14454int i; 14455_ACEOF 14456if ac_fn_c_try_compile "$LINENO"; then : 14457 xorg_cv_cc_flag_unknown_warning_option=yes 14458else 14459 xorg_cv_cc_flag_unknown_warning_option=no 14460fi 14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14462fi 14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14466 CFLAGS="$xorg_testset_save_CFLAGS" 14467fi 14468 14469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14472 fi 14473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481int i; 14482_ACEOF 14483if ac_fn_c_try_compile "$LINENO"; then : 14484 xorg_cv_cc_flag_unused_command_line_argument=yes 14485else 14486 xorg_cv_cc_flag_unused_command_line_argument=no 14487fi 14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14489fi 14490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14493 CFLAGS="$xorg_testset_save_CFLAGS" 14494fi 14495 14496found="no" 14497 14498 if test $found = "no" ; then 14499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14501 fi 14502 14503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14505 fi 14506 14507 CFLAGS="$CFLAGS -Werror=missing-braces" 14508 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14510$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14511 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14512 if eval \${$cacheid+:} false; then : 14513 $as_echo_n "(cached) " >&6 14514else 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516/* end confdefs.h. */ 14517int i; 14518int 14519main () 14520{ 14521 14522 ; 14523 return 0; 14524} 14525_ACEOF 14526if ac_fn_c_try_link "$LINENO"; then : 14527 eval $cacheid=yes 14528else 14529 eval $cacheid=no 14530fi 14531rm -f core conftest.err conftest.$ac_objext \ 14532 conftest$ac_exeext conftest.$ac_ext 14533fi 14534 14535 14536 CFLAGS="$xorg_testset_save_CFLAGS" 14537 14538 eval supported=\$$cacheid 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14540$as_echo "$supported" >&6; } 14541 if test "$supported" = "yes" ; then 14542 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14543 found="yes" 14544 fi 14545 fi 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561xorg_testset_save_CFLAGS="$CFLAGS" 14562 14563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569else 14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14571/* end confdefs.h. */ 14572int i; 14573_ACEOF 14574if ac_fn_c_try_compile "$LINENO"; then : 14575 xorg_cv_cc_flag_unknown_warning_option=yes 14576else 14577 xorg_cv_cc_flag_unknown_warning_option=no 14578fi 14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14580fi 14581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14584 CFLAGS="$xorg_testset_save_CFLAGS" 14585fi 14586 14587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14590 fi 14591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14595 $as_echo_n "(cached) " >&6 14596else 14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14598/* end confdefs.h. */ 14599int i; 14600_ACEOF 14601if ac_fn_c_try_compile "$LINENO"; then : 14602 xorg_cv_cc_flag_unused_command_line_argument=yes 14603else 14604 xorg_cv_cc_flag_unused_command_line_argument=no 14605fi 14606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14607fi 14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14611 CFLAGS="$xorg_testset_save_CFLAGS" 14612fi 14613 14614found="no" 14615 14616 if test $found = "no" ; then 14617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14619 fi 14620 14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 fi 14624 14625 CFLAGS="$CFLAGS -Werror=sequence-point" 14626 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14628$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14629 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14630 if eval \${$cacheid+:} false; then : 14631 $as_echo_n "(cached) " >&6 14632else 14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635int i; 14636int 14637main () 14638{ 14639 14640 ; 14641 return 0; 14642} 14643_ACEOF 14644if ac_fn_c_try_link "$LINENO"; then : 14645 eval $cacheid=yes 14646else 14647 eval $cacheid=no 14648fi 14649rm -f core conftest.err conftest.$ac_objext \ 14650 conftest$ac_exeext conftest.$ac_ext 14651fi 14652 14653 14654 CFLAGS="$xorg_testset_save_CFLAGS" 14655 14656 eval supported=\$$cacheid 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14658$as_echo "$supported" >&6; } 14659 if test "$supported" = "yes" ; then 14660 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14661 found="yes" 14662 fi 14663 fi 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679xorg_testset_save_CFLAGS="$CFLAGS" 14680 14681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14686 $as_echo_n "(cached) " >&6 14687else 14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14689/* end confdefs.h. */ 14690int i; 14691_ACEOF 14692if ac_fn_c_try_compile "$LINENO"; then : 14693 xorg_cv_cc_flag_unknown_warning_option=yes 14694else 14695 xorg_cv_cc_flag_unknown_warning_option=no 14696fi 14697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14698fi 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14702 CFLAGS="$xorg_testset_save_CFLAGS" 14703fi 14704 14705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14708 fi 14709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14713 $as_echo_n "(cached) " >&6 14714else 14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14716/* end confdefs.h. */ 14717int i; 14718_ACEOF 14719if ac_fn_c_try_compile "$LINENO"; then : 14720 xorg_cv_cc_flag_unused_command_line_argument=yes 14721else 14722 xorg_cv_cc_flag_unused_command_line_argument=no 14723fi 14724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14725fi 14726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14729 CFLAGS="$xorg_testset_save_CFLAGS" 14730fi 14731 14732found="no" 14733 14734 if test $found = "no" ; then 14735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14737 fi 14738 14739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14741 fi 14742 14743 CFLAGS="$CFLAGS -Werror=return-type" 14744 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14746$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14747 cacheid=xorg_cv_cc_flag__Werror_return_type 14748 if eval \${$cacheid+:} false; then : 14749 $as_echo_n "(cached) " >&6 14750else 14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14752/* end confdefs.h. */ 14753int i; 14754int 14755main () 14756{ 14757 14758 ; 14759 return 0; 14760} 14761_ACEOF 14762if ac_fn_c_try_link "$LINENO"; then : 14763 eval $cacheid=yes 14764else 14765 eval $cacheid=no 14766fi 14767rm -f core conftest.err conftest.$ac_objext \ 14768 conftest$ac_exeext conftest.$ac_ext 14769fi 14770 14771 14772 CFLAGS="$xorg_testset_save_CFLAGS" 14773 14774 eval supported=\$$cacheid 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14776$as_echo "$supported" >&6; } 14777 if test "$supported" = "yes" ; then 14778 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14779 found="yes" 14780 fi 14781 fi 14782 14783 if test $found = "no" ; then 14784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14786 fi 14787 14788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14790 fi 14791 14792 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14793 14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14795$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14796 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14797 if eval \${$cacheid+:} false; then : 14798 $as_echo_n "(cached) " >&6 14799else 14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14801/* end confdefs.h. */ 14802int i; 14803int 14804main () 14805{ 14806 14807 ; 14808 return 0; 14809} 14810_ACEOF 14811if ac_fn_c_try_link "$LINENO"; then : 14812 eval $cacheid=yes 14813else 14814 eval $cacheid=no 14815fi 14816rm -f core conftest.err conftest.$ac_objext \ 14817 conftest$ac_exeext conftest.$ac_ext 14818fi 14819 14820 14821 CFLAGS="$xorg_testset_save_CFLAGS" 14822 14823 eval supported=\$$cacheid 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14825$as_echo "$supported" >&6; } 14826 if test "$supported" = "yes" ; then 14827 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14828 found="yes" 14829 fi 14830 fi 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846xorg_testset_save_CFLAGS="$CFLAGS" 14847 14848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14853 $as_echo_n "(cached) " >&6 14854else 14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856/* end confdefs.h. */ 14857int i; 14858_ACEOF 14859if ac_fn_c_try_compile "$LINENO"; then : 14860 xorg_cv_cc_flag_unknown_warning_option=yes 14861else 14862 xorg_cv_cc_flag_unknown_warning_option=no 14863fi 14864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14865fi 14866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14869 CFLAGS="$xorg_testset_save_CFLAGS" 14870fi 14871 14872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14875 fi 14876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14880 $as_echo_n "(cached) " >&6 14881else 14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14883/* end confdefs.h. */ 14884int i; 14885_ACEOF 14886if ac_fn_c_try_compile "$LINENO"; then : 14887 xorg_cv_cc_flag_unused_command_line_argument=yes 14888else 14889 xorg_cv_cc_flag_unused_command_line_argument=no 14890fi 14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14892fi 14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14896 CFLAGS="$xorg_testset_save_CFLAGS" 14897fi 14898 14899found="no" 14900 14901 if test $found = "no" ; then 14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 fi 14905 14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14908 fi 14909 14910 CFLAGS="$CFLAGS -Werror=trigraphs" 14911 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14913$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14914 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14915 if eval \${$cacheid+:} false; then : 14916 $as_echo_n "(cached) " >&6 14917else 14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920int i; 14921int 14922main () 14923{ 14924 14925 ; 14926 return 0; 14927} 14928_ACEOF 14929if ac_fn_c_try_link "$LINENO"; then : 14930 eval $cacheid=yes 14931else 14932 eval $cacheid=no 14933fi 14934rm -f core conftest.err conftest.$ac_objext \ 14935 conftest$ac_exeext conftest.$ac_ext 14936fi 14937 14938 14939 CFLAGS="$xorg_testset_save_CFLAGS" 14940 14941 eval supported=\$$cacheid 14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14943$as_echo "$supported" >&6; } 14944 if test "$supported" = "yes" ; then 14945 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14946 found="yes" 14947 fi 14948 fi 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964xorg_testset_save_CFLAGS="$CFLAGS" 14965 14966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14971 $as_echo_n "(cached) " >&6 14972else 14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14974/* end confdefs.h. */ 14975int i; 14976_ACEOF 14977if ac_fn_c_try_compile "$LINENO"; then : 14978 xorg_cv_cc_flag_unknown_warning_option=yes 14979else 14980 xorg_cv_cc_flag_unknown_warning_option=no 14981fi 14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14983fi 14984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14987 CFLAGS="$xorg_testset_save_CFLAGS" 14988fi 14989 14990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14993 fi 14994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14998 $as_echo_n "(cached) " >&6 14999else 15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15001/* end confdefs.h. */ 15002int i; 15003_ACEOF 15004if ac_fn_c_try_compile "$LINENO"; then : 15005 xorg_cv_cc_flag_unused_command_line_argument=yes 15006else 15007 xorg_cv_cc_flag_unused_command_line_argument=no 15008fi 15009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15010fi 15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15014 CFLAGS="$xorg_testset_save_CFLAGS" 15015fi 15016 15017found="no" 15018 15019 if test $found = "no" ; then 15020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15022 fi 15023 15024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15026 fi 15027 15028 CFLAGS="$CFLAGS -Werror=array-bounds" 15029 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15031$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15032 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15033 if eval \${$cacheid+:} false; then : 15034 $as_echo_n "(cached) " >&6 15035else 15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15037/* end confdefs.h. */ 15038int i; 15039int 15040main () 15041{ 15042 15043 ; 15044 return 0; 15045} 15046_ACEOF 15047if ac_fn_c_try_link "$LINENO"; then : 15048 eval $cacheid=yes 15049else 15050 eval $cacheid=no 15051fi 15052rm -f core conftest.err conftest.$ac_objext \ 15053 conftest$ac_exeext conftest.$ac_ext 15054fi 15055 15056 15057 CFLAGS="$xorg_testset_save_CFLAGS" 15058 15059 eval supported=\$$cacheid 15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15061$as_echo "$supported" >&6; } 15062 if test "$supported" = "yes" ; then 15063 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15064 found="yes" 15065 fi 15066 fi 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082xorg_testset_save_CFLAGS="$CFLAGS" 15083 15084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15092/* end confdefs.h. */ 15093int i; 15094_ACEOF 15095if ac_fn_c_try_compile "$LINENO"; then : 15096 xorg_cv_cc_flag_unknown_warning_option=yes 15097else 15098 xorg_cv_cc_flag_unknown_warning_option=no 15099fi 15100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15101fi 15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15105 CFLAGS="$xorg_testset_save_CFLAGS" 15106fi 15107 15108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15111 fi 15112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15116 $as_echo_n "(cached) " >&6 15117else 15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15119/* end confdefs.h. */ 15120int i; 15121_ACEOF 15122if ac_fn_c_try_compile "$LINENO"; then : 15123 xorg_cv_cc_flag_unused_command_line_argument=yes 15124else 15125 xorg_cv_cc_flag_unused_command_line_argument=no 15126fi 15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15128fi 15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15132 CFLAGS="$xorg_testset_save_CFLAGS" 15133fi 15134 15135found="no" 15136 15137 if test $found = "no" ; then 15138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15140 fi 15141 15142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15144 fi 15145 15146 CFLAGS="$CFLAGS -Werror=write-strings" 15147 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15149$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15150 cacheid=xorg_cv_cc_flag__Werror_write_strings 15151 if eval \${$cacheid+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15155/* end confdefs.h. */ 15156int i; 15157int 15158main () 15159{ 15160 15161 ; 15162 return 0; 15163} 15164_ACEOF 15165if ac_fn_c_try_link "$LINENO"; then : 15166 eval $cacheid=yes 15167else 15168 eval $cacheid=no 15169fi 15170rm -f core conftest.err conftest.$ac_objext \ 15171 conftest$ac_exeext conftest.$ac_ext 15172fi 15173 15174 15175 CFLAGS="$xorg_testset_save_CFLAGS" 15176 15177 eval supported=\$$cacheid 15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15179$as_echo "$supported" >&6; } 15180 if test "$supported" = "yes" ; then 15181 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15182 found="yes" 15183 fi 15184 fi 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200xorg_testset_save_CFLAGS="$CFLAGS" 15201 15202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15207 $as_echo_n "(cached) " >&6 15208else 15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15210/* end confdefs.h. */ 15211int i; 15212_ACEOF 15213if ac_fn_c_try_compile "$LINENO"; then : 15214 xorg_cv_cc_flag_unknown_warning_option=yes 15215else 15216 xorg_cv_cc_flag_unknown_warning_option=no 15217fi 15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15219fi 15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15223 CFLAGS="$xorg_testset_save_CFLAGS" 15224fi 15225 15226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15229 fi 15230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15234 $as_echo_n "(cached) " >&6 15235else 15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15237/* end confdefs.h. */ 15238int i; 15239_ACEOF 15240if ac_fn_c_try_compile "$LINENO"; then : 15241 xorg_cv_cc_flag_unused_command_line_argument=yes 15242else 15243 xorg_cv_cc_flag_unused_command_line_argument=no 15244fi 15245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15246fi 15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15250 CFLAGS="$xorg_testset_save_CFLAGS" 15251fi 15252 15253found="no" 15254 15255 if test $found = "no" ; then 15256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15258 fi 15259 15260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15262 fi 15263 15264 CFLAGS="$CFLAGS -Werror=address" 15265 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15267$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15268 cacheid=xorg_cv_cc_flag__Werror_address 15269 if eval \${$cacheid+:} false; then : 15270 $as_echo_n "(cached) " >&6 15271else 15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15273/* end confdefs.h. */ 15274int i; 15275int 15276main () 15277{ 15278 15279 ; 15280 return 0; 15281} 15282_ACEOF 15283if ac_fn_c_try_link "$LINENO"; then : 15284 eval $cacheid=yes 15285else 15286 eval $cacheid=no 15287fi 15288rm -f core conftest.err conftest.$ac_objext \ 15289 conftest$ac_exeext conftest.$ac_ext 15290fi 15291 15292 15293 CFLAGS="$xorg_testset_save_CFLAGS" 15294 15295 eval supported=\$$cacheid 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15297$as_echo "$supported" >&6; } 15298 if test "$supported" = "yes" ; then 15299 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15300 found="yes" 15301 fi 15302 fi 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318xorg_testset_save_CFLAGS="$CFLAGS" 15319 15320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15325 $as_echo_n "(cached) " >&6 15326else 15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328/* end confdefs.h. */ 15329int i; 15330_ACEOF 15331if ac_fn_c_try_compile "$LINENO"; then : 15332 xorg_cv_cc_flag_unknown_warning_option=yes 15333else 15334 xorg_cv_cc_flag_unknown_warning_option=no 15335fi 15336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15337fi 15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15341 CFLAGS="$xorg_testset_save_CFLAGS" 15342fi 15343 15344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15347 fi 15348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15352 $as_echo_n "(cached) " >&6 15353else 15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15355/* end confdefs.h. */ 15356int i; 15357_ACEOF 15358if ac_fn_c_try_compile "$LINENO"; then : 15359 xorg_cv_cc_flag_unused_command_line_argument=yes 15360else 15361 xorg_cv_cc_flag_unused_command_line_argument=no 15362fi 15363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15364fi 15365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15368 CFLAGS="$xorg_testset_save_CFLAGS" 15369fi 15370 15371found="no" 15372 15373 if test $found = "no" ; then 15374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15376 fi 15377 15378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15380 fi 15381 15382 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15383 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15385$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15386 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15387 if eval \${$cacheid+:} false; then : 15388 $as_echo_n "(cached) " >&6 15389else 15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15391/* end confdefs.h. */ 15392int i; 15393int 15394main () 15395{ 15396 15397 ; 15398 return 0; 15399} 15400_ACEOF 15401if ac_fn_c_try_link "$LINENO"; then : 15402 eval $cacheid=yes 15403else 15404 eval $cacheid=no 15405fi 15406rm -f core conftest.err conftest.$ac_objext \ 15407 conftest$ac_exeext conftest.$ac_ext 15408fi 15409 15410 15411 CFLAGS="$xorg_testset_save_CFLAGS" 15412 15413 eval supported=\$$cacheid 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15415$as_echo "$supported" >&6; } 15416 if test "$supported" = "yes" ; then 15417 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15418 found="yes" 15419 fi 15420 fi 15421 15422 if test $found = "no" ; then 15423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15425 fi 15426 15427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15429 fi 15430 15431 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15432 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15434$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15435 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15436 if eval \${$cacheid+:} false; then : 15437 $as_echo_n "(cached) " >&6 15438else 15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15440/* end confdefs.h. */ 15441int i; 15442int 15443main () 15444{ 15445 15446 ; 15447 return 0; 15448} 15449_ACEOF 15450if ac_fn_c_try_link "$LINENO"; then : 15451 eval $cacheid=yes 15452else 15453 eval $cacheid=no 15454fi 15455rm -f core conftest.err conftest.$ac_objext \ 15456 conftest$ac_exeext conftest.$ac_ext 15457fi 15458 15459 15460 CFLAGS="$xorg_testset_save_CFLAGS" 15461 15462 eval supported=\$$cacheid 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15464$as_echo "$supported" >&6; } 15465 if test "$supported" = "yes" ; then 15466 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15467 found="yes" 15468 fi 15469 fi 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485xorg_testset_save_CFLAGS="$CFLAGS" 15486 15487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15492 $as_echo_n "(cached) " >&6 15493else 15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15495/* end confdefs.h. */ 15496int i; 15497_ACEOF 15498if ac_fn_c_try_compile "$LINENO"; then : 15499 xorg_cv_cc_flag_unknown_warning_option=yes 15500else 15501 xorg_cv_cc_flag_unknown_warning_option=no 15502fi 15503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15504fi 15505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15508 CFLAGS="$xorg_testset_save_CFLAGS" 15509fi 15510 15511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15514 fi 15515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15519 $as_echo_n "(cached) " >&6 15520else 15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522/* end confdefs.h. */ 15523int i; 15524_ACEOF 15525if ac_fn_c_try_compile "$LINENO"; then : 15526 xorg_cv_cc_flag_unused_command_line_argument=yes 15527else 15528 xorg_cv_cc_flag_unused_command_line_argument=no 15529fi 15530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15531fi 15532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15535 CFLAGS="$xorg_testset_save_CFLAGS" 15536fi 15537 15538found="no" 15539 15540 if test $found = "no" ; then 15541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15543 fi 15544 15545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15547 fi 15548 15549 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15550 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15552$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15553 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15554 if eval \${$cacheid+:} false; then : 15555 $as_echo_n "(cached) " >&6 15556else 15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15558/* end confdefs.h. */ 15559int i; 15560int 15561main () 15562{ 15563 15564 ; 15565 return 0; 15566} 15567_ACEOF 15568if ac_fn_c_try_link "$LINENO"; then : 15569 eval $cacheid=yes 15570else 15571 eval $cacheid=no 15572fi 15573rm -f core conftest.err conftest.$ac_objext \ 15574 conftest$ac_exeext conftest.$ac_ext 15575fi 15576 15577 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579 15580 eval supported=\$$cacheid 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15582$as_echo "$supported" >&6; } 15583 if test "$supported" = "yes" ; then 15584 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15585 found="yes" 15586 fi 15587 fi 15588 15589 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15590else 15591{ $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 15592$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;} 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606xorg_testset_save_CFLAGS="$CFLAGS" 15607 15608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15616/* end confdefs.h. */ 15617int i; 15618_ACEOF 15619if ac_fn_c_try_compile "$LINENO"; then : 15620 xorg_cv_cc_flag_unknown_warning_option=yes 15621else 15622 xorg_cv_cc_flag_unknown_warning_option=no 15623fi 15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15625fi 15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15629 CFLAGS="$xorg_testset_save_CFLAGS" 15630fi 15631 15632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15635 fi 15636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15640 $as_echo_n "(cached) " >&6 15641else 15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15643/* end confdefs.h. */ 15644int i; 15645_ACEOF 15646if ac_fn_c_try_compile "$LINENO"; then : 15647 xorg_cv_cc_flag_unused_command_line_argument=yes 15648else 15649 xorg_cv_cc_flag_unused_command_line_argument=no 15650fi 15651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15652fi 15653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15656 CFLAGS="$xorg_testset_save_CFLAGS" 15657fi 15658 15659found="no" 15660 15661 if test $found = "no" ; then 15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15664 fi 15665 15666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15668 fi 15669 15670 CFLAGS="$CFLAGS -Wimplicit" 15671 15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15673$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15674 cacheid=xorg_cv_cc_flag__Wimplicit 15675 if eval \${$cacheid+:} false; then : 15676 $as_echo_n "(cached) " >&6 15677else 15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15679/* end confdefs.h. */ 15680int i; 15681int 15682main () 15683{ 15684 15685 ; 15686 return 0; 15687} 15688_ACEOF 15689if ac_fn_c_try_link "$LINENO"; then : 15690 eval $cacheid=yes 15691else 15692 eval $cacheid=no 15693fi 15694rm -f core conftest.err conftest.$ac_objext \ 15695 conftest$ac_exeext conftest.$ac_ext 15696fi 15697 15698 15699 CFLAGS="$xorg_testset_save_CFLAGS" 15700 15701 eval supported=\$$cacheid 15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15703$as_echo "$supported" >&6; } 15704 if test "$supported" = "yes" ; then 15705 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15706 found="yes" 15707 fi 15708 fi 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724xorg_testset_save_CFLAGS="$CFLAGS" 15725 15726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15731 $as_echo_n "(cached) " >&6 15732else 15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735int i; 15736_ACEOF 15737if ac_fn_c_try_compile "$LINENO"; then : 15738 xorg_cv_cc_flag_unknown_warning_option=yes 15739else 15740 xorg_cv_cc_flag_unknown_warning_option=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15743fi 15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15747 CFLAGS="$xorg_testset_save_CFLAGS" 15748fi 15749 15750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15753 fi 15754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15758 $as_echo_n "(cached) " >&6 15759else 15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15761/* end confdefs.h. */ 15762int i; 15763_ACEOF 15764if ac_fn_c_try_compile "$LINENO"; then : 15765 xorg_cv_cc_flag_unused_command_line_argument=yes 15766else 15767 xorg_cv_cc_flag_unused_command_line_argument=no 15768fi 15769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15770fi 15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15774 CFLAGS="$xorg_testset_save_CFLAGS" 15775fi 15776 15777found="no" 15778 15779 if test $found = "no" ; then 15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15782 fi 15783 15784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15786 fi 15787 15788 CFLAGS="$CFLAGS -Wnonnull" 15789 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15791$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15792 cacheid=xorg_cv_cc_flag__Wnonnull 15793 if eval \${$cacheid+:} false; then : 15794 $as_echo_n "(cached) " >&6 15795else 15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15797/* end confdefs.h. */ 15798int i; 15799int 15800main () 15801{ 15802 15803 ; 15804 return 0; 15805} 15806_ACEOF 15807if ac_fn_c_try_link "$LINENO"; then : 15808 eval $cacheid=yes 15809else 15810 eval $cacheid=no 15811fi 15812rm -f core conftest.err conftest.$ac_objext \ 15813 conftest$ac_exeext conftest.$ac_ext 15814fi 15815 15816 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818 15819 eval supported=\$$cacheid 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15821$as_echo "$supported" >&6; } 15822 if test "$supported" = "yes" ; then 15823 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15824 found="yes" 15825 fi 15826 fi 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842xorg_testset_save_CFLAGS="$CFLAGS" 15843 15844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15849 $as_echo_n "(cached) " >&6 15850else 15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15852/* end confdefs.h. */ 15853int i; 15854_ACEOF 15855if ac_fn_c_try_compile "$LINENO"; then : 15856 xorg_cv_cc_flag_unknown_warning_option=yes 15857else 15858 xorg_cv_cc_flag_unknown_warning_option=no 15859fi 15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15861fi 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15865 CFLAGS="$xorg_testset_save_CFLAGS" 15866fi 15867 15868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15871 fi 15872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15876 $as_echo_n "(cached) " >&6 15877else 15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15879/* end confdefs.h. */ 15880int i; 15881_ACEOF 15882if ac_fn_c_try_compile "$LINENO"; then : 15883 xorg_cv_cc_flag_unused_command_line_argument=yes 15884else 15885 xorg_cv_cc_flag_unused_command_line_argument=no 15886fi 15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15888fi 15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15892 CFLAGS="$xorg_testset_save_CFLAGS" 15893fi 15894 15895found="no" 15896 15897 if test $found = "no" ; then 15898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15900 fi 15901 15902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15904 fi 15905 15906 CFLAGS="$CFLAGS -Winit-self" 15907 15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15909$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15910 cacheid=xorg_cv_cc_flag__Winit_self 15911 if eval \${$cacheid+:} false; then : 15912 $as_echo_n "(cached) " >&6 15913else 15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15915/* end confdefs.h. */ 15916int i; 15917int 15918main () 15919{ 15920 15921 ; 15922 return 0; 15923} 15924_ACEOF 15925if ac_fn_c_try_link "$LINENO"; then : 15926 eval $cacheid=yes 15927else 15928 eval $cacheid=no 15929fi 15930rm -f core conftest.err conftest.$ac_objext \ 15931 conftest$ac_exeext conftest.$ac_ext 15932fi 15933 15934 15935 CFLAGS="$xorg_testset_save_CFLAGS" 15936 15937 eval supported=\$$cacheid 15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15939$as_echo "$supported" >&6; } 15940 if test "$supported" = "yes" ; then 15941 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15942 found="yes" 15943 fi 15944 fi 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960xorg_testset_save_CFLAGS="$CFLAGS" 15961 15962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972_ACEOF 15973if ac_fn_c_try_compile "$LINENO"; then : 15974 xorg_cv_cc_flag_unknown_warning_option=yes 15975else 15976 xorg_cv_cc_flag_unknown_warning_option=no 15977fi 15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15979fi 15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15983 CFLAGS="$xorg_testset_save_CFLAGS" 15984fi 15985 15986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15989 fi 15990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15994 $as_echo_n "(cached) " >&6 15995else 15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15997/* end confdefs.h. */ 15998int i; 15999_ACEOF 16000if ac_fn_c_try_compile "$LINENO"; then : 16001 xorg_cv_cc_flag_unused_command_line_argument=yes 16002else 16003 xorg_cv_cc_flag_unused_command_line_argument=no 16004fi 16005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16006fi 16007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16010 CFLAGS="$xorg_testset_save_CFLAGS" 16011fi 16012 16013found="no" 16014 16015 if test $found = "no" ; then 16016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16018 fi 16019 16020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16022 fi 16023 16024 CFLAGS="$CFLAGS -Wmain" 16025 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16027$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16028 cacheid=xorg_cv_cc_flag__Wmain 16029 if eval \${$cacheid+:} false; then : 16030 $as_echo_n "(cached) " >&6 16031else 16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16033/* end confdefs.h. */ 16034int i; 16035int 16036main () 16037{ 16038 16039 ; 16040 return 0; 16041} 16042_ACEOF 16043if ac_fn_c_try_link "$LINENO"; then : 16044 eval $cacheid=yes 16045else 16046 eval $cacheid=no 16047fi 16048rm -f core conftest.err conftest.$ac_objext \ 16049 conftest$ac_exeext conftest.$ac_ext 16050fi 16051 16052 16053 CFLAGS="$xorg_testset_save_CFLAGS" 16054 16055 eval supported=\$$cacheid 16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16057$as_echo "$supported" >&6; } 16058 if test "$supported" = "yes" ; then 16059 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16060 found="yes" 16061 fi 16062 fi 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078xorg_testset_save_CFLAGS="$CFLAGS" 16079 16080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16085 $as_echo_n "(cached) " >&6 16086else 16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090_ACEOF 16091if ac_fn_c_try_compile "$LINENO"; then : 16092 xorg_cv_cc_flag_unknown_warning_option=yes 16093else 16094 xorg_cv_cc_flag_unknown_warning_option=no 16095fi 16096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16097fi 16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16101 CFLAGS="$xorg_testset_save_CFLAGS" 16102fi 16103 16104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16107 fi 16108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16112 $as_echo_n "(cached) " >&6 16113else 16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16115/* end confdefs.h. */ 16116int i; 16117_ACEOF 16118if ac_fn_c_try_compile "$LINENO"; then : 16119 xorg_cv_cc_flag_unused_command_line_argument=yes 16120else 16121 xorg_cv_cc_flag_unused_command_line_argument=no 16122fi 16123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16124fi 16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16128 CFLAGS="$xorg_testset_save_CFLAGS" 16129fi 16130 16131found="no" 16132 16133 if test $found = "no" ; then 16134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16136 fi 16137 16138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16140 fi 16141 16142 CFLAGS="$CFLAGS -Wmissing-braces" 16143 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16145$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16146 cacheid=xorg_cv_cc_flag__Wmissing_braces 16147 if eval \${$cacheid+:} false; then : 16148 $as_echo_n "(cached) " >&6 16149else 16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151/* end confdefs.h. */ 16152int i; 16153int 16154main () 16155{ 16156 16157 ; 16158 return 0; 16159} 16160_ACEOF 16161if ac_fn_c_try_link "$LINENO"; then : 16162 eval $cacheid=yes 16163else 16164 eval $cacheid=no 16165fi 16166rm -f core conftest.err conftest.$ac_objext \ 16167 conftest$ac_exeext conftest.$ac_ext 16168fi 16169 16170 16171 CFLAGS="$xorg_testset_save_CFLAGS" 16172 16173 eval supported=\$$cacheid 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16175$as_echo "$supported" >&6; } 16176 if test "$supported" = "yes" ; then 16177 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16178 found="yes" 16179 fi 16180 fi 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196xorg_testset_save_CFLAGS="$CFLAGS" 16197 16198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16203 $as_echo_n "(cached) " >&6 16204else 16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16206/* end confdefs.h. */ 16207int i; 16208_ACEOF 16209if ac_fn_c_try_compile "$LINENO"; then : 16210 xorg_cv_cc_flag_unknown_warning_option=yes 16211else 16212 xorg_cv_cc_flag_unknown_warning_option=no 16213fi 16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16215fi 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16219 CFLAGS="$xorg_testset_save_CFLAGS" 16220fi 16221 16222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16225 fi 16226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16230 $as_echo_n "(cached) " >&6 16231else 16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16233/* end confdefs.h. */ 16234int i; 16235_ACEOF 16236if ac_fn_c_try_compile "$LINENO"; then : 16237 xorg_cv_cc_flag_unused_command_line_argument=yes 16238else 16239 xorg_cv_cc_flag_unused_command_line_argument=no 16240fi 16241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16242fi 16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16246 CFLAGS="$xorg_testset_save_CFLAGS" 16247fi 16248 16249found="no" 16250 16251 if test $found = "no" ; then 16252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16254 fi 16255 16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16258 fi 16259 16260 CFLAGS="$CFLAGS -Wsequence-point" 16261 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16263$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16264 cacheid=xorg_cv_cc_flag__Wsequence_point 16265 if eval \${$cacheid+:} false; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16269/* end confdefs.h. */ 16270int i; 16271int 16272main () 16273{ 16274 16275 ; 16276 return 0; 16277} 16278_ACEOF 16279if ac_fn_c_try_link "$LINENO"; then : 16280 eval $cacheid=yes 16281else 16282 eval $cacheid=no 16283fi 16284rm -f core conftest.err conftest.$ac_objext \ 16285 conftest$ac_exeext conftest.$ac_ext 16286fi 16287 16288 16289 CFLAGS="$xorg_testset_save_CFLAGS" 16290 16291 eval supported=\$$cacheid 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16293$as_echo "$supported" >&6; } 16294 if test "$supported" = "yes" ; then 16295 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16296 found="yes" 16297 fi 16298 fi 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314xorg_testset_save_CFLAGS="$CFLAGS" 16315 16316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16321 $as_echo_n "(cached) " >&6 16322else 16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16324/* end confdefs.h. */ 16325int i; 16326_ACEOF 16327if ac_fn_c_try_compile "$LINENO"; then : 16328 xorg_cv_cc_flag_unknown_warning_option=yes 16329else 16330 xorg_cv_cc_flag_unknown_warning_option=no 16331fi 16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16333fi 16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16337 CFLAGS="$xorg_testset_save_CFLAGS" 16338fi 16339 16340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16343 fi 16344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16348 $as_echo_n "(cached) " >&6 16349else 16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16351/* end confdefs.h. */ 16352int i; 16353_ACEOF 16354if ac_fn_c_try_compile "$LINENO"; then : 16355 xorg_cv_cc_flag_unused_command_line_argument=yes 16356else 16357 xorg_cv_cc_flag_unused_command_line_argument=no 16358fi 16359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16360fi 16361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16364 CFLAGS="$xorg_testset_save_CFLAGS" 16365fi 16366 16367found="no" 16368 16369 if test $found = "no" ; then 16370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16372 fi 16373 16374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16376 fi 16377 16378 CFLAGS="$CFLAGS -Wreturn-type" 16379 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16381$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16382 cacheid=xorg_cv_cc_flag__Wreturn_type 16383 if eval \${$cacheid+:} false; then : 16384 $as_echo_n "(cached) " >&6 16385else 16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16387/* end confdefs.h. */ 16388int i; 16389int 16390main () 16391{ 16392 16393 ; 16394 return 0; 16395} 16396_ACEOF 16397if ac_fn_c_try_link "$LINENO"; then : 16398 eval $cacheid=yes 16399else 16400 eval $cacheid=no 16401fi 16402rm -f core conftest.err conftest.$ac_objext \ 16403 conftest$ac_exeext conftest.$ac_ext 16404fi 16405 16406 16407 CFLAGS="$xorg_testset_save_CFLAGS" 16408 16409 eval supported=\$$cacheid 16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16411$as_echo "$supported" >&6; } 16412 if test "$supported" = "yes" ; then 16413 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16414 found="yes" 16415 fi 16416 fi 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432xorg_testset_save_CFLAGS="$CFLAGS" 16433 16434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16439 $as_echo_n "(cached) " >&6 16440else 16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16442/* end confdefs.h. */ 16443int i; 16444_ACEOF 16445if ac_fn_c_try_compile "$LINENO"; then : 16446 xorg_cv_cc_flag_unknown_warning_option=yes 16447else 16448 xorg_cv_cc_flag_unknown_warning_option=no 16449fi 16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16451fi 16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16455 CFLAGS="$xorg_testset_save_CFLAGS" 16456fi 16457 16458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16461 fi 16462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16466 $as_echo_n "(cached) " >&6 16467else 16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16469/* end confdefs.h. */ 16470int i; 16471_ACEOF 16472if ac_fn_c_try_compile "$LINENO"; then : 16473 xorg_cv_cc_flag_unused_command_line_argument=yes 16474else 16475 xorg_cv_cc_flag_unused_command_line_argument=no 16476fi 16477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16478fi 16479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16482 CFLAGS="$xorg_testset_save_CFLAGS" 16483fi 16484 16485found="no" 16486 16487 if test $found = "no" ; then 16488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16490 fi 16491 16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16494 fi 16495 16496 CFLAGS="$CFLAGS -Wtrigraphs" 16497 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16499$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16500 cacheid=xorg_cv_cc_flag__Wtrigraphs 16501 if eval \${$cacheid+:} false; then : 16502 $as_echo_n "(cached) " >&6 16503else 16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16505/* end confdefs.h. */ 16506int i; 16507int 16508main () 16509{ 16510 16511 ; 16512 return 0; 16513} 16514_ACEOF 16515if ac_fn_c_try_link "$LINENO"; then : 16516 eval $cacheid=yes 16517else 16518 eval $cacheid=no 16519fi 16520rm -f core conftest.err conftest.$ac_objext \ 16521 conftest$ac_exeext conftest.$ac_ext 16522fi 16523 16524 16525 CFLAGS="$xorg_testset_save_CFLAGS" 16526 16527 eval supported=\$$cacheid 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16529$as_echo "$supported" >&6; } 16530 if test "$supported" = "yes" ; then 16531 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16532 found="yes" 16533 fi 16534 fi 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550xorg_testset_save_CFLAGS="$CFLAGS" 16551 16552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16557 $as_echo_n "(cached) " >&6 16558else 16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16560/* end confdefs.h. */ 16561int i; 16562_ACEOF 16563if ac_fn_c_try_compile "$LINENO"; then : 16564 xorg_cv_cc_flag_unknown_warning_option=yes 16565else 16566 xorg_cv_cc_flag_unknown_warning_option=no 16567fi 16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16569fi 16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16573 CFLAGS="$xorg_testset_save_CFLAGS" 16574fi 16575 16576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 fi 16580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16584 $as_echo_n "(cached) " >&6 16585else 16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16587/* end confdefs.h. */ 16588int i; 16589_ACEOF 16590if ac_fn_c_try_compile "$LINENO"; then : 16591 xorg_cv_cc_flag_unused_command_line_argument=yes 16592else 16593 xorg_cv_cc_flag_unused_command_line_argument=no 16594fi 16595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16596fi 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16600 CFLAGS="$xorg_testset_save_CFLAGS" 16601fi 16602 16603found="no" 16604 16605 if test $found = "no" ; then 16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16608 fi 16609 16610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16612 fi 16613 16614 CFLAGS="$CFLAGS -Warray-bounds" 16615 16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16617$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16618 cacheid=xorg_cv_cc_flag__Warray_bounds 16619 if eval \${$cacheid+:} false; then : 16620 $as_echo_n "(cached) " >&6 16621else 16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16623/* end confdefs.h. */ 16624int i; 16625int 16626main () 16627{ 16628 16629 ; 16630 return 0; 16631} 16632_ACEOF 16633if ac_fn_c_try_link "$LINENO"; then : 16634 eval $cacheid=yes 16635else 16636 eval $cacheid=no 16637fi 16638rm -f core conftest.err conftest.$ac_objext \ 16639 conftest$ac_exeext conftest.$ac_ext 16640fi 16641 16642 16643 CFLAGS="$xorg_testset_save_CFLAGS" 16644 16645 eval supported=\$$cacheid 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16647$as_echo "$supported" >&6; } 16648 if test "$supported" = "yes" ; then 16649 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16650 found="yes" 16651 fi 16652 fi 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668xorg_testset_save_CFLAGS="$CFLAGS" 16669 16670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16675 $as_echo_n "(cached) " >&6 16676else 16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16678/* end confdefs.h. */ 16679int i; 16680_ACEOF 16681if ac_fn_c_try_compile "$LINENO"; then : 16682 xorg_cv_cc_flag_unknown_warning_option=yes 16683else 16684 xorg_cv_cc_flag_unknown_warning_option=no 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16687fi 16688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16691 CFLAGS="$xorg_testset_save_CFLAGS" 16692fi 16693 16694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16697 fi 16698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16702 $as_echo_n "(cached) " >&6 16703else 16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16705/* end confdefs.h. */ 16706int i; 16707_ACEOF 16708if ac_fn_c_try_compile "$LINENO"; then : 16709 xorg_cv_cc_flag_unused_command_line_argument=yes 16710else 16711 xorg_cv_cc_flag_unused_command_line_argument=no 16712fi 16713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16714fi 16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16718 CFLAGS="$xorg_testset_save_CFLAGS" 16719fi 16720 16721found="no" 16722 16723 if test $found = "no" ; then 16724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16726 fi 16727 16728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16730 fi 16731 16732 CFLAGS="$CFLAGS -Wwrite-strings" 16733 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16735$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16736 cacheid=xorg_cv_cc_flag__Wwrite_strings 16737 if eval \${$cacheid+:} false; then : 16738 $as_echo_n "(cached) " >&6 16739else 16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16741/* end confdefs.h. */ 16742int i; 16743int 16744main () 16745{ 16746 16747 ; 16748 return 0; 16749} 16750_ACEOF 16751if ac_fn_c_try_link "$LINENO"; then : 16752 eval $cacheid=yes 16753else 16754 eval $cacheid=no 16755fi 16756rm -f core conftest.err conftest.$ac_objext \ 16757 conftest$ac_exeext conftest.$ac_ext 16758fi 16759 16760 16761 CFLAGS="$xorg_testset_save_CFLAGS" 16762 16763 eval supported=\$$cacheid 16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16765$as_echo "$supported" >&6; } 16766 if test "$supported" = "yes" ; then 16767 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16768 found="yes" 16769 fi 16770 fi 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786xorg_testset_save_CFLAGS="$CFLAGS" 16787 16788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16793 $as_echo_n "(cached) " >&6 16794else 16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16796/* end confdefs.h. */ 16797int i; 16798_ACEOF 16799if ac_fn_c_try_compile "$LINENO"; then : 16800 xorg_cv_cc_flag_unknown_warning_option=yes 16801else 16802 xorg_cv_cc_flag_unknown_warning_option=no 16803fi 16804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16805fi 16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16809 CFLAGS="$xorg_testset_save_CFLAGS" 16810fi 16811 16812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16815 fi 16816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16820 $as_echo_n "(cached) " >&6 16821else 16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16823/* end confdefs.h. */ 16824int i; 16825_ACEOF 16826if ac_fn_c_try_compile "$LINENO"; then : 16827 xorg_cv_cc_flag_unused_command_line_argument=yes 16828else 16829 xorg_cv_cc_flag_unused_command_line_argument=no 16830fi 16831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16832fi 16833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16836 CFLAGS="$xorg_testset_save_CFLAGS" 16837fi 16838 16839found="no" 16840 16841 if test $found = "no" ; then 16842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16844 fi 16845 16846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16848 fi 16849 16850 CFLAGS="$CFLAGS -Waddress" 16851 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16853$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16854 cacheid=xorg_cv_cc_flag__Waddress 16855 if eval \${$cacheid+:} false; then : 16856 $as_echo_n "(cached) " >&6 16857else 16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860int i; 16861int 16862main () 16863{ 16864 16865 ; 16866 return 0; 16867} 16868_ACEOF 16869if ac_fn_c_try_link "$LINENO"; then : 16870 eval $cacheid=yes 16871else 16872 eval $cacheid=no 16873fi 16874rm -f core conftest.err conftest.$ac_objext \ 16875 conftest$ac_exeext conftest.$ac_ext 16876fi 16877 16878 16879 CFLAGS="$xorg_testset_save_CFLAGS" 16880 16881 eval supported=\$$cacheid 16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16883$as_echo "$supported" >&6; } 16884 if test "$supported" = "yes" ; then 16885 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16886 found="yes" 16887 fi 16888 fi 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904xorg_testset_save_CFLAGS="$CFLAGS" 16905 16906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16911 $as_echo_n "(cached) " >&6 16912else 16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16914/* end confdefs.h. */ 16915int i; 16916_ACEOF 16917if ac_fn_c_try_compile "$LINENO"; then : 16918 xorg_cv_cc_flag_unknown_warning_option=yes 16919else 16920 xorg_cv_cc_flag_unknown_warning_option=no 16921fi 16922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16923fi 16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16927 CFLAGS="$xorg_testset_save_CFLAGS" 16928fi 16929 16930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16933 fi 16934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16938 $as_echo_n "(cached) " >&6 16939else 16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16941/* end confdefs.h. */ 16942int i; 16943_ACEOF 16944if ac_fn_c_try_compile "$LINENO"; then : 16945 xorg_cv_cc_flag_unused_command_line_argument=yes 16946else 16947 xorg_cv_cc_flag_unused_command_line_argument=no 16948fi 16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16950fi 16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16954 CFLAGS="$xorg_testset_save_CFLAGS" 16955fi 16956 16957found="no" 16958 16959 if test $found = "no" ; then 16960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16962 fi 16963 16964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16966 fi 16967 16968 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16969 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16971$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16972 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16973 if eval \${$cacheid+:} false; then : 16974 $as_echo_n "(cached) " >&6 16975else 16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977/* end confdefs.h. */ 16978int i; 16979int 16980main () 16981{ 16982 16983 ; 16984 return 0; 16985} 16986_ACEOF 16987if ac_fn_c_try_link "$LINENO"; then : 16988 eval $cacheid=yes 16989else 16990 eval $cacheid=no 16991fi 16992rm -f core conftest.err conftest.$ac_objext \ 16993 conftest$ac_exeext conftest.$ac_ext 16994fi 16995 16996 16997 CFLAGS="$xorg_testset_save_CFLAGS" 16998 16999 eval supported=\$$cacheid 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17001$as_echo "$supported" >&6; } 17002 if test "$supported" = "yes" ; then 17003 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17004 found="yes" 17005 fi 17006 fi 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022xorg_testset_save_CFLAGS="$CFLAGS" 17023 17024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17029 $as_echo_n "(cached) " >&6 17030else 17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033int i; 17034_ACEOF 17035if ac_fn_c_try_compile "$LINENO"; then : 17036 xorg_cv_cc_flag_unknown_warning_option=yes 17037else 17038 xorg_cv_cc_flag_unknown_warning_option=no 17039fi 17040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17041fi 17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17045 CFLAGS="$xorg_testset_save_CFLAGS" 17046fi 17047 17048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17051 fi 17052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17056 $as_echo_n "(cached) " >&6 17057else 17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17059/* end confdefs.h. */ 17060int i; 17061_ACEOF 17062if ac_fn_c_try_compile "$LINENO"; then : 17063 xorg_cv_cc_flag_unused_command_line_argument=yes 17064else 17065 xorg_cv_cc_flag_unused_command_line_argument=no 17066fi 17067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17068fi 17069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17072 CFLAGS="$xorg_testset_save_CFLAGS" 17073fi 17074 17075found="no" 17076 17077 if test $found = "no" ; then 17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17080 fi 17081 17082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17084 fi 17085 17086 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17087 17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17089$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17090 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17091 if eval \${$cacheid+:} false; then : 17092 $as_echo_n "(cached) " >&6 17093else 17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17095/* end confdefs.h. */ 17096int i; 17097int 17098main () 17099{ 17100 17101 ; 17102 return 0; 17103} 17104_ACEOF 17105if ac_fn_c_try_link "$LINENO"; then : 17106 eval $cacheid=yes 17107else 17108 eval $cacheid=no 17109fi 17110rm -f core conftest.err conftest.$ac_objext \ 17111 conftest$ac_exeext conftest.$ac_ext 17112fi 17113 17114 17115 CFLAGS="$xorg_testset_save_CFLAGS" 17116 17117 eval supported=\$$cacheid 17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17119$as_echo "$supported" >&6; } 17120 if test "$supported" = "yes" ; then 17121 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17122 found="yes" 17123 fi 17124 fi 17125 17126 17127fi 17128 17129 17130 17131 17132 17133 17134 17135 CWARNFLAGS="$BASE_CFLAGS" 17136 if test "x$GCC" = xyes ; then 17137 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17138 fi 17139 17140 17141 17142 17143 17144 17145 17146 17147# Check whether --enable-strict-compilation was given. 17148if test "${enable_strict_compilation+set}" = set; then : 17149 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17150else 17151 STRICT_COMPILE=no 17152fi 17153 17154 17155 17156 17157 17158 17159STRICT_CFLAGS="" 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173xorg_testset_save_CFLAGS="$CFLAGS" 17174 17175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17180 $as_echo_n "(cached) " >&6 17181else 17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184int i; 17185_ACEOF 17186if ac_fn_c_try_compile "$LINENO"; then : 17187 xorg_cv_cc_flag_unknown_warning_option=yes 17188else 17189 xorg_cv_cc_flag_unknown_warning_option=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17192fi 17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197fi 17198 17199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17202 fi 17203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211int i; 17212_ACEOF 17213if ac_fn_c_try_compile "$LINENO"; then : 17214 xorg_cv_cc_flag_unused_command_line_argument=yes 17215else 17216 xorg_cv_cc_flag_unused_command_line_argument=no 17217fi 17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17219fi 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17223 CFLAGS="$xorg_testset_save_CFLAGS" 17224fi 17225 17226found="no" 17227 17228 if test $found = "no" ; then 17229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17231 fi 17232 17233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17235 fi 17236 17237 CFLAGS="$CFLAGS -pedantic" 17238 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17240$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17241 cacheid=xorg_cv_cc_flag__pedantic 17242 if eval \${$cacheid+:} false; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247int i; 17248int 17249main () 17250{ 17251 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256if ac_fn_c_try_link "$LINENO"; then : 17257 eval $cacheid=yes 17258else 17259 eval $cacheid=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext \ 17262 conftest$ac_exeext conftest.$ac_ext 17263fi 17264 17265 17266 CFLAGS="$xorg_testset_save_CFLAGS" 17267 17268 eval supported=\$$cacheid 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17270$as_echo "$supported" >&6; } 17271 if test "$supported" = "yes" ; then 17272 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17273 found="yes" 17274 fi 17275 fi 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291xorg_testset_save_CFLAGS="$CFLAGS" 17292 17293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17298 $as_echo_n "(cached) " >&6 17299else 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302int i; 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO"; then : 17305 xorg_cv_cc_flag_unknown_warning_option=yes 17306else 17307 xorg_cv_cc_flag_unknown_warning_option=no 17308fi 17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17310fi 17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315fi 17316 17317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17320 fi 17321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17325 $as_echo_n "(cached) " >&6 17326else 17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17328/* end confdefs.h. */ 17329int i; 17330_ACEOF 17331if ac_fn_c_try_compile "$LINENO"; then : 17332 xorg_cv_cc_flag_unused_command_line_argument=yes 17333else 17334 xorg_cv_cc_flag_unused_command_line_argument=no 17335fi 17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17337fi 17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17341 CFLAGS="$xorg_testset_save_CFLAGS" 17342fi 17343 17344found="no" 17345 17346 if test $found = "no" ; then 17347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17349 fi 17350 17351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17353 fi 17354 17355 CFLAGS="$CFLAGS -Werror" 17356 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17358$as_echo_n "checking if $CC supports -Werror... " >&6; } 17359 cacheid=xorg_cv_cc_flag__Werror 17360 if eval \${$cacheid+:} false; then : 17361 $as_echo_n "(cached) " >&6 17362else 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365int i; 17366int 17367main () 17368{ 17369 17370 ; 17371 return 0; 17372} 17373_ACEOF 17374if ac_fn_c_try_link "$LINENO"; then : 17375 eval $cacheid=yes 17376else 17377 eval $cacheid=no 17378fi 17379rm -f core conftest.err conftest.$ac_objext \ 17380 conftest$ac_exeext conftest.$ac_ext 17381fi 17382 17383 17384 CFLAGS="$xorg_testset_save_CFLAGS" 17385 17386 eval supported=\$$cacheid 17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17388$as_echo "$supported" >&6; } 17389 if test "$supported" = "yes" ; then 17390 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17391 found="yes" 17392 fi 17393 fi 17394 17395 if test $found = "no" ; then 17396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17398 fi 17399 17400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17402 fi 17403 17404 CFLAGS="$CFLAGS -errwarn" 17405 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17407$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17408 cacheid=xorg_cv_cc_flag__errwarn 17409 if eval \${$cacheid+:} false; then : 17410 $as_echo_n "(cached) " >&6 17411else 17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17413/* end confdefs.h. */ 17414int i; 17415int 17416main () 17417{ 17418 17419 ; 17420 return 0; 17421} 17422_ACEOF 17423if ac_fn_c_try_link "$LINENO"; then : 17424 eval $cacheid=yes 17425else 17426 eval $cacheid=no 17427fi 17428rm -f core conftest.err conftest.$ac_objext \ 17429 conftest$ac_exeext conftest.$ac_ext 17430fi 17431 17432 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434 17435 eval supported=\$$cacheid 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17437$as_echo "$supported" >&6; } 17438 if test "$supported" = "yes" ; then 17439 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17440 found="yes" 17441 fi 17442 fi 17443 17444 17445 17446# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17447# activate it with -Werror, so we add it here explicitly. 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461xorg_testset_save_CFLAGS="$CFLAGS" 17462 17463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17468 $as_echo_n "(cached) " >&6 17469else 17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17471/* end confdefs.h. */ 17472int i; 17473_ACEOF 17474if ac_fn_c_try_compile "$LINENO"; then : 17475 xorg_cv_cc_flag_unknown_warning_option=yes 17476else 17477 xorg_cv_cc_flag_unknown_warning_option=no 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17480fi 17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17484 CFLAGS="$xorg_testset_save_CFLAGS" 17485fi 17486 17487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17490 fi 17491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17495 $as_echo_n "(cached) " >&6 17496else 17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499int i; 17500_ACEOF 17501if ac_fn_c_try_compile "$LINENO"; then : 17502 xorg_cv_cc_flag_unused_command_line_argument=yes 17503else 17504 xorg_cv_cc_flag_unused_command_line_argument=no 17505fi 17506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17507fi 17508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17511 CFLAGS="$xorg_testset_save_CFLAGS" 17512fi 17513 17514found="no" 17515 17516 if test $found = "no" ; then 17517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17519 fi 17520 17521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17523 fi 17524 17525 CFLAGS="$CFLAGS -Werror=attributes" 17526 17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17528$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17529 cacheid=xorg_cv_cc_flag__Werror_attributes 17530 if eval \${$cacheid+:} false; then : 17531 $as_echo_n "(cached) " >&6 17532else 17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17534/* end confdefs.h. */ 17535int i; 17536int 17537main () 17538{ 17539 17540 ; 17541 return 0; 17542} 17543_ACEOF 17544if ac_fn_c_try_link "$LINENO"; then : 17545 eval $cacheid=yes 17546else 17547 eval $cacheid=no 17548fi 17549rm -f core conftest.err conftest.$ac_objext \ 17550 conftest$ac_exeext conftest.$ac_ext 17551fi 17552 17553 17554 CFLAGS="$xorg_testset_save_CFLAGS" 17555 17556 eval supported=\$$cacheid 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17558$as_echo "$supported" >&6; } 17559 if test "$supported" = "yes" ; then 17560 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17561 found="yes" 17562 fi 17563 fi 17564 17565 17566 17567if test "x$STRICT_COMPILE" = "xyes"; then 17568 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17569 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17570fi 17571 17572 17573 17574 17575 17576 17577cat >>confdefs.h <<_ACEOF 17578#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17579_ACEOF 17580 17581 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17582 if test "x$PVM" = "x"; then 17583 PVM="0" 17584 fi 17585 17586cat >>confdefs.h <<_ACEOF 17587#define PACKAGE_VERSION_MINOR $PVM 17588_ACEOF 17589 17590 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17591 if test "x$PVP" = "x"; then 17592 PVP="0" 17593 fi 17594 17595cat >>confdefs.h <<_ACEOF 17596#define PACKAGE_VERSION_PATCHLEVEL $PVP 17597_ACEOF 17598 17599 17600 17601CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17602mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17603|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17604echo 'git directory not found: installing possibly empty changelog.' >&2)" 17605 17606 17607 17608 17609macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17610INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17611mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17612|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17613echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17614 17615 17616 17617 17618 17619 17620if test x$APP_MAN_SUFFIX = x ; then 17621 APP_MAN_SUFFIX=1 17622fi 17623if test x$APP_MAN_DIR = x ; then 17624 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17625fi 17626 17627if test x$LIB_MAN_SUFFIX = x ; then 17628 LIB_MAN_SUFFIX=3 17629fi 17630if test x$LIB_MAN_DIR = x ; then 17631 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17632fi 17633 17634if test x$FILE_MAN_SUFFIX = x ; then 17635 case $host_os in 17636 solaris*) FILE_MAN_SUFFIX=4 ;; 17637 *) FILE_MAN_SUFFIX=5 ;; 17638 esac 17639fi 17640if test x$FILE_MAN_DIR = x ; then 17641 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17642fi 17643 17644if test x$MISC_MAN_SUFFIX = x ; then 17645 case $host_os in 17646 solaris*) MISC_MAN_SUFFIX=5 ;; 17647 *) MISC_MAN_SUFFIX=7 ;; 17648 esac 17649fi 17650if test x$MISC_MAN_DIR = x ; then 17651 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17652fi 17653 17654if test x$DRIVER_MAN_SUFFIX = x ; then 17655 case $host_os in 17656 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17657 *) DRIVER_MAN_SUFFIX=4 ;; 17658 esac 17659fi 17660if test x$DRIVER_MAN_DIR = x ; then 17661 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17662fi 17663 17664if test x$ADMIN_MAN_SUFFIX = x ; then 17665 case $host_os in 17666 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17667 *) ADMIN_MAN_SUFFIX=8 ;; 17668 esac 17669fi 17670if test x$ADMIN_MAN_DIR = x ; then 17671 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17672fi 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688XORG_MAN_PAGE="X Version 11" 17689 17690MAN_SUBSTS="\ 17691 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17692 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17693 -e 's|__xservername__|Xorg|g' \ 17694 -e 's|__xconfigfile__|xorg.conf|g' \ 17695 -e 's|__projectroot__|\$(prefix)|g' \ 17696 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17697 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17698 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17699 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17700 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17701 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17702 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17703 17704 17705 17706# Check whether --enable-silent-rules was given. 17707if test "${enable_silent_rules+set}" = set; then : 17708 enableval=$enable_silent_rules; 17709fi 17710 17711case $enable_silent_rules in # ((( 17712 yes) AM_DEFAULT_VERBOSITY=0;; 17713 no) AM_DEFAULT_VERBOSITY=1;; 17714 *) AM_DEFAULT_VERBOSITY=0;; 17715esac 17716am_make=${MAKE-make} 17717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17718$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17719if ${am_cv_make_support_nested_variables+:} false; then : 17720 $as_echo_n "(cached) " >&6 17721else 17722 if $as_echo 'TRUE=$(BAR$(V)) 17723BAR0=false 17724BAR1=true 17725V=1 17726am__doit: 17727 @$(TRUE) 17728.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17729 am_cv_make_support_nested_variables=yes 17730else 17731 am_cv_make_support_nested_variables=no 17732fi 17733fi 17734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17735$as_echo "$am_cv_make_support_nested_variables" >&6; } 17736if test $am_cv_make_support_nested_variables = yes; then 17737 AM_V='$(V)' 17738 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17739else 17740 AM_V=$AM_DEFAULT_VERBOSITY 17741 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17742fi 17743AM_BACKSLASH='\' 17744 17745 17746 17747# Checks for library functions. 17748ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17749if test "x$ac_cv_func_strcasecmp" = xyes; then : 17750 17751else 17752 17753$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h 17754 17755fi 17756 17757ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 17758if test "x$ac_cv_func_getc_unlocked" = xyes; then : 17759 17760$as_echo "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h 17761 17762fi 17763 17764 17765# Obtain compiler/linker options for depedencies 17766 17767pkg_failed=no 17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5 17769$as_echo_n "checking for XKBFILE... " >&6; } 17770 17771if test -n "$XKBFILE_CFLAGS"; then 17772 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS" 17773 elif test -n "$PKG_CONFIG"; then 17774 if test -n "$PKG_CONFIG" && \ 17775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 17776 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 17777 ac_status=$? 17778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17779 test $ac_status = 0; }; then 17780 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null` 17781else 17782 pkg_failed=yes 17783fi 17784 else 17785 pkg_failed=untried 17786fi 17787if test -n "$XKBFILE_LIBS"; then 17788 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS" 17789 elif test -n "$PKG_CONFIG"; then 17790 if test -n "$PKG_CONFIG" && \ 17791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 17792 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 17793 ac_status=$? 17794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17795 test $ac_status = 0; }; then 17796 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null` 17797else 17798 pkg_failed=yes 17799fi 17800 else 17801 pkg_failed=untried 17802fi 17803 17804 17805 17806if test $pkg_failed = yes; then 17807 17808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17809 _pkg_short_errors_supported=yes 17810else 17811 _pkg_short_errors_supported=no 17812fi 17813 if test $_pkg_short_errors_supported = yes; then 17814 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 kbproto" 2>&1` 17815 else 17816 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 kbproto" 2>&1` 17817 fi 17818 # Put the nasty error message in config.log where it belongs 17819 echo "$XKBFILE_PKG_ERRORS" >&5 17820 17821 as_fn_error $? "Package requirements (x11 kbproto) were not met: 17822 17823$XKBFILE_PKG_ERRORS 17824 17825Consider adjusting the PKG_CONFIG_PATH environment variable if you 17826installed software in a non-standard prefix. 17827 17828Alternatively, you may set the environment variables XKBFILE_CFLAGS 17829and XKBFILE_LIBS to avoid the need to call pkg-config. 17830See the pkg-config man page for more details. 17831" "$LINENO" 5 17832elif test $pkg_failed = untried; then 17833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17835as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17836is in your PATH or set the PKG_CONFIG environment variable to the full 17837path to pkg-config. 17838 17839Alternatively, you may set the environment variables XKBFILE_CFLAGS 17840and XKBFILE_LIBS to avoid the need to call pkg-config. 17841See the pkg-config man page for more details. 17842 17843To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17844See \`config.log' for more details" "$LINENO" 5; } 17845else 17846 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS 17847 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17849$as_echo "yes" >&6; } 17850 : 17851fi 17852 17853ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc" 17854 17855cat >confcache <<\_ACEOF 17856# This file is a shell script that caches the results of configure 17857# tests run on this system so they can be shared between configure 17858# scripts and configure runs, see configure's option --config-cache. 17859# It is not useful on other systems. If it contains results you don't 17860# want to keep, you may remove or edit it. 17861# 17862# config.status only pays attention to the cache file if you give it 17863# the --recheck option to rerun configure. 17864# 17865# `ac_cv_env_foo' variables (set or unset) will be overridden when 17866# loading this file, other *unset* `ac_cv_foo' will be assigned the 17867# following values. 17868 17869_ACEOF 17870 17871# The following way of writing the cache mishandles newlines in values, 17872# but we know of no workaround that is simple, portable, and efficient. 17873# So, we kill variables containing newlines. 17874# Ultrix sh set writes to stderr and can't be redirected directly, 17875# and sets the high bit in the cache file unless we assign to the vars. 17876( 17877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17878 eval ac_val=\$$ac_var 17879 case $ac_val in #( 17880 *${as_nl}*) 17881 case $ac_var in #( 17882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17883$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17884 esac 17885 case $ac_var in #( 17886 _ | IFS | as_nl) ;; #( 17887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17888 *) { eval $ac_var=; unset $ac_var;} ;; 17889 esac ;; 17890 esac 17891 done 17892 17893 (set) 2>&1 | 17894 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17895 *${as_nl}ac_space=\ *) 17896 # `set' does not quote correctly, so add quotes: double-quote 17897 # substitution turns \\\\ into \\, and sed turns \\ into \. 17898 sed -n \ 17899 "s/'/'\\\\''/g; 17900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17901 ;; #( 17902 *) 17903 # `set' quotes correctly as required by POSIX, so do not add quotes. 17904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17905 ;; 17906 esac | 17907 sort 17908) | 17909 sed ' 17910 /^ac_cv_env_/b end 17911 t clear 17912 :clear 17913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17914 t end 17915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17916 :end' >>confcache 17917if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17918 if test -w "$cache_file"; then 17919 if test "x$cache_file" != "x/dev/null"; then 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17921$as_echo "$as_me: updating cache $cache_file" >&6;} 17922 if test ! -f "$cache_file" || test -h "$cache_file"; then 17923 cat confcache >"$cache_file" 17924 else 17925 case $cache_file in #( 17926 */* | ?:*) 17927 mv -f confcache "$cache_file"$$ && 17928 mv -f "$cache_file"$$ "$cache_file" ;; #( 17929 *) 17930 mv -f confcache "$cache_file" ;; 17931 esac 17932 fi 17933 fi 17934 else 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17936$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17937 fi 17938fi 17939rm -f confcache 17940 17941test "x$prefix" = xNONE && prefix=$ac_default_prefix 17942# Let make expand exec_prefix. 17943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17944 17945DEFS=-DHAVE_CONFIG_H 17946 17947ac_libobjs= 17948ac_ltlibobjs= 17949U= 17950for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17951 # 1. Remove the extension, and $U if already installed. 17952 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17953 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17955 # will be set to the directory where LIBOBJS objects are built. 17956 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17957 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17958done 17959LIBOBJS=$ac_libobjs 17960 17961LTLIBOBJS=$ac_ltlibobjs 17962 17963 17964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17965$as_echo_n "checking that generated files are newer than configure... " >&6; } 17966 if test -n "$am_sleep_pid"; then 17967 # Hide warnings about reused PIDs. 17968 wait $am_sleep_pid 2>/dev/null 17969 fi 17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17971$as_echo "done" >&6; } 17972 if test -n "$EXEEXT"; then 17973 am__EXEEXT_TRUE= 17974 am__EXEEXT_FALSE='#' 17975else 17976 am__EXEEXT_TRUE='#' 17977 am__EXEEXT_FALSE= 17978fi 17979 17980if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17981 as_fn_error $? "conditional \"AMDEP\" was never defined. 17982Usually this means the macro was only invoked conditionally." "$LINENO" 5 17983fi 17984if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17985 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17986Usually this means the macro was only invoked conditionally." "$LINENO" 5 17987fi 17988 17989: "${CONFIG_STATUS=./config.status}" 17990ac_write_fail=0 17991ac_clean_files_save=$ac_clean_files 17992ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17993{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17994$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17995as_write_fail=0 17996cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17997#! $SHELL 17998# Generated by $as_me. 17999# Run this file to recreate the current configuration. 18000# Compiler output produced by configure, useful for debugging 18001# configure, is in config.log if it exists. 18002 18003debug=false 18004ac_cs_recheck=false 18005ac_cs_silent=false 18006 18007SHELL=\${CONFIG_SHELL-$SHELL} 18008export SHELL 18009_ASEOF 18010cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18011## -------------------- ## 18012## M4sh Initialization. ## 18013## -------------------- ## 18014 18015# Be more Bourne compatible 18016DUALCASE=1; export DUALCASE # for MKS sh 18017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18018 emulate sh 18019 NULLCMD=: 18020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18021 # is contrary to our usage. Disable this feature. 18022 alias -g '${1+"$@"}'='"$@"' 18023 setopt NO_GLOB_SUBST 18024else 18025 case `(set -o) 2>/dev/null` in #( 18026 *posix*) : 18027 set -o posix ;; #( 18028 *) : 18029 ;; 18030esac 18031fi 18032 18033 18034as_nl=' 18035' 18036export as_nl 18037# Printing a long string crashes Solaris 7 /usr/bin/printf. 18038as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18039as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18040as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18041# Prefer a ksh shell builtin over an external printf program on Solaris, 18042# but without wasting forks for bash or zsh. 18043if test -z "$BASH_VERSION$ZSH_VERSION" \ 18044 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18045 as_echo='print -r --' 18046 as_echo_n='print -rn --' 18047elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18048 as_echo='printf %s\n' 18049 as_echo_n='printf %s' 18050else 18051 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18052 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18053 as_echo_n='/usr/ucb/echo -n' 18054 else 18055 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18056 as_echo_n_body='eval 18057 arg=$1; 18058 case $arg in #( 18059 *"$as_nl"*) 18060 expr "X$arg" : "X\\(.*\\)$as_nl"; 18061 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18062 esac; 18063 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18064 ' 18065 export as_echo_n_body 18066 as_echo_n='sh -c $as_echo_n_body as_echo' 18067 fi 18068 export as_echo_body 18069 as_echo='sh -c $as_echo_body as_echo' 18070fi 18071 18072# The user is always right. 18073if test "${PATH_SEPARATOR+set}" != set; then 18074 PATH_SEPARATOR=: 18075 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18076 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18077 PATH_SEPARATOR=';' 18078 } 18079fi 18080 18081 18082# IFS 18083# We need space, tab and new line, in precisely that order. Quoting is 18084# there to prevent editors from complaining about space-tab. 18085# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18086# splitting by setting IFS to empty value.) 18087IFS=" "" $as_nl" 18088 18089# Find who we are. Look in the path if we contain no directory separator. 18090as_myself= 18091case $0 in #(( 18092 *[\\/]* ) as_myself=$0 ;; 18093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18094for as_dir in $PATH 18095do 18096 IFS=$as_save_IFS 18097 test -z "$as_dir" && as_dir=. 18098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18099 done 18100IFS=$as_save_IFS 18101 18102 ;; 18103esac 18104# We did not find ourselves, most probably we were run as `sh COMMAND' 18105# in which case we are not to be found in the path. 18106if test "x$as_myself" = x; then 18107 as_myself=$0 18108fi 18109if test ! -f "$as_myself"; then 18110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18111 exit 1 18112fi 18113 18114# Unset variables that we do not need and which cause bugs (e.g. in 18115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18116# suppresses any "Segmentation fault" message there. '((' could 18117# trigger a bug in pdksh 5.2.14. 18118for as_var in BASH_ENV ENV MAIL MAILPATH 18119do eval test x\${$as_var+set} = xset \ 18120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18121done 18122PS1='$ ' 18123PS2='> ' 18124PS4='+ ' 18125 18126# NLS nuisances. 18127LC_ALL=C 18128export LC_ALL 18129LANGUAGE=C 18130export LANGUAGE 18131 18132# CDPATH. 18133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18134 18135 18136# as_fn_error STATUS ERROR [LINENO LOG_FD] 18137# ---------------------------------------- 18138# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18139# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18140# script with STATUS, using 1 if that was 0. 18141as_fn_error () 18142{ 18143 as_status=$1; test $as_status -eq 0 && as_status=1 18144 if test "$4"; then 18145 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18146 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18147 fi 18148 $as_echo "$as_me: error: $2" >&2 18149 as_fn_exit $as_status 18150} # as_fn_error 18151 18152 18153# as_fn_set_status STATUS 18154# ----------------------- 18155# Set $? to STATUS, without forking. 18156as_fn_set_status () 18157{ 18158 return $1 18159} # as_fn_set_status 18160 18161# as_fn_exit STATUS 18162# ----------------- 18163# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18164as_fn_exit () 18165{ 18166 set +e 18167 as_fn_set_status $1 18168 exit $1 18169} # as_fn_exit 18170 18171# as_fn_unset VAR 18172# --------------- 18173# Portably unset VAR. 18174as_fn_unset () 18175{ 18176 { eval $1=; unset $1;} 18177} 18178as_unset=as_fn_unset 18179# as_fn_append VAR VALUE 18180# ---------------------- 18181# Append the text in VALUE to the end of the definition contained in VAR. Take 18182# advantage of any shell optimizations that allow amortized linear growth over 18183# repeated appends, instead of the typical quadratic growth present in naive 18184# implementations. 18185if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18186 eval 'as_fn_append () 18187 { 18188 eval $1+=\$2 18189 }' 18190else 18191 as_fn_append () 18192 { 18193 eval $1=\$$1\$2 18194 } 18195fi # as_fn_append 18196 18197# as_fn_arith ARG... 18198# ------------------ 18199# Perform arithmetic evaluation on the ARGs, and store the result in the 18200# global $as_val. Take advantage of shells that can avoid forks. The arguments 18201# must be portable across $(()) and expr. 18202if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18203 eval 'as_fn_arith () 18204 { 18205 as_val=$(( $* )) 18206 }' 18207else 18208 as_fn_arith () 18209 { 18210 as_val=`expr "$@" || test $? -eq 1` 18211 } 18212fi # as_fn_arith 18213 18214 18215if expr a : '\(a\)' >/dev/null 2>&1 && 18216 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18217 as_expr=expr 18218else 18219 as_expr=false 18220fi 18221 18222if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18223 as_basename=basename 18224else 18225 as_basename=false 18226fi 18227 18228if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18229 as_dirname=dirname 18230else 18231 as_dirname=false 18232fi 18233 18234as_me=`$as_basename -- "$0" || 18235$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18236 X"$0" : 'X\(//\)$' \| \ 18237 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18238$as_echo X/"$0" | 18239 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18240 s//\1/ 18241 q 18242 } 18243 /^X\/\(\/\/\)$/{ 18244 s//\1/ 18245 q 18246 } 18247 /^X\/\(\/\).*/{ 18248 s//\1/ 18249 q 18250 } 18251 s/.*/./; q'` 18252 18253# Avoid depending upon Character Ranges. 18254as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18255as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18256as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18257as_cr_digits='0123456789' 18258as_cr_alnum=$as_cr_Letters$as_cr_digits 18259 18260ECHO_C= ECHO_N= ECHO_T= 18261case `echo -n x` in #((((( 18262-n*) 18263 case `echo 'xy\c'` in 18264 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18265 xy) ECHO_C='\c';; 18266 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18267 ECHO_T=' ';; 18268 esac;; 18269*) 18270 ECHO_N='-n';; 18271esac 18272 18273rm -f conf$$ conf$$.exe conf$$.file 18274if test -d conf$$.dir; then 18275 rm -f conf$$.dir/conf$$.file 18276else 18277 rm -f conf$$.dir 18278 mkdir conf$$.dir 2>/dev/null 18279fi 18280if (echo >conf$$.file) 2>/dev/null; then 18281 if ln -s conf$$.file conf$$ 2>/dev/null; then 18282 as_ln_s='ln -s' 18283 # ... but there are two gotchas: 18284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18286 # In both cases, we have to default to `cp -pR'. 18287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18288 as_ln_s='cp -pR' 18289 elif ln conf$$.file conf$$ 2>/dev/null; then 18290 as_ln_s=ln 18291 else 18292 as_ln_s='cp -pR' 18293 fi 18294else 18295 as_ln_s='cp -pR' 18296fi 18297rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18298rmdir conf$$.dir 2>/dev/null 18299 18300 18301# as_fn_mkdir_p 18302# ------------- 18303# Create "$as_dir" as a directory, including parents if necessary. 18304as_fn_mkdir_p () 18305{ 18306 18307 case $as_dir in #( 18308 -*) as_dir=./$as_dir;; 18309 esac 18310 test -d "$as_dir" || eval $as_mkdir_p || { 18311 as_dirs= 18312 while :; do 18313 case $as_dir in #( 18314 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18315 *) as_qdir=$as_dir;; 18316 esac 18317 as_dirs="'$as_qdir' $as_dirs" 18318 as_dir=`$as_dirname -- "$as_dir" || 18319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18320 X"$as_dir" : 'X\(//\)[^/]' \| \ 18321 X"$as_dir" : 'X\(//\)$' \| \ 18322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18323$as_echo X"$as_dir" | 18324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18325 s//\1/ 18326 q 18327 } 18328 /^X\(\/\/\)[^/].*/{ 18329 s//\1/ 18330 q 18331 } 18332 /^X\(\/\/\)$/{ 18333 s//\1/ 18334 q 18335 } 18336 /^X\(\/\).*/{ 18337 s//\1/ 18338 q 18339 } 18340 s/.*/./; q'` 18341 test -d "$as_dir" && break 18342 done 18343 test -z "$as_dirs" || eval "mkdir $as_dirs" 18344 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18345 18346 18347} # as_fn_mkdir_p 18348if mkdir -p . 2>/dev/null; then 18349 as_mkdir_p='mkdir -p "$as_dir"' 18350else 18351 test -d ./-p && rmdir ./-p 18352 as_mkdir_p=false 18353fi 18354 18355 18356# as_fn_executable_p FILE 18357# ----------------------- 18358# Test if FILE is an executable regular file. 18359as_fn_executable_p () 18360{ 18361 test -f "$1" && test -x "$1" 18362} # as_fn_executable_p 18363as_test_x='test -x' 18364as_executable_p=as_fn_executable_p 18365 18366# Sed expression to map a string onto a valid CPP name. 18367as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18368 18369# Sed expression to map a string onto a valid variable name. 18370as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18371 18372 18373exec 6>&1 18374## ----------------------------------- ## 18375## Main body of $CONFIG_STATUS script. ## 18376## ----------------------------------- ## 18377_ASEOF 18378test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18379 18380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18381# Save the log message, to keep $0 and so on meaningful, and to 18382# report actual input values of CONFIG_FILES etc. instead of their 18383# values after options handling. 18384ac_log=" 18385This file was extended by libxkbfile $as_me 1.0.9, which was 18386generated by GNU Autoconf 2.69. Invocation command line was 18387 18388 CONFIG_FILES = $CONFIG_FILES 18389 CONFIG_HEADERS = $CONFIG_HEADERS 18390 CONFIG_LINKS = $CONFIG_LINKS 18391 CONFIG_COMMANDS = $CONFIG_COMMANDS 18392 $ $0 $@ 18393 18394on `(hostname || uname -n) 2>/dev/null | sed 1q` 18395" 18396 18397_ACEOF 18398 18399case $ac_config_files in *" 18400"*) set x $ac_config_files; shift; ac_config_files=$*;; 18401esac 18402 18403case $ac_config_headers in *" 18404"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18405esac 18406 18407 18408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18409# Files that config.status was made for. 18410config_files="$ac_config_files" 18411config_headers="$ac_config_headers" 18412config_commands="$ac_config_commands" 18413 18414_ACEOF 18415 18416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18417ac_cs_usage="\ 18418\`$as_me' instantiates files and other configuration actions 18419from templates according to the current configuration. Unless the files 18420and actions are specified as TAGs, all are instantiated by default. 18421 18422Usage: $0 [OPTION]... [TAG]... 18423 18424 -h, --help print this help, then exit 18425 -V, --version print version number and configuration settings, then exit 18426 --config print configuration, then exit 18427 -q, --quiet, --silent 18428 do not print progress messages 18429 -d, --debug don't remove temporary files 18430 --recheck update $as_me by reconfiguring in the same conditions 18431 --file=FILE[:TEMPLATE] 18432 instantiate the configuration file FILE 18433 --header=FILE[:TEMPLATE] 18434 instantiate the configuration header FILE 18435 18436Configuration files: 18437$config_files 18438 18439Configuration headers: 18440$config_headers 18441 18442Configuration commands: 18443$config_commands 18444 18445Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18446 18447_ACEOF 18448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18449ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18450ac_cs_version="\\ 18451libxkbfile config.status 1.0.9 18452configured by $0, generated by GNU Autoconf 2.69, 18453 with options \\"\$ac_cs_config\\" 18454 18455Copyright (C) 2012 Free Software Foundation, Inc. 18456This config.status script is free software; the Free Software Foundation 18457gives unlimited permission to copy, distribute and modify it." 18458 18459ac_pwd='$ac_pwd' 18460srcdir='$srcdir' 18461INSTALL='$INSTALL' 18462MKDIR_P='$MKDIR_P' 18463AWK='$AWK' 18464test -n "\$AWK" || AWK=awk 18465_ACEOF 18466 18467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18468# The default lists apply if the user does not specify any file. 18469ac_need_defaults=: 18470while test $# != 0 18471do 18472 case $1 in 18473 --*=?*) 18474 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18475 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18476 ac_shift=: 18477 ;; 18478 --*=) 18479 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18480 ac_optarg= 18481 ac_shift=: 18482 ;; 18483 *) 18484 ac_option=$1 18485 ac_optarg=$2 18486 ac_shift=shift 18487 ;; 18488 esac 18489 18490 case $ac_option in 18491 # Handling of the options. 18492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18493 ac_cs_recheck=: ;; 18494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18495 $as_echo "$ac_cs_version"; exit ;; 18496 --config | --confi | --conf | --con | --co | --c ) 18497 $as_echo "$ac_cs_config"; exit ;; 18498 --debug | --debu | --deb | --de | --d | -d ) 18499 debug=: ;; 18500 --file | --fil | --fi | --f ) 18501 $ac_shift 18502 case $ac_optarg in 18503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18504 '') as_fn_error $? "missing file argument" ;; 18505 esac 18506 as_fn_append CONFIG_FILES " '$ac_optarg'" 18507 ac_need_defaults=false;; 18508 --header | --heade | --head | --hea ) 18509 $ac_shift 18510 case $ac_optarg in 18511 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18512 esac 18513 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18514 ac_need_defaults=false;; 18515 --he | --h) 18516 # Conflict between --help and --header 18517 as_fn_error $? "ambiguous option: \`$1' 18518Try \`$0 --help' for more information.";; 18519 --help | --hel | -h ) 18520 $as_echo "$ac_cs_usage"; exit ;; 18521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18522 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18523 ac_cs_silent=: ;; 18524 18525 # This is an error. 18526 -*) as_fn_error $? "unrecognized option: \`$1' 18527Try \`$0 --help' for more information." ;; 18528 18529 *) as_fn_append ac_config_targets " $1" 18530 ac_need_defaults=false ;; 18531 18532 esac 18533 shift 18534done 18535 18536ac_configure_extra_args= 18537 18538if $ac_cs_silent; then 18539 exec 6>/dev/null 18540 ac_configure_extra_args="$ac_configure_extra_args --silent" 18541fi 18542 18543_ACEOF 18544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18545if \$ac_cs_recheck; then 18546 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18547 shift 18548 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18549 CONFIG_SHELL='$SHELL' 18550 export CONFIG_SHELL 18551 exec "\$@" 18552fi 18553 18554_ACEOF 18555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18556exec 5>>config.log 18557{ 18558 echo 18559 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18560## Running $as_me. ## 18561_ASBOX 18562 $as_echo "$ac_log" 18563} >&5 18564 18565_ACEOF 18566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18567# 18568# INIT-COMMANDS 18569# 18570AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18571 18572 18573# The HP-UX ksh and POSIX shell print the target directory to stdout 18574# if CDPATH is set. 18575(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18576 18577sed_quote_subst='$sed_quote_subst' 18578double_quote_subst='$double_quote_subst' 18579delay_variable_subst='$delay_variable_subst' 18580macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18581macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18582enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18583enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18584pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18585enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18586SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18587ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18588PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18589host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18590host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18591host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18592build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18593build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18594build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18595SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18596Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18597GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18598EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18599FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18600LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18601NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18602LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18603max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18604ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18605exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18606lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18607lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18608lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18609lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18610lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18611reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18612reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18613OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18614deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18615file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18616file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18617want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18618DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18619sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18620AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18621AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18622archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18623STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18624RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18625old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18626old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18627old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18628lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18629CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18630CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18631compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18632GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18633lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18634lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18635lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18636lt_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"`' 18637nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18638lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18639objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18640MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18641lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18642lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18643lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18644lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18645lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18646need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18647MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18648DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18649NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18650LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18651OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18652OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18653libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18654shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18655extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18656archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18657enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18658export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18659whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18660compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18661old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18662old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18663archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18664archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18665module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18666module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18667with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18668allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18669no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18670hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18671hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18672hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18673hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18674hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18675hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18676hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18677inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18678link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18679always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18680export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18681exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18682include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18683prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18684postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18685file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18686variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18687need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18688need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18689version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18690runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18691shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18692shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18693libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18694library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18695soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18696install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18697postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18698postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18699finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18700finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18701hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18702sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18703sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18704hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18705enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18706enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18707enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18708old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18709striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18710 18711LTCC='$LTCC' 18712LTCFLAGS='$LTCFLAGS' 18713compiler='$compiler_DEFAULT' 18714 18715# A function that is used when there is no print builtin or printf. 18716func_fallback_echo () 18717{ 18718 eval 'cat <<_LTECHO_EOF 18719\$1 18720_LTECHO_EOF' 18721} 18722 18723# Quote evaled strings. 18724for var in SHELL \ 18725ECHO \ 18726PATH_SEPARATOR \ 18727SED \ 18728GREP \ 18729EGREP \ 18730FGREP \ 18731LD \ 18732NM \ 18733LN_S \ 18734lt_SP2NL \ 18735lt_NL2SP \ 18736reload_flag \ 18737OBJDUMP \ 18738deplibs_check_method \ 18739file_magic_cmd \ 18740file_magic_glob \ 18741want_nocaseglob \ 18742DLLTOOL \ 18743sharedlib_from_linklib_cmd \ 18744AR \ 18745AR_FLAGS \ 18746archiver_list_spec \ 18747STRIP \ 18748RANLIB \ 18749CC \ 18750CFLAGS \ 18751compiler \ 18752lt_cv_sys_global_symbol_pipe \ 18753lt_cv_sys_global_symbol_to_cdecl \ 18754lt_cv_sys_global_symbol_to_c_name_address \ 18755lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18756nm_file_list_spec \ 18757lt_prog_compiler_no_builtin_flag \ 18758lt_prog_compiler_pic \ 18759lt_prog_compiler_wl \ 18760lt_prog_compiler_static \ 18761lt_cv_prog_compiler_c_o \ 18762need_locks \ 18763MANIFEST_TOOL \ 18764DSYMUTIL \ 18765NMEDIT \ 18766LIPO \ 18767OTOOL \ 18768OTOOL64 \ 18769shrext_cmds \ 18770export_dynamic_flag_spec \ 18771whole_archive_flag_spec \ 18772compiler_needs_object \ 18773with_gnu_ld \ 18774allow_undefined_flag \ 18775no_undefined_flag \ 18776hardcode_libdir_flag_spec \ 18777hardcode_libdir_separator \ 18778exclude_expsyms \ 18779include_expsyms \ 18780file_list_spec \ 18781variables_saved_for_relink \ 18782libname_spec \ 18783library_names_spec \ 18784soname_spec \ 18785install_override_mode \ 18786finish_eval \ 18787old_striplib \ 18788striplib; do 18789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18790 *[\\\\\\\`\\"\\\$]*) 18791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18792 ;; 18793 *) 18794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18795 ;; 18796 esac 18797done 18798 18799# Double-quote double-evaled strings. 18800for var in reload_cmds \ 18801old_postinstall_cmds \ 18802old_postuninstall_cmds \ 18803old_archive_cmds \ 18804extract_expsyms_cmds \ 18805old_archive_from_new_cmds \ 18806old_archive_from_expsyms_cmds \ 18807archive_cmds \ 18808archive_expsym_cmds \ 18809module_cmds \ 18810module_expsym_cmds \ 18811export_symbols_cmds \ 18812prelink_cmds \ 18813postlink_cmds \ 18814postinstall_cmds \ 18815postuninstall_cmds \ 18816finish_cmds \ 18817sys_lib_search_path_spec \ 18818sys_lib_dlsearch_path_spec; do 18819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18820 *[\\\\\\\`\\"\\\$]*) 18821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18822 ;; 18823 *) 18824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18825 ;; 18826 esac 18827done 18828 18829ac_aux_dir='$ac_aux_dir' 18830xsi_shell='$xsi_shell' 18831lt_shell_append='$lt_shell_append' 18832 18833# See if we are running on zsh, and set the options which allow our 18834# commands through without removal of \ escapes INIT. 18835if test -n "\${ZSH_VERSION+set}" ; then 18836 setopt NO_GLOB_SUBST 18837fi 18838 18839 18840 PACKAGE='$PACKAGE' 18841 VERSION='$VERSION' 18842 TIMESTAMP='$TIMESTAMP' 18843 RM='$RM' 18844 ofile='$ofile' 18845 18846 18847 18848 18849_ACEOF 18850 18851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18852 18853# Handling of arguments. 18854for ac_config_target in $ac_config_targets 18855do 18856 case $ac_config_target in 18857 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18858 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18859 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18861 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18862 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;; 18863 18864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18865 esac 18866done 18867 18868 18869# If the user did not use the arguments to specify the items to instantiate, 18870# then the envvar interface is used. Set only those that are not. 18871# We use the long form for the default assignment because of an extremely 18872# bizarre bug on SunOS 4.1.3. 18873if $ac_need_defaults; then 18874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18877fi 18878 18879# Have a temporary directory for convenience. Make it in the build tree 18880# simply because there is no reason against having it here, and in addition, 18881# creating and moving files from /tmp can sometimes cause problems. 18882# Hook for its removal unless debugging. 18883# Note that there is a small window in which the directory will not be cleaned: 18884# after its creation but before its name has been assigned to `$tmp'. 18885$debug || 18886{ 18887 tmp= ac_tmp= 18888 trap 'exit_status=$? 18889 : "${ac_tmp:=$tmp}" 18890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18891' 0 18892 trap 'as_fn_exit 1' 1 2 13 15 18893} 18894# Create a (secure) tmp directory for tmp files. 18895 18896{ 18897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18898 test -d "$tmp" 18899} || 18900{ 18901 tmp=./conf$$-$RANDOM 18902 (umask 077 && mkdir "$tmp") 18903} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18904ac_tmp=$tmp 18905 18906# Set up the scripts for CONFIG_FILES section. 18907# No need to generate them if there are no CONFIG_FILES. 18908# This happens for instance with `./config.status config.h'. 18909if test -n "$CONFIG_FILES"; then 18910 18911 18912ac_cr=`echo X | tr X '\015'` 18913# On cygwin, bash can eat \r inside `` if the user requested igncr. 18914# But we know of no other shell where ac_cr would be empty at this 18915# point, so we can use a bashism as a fallback. 18916if test "x$ac_cr" = x; then 18917 eval ac_cr=\$\'\\r\' 18918fi 18919ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18920if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18921 ac_cs_awk_cr='\\r' 18922else 18923 ac_cs_awk_cr=$ac_cr 18924fi 18925 18926echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18927_ACEOF 18928 18929 18930{ 18931 echo "cat >conf$$subs.awk <<_ACEOF" && 18932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18933 echo "_ACEOF" 18934} >conf$$subs.sh || 18935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18936ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18937ac_delim='%!_!# ' 18938for ac_last_try in false false false false false :; do 18939 . ./conf$$subs.sh || 18940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18941 18942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18943 if test $ac_delim_n = $ac_delim_num; then 18944 break 18945 elif $ac_last_try; then 18946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18947 else 18948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18949 fi 18950done 18951rm -f conf$$subs.sh 18952 18953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18954cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18955_ACEOF 18956sed -n ' 18957h 18958s/^/S["/; s/!.*/"]=/ 18959p 18960g 18961s/^[^!]*!// 18962:repl 18963t repl 18964s/'"$ac_delim"'$// 18965t delim 18966:nl 18967h 18968s/\(.\{148\}\)..*/\1/ 18969t more1 18970s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18971p 18972n 18973b repl 18974:more1 18975s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18976p 18977g 18978s/.\{148\}// 18979t nl 18980:delim 18981h 18982s/\(.\{148\}\)..*/\1/ 18983t more2 18984s/["\\]/\\&/g; s/^/"/; s/$/"/ 18985p 18986b 18987:more2 18988s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18989p 18990g 18991s/.\{148\}// 18992t delim 18993' <conf$$subs.awk | sed ' 18994/^[^""]/{ 18995 N 18996 s/\n// 18997} 18998' >>$CONFIG_STATUS || ac_write_fail=1 18999rm -f conf$$subs.awk 19000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19001_ACAWK 19002cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19003 for (key in S) S_is_set[key] = 1 19004 FS = "" 19005 19006} 19007{ 19008 line = $ 0 19009 nfields = split(line, field, "@") 19010 substed = 0 19011 len = length(field[1]) 19012 for (i = 2; i < nfields; i++) { 19013 key = field[i] 19014 keylen = length(key) 19015 if (S_is_set[key]) { 19016 value = S[key] 19017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19018 len += length(value) + length(field[++i]) 19019 substed = 1 19020 } else 19021 len += 1 + keylen 19022 } 19023 19024 print line 19025} 19026 19027_ACAWK 19028_ACEOF 19029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19030if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19032else 19033 cat 19034fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19036_ACEOF 19037 19038# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19039# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19040# trailing colons and then remove the whole line if VPATH becomes empty 19041# (actually we leave an empty line to preserve line numbers). 19042if test "x$srcdir" = x.; then 19043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19044h 19045s/// 19046s/^/:/ 19047s/[ ]*$/:/ 19048s/:\$(srcdir):/:/g 19049s/:\${srcdir}:/:/g 19050s/:@srcdir@:/:/g 19051s/^:*// 19052s/:*$// 19053x 19054s/\(=[ ]*\).*/\1/ 19055G 19056s/\n// 19057s/^[^=]*=[ ]*$// 19058}' 19059fi 19060 19061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19062fi # test -n "$CONFIG_FILES" 19063 19064# Set up the scripts for CONFIG_HEADERS section. 19065# No need to generate them if there are no CONFIG_HEADERS. 19066# This happens for instance with `./config.status Makefile'. 19067if test -n "$CONFIG_HEADERS"; then 19068cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19069BEGIN { 19070_ACEOF 19071 19072# Transform confdefs.h into an awk script `defines.awk', embedded as 19073# here-document in config.status, that substitutes the proper values into 19074# config.h.in to produce config.h. 19075 19076# Create a delimiter string that does not exist in confdefs.h, to ease 19077# handling of long lines. 19078ac_delim='%!_!# ' 19079for ac_last_try in false false :; do 19080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19081 if test -z "$ac_tt"; then 19082 break 19083 elif $ac_last_try; then 19084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19085 else 19086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19087 fi 19088done 19089 19090# For the awk script, D is an array of macro values keyed by name, 19091# likewise P contains macro parameters if any. Preserve backslash 19092# newline sequences. 19093 19094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19095sed -n ' 19096s/.\{148\}/&'"$ac_delim"'/g 19097t rset 19098:rset 19099s/^[ ]*#[ ]*define[ ][ ]*/ / 19100t def 19101d 19102:def 19103s/\\$// 19104t bsnl 19105s/["\\]/\\&/g 19106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19107D["\1"]=" \3"/p 19108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19109d 19110:bsnl 19111s/["\\]/\\&/g 19112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19113D["\1"]=" \3\\\\\\n"\\/p 19114t cont 19115s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19116t cont 19117d 19118:cont 19119n 19120s/.\{148\}/&'"$ac_delim"'/g 19121t clear 19122:clear 19123s/\\$// 19124t bsnlc 19125s/["\\]/\\&/g; s/^/"/; s/$/"/p 19126d 19127:bsnlc 19128s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19129b cont 19130' <confdefs.h | sed ' 19131s/'"$ac_delim"'/"\\\ 19132"/g' >>$CONFIG_STATUS || ac_write_fail=1 19133 19134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19135 for (key in D) D_is_set[key] = 1 19136 FS = "" 19137} 19138/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19139 line = \$ 0 19140 split(line, arg, " ") 19141 if (arg[1] == "#") { 19142 defundef = arg[2] 19143 mac1 = arg[3] 19144 } else { 19145 defundef = substr(arg[1], 2) 19146 mac1 = arg[2] 19147 } 19148 split(mac1, mac2, "(") #) 19149 macro = mac2[1] 19150 prefix = substr(line, 1, index(line, defundef) - 1) 19151 if (D_is_set[macro]) { 19152 # Preserve the white space surrounding the "#". 19153 print prefix "define", macro P[macro] D[macro] 19154 next 19155 } else { 19156 # Replace #undef with comments. This is necessary, for example, 19157 # in the case of _POSIX_SOURCE, which is predefined and required 19158 # on some systems where configure will not decide to define it. 19159 if (defundef == "undef") { 19160 print "/*", prefix defundef, macro, "*/" 19161 next 19162 } 19163 } 19164} 19165{ print } 19166_ACAWK 19167_ACEOF 19168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19170fi # test -n "$CONFIG_HEADERS" 19171 19172 19173eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19174shift 19175for ac_tag 19176do 19177 case $ac_tag in 19178 :[FHLC]) ac_mode=$ac_tag; continue;; 19179 esac 19180 case $ac_mode$ac_tag in 19181 :[FHL]*:*);; 19182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19183 :[FH]-) ac_tag=-:-;; 19184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19185 esac 19186 ac_save_IFS=$IFS 19187 IFS=: 19188 set x $ac_tag 19189 IFS=$ac_save_IFS 19190 shift 19191 ac_file=$1 19192 shift 19193 19194 case $ac_mode in 19195 :L) ac_source=$1;; 19196 :[FH]) 19197 ac_file_inputs= 19198 for ac_f 19199 do 19200 case $ac_f in 19201 -) ac_f="$ac_tmp/stdin";; 19202 *) # Look for the file first in the build tree, then in the source tree 19203 # (if the path is not absolute). The absolute path cannot be DOS-style, 19204 # because $ac_f cannot contain `:'. 19205 test -f "$ac_f" || 19206 case $ac_f in 19207 [\\/$]*) false;; 19208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19209 esac || 19210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19211 esac 19212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19213 as_fn_append ac_file_inputs " '$ac_f'" 19214 done 19215 19216 # Let's still pretend it is `configure' which instantiates (i.e., don't 19217 # use $as_me), people would be surprised to read: 19218 # /* config.h. Generated by config.status. */ 19219 configure_input='Generated from '` 19220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19221 `' by configure.' 19222 if test x"$ac_file" != x-; then 19223 configure_input="$ac_file. $configure_input" 19224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19225$as_echo "$as_me: creating $ac_file" >&6;} 19226 fi 19227 # Neutralize special characters interpreted by sed in replacement strings. 19228 case $configure_input in #( 19229 *\&* | *\|* | *\\* ) 19230 ac_sed_conf_input=`$as_echo "$configure_input" | 19231 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19232 *) ac_sed_conf_input=$configure_input;; 19233 esac 19234 19235 case $ac_tag in 19236 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19238 esac 19239 ;; 19240 esac 19241 19242 ac_dir=`$as_dirname -- "$ac_file" || 19243$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19244 X"$ac_file" : 'X\(//\)[^/]' \| \ 19245 X"$ac_file" : 'X\(//\)$' \| \ 19246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19247$as_echo X"$ac_file" | 19248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19249 s//\1/ 19250 q 19251 } 19252 /^X\(\/\/\)[^/].*/{ 19253 s//\1/ 19254 q 19255 } 19256 /^X\(\/\/\)$/{ 19257 s//\1/ 19258 q 19259 } 19260 /^X\(\/\).*/{ 19261 s//\1/ 19262 q 19263 } 19264 s/.*/./; q'` 19265 as_dir="$ac_dir"; as_fn_mkdir_p 19266 ac_builddir=. 19267 19268case "$ac_dir" in 19269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19270*) 19271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19272 # A ".." for each directory in $ac_dir_suffix. 19273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19274 case $ac_top_builddir_sub in 19275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19277 esac ;; 19278esac 19279ac_abs_top_builddir=$ac_pwd 19280ac_abs_builddir=$ac_pwd$ac_dir_suffix 19281# for backward compatibility: 19282ac_top_builddir=$ac_top_build_prefix 19283 19284case $srcdir in 19285 .) # We are building in place. 19286 ac_srcdir=. 19287 ac_top_srcdir=$ac_top_builddir_sub 19288 ac_abs_top_srcdir=$ac_pwd ;; 19289 [\\/]* | ?:[\\/]* ) # Absolute name. 19290 ac_srcdir=$srcdir$ac_dir_suffix; 19291 ac_top_srcdir=$srcdir 19292 ac_abs_top_srcdir=$srcdir ;; 19293 *) # Relative name. 19294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19295 ac_top_srcdir=$ac_top_build_prefix$srcdir 19296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19297esac 19298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19299 19300 19301 case $ac_mode in 19302 :F) 19303 # 19304 # CONFIG_FILE 19305 # 19306 19307 case $INSTALL in 19308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19310 esac 19311 ac_MKDIR_P=$MKDIR_P 19312 case $MKDIR_P in 19313 [\\/$]* | ?:[\\/]* ) ;; 19314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19315 esac 19316_ACEOF 19317 19318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19319# If the template does not know about datarootdir, expand it. 19320# FIXME: This hack should be removed a few years after 2.60. 19321ac_datarootdir_hack=; ac_datarootdir_seen= 19322ac_sed_dataroot=' 19323/datarootdir/ { 19324 p 19325 q 19326} 19327/@datadir@/p 19328/@docdir@/p 19329/@infodir@/p 19330/@localedir@/p 19331/@mandir@/p' 19332case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19333*datarootdir*) ac_datarootdir_seen=yes;; 19334*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19336$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19337_ACEOF 19338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19339 ac_datarootdir_hack=' 19340 s&@datadir@&$datadir&g 19341 s&@docdir@&$docdir&g 19342 s&@infodir@&$infodir&g 19343 s&@localedir@&$localedir&g 19344 s&@mandir@&$mandir&g 19345 s&\\\${datarootdir}&$datarootdir&g' ;; 19346esac 19347_ACEOF 19348 19349# Neutralize VPATH when `$srcdir' = `.'. 19350# Shell code in configure.ac might set extrasub. 19351# FIXME: do we really want to maintain this feature? 19352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19353ac_sed_extra="$ac_vpsub 19354$extrasub 19355_ACEOF 19356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19357:t 19358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19359s|@configure_input@|$ac_sed_conf_input|;t t 19360s&@top_builddir@&$ac_top_builddir_sub&;t t 19361s&@top_build_prefix@&$ac_top_build_prefix&;t t 19362s&@srcdir@&$ac_srcdir&;t t 19363s&@abs_srcdir@&$ac_abs_srcdir&;t t 19364s&@top_srcdir@&$ac_top_srcdir&;t t 19365s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19366s&@builddir@&$ac_builddir&;t t 19367s&@abs_builddir@&$ac_abs_builddir&;t t 19368s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19369s&@INSTALL@&$ac_INSTALL&;t t 19370s&@MKDIR_P@&$ac_MKDIR_P&;t t 19371$ac_datarootdir_hack 19372" 19373eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19375 19376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19379 "$ac_tmp/out"`; test -z "$ac_out"; } && 19380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19381which seems to be undefined. Please make sure it is defined" >&5 19382$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19383which seems to be undefined. Please make sure it is defined" >&2;} 19384 19385 rm -f "$ac_tmp/stdin" 19386 case $ac_file in 19387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19389 esac \ 19390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19391 ;; 19392 :H) 19393 # 19394 # CONFIG_HEADER 19395 # 19396 if test x"$ac_file" != x-; then 19397 { 19398 $as_echo "/* $configure_input */" \ 19399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19400 } >"$ac_tmp/config.h" \ 19401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19404$as_echo "$as_me: $ac_file is unchanged" >&6;} 19405 else 19406 rm -f "$ac_file" 19407 mv "$ac_tmp/config.h" "$ac_file" \ 19408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19409 fi 19410 else 19411 $as_echo "/* $configure_input */" \ 19412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19413 || as_fn_error $? "could not create -" "$LINENO" 5 19414 fi 19415# Compute "$ac_file"'s index in $config_headers. 19416_am_arg="$ac_file" 19417_am_stamp_count=1 19418for _am_header in $config_headers :; do 19419 case $_am_header in 19420 $_am_arg | $_am_arg:* ) 19421 break ;; 19422 * ) 19423 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19424 esac 19425done 19426echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19427$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19428 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19429 X"$_am_arg" : 'X\(//\)$' \| \ 19430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19431$as_echo X"$_am_arg" | 19432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19433 s//\1/ 19434 q 19435 } 19436 /^X\(\/\/\)[^/].*/{ 19437 s//\1/ 19438 q 19439 } 19440 /^X\(\/\/\)$/{ 19441 s//\1/ 19442 q 19443 } 19444 /^X\(\/\).*/{ 19445 s//\1/ 19446 q 19447 } 19448 s/.*/./; q'`/stamp-h$_am_stamp_count 19449 ;; 19450 19451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19452$as_echo "$as_me: executing $ac_file commands" >&6;} 19453 ;; 19454 esac 19455 19456 19457 case $ac_file$ac_mode in 19458 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19459 # Older Autoconf quotes --file arguments for eval, but not when files 19460 # are listed without --file. Let's play safe and only enable the eval 19461 # if we detect the quoting. 19462 case $CONFIG_FILES in 19463 *\'*) eval set x "$CONFIG_FILES" ;; 19464 *) set x $CONFIG_FILES ;; 19465 esac 19466 shift 19467 for mf 19468 do 19469 # Strip MF so we end up with the name of the file. 19470 mf=`echo "$mf" | sed -e 's/:.*$//'` 19471 # Check whether this is an Automake generated Makefile or not. 19472 # We used to match only the files named 'Makefile.in', but 19473 # some people rename them; so instead we look at the file content. 19474 # Grep'ing the first line is not enough: some people post-process 19475 # each Makefile.in and add a new line on top of each file to say so. 19476 # Grep'ing the whole file is not good either: AIX grep has a line 19477 # limit of 2048, but all sed's we know have understand at least 4000. 19478 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19479 dirpart=`$as_dirname -- "$mf" || 19480$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19481 X"$mf" : 'X\(//\)[^/]' \| \ 19482 X"$mf" : 'X\(//\)$' \| \ 19483 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19484$as_echo X"$mf" | 19485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19486 s//\1/ 19487 q 19488 } 19489 /^X\(\/\/\)[^/].*/{ 19490 s//\1/ 19491 q 19492 } 19493 /^X\(\/\/\)$/{ 19494 s//\1/ 19495 q 19496 } 19497 /^X\(\/\).*/{ 19498 s//\1/ 19499 q 19500 } 19501 s/.*/./; q'` 19502 else 19503 continue 19504 fi 19505 # Extract the definition of DEPDIR, am__include, and am__quote 19506 # from the Makefile without running 'make'. 19507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19508 test -z "$DEPDIR" && continue 19509 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19510 test -z "$am__include" && continue 19511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19512 # Find all dependency output files, they are included files with 19513 # $(DEPDIR) in their names. We invoke sed twice because it is the 19514 # simplest approach to changing $(DEPDIR) to its actual value in the 19515 # expansion. 19516 for file in `sed -n " 19517 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19518 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19519 # Make sure the directory exists. 19520 test -f "$dirpart/$file" && continue 19521 fdir=`$as_dirname -- "$file" || 19522$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19523 X"$file" : 'X\(//\)[^/]' \| \ 19524 X"$file" : 'X\(//\)$' \| \ 19525 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19526$as_echo X"$file" | 19527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19528 s//\1/ 19529 q 19530 } 19531 /^X\(\/\/\)[^/].*/{ 19532 s//\1/ 19533 q 19534 } 19535 /^X\(\/\/\)$/{ 19536 s//\1/ 19537 q 19538 } 19539 /^X\(\/\).*/{ 19540 s//\1/ 19541 q 19542 } 19543 s/.*/./; q'` 19544 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19545 # echo "creating $dirpart/$file" 19546 echo '# dummy' > "$dirpart/$file" 19547 done 19548 done 19549} 19550 ;; 19551 "libtool":C) 19552 19553 # See if we are running on zsh, and set the options which allow our 19554 # commands through without removal of \ escapes. 19555 if test -n "${ZSH_VERSION+set}" ; then 19556 setopt NO_GLOB_SUBST 19557 fi 19558 19559 cfgfile="${ofile}T" 19560 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19561 $RM "$cfgfile" 19562 19563 cat <<_LT_EOF >> "$cfgfile" 19564#! $SHELL 19565 19566# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19567# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19568# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19569# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19570# 19571# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19572# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19573# Foundation, Inc. 19574# Written by Gordon Matzigkeit, 1996 19575# 19576# This file is part of GNU Libtool. 19577# 19578# GNU Libtool is free software; you can redistribute it and/or 19579# modify it under the terms of the GNU General Public License as 19580# published by the Free Software Foundation; either version 2 of 19581# the License, or (at your option) any later version. 19582# 19583# As a special exception to the GNU General Public License, 19584# if you distribute this file as part of a program or library that 19585# is built using GNU Libtool, you may include this file under the 19586# same distribution terms that you use for the rest of that program. 19587# 19588# GNU Libtool is distributed in the hope that it will be useful, 19589# but WITHOUT ANY WARRANTY; without even the implied warranty of 19590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19591# GNU General Public License for more details. 19592# 19593# You should have received a copy of the GNU General Public License 19594# along with GNU Libtool; see the file COPYING. If not, a copy 19595# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19596# obtained by writing to the Free Software Foundation, Inc., 19597# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19598 19599 19600# The names of the tagged configurations supported by this script. 19601available_tags="" 19602 19603# ### BEGIN LIBTOOL CONFIG 19604 19605# Which release of libtool.m4 was used? 19606macro_version=$macro_version 19607macro_revision=$macro_revision 19608 19609# Whether or not to build shared libraries. 19610build_libtool_libs=$enable_shared 19611 19612# Whether or not to build static libraries. 19613build_old_libs=$enable_static 19614 19615# What type of objects to build. 19616pic_mode=$pic_mode 19617 19618# Whether or not to optimize for fast installation. 19619fast_install=$enable_fast_install 19620 19621# Shell to use when invoking shell scripts. 19622SHELL=$lt_SHELL 19623 19624# An echo program that protects backslashes. 19625ECHO=$lt_ECHO 19626 19627# The PATH separator for the build system. 19628PATH_SEPARATOR=$lt_PATH_SEPARATOR 19629 19630# The host system. 19631host_alias=$host_alias 19632host=$host 19633host_os=$host_os 19634 19635# The build system. 19636build_alias=$build_alias 19637build=$build 19638build_os=$build_os 19639 19640# A sed program that does not truncate output. 19641SED=$lt_SED 19642 19643# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19644Xsed="\$SED -e 1s/^X//" 19645 19646# A grep program that handles long lines. 19647GREP=$lt_GREP 19648 19649# An ERE matcher. 19650EGREP=$lt_EGREP 19651 19652# A literal string matcher. 19653FGREP=$lt_FGREP 19654 19655# A BSD- or MS-compatible name lister. 19656NM=$lt_NM 19657 19658# Whether we need soft or hard links. 19659LN_S=$lt_LN_S 19660 19661# What is the maximum length of a command? 19662max_cmd_len=$max_cmd_len 19663 19664# Object file suffix (normally "o"). 19665objext=$ac_objext 19666 19667# Executable file suffix (normally ""). 19668exeext=$exeext 19669 19670# whether the shell understands "unset". 19671lt_unset=$lt_unset 19672 19673# turn spaces into newlines. 19674SP2NL=$lt_lt_SP2NL 19675 19676# turn newlines into spaces. 19677NL2SP=$lt_lt_NL2SP 19678 19679# convert \$build file names to \$host format. 19680to_host_file_cmd=$lt_cv_to_host_file_cmd 19681 19682# convert \$build files to toolchain format. 19683to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19684 19685# An object symbol dumper. 19686OBJDUMP=$lt_OBJDUMP 19687 19688# Method to check whether dependent libraries are shared objects. 19689deplibs_check_method=$lt_deplibs_check_method 19690 19691# Command to use when deplibs_check_method = "file_magic". 19692file_magic_cmd=$lt_file_magic_cmd 19693 19694# How to find potential files when deplibs_check_method = "file_magic". 19695file_magic_glob=$lt_file_magic_glob 19696 19697# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19698want_nocaseglob=$lt_want_nocaseglob 19699 19700# DLL creation program. 19701DLLTOOL=$lt_DLLTOOL 19702 19703# Command to associate shared and link libraries. 19704sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19705 19706# The archiver. 19707AR=$lt_AR 19708 19709# Flags to create an archive. 19710AR_FLAGS=$lt_AR_FLAGS 19711 19712# How to feed a file listing to the archiver. 19713archiver_list_spec=$lt_archiver_list_spec 19714 19715# A symbol stripping program. 19716STRIP=$lt_STRIP 19717 19718# Commands used to install an old-style archive. 19719RANLIB=$lt_RANLIB 19720old_postinstall_cmds=$lt_old_postinstall_cmds 19721old_postuninstall_cmds=$lt_old_postuninstall_cmds 19722 19723# Whether to use a lock for old archive extraction. 19724lock_old_archive_extraction=$lock_old_archive_extraction 19725 19726# A C compiler. 19727LTCC=$lt_CC 19728 19729# LTCC compiler flags. 19730LTCFLAGS=$lt_CFLAGS 19731 19732# Take the output of nm and produce a listing of raw symbols and C names. 19733global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19734 19735# Transform the output of nm in a proper C declaration. 19736global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19737 19738# Transform the output of nm in a C name address pair. 19739global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19740 19741# Transform the output of nm in a C name address pair when lib prefix is needed. 19742global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19743 19744# Specify filename containing input files for \$NM. 19745nm_file_list_spec=$lt_nm_file_list_spec 19746 19747# The root where to search for dependent libraries,and in which our libraries should be installed. 19748lt_sysroot=$lt_sysroot 19749 19750# The name of the directory that contains temporary libtool files. 19751objdir=$objdir 19752 19753# Used to examine libraries when file_magic_cmd begins with "file". 19754MAGIC_CMD=$MAGIC_CMD 19755 19756# Must we lock files when doing compilation? 19757need_locks=$lt_need_locks 19758 19759# Manifest tool. 19760MANIFEST_TOOL=$lt_MANIFEST_TOOL 19761 19762# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19763DSYMUTIL=$lt_DSYMUTIL 19764 19765# Tool to change global to local symbols on Mac OS X. 19766NMEDIT=$lt_NMEDIT 19767 19768# Tool to manipulate fat objects and archives on Mac OS X. 19769LIPO=$lt_LIPO 19770 19771# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19772OTOOL=$lt_OTOOL 19773 19774# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19775OTOOL64=$lt_OTOOL64 19776 19777# Old archive suffix (normally "a"). 19778libext=$libext 19779 19780# Shared library suffix (normally ".so"). 19781shrext_cmds=$lt_shrext_cmds 19782 19783# The commands to extract the exported symbol list from a shared archive. 19784extract_expsyms_cmds=$lt_extract_expsyms_cmds 19785 19786# Variables whose values should be saved in libtool wrapper scripts and 19787# restored at link time. 19788variables_saved_for_relink=$lt_variables_saved_for_relink 19789 19790# Do we need the "lib" prefix for modules? 19791need_lib_prefix=$need_lib_prefix 19792 19793# Do we need a version for libraries? 19794need_version=$need_version 19795 19796# Library versioning type. 19797version_type=$version_type 19798 19799# Shared library runtime path variable. 19800runpath_var=$runpath_var 19801 19802# Shared library path variable. 19803shlibpath_var=$shlibpath_var 19804 19805# Is shlibpath searched before the hard-coded library search path? 19806shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19807 19808# Format of library name prefix. 19809libname_spec=$lt_libname_spec 19810 19811# List of archive names. First name is the real one, the rest are links. 19812# The last name is the one that the linker finds with -lNAME 19813library_names_spec=$lt_library_names_spec 19814 19815# The coded name of the library, if different from the real name. 19816soname_spec=$lt_soname_spec 19817 19818# Permission mode override for installation of shared libraries. 19819install_override_mode=$lt_install_override_mode 19820 19821# Command to use after installation of a shared archive. 19822postinstall_cmds=$lt_postinstall_cmds 19823 19824# Command to use after uninstallation of a shared archive. 19825postuninstall_cmds=$lt_postuninstall_cmds 19826 19827# Commands used to finish a libtool library installation in a directory. 19828finish_cmds=$lt_finish_cmds 19829 19830# As "finish_cmds", except a single script fragment to be evaled but 19831# not shown. 19832finish_eval=$lt_finish_eval 19833 19834# Whether we should hardcode library paths into libraries. 19835hardcode_into_libs=$hardcode_into_libs 19836 19837# Compile-time system search path for libraries. 19838sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19839 19840# Run-time system search path for libraries. 19841sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19842 19843# Whether dlopen is supported. 19844dlopen_support=$enable_dlopen 19845 19846# Whether dlopen of programs is supported. 19847dlopen_self=$enable_dlopen_self 19848 19849# Whether dlopen of statically linked programs is supported. 19850dlopen_self_static=$enable_dlopen_self_static 19851 19852# Commands to strip libraries. 19853old_striplib=$lt_old_striplib 19854striplib=$lt_striplib 19855 19856 19857# The linker used to build libraries. 19858LD=$lt_LD 19859 19860# How to create reloadable object files. 19861reload_flag=$lt_reload_flag 19862reload_cmds=$lt_reload_cmds 19863 19864# Commands used to build an old-style archive. 19865old_archive_cmds=$lt_old_archive_cmds 19866 19867# A language specific compiler. 19868CC=$lt_compiler 19869 19870# Is the compiler the GNU compiler? 19871with_gcc=$GCC 19872 19873# Compiler flag to turn off builtin functions. 19874no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19875 19876# Additional compiler flags for building library objects. 19877pic_flag=$lt_lt_prog_compiler_pic 19878 19879# How to pass a linker flag through the compiler. 19880wl=$lt_lt_prog_compiler_wl 19881 19882# Compiler flag to prevent dynamic linking. 19883link_static_flag=$lt_lt_prog_compiler_static 19884 19885# Does compiler simultaneously support -c and -o options? 19886compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19887 19888# Whether or not to add -lc for building shared libraries. 19889build_libtool_need_lc=$archive_cmds_need_lc 19890 19891# Whether or not to disallow shared libs when runtime libs are static. 19892allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19893 19894# Compiler flag to allow reflexive dlopens. 19895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19896 19897# Compiler flag to generate shared objects directly from archives. 19898whole_archive_flag_spec=$lt_whole_archive_flag_spec 19899 19900# Whether the compiler copes with passing no objects directly. 19901compiler_needs_object=$lt_compiler_needs_object 19902 19903# Create an old-style archive from a shared archive. 19904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19905 19906# Create a temporary old-style archive to link instead of a shared archive. 19907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19908 19909# Commands used to build a shared archive. 19910archive_cmds=$lt_archive_cmds 19911archive_expsym_cmds=$lt_archive_expsym_cmds 19912 19913# Commands used to build a loadable module if different from building 19914# a shared archive. 19915module_cmds=$lt_module_cmds 19916module_expsym_cmds=$lt_module_expsym_cmds 19917 19918# Whether we are building with GNU ld or not. 19919with_gnu_ld=$lt_with_gnu_ld 19920 19921# Flag that allows shared libraries with undefined symbols to be built. 19922allow_undefined_flag=$lt_allow_undefined_flag 19923 19924# Flag that enforces no undefined symbols. 19925no_undefined_flag=$lt_no_undefined_flag 19926 19927# Flag to hardcode \$libdir into a binary during linking. 19928# This must work even if \$libdir does not exist 19929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19930 19931# Whether we need a single "-rpath" flag with a separated argument. 19932hardcode_libdir_separator=$lt_hardcode_libdir_separator 19933 19934# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19935# DIR into the resulting binary. 19936hardcode_direct=$hardcode_direct 19937 19938# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19939# DIR into the resulting binary and the resulting library dependency is 19940# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19941# library is relocated. 19942hardcode_direct_absolute=$hardcode_direct_absolute 19943 19944# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19945# into the resulting binary. 19946hardcode_minus_L=$hardcode_minus_L 19947 19948# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19949# into the resulting binary. 19950hardcode_shlibpath_var=$hardcode_shlibpath_var 19951 19952# Set to "yes" if building a shared library automatically hardcodes DIR 19953# into the library and all subsequent libraries and executables linked 19954# against it. 19955hardcode_automatic=$hardcode_automatic 19956 19957# Set to yes if linker adds runtime paths of dependent libraries 19958# to runtime path list. 19959inherit_rpath=$inherit_rpath 19960 19961# Whether libtool must link a program against all its dependency libraries. 19962link_all_deplibs=$link_all_deplibs 19963 19964# Set to "yes" if exported symbols are required. 19965always_export_symbols=$always_export_symbols 19966 19967# The commands to list exported symbols. 19968export_symbols_cmds=$lt_export_symbols_cmds 19969 19970# Symbols that should not be listed in the preloaded symbols. 19971exclude_expsyms=$lt_exclude_expsyms 19972 19973# Symbols that must always be exported. 19974include_expsyms=$lt_include_expsyms 19975 19976# Commands necessary for linking programs (against libraries) with templates. 19977prelink_cmds=$lt_prelink_cmds 19978 19979# Commands necessary for finishing linking programs. 19980postlink_cmds=$lt_postlink_cmds 19981 19982# Specify filename containing input files. 19983file_list_spec=$lt_file_list_spec 19984 19985# How to hardcode a shared library path into an executable. 19986hardcode_action=$hardcode_action 19987 19988# ### END LIBTOOL CONFIG 19989 19990_LT_EOF 19991 19992 case $host_os in 19993 aix3*) 19994 cat <<\_LT_EOF >> "$cfgfile" 19995# AIX sometimes has problems with the GCC collect2 program. For some 19996# reason, if we set the COLLECT_NAMES environment variable, the problems 19997# vanish in a puff of smoke. 19998if test "X${COLLECT_NAMES+set}" != Xset; then 19999 COLLECT_NAMES= 20000 export COLLECT_NAMES 20001fi 20002_LT_EOF 20003 ;; 20004 esac 20005 20006 20007ltmain="$ac_aux_dir/ltmain.sh" 20008 20009 20010 # We use sed instead of cat because bash on DJGPP gets confused if 20011 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20012 # text mode, it properly converts lines to CR/LF. This bash problem 20013 # is reportedly fixed, but why not run on old versions too? 20014 sed '$q' "$ltmain" >> "$cfgfile" \ 20015 || (rm -f "$cfgfile"; exit 1) 20016 20017 if test x"$xsi_shell" = xyes; then 20018 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20019func_dirname ()\ 20020{\ 20021\ case ${1} in\ 20022\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20023\ * ) func_dirname_result="${3}" ;;\ 20024\ esac\ 20025} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20026 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20028test 0 -eq $? || _lt_function_replace_fail=: 20029 20030 20031 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20032func_basename ()\ 20033{\ 20034\ func_basename_result="${1##*/}"\ 20035} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20038test 0 -eq $? || _lt_function_replace_fail=: 20039 20040 20041 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20042func_dirname_and_basename ()\ 20043{\ 20044\ case ${1} in\ 20045\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20046\ * ) func_dirname_result="${3}" ;;\ 20047\ esac\ 20048\ func_basename_result="${1##*/}"\ 20049} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20050 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20052test 0 -eq $? || _lt_function_replace_fail=: 20053 20054 20055 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20056func_stripname ()\ 20057{\ 20058\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20059\ # positional parameters, so assign one to ordinary parameter first.\ 20060\ func_stripname_result=${3}\ 20061\ func_stripname_result=${func_stripname_result#"${1}"}\ 20062\ func_stripname_result=${func_stripname_result%"${2}"}\ 20063} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20064 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20066test 0 -eq $? || _lt_function_replace_fail=: 20067 20068 20069 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20070func_split_long_opt ()\ 20071{\ 20072\ func_split_long_opt_name=${1%%=*}\ 20073\ func_split_long_opt_arg=${1#*=}\ 20074} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20075 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20077test 0 -eq $? || _lt_function_replace_fail=: 20078 20079 20080 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20081func_split_short_opt ()\ 20082{\ 20083\ func_split_short_opt_arg=${1#??}\ 20084\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20085} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20086 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20088test 0 -eq $? || _lt_function_replace_fail=: 20089 20090 20091 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20092func_lo2o ()\ 20093{\ 20094\ case ${1} in\ 20095\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20096\ *) func_lo2o_result=${1} ;;\ 20097\ esac\ 20098} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20099 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20101test 0 -eq $? || _lt_function_replace_fail=: 20102 20103 20104 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20105func_xform ()\ 20106{\ 20107 func_xform_result=${1%.*}.lo\ 20108} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20111test 0 -eq $? || _lt_function_replace_fail=: 20112 20113 20114 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20115func_arith ()\ 20116{\ 20117 func_arith_result=$(( $* ))\ 20118} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20121test 0 -eq $? || _lt_function_replace_fail=: 20122 20123 20124 sed -e '/^func_len ()$/,/^} # func_len /c\ 20125func_len ()\ 20126{\ 20127 func_len_result=${#1}\ 20128} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20129 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20131test 0 -eq $? || _lt_function_replace_fail=: 20132 20133fi 20134 20135if test x"$lt_shell_append" = xyes; then 20136 sed -e '/^func_append ()$/,/^} # func_append /c\ 20137func_append ()\ 20138{\ 20139 eval "${1}+=\\${2}"\ 20140} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20141 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20143test 0 -eq $? || _lt_function_replace_fail=: 20144 20145 20146 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20147func_append_quoted ()\ 20148{\ 20149\ func_quote_for_eval "${2}"\ 20150\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20151} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20152 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20154test 0 -eq $? || _lt_function_replace_fail=: 20155 20156 20157 # Save a `func_append' function call where possible by direct use of '+=' 20158 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20159 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20161 test 0 -eq $? || _lt_function_replace_fail=: 20162else 20163 # Save a `func_append' function call even when '+=' is not available 20164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20165 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20167 test 0 -eq $? || _lt_function_replace_fail=: 20168fi 20169 20170if test x"$_lt_function_replace_fail" = x":"; then 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20172$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20173fi 20174 20175 20176 mv -f "$cfgfile" "$ofile" || 20177 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20178 chmod +x "$ofile" 20179 20180 ;; 20181 20182 esac 20183done # for ac_tag 20184 20185 20186as_fn_exit 0 20187_ACEOF 20188ac_clean_files=$ac_clean_files_save 20189 20190test $ac_write_fail = 0 || 20191 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20192 20193 20194# configure is writing to config.log, and then calls config.status. 20195# config.status does its own redirection, appending to config.log. 20196# Unfortunately, on DOS this fails, as config.log is still kept open 20197# by configure, so config.status won't be able to write to it; its 20198# output is simply discarded. So we exec the FD to /dev/null, 20199# effectively closing config.log, so it can be properly (re)opened and 20200# appended to by config.status. When coming back to configure, we 20201# need to make the FD available again. 20202if test "$no_create" != yes; then 20203 ac_cs_success=: 20204 ac_config_status_args= 20205 test "$silent" = yes && 20206 ac_config_status_args="$ac_config_status_args --quiet" 20207 exec 5>/dev/null 20208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20209 exec 5>>config.log 20210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20211 # would make configure fail if this is the last instruction. 20212 $ac_cs_success || as_fn_exit 1 20213fi 20214if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20216$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20217fi 20218 20219