configure revision 54044362
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libxkbfile 1.1.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues>. 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://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues 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.1.0' 595PACKAGE_STRING='libxkbfile 1.1.0' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues' 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_LIBDIR 658PKG_CONFIG_PATH 659PKG_CONFIG 660CHANGELOG_CMD 661STRICT_CFLAGS 662CWARNFLAGS 663BASE_CFLAGS 664CPP 665LT_SYS_LIBRARY_PATH 666OTOOL64 667OTOOL 668LIPO 669NMEDIT 670DSYMUTIL 671MANIFEST_TOOL 672RANLIB 673ac_ct_AR 674AR 675DLLTOOL 676OBJDUMP 677LN_S 678NM 679ac_ct_DUMPBIN 680DUMPBIN 681LD 682FGREP 683EGREP 684GREP 685SED 686am__fastdepCC_FALSE 687am__fastdepCC_TRUE 688CCDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__quote 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711LIBTOOL 712AM_BACKSLASH 713AM_DEFAULT_VERBOSITY 714AM_DEFAULT_V 715AM_V 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_silent_rules 781enable_shared 782enable_static 783with_pic 784enable_fast_install 785with_aix_soname 786enable_dependency_tracking 787with_gnu_ld 788with_sysroot 789enable_libtool_lock 790enable_selective_werror 791enable_strict_compilation 792' 793 ac_precious_vars='build_alias 794host_alias 795target_alias 796CC 797CFLAGS 798LDFLAGS 799LIBS 800CPPFLAGS 801LT_SYS_LIBRARY_PATH 802CPP 803PKG_CONFIG 804PKG_CONFIG_PATH 805PKG_CONFIG_LIBDIR 806XKBFILE_CFLAGS 807XKBFILE_LIBS' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 # Accept the important Cygnus configure options, so we can diagnose typos. 876 877 case $ac_dashdash$ac_option in 878 --) 879 ac_dashdash=yes ;; 880 881 -bindir | --bindir | --bindi | --bind | --bin | --bi) 882 ac_prev=bindir ;; 883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 884 bindir=$ac_optarg ;; 885 886 -build | --build | --buil | --bui | --bu) 887 ac_prev=build_alias ;; 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 889 build_alias=$ac_optarg ;; 890 891 -cache-file | --cache-file | --cache-fil | --cache-fi \ 892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 893 ac_prev=cache_file ;; 894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 896 cache_file=$ac_optarg ;; 897 898 --config-cache | -C) 899 cache_file=config.cache ;; 900 901 -datadir | --datadir | --datadi | --datad) 902 ac_prev=datadir ;; 903 -datadir=* | --datadir=* | --datadi=* | --datad=*) 904 datadir=$ac_optarg ;; 905 906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 907 | --dataroo | --dataro | --datar) 908 ac_prev=datarootdir ;; 909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 911 datarootdir=$ac_optarg ;; 912 913 -disable-* | --disable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=no ;; 928 929 -docdir | --docdir | --docdi | --doc | --do) 930 ac_prev=docdir ;; 931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 932 docdir=$ac_optarg ;; 933 934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 935 ac_prev=dvidir ;; 936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 937 dvidir=$ac_optarg ;; 938 939 -enable-* | --enable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=\$ac_optarg ;; 954 955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 957 | --exec | --exe | --ex) 958 ac_prev=exec_prefix ;; 959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 961 | --exec=* | --exe=* | --ex=*) 962 exec_prefix=$ac_optarg ;; 963 964 -gas | --gas | --ga | --g) 965 # Obsolete; use --with-gas. 966 with_gas=yes ;; 967 968 -help | --help | --hel | --he | -h) 969 ac_init_help=long ;; 970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 971 ac_init_help=recursive ;; 972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 973 ac_init_help=short ;; 974 975 -host | --host | --hos | --ho) 976 ac_prev=host_alias ;; 977 -host=* | --host=* | --hos=* | --ho=*) 978 host_alias=$ac_optarg ;; 979 980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 981 ac_prev=htmldir ;; 982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 983 | --ht=*) 984 htmldir=$ac_optarg ;; 985 986 -includedir | --includedir | --includedi | --included | --include \ 987 | --includ | --inclu | --incl | --inc) 988 ac_prev=includedir ;; 989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 990 | --includ=* | --inclu=* | --incl=* | --inc=*) 991 includedir=$ac_optarg ;; 992 993 -infodir | --infodir | --infodi | --infod | --info | --inf) 994 ac_prev=infodir ;; 995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 996 infodir=$ac_optarg ;; 997 998 -libdir | --libdir | --libdi | --libd) 999 ac_prev=libdir ;; 1000 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1001 libdir=$ac_optarg ;; 1002 1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1004 | --libexe | --libex | --libe) 1005 ac_prev=libexecdir ;; 1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1007 | --libexe=* | --libex=* | --libe=*) 1008 libexecdir=$ac_optarg ;; 1009 1010 -localedir | --localedir | --localedi | --localed | --locale) 1011 ac_prev=localedir ;; 1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1013 localedir=$ac_optarg ;; 1014 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1016 | --localstate | --localstat | --localsta | --localst | --locals) 1017 ac_prev=localstatedir ;; 1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1020 localstatedir=$ac_optarg ;; 1021 1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1023 ac_prev=mandir ;; 1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1025 mandir=$ac_optarg ;; 1026 1027 -nfp | --nfp | --nf) 1028 # Obsolete; use --without-fp. 1029 with_fp=no ;; 1030 1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1032 | --no-cr | --no-c | -n) 1033 no_create=yes ;; 1034 1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1037 no_recursion=yes ;; 1038 1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1041 | --oldin | --oldi | --old | --ol | --o) 1042 ac_prev=oldincludedir ;; 1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1046 oldincludedir=$ac_optarg ;; 1047 1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1049 ac_prev=prefix ;; 1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1051 prefix=$ac_optarg ;; 1052 1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1054 | --program-pre | --program-pr | --program-p) 1055 ac_prev=program_prefix ;; 1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1058 program_prefix=$ac_optarg ;; 1059 1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1061 | --program-suf | --program-su | --program-s) 1062 ac_prev=program_suffix ;; 1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1065 program_suffix=$ac_optarg ;; 1066 1067 -program-transform-name | --program-transform-name \ 1068 | --program-transform-nam | --program-transform-na \ 1069 | --program-transform-n | --program-transform- \ 1070 | --program-transform | --program-transfor \ 1071 | --program-transfo | --program-transf \ 1072 | --program-trans | --program-tran \ 1073 | --progr-tra | --program-tr | --program-t) 1074 ac_prev=program_transform_name ;; 1075 -program-transform-name=* | --program-transform-name=* \ 1076 | --program-transform-nam=* | --program-transform-na=* \ 1077 | --program-transform-n=* | --program-transform-=* \ 1078 | --program-transform=* | --program-transfor=* \ 1079 | --program-transfo=* | --program-transf=* \ 1080 | --program-trans=* | --program-tran=* \ 1081 | --progr-tra=* | --program-tr=* | --program-t=*) 1082 program_transform_name=$ac_optarg ;; 1083 1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1085 ac_prev=pdfdir ;; 1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1087 pdfdir=$ac_optarg ;; 1088 1089 -psdir | --psdir | --psdi | --psd | --ps) 1090 ac_prev=psdir ;; 1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1092 psdir=$ac_optarg ;; 1093 1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1095 | -silent | --silent | --silen | --sile | --sil) 1096 silent=yes ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1194Try \`$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: `$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291$as_echo X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348\`configure' configures libxkbfile 1.1.0 to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print \`checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for \`--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, \`make install' will install all the files in 1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1377for instance \`--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of libxkbfile 1.1.0:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-shared[=PKGS] build shared libraries [default=yes] 1429 --enable-static[=PKGS] build static libraries [default=yes] 1430 --enable-fast-install[=PKGS] 1431 optimize for fast installation [default=yes] 1432 --enable-dependency-tracking 1433 do not reject slow dependency extractors 1434 --disable-dependency-tracking 1435 speeds up one-time build 1436 --disable-libtool-lock avoid locking (might break parallel builds) 1437 --disable-selective-werror 1438 Turn off selective compiler errors. (default: 1439 enabled) 1440 --enable-strict-compilation 1441 Enable all warnings from compiler and make them 1442 errors (default: disabled) 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1448 both] 1449 --with-aix-soname=aix|svr4|both 1450 shared library versioning (aka "SONAME") variant to 1451 provide on AIX, [default=aix]. 1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1454 compiler's sysroot if not specified). 1455 1456Some influential environment variables: 1457 CC C compiler command 1458 CFLAGS C compiler flags 1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1460 nonstandard directory <lib dir> 1461 LIBS libraries to pass to the linker, e.g. -l<library> 1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1463 you have headers in a nonstandard directory <include dir> 1464 LT_SYS_LIBRARY_PATH 1465 User-defined run-time library search path. 1466 CPP C preprocessor 1467 PKG_CONFIG path to pkg-config utility 1468 PKG_CONFIG_PATH 1469 directories to add to pkg-config's search path 1470 PKG_CONFIG_LIBDIR 1471 path overriding pkg-config's built-in search path 1472 XKBFILE_CFLAGS 1473 C compiler flags for XKBFILE, overriding pkg-config 1474 XKBFILE_LIBS 1475 linker flags for XKBFILE, overriding pkg-config 1476 1477Use these variables to override the choices made by `configure' or to help 1478it to find libraries and programs with nonstandard names/locations. 1479 1480Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues>. 1481_ACEOF 1482ac_status=$? 1483fi 1484 1485if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for guested configure. 1527 if test -f "$ac_srcdir/configure.gnu"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1530 elif test -f "$ac_srcdir/configure"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure" --help=recursive 1533 else 1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1535 fi || ac_status=$? 1536 cd "$ac_pwd" || { ac_status=$?; break; } 1537 done 1538fi 1539 1540test -n "$ac_init_help" && exit $ac_status 1541if $ac_init_version; then 1542 cat <<\_ACEOF 1543libxkbfile configure 1.1.0 1544generated by GNU Autoconf 2.69 1545 1546Copyright (C) 2012 Free Software Foundation, Inc. 1547This configure script is free software; the Free Software Foundation 1548gives unlimited permission to copy, distribute and modify it. 1549_ACEOF 1550 exit 1551fi 1552 1553## ------------------------ ## 1554## Autoconf initialization. ## 1555## ------------------------ ## 1556 1557# ac_fn_c_try_compile LINENO 1558# -------------------------- 1559# Try to compile conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_compile () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 rm -f conftest.$ac_objext 1564 if { { ac_try="$ac_compile" 1565case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568esac 1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570$as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_compile") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } && { 1580 test -z "$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 } && test -s conftest.$ac_objext; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593} # ac_fn_c_try_compile 1594 1595# ac_fn_c_try_link LINENO 1596# ----------------------- 1597# Try to link conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_link () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext conftest$ac_exeext 1602 if { { ac_try="$ac_link" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_link") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest$ac_exeext && { 1621 test "$cross_compiling" = yes || 1622 test -x conftest$ac_exeext 1623 }; then : 1624 ac_retval=0 1625else 1626 $as_echo "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630fi 1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1633 # interfere with the next link command; also delete a directory that is 1634 # left behind by Apple's compiler. We do this before executing the actions. 1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_link 1640 1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1642# ------------------------------------------------------- 1643# Tests whether HEADER exists and can be compiled using the include files in 1644# INCLUDES, setting the cache variable VAR accordingly. 1645ac_fn_c_check_header_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1649$as_echo_n "checking for $2... " >&6; } 1650if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652else 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_compile "$LINENO"; then : 1659 eval "$3=yes" 1660else 1661 eval "$3=no" 1662fi 1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664fi 1665eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667$as_echo "$ac_res" >&6; } 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 1670} # ac_fn_c_check_header_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_try_run LINENO 1710# ---------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1712# that executables *can* be run. 1713ac_fn_c_try_run () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1727 { { case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_try") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; }; }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: program exited with status $ac_status" >&5 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=$ac_status 1744fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_run 1750 1751# ac_fn_c_check_func LINENO FUNC VAR 1752# ---------------------------------- 1753# Tests whether FUNC exists, setting the cache variable VAR accordingly 1754ac_fn_c_check_func () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1766#define $2 innocuous_$2 1767 1768/* System header to define __stub macros and hopefully few prototypes, 1769 which can conflict with char $2 (); below. 1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1771 <limits.h> exists even on freestanding compilers. */ 1772 1773#ifdef __STDC__ 1774# include <limits.h> 1775#else 1776# include <assert.h> 1777#endif 1778 1779#undef $2 1780 1781/* Override any GCC internal prototype to avoid an error. 1782 Use char because int might match the return type of a GCC 1783 builtin and then its argument prototype would still apply. */ 1784#ifdef __cplusplus 1785extern "C" 1786#endif 1787char $2 (); 1788/* The GNU C library defines this for functions which it implements 1789 to always fail with ENOSYS. Some functions are actually named 1790 something starting with __ and the normal name is an alias. */ 1791#if defined __stub_$2 || defined __stub___$2 1792choke me 1793#endif 1794 1795int 1796main () 1797{ 1798return $2 (); 1799 ; 1800 return 0; 1801} 1802_ACEOF 1803if ac_fn_c_try_link "$LINENO"; then : 1804 eval "$3=yes" 1805else 1806 eval "$3=no" 1807fi 1808rm -f core conftest.err conftest.$ac_objext \ 1809 conftest$ac_exeext conftest.$ac_ext 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_func 1817 1818# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1819# --------------------------------------------- 1820# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1821# accordingly. 1822ac_fn_c_check_decl () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 as_decl_name=`echo $2|sed 's/ *(.*//'` 1826 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1828$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1829if eval \${$3+:} false; then : 1830 $as_echo_n "(cached) " >&6 1831else 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834$4 1835int 1836main () 1837{ 1838#ifndef $as_decl_name 1839#ifdef __cplusplus 1840 (void) $as_decl_use; 1841#else 1842 (void) $as_decl_name; 1843#endif 1844#endif 1845 1846 ; 1847 return 0; 1848} 1849_ACEOF 1850if ac_fn_c_try_compile "$LINENO"; then : 1851 eval "$3=yes" 1852else 1853 eval "$3=no" 1854fi 1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_decl 1863cat >config.log <<_ACEOF 1864This file contains any messages produced by compilers while 1865running configure, to aid debugging if configure makes a mistake. 1866 1867It was created by libxkbfile $as_me 1.1.0, which was 1868generated by GNU Autoconf 2.69. Invocation command line was 1869 1870 $ $0 $@ 1871 1872_ACEOF 1873exec 5>>config.log 1874{ 1875cat <<_ASUNAME 1876## --------- ## 1877## Platform. ## 1878## --------- ## 1879 1880hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1881uname -m = `(uname -m) 2>/dev/null || echo unknown` 1882uname -r = `(uname -r) 2>/dev/null || echo unknown` 1883uname -s = `(uname -s) 2>/dev/null || echo unknown` 1884uname -v = `(uname -v) 2>/dev/null || echo unknown` 1885 1886/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1887/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1888 1889/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1890/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1891/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1892/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1893/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1894/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1895/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1896 1897_ASUNAME 1898 1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1900for as_dir in $PATH 1901do 1902 IFS=$as_save_IFS 1903 test -z "$as_dir" && as_dir=. 1904 $as_echo "PATH: $as_dir" 1905 done 1906IFS=$as_save_IFS 1907 1908} >&5 1909 1910cat >&5 <<_ACEOF 1911 1912 1913## ----------- ## 1914## Core tests. ## 1915## ----------- ## 1916 1917_ACEOF 1918 1919 1920# Keep a trace of the command line. 1921# Strip out --no-create and --no-recursion so they do not pile up. 1922# Strip out --silent because we don't want to record it for future runs. 1923# Also quote any args containing shell meta-characters. 1924# Make two passes to allow for proper duplicate-argument suppression. 1925ac_configure_args= 1926ac_configure_args0= 1927ac_configure_args1= 1928ac_must_keep_next=false 1929for ac_pass in 1 2 1930do 1931 for ac_arg 1932 do 1933 case $ac_arg in 1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1936 | -silent | --silent | --silen | --sile | --sil) 1937 continue ;; 1938 *\'*) 1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1940 esac 1941 case $ac_pass in 1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1943 2) 1944 as_fn_append ac_configure_args1 " '$ac_arg'" 1945 if test $ac_must_keep_next = true; then 1946 ac_must_keep_next=false # Got value, back to normal. 1947 else 1948 case $ac_arg in 1949 *=* | --config-cache | -C | -disable-* | --disable-* \ 1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1952 | -with-* | --with-* | -without-* | --without-* | --x) 1953 case "$ac_configure_args0 " in 1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1955 esac 1956 ;; 1957 -* ) ac_must_keep_next=true ;; 1958 esac 1959 fi 1960 as_fn_append ac_configure_args " '$ac_arg'" 1961 ;; 1962 esac 1963 done 1964done 1965{ ac_configure_args0=; unset ac_configure_args0;} 1966{ ac_configure_args1=; unset ac_configure_args1;} 1967 1968# When interrupted or exit'd, cleanup temporary files, and complete 1969# config.log. We remove comments because anyway the quotes in there 1970# would cause problems or look ugly. 1971# WARNING: Use '\'' to represent an apostrophe within the trap. 1972# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1973trap 'exit_status=$? 1974 # Save into config.log some information that might help in debugging. 1975 { 1976 echo 1977 1978 $as_echo "## ---------------- ## 1979## Cache variables. ## 1980## ---------------- ##" 1981 echo 1982 # The following way of writing the cache mishandles newlines in values, 1983( 1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1985 eval ac_val=\$$ac_var 1986 case $ac_val in #( 1987 *${as_nl}*) 1988 case $ac_var in #( 1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1991 esac 1992 case $ac_var in #( 1993 _ | IFS | as_nl) ;; #( 1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1995 *) { eval $ac_var=; unset $ac_var;} ;; 1996 esac ;; 1997 esac 1998 done 1999 (set) 2>&1 | 2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2001 *${as_nl}ac_space=\ *) 2002 sed -n \ 2003 "s/'\''/'\''\\\\'\'''\''/g; 2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2005 ;; #( 2006 *) 2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2008 ;; 2009 esac | 2010 sort 2011) 2012 echo 2013 2014 $as_echo "## ----------------- ## 2015## Output variables. ## 2016## ----------------- ##" 2017 echo 2018 for ac_var in $ac_subst_vars 2019 do 2020 eval ac_val=\$$ac_var 2021 case $ac_val in 2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2023 esac 2024 $as_echo "$ac_var='\''$ac_val'\''" 2025 done | sort 2026 echo 2027 2028 if test -n "$ac_subst_files"; then 2029 $as_echo "## ------------------- ## 2030## File substitutions. ## 2031## ------------------- ##" 2032 echo 2033 for ac_var in $ac_subst_files 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 $as_echo "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 fi 2043 2044 if test -s confdefs.h; then 2045 $as_echo "## ----------- ## 2046## confdefs.h. ## 2047## ----------- ##" 2048 echo 2049 cat confdefs.h 2050 echo 2051 fi 2052 test "$ac_signal" != 0 && 2053 $as_echo "$as_me: caught signal $ac_signal" 2054 $as_echo "$as_me: exit $exit_status" 2055 } >&5 2056 rm -f core *.core core.conftest.* && 2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2058 exit $exit_status 2059' 0 2060for ac_signal in 1 2 13 15; do 2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2062done 2063ac_signal=0 2064 2065# confdefs.h avoids OS command line length limits that DEFS can exceed. 2066rm -f -r conftest* confdefs.h 2067 2068$as_echo "/* confdefs.h */" > confdefs.h 2069 2070# Predefined preprocessor variables. 2071 2072cat >>confdefs.h <<_ACEOF 2073#define PACKAGE_NAME "$PACKAGE_NAME" 2074_ACEOF 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2078_ACEOF 2079 2080cat >>confdefs.h <<_ACEOF 2081#define PACKAGE_VERSION "$PACKAGE_VERSION" 2082_ACEOF 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_STRING "$PACKAGE_STRING" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_URL "$PACKAGE_URL" 2094_ACEOF 2095 2096 2097# Let the site file select an alternate cache file if it wants to. 2098# Prefer an explicitly selected file to automatically selected ones. 2099ac_site_file1=NONE 2100ac_site_file2=NONE 2101if test -n "$CONFIG_SITE"; then 2102 # We do not want a PATH search for config.site. 2103 case $CONFIG_SITE in #(( 2104 -*) ac_site_file1=./$CONFIG_SITE;; 2105 */*) ac_site_file1=$CONFIG_SITE;; 2106 *) ac_site_file1=./$CONFIG_SITE;; 2107 esac 2108elif test "x$prefix" != xNONE; then 2109 ac_site_file1=$prefix/share/config.site 2110 ac_site_file2=$prefix/etc/config.site 2111else 2112 ac_site_file1=$ac_default_prefix/share/config.site 2113 ac_site_file2=$ac_default_prefix/etc/config.site 2114fi 2115for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2116do 2117 test "x$ac_site_file" = xNONE && continue 2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2120$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2121 sed 's/^/| /' "$ac_site_file" >&5 2122 . "$ac_site_file" \ 2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2125as_fn_error $? "failed to load site script $ac_site_file 2126See \`config.log' for more details" "$LINENO" 5; } 2127 fi 2128done 2129 2130if test -r "$cache_file"; then 2131 # Some versions of bash will fail to source /dev/null (special files 2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2135$as_echo "$as_me: loading cache $cache_file" >&6;} 2136 case $cache_file in 2137 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2138 *) . "./$cache_file";; 2139 esac 2140 fi 2141else 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2143$as_echo "$as_me: creating cache $cache_file" >&6;} 2144 >$cache_file 2145fi 2146 2147# Check that the precious variables saved in the cache have kept the same 2148# value. 2149ac_cache_corrupted=false 2150for ac_var in $ac_precious_vars; do 2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2152 eval ac_new_set=\$ac_env_${ac_var}_set 2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2154 eval ac_new_val=\$ac_env_${ac_var}_value 2155 case $ac_old_set,$ac_new_set in 2156 set,) 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2158$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2159 ac_cache_corrupted=: ;; 2160 ,set) 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2162$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2163 ac_cache_corrupted=: ;; 2164 ,);; 2165 *) 2166 if test "x$ac_old_val" != "x$ac_new_val"; then 2167 # differences in whitespace do not lead to failure. 2168 ac_old_val_w=`echo x $ac_old_val` 2169 ac_new_val_w=`echo x $ac_new_val` 2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2172$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2173 ac_cache_corrupted=: 2174 else 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2176$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2177 eval $ac_var=\$ac_old_val 2178 fi 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2180$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2182$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2183 fi;; 2184 esac 2185 # Pass precious variables to config.status. 2186 if test "$ac_new_set" = set; then 2187 case $ac_new_val in 2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2189 *) ac_arg=$ac_var=$ac_new_val ;; 2190 esac 2191 case " $ac_configure_args " in 2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2194 esac 2195 fi 2196done 2197if $ac_cache_corrupted; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2201$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2203fi 2204## -------------------- ## 2205## Main body of script. ## 2206## -------------------- ## 2207 2208ac_ext=c 2209ac_cpp='$CPP $CPPFLAGS' 2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2212ac_compiler_gnu=$ac_cv_c_compiler_gnu 2213 2214 2215 2216ac_config_headers="$ac_config_headers config.h" 2217 2218 2219# Initialize Automake 2220am__api_version='1.15' 2221 2222ac_aux_dir= 2223for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2224 if test -f "$ac_dir/install-sh"; then 2225 ac_aux_dir=$ac_dir 2226 ac_install_sh="$ac_aux_dir/install-sh -c" 2227 break 2228 elif test -f "$ac_dir/install.sh"; then 2229 ac_aux_dir=$ac_dir 2230 ac_install_sh="$ac_aux_dir/install.sh -c" 2231 break 2232 elif test -f "$ac_dir/shtool"; then 2233 ac_aux_dir=$ac_dir 2234 ac_install_sh="$ac_aux_dir/shtool install -c" 2235 break 2236 fi 2237done 2238if test -z "$ac_aux_dir"; then 2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2240fi 2241 2242# These three variables are undocumented and unsupported, 2243# and are intended to be withdrawn in a future Autoconf release. 2244# They can cause serious problems if a builder's source tree is in a directory 2245# whose full name contains unusual characters. 2246ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2247ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2248ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2249 2250 2251# Find a good install program. We prefer a C program (faster), 2252# so one script is as good as another. But avoid the broken or 2253# incompatible versions: 2254# SysV /etc/install, /usr/sbin/install 2255# SunOS /usr/etc/install 2256# IRIX /sbin/install 2257# AIX /bin/install 2258# AmigaOS /C/install, which installs bootblocks on floppy discs 2259# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2260# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2261# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2262# OS/2's system install, which has a completely different semantic 2263# ./install, which can be erroneously created by make from ./install.sh. 2264# Reject install programs that cannot install multiple files. 2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2266$as_echo_n "checking for a BSD-compatible install... " >&6; } 2267if test -z "$INSTALL"; then 2268if ${ac_cv_path_install+:} false; then : 2269 $as_echo_n "(cached) " >&6 2270else 2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2272for as_dir in $PATH 2273do 2274 IFS=$as_save_IFS 2275 test -z "$as_dir" && as_dir=. 2276 # Account for people who put trailing slashes in PATH elements. 2277case $as_dir/ in #(( 2278 ./ | .// | /[cC]/* | \ 2279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2281 /usr/ucb/* ) ;; 2282 *) 2283 # OSF1 and SCO ODT 3.0 have their own names for install. 2284 # Don't use installbsd from OSF since it installs stuff as root 2285 # by default. 2286 for ac_prog in ginstall scoinst install; do 2287 for ac_exec_ext in '' $ac_executable_extensions; do 2288 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2289 if test $ac_prog = install && 2290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2291 # AIX install. It has an incompatible calling convention. 2292 : 2293 elif test $ac_prog = install && 2294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2295 # program-specific install script used by HP pwplus--don't use. 2296 : 2297 else 2298 rm -rf conftest.one conftest.two conftest.dir 2299 echo one > conftest.one 2300 echo two > conftest.two 2301 mkdir conftest.dir 2302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2303 test -s conftest.one && test -s conftest.two && 2304 test -s conftest.dir/conftest.one && 2305 test -s conftest.dir/conftest.two 2306 then 2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2308 break 3 2309 fi 2310 fi 2311 fi 2312 done 2313 done 2314 ;; 2315esac 2316 2317 done 2318IFS=$as_save_IFS 2319 2320rm -rf conftest.one conftest.two conftest.dir 2321 2322fi 2323 if test "${ac_cv_path_install+set}" = set; then 2324 INSTALL=$ac_cv_path_install 2325 else 2326 # As a last resort, use the slow shell script. Don't cache a 2327 # value for INSTALL within a source directory, because that will 2328 # break other packages using the cache if that directory is 2329 # removed, or if the value is a relative name. 2330 INSTALL=$ac_install_sh 2331 fi 2332fi 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2334$as_echo "$INSTALL" >&6; } 2335 2336# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2337# It thinks the first close brace ends the variable substitution. 2338test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2339 2340test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2341 2342test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2343 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2345$as_echo_n "checking whether build environment is sane... " >&6; } 2346# Reject unsafe characters in $srcdir or the absolute working directory 2347# name. Accept space and tab only in the latter. 2348am_lf=' 2349' 2350case `pwd` in 2351 *[\\\"\#\$\&\'\`$am_lf]*) 2352 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2353esac 2354case $srcdir in 2355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2356 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2357esac 2358 2359# Do 'set' in a subshell so we don't clobber the current shell's 2360# arguments. Must try -L first in case configure is actually a 2361# symlink; some systems play weird games with the mod time of symlinks 2362# (eg FreeBSD returns the mod time of the symlink's containing 2363# directory). 2364if ( 2365 am_has_slept=no 2366 for am_try in 1 2; do 2367 echo "timestamp, slept: $am_has_slept" > conftest.file 2368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2369 if test "$*" = "X"; then 2370 # -L didn't work. 2371 set X `ls -t "$srcdir/configure" conftest.file` 2372 fi 2373 if test "$*" != "X $srcdir/configure conftest.file" \ 2374 && test "$*" != "X conftest.file $srcdir/configure"; then 2375 2376 # If neither matched, then we have a broken ls. This can happen 2377 # if, for instance, CONFIG_SHELL is bash and it inherits a 2378 # broken ls alias from the environment. This has actually 2379 # happened. Such a system could not be considered "sane". 2380 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2381 alias in your environment" "$LINENO" 5 2382 fi 2383 if test "$2" = conftest.file || test $am_try -eq 2; then 2384 break 2385 fi 2386 # Just in case. 2387 sleep 1 2388 am_has_slept=yes 2389 done 2390 test "$2" = conftest.file 2391 ) 2392then 2393 # Ok. 2394 : 2395else 2396 as_fn_error $? "newly created file is older than distributed files! 2397Check your system clock" "$LINENO" 5 2398fi 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2400$as_echo "yes" >&6; } 2401# If we didn't sleep, we still need to ensure time stamps of config.status and 2402# generated files are strictly newer. 2403am_sleep_pid= 2404if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2405 ( sleep 1 ) & 2406 am_sleep_pid=$! 2407fi 2408 2409rm -f conftest.file 2410 2411test "$program_prefix" != NONE && 2412 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2413# Use a double $ so make ignores it. 2414test "$program_suffix" != NONE && 2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2416# Double any \ or $. 2417# By default was `s,x,x', remove it if useless. 2418ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2419program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2420 2421# Expand $ac_aux_dir to an absolute path. 2422am_aux_dir=`cd "$ac_aux_dir" && pwd` 2423 2424if test x"${MISSING+set}" != xset; then 2425 case $am_aux_dir in 2426 *\ * | *\ *) 2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2428 *) 2429 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2430 esac 2431fi 2432# Use eval to expand $SHELL 2433if eval "$MISSING --is-lightweight"; then 2434 am_missing_run="$MISSING " 2435else 2436 am_missing_run= 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2438$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2439fi 2440 2441if test x"${install_sh+set}" != xset; then 2442 case $am_aux_dir in 2443 *\ * | *\ *) 2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2445 *) 2446 install_sh="\${SHELL} $am_aux_dir/install-sh" 2447 esac 2448fi 2449 2450# Installed binaries are usually stripped using 'strip' when the user 2451# run "make install-strip". However 'strip' might not be the right 2452# tool to use in cross-compilation environments, therefore Automake 2453# will honor the 'STRIP' environment variable to overrule this program. 2454if test "$cross_compiling" != no; then 2455 if test -n "$ac_tool_prefix"; then 2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2457set dummy ${ac_tool_prefix}strip; ac_word=$2 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2459$as_echo_n "checking for $ac_word... " >&6; } 2460if ${ac_cv_prog_STRIP+:} false; then : 2461 $as_echo_n "(cached) " >&6 2462else 2463 if test -n "$STRIP"; then 2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2465else 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478 done 2479IFS=$as_save_IFS 2480 2481fi 2482fi 2483STRIP=$ac_cv_prog_STRIP 2484if test -n "$STRIP"; then 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2486$as_echo "$STRIP" >&6; } 2487else 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2489$as_echo "no" >&6; } 2490fi 2491 2492 2493fi 2494if test -z "$ac_cv_prog_STRIP"; then 2495 ac_ct_STRIP=$STRIP 2496 # Extract the first word of "strip", so it can be a program name with args. 2497set dummy strip; ac_word=$2 2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2499$as_echo_n "checking for $ac_word... " >&6; } 2500if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2501 $as_echo_n "(cached) " >&6 2502else 2503 if test -n "$ac_ct_STRIP"; then 2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2505else 2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2507for as_dir in $PATH 2508do 2509 IFS=$as_save_IFS 2510 test -z "$as_dir" && as_dir=. 2511 for ac_exec_ext in '' $ac_executable_extensions; do 2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2513 ac_cv_prog_ac_ct_STRIP="strip" 2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2515 break 2 2516 fi 2517done 2518 done 2519IFS=$as_save_IFS 2520 2521fi 2522fi 2523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2524if test -n "$ac_ct_STRIP"; then 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2526$as_echo "$ac_ct_STRIP" >&6; } 2527else 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2529$as_echo "no" >&6; } 2530fi 2531 2532 if test "x$ac_ct_STRIP" = x; then 2533 STRIP=":" 2534 else 2535 case $cross_compiling:$ac_tool_warned in 2536yes:) 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2539ac_tool_warned=yes ;; 2540esac 2541 STRIP=$ac_ct_STRIP 2542 fi 2543else 2544 STRIP="$ac_cv_prog_STRIP" 2545fi 2546 2547fi 2548INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2549 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2551$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2552if test -z "$MKDIR_P"; then 2553 if ${ac_cv_path_mkdir+:} false; then : 2554 $as_echo_n "(cached) " >&6 2555else 2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2558do 2559 IFS=$as_save_IFS 2560 test -z "$as_dir" && as_dir=. 2561 for ac_prog in mkdir gmkdir; do 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2563 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2565 'mkdir (GNU coreutils) '* | \ 2566 'mkdir (coreutils) '* | \ 2567 'mkdir (fileutils) '4.1*) 2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2569 break 3;; 2570 esac 2571 done 2572 done 2573 done 2574IFS=$as_save_IFS 2575 2576fi 2577 2578 test -d ./--version && rmdir ./--version 2579 if test "${ac_cv_path_mkdir+set}" = set; then 2580 MKDIR_P="$ac_cv_path_mkdir -p" 2581 else 2582 # As a last resort, use the slow shell script. Don't cache a 2583 # value for MKDIR_P within a source directory, because that will 2584 # break other packages using the cache if that directory is 2585 # removed, or if the value is a relative name. 2586 MKDIR_P="$ac_install_sh -d" 2587 fi 2588fi 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2590$as_echo "$MKDIR_P" >&6; } 2591 2592for ac_prog in gawk mawk nawk awk 2593do 2594 # Extract the first word of "$ac_prog", so it can be a program name with args. 2595set dummy $ac_prog; ac_word=$2 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2597$as_echo_n "checking for $ac_word... " >&6; } 2598if ${ac_cv_prog_AWK+:} false; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 if test -n "$AWK"; then 2602 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2611 ac_cv_prog_AWK="$ac_prog" 2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616 done 2617IFS=$as_save_IFS 2618 2619fi 2620fi 2621AWK=$ac_cv_prog_AWK 2622if test -n "$AWK"; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2624$as_echo "$AWK" >&6; } 2625else 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627$as_echo "no" >&6; } 2628fi 2629 2630 2631 test -n "$AWK" && break 2632done 2633 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2635$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2636set x ${MAKE-make} 2637ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2638if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 cat >conftest.make <<\_ACEOF 2642SHELL = /bin/sh 2643all: 2644 @echo '@@@%%%=$(MAKE)=@@@%%%' 2645_ACEOF 2646# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2647case `${MAKE-make} -f conftest.make 2>/dev/null` in 2648 *@@@%%%=?*=@@@%%%*) 2649 eval ac_cv_prog_make_${ac_make}_set=yes;; 2650 *) 2651 eval ac_cv_prog_make_${ac_make}_set=no;; 2652esac 2653rm -f conftest.make 2654fi 2655if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2657$as_echo "yes" >&6; } 2658 SET_MAKE= 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662 SET_MAKE="MAKE=${MAKE-make}" 2663fi 2664 2665rm -rf .tst 2>/dev/null 2666mkdir .tst 2>/dev/null 2667if test -d .tst; then 2668 am__leading_dot=. 2669else 2670 am__leading_dot=_ 2671fi 2672rmdir .tst 2>/dev/null 2673 2674# Check whether --enable-silent-rules was given. 2675if test "${enable_silent_rules+set}" = set; then : 2676 enableval=$enable_silent_rules; 2677fi 2678 2679case $enable_silent_rules in # ((( 2680 yes) AM_DEFAULT_VERBOSITY=0;; 2681 no) AM_DEFAULT_VERBOSITY=1;; 2682 *) AM_DEFAULT_VERBOSITY=1;; 2683esac 2684am_make=${MAKE-make} 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2686$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2687if ${am_cv_make_support_nested_variables+:} false; then : 2688 $as_echo_n "(cached) " >&6 2689else 2690 if $as_echo 'TRUE=$(BAR$(V)) 2691BAR0=false 2692BAR1=true 2693V=1 2694am__doit: 2695 @$(TRUE) 2696.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2697 am_cv_make_support_nested_variables=yes 2698else 2699 am_cv_make_support_nested_variables=no 2700fi 2701fi 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2703$as_echo "$am_cv_make_support_nested_variables" >&6; } 2704if test $am_cv_make_support_nested_variables = yes; then 2705 AM_V='$(V)' 2706 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2707else 2708 AM_V=$AM_DEFAULT_VERBOSITY 2709 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2710fi 2711AM_BACKSLASH='\' 2712 2713if test "`cd $srcdir && pwd`" != "`pwd`"; then 2714 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2715 # is not polluted with repeated "-I." 2716 am__isrc=' -I$(srcdir)' 2717 # test to see if srcdir already configured 2718 if test -f $srcdir/config.status; then 2719 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2720 fi 2721fi 2722 2723# test whether we have cygpath 2724if test -z "$CYGPATH_W"; then 2725 if (cygpath --version) >/dev/null 2>/dev/null; then 2726 CYGPATH_W='cygpath -w' 2727 else 2728 CYGPATH_W=echo 2729 fi 2730fi 2731 2732 2733# Define the identity of the package. 2734 PACKAGE='libxkbfile' 2735 VERSION='1.1.0' 2736 2737 2738cat >>confdefs.h <<_ACEOF 2739#define PACKAGE "$PACKAGE" 2740_ACEOF 2741 2742 2743cat >>confdefs.h <<_ACEOF 2744#define VERSION "$VERSION" 2745_ACEOF 2746 2747# Some tools Automake needs. 2748 2749ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2750 2751 2752AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2753 2754 2755AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2756 2757 2758AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2759 2760 2761MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2762 2763# For better backward compatibility. To be removed once Automake 1.9.x 2764# dies out for good. For more background, see: 2765# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2766# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2767mkdir_p='$(MKDIR_P)' 2768 2769# We need awk for the "check" target (and possibly the TAP driver). The 2770# system "awk" is bad on some platforms. 2771# Always define AMTAR for backward compatibility. Yes, it's still used 2772# in the wild :-( We should find a proper way to deprecate it ... 2773AMTAR='$${TAR-tar}' 2774 2775 2776# We'll loop over all known methods to create a tar archive until one works. 2777_am_tools='gnutar pax cpio none' 2778 2779am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2780 2781 2782 2783 2784 2785 2786# POSIX will say in a future version that running "rm -f" with no argument 2787# is OK; and we want to be able to make that assumption in our Makefile 2788# recipes. So use an aggressive probe to check that the usage we want is 2789# actually supported "in the wild" to an acceptable degree. 2790# See automake bug#10828. 2791# To make any issue more visible, cause the running configure to be aborted 2792# by default if the 'rm' program in use doesn't match our expectations; the 2793# user can still override this though. 2794if rm -f && rm -fr && rm -rf; then : OK; else 2795 cat >&2 <<'END' 2796Oops! 2797 2798Your 'rm' program seems unable to run without file operands specified 2799on the command line, even when the '-f' option is present. This is contrary 2800to the behaviour of most rm programs out there, and not conforming with 2801the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2802 2803Please tell bug-automake@gnu.org about your system, including the value 2804of your $PATH and any error possibly output before this message. This 2805can help us improve future automake versions. 2806 2807END 2808 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2809 echo 'Configuration will proceed anyway, since you have set the' >&2 2810 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2811 echo >&2 2812 else 2813 cat >&2 <<'END' 2814Aborting the configuration process, to ensure you take notice of the issue. 2815 2816You can download and install GNU coreutils to get an 'rm' implementation 2817that behaves properly: <http://www.gnu.org/software/coreutils/>. 2818 2819If you want to complete the configuration process using your problematic 2820'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2821to "yes", and re-run configure. 2822 2823END 2824 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2825 fi 2826fi 2827 2828 2829# Initialize libtool 2830case `pwd` in 2831 *\ * | *\ *) 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2833$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2834esac 2835 2836 2837 2838macro_version='2.4.6' 2839macro_revision='2.4.6' 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853ltmain=$ac_aux_dir/ltmain.sh 2854 2855# Make sure we can run config.sub. 2856$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2857 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2858 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2860$as_echo_n "checking build system type... " >&6; } 2861if ${ac_cv_build+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 ac_build_alias=$build_alias 2865test "x$ac_build_alias" = x && 2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2867test "x$ac_build_alias" = x && 2868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2869ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2871 2872fi 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2874$as_echo "$ac_cv_build" >&6; } 2875case $ac_cv_build in 2876*-*-*) ;; 2877*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2878esac 2879build=$ac_cv_build 2880ac_save_IFS=$IFS; IFS='-' 2881set x $ac_cv_build 2882shift 2883build_cpu=$1 2884build_vendor=$2 2885shift; shift 2886# Remember, the first character of IFS is used to create $*, 2887# except with old shells: 2888build_os=$* 2889IFS=$ac_save_IFS 2890case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2891 2892 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2894$as_echo_n "checking host system type... " >&6; } 2895if ${ac_cv_host+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test "x$host_alias" = x; then 2899 ac_cv_host=$ac_cv_build 2900else 2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2903fi 2904 2905fi 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2907$as_echo "$ac_cv_host" >&6; } 2908case $ac_cv_host in 2909*-*-*) ;; 2910*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2911esac 2912host=$ac_cv_host 2913ac_save_IFS=$IFS; IFS='-' 2914set x $ac_cv_host 2915shift 2916host_cpu=$1 2917host_vendor=$2 2918shift; shift 2919# Remember, the first character of IFS is used to create $*, 2920# except with old shells: 2921host_os=$* 2922IFS=$ac_save_IFS 2923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2924 2925 2926# Backslashify metacharacters that are still active within 2927# double-quoted strings. 2928sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2929 2930# Same as above, but do not quote variable references. 2931double_quote_subst='s/\(["`\\]\)/\\\1/g' 2932 2933# Sed substitution to delay expansion of an escaped shell variable in a 2934# double_quote_subst'ed string. 2935delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2936 2937# Sed substitution to delay expansion of an escaped single quote. 2938delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2939 2940# Sed substitution to avoid accidental globbing in evaled expressions 2941no_glob_subst='s/\*/\\\*/g' 2942 2943ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2945ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2946 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2948$as_echo_n "checking how to print strings... " >&6; } 2949# Test print first, because it will be a builtin if present. 2950if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2951 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2952 ECHO='print -r --' 2953elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2954 ECHO='printf %s\n' 2955else 2956 # Use this function as a fallback that always works. 2957 func_fallback_echo () 2958 { 2959 eval 'cat <<_LTECHO_EOF 2960$1 2961_LTECHO_EOF' 2962 } 2963 ECHO='func_fallback_echo' 2964fi 2965 2966# func_echo_all arg... 2967# Invoke $ECHO with all args, space-separated. 2968func_echo_all () 2969{ 2970 $ECHO "" 2971} 2972 2973case $ECHO in 2974 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2975$as_echo "printf" >&6; } ;; 2976 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2977$as_echo "print -r" >&6; } ;; 2978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2979$as_echo "cat" >&6; } ;; 2980esac 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995DEPDIR="${am__leading_dot}deps" 2996 2997ac_config_commands="$ac_config_commands depfiles" 2998 2999 3000am_make=${MAKE-make} 3001cat > confinc << 'END' 3002am__doit: 3003 @echo this is the am__doit target 3004.PHONY: am__doit 3005END 3006# If we don't find an include directive, just comment out the code. 3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3008$as_echo_n "checking for style of include used by $am_make... " >&6; } 3009am__include="#" 3010am__quote= 3011_am_result=none 3012# First try GNU make style include. 3013echo "include confinc" > confmf 3014# Ignore all kinds of additional output from 'make'. 3015case `$am_make -s -f confmf 2> /dev/null` in #( 3016*the\ am__doit\ target*) 3017 am__include=include 3018 am__quote= 3019 _am_result=GNU 3020 ;; 3021esac 3022# Now try BSD make style include. 3023if test "$am__include" = "#"; then 3024 echo '.include "confinc"' > confmf 3025 case `$am_make -s -f confmf 2> /dev/null` in #( 3026 *the\ am__doit\ target*) 3027 am__include=.include 3028 am__quote="\"" 3029 _am_result=BSD 3030 ;; 3031 esac 3032fi 3033 3034 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3036$as_echo "$_am_result" >&6; } 3037rm -f confinc confmf 3038 3039# Check whether --enable-dependency-tracking was given. 3040if test "${enable_dependency_tracking+set}" = set; then : 3041 enableval=$enable_dependency_tracking; 3042fi 3043 3044if test "x$enable_dependency_tracking" != xno; then 3045 am_depcomp="$ac_aux_dir/depcomp" 3046 AMDEPBACKSLASH='\' 3047 am__nodep='_no' 3048fi 3049 if test "x$enable_dependency_tracking" != xno; then 3050 AMDEP_TRUE= 3051 AMDEP_FALSE='#' 3052else 3053 AMDEP_TRUE='#' 3054 AMDEP_FALSE= 3055fi 3056 3057 3058ac_ext=c 3059ac_cpp='$CPP $CPPFLAGS' 3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3062ac_compiler_gnu=$ac_cv_c_compiler_gnu 3063if test -n "$ac_tool_prefix"; then 3064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3065set dummy ${ac_tool_prefix}gcc; ac_word=$2 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067$as_echo_n "checking for $ac_word... " >&6; } 3068if ${ac_cv_prog_CC+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 if test -n "$CC"; then 3072 ac_cv_prog_CC="$CC" # Let the user override the test. 3073else 3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075for as_dir in $PATH 3076do 3077 IFS=$as_save_IFS 3078 test -z "$as_dir" && as_dir=. 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085done 3086 done 3087IFS=$as_save_IFS 3088 3089fi 3090fi 3091CC=$ac_cv_prog_CC 3092if test -n "$CC"; then 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3094$as_echo "$CC" >&6; } 3095else 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097$as_echo "no" >&6; } 3098fi 3099 3100 3101fi 3102if test -z "$ac_cv_prog_CC"; then 3103 ac_ct_CC=$CC 3104 # Extract the first word of "gcc", so it can be a program name with args. 3105set dummy gcc; ac_word=$2 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3107$as_echo_n "checking for $ac_word... " >&6; } 3108if ${ac_cv_prog_ac_ct_CC+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 if test -n "$ac_ct_CC"; then 3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3113else 3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115for as_dir in $PATH 3116do 3117 IFS=$as_save_IFS 3118 test -z "$as_dir" && as_dir=. 3119 for ac_exec_ext in '' $ac_executable_extensions; do 3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3121 ac_cv_prog_ac_ct_CC="gcc" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129fi 3130fi 3131ac_ct_CC=$ac_cv_prog_ac_ct_CC 3132if test -n "$ac_ct_CC"; then 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3134$as_echo "$ac_ct_CC" >&6; } 3135else 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3137$as_echo "no" >&6; } 3138fi 3139 3140 if test "x$ac_ct_CC" = x; then 3141 CC="" 3142 else 3143 case $cross_compiling:$ac_tool_warned in 3144yes:) 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3147ac_tool_warned=yes ;; 3148esac 3149 CC=$ac_ct_CC 3150 fi 3151else 3152 CC="$ac_cv_prog_CC" 3153fi 3154 3155if test -z "$CC"; then 3156 if test -n "$ac_tool_prefix"; then 3157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3158set dummy ${ac_tool_prefix}cc; ac_word=$2 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160$as_echo_n "checking for $ac_word... " >&6; } 3161if ${ac_cv_prog_CC+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 if test -n "$CC"; then 3165 ac_cv_prog_CC="$CC" # Let the user override the test. 3166else 3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168for as_dir in $PATH 3169do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_exec_ext in '' $ac_executable_extensions; do 3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3174 ac_cv_prog_CC="${ac_tool_prefix}cc" 3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3176 break 2 3177 fi 3178done 3179 done 3180IFS=$as_save_IFS 3181 3182fi 3183fi 3184CC=$ac_cv_prog_CC 3185if test -n "$CC"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3187$as_echo "$CC" >&6; } 3188else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191fi 3192 3193 3194 fi 3195fi 3196if test -z "$CC"; then 3197 # Extract the first word of "cc", so it can be a program name with args. 3198set dummy cc; ac_word=$2 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3200$as_echo_n "checking for $ac_word... " >&6; } 3201if ${ac_cv_prog_CC+:} false; then : 3202 $as_echo_n "(cached) " >&6 3203else 3204 if test -n "$CC"; then 3205 ac_cv_prog_CC="$CC" # Let the user override the test. 3206else 3207 ac_prog_rejected=no 3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3209for as_dir in $PATH 3210do 3211 IFS=$as_save_IFS 3212 test -z "$as_dir" && as_dir=. 3213 for ac_exec_ext in '' $ac_executable_extensions; do 3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3216 ac_prog_rejected=yes 3217 continue 3218 fi 3219 ac_cv_prog_CC="cc" 3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3221 break 2 3222 fi 3223done 3224 done 3225IFS=$as_save_IFS 3226 3227if test $ac_prog_rejected = yes; then 3228 # We found a bogon in the path, so make sure we never use it. 3229 set dummy $ac_cv_prog_CC 3230 shift 3231 if test $# != 0; then 3232 # We chose a different compiler from the bogus one. 3233 # However, it has the same basename, so the bogon will be chosen 3234 # first if we set CC to just the basename; use the full file name. 3235 shift 3236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3237 fi 3238fi 3239fi 3240fi 3241CC=$ac_cv_prog_CC 3242if test -n "$CC"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3244$as_echo "$CC" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251fi 3252if test -z "$CC"; then 3253 if test -n "$ac_tool_prefix"; then 3254 for ac_prog in cl.exe 3255 do 3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3257set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3259$as_echo_n "checking for $ac_word... " >&6; } 3260if ${ac_cv_prog_CC+:} false; then : 3261 $as_echo_n "(cached) " >&6 3262else 3263 if test -n "$CC"; then 3264 ac_cv_prog_CC="$CC" # Let the user override the test. 3265else 3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3267for as_dir in $PATH 3268do 3269 IFS=$as_save_IFS 3270 test -z "$as_dir" && as_dir=. 3271 for ac_exec_ext in '' $ac_executable_extensions; do 3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3275 break 2 3276 fi 3277done 3278 done 3279IFS=$as_save_IFS 3280 3281fi 3282fi 3283CC=$ac_cv_prog_CC 3284if test -n "$CC"; then 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3286$as_echo "$CC" >&6; } 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3289$as_echo "no" >&6; } 3290fi 3291 3292 3293 test -n "$CC" && break 3294 done 3295fi 3296if test -z "$CC"; then 3297 ac_ct_CC=$CC 3298 for ac_prog in cl.exe 3299do 3300 # Extract the first word of "$ac_prog", so it can be a program name with args. 3301set dummy $ac_prog; ac_word=$2 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3303$as_echo_n "checking for $ac_word... " >&6; } 3304if ${ac_cv_prog_ac_ct_CC+:} false; then : 3305 $as_echo_n "(cached) " >&6 3306else 3307 if test -n "$ac_ct_CC"; then 3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3309else 3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3311for as_dir in $PATH 3312do 3313 IFS=$as_save_IFS 3314 test -z "$as_dir" && as_dir=. 3315 for ac_exec_ext in '' $ac_executable_extensions; do 3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3317 ac_cv_prog_ac_ct_CC="$ac_prog" 3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3319 break 2 3320 fi 3321done 3322 done 3323IFS=$as_save_IFS 3324 3325fi 3326fi 3327ac_ct_CC=$ac_cv_prog_ac_ct_CC 3328if test -n "$ac_ct_CC"; then 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3330$as_echo "$ac_ct_CC" >&6; } 3331else 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3333$as_echo "no" >&6; } 3334fi 3335 3336 3337 test -n "$ac_ct_CC" && break 3338done 3339 3340 if test "x$ac_ct_CC" = x; then 3341 CC="" 3342 else 3343 case $cross_compiling:$ac_tool_warned in 3344yes:) 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3347ac_tool_warned=yes ;; 3348esac 3349 CC=$ac_ct_CC 3350 fi 3351fi 3352 3353fi 3354 3355 3356test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3358as_fn_error $? "no acceptable C compiler found in \$PATH 3359See \`config.log' for more details" "$LINENO" 5; } 3360 3361# Provide some information about the compiler. 3362$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3363set X $ac_compile 3364ac_compiler=$2 3365for ac_option in --version -v -V -qversion; do 3366 { { ac_try="$ac_compiler $ac_option >&5" 3367case "(($ac_try" in 3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3369 *) ac_try_echo=$ac_try;; 3370esac 3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3372$as_echo "$ac_try_echo"; } >&5 3373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3374 ac_status=$? 3375 if test -s conftest.err; then 3376 sed '10a\ 3377... rest of stderr output deleted ... 3378 10q' conftest.err >conftest.er1 3379 cat conftest.er1 >&5 3380 fi 3381 rm -f conftest.er1 conftest.err 3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3383 test $ac_status = 0; } 3384done 3385 3386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3387/* end confdefs.h. */ 3388 3389int 3390main () 3391{ 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397ac_clean_files_save=$ac_clean_files 3398ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3399# Try to create an executable without -o first, disregard a.out. 3400# It will help us diagnose broken compilers, and finding out an intuition 3401# of exeext. 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3403$as_echo_n "checking whether the C compiler works... " >&6; } 3404ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3405 3406# The possible output files: 3407ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3408 3409ac_rmfiles= 3410for ac_file in $ac_files 3411do 3412 case $ac_file in 3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3414 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3415 esac 3416done 3417rm -f $ac_rmfiles 3418 3419if { { ac_try="$ac_link_default" 3420case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3425$as_echo "$ac_try_echo"; } >&5 3426 (eval "$ac_link_default") 2>&5 3427 ac_status=$? 3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3429 test $ac_status = 0; }; then : 3430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3431# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3432# in a Makefile. We should not override ac_cv_exeext if it was cached, 3433# so that the user can short-circuit this test for compilers unknown to 3434# Autoconf. 3435for ac_file in $ac_files '' 3436do 3437 test -f "$ac_file" || continue 3438 case $ac_file in 3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3440 ;; 3441 [ab].out ) 3442 # We found the default executable, but exeext='' is most 3443 # certainly right. 3444 break;; 3445 *.* ) 3446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3447 then :; else 3448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3449 fi 3450 # We set ac_cv_exeext here because the later test for it is not 3451 # safe: cross compilers may not add the suffix if given an `-o' 3452 # argument, so we may need to know it at that point already. 3453 # Even if this section looks crufty: it has the advantage of 3454 # actually working. 3455 break;; 3456 * ) 3457 break;; 3458 esac 3459done 3460test "$ac_cv_exeext" = no && ac_cv_exeext= 3461 3462else 3463 ac_file='' 3464fi 3465if test -z "$ac_file"; then : 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3467$as_echo "no" >&6; } 3468$as_echo "$as_me: failed program was:" >&5 3469sed 's/^/| /' conftest.$ac_ext >&5 3470 3471{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3473as_fn_error 77 "C compiler cannot create executables 3474See \`config.log' for more details" "$LINENO" 5; } 3475else 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3477$as_echo "yes" >&6; } 3478fi 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3480$as_echo_n "checking for C compiler default output file name... " >&6; } 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3482$as_echo "$ac_file" >&6; } 3483ac_exeext=$ac_cv_exeext 3484 3485rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3486ac_clean_files=$ac_clean_files_save 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3488$as_echo_n "checking for suffix of executables... " >&6; } 3489if { { ac_try="$ac_link" 3490case "(($ac_try" in 3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3492 *) ac_try_echo=$ac_try;; 3493esac 3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3495$as_echo "$ac_try_echo"; } >&5 3496 (eval "$ac_link") 2>&5 3497 ac_status=$? 3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3499 test $ac_status = 0; }; then : 3500 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3501# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3502# work properly (i.e., refer to `conftest.exe'), while it won't with 3503# `rm'. 3504for ac_file in conftest.exe conftest conftest.*; do 3505 test -f "$ac_file" || continue 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3509 break;; 3510 * ) break;; 3511 esac 3512done 3513else 3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3516as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3517See \`config.log' for more details" "$LINENO" 5; } 3518fi 3519rm -f conftest conftest$ac_cv_exeext 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3521$as_echo "$ac_cv_exeext" >&6; } 3522 3523rm -f conftest.$ac_ext 3524EXEEXT=$ac_cv_exeext 3525ac_exeext=$EXEEXT 3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528#include <stdio.h> 3529int 3530main () 3531{ 3532FILE *f = fopen ("conftest.out", "w"); 3533 return ferror (f) || fclose (f) != 0; 3534 3535 ; 3536 return 0; 3537} 3538_ACEOF 3539ac_clean_files="$ac_clean_files conftest.out" 3540# Check that the compiler produces executables we can run. If not, either 3541# the compiler is broken, or we cross compile. 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3543$as_echo_n "checking whether we are cross compiling... " >&6; } 3544if test "$cross_compiling" != yes; then 3545 { { ac_try="$ac_link" 3546case "(($ac_try" in 3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3548 *) ac_try_echo=$ac_try;; 3549esac 3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3551$as_echo "$ac_try_echo"; } >&5 3552 (eval "$ac_link") 2>&5 3553 ac_status=$? 3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3555 test $ac_status = 0; } 3556 if { ac_try='./conftest$ac_cv_exeext' 3557 { { case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3562$as_echo "$ac_try_echo"; } >&5 3563 (eval "$ac_try") 2>&5 3564 ac_status=$? 3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3566 test $ac_status = 0; }; }; then 3567 cross_compiling=no 3568 else 3569 if test "$cross_compiling" = maybe; then 3570 cross_compiling=yes 3571 else 3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3574as_fn_error $? "cannot run C compiled programs. 3575If you meant to cross compile, use \`--host'. 3576See \`config.log' for more details" "$LINENO" 5; } 3577 fi 3578 fi 3579fi 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3581$as_echo "$cross_compiling" >&6; } 3582 3583rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3584ac_clean_files=$ac_clean_files_save 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3586$as_echo_n "checking for suffix of object files... " >&6; } 3587if ${ac_cv_objext+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3591/* end confdefs.h. */ 3592 3593int 3594main () 3595{ 3596 3597 ; 3598 return 0; 3599} 3600_ACEOF 3601rm -f conftest.o conftest.obj 3602if { { ac_try="$ac_compile" 3603case "(($ac_try" in 3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3605 *) ac_try_echo=$ac_try;; 3606esac 3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3608$as_echo "$ac_try_echo"; } >&5 3609 (eval "$ac_compile") 2>&5 3610 ac_status=$? 3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3612 test $ac_status = 0; }; then : 3613 for ac_file in conftest.o conftest.obj conftest.*; do 3614 test -f "$ac_file" || continue; 3615 case $ac_file in 3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3618 break;; 3619 esac 3620done 3621else 3622 $as_echo "$as_me: failed program was:" >&5 3623sed 's/^/| /' conftest.$ac_ext >&5 3624 3625{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3627as_fn_error $? "cannot compute suffix of object files: cannot compile 3628See \`config.log' for more details" "$LINENO" 5; } 3629fi 3630rm -f conftest.$ac_cv_objext conftest.$ac_ext 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3633$as_echo "$ac_cv_objext" >&6; } 3634OBJEXT=$ac_cv_objext 3635ac_objext=$OBJEXT 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3637$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3638if ${ac_cv_c_compiler_gnu+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642/* end confdefs.h. */ 3643 3644int 3645main () 3646{ 3647#ifndef __GNUC__ 3648 choke me 3649#endif 3650 3651 ; 3652 return 0; 3653} 3654_ACEOF 3655if ac_fn_c_try_compile "$LINENO"; then : 3656 ac_compiler_gnu=yes 3657else 3658 ac_compiler_gnu=no 3659fi 3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3661ac_cv_c_compiler_gnu=$ac_compiler_gnu 3662 3663fi 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3665$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3666if test $ac_compiler_gnu = yes; then 3667 GCC=yes 3668else 3669 GCC= 3670fi 3671ac_test_CFLAGS=${CFLAGS+set} 3672ac_save_CFLAGS=$CFLAGS 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3674$as_echo_n "checking whether $CC accepts -g... " >&6; } 3675if ${ac_cv_prog_cc_g+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677else 3678 ac_save_c_werror_flag=$ac_c_werror_flag 3679 ac_c_werror_flag=yes 3680 ac_cv_prog_cc_g=no 3681 CFLAGS="-g" 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693if ac_fn_c_try_compile "$LINENO"; then : 3694 ac_cv_prog_cc_g=yes 3695else 3696 CFLAGS="" 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 3710else 3711 ac_c_werror_flag=$ac_save_c_werror_flag 3712 CFLAGS="-g" 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716int 3717main () 3718{ 3719 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724if ac_fn_c_try_compile "$LINENO"; then : 3725 ac_cv_prog_cc_g=yes 3726fi 3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3728fi 3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3732 ac_c_werror_flag=$ac_save_c_werror_flag 3733fi 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3735$as_echo "$ac_cv_prog_cc_g" >&6; } 3736if test "$ac_test_CFLAGS" = set; then 3737 CFLAGS=$ac_save_CFLAGS 3738elif test $ac_cv_prog_cc_g = yes; then 3739 if test "$GCC" = yes; then 3740 CFLAGS="-g -O2" 3741 else 3742 CFLAGS="-g" 3743 fi 3744else 3745 if test "$GCC" = yes; then 3746 CFLAGS="-O2" 3747 else 3748 CFLAGS= 3749 fi 3750fi 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3752$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3753if ${ac_cv_prog_cc_c89+:} false; then : 3754 $as_echo_n "(cached) " >&6 3755else 3756 ac_cv_prog_cc_c89=no 3757ac_save_CC=$CC 3758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3759/* end confdefs.h. */ 3760#include <stdarg.h> 3761#include <stdio.h> 3762struct stat; 3763/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3764struct buf { int x; }; 3765FILE * (*rcsopen) (struct buf *, struct stat *, int); 3766static char *e (p, i) 3767 char **p; 3768 int i; 3769{ 3770 return p[i]; 3771} 3772static char *f (char * (*g) (char **, int), char **p, ...) 3773{ 3774 char *s; 3775 va_list v; 3776 va_start (v,p); 3777 s = g (p, va_arg (v,int)); 3778 va_end (v); 3779 return s; 3780} 3781 3782/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3783 function prototypes and stuff, but not '\xHH' hex character constants. 3784 These don't provoke an error unfortunately, instead are silently treated 3785 as 'x'. The following induces an error, until -std is added to get 3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3787 array size at least. It's necessary to write '\x00'==0 to get something 3788 that's true only with -std. */ 3789int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3790 3791/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3792 inside strings and character constants. */ 3793#define FOO(x) 'x' 3794int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3795 3796int test (int i, double x); 3797struct s1 {int (*f) (int a);}; 3798struct s2 {int (*f) (double a);}; 3799int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3800int argc; 3801char **argv; 3802int 3803main () 3804{ 3805return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3806 ; 3807 return 0; 3808} 3809_ACEOF 3810for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3812do 3813 CC="$ac_save_CC $ac_arg" 3814 if ac_fn_c_try_compile "$LINENO"; then : 3815 ac_cv_prog_cc_c89=$ac_arg 3816fi 3817rm -f core conftest.err conftest.$ac_objext 3818 test "x$ac_cv_prog_cc_c89" != "xno" && break 3819done 3820rm -f conftest.$ac_ext 3821CC=$ac_save_CC 3822 3823fi 3824# AC_CACHE_VAL 3825case "x$ac_cv_prog_cc_c89" in 3826 x) 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3828$as_echo "none needed" >&6; } ;; 3829 xno) 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3831$as_echo "unsupported" >&6; } ;; 3832 *) 3833 CC="$CC $ac_cv_prog_cc_c89" 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3835$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3836esac 3837if test "x$ac_cv_prog_cc_c89" != xno; then : 3838 3839fi 3840 3841ac_ext=c 3842ac_cpp='$CPP $CPPFLAGS' 3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3845ac_compiler_gnu=$ac_cv_c_compiler_gnu 3846 3847ac_ext=c 3848ac_cpp='$CPP $CPPFLAGS' 3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3851ac_compiler_gnu=$ac_cv_c_compiler_gnu 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3853$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3854if ${am_cv_prog_cc_c_o+:} false; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859 3860int 3861main () 3862{ 3863 3864 ; 3865 return 0; 3866} 3867_ACEOF 3868 # Make sure it works both with $CC and with simple cc. 3869 # Following AC_PROG_CC_C_O, we do the test twice because some 3870 # compilers refuse to overwrite an existing .o file with -o, 3871 # though they will create one. 3872 am_cv_prog_cc_c_o=yes 3873 for am_i in 1 2; do 3874 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3875 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3876 ac_status=$? 3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3878 (exit $ac_status); } \ 3879 && test -f conftest2.$ac_objext; then 3880 : OK 3881 else 3882 am_cv_prog_cc_c_o=no 3883 break 3884 fi 3885 done 3886 rm -f core conftest* 3887 unset am_i 3888fi 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3890$as_echo "$am_cv_prog_cc_c_o" >&6; } 3891if test "$am_cv_prog_cc_c_o" != yes; then 3892 # Losing compiler, so override with the script. 3893 # FIXME: It is wrong to rewrite CC. 3894 # But if we don't then we get into trouble of one sort or another. 3895 # A longer-term fix would be to have automake use am__CC in this case, 3896 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3897 CC="$am_aux_dir/compile $CC" 3898fi 3899ac_ext=c 3900ac_cpp='$CPP $CPPFLAGS' 3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3903ac_compiler_gnu=$ac_cv_c_compiler_gnu 3904 3905 3906depcc="$CC" am_compiler_list= 3907 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3909$as_echo_n "checking dependency style of $depcc... " >&6; } 3910if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3914 # We make a subdir and do the tests there. Otherwise we can end up 3915 # making bogus files that we don't know about and never remove. For 3916 # instance it was reported that on HP-UX the gcc test will end up 3917 # making a dummy file named 'D' -- because '-MD' means "put the output 3918 # in D". 3919 rm -rf conftest.dir 3920 mkdir conftest.dir 3921 # Copy depcomp to subdir because otherwise we won't find it if we're 3922 # using a relative directory. 3923 cp "$am_depcomp" conftest.dir 3924 cd conftest.dir 3925 # We will build objects and dependencies in a subdirectory because 3926 # it helps to detect inapplicable dependency modes. For instance 3927 # both Tru64's cc and ICC support -MD to output dependencies as a 3928 # side effect of compilation, but ICC will put the dependencies in 3929 # the current directory while Tru64 will put them in the object 3930 # directory. 3931 mkdir sub 3932 3933 am_cv_CC_dependencies_compiler_type=none 3934 if test "$am_compiler_list" = ""; then 3935 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3936 fi 3937 am__universal=false 3938 case " $depcc " in #( 3939 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3940 esac 3941 3942 for depmode in $am_compiler_list; do 3943 # Setup a source with many dependencies, because some compilers 3944 # like to wrap large dependency lists on column 80 (with \), and 3945 # we should not choose a depcomp mode which is confused by this. 3946 # 3947 # We need to recreate these files for each test, as the compiler may 3948 # overwrite some of them when testing with obscure command lines. 3949 # This happens at least with the AIX C compiler. 3950 : > sub/conftest.c 3951 for i in 1 2 3 4 5 6; do 3952 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3953 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3954 # Solaris 10 /bin/sh. 3955 echo '/* dummy */' > sub/conftst$i.h 3956 done 3957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3958 3959 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3960 # mode. It turns out that the SunPro C++ compiler does not properly 3961 # handle '-M -o', and we need to detect this. Also, some Intel 3962 # versions had trouble with output in subdirs. 3963 am__obj=sub/conftest.${OBJEXT-o} 3964 am__minus_obj="-o $am__obj" 3965 case $depmode in 3966 gcc) 3967 # This depmode causes a compiler race in universal mode. 3968 test "$am__universal" = false || continue 3969 ;; 3970 nosideeffect) 3971 # After this tag, mechanisms are not by side-effect, so they'll 3972 # only be used when explicitly requested. 3973 if test "x$enable_dependency_tracking" = xyes; then 3974 continue 3975 else 3976 break 3977 fi 3978 ;; 3979 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3980 # This compiler won't grok '-c -o', but also, the minuso test has 3981 # not run yet. These depmodes are late enough in the game, and 3982 # so weak that their functioning should not be impacted. 3983 am__obj=conftest.${OBJEXT-o} 3984 am__minus_obj= 3985 ;; 3986 none) break ;; 3987 esac 3988 if depmode=$depmode \ 3989 source=sub/conftest.c object=$am__obj \ 3990 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3991 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3992 >/dev/null 2>conftest.err && 3993 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3995 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3997 # icc doesn't choke on unknown options, it will just issue warnings 3998 # or remarks (even with -Werror). So we grep stderr for any message 3999 # that says an option was ignored or not supported. 4000 # When given -MP, icc 7.0 and 7.1 complain thusly: 4001 # icc: Command line warning: ignoring option '-M'; no argument required 4002 # The diagnosis changed in icc 8.0: 4003 # icc: Command line remark: option '-MP' not supported 4004 if (grep 'ignoring option' conftest.err || 4005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4006 am_cv_CC_dependencies_compiler_type=$depmode 4007 break 4008 fi 4009 fi 4010 done 4011 4012 cd .. 4013 rm -rf conftest.dir 4014else 4015 am_cv_CC_dependencies_compiler_type=none 4016fi 4017 4018fi 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4020$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4021CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4022 4023 if 4024 test "x$enable_dependency_tracking" != xno \ 4025 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4026 am__fastdepCC_TRUE= 4027 am__fastdepCC_FALSE='#' 4028else 4029 am__fastdepCC_TRUE='#' 4030 am__fastdepCC_FALSE= 4031fi 4032 4033 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4035$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4036if ${ac_cv_path_SED+:} false; then : 4037 $as_echo_n "(cached) " >&6 4038else 4039 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4040 for ac_i in 1 2 3 4 5 6 7; do 4041 ac_script="$ac_script$as_nl$ac_script" 4042 done 4043 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4044 { ac_script=; unset ac_script;} 4045 if test -z "$SED"; then 4046 ac_path_SED_found=false 4047 # Loop through the user's path and test for each of PROGNAME-LIST 4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4049for as_dir in $PATH 4050do 4051 IFS=$as_save_IFS 4052 test -z "$as_dir" && as_dir=. 4053 for ac_prog in sed gsed; do 4054 for ac_exec_ext in '' $ac_executable_extensions; do 4055 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4056 as_fn_executable_p "$ac_path_SED" || continue 4057# Check for GNU ac_path_SED and select it if it is found. 4058 # Check for GNU $ac_path_SED 4059case `"$ac_path_SED" --version 2>&1` in 4060*GNU*) 4061 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4062*) 4063 ac_count=0 4064 $as_echo_n 0123456789 >"conftest.in" 4065 while : 4066 do 4067 cat "conftest.in" "conftest.in" >"conftest.tmp" 4068 mv "conftest.tmp" "conftest.in" 4069 cp "conftest.in" "conftest.nl" 4070 $as_echo '' >> "conftest.nl" 4071 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4073 as_fn_arith $ac_count + 1 && ac_count=$as_val 4074 if test $ac_count -gt ${ac_path_SED_max-0}; then 4075 # Best one so far, save it but keep looking for a better one 4076 ac_cv_path_SED="$ac_path_SED" 4077 ac_path_SED_max=$ac_count 4078 fi 4079 # 10*(2^10) chars as input seems more than enough 4080 test $ac_count -gt 10 && break 4081 done 4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4083esac 4084 4085 $ac_path_SED_found && break 3 4086 done 4087 done 4088 done 4089IFS=$as_save_IFS 4090 if test -z "$ac_cv_path_SED"; then 4091 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4092 fi 4093else 4094 ac_cv_path_SED=$SED 4095fi 4096 4097fi 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4099$as_echo "$ac_cv_path_SED" >&6; } 4100 SED="$ac_cv_path_SED" 4101 rm -f conftest.sed 4102 4103test -z "$SED" && SED=sed 4104Xsed="$SED -e 1s/^X//" 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4117$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4118if ${ac_cv_path_GREP+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 if test -z "$GREP"; then 4122 ac_path_GREP_found=false 4123 # Loop through the user's path and test for each of PROGNAME-LIST 4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4126do 4127 IFS=$as_save_IFS 4128 test -z "$as_dir" && as_dir=. 4129 for ac_prog in grep ggrep; do 4130 for ac_exec_ext in '' $ac_executable_extensions; do 4131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4132 as_fn_executable_p "$ac_path_GREP" || continue 4133# Check for GNU ac_path_GREP and select it if it is found. 4134 # Check for GNU $ac_path_GREP 4135case `"$ac_path_GREP" --version 2>&1` in 4136*GNU*) 4137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4138*) 4139 ac_count=0 4140 $as_echo_n 0123456789 >"conftest.in" 4141 while : 4142 do 4143 cat "conftest.in" "conftest.in" >"conftest.tmp" 4144 mv "conftest.tmp" "conftest.in" 4145 cp "conftest.in" "conftest.nl" 4146 $as_echo 'GREP' >> "conftest.nl" 4147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4149 as_fn_arith $ac_count + 1 && ac_count=$as_val 4150 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4151 # Best one so far, save it but keep looking for a better one 4152 ac_cv_path_GREP="$ac_path_GREP" 4153 ac_path_GREP_max=$ac_count 4154 fi 4155 # 10*(2^10) chars as input seems more than enough 4156 test $ac_count -gt 10 && break 4157 done 4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4159esac 4160 4161 $ac_path_GREP_found && break 3 4162 done 4163 done 4164 done 4165IFS=$as_save_IFS 4166 if test -z "$ac_cv_path_GREP"; then 4167 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4168 fi 4169else 4170 ac_cv_path_GREP=$GREP 4171fi 4172 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4175$as_echo "$ac_cv_path_GREP" >&6; } 4176 GREP="$ac_cv_path_GREP" 4177 4178 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4180$as_echo_n "checking for egrep... " >&6; } 4181if ${ac_cv_path_EGREP+:} false; then : 4182 $as_echo_n "(cached) " >&6 4183else 4184 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4185 then ac_cv_path_EGREP="$GREP -E" 4186 else 4187 if test -z "$EGREP"; then 4188 ac_path_EGREP_found=false 4189 # Loop through the user's path and test for each of PROGNAME-LIST 4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4192do 4193 IFS=$as_save_IFS 4194 test -z "$as_dir" && as_dir=. 4195 for ac_prog in egrep; do 4196 for ac_exec_ext in '' $ac_executable_extensions; do 4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4198 as_fn_executable_p "$ac_path_EGREP" || continue 4199# Check for GNU ac_path_EGREP and select it if it is found. 4200 # Check for GNU $ac_path_EGREP 4201case `"$ac_path_EGREP" --version 2>&1` in 4202*GNU*) 4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4204*) 4205 ac_count=0 4206 $as_echo_n 0123456789 >"conftest.in" 4207 while : 4208 do 4209 cat "conftest.in" "conftest.in" >"conftest.tmp" 4210 mv "conftest.tmp" "conftest.in" 4211 cp "conftest.in" "conftest.nl" 4212 $as_echo 'EGREP' >> "conftest.nl" 4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4215 as_fn_arith $ac_count + 1 && ac_count=$as_val 4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4217 # Best one so far, save it but keep looking for a better one 4218 ac_cv_path_EGREP="$ac_path_EGREP" 4219 ac_path_EGREP_max=$ac_count 4220 fi 4221 # 10*(2^10) chars as input seems more than enough 4222 test $ac_count -gt 10 && break 4223 done 4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4225esac 4226 4227 $ac_path_EGREP_found && break 3 4228 done 4229 done 4230 done 4231IFS=$as_save_IFS 4232 if test -z "$ac_cv_path_EGREP"; then 4233 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4234 fi 4235else 4236 ac_cv_path_EGREP=$EGREP 4237fi 4238 4239 fi 4240fi 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4242$as_echo "$ac_cv_path_EGREP" >&6; } 4243 EGREP="$ac_cv_path_EGREP" 4244 4245 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4247$as_echo_n "checking for fgrep... " >&6; } 4248if ${ac_cv_path_FGREP+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4252 then ac_cv_path_FGREP="$GREP -F" 4253 else 4254 if test -z "$FGREP"; then 4255 ac_path_FGREP_found=false 4256 # Loop through the user's path and test for each of PROGNAME-LIST 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_prog in fgrep; do 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4265 as_fn_executable_p "$ac_path_FGREP" || continue 4266# Check for GNU ac_path_FGREP and select it if it is found. 4267 # Check for GNU $ac_path_FGREP 4268case `"$ac_path_FGREP" --version 2>&1` in 4269*GNU*) 4270 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4271*) 4272 ac_count=0 4273 $as_echo_n 0123456789 >"conftest.in" 4274 while : 4275 do 4276 cat "conftest.in" "conftest.in" >"conftest.tmp" 4277 mv "conftest.tmp" "conftest.in" 4278 cp "conftest.in" "conftest.nl" 4279 $as_echo 'FGREP' >> "conftest.nl" 4280 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4282 as_fn_arith $ac_count + 1 && ac_count=$as_val 4283 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4284 # Best one so far, save it but keep looking for a better one 4285 ac_cv_path_FGREP="$ac_path_FGREP" 4286 ac_path_FGREP_max=$ac_count 4287 fi 4288 # 10*(2^10) chars as input seems more than enough 4289 test $ac_count -gt 10 && break 4290 done 4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4292esac 4293 4294 $ac_path_FGREP_found && break 3 4295 done 4296 done 4297 done 4298IFS=$as_save_IFS 4299 if test -z "$ac_cv_path_FGREP"; then 4300 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4301 fi 4302else 4303 ac_cv_path_FGREP=$FGREP 4304fi 4305 4306 fi 4307fi 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4309$as_echo "$ac_cv_path_FGREP" >&6; } 4310 FGREP="$ac_cv_path_FGREP" 4311 4312 4313test -z "$GREP" && GREP=grep 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333# Check whether --with-gnu-ld was given. 4334if test "${with_gnu_ld+set}" = set; then : 4335 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4336else 4337 with_gnu_ld=no 4338fi 4339 4340ac_prog=ld 4341if test yes = "$GCC"; then 4342 # Check if gcc -print-prog-name=ld gives a path. 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4344$as_echo_n "checking for ld used by $CC... " >&6; } 4345 case $host in 4346 *-*-mingw*) 4347 # gcc leaves a trailing carriage return, which upsets mingw 4348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4349 *) 4350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4351 esac 4352 case $ac_prog in 4353 # Accept absolute paths. 4354 [\\/]* | ?:[\\/]*) 4355 re_direlt='/[^/][^/]*/\.\./' 4356 # Canonicalize the pathname of ld 4357 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4358 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4359 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4360 done 4361 test -z "$LD" && LD=$ac_prog 4362 ;; 4363 "") 4364 # If it fails, then pretend we aren't using GCC. 4365 ac_prog=ld 4366 ;; 4367 *) 4368 # If it is relative, then search for the first ld in PATH. 4369 with_gnu_ld=unknown 4370 ;; 4371 esac 4372elif test yes = "$with_gnu_ld"; then 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4374$as_echo_n "checking for GNU ld... " >&6; } 4375else 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4377$as_echo_n "checking for non-GNU ld... " >&6; } 4378fi 4379if ${lt_cv_path_LD+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 if test -z "$LD"; then 4383 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4384 for ac_dir in $PATH; do 4385 IFS=$lt_save_ifs 4386 test -z "$ac_dir" && ac_dir=. 4387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4388 lt_cv_path_LD=$ac_dir/$ac_prog 4389 # Check to see if the program is GNU ld. I'd rather use --version, 4390 # but apparently some variants of GNU ld only accept -v. 4391 # Break only if it was the GNU/non-GNU ld that we prefer. 4392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4393 *GNU* | *'with BFD'*) 4394 test no != "$with_gnu_ld" && break 4395 ;; 4396 *) 4397 test yes != "$with_gnu_ld" && break 4398 ;; 4399 esac 4400 fi 4401 done 4402 IFS=$lt_save_ifs 4403else 4404 lt_cv_path_LD=$LD # Let the user override the test with a path. 4405fi 4406fi 4407 4408LD=$lt_cv_path_LD 4409if test -n "$LD"; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4411$as_echo "$LD" >&6; } 4412else 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4414$as_echo "no" >&6; } 4415fi 4416test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4418$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4419if ${lt_cv_prog_gnu_ld+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4423case `$LD -v 2>&1 </dev/null` in 4424*GNU* | *'with BFD'*) 4425 lt_cv_prog_gnu_ld=yes 4426 ;; 4427*) 4428 lt_cv_prog_gnu_ld=no 4429 ;; 4430esac 4431fi 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4433$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4434with_gnu_ld=$lt_cv_prog_gnu_ld 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4445$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4446if ${lt_cv_path_NM+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448else 4449 if test -n "$NM"; then 4450 # Let the user override the test. 4451 lt_cv_path_NM=$NM 4452else 4453 lt_nm_to_check=${ac_tool_prefix}nm 4454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4455 lt_nm_to_check="$lt_nm_to_check nm" 4456 fi 4457 for lt_tmp_nm in $lt_nm_to_check; do 4458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4460 IFS=$lt_save_ifs 4461 test -z "$ac_dir" && ac_dir=. 4462 tmp_nm=$ac_dir/$lt_tmp_nm 4463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4464 # Check to see if the nm accepts a BSD-compat flag. 4465 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4466 # nm: unknown option "B" ignored 4467 # Tru64's nm complains that /dev/null is an invalid object file 4468 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4469 case $build_os in 4470 mingw*) lt_bad_file=conftest.nm/nofile ;; 4471 *) lt_bad_file=/dev/null ;; 4472 esac 4473 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4474 *$lt_bad_file* | *'Invalid file or object type'*) 4475 lt_cv_path_NM="$tmp_nm -B" 4476 break 2 4477 ;; 4478 *) 4479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4480 */dev/null*) 4481 lt_cv_path_NM="$tmp_nm -p" 4482 break 2 4483 ;; 4484 *) 4485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4486 continue # so that we can try to find one that supports BSD flags 4487 ;; 4488 esac 4489 ;; 4490 esac 4491 fi 4492 done 4493 IFS=$lt_save_ifs 4494 done 4495 : ${lt_cv_path_NM=no} 4496fi 4497fi 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4499$as_echo "$lt_cv_path_NM" >&6; } 4500if test no != "$lt_cv_path_NM"; then 4501 NM=$lt_cv_path_NM 4502else 4503 # Didn't find any BSD compatible name lister, look for dumpbin. 4504 if test -n "$DUMPBIN"; then : 4505 # Let the user override the test. 4506 else 4507 if test -n "$ac_tool_prefix"; then 4508 for ac_prog in dumpbin "link -dump" 4509 do 4510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513$as_echo_n "checking for $ac_word... " >&6; } 4514if ${ac_cv_prog_DUMPBIN+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test -n "$DUMPBIN"; then 4518 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4519else 4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4527 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4529 break 2 4530 fi 4531done 4532 done 4533IFS=$as_save_IFS 4534 4535fi 4536fi 4537DUMPBIN=$ac_cv_prog_DUMPBIN 4538if test -n "$DUMPBIN"; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4540$as_echo "$DUMPBIN" >&6; } 4541else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544fi 4545 4546 4547 test -n "$DUMPBIN" && break 4548 done 4549fi 4550if test -z "$DUMPBIN"; then 4551 ac_ct_DUMPBIN=$DUMPBIN 4552 for ac_prog in dumpbin "link -dump" 4553do 4554 # Extract the first word of "$ac_prog", so it can be a program name with args. 4555set dummy $ac_prog; ac_word=$2 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4557$as_echo_n "checking for $ac_word... " >&6; } 4558if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560else 4561 if test -n "$ac_ct_DUMPBIN"; then 4562 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4563else 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4571 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4573 break 2 4574 fi 4575done 4576 done 4577IFS=$as_save_IFS 4578 4579fi 4580fi 4581ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4582if test -n "$ac_ct_DUMPBIN"; then 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4584$as_echo "$ac_ct_DUMPBIN" >&6; } 4585else 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4587$as_echo "no" >&6; } 4588fi 4589 4590 4591 test -n "$ac_ct_DUMPBIN" && break 4592done 4593 4594 if test "x$ac_ct_DUMPBIN" = x; then 4595 DUMPBIN=":" 4596 else 4597 case $cross_compiling:$ac_tool_warned in 4598yes:) 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4601ac_tool_warned=yes ;; 4602esac 4603 DUMPBIN=$ac_ct_DUMPBIN 4604 fi 4605fi 4606 4607 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4608 *COFF*) 4609 DUMPBIN="$DUMPBIN -symbols -headers" 4610 ;; 4611 *) 4612 DUMPBIN=: 4613 ;; 4614 esac 4615 fi 4616 4617 if test : != "$DUMPBIN"; then 4618 NM=$DUMPBIN 4619 fi 4620fi 4621test -z "$NM" && NM=nm 4622 4623 4624 4625 4626 4627 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4629$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4630if ${lt_cv_nm_interface+:} false; then : 4631 $as_echo_n "(cached) " >&6 4632else 4633 lt_cv_nm_interface="BSD nm" 4634 echo "int some_variable = 0;" > conftest.$ac_ext 4635 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4636 (eval "$ac_compile" 2>conftest.err) 4637 cat conftest.err >&5 4638 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4639 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4640 cat conftest.err >&5 4641 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4642 cat conftest.out >&5 4643 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4644 lt_cv_nm_interface="MS dumpbin" 4645 fi 4646 rm -f conftest* 4647fi 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4649$as_echo "$lt_cv_nm_interface" >&6; } 4650 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4652$as_echo_n "checking whether ln -s works... " >&6; } 4653LN_S=$as_ln_s 4654if test "$LN_S" = "ln -s"; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4656$as_echo "yes" >&6; } 4657else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4659$as_echo "no, using $LN_S" >&6; } 4660fi 4661 4662# find the maximum length of command line arguments 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4664$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4665if ${lt_cv_sys_max_cmd_len+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 i=0 4669 teststring=ABCD 4670 4671 case $build_os in 4672 msdosdjgpp*) 4673 # On DJGPP, this test can blow up pretty badly due to problems in libc 4674 # (any single argument exceeding 2000 bytes causes a buffer overrun 4675 # during glob expansion). Even if it were fixed, the result of this 4676 # check would be larger than it should be. 4677 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4678 ;; 4679 4680 gnu*) 4681 # Under GNU Hurd, this test is not required because there is 4682 # no limit to the length of command line arguments. 4683 # Libtool will interpret -1 as no limit whatsoever 4684 lt_cv_sys_max_cmd_len=-1; 4685 ;; 4686 4687 cygwin* | mingw* | cegcc*) 4688 # On Win9x/ME, this test blows up -- it succeeds, but takes 4689 # about 5 minutes as the teststring grows exponentially. 4690 # Worse, since 9x/ME are not pre-emptively multitasking, 4691 # you end up with a "frozen" computer, even though with patience 4692 # the test eventually succeeds (with a max line length of 256k). 4693 # Instead, let's just punt: use the minimum linelength reported by 4694 # all of the supported platforms: 8192 (on NT/2K/XP). 4695 lt_cv_sys_max_cmd_len=8192; 4696 ;; 4697 4698 mint*) 4699 # On MiNT this can take a long time and run out of memory. 4700 lt_cv_sys_max_cmd_len=8192; 4701 ;; 4702 4703 amigaos*) 4704 # On AmigaOS with pdksh, this test takes hours, literally. 4705 # So we just punt and use a minimum line length of 8192. 4706 lt_cv_sys_max_cmd_len=8192; 4707 ;; 4708 4709 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4710 # This has been around since 386BSD, at least. Likely further. 4711 if test -x /sbin/sysctl; then 4712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4713 elif test -x /usr/sbin/sysctl; then 4714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4715 else 4716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4717 fi 4718 # And add a safety zone 4719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4721 ;; 4722 4723 interix*) 4724 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4725 lt_cv_sys_max_cmd_len=196608 4726 ;; 4727 4728 os2*) 4729 # The test takes a long time on OS/2. 4730 lt_cv_sys_max_cmd_len=8192 4731 ;; 4732 4733 osf*) 4734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4736 # nice to cause kernel panics so lets avoid the loop below. 4737 # First set a reasonable default. 4738 lt_cv_sys_max_cmd_len=16384 4739 # 4740 if test -x /sbin/sysconfig; then 4741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4742 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4743 esac 4744 fi 4745 ;; 4746 sco3.2v5*) 4747 lt_cv_sys_max_cmd_len=102400 4748 ;; 4749 sysv5* | sco5v6* | sysv4.2uw2*) 4750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4751 if test -n "$kargmax"; then 4752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4753 else 4754 lt_cv_sys_max_cmd_len=32768 4755 fi 4756 ;; 4757 *) 4758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4759 if test -n "$lt_cv_sys_max_cmd_len" && \ 4760 test undefined != "$lt_cv_sys_max_cmd_len"; then 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4763 else 4764 # Make teststring a little bigger before we do anything with it. 4765 # a 1K string should be a reasonable start. 4766 for i in 1 2 3 4 5 6 7 8; do 4767 teststring=$teststring$teststring 4768 done 4769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4770 # If test is not a shell built-in, we'll probably end up computing a 4771 # maximum length that is only half of the actual maximum length, but 4772 # we can't tell. 4773 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4774 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4775 test 17 != "$i" # 1/2 MB should be enough 4776 do 4777 i=`expr $i + 1` 4778 teststring=$teststring$teststring 4779 done 4780 # Only check the string length outside the loop. 4781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4782 teststring= 4783 # Add a significant safety factor because C++ compilers can tack on 4784 # massive amounts of additional arguments before passing them to the 4785 # linker. It appears as though 1/2 is a usable value. 4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4787 fi 4788 ;; 4789 esac 4790 4791fi 4792 4793if test -n "$lt_cv_sys_max_cmd_len"; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4795$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4798$as_echo "none" >&6; } 4799fi 4800max_cmd_len=$lt_cv_sys_max_cmd_len 4801 4802 4803 4804 4805 4806 4807: ${CP="cp -f"} 4808: ${MV="mv -f"} 4809: ${RM="rm -f"} 4810 4811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4812 lt_unset=unset 4813else 4814 lt_unset=false 4815fi 4816 4817 4818 4819 4820 4821# test EBCDIC or ASCII 4822case `echo X|tr X '\101'` in 4823 A) # ASCII based system 4824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4825 lt_SP2NL='tr \040 \012' 4826 lt_NL2SP='tr \015\012 \040\040' 4827 ;; 4828 *) # EBCDIC based system 4829 lt_SP2NL='tr \100 \n' 4830 lt_NL2SP='tr \r\n \100\100' 4831 ;; 4832esac 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4843$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4844if ${lt_cv_to_host_file_cmd+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 case $host in 4848 *-*-mingw* ) 4849 case $build in 4850 *-*-mingw* ) # actually msys 4851 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4852 ;; 4853 *-*-cygwin* ) 4854 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4855 ;; 4856 * ) # otherwise, assume *nix 4857 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4858 ;; 4859 esac 4860 ;; 4861 *-*-cygwin* ) 4862 case $build in 4863 *-*-mingw* ) # actually msys 4864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4865 ;; 4866 *-*-cygwin* ) 4867 lt_cv_to_host_file_cmd=func_convert_file_noop 4868 ;; 4869 * ) # otherwise, assume *nix 4870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4871 ;; 4872 esac 4873 ;; 4874 * ) # unhandled hosts (and "normal" native builds) 4875 lt_cv_to_host_file_cmd=func_convert_file_noop 4876 ;; 4877esac 4878 4879fi 4880 4881to_host_file_cmd=$lt_cv_to_host_file_cmd 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4883$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4884 4885 4886 4887 4888 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4890$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4891if ${lt_cv_to_tool_file_cmd+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 #assume ordinary cross tools, or native build. 4895lt_cv_to_tool_file_cmd=func_convert_file_noop 4896case $host in 4897 *-*-mingw* ) 4898 case $build in 4899 *-*-mingw* ) # actually msys 4900 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4901 ;; 4902 esac 4903 ;; 4904esac 4905 4906fi 4907 4908to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4910$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4911 4912 4913 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4917$as_echo_n "checking for $LD option to reload object files... " >&6; } 4918if ${lt_cv_ld_reload_flag+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 lt_cv_ld_reload_flag='-r' 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4924$as_echo "$lt_cv_ld_reload_flag" >&6; } 4925reload_flag=$lt_cv_ld_reload_flag 4926case $reload_flag in 4927"" | " "*) ;; 4928*) reload_flag=" $reload_flag" ;; 4929esac 4930reload_cmds='$LD$reload_flag -o $output$reload_objs' 4931case $host_os in 4932 cygwin* | mingw* | pw32* | cegcc*) 4933 if test yes != "$GCC"; then 4934 reload_cmds=false 4935 fi 4936 ;; 4937 darwin*) 4938 if test yes = "$GCC"; then 4939 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4940 else 4941 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4942 fi 4943 ;; 4944esac 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954if test -n "$ac_tool_prefix"; then 4955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4956set dummy ${ac_tool_prefix}objdump; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if ${ac_cv_prog_OBJDUMP+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$OBJDUMP"; then 4963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4972 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980fi 4981fi 4982OBJDUMP=$ac_cv_prog_OBJDUMP 4983if test -n "$OBJDUMP"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4985$as_echo "$OBJDUMP" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 4992fi 4993if test -z "$ac_cv_prog_OBJDUMP"; then 4994 ac_ct_OBJDUMP=$OBJDUMP 4995 # Extract the first word of "objdump", so it can be a program name with args. 4996set dummy objdump; ac_word=$2 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4998$as_echo_n "checking for $ac_word... " >&6; } 4999if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 if test -n "$ac_ct_OBJDUMP"; then 5003 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5004else 5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006for as_dir in $PATH 5007do 5008 IFS=$as_save_IFS 5009 test -z "$as_dir" && as_dir=. 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5012 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5014 break 2 5015 fi 5016done 5017 done 5018IFS=$as_save_IFS 5019 5020fi 5021fi 5022ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5023if test -n "$ac_ct_OBJDUMP"; then 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5025$as_echo "$ac_ct_OBJDUMP" >&6; } 5026else 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5028$as_echo "no" >&6; } 5029fi 5030 5031 if test "x$ac_ct_OBJDUMP" = x; then 5032 OBJDUMP="false" 5033 else 5034 case $cross_compiling:$ac_tool_warned in 5035yes:) 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5038ac_tool_warned=yes ;; 5039esac 5040 OBJDUMP=$ac_ct_OBJDUMP 5041 fi 5042else 5043 OBJDUMP="$ac_cv_prog_OBJDUMP" 5044fi 5045 5046test -z "$OBJDUMP" && OBJDUMP=objdump 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5057$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5058if ${lt_cv_deplibs_check_method+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060else 5061 lt_cv_file_magic_cmd='$MAGIC_CMD' 5062lt_cv_file_magic_test_file= 5063lt_cv_deplibs_check_method='unknown' 5064# Need to set the preceding variable on all platforms that support 5065# interlibrary dependencies. 5066# 'none' -- dependencies not supported. 5067# 'unknown' -- same as none, but documents that we really don't know. 5068# 'pass_all' -- all dependencies passed with no checks. 5069# 'test_compile' -- check by making test program. 5070# 'file_magic [[regex]]' -- check by looking for files in library path 5071# that responds to the $file_magic_cmd with a given extended regex. 5072# If you have 'file' or equivalent on your system and you're not sure 5073# whether 'pass_all' will *always* work, you probably want this one. 5074 5075case $host_os in 5076aix[4-9]*) 5077 lt_cv_deplibs_check_method=pass_all 5078 ;; 5079 5080beos*) 5081 lt_cv_deplibs_check_method=pass_all 5082 ;; 5083 5084bsdi[45]*) 5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5086 lt_cv_file_magic_cmd='/usr/bin/file -L' 5087 lt_cv_file_magic_test_file=/shlib/libc.so 5088 ;; 5089 5090cygwin*) 5091 # func_win32_libid is a shell function defined in ltmain.sh 5092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5093 lt_cv_file_magic_cmd='func_win32_libid' 5094 ;; 5095 5096mingw* | pw32*) 5097 # Base MSYS/MinGW do not provide the 'file' command needed by 5098 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5099 # unless we find 'file', for example because we are cross-compiling. 5100 if ( file / ) >/dev/null 2>&1; then 5101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5102 lt_cv_file_magic_cmd='func_win32_libid' 5103 else 5104 # Keep this pattern in sync with the one in func_win32_libid. 5105 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5106 lt_cv_file_magic_cmd='$OBJDUMP -f' 5107 fi 5108 ;; 5109 5110cegcc*) 5111 # use the weaker test based on 'objdump'. See mingw*. 5112 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5113 lt_cv_file_magic_cmd='$OBJDUMP -f' 5114 ;; 5115 5116darwin* | rhapsody*) 5117 lt_cv_deplibs_check_method=pass_all 5118 ;; 5119 5120freebsd* | dragonfly*) 5121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5122 case $host_cpu in 5123 i*86 ) 5124 # Not sure whether the presence of OpenBSD here was a mistake. 5125 # Let's accept both of them until this is cleared up. 5126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5127 lt_cv_file_magic_cmd=/usr/bin/file 5128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5129 ;; 5130 esac 5131 else 5132 lt_cv_deplibs_check_method=pass_all 5133 fi 5134 ;; 5135 5136haiku*) 5137 lt_cv_deplibs_check_method=pass_all 5138 ;; 5139 5140hpux10.20* | hpux11*) 5141 lt_cv_file_magic_cmd=/usr/bin/file 5142 case $host_cpu in 5143 ia64*) 5144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5146 ;; 5147 hppa*64*) 5148 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]' 5149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5150 ;; 5151 *) 5152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5153 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5154 ;; 5155 esac 5156 ;; 5157 5158interix[3-9]*) 5159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5161 ;; 5162 5163irix5* | irix6* | nonstopux*) 5164 case $LD in 5165 *-32|*"-32 ") libmagic=32-bit;; 5166 *-n32|*"-n32 ") libmagic=N32;; 5167 *-64|*"-64 ") libmagic=64-bit;; 5168 *) libmagic=never-match;; 5169 esac 5170 lt_cv_deplibs_check_method=pass_all 5171 ;; 5172 5173# This must be glibc/ELF. 5174linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5175 lt_cv_deplibs_check_method=pass_all 5176 ;; 5177 5178netbsd*) 5179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5181 else 5182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5183 fi 5184 ;; 5185 5186newos6*) 5187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5188 lt_cv_file_magic_cmd=/usr/bin/file 5189 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5190 ;; 5191 5192*nto* | *qnx*) 5193 lt_cv_deplibs_check_method=pass_all 5194 ;; 5195 5196openbsd* | bitrig*) 5197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5199 else 5200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5201 fi 5202 ;; 5203 5204osf3* | osf4* | osf5*) 5205 lt_cv_deplibs_check_method=pass_all 5206 ;; 5207 5208rdos*) 5209 lt_cv_deplibs_check_method=pass_all 5210 ;; 5211 5212solaris*) 5213 lt_cv_deplibs_check_method=pass_all 5214 ;; 5215 5216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5217 lt_cv_deplibs_check_method=pass_all 5218 ;; 5219 5220sysv4 | sysv4.3*) 5221 case $host_vendor in 5222 motorola) 5223 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]' 5224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5225 ;; 5226 ncr) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 sequent) 5230 lt_cv_file_magic_cmd='/bin/file' 5231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5232 ;; 5233 sni) 5234 lt_cv_file_magic_cmd='/bin/file' 5235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5236 lt_cv_file_magic_test_file=/lib/libc.so 5237 ;; 5238 siemens) 5239 lt_cv_deplibs_check_method=pass_all 5240 ;; 5241 pc) 5242 lt_cv_deplibs_check_method=pass_all 5243 ;; 5244 esac 5245 ;; 5246 5247tpf*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250os2*) 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253esac 5254 5255fi 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5257$as_echo "$lt_cv_deplibs_check_method" >&6; } 5258 5259file_magic_glob= 5260want_nocaseglob=no 5261if test "$build" = "$host"; then 5262 case $host_os in 5263 mingw* | pw32*) 5264 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5265 want_nocaseglob=yes 5266 else 5267 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5268 fi 5269 ;; 5270 esac 5271fi 5272 5273file_magic_cmd=$lt_cv_file_magic_cmd 5274deplibs_check_method=$lt_cv_deplibs_check_method 5275test -z "$deplibs_check_method" && deplibs_check_method=unknown 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298if test -n "$ac_tool_prefix"; then 5299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5300set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5302$as_echo_n "checking for $ac_word... " >&6; } 5303if ${ac_cv_prog_DLLTOOL+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 if test -n "$DLLTOOL"; then 5307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5308else 5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5310for as_dir in $PATH 5311do 5312 IFS=$as_save_IFS 5313 test -z "$as_dir" && as_dir=. 5314 for ac_exec_ext in '' $ac_executable_extensions; do 5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5318 break 2 5319 fi 5320done 5321 done 5322IFS=$as_save_IFS 5323 5324fi 5325fi 5326DLLTOOL=$ac_cv_prog_DLLTOOL 5327if test -n "$DLLTOOL"; then 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5329$as_echo "$DLLTOOL" >&6; } 5330else 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5332$as_echo "no" >&6; } 5333fi 5334 5335 5336fi 5337if test -z "$ac_cv_prog_DLLTOOL"; then 5338 ac_ct_DLLTOOL=$DLLTOOL 5339 # Extract the first word of "dlltool", so it can be a program name with args. 5340set dummy dlltool; ac_word=$2 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5342$as_echo_n "checking for $ac_word... " >&6; } 5343if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5344 $as_echo_n "(cached) " >&6 5345else 5346 if test -n "$ac_ct_DLLTOOL"; then 5347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5348else 5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5350for as_dir in $PATH 5351do 5352 IFS=$as_save_IFS 5353 test -z "$as_dir" && as_dir=. 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5356 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5358 break 2 5359 fi 5360done 5361 done 5362IFS=$as_save_IFS 5363 5364fi 5365fi 5366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5367if test -n "$ac_ct_DLLTOOL"; then 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5369$as_echo "$ac_ct_DLLTOOL" >&6; } 5370else 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5372$as_echo "no" >&6; } 5373fi 5374 5375 if test "x$ac_ct_DLLTOOL" = x; then 5376 DLLTOOL="false" 5377 else 5378 case $cross_compiling:$ac_tool_warned in 5379yes:) 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5382ac_tool_warned=yes ;; 5383esac 5384 DLLTOOL=$ac_ct_DLLTOOL 5385 fi 5386else 5387 DLLTOOL="$ac_cv_prog_DLLTOOL" 5388fi 5389 5390test -z "$DLLTOOL" && DLLTOOL=dlltool 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5402$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5403if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 lt_cv_sharedlib_from_linklib_cmd='unknown' 5407 5408case $host_os in 5409cygwin* | mingw* | pw32* | cegcc*) 5410 # two different shell functions defined in ltmain.sh; 5411 # decide which one to use based on capabilities of $DLLTOOL 5412 case `$DLLTOOL --help 2>&1` in 5413 *--identify-strict*) 5414 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5415 ;; 5416 *) 5417 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5418 ;; 5419 esac 5420 ;; 5421*) 5422 # fallback: assume linklib IS sharedlib 5423 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5424 ;; 5425esac 5426 5427fi 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5429$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5430sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5431test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5432 5433 5434 5435 5436 5437 5438 5439 5440if test -n "$ac_tool_prefix"; then 5441 for ac_prog in ar 5442 do 5443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5444set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5446$as_echo_n "checking for $ac_word... " >&6; } 5447if ${ac_cv_prog_AR+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 if test -n "$AR"; then 5451 ac_cv_prog_AR="$AR" # Let the user override the test. 5452else 5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5454for as_dir in $PATH 5455do 5456 IFS=$as_save_IFS 5457 test -z "$as_dir" && as_dir=. 5458 for ac_exec_ext in '' $ac_executable_extensions; do 5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5460 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5462 break 2 5463 fi 5464done 5465 done 5466IFS=$as_save_IFS 5467 5468fi 5469fi 5470AR=$ac_cv_prog_AR 5471if test -n "$AR"; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5473$as_echo "$AR" >&6; } 5474else 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5476$as_echo "no" >&6; } 5477fi 5478 5479 5480 test -n "$AR" && break 5481 done 5482fi 5483if test -z "$AR"; then 5484 ac_ct_AR=$AR 5485 for ac_prog in ar 5486do 5487 # Extract the first word of "$ac_prog", so it can be a program name with args. 5488set dummy $ac_prog; ac_word=$2 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5490$as_echo_n "checking for $ac_word... " >&6; } 5491if ${ac_cv_prog_ac_ct_AR+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 if test -n "$ac_ct_AR"; then 5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5496else 5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498for as_dir in $PATH 5499do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5504 ac_cv_prog_ac_ct_AR="$ac_prog" 5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509 done 5510IFS=$as_save_IFS 5511 5512fi 5513fi 5514ac_ct_AR=$ac_cv_prog_ac_ct_AR 5515if test -n "$ac_ct_AR"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5517$as_echo "$ac_ct_AR" >&6; } 5518else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523 5524 test -n "$ac_ct_AR" && break 5525done 5526 5527 if test "x$ac_ct_AR" = x; then 5528 AR="false" 5529 else 5530 case $cross_compiling:$ac_tool_warned in 5531yes:) 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5534ac_tool_warned=yes ;; 5535esac 5536 AR=$ac_ct_AR 5537 fi 5538fi 5539 5540: ${AR=ar} 5541: ${AR_FLAGS=cru} 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5554$as_echo_n "checking for archiver @FILE support... " >&6; } 5555if ${lt_cv_ar_at_file+:} false; then : 5556 $as_echo_n "(cached) " >&6 5557else 5558 lt_cv_ar_at_file=no 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561 5562int 5563main () 5564{ 5565 5566 ; 5567 return 0; 5568} 5569_ACEOF 5570if ac_fn_c_try_compile "$LINENO"; then : 5571 echo conftest.$ac_objext > conftest.lst 5572 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5574 (eval $lt_ar_try) 2>&5 5575 ac_status=$? 5576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5577 test $ac_status = 0; } 5578 if test 0 -eq "$ac_status"; then 5579 # Ensure the archiver fails upon bogus file names. 5580 rm -f conftest.$ac_objext libconftest.a 5581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5582 (eval $lt_ar_try) 2>&5 5583 ac_status=$? 5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5585 test $ac_status = 0; } 5586 if test 0 -ne "$ac_status"; then 5587 lt_cv_ar_at_file=@ 5588 fi 5589 fi 5590 rm -f conftest.* libconftest.a 5591 5592fi 5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5594 5595fi 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5597$as_echo "$lt_cv_ar_at_file" >&6; } 5598 5599if test no = "$lt_cv_ar_at_file"; then 5600 archiver_list_spec= 5601else 5602 archiver_list_spec=$lt_cv_ar_at_file 5603fi 5604 5605 5606 5607 5608 5609 5610 5611if test -n "$ac_tool_prefix"; then 5612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5613set dummy ${ac_tool_prefix}strip; ac_word=$2 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615$as_echo_n "checking for $ac_word... " >&6; } 5616if ${ac_cv_prog_STRIP+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 if test -n "$STRIP"; then 5620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5621else 5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623for as_dir in $PATH 5624do 5625 IFS=$as_save_IFS 5626 test -z "$as_dir" && as_dir=. 5627 for ac_exec_ext in '' $ac_executable_extensions; do 5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5629 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5631 break 2 5632 fi 5633done 5634 done 5635IFS=$as_save_IFS 5636 5637fi 5638fi 5639STRIP=$ac_cv_prog_STRIP 5640if test -n "$STRIP"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5642$as_echo "$STRIP" >&6; } 5643else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645$as_echo "no" >&6; } 5646fi 5647 5648 5649fi 5650if test -z "$ac_cv_prog_STRIP"; then 5651 ac_ct_STRIP=$STRIP 5652 # Extract the first word of "strip", so it can be a program name with args. 5653set dummy strip; ac_word=$2 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5655$as_echo_n "checking for $ac_word... " >&6; } 5656if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 if test -n "$ac_ct_STRIP"; then 5660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5661else 5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5663for as_dir in $PATH 5664do 5665 IFS=$as_save_IFS 5666 test -z "$as_dir" && as_dir=. 5667 for ac_exec_ext in '' $ac_executable_extensions; do 5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5669 ac_cv_prog_ac_ct_STRIP="strip" 5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5671 break 2 5672 fi 5673done 5674 done 5675IFS=$as_save_IFS 5676 5677fi 5678fi 5679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5680if test -n "$ac_ct_STRIP"; then 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5682$as_echo "$ac_ct_STRIP" >&6; } 5683else 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5685$as_echo "no" >&6; } 5686fi 5687 5688 if test "x$ac_ct_STRIP" = x; then 5689 STRIP=":" 5690 else 5691 case $cross_compiling:$ac_tool_warned in 5692yes:) 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5695ac_tool_warned=yes ;; 5696esac 5697 STRIP=$ac_ct_STRIP 5698 fi 5699else 5700 STRIP="$ac_cv_prog_STRIP" 5701fi 5702 5703test -z "$STRIP" && STRIP=: 5704 5705 5706 5707 5708 5709 5710if test -n "$ac_tool_prefix"; then 5711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5712set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714$as_echo_n "checking for $ac_word... " >&6; } 5715if ${ac_cv_prog_RANLIB+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 if test -n "$RANLIB"; then 5719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5720else 5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722for as_dir in $PATH 5723do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5730 break 2 5731 fi 5732done 5733 done 5734IFS=$as_save_IFS 5735 5736fi 5737fi 5738RANLIB=$ac_cv_prog_RANLIB 5739if test -n "$RANLIB"; then 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5741$as_echo "$RANLIB" >&6; } 5742else 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5744$as_echo "no" >&6; } 5745fi 5746 5747 5748fi 5749if test -z "$ac_cv_prog_RANLIB"; then 5750 ac_ct_RANLIB=$RANLIB 5751 # Extract the first word of "ranlib", so it can be a program name with args. 5752set dummy ranlib; ac_word=$2 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5754$as_echo_n "checking for $ac_word... " >&6; } 5755if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 if test -n "$ac_ct_RANLIB"; then 5759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5760else 5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5762for as_dir in $PATH 5763do 5764 IFS=$as_save_IFS 5765 test -z "$as_dir" && as_dir=. 5766 for ac_exec_ext in '' $ac_executable_extensions; do 5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5768 ac_cv_prog_ac_ct_RANLIB="ranlib" 5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5770 break 2 5771 fi 5772done 5773 done 5774IFS=$as_save_IFS 5775 5776fi 5777fi 5778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5779if test -n "$ac_ct_RANLIB"; then 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5781$as_echo "$ac_ct_RANLIB" >&6; } 5782else 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5784$as_echo "no" >&6; } 5785fi 5786 5787 if test "x$ac_ct_RANLIB" = x; then 5788 RANLIB=":" 5789 else 5790 case $cross_compiling:$ac_tool_warned in 5791yes:) 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5794ac_tool_warned=yes ;; 5795esac 5796 RANLIB=$ac_ct_RANLIB 5797 fi 5798else 5799 RANLIB="$ac_cv_prog_RANLIB" 5800fi 5801 5802test -z "$RANLIB" && RANLIB=: 5803 5804 5805 5806 5807 5808 5809# Determine commands to create old-style static archives. 5810old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5811old_postinstall_cmds='chmod 644 $oldlib' 5812old_postuninstall_cmds= 5813 5814if test -n "$RANLIB"; then 5815 case $host_os in 5816 bitrig* | openbsd*) 5817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5818 ;; 5819 *) 5820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5821 ;; 5822 esac 5823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5824fi 5825 5826case $host_os in 5827 darwin*) 5828 lock_old_archive_extraction=yes ;; 5829 *) 5830 lock_old_archive_extraction=no ;; 5831esac 5832 5833 5834 5835 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# If no C compiler was specified, use CC. 5872LTCC=${LTCC-"$CC"} 5873 5874# If no C compiler flags were specified, use CFLAGS. 5875LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5876 5877# Allow CC to be a program name with arguments. 5878compiler=$CC 5879 5880 5881# Check for command to grab the raw symbol name followed by C symbol from nm. 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5883$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5884if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 5888# These are sane defaults that work on at least a few old systems. 5889# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5890 5891# Character class describing NM global symbol codes. 5892symcode='[BCDEGRST]' 5893 5894# Regexp to match symbols that can be accessed directly from C. 5895sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5896 5897# Define system-specific variables. 5898case $host_os in 5899aix*) 5900 symcode='[BCDT]' 5901 ;; 5902cygwin* | mingw* | pw32* | cegcc*) 5903 symcode='[ABCDGISTW]' 5904 ;; 5905hpux*) 5906 if test ia64 = "$host_cpu"; then 5907 symcode='[ABCDEGRST]' 5908 fi 5909 ;; 5910irix* | nonstopux*) 5911 symcode='[BCDEGRST]' 5912 ;; 5913osf*) 5914 symcode='[BCDEGQRST]' 5915 ;; 5916solaris*) 5917 symcode='[BDRT]' 5918 ;; 5919sco3.2v5*) 5920 symcode='[DT]' 5921 ;; 5922sysv4.2uw2*) 5923 symcode='[DT]' 5924 ;; 5925sysv5* | sco5v6* | unixware* | OpenUNIX*) 5926 symcode='[ABDT]' 5927 ;; 5928sysv4) 5929 symcode='[DFNSTU]' 5930 ;; 5931esac 5932 5933# If we're using GNU nm, then use its standard symbol codes. 5934case `$NM -V 2>&1` in 5935*GNU* | *'with BFD'*) 5936 symcode='[ABCDGIRSTW]' ;; 5937esac 5938 5939if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5940 # Gets list of data symbols to import. 5941 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5942 # Adjust the below global symbol transforms to fixup imported variables. 5943 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5944 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5945 lt_c_name_lib_hook="\ 5946 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5947 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5948else 5949 # Disable hooks by default. 5950 lt_cv_sys_global_symbol_to_import= 5951 lt_cdecl_hook= 5952 lt_c_name_hook= 5953 lt_c_name_lib_hook= 5954fi 5955 5956# Transform an extracted symbol line into a proper C declaration. 5957# Some systems (esp. on ia64) link data and code symbols differently, 5958# so use this general approach. 5959lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5960$lt_cdecl_hook\ 5961" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5962" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5963 5964# Transform an extracted symbol line into symbol name and symbol address 5965lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5966$lt_c_name_hook\ 5967" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5968" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5969 5970# Transform an extracted symbol line into symbol name with lib prefix and 5971# symbol address. 5972lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5973$lt_c_name_lib_hook\ 5974" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5975" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5976" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5977 5978# Handle CRLF in mingw tool chain 5979opt_cr= 5980case $build_os in 5981mingw*) 5982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5983 ;; 5984esac 5985 5986# Try without a prefix underscore, then with it. 5987for ac_symprfx in "" "_"; do 5988 5989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5990 symxfrm="\\1 $ac_symprfx\\2 \\2" 5991 5992 # Write the raw and C identifiers. 5993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5994 # Fake it for dumpbin and say T for any non-static function, 5995 # D for any global variable and I for any imported variable. 5996 # Also find C++ and __fastcall symbols from MSVC++, 5997 # which start with @ or ?. 5998 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5999" {last_section=section; section=\$ 3};"\ 6000" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6001" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6002" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6003" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6004" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6005" \$ 0!~/External *\|/{next};"\ 6006" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6007" {if(hide[section]) next};"\ 6008" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6009" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6010" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6011" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6012" ' prfx=^$ac_symprfx" 6013 else 6014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6015 fi 6016 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6017 6018 # Check to see that the pipe works correctly. 6019 pipe_works=no 6020 6021 rm -f conftest* 6022 cat > conftest.$ac_ext <<_LT_EOF 6023#ifdef __cplusplus 6024extern "C" { 6025#endif 6026char nm_test_var; 6027void nm_test_func(void); 6028void nm_test_func(void){} 6029#ifdef __cplusplus 6030} 6031#endif 6032int main(){nm_test_var='a';nm_test_func();return(0);} 6033_LT_EOF 6034 6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6036 (eval $ac_compile) 2>&5 6037 ac_status=$? 6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6039 test $ac_status = 0; }; then 6040 # Now try to grab the symbols. 6041 nlist=conftest.nm 6042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6043 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6044 ac_status=$? 6045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6046 test $ac_status = 0; } && test -s "$nlist"; then 6047 # Try sorting and uniquifying the output. 6048 if sort "$nlist" | uniq > "$nlist"T; then 6049 mv -f "$nlist"T "$nlist" 6050 else 6051 rm -f "$nlist"T 6052 fi 6053 6054 # Make sure that we snagged all the symbols we need. 6055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6057 cat <<_LT_EOF > conftest.$ac_ext 6058/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6059#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6060/* DATA imports from DLLs on WIN32 can't be const, because runtime 6061 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6062# define LT_DLSYM_CONST 6063#elif defined __osf__ 6064/* This system does not cope well with relocations in const data. */ 6065# define LT_DLSYM_CONST 6066#else 6067# define LT_DLSYM_CONST const 6068#endif 6069 6070#ifdef __cplusplus 6071extern "C" { 6072#endif 6073 6074_LT_EOF 6075 # Now generate the symbol file. 6076 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6077 6078 cat <<_LT_EOF >> conftest.$ac_ext 6079 6080/* The mapping between symbol names and symbols. */ 6081LT_DLSYM_CONST struct { 6082 const char *name; 6083 void *address; 6084} 6085lt__PROGRAM__LTX_preloaded_symbols[] = 6086{ 6087 { "@PROGRAM@", (void *) 0 }, 6088_LT_EOF 6089 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6090 cat <<\_LT_EOF >> conftest.$ac_ext 6091 {0, (void *) 0} 6092}; 6093 6094/* This works around a problem in FreeBSD linker */ 6095#ifdef FREEBSD_WORKAROUND 6096static const void *lt_preloaded_setup() { 6097 return lt__PROGRAM__LTX_preloaded_symbols; 6098} 6099#endif 6100 6101#ifdef __cplusplus 6102} 6103#endif 6104_LT_EOF 6105 # Now try linking the two files. 6106 mv conftest.$ac_objext conftstm.$ac_objext 6107 lt_globsym_save_LIBS=$LIBS 6108 lt_globsym_save_CFLAGS=$CFLAGS 6109 LIBS=conftstm.$ac_objext 6110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6112 (eval $ac_link) 2>&5 6113 ac_status=$? 6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6115 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6116 pipe_works=yes 6117 fi 6118 LIBS=$lt_globsym_save_LIBS 6119 CFLAGS=$lt_globsym_save_CFLAGS 6120 else 6121 echo "cannot find nm_test_func in $nlist" >&5 6122 fi 6123 else 6124 echo "cannot find nm_test_var in $nlist" >&5 6125 fi 6126 else 6127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6128 fi 6129 else 6130 echo "$progname: failed program was:" >&5 6131 cat conftest.$ac_ext >&5 6132 fi 6133 rm -rf conftest* conftst* 6134 6135 # Do not use the global_symbol_pipe unless it works. 6136 if test yes = "$pipe_works"; then 6137 break 6138 else 6139 lt_cv_sys_global_symbol_pipe= 6140 fi 6141done 6142 6143fi 6144 6145if test -z "$lt_cv_sys_global_symbol_pipe"; then 6146 lt_cv_sys_global_symbol_to_cdecl= 6147fi 6148if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6150$as_echo "failed" >&6; } 6151else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6153$as_echo "ok" >&6; } 6154fi 6155 6156# Response file support. 6157if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6158 nm_file_list_spec='@' 6159elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6160 nm_file_list_spec='@' 6161fi 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6200$as_echo_n "checking for sysroot... " >&6; } 6201 6202# Check whether --with-sysroot was given. 6203if test "${with_sysroot+set}" = set; then : 6204 withval=$with_sysroot; 6205else 6206 with_sysroot=no 6207fi 6208 6209 6210lt_sysroot= 6211case $with_sysroot in #( 6212 yes) 6213 if test yes = "$GCC"; then 6214 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6215 fi 6216 ;; #( 6217 /*) 6218 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6219 ;; #( 6220 no|'') 6221 ;; #( 6222 *) 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6224$as_echo "$with_sysroot" >&6; } 6225 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6226 ;; 6227esac 6228 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6230$as_echo "${lt_sysroot:-no}" >&6; } 6231 6232 6233 6234 6235 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6237$as_echo_n "checking for a working dd... " >&6; } 6238if ${ac_cv_path_lt_DD+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 printf 0123456789abcdef0123456789abcdef >conftest.i 6242cat conftest.i conftest.i >conftest2.i 6243: ${lt_DD:=$DD} 6244if test -z "$lt_DD"; then 6245 ac_path_lt_DD_found=false 6246 # Loop through the user's path and test for each of PROGNAME-LIST 6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_prog in dd; do 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6255 as_fn_executable_p "$ac_path_lt_DD" || continue 6256if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6257 cmp -s conftest.i conftest.out \ 6258 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6259fi 6260 $ac_path_lt_DD_found && break 3 6261 done 6262 done 6263 done 6264IFS=$as_save_IFS 6265 if test -z "$ac_cv_path_lt_DD"; then 6266 : 6267 fi 6268else 6269 ac_cv_path_lt_DD=$lt_DD 6270fi 6271 6272rm -f conftest.i conftest2.i conftest.out 6273fi 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6275$as_echo "$ac_cv_path_lt_DD" >&6; } 6276 6277 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6279$as_echo_n "checking how to truncate binary pipes... " >&6; } 6280if ${lt_cv_truncate_bin+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 printf 0123456789abcdef0123456789abcdef >conftest.i 6284cat conftest.i conftest.i >conftest2.i 6285lt_cv_truncate_bin= 6286if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6287 cmp -s conftest.i conftest.out \ 6288 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6289fi 6290rm -f conftest.i conftest2.i conftest.out 6291test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6292fi 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6294$as_echo "$lt_cv_truncate_bin" >&6; } 6295 6296 6297 6298 6299 6300 6301 6302# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6303func_cc_basename () 6304{ 6305 for cc_temp in $*""; do 6306 case $cc_temp in 6307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6309 \-*) ;; 6310 *) break;; 6311 esac 6312 done 6313 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6314} 6315 6316# Check whether --enable-libtool-lock was given. 6317if test "${enable_libtool_lock+set}" = set; then : 6318 enableval=$enable_libtool_lock; 6319fi 6320 6321test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6322 6323# Some flags need to be propagated to the compiler or linker for good 6324# libtool support. 6325case $host in 6326ia64-*-hpux*) 6327 # Find out what ABI is being produced by ac_compile, and set mode 6328 # options accordingly. 6329 echo 'int i;' > conftest.$ac_ext 6330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6331 (eval $ac_compile) 2>&5 6332 ac_status=$? 6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6334 test $ac_status = 0; }; then 6335 case `/usr/bin/file conftest.$ac_objext` in 6336 *ELF-32*) 6337 HPUX_IA64_MODE=32 6338 ;; 6339 *ELF-64*) 6340 HPUX_IA64_MODE=64 6341 ;; 6342 esac 6343 fi 6344 rm -rf conftest* 6345 ;; 6346*-*-irix6*) 6347 # Find out what ABI is being produced by ac_compile, and set linker 6348 # options accordingly. 6349 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6351 (eval $ac_compile) 2>&5 6352 ac_status=$? 6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6354 test $ac_status = 0; }; then 6355 if test yes = "$lt_cv_prog_gnu_ld"; then 6356 case `/usr/bin/file conftest.$ac_objext` in 6357 *32-bit*) 6358 LD="${LD-ld} -melf32bsmip" 6359 ;; 6360 *N32*) 6361 LD="${LD-ld} -melf32bmipn32" 6362 ;; 6363 *64-bit*) 6364 LD="${LD-ld} -melf64bmip" 6365 ;; 6366 esac 6367 else 6368 case `/usr/bin/file conftest.$ac_objext` in 6369 *32-bit*) 6370 LD="${LD-ld} -32" 6371 ;; 6372 *N32*) 6373 LD="${LD-ld} -n32" 6374 ;; 6375 *64-bit*) 6376 LD="${LD-ld} -64" 6377 ;; 6378 esac 6379 fi 6380 fi 6381 rm -rf conftest* 6382 ;; 6383 6384mips64*-*linux*) 6385 # Find out what ABI is being produced by ac_compile, and set linker 6386 # options accordingly. 6387 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6389 (eval $ac_compile) 2>&5 6390 ac_status=$? 6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6392 test $ac_status = 0; }; then 6393 emul=elf 6394 case `/usr/bin/file conftest.$ac_objext` in 6395 *32-bit*) 6396 emul="${emul}32" 6397 ;; 6398 *64-bit*) 6399 emul="${emul}64" 6400 ;; 6401 esac 6402 case `/usr/bin/file conftest.$ac_objext` in 6403 *MSB*) 6404 emul="${emul}btsmip" 6405 ;; 6406 *LSB*) 6407 emul="${emul}ltsmip" 6408 ;; 6409 esac 6410 case `/usr/bin/file conftest.$ac_objext` in 6411 *N32*) 6412 emul="${emul}n32" 6413 ;; 6414 esac 6415 LD="${LD-ld} -m $emul" 6416 fi 6417 rm -rf conftest* 6418 ;; 6419 6420x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6421s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6422 # Find out what ABI is being produced by ac_compile, and set linker 6423 # options accordingly. Note that the listed cases only cover the 6424 # situations where additional linker options are needed (such as when 6425 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6426 # vice versa); the common cases where no linker options are needed do 6427 # not appear in the list. 6428 echo 'int i;' > conftest.$ac_ext 6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6430 (eval $ac_compile) 2>&5 6431 ac_status=$? 6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6433 test $ac_status = 0; }; then 6434 case `/usr/bin/file conftest.o` in 6435 *32-bit*) 6436 case $host in 6437 x86_64-*kfreebsd*-gnu) 6438 LD="${LD-ld} -m elf_i386_fbsd" 6439 ;; 6440 x86_64-*linux*) 6441 case `/usr/bin/file conftest.o` in 6442 *x86-64*) 6443 LD="${LD-ld} -m elf32_x86_64" 6444 ;; 6445 *) 6446 LD="${LD-ld} -m elf_i386" 6447 ;; 6448 esac 6449 ;; 6450 powerpc64le-*linux*) 6451 LD="${LD-ld} -m elf32lppclinux" 6452 ;; 6453 powerpc64-*linux*) 6454 LD="${LD-ld} -m elf32ppclinux" 6455 ;; 6456 s390x-*linux*) 6457 LD="${LD-ld} -m elf_s390" 6458 ;; 6459 sparc64-*linux*) 6460 LD="${LD-ld} -m elf32_sparc" 6461 ;; 6462 esac 6463 ;; 6464 *64-bit*) 6465 case $host in 6466 x86_64-*kfreebsd*-gnu) 6467 LD="${LD-ld} -m elf_x86_64_fbsd" 6468 ;; 6469 x86_64-*linux*) 6470 LD="${LD-ld} -m elf_x86_64" 6471 ;; 6472 powerpcle-*linux*) 6473 LD="${LD-ld} -m elf64lppc" 6474 ;; 6475 powerpc-*linux*) 6476 LD="${LD-ld} -m elf64ppc" 6477 ;; 6478 s390*-*linux*|s390*-*tpf*) 6479 LD="${LD-ld} -m elf64_s390" 6480 ;; 6481 sparc*-*linux*) 6482 LD="${LD-ld} -m elf64_sparc" 6483 ;; 6484 esac 6485 ;; 6486 esac 6487 fi 6488 rm -rf conftest* 6489 ;; 6490 6491*-*-sco3.2v5*) 6492 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6493 SAVE_CFLAGS=$CFLAGS 6494 CFLAGS="$CFLAGS -belf" 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6496$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6497if ${lt_cv_cc_needs_belf+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 ac_ext=c 6501ac_cpp='$CPP $CPPFLAGS' 6502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6504ac_compiler_gnu=$ac_cv_c_compiler_gnu 6505 6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6507/* end confdefs.h. */ 6508 6509int 6510main () 6511{ 6512 6513 ; 6514 return 0; 6515} 6516_ACEOF 6517if ac_fn_c_try_link "$LINENO"; then : 6518 lt_cv_cc_needs_belf=yes 6519else 6520 lt_cv_cc_needs_belf=no 6521fi 6522rm -f core conftest.err conftest.$ac_objext \ 6523 conftest$ac_exeext conftest.$ac_ext 6524 ac_ext=c 6525ac_cpp='$CPP $CPPFLAGS' 6526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6528ac_compiler_gnu=$ac_cv_c_compiler_gnu 6529 6530fi 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6532$as_echo "$lt_cv_cc_needs_belf" >&6; } 6533 if test yes != "$lt_cv_cc_needs_belf"; then 6534 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6535 CFLAGS=$SAVE_CFLAGS 6536 fi 6537 ;; 6538*-*solaris*) 6539 # Find out what ABI is being produced by ac_compile, and set linker 6540 # options accordingly. 6541 echo 'int i;' > conftest.$ac_ext 6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6543 (eval $ac_compile) 2>&5 6544 ac_status=$? 6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6546 test $ac_status = 0; }; then 6547 case `/usr/bin/file conftest.o` in 6548 *64-bit*) 6549 case $lt_cv_prog_gnu_ld in 6550 yes*) 6551 case $host in 6552 i?86-*-solaris*|x86_64-*-solaris*) 6553 LD="${LD-ld} -m elf_x86_64" 6554 ;; 6555 sparc*-*-solaris*) 6556 LD="${LD-ld} -m elf64_sparc" 6557 ;; 6558 esac 6559 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6560 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6561 LD=${LD-ld}_sol2 6562 fi 6563 ;; 6564 *) 6565 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6566 LD="${LD-ld} -64" 6567 fi 6568 ;; 6569 esac 6570 ;; 6571 esac 6572 fi 6573 rm -rf conftest* 6574 ;; 6575esac 6576 6577need_locks=$enable_libtool_lock 6578 6579if test -n "$ac_tool_prefix"; then 6580 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6581set dummy ${ac_tool_prefix}mt; ac_word=$2 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6583$as_echo_n "checking for $ac_word... " >&6; } 6584if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6585 $as_echo_n "(cached) " >&6 6586else 6587 if test -n "$MANIFEST_TOOL"; then 6588 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6589else 6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6591for as_dir in $PATH 6592do 6593 IFS=$as_save_IFS 6594 test -z "$as_dir" && as_dir=. 6595 for ac_exec_ext in '' $ac_executable_extensions; do 6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6597 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6599 break 2 6600 fi 6601done 6602 done 6603IFS=$as_save_IFS 6604 6605fi 6606fi 6607MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6608if test -n "$MANIFEST_TOOL"; then 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6610$as_echo "$MANIFEST_TOOL" >&6; } 6611else 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6613$as_echo "no" >&6; } 6614fi 6615 6616 6617fi 6618if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6619 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6620 # Extract the first word of "mt", so it can be a program name with args. 6621set dummy mt; ac_word=$2 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6623$as_echo_n "checking for $ac_word... " >&6; } 6624if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626else 6627 if test -n "$ac_ct_MANIFEST_TOOL"; then 6628 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6637 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642 done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6648if test -n "$ac_ct_MANIFEST_TOOL"; then 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6650$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6651else 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6653$as_echo "no" >&6; } 6654fi 6655 6656 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6657 MANIFEST_TOOL=":" 6658 else 6659 case $cross_compiling:$ac_tool_warned in 6660yes:) 6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6663ac_tool_warned=yes ;; 6664esac 6665 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6666 fi 6667else 6668 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6669fi 6670 6671test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6673$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6674if ${lt_cv_path_mainfest_tool+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 lt_cv_path_mainfest_tool=no 6678 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6679 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6680 cat conftest.err >&5 6681 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6682 lt_cv_path_mainfest_tool=yes 6683 fi 6684 rm -f conftest* 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6687$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6688if test yes != "$lt_cv_path_mainfest_tool"; then 6689 MANIFEST_TOOL=: 6690fi 6691 6692 6693 6694 6695 6696 6697 case $host_os in 6698 rhapsody* | darwin*) 6699 if test -n "$ac_tool_prefix"; then 6700 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6701set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703$as_echo_n "checking for $ac_word... " >&6; } 6704if ${ac_cv_prog_DSYMUTIL+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 if test -n "$DSYMUTIL"; then 6708 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 test -z "$as_dir" && as_dir=. 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6717 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi 6726fi 6727DSYMUTIL=$ac_cv_prog_DSYMUTIL 6728if test -n "$DSYMUTIL"; then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6730$as_echo "$DSYMUTIL" >&6; } 6731else 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734fi 6735 6736 6737fi 6738if test -z "$ac_cv_prog_DSYMUTIL"; then 6739 ac_ct_DSYMUTIL=$DSYMUTIL 6740 # Extract the first word of "dsymutil", so it can be a program name with args. 6741set dummy dsymutil; ac_word=$2 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6743$as_echo_n "checking for $ac_word... " >&6; } 6744if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 if test -n "$ac_ct_DSYMUTIL"; then 6748 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6749else 6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6751for as_dir in $PATH 6752do 6753 IFS=$as_save_IFS 6754 test -z "$as_dir" && as_dir=. 6755 for ac_exec_ext in '' $ac_executable_extensions; do 6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6757 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6759 break 2 6760 fi 6761done 6762 done 6763IFS=$as_save_IFS 6764 6765fi 6766fi 6767ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6768if test -n "$ac_ct_DSYMUTIL"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6770$as_echo "$ac_ct_DSYMUTIL" >&6; } 6771else 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773$as_echo "no" >&6; } 6774fi 6775 6776 if test "x$ac_ct_DSYMUTIL" = x; then 6777 DSYMUTIL=":" 6778 else 6779 case $cross_compiling:$ac_tool_warned in 6780yes:) 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6783ac_tool_warned=yes ;; 6784esac 6785 DSYMUTIL=$ac_ct_DSYMUTIL 6786 fi 6787else 6788 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6789fi 6790 6791 if test -n "$ac_tool_prefix"; then 6792 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6793set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_NMEDIT+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$NMEDIT"; then 6800 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819NMEDIT=$ac_cv_prog_NMEDIT 6820if test -n "$NMEDIT"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6822$as_echo "$NMEDIT" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 6829fi 6830if test -z "$ac_cv_prog_NMEDIT"; then 6831 ac_ct_NMEDIT=$NMEDIT 6832 # Extract the first word of "nmedit", so it can be a program name with args. 6833set dummy nmedit; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 if test -n "$ac_ct_NMEDIT"; then 6840 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6841else 6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6843for as_dir in $PATH 6844do 6845 IFS=$as_save_IFS 6846 test -z "$as_dir" && as_dir=. 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi 6858fi 6859ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6860if test -n "$ac_ct_NMEDIT"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6862$as_echo "$ac_ct_NMEDIT" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 if test "x$ac_ct_NMEDIT" = x; then 6869 NMEDIT=":" 6870 else 6871 case $cross_compiling:$ac_tool_warned in 6872yes:) 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6875ac_tool_warned=yes ;; 6876esac 6877 NMEDIT=$ac_ct_NMEDIT 6878 fi 6879else 6880 NMEDIT="$ac_cv_prog_NMEDIT" 6881fi 6882 6883 if test -n "$ac_tool_prefix"; then 6884 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6885set dummy ${ac_tool_prefix}lipo; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_prog_LIPO+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$LIPO"; then 6892 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911LIPO=$ac_cv_prog_LIPO 6912if test -n "$LIPO"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6914$as_echo "$LIPO" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 6921fi 6922if test -z "$ac_cv_prog_LIPO"; then 6923 ac_ct_LIPO=$LIPO 6924 # Extract the first word of "lipo", so it can be a program name with args. 6925set dummy lipo; ac_word=$2 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6927$as_echo_n "checking for $ac_word... " >&6; } 6928if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 if test -n "$ac_ct_LIPO"; then 6932 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6933else 6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6935for as_dir in $PATH 6936do 6937 IFS=$as_save_IFS 6938 test -z "$as_dir" && as_dir=. 6939 for ac_exec_ext in '' $ac_executable_extensions; do 6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6941 ac_cv_prog_ac_ct_LIPO="lipo" 6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6943 break 2 6944 fi 6945done 6946 done 6947IFS=$as_save_IFS 6948 6949fi 6950fi 6951ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6952if test -n "$ac_ct_LIPO"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6954$as_echo "$ac_ct_LIPO" >&6; } 6955else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957$as_echo "no" >&6; } 6958fi 6959 6960 if test "x$ac_ct_LIPO" = x; then 6961 LIPO=":" 6962 else 6963 case $cross_compiling:$ac_tool_warned in 6964yes:) 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6967ac_tool_warned=yes ;; 6968esac 6969 LIPO=$ac_ct_LIPO 6970 fi 6971else 6972 LIPO="$ac_cv_prog_LIPO" 6973fi 6974 6975 if test -n "$ac_tool_prefix"; then 6976 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6977set dummy ${ac_tool_prefix}otool; ac_word=$2 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979$as_echo_n "checking for $ac_word... " >&6; } 6980if ${ac_cv_prog_OTOOL+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -n "$OTOOL"; then 6984 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6985else 6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6993 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998 done 6999IFS=$as_save_IFS 7000 7001fi 7002fi 7003OTOOL=$ac_cv_prog_OTOOL 7004if test -n "$OTOOL"; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7006$as_echo "$OTOOL" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009$as_echo "no" >&6; } 7010fi 7011 7012 7013fi 7014if test -z "$ac_cv_prog_OTOOL"; then 7015 ac_ct_OTOOL=$OTOOL 7016 # Extract the first word of "otool", so it can be a program name with args. 7017set dummy otool; ac_word=$2 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019$as_echo_n "checking for $ac_word... " >&6; } 7020if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 if test -n "$ac_ct_OTOOL"; then 7024 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_prog_ac_ct_OTOOL="otool" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037done 7038 done 7039IFS=$as_save_IFS 7040 7041fi 7042fi 7043ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7044if test -n "$ac_ct_OTOOL"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7046$as_echo "$ac_ct_OTOOL" >&6; } 7047else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049$as_echo "no" >&6; } 7050fi 7051 7052 if test "x$ac_ct_OTOOL" = x; then 7053 OTOOL=":" 7054 else 7055 case $cross_compiling:$ac_tool_warned in 7056yes:) 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7059ac_tool_warned=yes ;; 7060esac 7061 OTOOL=$ac_ct_OTOOL 7062 fi 7063else 7064 OTOOL="$ac_cv_prog_OTOOL" 7065fi 7066 7067 if test -n "$ac_tool_prefix"; then 7068 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7069set dummy ${ac_tool_prefix}otool64; ac_word=$2 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7071$as_echo_n "checking for $ac_word... " >&6; } 7072if ${ac_cv_prog_OTOOL64+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 if test -n "$OTOOL64"; then 7076 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7077else 7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 test -z "$as_dir" && as_dir=. 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7085 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089done 7090 done 7091IFS=$as_save_IFS 7092 7093fi 7094fi 7095OTOOL64=$ac_cv_prog_OTOOL64 7096if test -n "$OTOOL64"; then 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7098$as_echo "$OTOOL64" >&6; } 7099else 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7101$as_echo "no" >&6; } 7102fi 7103 7104 7105fi 7106if test -z "$ac_cv_prog_OTOOL64"; then 7107 ac_ct_OTOOL64=$OTOOL64 7108 # Extract the first word of "otool64", so it can be a program name with args. 7109set dummy otool64; ac_word=$2 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7111$as_echo_n "checking for $ac_word... " >&6; } 7112if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 if test -n "$ac_ct_OTOOL64"; then 7116 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7117else 7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7119for as_dir in $PATH 7120do 7121 IFS=$as_save_IFS 7122 test -z "$as_dir" && as_dir=. 7123 for ac_exec_ext in '' $ac_executable_extensions; do 7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7125 ac_cv_prog_ac_ct_OTOOL64="otool64" 7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7127 break 2 7128 fi 7129done 7130 done 7131IFS=$as_save_IFS 7132 7133fi 7134fi 7135ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7136if test -n "$ac_ct_OTOOL64"; then 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7138$as_echo "$ac_ct_OTOOL64" >&6; } 7139else 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7141$as_echo "no" >&6; } 7142fi 7143 7144 if test "x$ac_ct_OTOOL64" = x; then 7145 OTOOL64=":" 7146 else 7147 case $cross_compiling:$ac_tool_warned in 7148yes:) 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7151ac_tool_warned=yes ;; 7152esac 7153 OTOOL64=$ac_ct_OTOOL64 7154 fi 7155else 7156 OTOOL64="$ac_cv_prog_OTOOL64" 7157fi 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7186$as_echo_n "checking for -single_module linker flag... " >&6; } 7187if ${lt_cv_apple_cc_single_mod+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 lt_cv_apple_cc_single_mod=no 7191 if test -z "$LT_MULTI_MODULE"; then 7192 # By default we will add the -single_module flag. You can override 7193 # by either setting the environment variable LT_MULTI_MODULE 7194 # non-empty at configure time, or by adding -multi_module to the 7195 # link flags. 7196 rm -rf libconftest.dylib* 7197 echo "int foo(void){return 1;}" > conftest.c 7198 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7199-dynamiclib -Wl,-single_module conftest.c" >&5 7200 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7201 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7202 _lt_result=$? 7203 # If there is a non-empty error log, and "single_module" 7204 # appears in it, assume the flag caused a linker warning 7205 if test -s conftest.err && $GREP single_module conftest.err; then 7206 cat conftest.err >&5 7207 # Otherwise, if the output was created with a 0 exit code from 7208 # the compiler, it worked. 7209 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7210 lt_cv_apple_cc_single_mod=yes 7211 else 7212 cat conftest.err >&5 7213 fi 7214 rm -rf libconftest.dylib* 7215 rm -f conftest.* 7216 fi 7217fi 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7219$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7220 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7222$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7223if ${lt_cv_ld_exported_symbols_list+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 lt_cv_ld_exported_symbols_list=no 7227 save_LDFLAGS=$LDFLAGS 7228 echo "_main" > conftest.sym 7229 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231/* end confdefs.h. */ 7232 7233int 7234main () 7235{ 7236 7237 ; 7238 return 0; 7239} 7240_ACEOF 7241if ac_fn_c_try_link "$LINENO"; then : 7242 lt_cv_ld_exported_symbols_list=yes 7243else 7244 lt_cv_ld_exported_symbols_list=no 7245fi 7246rm -f core conftest.err conftest.$ac_objext \ 7247 conftest$ac_exeext conftest.$ac_ext 7248 LDFLAGS=$save_LDFLAGS 7249 7250fi 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7252$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7253 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7255$as_echo_n "checking for -force_load linker flag... " >&6; } 7256if ${lt_cv_ld_force_load+:} false; then : 7257 $as_echo_n "(cached) " >&6 7258else 7259 lt_cv_ld_force_load=no 7260 cat > conftest.c << _LT_EOF 7261int forced_loaded() { return 2;} 7262_LT_EOF 7263 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7264 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7265 echo "$AR cru libconftest.a conftest.o" >&5 7266 $AR cru libconftest.a conftest.o 2>&5 7267 echo "$RANLIB libconftest.a" >&5 7268 $RANLIB libconftest.a 2>&5 7269 cat > conftest.c << _LT_EOF 7270int main() { return 0;} 7271_LT_EOF 7272 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7273 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7274 _lt_result=$? 7275 if test -s conftest.err && $GREP force_load conftest.err; then 7276 cat conftest.err >&5 7277 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7278 lt_cv_ld_force_load=yes 7279 else 7280 cat conftest.err >&5 7281 fi 7282 rm -f conftest.err libconftest.a conftest conftest.c 7283 rm -rf conftest.dSYM 7284 7285fi 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7287$as_echo "$lt_cv_ld_force_load" >&6; } 7288 case $host_os in 7289 rhapsody* | darwin1.[012]) 7290 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7291 darwin1.*) 7292 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7293 darwin*) # darwin 5.x on 7294 # if running on 10.5 or later, the deployment target defaults 7295 # to the OS version, if on x86, and 10.4, the deployment 7296 # target defaults to 10.4. Don't you love it? 7297 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7298 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7299 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7300 10.[012][,.]*) 7301 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7302 10.*) 7303 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7304 esac 7305 ;; 7306 esac 7307 if test yes = "$lt_cv_apple_cc_single_mod"; then 7308 _lt_dar_single_mod='$single_module' 7309 fi 7310 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7311 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7312 else 7313 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7314 fi 7315 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7316 _lt_dsymutil='~$DSYMUTIL $lib || :' 7317 else 7318 _lt_dsymutil= 7319 fi 7320 ;; 7321 esac 7322 7323# func_munge_path_list VARIABLE PATH 7324# ----------------------------------- 7325# VARIABLE is name of variable containing _space_ separated list of 7326# directories to be munged by the contents of PATH, which is string 7327# having a format: 7328# "DIR[:DIR]:" 7329# string "DIR[ DIR]" will be prepended to VARIABLE 7330# ":DIR[:DIR]" 7331# string "DIR[ DIR]" will be appended to VARIABLE 7332# "DIRP[:DIRP]::[DIRA:]DIRA" 7333# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7334# "DIRA[ DIRA]" will be appended to VARIABLE 7335# "DIR[:DIR]" 7336# VARIABLE will be replaced by "DIR[ DIR]" 7337func_munge_path_list () 7338{ 7339 case x$2 in 7340 x) 7341 ;; 7342 *:) 7343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7344 ;; 7345 x:*) 7346 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7347 ;; 7348 *::*) 7349 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7350 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7351 ;; 7352 *) 7353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7354 ;; 7355 esac 7356} 7357 7358ac_ext=c 7359ac_cpp='$CPP $CPPFLAGS' 7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7362ac_compiler_gnu=$ac_cv_c_compiler_gnu 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7364$as_echo_n "checking how to run the C preprocessor... " >&6; } 7365# On Suns, sometimes $CPP names a directory. 7366if test -n "$CPP" && test -d "$CPP"; then 7367 CPP= 7368fi 7369if test -z "$CPP"; then 7370 if ${ac_cv_prog_CPP+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 # Double quotes because CPP needs to be expanded 7374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7375 do 7376 ac_preproc_ok=false 7377for ac_c_preproc_warn_flag in '' yes 7378do 7379 # Use a header file that comes with gcc, so configuring glibc 7380 # with a fresh cross-compiler works. 7381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7382 # <limits.h> exists even on freestanding compilers. 7383 # On the NeXT, cc -E runs the code through the compiler's parser, 7384 # not just through cpp. "Syntax error" is here to catch this case. 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387#ifdef __STDC__ 7388# include <limits.h> 7389#else 7390# include <assert.h> 7391#endif 7392 Syntax error 7393_ACEOF 7394if ac_fn_c_try_cpp "$LINENO"; then : 7395 7396else 7397 # Broken: fails on valid input. 7398continue 7399fi 7400rm -f conftest.err conftest.i conftest.$ac_ext 7401 7402 # OK, works on sane cases. Now check whether nonexistent headers 7403 # can be detected and how. 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406#include <ac_nonexistent.h> 7407_ACEOF 7408if ac_fn_c_try_cpp "$LINENO"; then : 7409 # Broken: success on invalid input. 7410continue 7411else 7412 # Passes both tests. 7413ac_preproc_ok=: 7414break 7415fi 7416rm -f conftest.err conftest.i conftest.$ac_ext 7417 7418done 7419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7420rm -f conftest.i conftest.err conftest.$ac_ext 7421if $ac_preproc_ok; then : 7422 break 7423fi 7424 7425 done 7426 ac_cv_prog_CPP=$CPP 7427 7428fi 7429 CPP=$ac_cv_prog_CPP 7430else 7431 ac_cv_prog_CPP=$CPP 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7434$as_echo "$CPP" >&6; } 7435ac_preproc_ok=false 7436for ac_c_preproc_warn_flag in '' yes 7437do 7438 # Use a header file that comes with gcc, so configuring glibc 7439 # with a fresh cross-compiler works. 7440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7441 # <limits.h> exists even on freestanding compilers. 7442 # On the NeXT, cc -E runs the code through the compiler's parser, 7443 # not just through cpp. "Syntax error" is here to catch this case. 7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445/* end confdefs.h. */ 7446#ifdef __STDC__ 7447# include <limits.h> 7448#else 7449# include <assert.h> 7450#endif 7451 Syntax error 7452_ACEOF 7453if ac_fn_c_try_cpp "$LINENO"; then : 7454 7455else 7456 # Broken: fails on valid input. 7457continue 7458fi 7459rm -f conftest.err conftest.i conftest.$ac_ext 7460 7461 # OK, works on sane cases. Now check whether nonexistent headers 7462 # can be detected and how. 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465#include <ac_nonexistent.h> 7466_ACEOF 7467if ac_fn_c_try_cpp "$LINENO"; then : 7468 # Broken: success on invalid input. 7469continue 7470else 7471 # Passes both tests. 7472ac_preproc_ok=: 7473break 7474fi 7475rm -f conftest.err conftest.i conftest.$ac_ext 7476 7477done 7478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7479rm -f conftest.i conftest.err conftest.$ac_ext 7480if $ac_preproc_ok; then : 7481 7482else 7483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7485as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7486See \`config.log' for more details" "$LINENO" 5; } 7487fi 7488 7489ac_ext=c 7490ac_cpp='$CPP $CPPFLAGS' 7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7493ac_compiler_gnu=$ac_cv_c_compiler_gnu 7494 7495 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7497$as_echo_n "checking for ANSI C header files... " >&6; } 7498if ${ac_cv_header_stdc+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500else 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502/* end confdefs.h. */ 7503#include <stdlib.h> 7504#include <stdarg.h> 7505#include <string.h> 7506#include <float.h> 7507 7508int 7509main () 7510{ 7511 7512 ; 7513 return 0; 7514} 7515_ACEOF 7516if ac_fn_c_try_compile "$LINENO"; then : 7517 ac_cv_header_stdc=yes 7518else 7519 ac_cv_header_stdc=no 7520fi 7521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7522 7523if test $ac_cv_header_stdc = yes; then 7524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527#include <string.h> 7528 7529_ACEOF 7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7531 $EGREP "memchr" >/dev/null 2>&1; then : 7532 7533else 7534 ac_cv_header_stdc=no 7535fi 7536rm -f conftest* 7537 7538fi 7539 7540if test $ac_cv_header_stdc = yes; then 7541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544#include <stdlib.h> 7545 7546_ACEOF 7547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7548 $EGREP "free" >/dev/null 2>&1; then : 7549 7550else 7551 ac_cv_header_stdc=no 7552fi 7553rm -f conftest* 7554 7555fi 7556 7557if test $ac_cv_header_stdc = yes; then 7558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7559 if test "$cross_compiling" = yes; then : 7560 : 7561else 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564#include <ctype.h> 7565#include <stdlib.h> 7566#if ((' ' & 0x0FF) == 0x020) 7567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7569#else 7570# define ISLOWER(c) \ 7571 (('a' <= (c) && (c) <= 'i') \ 7572 || ('j' <= (c) && (c) <= 'r') \ 7573 || ('s' <= (c) && (c) <= 'z')) 7574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7575#endif 7576 7577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7578int 7579main () 7580{ 7581 int i; 7582 for (i = 0; i < 256; i++) 7583 if (XOR (islower (i), ISLOWER (i)) 7584 || toupper (i) != TOUPPER (i)) 7585 return 2; 7586 return 0; 7587} 7588_ACEOF 7589if ac_fn_c_try_run "$LINENO"; then : 7590 7591else 7592 ac_cv_header_stdc=no 7593fi 7594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7595 conftest.$ac_objext conftest.beam conftest.$ac_ext 7596fi 7597 7598fi 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7601$as_echo "$ac_cv_header_stdc" >&6; } 7602if test $ac_cv_header_stdc = yes; then 7603 7604$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7605 7606fi 7607 7608# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7609for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7610 inttypes.h stdint.h unistd.h 7611do : 7612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7613ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7614" 7615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7616 cat >>confdefs.h <<_ACEOF 7617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7618_ACEOF 7619 7620fi 7621 7622done 7623 7624 7625for ac_header in dlfcn.h 7626do : 7627 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7628" 7629if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7630 cat >>confdefs.h <<_ACEOF 7631#define HAVE_DLFCN_H 1 7632_ACEOF 7633 7634fi 7635 7636done 7637 7638 7639 7640 7641 7642# Set options 7643 7644 7645 7646 enable_dlopen=no 7647 7648 7649 enable_win32_dll=no 7650 7651 7652 # Check whether --enable-shared was given. 7653if test "${enable_shared+set}" = set; then : 7654 enableval=$enable_shared; p=${PACKAGE-default} 7655 case $enableval in 7656 yes) enable_shared=yes ;; 7657 no) enable_shared=no ;; 7658 *) 7659 enable_shared=no 7660 # Look at the argument we got. We use all the common list separators. 7661 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7662 for pkg in $enableval; do 7663 IFS=$lt_save_ifs 7664 if test "X$pkg" = "X$p"; then 7665 enable_shared=yes 7666 fi 7667 done 7668 IFS=$lt_save_ifs 7669 ;; 7670 esac 7671else 7672 enable_shared=yes 7673fi 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 # Check whether --enable-static was given. 7684if test "${enable_static+set}" = set; then : 7685 enableval=$enable_static; p=${PACKAGE-default} 7686 case $enableval in 7687 yes) enable_static=yes ;; 7688 no) enable_static=no ;; 7689 *) 7690 enable_static=no 7691 # Look at the argument we got. We use all the common list separators. 7692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7693 for pkg in $enableval; do 7694 IFS=$lt_save_ifs 7695 if test "X$pkg" = "X$p"; then 7696 enable_static=yes 7697 fi 7698 done 7699 IFS=$lt_save_ifs 7700 ;; 7701 esac 7702else 7703 enable_static=yes 7704fi 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715# Check whether --with-pic was given. 7716if test "${with_pic+set}" = set; then : 7717 withval=$with_pic; lt_p=${PACKAGE-default} 7718 case $withval in 7719 yes|no) pic_mode=$withval ;; 7720 *) 7721 pic_mode=default 7722 # Look at the argument we got. We use all the common list separators. 7723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7724 for lt_pkg in $withval; do 7725 IFS=$lt_save_ifs 7726 if test "X$lt_pkg" = "X$lt_p"; then 7727 pic_mode=yes 7728 fi 7729 done 7730 IFS=$lt_save_ifs 7731 ;; 7732 esac 7733else 7734 pic_mode=default 7735fi 7736 7737 7738 7739 7740 7741 7742 7743 7744 # Check whether --enable-fast-install was given. 7745if test "${enable_fast_install+set}" = set; then : 7746 enableval=$enable_fast_install; p=${PACKAGE-default} 7747 case $enableval in 7748 yes) enable_fast_install=yes ;; 7749 no) enable_fast_install=no ;; 7750 *) 7751 enable_fast_install=no 7752 # Look at the argument we got. We use all the common list separators. 7753 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7754 for pkg in $enableval; do 7755 IFS=$lt_save_ifs 7756 if test "X$pkg" = "X$p"; then 7757 enable_fast_install=yes 7758 fi 7759 done 7760 IFS=$lt_save_ifs 7761 ;; 7762 esac 7763else 7764 enable_fast_install=yes 7765fi 7766 7767 7768 7769 7770 7771 7772 7773 7774 shared_archive_member_spec= 7775case $host,$enable_shared in 7776power*-*-aix[5-9]*,yes) 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7778$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7779 7780# Check whether --with-aix-soname was given. 7781if test "${with_aix_soname+set}" = set; then : 7782 withval=$with_aix_soname; case $withval in 7783 aix|svr4|both) 7784 ;; 7785 *) 7786 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7787 ;; 7788 esac 7789 lt_cv_with_aix_soname=$with_aix_soname 7790else 7791 if ${lt_cv_with_aix_soname+:} false; then : 7792 $as_echo_n "(cached) " >&6 7793else 7794 lt_cv_with_aix_soname=aix 7795fi 7796 7797 with_aix_soname=$lt_cv_with_aix_soname 7798fi 7799 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7801$as_echo "$with_aix_soname" >&6; } 7802 if test aix != "$with_aix_soname"; then 7803 # For the AIX way of multilib, we name the shared archive member 7804 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7805 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7806 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7807 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7808 if test 64 = "${OBJECT_MODE-32}"; then 7809 shared_archive_member_spec=shr_64 7810 else 7811 shared_archive_member_spec=shr 7812 fi 7813 fi 7814 ;; 7815*) 7816 with_aix_soname=aix 7817 ;; 7818esac 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829# This can be used to rebuild libtool when needed 7830LIBTOOL_DEPS=$ltmain 7831 7832# Always use our own libtool. 7833LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864test -z "$LN_S" && LN_S="ln -s" 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879if test -n "${ZSH_VERSION+set}"; then 7880 setopt NO_GLOB_SUBST 7881fi 7882 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7884$as_echo_n "checking for objdir... " >&6; } 7885if ${lt_cv_objdir+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 rm -f .libs 2>/dev/null 7889mkdir .libs 2>/dev/null 7890if test -d .libs; then 7891 lt_cv_objdir=.libs 7892else 7893 # MS-DOS does not allow filenames that begin with a dot. 7894 lt_cv_objdir=_libs 7895fi 7896rmdir .libs 2>/dev/null 7897fi 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7899$as_echo "$lt_cv_objdir" >&6; } 7900objdir=$lt_cv_objdir 7901 7902 7903 7904 7905 7906cat >>confdefs.h <<_ACEOF 7907#define LT_OBJDIR "$lt_cv_objdir/" 7908_ACEOF 7909 7910 7911 7912 7913case $host_os in 7914aix3*) 7915 # AIX sometimes has problems with the GCC collect2 program. For some 7916 # reason, if we set the COLLECT_NAMES environment variable, the problems 7917 # vanish in a puff of smoke. 7918 if test set != "${COLLECT_NAMES+set}"; then 7919 COLLECT_NAMES= 7920 export COLLECT_NAMES 7921 fi 7922 ;; 7923esac 7924 7925# Global variables: 7926ofile=libtool 7927can_build_shared=yes 7928 7929# All known linkers require a '.a' archive for static linking (except MSVC, 7930# which needs '.lib'). 7931libext=a 7932 7933with_gnu_ld=$lt_cv_prog_gnu_ld 7934 7935old_CC=$CC 7936old_CFLAGS=$CFLAGS 7937 7938# Set sane defaults for various variables 7939test -z "$CC" && CC=cc 7940test -z "$LTCC" && LTCC=$CC 7941test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7942test -z "$LD" && LD=ld 7943test -z "$ac_objext" && ac_objext=o 7944 7945func_cc_basename $compiler 7946cc_basename=$func_cc_basename_result 7947 7948 7949# Only perform the check for file, if the check method requires it 7950test -z "$MAGIC_CMD" && MAGIC_CMD=file 7951case $deplibs_check_method in 7952file_magic*) 7953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7955$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7956if ${lt_cv_path_MAGIC_CMD+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 case $MAGIC_CMD in 7960[\\/*] | ?:[\\/]*) 7961 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7962 ;; 7963*) 7964 lt_save_MAGIC_CMD=$MAGIC_CMD 7965 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7967 for ac_dir in $ac_dummy; do 7968 IFS=$lt_save_ifs 7969 test -z "$ac_dir" && ac_dir=. 7970 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7971 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7972 if test -n "$file_magic_test_file"; then 7973 case $deplibs_check_method in 7974 "file_magic "*) 7975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7978 $EGREP "$file_magic_regex" > /dev/null; then 7979 : 7980 else 7981 cat <<_LT_EOF 1>&2 7982 7983*** Warning: the command libtool uses to detect shared libraries, 7984*** $file_magic_cmd, produces output that libtool cannot recognize. 7985*** The result is that libtool may fail to recognize shared libraries 7986*** as such. This will affect the creation of libtool libraries that 7987*** depend on shared libraries, but programs linked with such libtool 7988*** libraries will work regardless of this problem. Nevertheless, you 7989*** may want to report the problem to your system manager and/or to 7990*** bug-libtool@gnu.org 7991 7992_LT_EOF 7993 fi ;; 7994 esac 7995 fi 7996 break 7997 fi 7998 done 7999 IFS=$lt_save_ifs 8000 MAGIC_CMD=$lt_save_MAGIC_CMD 8001 ;; 8002esac 8003fi 8004 8005MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8006if test -n "$MAGIC_CMD"; then 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8008$as_echo "$MAGIC_CMD" >&6; } 8009else 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8011$as_echo "no" >&6; } 8012fi 8013 8014 8015 8016 8017 8018if test -z "$lt_cv_path_MAGIC_CMD"; then 8019 if test -n "$ac_tool_prefix"; then 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8021$as_echo_n "checking for file... " >&6; } 8022if ${lt_cv_path_MAGIC_CMD+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 case $MAGIC_CMD in 8026[\\/*] | ?:[\\/]*) 8027 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8028 ;; 8029*) 8030 lt_save_MAGIC_CMD=$MAGIC_CMD 8031 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8033 for ac_dir in $ac_dummy; do 8034 IFS=$lt_save_ifs 8035 test -z "$ac_dir" && ac_dir=. 8036 if test -f "$ac_dir/file"; then 8037 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8038 if test -n "$file_magic_test_file"; then 8039 case $deplibs_check_method in 8040 "file_magic "*) 8041 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8042 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8044 $EGREP "$file_magic_regex" > /dev/null; then 8045 : 8046 else 8047 cat <<_LT_EOF 1>&2 8048 8049*** Warning: the command libtool uses to detect shared libraries, 8050*** $file_magic_cmd, produces output that libtool cannot recognize. 8051*** The result is that libtool may fail to recognize shared libraries 8052*** as such. This will affect the creation of libtool libraries that 8053*** depend on shared libraries, but programs linked with such libtool 8054*** libraries will work regardless of this problem. Nevertheless, you 8055*** may want to report the problem to your system manager and/or to 8056*** bug-libtool@gnu.org 8057 8058_LT_EOF 8059 fi ;; 8060 esac 8061 fi 8062 break 8063 fi 8064 done 8065 IFS=$lt_save_ifs 8066 MAGIC_CMD=$lt_save_MAGIC_CMD 8067 ;; 8068esac 8069fi 8070 8071MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8072if test -n "$MAGIC_CMD"; then 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8074$as_echo "$MAGIC_CMD" >&6; } 8075else 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8077$as_echo "no" >&6; } 8078fi 8079 8080 8081 else 8082 MAGIC_CMD=: 8083 fi 8084fi 8085 8086 fi 8087 ;; 8088esac 8089 8090# Use C for the default configuration in the libtool script 8091 8092lt_save_CC=$CC 8093ac_ext=c 8094ac_cpp='$CPP $CPPFLAGS' 8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8097ac_compiler_gnu=$ac_cv_c_compiler_gnu 8098 8099 8100# Source file extension for C test sources. 8101ac_ext=c 8102 8103# Object file extension for compiled C test sources. 8104objext=o 8105objext=$objext 8106 8107# Code to be used in simple compile tests 8108lt_simple_compile_test_code="int some_variable = 0;" 8109 8110# Code to be used in simple link tests 8111lt_simple_link_test_code='int main(){return(0);}' 8112 8113 8114 8115 8116 8117 8118 8119# If no C compiler was specified, use CC. 8120LTCC=${LTCC-"$CC"} 8121 8122# If no C compiler flags were specified, use CFLAGS. 8123LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8124 8125# Allow CC to be a program name with arguments. 8126compiler=$CC 8127 8128# Save the default compiler, since it gets overwritten when the other 8129# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8130compiler_DEFAULT=$CC 8131 8132# save warnings/boilerplate of simple test code 8133ac_outfile=conftest.$ac_objext 8134echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8135eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8136_lt_compiler_boilerplate=`cat conftest.err` 8137$RM conftest* 8138 8139ac_outfile=conftest.$ac_objext 8140echo "$lt_simple_link_test_code" >conftest.$ac_ext 8141eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8142_lt_linker_boilerplate=`cat conftest.err` 8143$RM -r conftest* 8144 8145 8146if test -n "$compiler"; then 8147 8148lt_prog_compiler_no_builtin_flag= 8149 8150if test yes = "$GCC"; then 8151 case $cc_basename in 8152 nvcc*) 8153 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8154 *) 8155 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8156 esac 8157 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8159$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8160if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8161 $as_echo_n "(cached) " >&6 8162else 8163 lt_cv_prog_compiler_rtti_exceptions=no 8164 ac_outfile=conftest.$ac_objext 8165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8166 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8167 # Insert the option either (1) after the last *FLAGS variable, or 8168 # (2) before a word containing "conftest.", or (3) at the end. 8169 # Note that $ac_compile itself does not contain backslashes and begins 8170 # with a dollar sign (not a hyphen), so the echo should work correctly. 8171 # The option is referenced via a variable to avoid confusing sed. 8172 lt_compile=`echo "$ac_compile" | $SED \ 8173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8175 -e 's:$: $lt_compiler_flag:'` 8176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8177 (eval "$lt_compile" 2>conftest.err) 8178 ac_status=$? 8179 cat conftest.err >&5 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 if (exit $ac_status) && test -s "$ac_outfile"; then 8182 # The compiler can only warn and ignore the option if not recognized 8183 # So say no if there are warnings other than the usual output. 8184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8187 lt_cv_prog_compiler_rtti_exceptions=yes 8188 fi 8189 fi 8190 $RM conftest* 8191 8192fi 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8194$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8195 8196if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8197 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8198else 8199 : 8200fi 8201 8202fi 8203 8204 8205 8206 8207 8208 8209 lt_prog_compiler_wl= 8210lt_prog_compiler_pic= 8211lt_prog_compiler_static= 8212 8213 8214 if test yes = "$GCC"; then 8215 lt_prog_compiler_wl='-Wl,' 8216 lt_prog_compiler_static='-static' 8217 8218 case $host_os in 8219 aix*) 8220 # All AIX code is PIC. 8221 if test ia64 = "$host_cpu"; then 8222 # AIX 5 now supports IA64 processor 8223 lt_prog_compiler_static='-Bstatic' 8224 fi 8225 lt_prog_compiler_pic='-fPIC' 8226 ;; 8227 8228 amigaos*) 8229 case $host_cpu in 8230 powerpc) 8231 # see comment about AmigaOS4 .so support 8232 lt_prog_compiler_pic='-fPIC' 8233 ;; 8234 m68k) 8235 # FIXME: we need at least 68020 code to build shared libraries, but 8236 # adding the '-m68020' flag to GCC prevents building anything better, 8237 # like '-m68040'. 8238 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8239 ;; 8240 esac 8241 ;; 8242 8243 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8244 # PIC is the default for these OSes. 8245 ;; 8246 8247 mingw* | cygwin* | pw32* | os2* | cegcc*) 8248 # This hack is so that the source file can tell whether it is being 8249 # built for inclusion in a dll (and should export symbols for example). 8250 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8251 # (--disable-auto-import) libraries 8252 lt_prog_compiler_pic='-DDLL_EXPORT' 8253 case $host_os in 8254 os2*) 8255 lt_prog_compiler_static='$wl-static' 8256 ;; 8257 esac 8258 ;; 8259 8260 darwin* | rhapsody*) 8261 # PIC is the default on this platform 8262 # Common symbols not allowed in MH_DYLIB files 8263 lt_prog_compiler_pic='-fno-common' 8264 ;; 8265 8266 haiku*) 8267 # PIC is the default for Haiku. 8268 # The "-static" flag exists, but is broken. 8269 lt_prog_compiler_static= 8270 ;; 8271 8272 hpux*) 8273 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8274 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8275 # sets the default TLS model and affects inlining. 8276 case $host_cpu in 8277 hppa*64*) 8278 # +Z the default 8279 ;; 8280 *) 8281 lt_prog_compiler_pic='-fPIC' 8282 ;; 8283 esac 8284 ;; 8285 8286 interix[3-9]*) 8287 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8288 # Instead, we relocate shared libraries at runtime. 8289 ;; 8290 8291 msdosdjgpp*) 8292 # Just because we use GCC doesn't mean we suddenly get shared libraries 8293 # on systems that don't support them. 8294 lt_prog_compiler_can_build_shared=no 8295 enable_shared=no 8296 ;; 8297 8298 *nto* | *qnx*) 8299 # QNX uses GNU C++, but need to define -shared option too, otherwise 8300 # it will coredump. 8301 lt_prog_compiler_pic='-fPIC -shared' 8302 ;; 8303 8304 sysv4*MP*) 8305 if test -d /usr/nec; then 8306 lt_prog_compiler_pic=-Kconform_pic 8307 fi 8308 ;; 8309 8310 *) 8311 lt_prog_compiler_pic='-fPIC' 8312 ;; 8313 esac 8314 8315 case $cc_basename in 8316 nvcc*) # Cuda Compiler Driver 2.2 8317 lt_prog_compiler_wl='-Xlinker ' 8318 if test -n "$lt_prog_compiler_pic"; then 8319 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8320 fi 8321 ;; 8322 esac 8323 else 8324 # PORTME Check for flag to pass linker flags through the system compiler. 8325 case $host_os in 8326 aix*) 8327 lt_prog_compiler_wl='-Wl,' 8328 if test ia64 = "$host_cpu"; then 8329 # AIX 5 now supports IA64 processor 8330 lt_prog_compiler_static='-Bstatic' 8331 else 8332 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8333 fi 8334 ;; 8335 8336 darwin* | rhapsody*) 8337 # PIC is the default on this platform 8338 # Common symbols not allowed in MH_DYLIB files 8339 lt_prog_compiler_pic='-fno-common' 8340 case $cc_basename in 8341 nagfor*) 8342 # NAG Fortran compiler 8343 lt_prog_compiler_wl='-Wl,-Wl,,' 8344 lt_prog_compiler_pic='-PIC' 8345 lt_prog_compiler_static='-Bstatic' 8346 ;; 8347 esac 8348 ;; 8349 8350 mingw* | cygwin* | pw32* | os2* | cegcc*) 8351 # This hack is so that the source file can tell whether it is being 8352 # built for inclusion in a dll (and should export symbols for example). 8353 lt_prog_compiler_pic='-DDLL_EXPORT' 8354 case $host_os in 8355 os2*) 8356 lt_prog_compiler_static='$wl-static' 8357 ;; 8358 esac 8359 ;; 8360 8361 hpux9* | hpux10* | hpux11*) 8362 lt_prog_compiler_wl='-Wl,' 8363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8364 # not for PA HP-UX. 8365 case $host_cpu in 8366 hppa*64*|ia64*) 8367 # +Z the default 8368 ;; 8369 *) 8370 lt_prog_compiler_pic='+Z' 8371 ;; 8372 esac 8373 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8374 lt_prog_compiler_static='$wl-a ${wl}archive' 8375 ;; 8376 8377 irix5* | irix6* | nonstopux*) 8378 lt_prog_compiler_wl='-Wl,' 8379 # PIC (with -KPIC) is the default. 8380 lt_prog_compiler_static='-non_shared' 8381 ;; 8382 8383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8384 case $cc_basename in 8385 # old Intel for x86_64, which still supported -KPIC. 8386 ecc*) 8387 lt_prog_compiler_wl='-Wl,' 8388 lt_prog_compiler_pic='-KPIC' 8389 lt_prog_compiler_static='-static' 8390 ;; 8391 # icc used to be incompatible with GCC. 8392 # ICC 10 doesn't accept -KPIC any more. 8393 icc* | ifort*) 8394 lt_prog_compiler_wl='-Wl,' 8395 lt_prog_compiler_pic='-fPIC' 8396 lt_prog_compiler_static='-static' 8397 ;; 8398 # Lahey Fortran 8.1. 8399 lf95*) 8400 lt_prog_compiler_wl='-Wl,' 8401 lt_prog_compiler_pic='--shared' 8402 lt_prog_compiler_static='--static' 8403 ;; 8404 nagfor*) 8405 # NAG Fortran compiler 8406 lt_prog_compiler_wl='-Wl,-Wl,,' 8407 lt_prog_compiler_pic='-PIC' 8408 lt_prog_compiler_static='-Bstatic' 8409 ;; 8410 tcc*) 8411 # Fabrice Bellard et al's Tiny C Compiler 8412 lt_prog_compiler_wl='-Wl,' 8413 lt_prog_compiler_pic='-fPIC' 8414 lt_prog_compiler_static='-static' 8415 ;; 8416 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8417 # Portland Group compilers (*not* the Pentium gcc compiler, 8418 # which looks to be a dead project) 8419 lt_prog_compiler_wl='-Wl,' 8420 lt_prog_compiler_pic='-fpic' 8421 lt_prog_compiler_static='-Bstatic' 8422 ;; 8423 ccc*) 8424 lt_prog_compiler_wl='-Wl,' 8425 # All Alpha code is PIC. 8426 lt_prog_compiler_static='-non_shared' 8427 ;; 8428 xl* | bgxl* | bgf* | mpixl*) 8429 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8430 lt_prog_compiler_wl='-Wl,' 8431 lt_prog_compiler_pic='-qpic' 8432 lt_prog_compiler_static='-qstaticlink' 8433 ;; 8434 *) 8435 case `$CC -V 2>&1 | sed 5q` in 8436 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8437 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8438 lt_prog_compiler_pic='-KPIC' 8439 lt_prog_compiler_static='-Bstatic' 8440 lt_prog_compiler_wl='' 8441 ;; 8442 *Sun\ F* | *Sun*Fortran*) 8443 lt_prog_compiler_pic='-KPIC' 8444 lt_prog_compiler_static='-Bstatic' 8445 lt_prog_compiler_wl='-Qoption ld ' 8446 ;; 8447 *Sun\ C*) 8448 # Sun C 5.9 8449 lt_prog_compiler_pic='-KPIC' 8450 lt_prog_compiler_static='-Bstatic' 8451 lt_prog_compiler_wl='-Wl,' 8452 ;; 8453 *Intel*\ [CF]*Compiler*) 8454 lt_prog_compiler_wl='-Wl,' 8455 lt_prog_compiler_pic='-fPIC' 8456 lt_prog_compiler_static='-static' 8457 ;; 8458 *Portland\ Group*) 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-fpic' 8461 lt_prog_compiler_static='-Bstatic' 8462 ;; 8463 esac 8464 ;; 8465 esac 8466 ;; 8467 8468 newsos6) 8469 lt_prog_compiler_pic='-KPIC' 8470 lt_prog_compiler_static='-Bstatic' 8471 ;; 8472 8473 *nto* | *qnx*) 8474 # QNX uses GNU C++, but need to define -shared option too, otherwise 8475 # it will coredump. 8476 lt_prog_compiler_pic='-fPIC -shared' 8477 ;; 8478 8479 osf3* | osf4* | osf5*) 8480 lt_prog_compiler_wl='-Wl,' 8481 # All OSF/1 code is PIC. 8482 lt_prog_compiler_static='-non_shared' 8483 ;; 8484 8485 rdos*) 8486 lt_prog_compiler_static='-non_shared' 8487 ;; 8488 8489 solaris*) 8490 lt_prog_compiler_pic='-KPIC' 8491 lt_prog_compiler_static='-Bstatic' 8492 case $cc_basename in 8493 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8494 lt_prog_compiler_wl='-Qoption ld ';; 8495 *) 8496 lt_prog_compiler_wl='-Wl,';; 8497 esac 8498 ;; 8499 8500 sunos4*) 8501 lt_prog_compiler_wl='-Qoption ld ' 8502 lt_prog_compiler_pic='-PIC' 8503 lt_prog_compiler_static='-Bstatic' 8504 ;; 8505 8506 sysv4 | sysv4.2uw2* | sysv4.3*) 8507 lt_prog_compiler_wl='-Wl,' 8508 lt_prog_compiler_pic='-KPIC' 8509 lt_prog_compiler_static='-Bstatic' 8510 ;; 8511 8512 sysv4*MP*) 8513 if test -d /usr/nec; then 8514 lt_prog_compiler_pic='-Kconform_pic' 8515 lt_prog_compiler_static='-Bstatic' 8516 fi 8517 ;; 8518 8519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8520 lt_prog_compiler_wl='-Wl,' 8521 lt_prog_compiler_pic='-KPIC' 8522 lt_prog_compiler_static='-Bstatic' 8523 ;; 8524 8525 unicos*) 8526 lt_prog_compiler_wl='-Wl,' 8527 lt_prog_compiler_can_build_shared=no 8528 ;; 8529 8530 uts4*) 8531 lt_prog_compiler_pic='-pic' 8532 lt_prog_compiler_static='-Bstatic' 8533 ;; 8534 8535 *) 8536 lt_prog_compiler_can_build_shared=no 8537 ;; 8538 esac 8539 fi 8540 8541case $host_os in 8542 # For platforms that do not support PIC, -DPIC is meaningless: 8543 *djgpp*) 8544 lt_prog_compiler_pic= 8545 ;; 8546 *) 8547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8548 ;; 8549esac 8550 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8552$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8553if ${lt_cv_prog_compiler_pic+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555else 8556 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8557fi 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8559$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8560lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8561 8562# 8563# Check to make sure the PIC flag actually works. 8564# 8565if test -n "$lt_prog_compiler_pic"; then 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8567$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8568if ${lt_cv_prog_compiler_pic_works+:} false; then : 8569 $as_echo_n "(cached) " >&6 8570else 8571 lt_cv_prog_compiler_pic_works=no 8572 ac_outfile=conftest.$ac_objext 8573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8575 # Insert the option either (1) after the last *FLAGS variable, or 8576 # (2) before a word containing "conftest.", or (3) at the end. 8577 # Note that $ac_compile itself does not contain backslashes and begins 8578 # with a dollar sign (not a hyphen), so the echo should work correctly. 8579 # The option is referenced via a variable to avoid confusing sed. 8580 lt_compile=`echo "$ac_compile" | $SED \ 8581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8583 -e 's:$: $lt_compiler_flag:'` 8584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8585 (eval "$lt_compile" 2>conftest.err) 8586 ac_status=$? 8587 cat conftest.err >&5 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 if (exit $ac_status) && test -s "$ac_outfile"; then 8590 # The compiler can only warn and ignore the option if not recognized 8591 # So say no if there are warnings other than the usual output. 8592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8595 lt_cv_prog_compiler_pic_works=yes 8596 fi 8597 fi 8598 $RM conftest* 8599 8600fi 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8602$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8603 8604if test yes = "$lt_cv_prog_compiler_pic_works"; then 8605 case $lt_prog_compiler_pic in 8606 "" | " "*) ;; 8607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8608 esac 8609else 8610 lt_prog_compiler_pic= 8611 lt_prog_compiler_can_build_shared=no 8612fi 8613 8614fi 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626# 8627# Check to make sure the static flag actually works. 8628# 8629wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8631$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8632if ${lt_cv_prog_compiler_static_works+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 lt_cv_prog_compiler_static_works=no 8636 save_LDFLAGS=$LDFLAGS 8637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8638 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8640 # The linker can only warn and ignore the option if not recognized 8641 # So say no if there are warnings 8642 if test -s conftest.err; then 8643 # Append any errors to the config.log. 8644 cat conftest.err 1>&5 8645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8647 if diff conftest.exp conftest.er2 >/dev/null; then 8648 lt_cv_prog_compiler_static_works=yes 8649 fi 8650 else 8651 lt_cv_prog_compiler_static_works=yes 8652 fi 8653 fi 8654 $RM -r conftest* 8655 LDFLAGS=$save_LDFLAGS 8656 8657fi 8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8659$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8660 8661if test yes = "$lt_cv_prog_compiler_static_works"; then 8662 : 8663else 8664 lt_prog_compiler_static= 8665fi 8666 8667 8668 8669 8670 8671 8672 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8675if ${lt_cv_prog_compiler_c_o+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 lt_cv_prog_compiler_c_o=no 8679 $RM -r conftest 2>/dev/null 8680 mkdir conftest 8681 cd conftest 8682 mkdir out 8683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8684 8685 lt_compiler_flag="-o out/conftest2.$ac_objext" 8686 # Insert the option either (1) after the last *FLAGS variable, or 8687 # (2) before a word containing "conftest.", or (3) at the end. 8688 # Note that $ac_compile itself does not contain backslashes and begins 8689 # with a dollar sign (not a hyphen), so the echo should work correctly. 8690 lt_compile=`echo "$ac_compile" | $SED \ 8691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8693 -e 's:$: $lt_compiler_flag:'` 8694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8695 (eval "$lt_compile" 2>out/conftest.err) 8696 ac_status=$? 8697 cat out/conftest.err >&5 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8700 then 8701 # The compiler can only warn and ignore the option if not recognized 8702 # So say no if there are warnings 8703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8706 lt_cv_prog_compiler_c_o=yes 8707 fi 8708 fi 8709 chmod u+w . 2>&5 8710 $RM conftest* 8711 # SGI C++ compiler will create directory out/ii_files/ for 8712 # template instantiation 8713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8714 $RM out/* && rmdir out 8715 cd .. 8716 $RM -r conftest 8717 $RM conftest* 8718 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8721$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8722 8723 8724 8725 8726 8727 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8729$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8730if ${lt_cv_prog_compiler_c_o+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 lt_cv_prog_compiler_c_o=no 8734 $RM -r conftest 2>/dev/null 8735 mkdir conftest 8736 cd conftest 8737 mkdir out 8738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8739 8740 lt_compiler_flag="-o out/conftest2.$ac_objext" 8741 # Insert the option either (1) after the last *FLAGS variable, or 8742 # (2) before a word containing "conftest.", or (3) at the end. 8743 # Note that $ac_compile itself does not contain backslashes and begins 8744 # with a dollar sign (not a hyphen), so the echo should work correctly. 8745 lt_compile=`echo "$ac_compile" | $SED \ 8746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8748 -e 's:$: $lt_compiler_flag:'` 8749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8750 (eval "$lt_compile" 2>out/conftest.err) 8751 ac_status=$? 8752 cat out/conftest.err >&5 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8755 then 8756 # The compiler can only warn and ignore the option if not recognized 8757 # So say no if there are warnings 8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8761 lt_cv_prog_compiler_c_o=yes 8762 fi 8763 fi 8764 chmod u+w . 2>&5 8765 $RM conftest* 8766 # SGI C++ compiler will create directory out/ii_files/ for 8767 # template instantiation 8768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8769 $RM out/* && rmdir out 8770 cd .. 8771 $RM -r conftest 8772 $RM conftest* 8773 8774fi 8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8776$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8777 8778 8779 8780 8781hard_links=nottested 8782if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8783 # do not overwrite the value of need_locks provided by the user 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8785$as_echo_n "checking if we can lock with hard links... " >&6; } 8786 hard_links=yes 8787 $RM conftest* 8788 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8789 touch conftest.a 8790 ln conftest.a conftest.b 2>&5 || hard_links=no 8791 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8793$as_echo "$hard_links" >&6; } 8794 if test no = "$hard_links"; then 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8796$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8797 need_locks=warn 8798 fi 8799else 8800 need_locks=no 8801fi 8802 8803 8804 8805 8806 8807 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8809$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8810 8811 runpath_var= 8812 allow_undefined_flag= 8813 always_export_symbols=no 8814 archive_cmds= 8815 archive_expsym_cmds= 8816 compiler_needs_object=no 8817 enable_shared_with_static_runtimes=no 8818 export_dynamic_flag_spec= 8819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8820 hardcode_automatic=no 8821 hardcode_direct=no 8822 hardcode_direct_absolute=no 8823 hardcode_libdir_flag_spec= 8824 hardcode_libdir_separator= 8825 hardcode_minus_L=no 8826 hardcode_shlibpath_var=unsupported 8827 inherit_rpath=no 8828 link_all_deplibs=unknown 8829 module_cmds= 8830 module_expsym_cmds= 8831 old_archive_from_new_cmds= 8832 old_archive_from_expsyms_cmds= 8833 thread_safe_flag_spec= 8834 whole_archive_flag_spec= 8835 # include_expsyms should be a list of space-separated symbols to be *always* 8836 # included in the symbol list 8837 include_expsyms= 8838 # exclude_expsyms can be an extended regexp of symbols to exclude 8839 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8840 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8841 # as well as any symbol that contains 'd'. 8842 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8844 # platforms (ab)use it in PIC code, but their linkers get confused if 8845 # the symbol is explicitly referenced. Since portable code cannot 8846 # rely on this symbol name, it's probably fine to never include it in 8847 # preloaded symbol tables. 8848 # Exclude shared library initialization/finalization symbols. 8849 extract_expsyms_cmds= 8850 8851 case $host_os in 8852 cygwin* | mingw* | pw32* | cegcc*) 8853 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8854 # When not using gcc, we currently assume that we are using 8855 # Microsoft Visual C++. 8856 if test yes != "$GCC"; then 8857 with_gnu_ld=no 8858 fi 8859 ;; 8860 interix*) 8861 # we just hope/assume this is gcc and not c89 (= MSVC++) 8862 with_gnu_ld=yes 8863 ;; 8864 openbsd* | bitrig*) 8865 with_gnu_ld=no 8866 ;; 8867 esac 8868 8869 ld_shlibs=yes 8870 8871 # On some targets, GNU ld is compatible enough with the native linker 8872 # that we're better off using the native interface for both. 8873 lt_use_gnu_ld_interface=no 8874 if test yes = "$with_gnu_ld"; then 8875 case $host_os in 8876 aix*) 8877 # The AIX port of GNU ld has always aspired to compatibility 8878 # with the native linker. However, as the warning in the GNU ld 8879 # block says, versions before 2.19.5* couldn't really create working 8880 # shared libraries, regardless of the interface used. 8881 case `$LD -v 2>&1` in 8882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8884 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8885 *) 8886 lt_use_gnu_ld_interface=yes 8887 ;; 8888 esac 8889 ;; 8890 *) 8891 lt_use_gnu_ld_interface=yes 8892 ;; 8893 esac 8894 fi 8895 8896 if test yes = "$lt_use_gnu_ld_interface"; then 8897 # If archive_cmds runs LD, not CC, wlarc should be empty 8898 wlarc='$wl' 8899 8900 # Set some defaults for GNU ld with shared library support. These 8901 # are reset later if shared libraries are not supported. Putting them 8902 # here allows them to be overridden if necessary. 8903 runpath_var=LD_RUN_PATH 8904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8905 export_dynamic_flag_spec='$wl--export-dynamic' 8906 # ancient GNU ld didn't support --whole-archive et. al. 8907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8908 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8909 else 8910 whole_archive_flag_spec= 8911 fi 8912 supports_anon_versioning=no 8913 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8914 *GNU\ gold*) supports_anon_versioning=yes ;; 8915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8918 *\ 2.11.*) ;; # other 2.11 versions 8919 *) supports_anon_versioning=yes ;; 8920 esac 8921 8922 # See if GNU ld supports shared libraries. 8923 case $host_os in 8924 aix[3-9]*) 8925 # On AIX/PPC, the GNU linker is very broken 8926 if test ia64 != "$host_cpu"; then 8927 ld_shlibs=no 8928 cat <<_LT_EOF 1>&2 8929 8930*** Warning: the GNU linker, at least up to release 2.19, is reported 8931*** to be unable to reliably create shared libraries on AIX. 8932*** Therefore, libtool is disabling shared libraries support. If you 8933*** really care for shared libraries, you may want to install binutils 8934*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8935*** You will then need to restart the configuration process. 8936 8937_LT_EOF 8938 fi 8939 ;; 8940 8941 amigaos*) 8942 case $host_cpu in 8943 powerpc) 8944 # see comment about AmigaOS4 .so support 8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8946 archive_expsym_cmds='' 8947 ;; 8948 m68k) 8949 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)' 8950 hardcode_libdir_flag_spec='-L$libdir' 8951 hardcode_minus_L=yes 8952 ;; 8953 esac 8954 ;; 8955 8956 beos*) 8957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8958 allow_undefined_flag=unsupported 8959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8960 # support --undefined. This deserves some investigation. FIXME 8961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8962 else 8963 ld_shlibs=no 8964 fi 8965 ;; 8966 8967 cygwin* | mingw* | pw32* | cegcc*) 8968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8969 # as there is no search path for DLLs. 8970 hardcode_libdir_flag_spec='-L$libdir' 8971 export_dynamic_flag_spec='$wl--export-all-symbols' 8972 allow_undefined_flag=unsupported 8973 always_export_symbols=no 8974 enable_shared_with_static_runtimes=yes 8975 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' 8976 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8977 8978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8980 # If the export-symbols file already is a .def file, use it as 8981 # is; otherwise, prepend EXPORTS... 8982 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8983 cp $export_symbols $output_objdir/$soname.def; 8984 else 8985 echo EXPORTS > $output_objdir/$soname.def; 8986 cat $export_symbols >> $output_objdir/$soname.def; 8987 fi~ 8988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8989 else 8990 ld_shlibs=no 8991 fi 8992 ;; 8993 8994 haiku*) 8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8996 link_all_deplibs=yes 8997 ;; 8998 8999 os2*) 9000 hardcode_libdir_flag_spec='-L$libdir' 9001 hardcode_minus_L=yes 9002 allow_undefined_flag=unsupported 9003 shrext_cmds=.dll 9004 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9005 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9006 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9007 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9008 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9009 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9010 emximp -o $lib $output_objdir/$libname.def' 9011 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9012 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9013 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9014 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9015 prefix_cmds="$SED"~ 9016 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9017 prefix_cmds="$prefix_cmds -e 1d"; 9018 fi~ 9019 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9020 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9022 emximp -o $lib $output_objdir/$libname.def' 9023 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9024 enable_shared_with_static_runtimes=yes 9025 ;; 9026 9027 interix[3-9]*) 9028 hardcode_direct=no 9029 hardcode_shlibpath_var=no 9030 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9031 export_dynamic_flag_spec='$wl-E' 9032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9033 # Instead, shared libraries are loaded at an image base (0x10000000 by 9034 # default) and relocated if they conflict, which is a slow very memory 9035 # consuming and fragmenting process. To avoid this, we pick a random, 9036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9037 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9039 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' 9040 ;; 9041 9042 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9043 tmp_diet=no 9044 if test linux-dietlibc = "$host_os"; then 9045 case $cc_basename in 9046 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9047 esac 9048 fi 9049 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9050 && test no = "$tmp_diet" 9051 then 9052 tmp_addflag=' $pic_flag' 9053 tmp_sharedflag='-shared' 9054 case $cc_basename,$host_cpu in 9055 pgcc*) # Portland Group C compiler 9056 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' 9057 tmp_addflag=' $pic_flag' 9058 ;; 9059 pgf77* | pgf90* | pgf95* | pgfortran*) 9060 # Portland Group f77 and f90 compilers 9061 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' 9062 tmp_addflag=' $pic_flag -Mnomain' ;; 9063 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9064 tmp_addflag=' -i_dynamic' ;; 9065 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9066 tmp_addflag=' -i_dynamic -nofor_main' ;; 9067 ifc* | ifort*) # Intel Fortran compiler 9068 tmp_addflag=' -nofor_main' ;; 9069 lf95*) # Lahey Fortran 8.1 9070 whole_archive_flag_spec= 9071 tmp_sharedflag='--shared' ;; 9072 nagfor*) # NAGFOR 5.3 9073 tmp_sharedflag='-Wl,-shared' ;; 9074 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9075 tmp_sharedflag='-qmkshrobj' 9076 tmp_addflag= ;; 9077 nvcc*) # Cuda Compiler Driver 2.2 9078 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' 9079 compiler_needs_object=yes 9080 ;; 9081 esac 9082 case `$CC -V 2>&1 | sed 5q` in 9083 *Sun\ C*) # Sun C 5.9 9084 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' 9085 compiler_needs_object=yes 9086 tmp_sharedflag='-G' ;; 9087 *Sun\ F*) # Sun Fortran 8.3 9088 tmp_sharedflag='-G' ;; 9089 esac 9090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9091 9092 if test yes = "$supports_anon_versioning"; then 9093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9095 echo "local: *; };" >> $output_objdir/$libname.ver~ 9096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9097 fi 9098 9099 case $cc_basename in 9100 tcc*) 9101 export_dynamic_flag_spec='-rdynamic' 9102 ;; 9103 xlf* | bgf* | bgxlf* | mpixlf*) 9104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9105 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9106 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9107 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9108 if test yes = "$supports_anon_versioning"; then 9109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9111 echo "local: *; };" >> $output_objdir/$libname.ver~ 9112 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9113 fi 9114 ;; 9115 esac 9116 else 9117 ld_shlibs=no 9118 fi 9119 ;; 9120 9121 netbsd*) 9122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9124 wlarc= 9125 else 9126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9127 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9128 fi 9129 ;; 9130 9131 solaris*) 9132 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9133 ld_shlibs=no 9134 cat <<_LT_EOF 1>&2 9135 9136*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9137*** create shared libraries on Solaris systems. Therefore, libtool 9138*** is disabling shared libraries support. We urge you to upgrade GNU 9139*** binutils to release 2.9.1 or newer. Another option is to modify 9140*** your PATH or compiler configuration so that the native linker is 9141*** used, and then restart. 9142 9143_LT_EOF 9144 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9146 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9147 else 9148 ld_shlibs=no 9149 fi 9150 ;; 9151 9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9153 case `$LD -v 2>&1` in 9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9155 ld_shlibs=no 9156 cat <<_LT_EOF 1>&2 9157 9158*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9159*** reliably create shared libraries on SCO systems. Therefore, libtool 9160*** is disabling shared libraries support. We urge you to upgrade GNU 9161*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9162*** your PATH or compiler configuration so that the native linker is 9163*** used, and then restart. 9164 9165_LT_EOF 9166 ;; 9167 *) 9168 # For security reasons, it is highly recommended that you always 9169 # use absolute paths for naming shared libraries, and exclude the 9170 # DT_RUNPATH tag from executables and libraries. But doing so 9171 # requires that you compile everything twice, which is a pain. 9172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9173 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9176 else 9177 ld_shlibs=no 9178 fi 9179 ;; 9180 esac 9181 ;; 9182 9183 sunos4*) 9184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9185 wlarc= 9186 hardcode_direct=yes 9187 hardcode_shlibpath_var=no 9188 ;; 9189 9190 *) 9191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9193 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9194 else 9195 ld_shlibs=no 9196 fi 9197 ;; 9198 esac 9199 9200 if test no = "$ld_shlibs"; then 9201 runpath_var= 9202 hardcode_libdir_flag_spec= 9203 export_dynamic_flag_spec= 9204 whole_archive_flag_spec= 9205 fi 9206 else 9207 # PORTME fill in a description of your system's linker (not GNU ld) 9208 case $host_os in 9209 aix3*) 9210 allow_undefined_flag=unsupported 9211 always_export_symbols=yes 9212 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' 9213 # Note: this linker hardcodes the directories in LIBPATH if there 9214 # are no directories specified by -L. 9215 hardcode_minus_L=yes 9216 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9217 # Neither direct hardcoding nor static linking is supported with a 9218 # broken collect2. 9219 hardcode_direct=unsupported 9220 fi 9221 ;; 9222 9223 aix[4-9]*) 9224 if test ia64 = "$host_cpu"; then 9225 # On IA64, the linker does run time linking by default, so we don't 9226 # have to do anything special. 9227 aix_use_runtimelinking=no 9228 exp_sym_flag='-Bexport' 9229 no_entry_flag= 9230 else 9231 # If we're using GNU nm, then we don't want the "-C" option. 9232 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9233 # Without the "-l" option, or with the "-B" option, AIX nm treats 9234 # weak defined symbols like other global defined symbols, whereas 9235 # GNU nm marks them as "W". 9236 # While the 'weak' keyword is ignored in the Export File, we need 9237 # it in the Import File for the 'aix-soname' feature, so we have 9238 # to replace the "-B" option with "-P" for AIX nm. 9239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9240 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9241 else 9242 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9243 fi 9244 aix_use_runtimelinking=no 9245 9246 # Test if we are trying to use run time linking or normal 9247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9248 # have runtime linking enabled, and use it for executables. 9249 # For shared libraries, we enable/disable runtime linking 9250 # depending on the kind of the shared library created - 9251 # when "with_aix_soname,aix_use_runtimelinking" is: 9252 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9253 # "aix,yes" lib.so shared, rtl:yes, for executables 9254 # lib.a static archive 9255 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9256 # lib.a(lib.so.V) shared, rtl:no, for executables 9257 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9258 # lib.a(lib.so.V) shared, rtl:no 9259 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9260 # lib.a static archive 9261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9262 for ld_flag in $LDFLAGS; do 9263 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9264 aix_use_runtimelinking=yes 9265 break 9266 fi 9267 done 9268 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9269 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9270 # so we don't have lib.a shared libs to link our executables. 9271 # We have to force runtime linking in this case. 9272 aix_use_runtimelinking=yes 9273 LDFLAGS="$LDFLAGS -Wl,-brtl" 9274 fi 9275 ;; 9276 esac 9277 9278 exp_sym_flag='-bexport' 9279 no_entry_flag='-bnoentry' 9280 fi 9281 9282 # When large executables or shared objects are built, AIX ld can 9283 # have problems creating the table of contents. If linking a library 9284 # or program results in "error TOC overflow" add -mminimal-toc to 9285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9287 9288 archive_cmds='' 9289 hardcode_direct=yes 9290 hardcode_direct_absolute=yes 9291 hardcode_libdir_separator=':' 9292 link_all_deplibs=yes 9293 file_list_spec='$wl-f,' 9294 case $with_aix_soname,$aix_use_runtimelinking in 9295 aix,*) ;; # traditional, no import file 9296 svr4,* | *,yes) # use import file 9297 # The Import File defines what to hardcode. 9298 hardcode_direct=no 9299 hardcode_direct_absolute=no 9300 ;; 9301 esac 9302 9303 if test yes = "$GCC"; then 9304 case $host_os in aix4.[012]|aix4.[012].*) 9305 # We only want to do this on AIX 4.2 and lower, the check 9306 # below for broken collect2 doesn't work under 4.3+ 9307 collect2name=`$CC -print-prog-name=collect2` 9308 if test -f "$collect2name" && 9309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9310 then 9311 # We have reworked collect2 9312 : 9313 else 9314 # We have old collect2 9315 hardcode_direct=unsupported 9316 # It fails to find uninstalled libraries when the uninstalled 9317 # path is not listed in the libpath. Setting hardcode_minus_L 9318 # to unsupported forces relinking 9319 hardcode_minus_L=yes 9320 hardcode_libdir_flag_spec='-L$libdir' 9321 hardcode_libdir_separator= 9322 fi 9323 ;; 9324 esac 9325 shared_flag='-shared' 9326 if test yes = "$aix_use_runtimelinking"; then 9327 shared_flag="$shared_flag "'$wl-G' 9328 fi 9329 # Need to ensure runtime linking is disabled for the traditional 9330 # shared library, or the linker may eventually find shared libraries 9331 # /with/ Import File - we do not want to mix them. 9332 shared_flag_aix='-shared' 9333 shared_flag_svr4='-shared $wl-G' 9334 else 9335 # not using gcc 9336 if test ia64 = "$host_cpu"; then 9337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9338 # chokes on -Wl,-G. The following line is correct: 9339 shared_flag='-G' 9340 else 9341 if test yes = "$aix_use_runtimelinking"; then 9342 shared_flag='$wl-G' 9343 else 9344 shared_flag='$wl-bM:SRE' 9345 fi 9346 shared_flag_aix='$wl-bM:SRE' 9347 shared_flag_svr4='$wl-G' 9348 fi 9349 fi 9350 9351 export_dynamic_flag_spec='$wl-bexpall' 9352 # It seems that -bexpall does not export symbols beginning with 9353 # underscore (_), so it is better to generate a list of symbols to export. 9354 always_export_symbols=yes 9355 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9356 # Warning - without using the other runtime loading flags (-brtl), 9357 # -berok will link without error, but may produce a broken library. 9358 allow_undefined_flag='-berok' 9359 # Determine the default libpath from the value encoded in an 9360 # empty executable. 9361 if test set = "${lt_cv_aix_libpath+set}"; then 9362 aix_libpath=$lt_cv_aix_libpath 9363else 9364 if ${lt_cv_aix_libpath_+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369 9370int 9371main () 9372{ 9373 9374 ; 9375 return 0; 9376} 9377_ACEOF 9378if ac_fn_c_try_link "$LINENO"; then : 9379 9380 lt_aix_libpath_sed=' 9381 /Import File Strings/,/^$/ { 9382 /^0/ { 9383 s/^0 *\([^ ]*\) *$/\1/ 9384 p 9385 } 9386 }' 9387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9388 # Check for a 64-bit object if we didn't find anything. 9389 if test -z "$lt_cv_aix_libpath_"; then 9390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9391 fi 9392fi 9393rm -f core conftest.err conftest.$ac_objext \ 9394 conftest$ac_exeext conftest.$ac_ext 9395 if test -z "$lt_cv_aix_libpath_"; then 9396 lt_cv_aix_libpath_=/usr/lib:/lib 9397 fi 9398 9399fi 9400 9401 aix_libpath=$lt_cv_aix_libpath_ 9402fi 9403 9404 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9405 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9406 else 9407 if test ia64 = "$host_cpu"; then 9408 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9409 allow_undefined_flag="-z nodefs" 9410 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" 9411 else 9412 # Determine the default libpath from the value encoded in an 9413 # empty executable. 9414 if test set = "${lt_cv_aix_libpath+set}"; then 9415 aix_libpath=$lt_cv_aix_libpath 9416else 9417 if ${lt_cv_aix_libpath_+:} false; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421/* end confdefs.h. */ 9422 9423int 9424main () 9425{ 9426 9427 ; 9428 return 0; 9429} 9430_ACEOF 9431if ac_fn_c_try_link "$LINENO"; then : 9432 9433 lt_aix_libpath_sed=' 9434 /Import File Strings/,/^$/ { 9435 /^0/ { 9436 s/^0 *\([^ ]*\) *$/\1/ 9437 p 9438 } 9439 }' 9440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9441 # Check for a 64-bit object if we didn't find anything. 9442 if test -z "$lt_cv_aix_libpath_"; then 9443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9444 fi 9445fi 9446rm -f core conftest.err conftest.$ac_objext \ 9447 conftest$ac_exeext conftest.$ac_ext 9448 if test -z "$lt_cv_aix_libpath_"; then 9449 lt_cv_aix_libpath_=/usr/lib:/lib 9450 fi 9451 9452fi 9453 9454 aix_libpath=$lt_cv_aix_libpath_ 9455fi 9456 9457 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9458 # Warning - without using the other run time loading flags, 9459 # -berok will link without error, but may produce a broken library. 9460 no_undefined_flag=' $wl-bernotok' 9461 allow_undefined_flag=' $wl-berok' 9462 if test yes = "$with_gnu_ld"; then 9463 # We only use this code for GNU lds that support --whole-archive. 9464 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9465 else 9466 # Exported symbols can be pulled into shared objects from archives 9467 whole_archive_flag_spec='$convenience' 9468 fi 9469 archive_cmds_need_lc=yes 9470 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9471 # -brtl affects multiple linker settings, -berok does not and is overridden later 9472 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9473 if test svr4 != "$with_aix_soname"; then 9474 # This is similar to how AIX traditionally builds its shared libraries. 9475 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9476 fi 9477 if test aix != "$with_aix_soname"; then 9478 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9479 else 9480 # used by -dlpreopen to get the symbols 9481 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9482 fi 9483 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9484 fi 9485 fi 9486 ;; 9487 9488 amigaos*) 9489 case $host_cpu in 9490 powerpc) 9491 # see comment about AmigaOS4 .so support 9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9493 archive_expsym_cmds='' 9494 ;; 9495 m68k) 9496 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)' 9497 hardcode_libdir_flag_spec='-L$libdir' 9498 hardcode_minus_L=yes 9499 ;; 9500 esac 9501 ;; 9502 9503 bsdi[45]*) 9504 export_dynamic_flag_spec=-rdynamic 9505 ;; 9506 9507 cygwin* | mingw* | pw32* | cegcc*) 9508 # When not using gcc, we currently assume that we are using 9509 # Microsoft Visual C++. 9510 # hardcode_libdir_flag_spec is actually meaningless, as there is 9511 # no search path for DLLs. 9512 case $cc_basename in 9513 cl*) 9514 # Native MSVC 9515 hardcode_libdir_flag_spec=' ' 9516 allow_undefined_flag=unsupported 9517 always_export_symbols=yes 9518 file_list_spec='@' 9519 # Tell ltmain to make .lib files, not .a files. 9520 libext=lib 9521 # Tell ltmain to make .dll files, not .so files. 9522 shrext_cmds=.dll 9523 # FIXME: Setting linknames here is a bad hack. 9524 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9525 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9526 cp "$export_symbols" "$output_objdir/$soname.def"; 9527 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9528 else 9529 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9530 fi~ 9531 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9532 linknames=' 9533 # The linker will not automatically build a static lib if we build a DLL. 9534 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9535 enable_shared_with_static_runtimes=yes 9536 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9537 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9538 # Don't use ranlib 9539 old_postinstall_cmds='chmod 644 $oldlib' 9540 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9541 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9542 case $lt_outputfile in 9543 *.exe|*.EXE) ;; 9544 *) 9545 lt_outputfile=$lt_outputfile.exe 9546 lt_tool_outputfile=$lt_tool_outputfile.exe 9547 ;; 9548 esac~ 9549 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9550 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9551 $RM "$lt_outputfile.manifest"; 9552 fi' 9553 ;; 9554 *) 9555 # Assume MSVC wrapper 9556 hardcode_libdir_flag_spec=' ' 9557 allow_undefined_flag=unsupported 9558 # Tell ltmain to make .lib files, not .a files. 9559 libext=lib 9560 # Tell ltmain to make .dll files, not .so files. 9561 shrext_cmds=.dll 9562 # FIXME: Setting linknames here is a bad hack. 9563 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9564 # The linker will automatically build a .lib file if we build a DLL. 9565 old_archive_from_new_cmds='true' 9566 # FIXME: Should let the user specify the lib program. 9567 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9568 enable_shared_with_static_runtimes=yes 9569 ;; 9570 esac 9571 ;; 9572 9573 darwin* | rhapsody*) 9574 9575 9576 archive_cmds_need_lc=no 9577 hardcode_direct=no 9578 hardcode_automatic=yes 9579 hardcode_shlibpath_var=unsupported 9580 if test yes = "$lt_cv_ld_force_load"; then 9581 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\"`' 9582 9583 else 9584 whole_archive_flag_spec='' 9585 fi 9586 link_all_deplibs=yes 9587 allow_undefined_flag=$_lt_dar_allow_undefined 9588 case $cc_basename in 9589 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9590 *) _lt_dar_can_shared=$GCC ;; 9591 esac 9592 if test yes = "$_lt_dar_can_shared"; then 9593 output_verbose_link_cmd=func_echo_all 9594 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9595 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9596 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" 9597 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" 9598 9599 else 9600 ld_shlibs=no 9601 fi 9602 9603 ;; 9604 9605 dgux*) 9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9607 hardcode_libdir_flag_spec='-L$libdir' 9608 hardcode_shlibpath_var=no 9609 ;; 9610 9611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9612 # support. Future versions do this automatically, but an explicit c++rt0.o 9613 # does not break anything, and helps significantly (at the cost of a little 9614 # extra space). 9615 freebsd2.2*) 9616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9617 hardcode_libdir_flag_spec='-R$libdir' 9618 hardcode_direct=yes 9619 hardcode_shlibpath_var=no 9620 ;; 9621 9622 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9623 freebsd2.*) 9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9625 hardcode_direct=yes 9626 hardcode_minus_L=yes 9627 hardcode_shlibpath_var=no 9628 ;; 9629 9630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9631 freebsd* | dragonfly*) 9632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9633 hardcode_libdir_flag_spec='-R$libdir' 9634 hardcode_direct=yes 9635 hardcode_shlibpath_var=no 9636 ;; 9637 9638 hpux9*) 9639 if test yes = "$GCC"; then 9640 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9641 else 9642 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9643 fi 9644 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9645 hardcode_libdir_separator=: 9646 hardcode_direct=yes 9647 9648 # hardcode_minus_L: Not really in the search PATH, 9649 # but as the default location of the library. 9650 hardcode_minus_L=yes 9651 export_dynamic_flag_spec='$wl-E' 9652 ;; 9653 9654 hpux10*) 9655 if test yes,no = "$GCC,$with_gnu_ld"; then 9656 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9657 else 9658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9659 fi 9660 if test no = "$with_gnu_ld"; then 9661 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9662 hardcode_libdir_separator=: 9663 hardcode_direct=yes 9664 hardcode_direct_absolute=yes 9665 export_dynamic_flag_spec='$wl-E' 9666 # hardcode_minus_L: Not really in the search PATH, 9667 # but as the default location of the library. 9668 hardcode_minus_L=yes 9669 fi 9670 ;; 9671 9672 hpux11*) 9673 if test yes,no = "$GCC,$with_gnu_ld"; then 9674 case $host_cpu in 9675 hppa*64*) 9676 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9677 ;; 9678 ia64*) 9679 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9680 ;; 9681 *) 9682 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9683 ;; 9684 esac 9685 else 9686 case $host_cpu in 9687 hppa*64*) 9688 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9689 ;; 9690 ia64*) 9691 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9692 ;; 9693 *) 9694 9695 # Older versions of the 11.00 compiler do not understand -b yet 9696 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9698$as_echo_n "checking if $CC understands -b... " >&6; } 9699if ${lt_cv_prog_compiler__b+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 lt_cv_prog_compiler__b=no 9703 save_LDFLAGS=$LDFLAGS 9704 LDFLAGS="$LDFLAGS -b" 9705 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9707 # The linker can only warn and ignore the option if not recognized 9708 # So say no if there are warnings 9709 if test -s conftest.err; then 9710 # Append any errors to the config.log. 9711 cat conftest.err 1>&5 9712 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9714 if diff conftest.exp conftest.er2 >/dev/null; then 9715 lt_cv_prog_compiler__b=yes 9716 fi 9717 else 9718 lt_cv_prog_compiler__b=yes 9719 fi 9720 fi 9721 $RM -r conftest* 9722 LDFLAGS=$save_LDFLAGS 9723 9724fi 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9726$as_echo "$lt_cv_prog_compiler__b" >&6; } 9727 9728if test yes = "$lt_cv_prog_compiler__b"; then 9729 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9730else 9731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9732fi 9733 9734 ;; 9735 esac 9736 fi 9737 if test no = "$with_gnu_ld"; then 9738 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9739 hardcode_libdir_separator=: 9740 9741 case $host_cpu in 9742 hppa*64*|ia64*) 9743 hardcode_direct=no 9744 hardcode_shlibpath_var=no 9745 ;; 9746 *) 9747 hardcode_direct=yes 9748 hardcode_direct_absolute=yes 9749 export_dynamic_flag_spec='$wl-E' 9750 9751 # hardcode_minus_L: Not really in the search PATH, 9752 # but as the default location of the library. 9753 hardcode_minus_L=yes 9754 ;; 9755 esac 9756 fi 9757 ;; 9758 9759 irix5* | irix6* | nonstopux*) 9760 if test yes = "$GCC"; then 9761 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' 9762 # Try to use the -exported_symbol ld option, if it does not 9763 # work, assume that -exports_file does not work either and 9764 # implicitly export all symbols. 9765 # This should be the same for all languages, so no per-tag cache variable. 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9767$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9768if ${lt_cv_irix_exported_symbol+:} false; then : 9769 $as_echo_n "(cached) " >&6 9770else 9771 save_LDFLAGS=$LDFLAGS 9772 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775int foo (void) { return 0; } 9776_ACEOF 9777if ac_fn_c_try_link "$LINENO"; then : 9778 lt_cv_irix_exported_symbol=yes 9779else 9780 lt_cv_irix_exported_symbol=no 9781fi 9782rm -f core conftest.err conftest.$ac_objext \ 9783 conftest$ac_exeext conftest.$ac_ext 9784 LDFLAGS=$save_LDFLAGS 9785fi 9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9787$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9788 if test yes = "$lt_cv_irix_exported_symbol"; then 9789 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' 9790 fi 9791 else 9792 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' 9793 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' 9794 fi 9795 archive_cmds_need_lc='no' 9796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9797 hardcode_libdir_separator=: 9798 inherit_rpath=yes 9799 link_all_deplibs=yes 9800 ;; 9801 9802 linux*) 9803 case $cc_basename in 9804 tcc*) 9805 # Fabrice Bellard et al's Tiny C Compiler 9806 ld_shlibs=yes 9807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9808 ;; 9809 esac 9810 ;; 9811 9812 netbsd*) 9813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9815 else 9816 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9817 fi 9818 hardcode_libdir_flag_spec='-R$libdir' 9819 hardcode_direct=yes 9820 hardcode_shlibpath_var=no 9821 ;; 9822 9823 newsos6) 9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9825 hardcode_direct=yes 9826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9827 hardcode_libdir_separator=: 9828 hardcode_shlibpath_var=no 9829 ;; 9830 9831 *nto* | *qnx*) 9832 ;; 9833 9834 openbsd* | bitrig*) 9835 if test -f /usr/libexec/ld.so; then 9836 hardcode_direct=yes 9837 hardcode_shlibpath_var=no 9838 hardcode_direct_absolute=yes 9839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9842 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9843 export_dynamic_flag_spec='$wl-E' 9844 else 9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9846 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9847 fi 9848 else 9849 ld_shlibs=no 9850 fi 9851 ;; 9852 9853 os2*) 9854 hardcode_libdir_flag_spec='-L$libdir' 9855 hardcode_minus_L=yes 9856 allow_undefined_flag=unsupported 9857 shrext_cmds=.dll 9858 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9861 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9862 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9864 emximp -o $lib $output_objdir/$libname.def' 9865 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9866 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9867 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9868 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9869 prefix_cmds="$SED"~ 9870 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9871 prefix_cmds="$prefix_cmds -e 1d"; 9872 fi~ 9873 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9874 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9876 emximp -o $lib $output_objdir/$libname.def' 9877 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9878 enable_shared_with_static_runtimes=yes 9879 ;; 9880 9881 osf3*) 9882 if test yes = "$GCC"; then 9883 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9884 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' 9885 else 9886 allow_undefined_flag=' -expect_unresolved \*' 9887 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' 9888 fi 9889 archive_cmds_need_lc='no' 9890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9891 hardcode_libdir_separator=: 9892 ;; 9893 9894 osf4* | osf5*) # as osf3* with the addition of -msym flag 9895 if test yes = "$GCC"; then 9896 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9897 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' 9898 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9899 else 9900 allow_undefined_flag=' -expect_unresolved \*' 9901 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' 9902 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~ 9903 $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' 9904 9905 # Both c and cxx compiler support -rpath directly 9906 hardcode_libdir_flag_spec='-rpath $libdir' 9907 fi 9908 archive_cmds_need_lc='no' 9909 hardcode_libdir_separator=: 9910 ;; 9911 9912 solaris*) 9913 no_undefined_flag=' -z defs' 9914 if test yes = "$GCC"; then 9915 wlarc='$wl' 9916 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9918 $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' 9919 else 9920 case `$CC -V 2>&1` in 9921 *"Compilers 5.0"*) 9922 wlarc='' 9923 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9924 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9925 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9926 ;; 9927 *) 9928 wlarc='$wl' 9929 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9931 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9932 ;; 9933 esac 9934 fi 9935 hardcode_libdir_flag_spec='-R$libdir' 9936 hardcode_shlibpath_var=no 9937 case $host_os in 9938 solaris2.[0-5] | solaris2.[0-5].*) ;; 9939 *) 9940 # The compiler driver will combine and reorder linker options, 9941 # but understands '-z linker_flag'. GCC discards it without '$wl', 9942 # but is careful enough not to reorder. 9943 # Supported since Solaris 2.6 (maybe 2.5.1?) 9944 if test yes = "$GCC"; then 9945 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9946 else 9947 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9948 fi 9949 ;; 9950 esac 9951 link_all_deplibs=yes 9952 ;; 9953 9954 sunos4*) 9955 if test sequent = "$host_vendor"; then 9956 # Use $CC to link under sequent, because it throws in some extra .o 9957 # files that make .init and .fini sections work. 9958 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9959 else 9960 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9961 fi 9962 hardcode_libdir_flag_spec='-L$libdir' 9963 hardcode_direct=yes 9964 hardcode_minus_L=yes 9965 hardcode_shlibpath_var=no 9966 ;; 9967 9968 sysv4) 9969 case $host_vendor in 9970 sni) 9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9972 hardcode_direct=yes # is this really true??? 9973 ;; 9974 siemens) 9975 ## LD is ld it makes a PLAMLIB 9976 ## CC just makes a GrossModule. 9977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9978 reload_cmds='$CC -r -o $output$reload_objs' 9979 hardcode_direct=no 9980 ;; 9981 motorola) 9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9983 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9984 ;; 9985 esac 9986 runpath_var='LD_RUN_PATH' 9987 hardcode_shlibpath_var=no 9988 ;; 9989 9990 sysv4.3*) 9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9992 hardcode_shlibpath_var=no 9993 export_dynamic_flag_spec='-Bexport' 9994 ;; 9995 9996 sysv4*MP*) 9997 if test -d /usr/nec; then 9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9999 hardcode_shlibpath_var=no 10000 runpath_var=LD_RUN_PATH 10001 hardcode_runpath_var=yes 10002 ld_shlibs=yes 10003 fi 10004 ;; 10005 10006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10007 no_undefined_flag='$wl-z,text' 10008 archive_cmds_need_lc=no 10009 hardcode_shlibpath_var=no 10010 runpath_var='LD_RUN_PATH' 10011 10012 if test yes = "$GCC"; then 10013 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10014 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10015 else 10016 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10017 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10018 fi 10019 ;; 10020 10021 sysv5* | sco3.2v5* | sco5v6*) 10022 # Note: We CANNOT use -z defs as we might desire, because we do not 10023 # link with -lc, and that would cause any symbols used from libc to 10024 # always be unresolved, which means just about no library would 10025 # ever link correctly. If we're not using GNU ld we use -z text 10026 # though, which does catch some bad symbols but isn't as heavy-handed 10027 # as -z defs. 10028 no_undefined_flag='$wl-z,text' 10029 allow_undefined_flag='$wl-z,nodefs' 10030 archive_cmds_need_lc=no 10031 hardcode_shlibpath_var=no 10032 hardcode_libdir_flag_spec='$wl-R,$libdir' 10033 hardcode_libdir_separator=':' 10034 link_all_deplibs=yes 10035 export_dynamic_flag_spec='$wl-Bexport' 10036 runpath_var='LD_RUN_PATH' 10037 10038 if test yes = "$GCC"; then 10039 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10040 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10041 else 10042 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10043 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10044 fi 10045 ;; 10046 10047 uts4*) 10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10049 hardcode_libdir_flag_spec='-L$libdir' 10050 hardcode_shlibpath_var=no 10051 ;; 10052 10053 *) 10054 ld_shlibs=no 10055 ;; 10056 esac 10057 10058 if test sni = "$host_vendor"; then 10059 case $host in 10060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10061 export_dynamic_flag_spec='$wl-Blargedynsym' 10062 ;; 10063 esac 10064 fi 10065 fi 10066 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10068$as_echo "$ld_shlibs" >&6; } 10069test no = "$ld_shlibs" && can_build_shared=no 10070 10071with_gnu_ld=$with_gnu_ld 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087# 10088# Do we need to explicitly link libc? 10089# 10090case "x$archive_cmds_need_lc" in 10091x|xyes) 10092 # Assume -lc should be added 10093 archive_cmds_need_lc=yes 10094 10095 if test yes,yes = "$GCC,$enable_shared"; then 10096 case $archive_cmds in 10097 *'~'*) 10098 # FIXME: we may have to deal with multi-command sequences. 10099 ;; 10100 '$CC '*) 10101 # Test whether the compiler implicitly links with -lc since on some 10102 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10103 # to ld, don't add -lc before -lgcc. 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10105$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10106if ${lt_cv_archive_cmds_need_lc+:} false; then : 10107 $as_echo_n "(cached) " >&6 10108else 10109 $RM conftest* 10110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10111 10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10113 (eval $ac_compile) 2>&5 10114 ac_status=$? 10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10116 test $ac_status = 0; } 2>conftest.err; then 10117 soname=conftest 10118 lib=conftest 10119 libobjs=conftest.$ac_objext 10120 deplibs= 10121 wl=$lt_prog_compiler_wl 10122 pic_flag=$lt_prog_compiler_pic 10123 compiler_flags=-v 10124 linker_flags=-v 10125 verstring= 10126 output_objdir=. 10127 libname=conftest 10128 lt_save_allow_undefined_flag=$allow_undefined_flag 10129 allow_undefined_flag= 10130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10131 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10132 ac_status=$? 10133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10134 test $ac_status = 0; } 10135 then 10136 lt_cv_archive_cmds_need_lc=no 10137 else 10138 lt_cv_archive_cmds_need_lc=yes 10139 fi 10140 allow_undefined_flag=$lt_save_allow_undefined_flag 10141 else 10142 cat conftest.err 1>&5 10143 fi 10144 $RM conftest* 10145 10146fi 10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10148$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10149 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10150 ;; 10151 esac 10152 fi 10153 ;; 10154esac 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10308$as_echo_n "checking dynamic linker characteristics... " >&6; } 10309 10310if test yes = "$GCC"; then 10311 case $host_os in 10312 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10313 *) lt_awk_arg='/^libraries:/' ;; 10314 esac 10315 case $host_os in 10316 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10317 *) lt_sed_strip_eq='s|=/|/|g' ;; 10318 esac 10319 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10320 case $lt_search_path_spec in 10321 *\;*) 10322 # if the path contains ";" then we assume it to be the separator 10323 # otherwise default to the standard path separator (i.e. ":") - it is 10324 # assumed that no part of a normal pathname contains ";" but that should 10325 # okay in the real world where ";" in dirpaths is itself problematic. 10326 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10327 ;; 10328 *) 10329 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10330 ;; 10331 esac 10332 # Ok, now we have the path, separated by spaces, we can step through it 10333 # and add multilib dir if necessary... 10334 lt_tmp_lt_search_path_spec= 10335 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10336 # ...but if some path component already ends with the multilib dir we assume 10337 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10338 case "$lt_multi_os_dir; $lt_search_path_spec " in 10339 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10340 lt_multi_os_dir= 10341 ;; 10342 esac 10343 for lt_sys_path in $lt_search_path_spec; do 10344 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10345 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10346 elif test -n "$lt_multi_os_dir"; then 10347 test -d "$lt_sys_path" && \ 10348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10349 fi 10350 done 10351 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10352BEGIN {RS = " "; FS = "/|\n";} { 10353 lt_foo = ""; 10354 lt_count = 0; 10355 for (lt_i = NF; lt_i > 0; lt_i--) { 10356 if ($lt_i != "" && $lt_i != ".") { 10357 if ($lt_i == "..") { 10358 lt_count++; 10359 } else { 10360 if (lt_count == 0) { 10361 lt_foo = "/" $lt_i lt_foo; 10362 } else { 10363 lt_count--; 10364 } 10365 } 10366 } 10367 } 10368 if (lt_foo != "") { lt_freq[lt_foo]++; } 10369 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10370}'` 10371 # AWK program above erroneously prepends '/' to C:/dos/paths 10372 # for these hosts. 10373 case $host_os in 10374 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10375 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10376 esac 10377 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10378else 10379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10380fi 10381library_names_spec= 10382libname_spec='lib$name' 10383soname_spec= 10384shrext_cmds=.so 10385postinstall_cmds= 10386postuninstall_cmds= 10387finish_cmds= 10388finish_eval= 10389shlibpath_var= 10390shlibpath_overrides_runpath=unknown 10391version_type=none 10392dynamic_linker="$host_os ld.so" 10393sys_lib_dlsearch_path_spec="/lib /usr/lib" 10394need_lib_prefix=unknown 10395hardcode_into_libs=no 10396 10397# when you set need_version to no, make sure it does not cause -set_version 10398# flags to be left without arguments 10399need_version=unknown 10400 10401 10402 10403case $host_os in 10404aix3*) 10405 version_type=linux # correct to gnu/linux during the next big refactor 10406 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10407 shlibpath_var=LIBPATH 10408 10409 # AIX 3 has no versioning support, so we append a major version to the name. 10410 soname_spec='$libname$release$shared_ext$major' 10411 ;; 10412 10413aix[4-9]*) 10414 version_type=linux # correct to gnu/linux during the next big refactor 10415 need_lib_prefix=no 10416 need_version=no 10417 hardcode_into_libs=yes 10418 if test ia64 = "$host_cpu"; then 10419 # AIX 5 supports IA64 10420 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10421 shlibpath_var=LD_LIBRARY_PATH 10422 else 10423 # With GCC up to 2.95.x, collect2 would create an import file 10424 # for dependence libraries. The import file would start with 10425 # the line '#! .'. This would cause the generated library to 10426 # depend on '.', always an invalid library. This was fixed in 10427 # development snapshots of GCC prior to 3.0. 10428 case $host_os in 10429 aix4 | aix4.[01] | aix4.[01].*) 10430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10431 echo ' yes ' 10432 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10433 : 10434 else 10435 can_build_shared=no 10436 fi 10437 ;; 10438 esac 10439 # Using Import Files as archive members, it is possible to support 10440 # filename-based versioning of shared library archives on AIX. While 10441 # this would work for both with and without runtime linking, it will 10442 # prevent static linking of such archives. So we do filename-based 10443 # shared library versioning with .so extension only, which is used 10444 # when both runtime linking and shared linking is enabled. 10445 # Unfortunately, runtime linking may impact performance, so we do 10446 # not want this to be the default eventually. Also, we use the 10447 # versioned .so libs for executables only if there is the -brtl 10448 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10449 # To allow for filename-based versioning support, we need to create 10450 # libNAME.so.V as an archive file, containing: 10451 # *) an Import File, referring to the versioned filename of the 10452 # archive as well as the shared archive member, telling the 10453 # bitwidth (32 or 64) of that shared object, and providing the 10454 # list of exported symbols of that shared object, eventually 10455 # decorated with the 'weak' keyword 10456 # *) the shared object with the F_LOADONLY flag set, to really avoid 10457 # it being seen by the linker. 10458 # At run time we better use the real file rather than another symlink, 10459 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10460 10461 case $with_aix_soname,$aix_use_runtimelinking in 10462 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10463 # soname into executable. Probably we can add versioning support to 10464 # collect2, so additional links can be useful in future. 10465 aix,yes) # traditional libtool 10466 dynamic_linker='AIX unversionable lib.so' 10467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10468 # instead of lib<name>.a to let people know that these are not 10469 # typical AIX shared libraries. 10470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10471 ;; 10472 aix,no) # traditional AIX only 10473 dynamic_linker='AIX lib.a(lib.so.V)' 10474 # We preserve .a as extension for shared libraries through AIX4.2 10475 # and later when we are not doing run time linking. 10476 library_names_spec='$libname$release.a $libname.a' 10477 soname_spec='$libname$release$shared_ext$major' 10478 ;; 10479 svr4,*) # full svr4 only 10480 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10481 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10482 # We do not specify a path in Import Files, so LIBPATH fires. 10483 shlibpath_overrides_runpath=yes 10484 ;; 10485 *,yes) # both, prefer svr4 10486 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10488 # unpreferred sharedlib libNAME.a needs extra handling 10489 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10490 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10491 # We do not specify a path in Import Files, so LIBPATH fires. 10492 shlibpath_overrides_runpath=yes 10493 ;; 10494 *,no) # both, prefer aix 10495 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10496 library_names_spec='$libname$release.a $libname.a' 10497 soname_spec='$libname$release$shared_ext$major' 10498 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10499 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10500 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10501 ;; 10502 esac 10503 shlibpath_var=LIBPATH 10504 fi 10505 ;; 10506 10507amigaos*) 10508 case $host_cpu in 10509 powerpc) 10510 # Since July 2007 AmigaOS4 officially supports .so libraries. 10511 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10513 ;; 10514 m68k) 10515 library_names_spec='$libname.ixlibrary $libname.a' 10516 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10517 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10518 ;; 10519 esac 10520 ;; 10521 10522beos*) 10523 library_names_spec='$libname$shared_ext' 10524 dynamic_linker="$host_os ld.so" 10525 shlibpath_var=LIBRARY_PATH 10526 ;; 10527 10528bsdi[45]*) 10529 version_type=linux # correct to gnu/linux during the next big refactor 10530 need_version=no 10531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10532 soname_spec='$libname$release$shared_ext$major' 10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10534 shlibpath_var=LD_LIBRARY_PATH 10535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10537 # the default ld.so.conf also contains /usr/contrib/lib and 10538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10539 # libtool to hard-code these into programs 10540 ;; 10541 10542cygwin* | mingw* | pw32* | cegcc*) 10543 version_type=windows 10544 shrext_cmds=.dll 10545 need_version=no 10546 need_lib_prefix=no 10547 10548 case $GCC,$cc_basename in 10549 yes,*) 10550 # gcc 10551 library_names_spec='$libname.dll.a' 10552 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10553 postinstall_cmds='base_file=`basename \$file`~ 10554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10555 dldir=$destdir/`dirname \$dlpath`~ 10556 test -d \$dldir || mkdir -p \$dldir~ 10557 $install_prog $dir/$dlname \$dldir/$dlname~ 10558 chmod a+x \$dldir/$dlname~ 10559 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10560 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10561 fi' 10562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10563 dlpath=$dir/\$dldll~ 10564 $RM \$dlpath' 10565 shlibpath_overrides_runpath=yes 10566 10567 case $host_os in 10568 cygwin*) 10569 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10570 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10571 10572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10573 ;; 10574 mingw* | cegcc*) 10575 # MinGW DLLs use traditional 'lib' prefix 10576 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10577 ;; 10578 pw32*) 10579 # pw32 DLLs use 'pw' prefix rather than 'lib' 10580 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10581 ;; 10582 esac 10583 dynamic_linker='Win32 ld.exe' 10584 ;; 10585 10586 *,cl*) 10587 # Native MSVC 10588 libname_spec='$name' 10589 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10590 library_names_spec='$libname.dll.lib' 10591 10592 case $build_os in 10593 mingw*) 10594 sys_lib_search_path_spec= 10595 lt_save_ifs=$IFS 10596 IFS=';' 10597 for lt_path in $LIB 10598 do 10599 IFS=$lt_save_ifs 10600 # Let DOS variable expansion print the short 8.3 style file name. 10601 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10602 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10603 done 10604 IFS=$lt_save_ifs 10605 # Convert to MSYS style. 10606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10607 ;; 10608 cygwin*) 10609 # Convert to unix form, then to dos form, then back to unix form 10610 # but this time dos style (no spaces!) so that the unix form looks 10611 # like /cygdrive/c/PROGRA~1:/cygdr... 10612 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10613 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10614 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10615 ;; 10616 *) 10617 sys_lib_search_path_spec=$LIB 10618 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10619 # It is most probably a Windows format PATH. 10620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10621 else 10622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10623 fi 10624 # FIXME: find the short name or the path components, as spaces are 10625 # common. (e.g. "Program Files" -> "PROGRA~1") 10626 ;; 10627 esac 10628 10629 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10630 postinstall_cmds='base_file=`basename \$file`~ 10631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10632 dldir=$destdir/`dirname \$dlpath`~ 10633 test -d \$dldir || mkdir -p \$dldir~ 10634 $install_prog $dir/$dlname \$dldir/$dlname' 10635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10636 dlpath=$dir/\$dldll~ 10637 $RM \$dlpath' 10638 shlibpath_overrides_runpath=yes 10639 dynamic_linker='Win32 link.exe' 10640 ;; 10641 10642 *) 10643 # Assume MSVC wrapper 10644 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10645 dynamic_linker='Win32 ld.exe' 10646 ;; 10647 esac 10648 # FIXME: first we should search . and the directory the executable is in 10649 shlibpath_var=PATH 10650 ;; 10651 10652darwin* | rhapsody*) 10653 dynamic_linker="$host_os dyld" 10654 version_type=darwin 10655 need_lib_prefix=no 10656 need_version=no 10657 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10658 soname_spec='$libname$release$major$shared_ext' 10659 shlibpath_overrides_runpath=yes 10660 shlibpath_var=DYLD_LIBRARY_PATH 10661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10662 10663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10665 ;; 10666 10667dgux*) 10668 version_type=linux # correct to gnu/linux during the next big refactor 10669 need_lib_prefix=no 10670 need_version=no 10671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10672 soname_spec='$libname$release$shared_ext$major' 10673 shlibpath_var=LD_LIBRARY_PATH 10674 ;; 10675 10676freebsd* | dragonfly*) 10677 # DragonFly does not have aout. When/if they implement a new 10678 # versioning mechanism, adjust this. 10679 if test -x /usr/bin/objformat; then 10680 objformat=`/usr/bin/objformat` 10681 else 10682 case $host_os in 10683 freebsd[23].*) objformat=aout ;; 10684 *) objformat=elf ;; 10685 esac 10686 fi 10687 version_type=freebsd-$objformat 10688 case $version_type in 10689 freebsd-elf*) 10690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10691 soname_spec='$libname$release$shared_ext$major' 10692 need_version=no 10693 need_lib_prefix=no 10694 ;; 10695 freebsd-*) 10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10697 need_version=yes 10698 ;; 10699 esac 10700 shlibpath_var=LD_LIBRARY_PATH 10701 case $host_os in 10702 freebsd2.*) 10703 shlibpath_overrides_runpath=yes 10704 ;; 10705 freebsd3.[01]* | freebsdelf3.[01]*) 10706 shlibpath_overrides_runpath=yes 10707 hardcode_into_libs=yes 10708 ;; 10709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10711 shlibpath_overrides_runpath=no 10712 hardcode_into_libs=yes 10713 ;; 10714 *) # from 4.6 on, and DragonFly 10715 shlibpath_overrides_runpath=yes 10716 hardcode_into_libs=yes 10717 ;; 10718 esac 10719 ;; 10720 10721haiku*) 10722 version_type=linux # correct to gnu/linux during the next big refactor 10723 need_lib_prefix=no 10724 need_version=no 10725 dynamic_linker="$host_os runtime_loader" 10726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10727 soname_spec='$libname$release$shared_ext$major' 10728 shlibpath_var=LIBRARY_PATH 10729 shlibpath_overrides_runpath=no 10730 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10731 hardcode_into_libs=yes 10732 ;; 10733 10734hpux9* | hpux10* | hpux11*) 10735 # Give a soname corresponding to the major version so that dld.sl refuses to 10736 # link against other versions. 10737 version_type=sunos 10738 need_lib_prefix=no 10739 need_version=no 10740 case $host_cpu in 10741 ia64*) 10742 shrext_cmds='.so' 10743 hardcode_into_libs=yes 10744 dynamic_linker="$host_os dld.so" 10745 shlibpath_var=LD_LIBRARY_PATH 10746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10748 soname_spec='$libname$release$shared_ext$major' 10749 if test 32 = "$HPUX_IA64_MODE"; then 10750 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10751 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10752 else 10753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10754 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10755 fi 10756 ;; 10757 hppa*64*) 10758 shrext_cmds='.sl' 10759 hardcode_into_libs=yes 10760 dynamic_linker="$host_os dld.sl" 10761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10764 soname_spec='$libname$release$shared_ext$major' 10765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10767 ;; 10768 *) 10769 shrext_cmds='.sl' 10770 dynamic_linker="$host_os dld.sl" 10771 shlibpath_var=SHLIB_PATH 10772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10774 soname_spec='$libname$release$shared_ext$major' 10775 ;; 10776 esac 10777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10778 postinstall_cmds='chmod 555 $lib' 10779 # or fails outright, so override atomically: 10780 install_override_mode=555 10781 ;; 10782 10783interix[3-9]*) 10784 version_type=linux # correct to gnu/linux during the next big refactor 10785 need_lib_prefix=no 10786 need_version=no 10787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10788 soname_spec='$libname$release$shared_ext$major' 10789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10790 shlibpath_var=LD_LIBRARY_PATH 10791 shlibpath_overrides_runpath=no 10792 hardcode_into_libs=yes 10793 ;; 10794 10795irix5* | irix6* | nonstopux*) 10796 case $host_os in 10797 nonstopux*) version_type=nonstopux ;; 10798 *) 10799 if test yes = "$lt_cv_prog_gnu_ld"; then 10800 version_type=linux # correct to gnu/linux during the next big refactor 10801 else 10802 version_type=irix 10803 fi ;; 10804 esac 10805 need_lib_prefix=no 10806 need_version=no 10807 soname_spec='$libname$release$shared_ext$major' 10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10809 case $host_os in 10810 irix5* | nonstopux*) 10811 libsuff= shlibsuff= 10812 ;; 10813 *) 10814 case $LD in # libtool.m4 will add one of these switches to LD 10815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10816 libsuff= shlibsuff= libmagic=32-bit;; 10817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10818 libsuff=32 shlibsuff=N32 libmagic=N32;; 10819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10820 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10821 *) libsuff= shlibsuff= libmagic=never-match;; 10822 esac 10823 ;; 10824 esac 10825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10826 shlibpath_overrides_runpath=no 10827 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10828 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10829 hardcode_into_libs=yes 10830 ;; 10831 10832# No shared lib support for Linux oldld, aout, or coff. 10833linux*oldld* | linux*aout* | linux*coff*) 10834 dynamic_linker=no 10835 ;; 10836 10837linux*android*) 10838 version_type=none # Android doesn't support versioned libraries. 10839 need_lib_prefix=no 10840 need_version=no 10841 library_names_spec='$libname$release$shared_ext' 10842 soname_spec='$libname$release$shared_ext' 10843 finish_cmds= 10844 shlibpath_var=LD_LIBRARY_PATH 10845 shlibpath_overrides_runpath=yes 10846 10847 # This implies no fast_install, which is unacceptable. 10848 # Some rework will be needed to allow for fast_install 10849 # before this can be enabled. 10850 hardcode_into_libs=yes 10851 10852 dynamic_linker='Android linker' 10853 # Don't embed -rpath directories since the linker doesn't support them. 10854 hardcode_libdir_flag_spec='-L$libdir' 10855 ;; 10856 10857# This must be glibc/ELF. 10858linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10859 version_type=linux # correct to gnu/linux during the next big refactor 10860 need_lib_prefix=no 10861 need_version=no 10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10863 soname_spec='$libname$release$shared_ext$major' 10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10865 shlibpath_var=LD_LIBRARY_PATH 10866 shlibpath_overrides_runpath=no 10867 10868 # Some binutils ld are patched to set DT_RUNPATH 10869 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10870 $as_echo_n "(cached) " >&6 10871else 10872 lt_cv_shlibpath_overrides_runpath=no 10873 save_LDFLAGS=$LDFLAGS 10874 save_libdir=$libdir 10875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879 10880int 10881main () 10882{ 10883 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888if ac_fn_c_try_link "$LINENO"; then : 10889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10890 lt_cv_shlibpath_overrides_runpath=yes 10891fi 10892fi 10893rm -f core conftest.err conftest.$ac_objext \ 10894 conftest$ac_exeext conftest.$ac_ext 10895 LDFLAGS=$save_LDFLAGS 10896 libdir=$save_libdir 10897 10898fi 10899 10900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10901 10902 # This implies no fast_install, which is unacceptable. 10903 # Some rework will be needed to allow for fast_install 10904 # before this can be enabled. 10905 hardcode_into_libs=yes 10906 10907 # Ideally, we could use ldconfig to report *all* directores which are 10908 # searched for libraries, however this is still not possible. Aside from not 10909 # being certain /sbin/ldconfig is available, command 10910 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10911 # even though it is searched at run-time. Try to do the best guess by 10912 # appending ld.so.conf contents (and includes) to the search path. 10913 if test -f /etc/ld.so.conf; then 10914 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' ' '` 10915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10916 fi 10917 10918 # We used to test for /lib/ld.so.1 and disable shared libraries on 10919 # powerpc, because MkLinux only supported shared libraries with the 10920 # GNU dynamic linker. Since this was broken with cross compilers, 10921 # most powerpc-linux boxes support dynamic linking these days and 10922 # people can always --disable-shared, the test was removed, and we 10923 # assume the GNU/Linux dynamic linker is in use. 10924 dynamic_linker='GNU/Linux ld.so' 10925 ;; 10926 10927netbsd*) 10928 version_type=sunos 10929 need_lib_prefix=no 10930 need_version=no 10931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10934 dynamic_linker='NetBSD (a.out) ld.so' 10935 else 10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10937 soname_spec='$libname$release$shared_ext$major' 10938 dynamic_linker='NetBSD ld.elf_so' 10939 fi 10940 shlibpath_var=LD_LIBRARY_PATH 10941 shlibpath_overrides_runpath=yes 10942 hardcode_into_libs=yes 10943 ;; 10944 10945newsos6) 10946 version_type=linux # correct to gnu/linux during the next big refactor 10947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10948 shlibpath_var=LD_LIBRARY_PATH 10949 shlibpath_overrides_runpath=yes 10950 ;; 10951 10952*nto* | *qnx*) 10953 version_type=qnx 10954 need_lib_prefix=no 10955 need_version=no 10956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10957 soname_spec='$libname$release$shared_ext$major' 10958 shlibpath_var=LD_LIBRARY_PATH 10959 shlibpath_overrides_runpath=no 10960 hardcode_into_libs=yes 10961 dynamic_linker='ldqnx.so' 10962 ;; 10963 10964openbsd* | bitrig*) 10965 version_type=sunos 10966 sys_lib_dlsearch_path_spec=/usr/lib 10967 need_lib_prefix=no 10968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10969 need_version=no 10970 else 10971 need_version=yes 10972 fi 10973 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10975 shlibpath_var=LD_LIBRARY_PATH 10976 shlibpath_overrides_runpath=yes 10977 ;; 10978 10979os2*) 10980 libname_spec='$name' 10981 version_type=windows 10982 shrext_cmds=.dll 10983 need_version=no 10984 need_lib_prefix=no 10985 # OS/2 can only load a DLL with a base name of 8 characters or less. 10986 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10987 v=$($ECHO $release$versuffix | tr -d .-); 10988 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10989 $ECHO $n$v`$shared_ext' 10990 library_names_spec='${libname}_dll.$libext' 10991 dynamic_linker='OS/2 ld.exe' 10992 shlibpath_var=BEGINLIBPATH 10993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10995 postinstall_cmds='base_file=`basename \$file`~ 10996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10997 dldir=$destdir/`dirname \$dlpath`~ 10998 test -d \$dldir || mkdir -p \$dldir~ 10999 $install_prog $dir/$dlname \$dldir/$dlname~ 11000 chmod a+x \$dldir/$dlname~ 11001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11003 fi' 11004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11005 dlpath=$dir/\$dldll~ 11006 $RM \$dlpath' 11007 ;; 11008 11009osf3* | osf4* | osf5*) 11010 version_type=osf 11011 need_lib_prefix=no 11012 need_version=no 11013 soname_spec='$libname$release$shared_ext$major' 11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11015 shlibpath_var=LD_LIBRARY_PATH 11016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11018 ;; 11019 11020rdos*) 11021 dynamic_linker=no 11022 ;; 11023 11024solaris*) 11025 version_type=linux # correct to gnu/linux during the next big refactor 11026 need_lib_prefix=no 11027 need_version=no 11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11029 soname_spec='$libname$release$shared_ext$major' 11030 shlibpath_var=LD_LIBRARY_PATH 11031 shlibpath_overrides_runpath=yes 11032 hardcode_into_libs=yes 11033 # ldd complains unless libraries are executable 11034 postinstall_cmds='chmod +x $lib' 11035 ;; 11036 11037sunos4*) 11038 version_type=sunos 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11040 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11041 shlibpath_var=LD_LIBRARY_PATH 11042 shlibpath_overrides_runpath=yes 11043 if test yes = "$with_gnu_ld"; then 11044 need_lib_prefix=no 11045 fi 11046 need_version=yes 11047 ;; 11048 11049sysv4 | sysv4.3*) 11050 version_type=linux # correct to gnu/linux during the next big refactor 11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11052 soname_spec='$libname$release$shared_ext$major' 11053 shlibpath_var=LD_LIBRARY_PATH 11054 case $host_vendor in 11055 sni) 11056 shlibpath_overrides_runpath=no 11057 need_lib_prefix=no 11058 runpath_var=LD_RUN_PATH 11059 ;; 11060 siemens) 11061 need_lib_prefix=no 11062 ;; 11063 motorola) 11064 need_lib_prefix=no 11065 need_version=no 11066 shlibpath_overrides_runpath=no 11067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11068 ;; 11069 esac 11070 ;; 11071 11072sysv4*MP*) 11073 if test -d /usr/nec; then 11074 version_type=linux # correct to gnu/linux during the next big refactor 11075 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11076 soname_spec='$libname$shared_ext.$major' 11077 shlibpath_var=LD_LIBRARY_PATH 11078 fi 11079 ;; 11080 11081sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11082 version_type=sco 11083 need_lib_prefix=no 11084 need_version=no 11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11086 soname_spec='$libname$release$shared_ext$major' 11087 shlibpath_var=LD_LIBRARY_PATH 11088 shlibpath_overrides_runpath=yes 11089 hardcode_into_libs=yes 11090 if test yes = "$with_gnu_ld"; then 11091 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11092 else 11093 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11094 case $host_os in 11095 sco3.2v5*) 11096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11097 ;; 11098 esac 11099 fi 11100 sys_lib_dlsearch_path_spec='/usr/lib' 11101 ;; 11102 11103tpf*) 11104 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11105 version_type=linux # correct to gnu/linux during the next big refactor 11106 need_lib_prefix=no 11107 need_version=no 11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11109 shlibpath_var=LD_LIBRARY_PATH 11110 shlibpath_overrides_runpath=no 11111 hardcode_into_libs=yes 11112 ;; 11113 11114uts4*) 11115 version_type=linux # correct to gnu/linux during the next big refactor 11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11117 soname_spec='$libname$release$shared_ext$major' 11118 shlibpath_var=LD_LIBRARY_PATH 11119 ;; 11120 11121*) 11122 dynamic_linker=no 11123 ;; 11124esac 11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11126$as_echo "$dynamic_linker" >&6; } 11127test no = "$dynamic_linker" && can_build_shared=no 11128 11129variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11130if test yes = "$GCC"; then 11131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11132fi 11133 11134if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11135 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11136fi 11137 11138if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11139 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11140fi 11141 11142# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11143configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11144 11145# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11146func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11147 11148# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11149configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11248$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11249hardcode_action= 11250if test -n "$hardcode_libdir_flag_spec" || 11251 test -n "$runpath_var" || 11252 test yes = "$hardcode_automatic"; then 11253 11254 # We can hardcode non-existent directories. 11255 if test no != "$hardcode_direct" && 11256 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11257 # have to relink, otherwise we might link with an installed library 11258 # when we should be linking with a yet-to-be-installed one 11259 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11260 test no != "$hardcode_minus_L"; then 11261 # Linking always hardcodes the temporary library directory. 11262 hardcode_action=relink 11263 else 11264 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11265 hardcode_action=immediate 11266 fi 11267else 11268 # We cannot hardcode anything, or else we can only hardcode existing 11269 # directories. 11270 hardcode_action=unsupported 11271fi 11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11273$as_echo "$hardcode_action" >&6; } 11274 11275if test relink = "$hardcode_action" || 11276 test yes = "$inherit_rpath"; then 11277 # Fast installation is not supported 11278 enable_fast_install=no 11279elif test yes = "$shlibpath_overrides_runpath" || 11280 test no = "$enable_shared"; then 11281 # Fast installation is not necessary 11282 enable_fast_install=needless 11283fi 11284 11285 11286 11287 11288 11289 11290 if test yes != "$enable_dlopen"; then 11291 enable_dlopen=unknown 11292 enable_dlopen_self=unknown 11293 enable_dlopen_self_static=unknown 11294else 11295 lt_cv_dlopen=no 11296 lt_cv_dlopen_libs= 11297 11298 case $host_os in 11299 beos*) 11300 lt_cv_dlopen=load_add_on 11301 lt_cv_dlopen_libs= 11302 lt_cv_dlopen_self=yes 11303 ;; 11304 11305 mingw* | pw32* | cegcc*) 11306 lt_cv_dlopen=LoadLibrary 11307 lt_cv_dlopen_libs= 11308 ;; 11309 11310 cygwin*) 11311 lt_cv_dlopen=dlopen 11312 lt_cv_dlopen_libs= 11313 ;; 11314 11315 darwin*) 11316 # if libdl is installed we need to link against it 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11318$as_echo_n "checking for dlopen in -ldl... " >&6; } 11319if ${ac_cv_lib_dl_dlopen+:} false; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 ac_check_lib_save_LIBS=$LIBS 11323LIBS="-ldl $LIBS" 11324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326 11327/* Override any GCC internal prototype to avoid an error. 11328 Use char because int might match the return type of a GCC 11329 builtin and then its argument prototype would still apply. */ 11330#ifdef __cplusplus 11331extern "C" 11332#endif 11333char dlopen (); 11334int 11335main () 11336{ 11337return dlopen (); 11338 ; 11339 return 0; 11340} 11341_ACEOF 11342if ac_fn_c_try_link "$LINENO"; then : 11343 ac_cv_lib_dl_dlopen=yes 11344else 11345 ac_cv_lib_dl_dlopen=no 11346fi 11347rm -f core conftest.err conftest.$ac_objext \ 11348 conftest$ac_exeext conftest.$ac_ext 11349LIBS=$ac_check_lib_save_LIBS 11350fi 11351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11352$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11353if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11354 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11355else 11356 11357 lt_cv_dlopen=dyld 11358 lt_cv_dlopen_libs= 11359 lt_cv_dlopen_self=yes 11360 11361fi 11362 11363 ;; 11364 11365 tpf*) 11366 # Don't try to run any link tests for TPF. We know it's impossible 11367 # because TPF is a cross-compiler, and we know how we open DSOs. 11368 lt_cv_dlopen=dlopen 11369 lt_cv_dlopen_libs= 11370 lt_cv_dlopen_self=no 11371 ;; 11372 11373 *) 11374 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11375if test "x$ac_cv_func_shl_load" = xyes; then : 11376 lt_cv_dlopen=shl_load 11377else 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11379$as_echo_n "checking for shl_load in -ldld... " >&6; } 11380if ${ac_cv_lib_dld_shl_load+:} false; then : 11381 $as_echo_n "(cached) " >&6 11382else 11383 ac_check_lib_save_LIBS=$LIBS 11384LIBS="-ldld $LIBS" 11385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11386/* end confdefs.h. */ 11387 11388/* Override any GCC internal prototype to avoid an error. 11389 Use char because int might match the return type of a GCC 11390 builtin and then its argument prototype would still apply. */ 11391#ifdef __cplusplus 11392extern "C" 11393#endif 11394char shl_load (); 11395int 11396main () 11397{ 11398return shl_load (); 11399 ; 11400 return 0; 11401} 11402_ACEOF 11403if ac_fn_c_try_link "$LINENO"; then : 11404 ac_cv_lib_dld_shl_load=yes 11405else 11406 ac_cv_lib_dld_shl_load=no 11407fi 11408rm -f core conftest.err conftest.$ac_objext \ 11409 conftest$ac_exeext conftest.$ac_ext 11410LIBS=$ac_check_lib_save_LIBS 11411fi 11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11413$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11414if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11415 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11416else 11417 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11418if test "x$ac_cv_func_dlopen" = xyes; then : 11419 lt_cv_dlopen=dlopen 11420else 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11422$as_echo_n "checking for dlopen in -ldl... " >&6; } 11423if ${ac_cv_lib_dl_dlopen+:} false; then : 11424 $as_echo_n "(cached) " >&6 11425else 11426 ac_check_lib_save_LIBS=$LIBS 11427LIBS="-ldl $LIBS" 11428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429/* end confdefs.h. */ 11430 11431/* Override any GCC internal prototype to avoid an error. 11432 Use char because int might match the return type of a GCC 11433 builtin and then its argument prototype would still apply. */ 11434#ifdef __cplusplus 11435extern "C" 11436#endif 11437char dlopen (); 11438int 11439main () 11440{ 11441return dlopen (); 11442 ; 11443 return 0; 11444} 11445_ACEOF 11446if ac_fn_c_try_link "$LINENO"; then : 11447 ac_cv_lib_dl_dlopen=yes 11448else 11449 ac_cv_lib_dl_dlopen=no 11450fi 11451rm -f core conftest.err conftest.$ac_objext \ 11452 conftest$ac_exeext conftest.$ac_ext 11453LIBS=$ac_check_lib_save_LIBS 11454fi 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11456$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11457if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11458 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11459else 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11461$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11462if ${ac_cv_lib_svld_dlopen+:} false; then : 11463 $as_echo_n "(cached) " >&6 11464else 11465 ac_check_lib_save_LIBS=$LIBS 11466LIBS="-lsvld $LIBS" 11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11468/* end confdefs.h. */ 11469 11470/* Override any GCC internal prototype to avoid an error. 11471 Use char because int might match the return type of a GCC 11472 builtin and then its argument prototype would still apply. */ 11473#ifdef __cplusplus 11474extern "C" 11475#endif 11476char dlopen (); 11477int 11478main () 11479{ 11480return dlopen (); 11481 ; 11482 return 0; 11483} 11484_ACEOF 11485if ac_fn_c_try_link "$LINENO"; then : 11486 ac_cv_lib_svld_dlopen=yes 11487else 11488 ac_cv_lib_svld_dlopen=no 11489fi 11490rm -f core conftest.err conftest.$ac_objext \ 11491 conftest$ac_exeext conftest.$ac_ext 11492LIBS=$ac_check_lib_save_LIBS 11493fi 11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11495$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11496if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11497 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11498else 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11500$as_echo_n "checking for dld_link in -ldld... " >&6; } 11501if ${ac_cv_lib_dld_dld_link+:} false; then : 11502 $as_echo_n "(cached) " >&6 11503else 11504 ac_check_lib_save_LIBS=$LIBS 11505LIBS="-ldld $LIBS" 11506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11507/* end confdefs.h. */ 11508 11509/* Override any GCC internal prototype to avoid an error. 11510 Use char because int might match the return type of a GCC 11511 builtin and then its argument prototype would still apply. */ 11512#ifdef __cplusplus 11513extern "C" 11514#endif 11515char dld_link (); 11516int 11517main () 11518{ 11519return dld_link (); 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524if ac_fn_c_try_link "$LINENO"; then : 11525 ac_cv_lib_dld_dld_link=yes 11526else 11527 ac_cv_lib_dld_dld_link=no 11528fi 11529rm -f core conftest.err conftest.$ac_objext \ 11530 conftest$ac_exeext conftest.$ac_ext 11531LIBS=$ac_check_lib_save_LIBS 11532fi 11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11534$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11535if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11536 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11537fi 11538 11539 11540fi 11541 11542 11543fi 11544 11545 11546fi 11547 11548 11549fi 11550 11551 11552fi 11553 11554 ;; 11555 esac 11556 11557 if test no = "$lt_cv_dlopen"; then 11558 enable_dlopen=no 11559 else 11560 enable_dlopen=yes 11561 fi 11562 11563 case $lt_cv_dlopen in 11564 dlopen) 11565 save_CPPFLAGS=$CPPFLAGS 11566 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11567 11568 save_LDFLAGS=$LDFLAGS 11569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11570 11571 save_LIBS=$LIBS 11572 LIBS="$lt_cv_dlopen_libs $LIBS" 11573 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11575$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11576if ${lt_cv_dlopen_self+:} false; then : 11577 $as_echo_n "(cached) " >&6 11578else 11579 if test yes = "$cross_compiling"; then : 11580 lt_cv_dlopen_self=cross 11581else 11582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11583 lt_status=$lt_dlunknown 11584 cat > conftest.$ac_ext <<_LT_EOF 11585#line $LINENO "configure" 11586#include "confdefs.h" 11587 11588#if HAVE_DLFCN_H 11589#include <dlfcn.h> 11590#endif 11591 11592#include <stdio.h> 11593 11594#ifdef RTLD_GLOBAL 11595# define LT_DLGLOBAL RTLD_GLOBAL 11596#else 11597# ifdef DL_GLOBAL 11598# define LT_DLGLOBAL DL_GLOBAL 11599# else 11600# define LT_DLGLOBAL 0 11601# endif 11602#endif 11603 11604/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11605 find out it does not work in some platform. */ 11606#ifndef LT_DLLAZY_OR_NOW 11607# ifdef RTLD_LAZY 11608# define LT_DLLAZY_OR_NOW RTLD_LAZY 11609# else 11610# ifdef DL_LAZY 11611# define LT_DLLAZY_OR_NOW DL_LAZY 11612# else 11613# ifdef RTLD_NOW 11614# define LT_DLLAZY_OR_NOW RTLD_NOW 11615# else 11616# ifdef DL_NOW 11617# define LT_DLLAZY_OR_NOW DL_NOW 11618# else 11619# define LT_DLLAZY_OR_NOW 0 11620# endif 11621# endif 11622# endif 11623# endif 11624#endif 11625 11626/* When -fvisibility=hidden is used, assume the code has been annotated 11627 correspondingly for the symbols needed. */ 11628#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11629int fnord () __attribute__((visibility("default"))); 11630#endif 11631 11632int fnord () { return 42; } 11633int main () 11634{ 11635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11636 int status = $lt_dlunknown; 11637 11638 if (self) 11639 { 11640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11641 else 11642 { 11643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11644 else puts (dlerror ()); 11645 } 11646 /* dlclose (self); */ 11647 } 11648 else 11649 puts (dlerror ()); 11650 11651 return status; 11652} 11653_LT_EOF 11654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11655 (eval $ac_link) 2>&5 11656 ac_status=$? 11657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11658 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11659 (./conftest; exit; ) >&5 2>/dev/null 11660 lt_status=$? 11661 case x$lt_status in 11662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11665 esac 11666 else : 11667 # compilation failed 11668 lt_cv_dlopen_self=no 11669 fi 11670fi 11671rm -fr conftest* 11672 11673 11674fi 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11676$as_echo "$lt_cv_dlopen_self" >&6; } 11677 11678 if test yes = "$lt_cv_dlopen_self"; then 11679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11681$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11682if ${lt_cv_dlopen_self_static+:} false; then : 11683 $as_echo_n "(cached) " >&6 11684else 11685 if test yes = "$cross_compiling"; then : 11686 lt_cv_dlopen_self_static=cross 11687else 11688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11689 lt_status=$lt_dlunknown 11690 cat > conftest.$ac_ext <<_LT_EOF 11691#line $LINENO "configure" 11692#include "confdefs.h" 11693 11694#if HAVE_DLFCN_H 11695#include <dlfcn.h> 11696#endif 11697 11698#include <stdio.h> 11699 11700#ifdef RTLD_GLOBAL 11701# define LT_DLGLOBAL RTLD_GLOBAL 11702#else 11703# ifdef DL_GLOBAL 11704# define LT_DLGLOBAL DL_GLOBAL 11705# else 11706# define LT_DLGLOBAL 0 11707# endif 11708#endif 11709 11710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11711 find out it does not work in some platform. */ 11712#ifndef LT_DLLAZY_OR_NOW 11713# ifdef RTLD_LAZY 11714# define LT_DLLAZY_OR_NOW RTLD_LAZY 11715# else 11716# ifdef DL_LAZY 11717# define LT_DLLAZY_OR_NOW DL_LAZY 11718# else 11719# ifdef RTLD_NOW 11720# define LT_DLLAZY_OR_NOW RTLD_NOW 11721# else 11722# ifdef DL_NOW 11723# define LT_DLLAZY_OR_NOW DL_NOW 11724# else 11725# define LT_DLLAZY_OR_NOW 0 11726# endif 11727# endif 11728# endif 11729# endif 11730#endif 11731 11732/* When -fvisibility=hidden is used, assume the code has been annotated 11733 correspondingly for the symbols needed. */ 11734#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11735int fnord () __attribute__((visibility("default"))); 11736#endif 11737 11738int fnord () { return 42; } 11739int main () 11740{ 11741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11742 int status = $lt_dlunknown; 11743 11744 if (self) 11745 { 11746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11747 else 11748 { 11749 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11750 else puts (dlerror ()); 11751 } 11752 /* dlclose (self); */ 11753 } 11754 else 11755 puts (dlerror ()); 11756 11757 return status; 11758} 11759_LT_EOF 11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11761 (eval $ac_link) 2>&5 11762 ac_status=$? 11763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11764 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11765 (./conftest; exit; ) >&5 2>/dev/null 11766 lt_status=$? 11767 case x$lt_status in 11768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11770 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11771 esac 11772 else : 11773 # compilation failed 11774 lt_cv_dlopen_self_static=no 11775 fi 11776fi 11777rm -fr conftest* 11778 11779 11780fi 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11782$as_echo "$lt_cv_dlopen_self_static" >&6; } 11783 fi 11784 11785 CPPFLAGS=$save_CPPFLAGS 11786 LDFLAGS=$save_LDFLAGS 11787 LIBS=$save_LIBS 11788 ;; 11789 esac 11790 11791 case $lt_cv_dlopen_self in 11792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11793 *) enable_dlopen_self=unknown ;; 11794 esac 11795 11796 case $lt_cv_dlopen_self_static in 11797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11798 *) enable_dlopen_self_static=unknown ;; 11799 esac 11800fi 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818striplib= 11819old_striplib= 11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11821$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11822if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11823 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11824 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11826$as_echo "yes" >&6; } 11827else 11828# FIXME - insert some real tests, host_os isn't really good enough 11829 case $host_os in 11830 darwin*) 11831 if test -n "$STRIP"; then 11832 striplib="$STRIP -x" 11833 old_striplib="$STRIP -S" 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11835$as_echo "yes" >&6; } 11836 else 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11838$as_echo "no" >&6; } 11839 fi 11840 ;; 11841 *) 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11843$as_echo "no" >&6; } 11844 ;; 11845 esac 11846fi 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 # Report what library types will actually be built 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11861$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11863$as_echo "$can_build_shared" >&6; } 11864 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11866$as_echo_n "checking whether to build shared libraries... " >&6; } 11867 test no = "$can_build_shared" && enable_shared=no 11868 11869 # On AIX, shared libraries and static libraries use the same namespace, and 11870 # are all built from PIC. 11871 case $host_os in 11872 aix3*) 11873 test yes = "$enable_shared" && enable_static=no 11874 if test -n "$RANLIB"; then 11875 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11876 postinstall_cmds='$RANLIB $lib' 11877 fi 11878 ;; 11879 11880 aix[4-9]*) 11881 if test ia64 != "$host_cpu"; then 11882 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11883 yes,aix,yes) ;; # shared object as lib.so file only 11884 yes,svr4,*) ;; # shared object as lib.so archive member only 11885 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11886 esac 11887 fi 11888 ;; 11889 esac 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11891$as_echo "$enable_shared" >&6; } 11892 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11894$as_echo_n "checking whether to build static libraries... " >&6; } 11895 # Make sure either enable_shared or enable_static is yes. 11896 test yes = "$enable_shared" || enable_static=yes 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11898$as_echo "$enable_static" >&6; } 11899 11900 11901 11902 11903fi 11904ac_ext=c 11905ac_cpp='$CPP $CPPFLAGS' 11906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11908ac_compiler_gnu=$ac_cv_c_compiler_gnu 11909 11910CC=$lt_save_CC 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 ac_config_commands="$ac_config_commands libtool" 11927 11928 11929 11930 11931# Only expand once: 11932 11933 11934 11935# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11948$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11949if ${ac_cv_prog_cc_c99+:} false; then : 11950 $as_echo_n "(cached) " >&6 11951else 11952 ac_cv_prog_cc_c99=no 11953ac_save_CC=$CC 11954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11955/* end confdefs.h. */ 11956#include <stdarg.h> 11957#include <stdbool.h> 11958#include <stdlib.h> 11959#include <wchar.h> 11960#include <stdio.h> 11961 11962// Check varargs macros. These examples are taken from C99 6.10.3.5. 11963#define debug(...) fprintf (stderr, __VA_ARGS__) 11964#define showlist(...) puts (#__VA_ARGS__) 11965#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11966static void 11967test_varargs_macros (void) 11968{ 11969 int x = 1234; 11970 int y = 5678; 11971 debug ("Flag"); 11972 debug ("X = %d\n", x); 11973 showlist (The first, second, and third items.); 11974 report (x>y, "x is %d but y is %d", x, y); 11975} 11976 11977// Check long long types. 11978#define BIG64 18446744073709551615ull 11979#define BIG32 4294967295ul 11980#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11981#if !BIG_OK 11982 your preprocessor is broken; 11983#endif 11984#if BIG_OK 11985#else 11986 your preprocessor is broken; 11987#endif 11988static long long int bignum = -9223372036854775807LL; 11989static unsigned long long int ubignum = BIG64; 11990 11991struct incomplete_array 11992{ 11993 int datasize; 11994 double data[]; 11995}; 11996 11997struct named_init { 11998 int number; 11999 const wchar_t *name; 12000 double average; 12001}; 12002 12003typedef const char *ccp; 12004 12005static inline int 12006test_restrict (ccp restrict text) 12007{ 12008 // See if C++-style comments work. 12009 // Iterate through items via the restricted pointer. 12010 // Also check for declarations in for loops. 12011 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12012 continue; 12013 return 0; 12014} 12015 12016// Check varargs and va_copy. 12017static void 12018test_varargs (const char *format, ...) 12019{ 12020 va_list args; 12021 va_start (args, format); 12022 va_list args_copy; 12023 va_copy (args_copy, args); 12024 12025 const char *str; 12026 int number; 12027 float fnumber; 12028 12029 while (*format) 12030 { 12031 switch (*format++) 12032 { 12033 case 's': // string 12034 str = va_arg (args_copy, const char *); 12035 break; 12036 case 'd': // int 12037 number = va_arg (args_copy, int); 12038 break; 12039 case 'f': // float 12040 fnumber = va_arg (args_copy, double); 12041 break; 12042 default: 12043 break; 12044 } 12045 } 12046 va_end (args_copy); 12047 va_end (args); 12048} 12049 12050int 12051main () 12052{ 12053 12054 // Check bool. 12055 _Bool success = false; 12056 12057 // Check restrict. 12058 if (test_restrict ("String literal") == 0) 12059 success = true; 12060 char *restrict newvar = "Another string"; 12061 12062 // Check varargs. 12063 test_varargs ("s, d' f .", "string", 65, 34.234); 12064 test_varargs_macros (); 12065 12066 // Check flexible array members. 12067 struct incomplete_array *ia = 12068 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12069 ia->datasize = 10; 12070 for (int i = 0; i < ia->datasize; ++i) 12071 ia->data[i] = i * 1.234; 12072 12073 // Check named initializers. 12074 struct named_init ni = { 12075 .number = 34, 12076 .name = L"Test wide string", 12077 .average = 543.34343, 12078 }; 12079 12080 ni.number = 58; 12081 12082 int dynamic_array[ni.number]; 12083 dynamic_array[ni.number - 1] = 543; 12084 12085 // work around unused variable warnings 12086 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12087 || dynamic_array[ni.number - 1] != 543); 12088 12089 ; 12090 return 0; 12091} 12092_ACEOF 12093for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12094do 12095 CC="$ac_save_CC $ac_arg" 12096 if ac_fn_c_try_compile "$LINENO"; then : 12097 ac_cv_prog_cc_c99=$ac_arg 12098fi 12099rm -f core conftest.err conftest.$ac_objext 12100 test "x$ac_cv_prog_cc_c99" != "xno" && break 12101done 12102rm -f conftest.$ac_ext 12103CC=$ac_save_CC 12104 12105fi 12106# AC_CACHE_VAL 12107case "x$ac_cv_prog_cc_c99" in 12108 x) 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12110$as_echo "none needed" >&6; } ;; 12111 xno) 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12113$as_echo "unsupported" >&6; } ;; 12114 *) 12115 CC="$CC $ac_cv_prog_cc_c99" 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12117$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12118esac 12119if test "x$ac_cv_prog_cc_c99" != xno; then : 12120 12121fi 12122 12123 12124 12125 12126 12127 12128ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12129if test "x$ac_cv_have_decl___clang__" = xyes; then : 12130 CLANGCC="yes" 12131else 12132 CLANGCC="no" 12133fi 12134 12135ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12136if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12137 INTELCC="yes" 12138else 12139 INTELCC="no" 12140fi 12141 12142ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12143if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12144 SUNCC="yes" 12145else 12146 SUNCC="no" 12147fi 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12158 if test -n "$ac_tool_prefix"; then 12159 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12160set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12162$as_echo_n "checking for $ac_word... " >&6; } 12163if ${ac_cv_path_PKG_CONFIG+:} false; then : 12164 $as_echo_n "(cached) " >&6 12165else 12166 case $PKG_CONFIG in 12167 [\\/]* | ?:[\\/]*) 12168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12169 ;; 12170 *) 12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12172for as_dir in $PATH 12173do 12174 IFS=$as_save_IFS 12175 test -z "$as_dir" && as_dir=. 12176 for ac_exec_ext in '' $ac_executable_extensions; do 12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12180 break 2 12181 fi 12182done 12183 done 12184IFS=$as_save_IFS 12185 12186 ;; 12187esac 12188fi 12189PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12190if test -n "$PKG_CONFIG"; then 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12192$as_echo "$PKG_CONFIG" >&6; } 12193else 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12195$as_echo "no" >&6; } 12196fi 12197 12198 12199fi 12200if test -z "$ac_cv_path_PKG_CONFIG"; then 12201 ac_pt_PKG_CONFIG=$PKG_CONFIG 12202 # Extract the first word of "pkg-config", so it can be a program name with args. 12203set dummy pkg-config; ac_word=$2 12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12205$as_echo_n "checking for $ac_word... " >&6; } 12206if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12207 $as_echo_n "(cached) " >&6 12208else 12209 case $ac_pt_PKG_CONFIG in 12210 [\\/]* | ?:[\\/]*) 12211 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12212 ;; 12213 *) 12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12215for as_dir in $PATH 12216do 12217 IFS=$as_save_IFS 12218 test -z "$as_dir" && as_dir=. 12219 for ac_exec_ext in '' $ac_executable_extensions; do 12220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12221 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12223 break 2 12224 fi 12225done 12226 done 12227IFS=$as_save_IFS 12228 12229 ;; 12230esac 12231fi 12232ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12233if test -n "$ac_pt_PKG_CONFIG"; then 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12235$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12236else 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12238$as_echo "no" >&6; } 12239fi 12240 12241 if test "x$ac_pt_PKG_CONFIG" = x; then 12242 PKG_CONFIG="" 12243 else 12244 case $cross_compiling:$ac_tool_warned in 12245yes:) 12246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12248ac_tool_warned=yes ;; 12249esac 12250 PKG_CONFIG=$ac_pt_PKG_CONFIG 12251 fi 12252else 12253 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12254fi 12255 12256fi 12257if test -n "$PKG_CONFIG"; then 12258 _pkg_min_version=0.9.0 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12260$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12261 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12263$as_echo "yes" >&6; } 12264 else 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12266$as_echo "no" >&6; } 12267 PKG_CONFIG="" 12268 fi 12269fi 12270 12271 12272 12273 12274 12275# Check whether --enable-selective-werror was given. 12276if test "${enable_selective_werror+set}" = set; then : 12277 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12278else 12279 SELECTIVE_WERROR=yes 12280fi 12281 12282 12283 12284 12285 12286# -v is too short to test reliably with XORG_TESTSET_CFLAG 12287if test "x$SUNCC" = "xyes"; then 12288 BASE_CFLAGS="-v" 12289else 12290 BASE_CFLAGS="" 12291fi 12292 12293# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307xorg_testset_save_CFLAGS="$CFLAGS" 12308 12309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12314 $as_echo_n "(cached) " >&6 12315else 12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12317/* end confdefs.h. */ 12318int i; 12319_ACEOF 12320if ac_fn_c_try_compile "$LINENO"; then : 12321 xorg_cv_cc_flag_unknown_warning_option=yes 12322else 12323 xorg_cv_cc_flag_unknown_warning_option=no 12324fi 12325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12326fi 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12330 CFLAGS="$xorg_testset_save_CFLAGS" 12331fi 12332 12333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12336 fi 12337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12341 $as_echo_n "(cached) " >&6 12342else 12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12344/* end confdefs.h. */ 12345int i; 12346_ACEOF 12347if ac_fn_c_try_compile "$LINENO"; then : 12348 xorg_cv_cc_flag_unused_command_line_argument=yes 12349else 12350 xorg_cv_cc_flag_unused_command_line_argument=no 12351fi 12352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12353fi 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12357 CFLAGS="$xorg_testset_save_CFLAGS" 12358fi 12359 12360found="no" 12361 12362 if test $found = "no" ; then 12363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12365 fi 12366 12367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12369 fi 12370 12371 CFLAGS="$CFLAGS -Wall" 12372 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12374$as_echo_n "checking if $CC supports -Wall... " >&6; } 12375 cacheid=xorg_cv_cc_flag__Wall 12376 if eval \${$cacheid+:} false; then : 12377 $as_echo_n "(cached) " >&6 12378else 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12380/* end confdefs.h. */ 12381int i; 12382int 12383main () 12384{ 12385 12386 ; 12387 return 0; 12388} 12389_ACEOF 12390if ac_fn_c_try_link "$LINENO"; then : 12391 eval $cacheid=yes 12392else 12393 eval $cacheid=no 12394fi 12395rm -f core conftest.err conftest.$ac_objext \ 12396 conftest$ac_exeext conftest.$ac_ext 12397fi 12398 12399 12400 CFLAGS="$xorg_testset_save_CFLAGS" 12401 12402 eval supported=\$$cacheid 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12404$as_echo "$supported" >&6; } 12405 if test "$supported" = "yes" ; then 12406 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12407 found="yes" 12408 fi 12409 fi 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425xorg_testset_save_CFLAGS="$CFLAGS" 12426 12427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12432 $as_echo_n "(cached) " >&6 12433else 12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12435/* end confdefs.h. */ 12436int i; 12437_ACEOF 12438if ac_fn_c_try_compile "$LINENO"; then : 12439 xorg_cv_cc_flag_unknown_warning_option=yes 12440else 12441 xorg_cv_cc_flag_unknown_warning_option=no 12442fi 12443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12444fi 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12448 CFLAGS="$xorg_testset_save_CFLAGS" 12449fi 12450 12451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12454 fi 12455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460else 12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463int i; 12464_ACEOF 12465if ac_fn_c_try_compile "$LINENO"; then : 12466 xorg_cv_cc_flag_unused_command_line_argument=yes 12467else 12468 xorg_cv_cc_flag_unused_command_line_argument=no 12469fi 12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12475 CFLAGS="$xorg_testset_save_CFLAGS" 12476fi 12477 12478found="no" 12479 12480 if test $found = "no" ; then 12481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12483 fi 12484 12485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12487 fi 12488 12489 CFLAGS="$CFLAGS -Wpointer-arith" 12490 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12492$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12493 cacheid=xorg_cv_cc_flag__Wpointer_arith 12494 if eval \${$cacheid+:} false; then : 12495 $as_echo_n "(cached) " >&6 12496else 12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12498/* end confdefs.h. */ 12499int i; 12500int 12501main () 12502{ 12503 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508if ac_fn_c_try_link "$LINENO"; then : 12509 eval $cacheid=yes 12510else 12511 eval $cacheid=no 12512fi 12513rm -f core conftest.err conftest.$ac_objext \ 12514 conftest$ac_exeext conftest.$ac_ext 12515fi 12516 12517 12518 CFLAGS="$xorg_testset_save_CFLAGS" 12519 12520 eval supported=\$$cacheid 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12522$as_echo "$supported" >&6; } 12523 if test "$supported" = "yes" ; then 12524 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12525 found="yes" 12526 fi 12527 fi 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543xorg_testset_save_CFLAGS="$CFLAGS" 12544 12545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12550 $as_echo_n "(cached) " >&6 12551else 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554int i; 12555_ACEOF 12556if ac_fn_c_try_compile "$LINENO"; then : 12557 xorg_cv_cc_flag_unknown_warning_option=yes 12558else 12559 xorg_cv_cc_flag_unknown_warning_option=no 12560fi 12561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12562fi 12563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12566 CFLAGS="$xorg_testset_save_CFLAGS" 12567fi 12568 12569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12572 fi 12573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12577 $as_echo_n "(cached) " >&6 12578else 12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12580/* end confdefs.h. */ 12581int i; 12582_ACEOF 12583if ac_fn_c_try_compile "$LINENO"; then : 12584 xorg_cv_cc_flag_unused_command_line_argument=yes 12585else 12586 xorg_cv_cc_flag_unused_command_line_argument=no 12587fi 12588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12589fi 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12593 CFLAGS="$xorg_testset_save_CFLAGS" 12594fi 12595 12596found="no" 12597 12598 if test $found = "no" ; then 12599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12601 fi 12602 12603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12605 fi 12606 12607 CFLAGS="$CFLAGS -Wmissing-declarations" 12608 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12610$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12611 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12612 if eval \${$cacheid+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12616/* end confdefs.h. */ 12617int i; 12618int 12619main () 12620{ 12621 12622 ; 12623 return 0; 12624} 12625_ACEOF 12626if ac_fn_c_try_link "$LINENO"; then : 12627 eval $cacheid=yes 12628else 12629 eval $cacheid=no 12630fi 12631rm -f core conftest.err conftest.$ac_objext \ 12632 conftest$ac_exeext conftest.$ac_ext 12633fi 12634 12635 12636 CFLAGS="$xorg_testset_save_CFLAGS" 12637 12638 eval supported=\$$cacheid 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12640$as_echo "$supported" >&6; } 12641 if test "$supported" = "yes" ; then 12642 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12643 found="yes" 12644 fi 12645 fi 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661xorg_testset_save_CFLAGS="$CFLAGS" 12662 12663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12668 $as_echo_n "(cached) " >&6 12669else 12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12671/* end confdefs.h. */ 12672int i; 12673_ACEOF 12674if ac_fn_c_try_compile "$LINENO"; then : 12675 xorg_cv_cc_flag_unknown_warning_option=yes 12676else 12677 xorg_cv_cc_flag_unknown_warning_option=no 12678fi 12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12680fi 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12684 CFLAGS="$xorg_testset_save_CFLAGS" 12685fi 12686 12687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12690 fi 12691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12695 $as_echo_n "(cached) " >&6 12696else 12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12698/* end confdefs.h. */ 12699int i; 12700_ACEOF 12701if ac_fn_c_try_compile "$LINENO"; then : 12702 xorg_cv_cc_flag_unused_command_line_argument=yes 12703else 12704 xorg_cv_cc_flag_unused_command_line_argument=no 12705fi 12706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12707fi 12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12711 CFLAGS="$xorg_testset_save_CFLAGS" 12712fi 12713 12714found="no" 12715 12716 if test $found = "no" ; then 12717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12719 fi 12720 12721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12723 fi 12724 12725 CFLAGS="$CFLAGS -Wformat=2" 12726 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12728$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12729 cacheid=xorg_cv_cc_flag__Wformat_2 12730 if eval \${$cacheid+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12734/* end confdefs.h. */ 12735int i; 12736int 12737main () 12738{ 12739 12740 ; 12741 return 0; 12742} 12743_ACEOF 12744if ac_fn_c_try_link "$LINENO"; then : 12745 eval $cacheid=yes 12746else 12747 eval $cacheid=no 12748fi 12749rm -f core conftest.err conftest.$ac_objext \ 12750 conftest$ac_exeext conftest.$ac_ext 12751fi 12752 12753 12754 CFLAGS="$xorg_testset_save_CFLAGS" 12755 12756 eval supported=\$$cacheid 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12758$as_echo "$supported" >&6; } 12759 if test "$supported" = "yes" ; then 12760 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12761 found="yes" 12762 fi 12763 fi 12764 12765 if test $found = "no" ; then 12766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12768 fi 12769 12770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12772 fi 12773 12774 CFLAGS="$CFLAGS -Wformat" 12775 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12777$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12778 cacheid=xorg_cv_cc_flag__Wformat 12779 if eval \${$cacheid+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781else 12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12783/* end confdefs.h. */ 12784int i; 12785int 12786main () 12787{ 12788 12789 ; 12790 return 0; 12791} 12792_ACEOF 12793if ac_fn_c_try_link "$LINENO"; then : 12794 eval $cacheid=yes 12795else 12796 eval $cacheid=no 12797fi 12798rm -f core conftest.err conftest.$ac_objext \ 12799 conftest$ac_exeext conftest.$ac_ext 12800fi 12801 12802 12803 CFLAGS="$xorg_testset_save_CFLAGS" 12804 12805 eval supported=\$$cacheid 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12807$as_echo "$supported" >&6; } 12808 if test "$supported" = "yes" ; then 12809 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12810 found="yes" 12811 fi 12812 fi 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830xorg_testset_save_CFLAGS="$CFLAGS" 12831 12832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841int i; 12842_ACEOF 12843if ac_fn_c_try_compile "$LINENO"; then : 12844 xorg_cv_cc_flag_unknown_warning_option=yes 12845else 12846 xorg_cv_cc_flag_unknown_warning_option=no 12847fi 12848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12849fi 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12853 CFLAGS="$xorg_testset_save_CFLAGS" 12854fi 12855 12856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12859 fi 12860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867/* end confdefs.h. */ 12868int i; 12869_ACEOF 12870if ac_fn_c_try_compile "$LINENO"; then : 12871 xorg_cv_cc_flag_unused_command_line_argument=yes 12872else 12873 xorg_cv_cc_flag_unused_command_line_argument=no 12874fi 12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12876fi 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12880 CFLAGS="$xorg_testset_save_CFLAGS" 12881fi 12882 12883found="no" 12884 12885 if test $found = "no" ; then 12886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12888 fi 12889 12890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12892 fi 12893 12894 CFLAGS="$CFLAGS -Wstrict-prototypes" 12895 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12897$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12898 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12899 if eval \${$cacheid+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904int i; 12905int 12906main () 12907{ 12908 12909 ; 12910 return 0; 12911} 12912_ACEOF 12913if ac_fn_c_try_link "$LINENO"; then : 12914 eval $cacheid=yes 12915else 12916 eval $cacheid=no 12917fi 12918rm -f core conftest.err conftest.$ac_objext \ 12919 conftest$ac_exeext conftest.$ac_ext 12920fi 12921 12922 12923 CFLAGS="$xorg_testset_save_CFLAGS" 12924 12925 eval supported=\$$cacheid 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12927$as_echo "$supported" >&6; } 12928 if test "$supported" = "yes" ; then 12929 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12930 found="yes" 12931 fi 12932 fi 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948xorg_testset_save_CFLAGS="$CFLAGS" 12949 12950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12958/* end confdefs.h. */ 12959int i; 12960_ACEOF 12961if ac_fn_c_try_compile "$LINENO"; then : 12962 xorg_cv_cc_flag_unknown_warning_option=yes 12963else 12964 xorg_cv_cc_flag_unknown_warning_option=no 12965fi 12966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12967fi 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12971 CFLAGS="$xorg_testset_save_CFLAGS" 12972fi 12973 12974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12977 fi 12978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983else 12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12985/* end confdefs.h. */ 12986int i; 12987_ACEOF 12988if ac_fn_c_try_compile "$LINENO"; then : 12989 xorg_cv_cc_flag_unused_command_line_argument=yes 12990else 12991 xorg_cv_cc_flag_unused_command_line_argument=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12994fi 12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999fi 13000 13001found="no" 13002 13003 if test $found = "no" ; then 13004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13006 fi 13007 13008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13010 fi 13011 13012 CFLAGS="$CFLAGS -Wmissing-prototypes" 13013 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13015$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13016 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13017 if eval \${$cacheid+:} false; then : 13018 $as_echo_n "(cached) " >&6 13019else 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022int i; 13023int 13024main () 13025{ 13026 13027 ; 13028 return 0; 13029} 13030_ACEOF 13031if ac_fn_c_try_link "$LINENO"; then : 13032 eval $cacheid=yes 13033else 13034 eval $cacheid=no 13035fi 13036rm -f core conftest.err conftest.$ac_objext \ 13037 conftest$ac_exeext conftest.$ac_ext 13038fi 13039 13040 13041 CFLAGS="$xorg_testset_save_CFLAGS" 13042 13043 eval supported=\$$cacheid 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13045$as_echo "$supported" >&6; } 13046 if test "$supported" = "yes" ; then 13047 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13048 found="yes" 13049 fi 13050 fi 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066xorg_testset_save_CFLAGS="$CFLAGS" 13067 13068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13076/* end confdefs.h. */ 13077int i; 13078_ACEOF 13079if ac_fn_c_try_compile "$LINENO"; then : 13080 xorg_cv_cc_flag_unknown_warning_option=yes 13081else 13082 xorg_cv_cc_flag_unknown_warning_option=no 13083fi 13084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13085fi 13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13089 CFLAGS="$xorg_testset_save_CFLAGS" 13090fi 13091 13092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13095 fi 13096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13100 $as_echo_n "(cached) " >&6 13101else 13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13103/* end confdefs.h. */ 13104int i; 13105_ACEOF 13106if ac_fn_c_try_compile "$LINENO"; then : 13107 xorg_cv_cc_flag_unused_command_line_argument=yes 13108else 13109 xorg_cv_cc_flag_unused_command_line_argument=no 13110fi 13111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13112fi 13113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13116 CFLAGS="$xorg_testset_save_CFLAGS" 13117fi 13118 13119found="no" 13120 13121 if test $found = "no" ; then 13122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13124 fi 13125 13126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13128 fi 13129 13130 CFLAGS="$CFLAGS -Wnested-externs" 13131 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13133$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13134 cacheid=xorg_cv_cc_flag__Wnested_externs 13135 if eval \${$cacheid+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13139/* end confdefs.h. */ 13140int i; 13141int 13142main () 13143{ 13144 13145 ; 13146 return 0; 13147} 13148_ACEOF 13149if ac_fn_c_try_link "$LINENO"; then : 13150 eval $cacheid=yes 13151else 13152 eval $cacheid=no 13153fi 13154rm -f core conftest.err conftest.$ac_objext \ 13155 conftest$ac_exeext conftest.$ac_ext 13156fi 13157 13158 13159 CFLAGS="$xorg_testset_save_CFLAGS" 13160 13161 eval supported=\$$cacheid 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13163$as_echo "$supported" >&6; } 13164 if test "$supported" = "yes" ; then 13165 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13166 found="yes" 13167 fi 13168 fi 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184xorg_testset_save_CFLAGS="$CFLAGS" 13185 13186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13191 $as_echo_n "(cached) " >&6 13192else 13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13194/* end confdefs.h. */ 13195int i; 13196_ACEOF 13197if ac_fn_c_try_compile "$LINENO"; then : 13198 xorg_cv_cc_flag_unknown_warning_option=yes 13199else 13200 xorg_cv_cc_flag_unknown_warning_option=no 13201fi 13202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13203fi 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13207 CFLAGS="$xorg_testset_save_CFLAGS" 13208fi 13209 13210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13213 fi 13214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219else 13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13221/* end confdefs.h. */ 13222int i; 13223_ACEOF 13224if ac_fn_c_try_compile "$LINENO"; then : 13225 xorg_cv_cc_flag_unused_command_line_argument=yes 13226else 13227 xorg_cv_cc_flag_unused_command_line_argument=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13230fi 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13234 CFLAGS="$xorg_testset_save_CFLAGS" 13235fi 13236 13237found="no" 13238 13239 if test $found = "no" ; then 13240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13242 fi 13243 13244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13246 fi 13247 13248 CFLAGS="$CFLAGS -Wbad-function-cast" 13249 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13251$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13252 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13253 if eval \${$cacheid+:} false; then : 13254 $as_echo_n "(cached) " >&6 13255else 13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13257/* end confdefs.h. */ 13258int i; 13259int 13260main () 13261{ 13262 13263 ; 13264 return 0; 13265} 13266_ACEOF 13267if ac_fn_c_try_link "$LINENO"; then : 13268 eval $cacheid=yes 13269else 13270 eval $cacheid=no 13271fi 13272rm -f core conftest.err conftest.$ac_objext \ 13273 conftest$ac_exeext conftest.$ac_ext 13274fi 13275 13276 13277 CFLAGS="$xorg_testset_save_CFLAGS" 13278 13279 eval supported=\$$cacheid 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13281$as_echo "$supported" >&6; } 13282 if test "$supported" = "yes" ; then 13283 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13284 found="yes" 13285 fi 13286 fi 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302xorg_testset_save_CFLAGS="$CFLAGS" 13303 13304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13309 $as_echo_n "(cached) " >&6 13310else 13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13312/* end confdefs.h. */ 13313int i; 13314_ACEOF 13315if ac_fn_c_try_compile "$LINENO"; then : 13316 xorg_cv_cc_flag_unknown_warning_option=yes 13317else 13318 xorg_cv_cc_flag_unknown_warning_option=no 13319fi 13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13321fi 13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13325 CFLAGS="$xorg_testset_save_CFLAGS" 13326fi 13327 13328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13331 fi 13332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13336 $as_echo_n "(cached) " >&6 13337else 13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13339/* end confdefs.h. */ 13340int i; 13341_ACEOF 13342if ac_fn_c_try_compile "$LINENO"; then : 13343 xorg_cv_cc_flag_unused_command_line_argument=yes 13344else 13345 xorg_cv_cc_flag_unused_command_line_argument=no 13346fi 13347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13348fi 13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13352 CFLAGS="$xorg_testset_save_CFLAGS" 13353fi 13354 13355found="no" 13356 13357 if test $found = "no" ; then 13358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13360 fi 13361 13362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13364 fi 13365 13366 CFLAGS="$CFLAGS -Wold-style-definition" 13367 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13369$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13370 cacheid=xorg_cv_cc_flag__Wold_style_definition 13371 if eval \${$cacheid+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376int i; 13377int 13378main () 13379{ 13380 13381 ; 13382 return 0; 13383} 13384_ACEOF 13385if ac_fn_c_try_link "$LINENO"; then : 13386 eval $cacheid=yes 13387else 13388 eval $cacheid=no 13389fi 13390rm -f core conftest.err conftest.$ac_objext \ 13391 conftest$ac_exeext conftest.$ac_ext 13392fi 13393 13394 13395 CFLAGS="$xorg_testset_save_CFLAGS" 13396 13397 eval supported=\$$cacheid 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13399$as_echo "$supported" >&6; } 13400 if test "$supported" = "yes" ; then 13401 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13402 found="yes" 13403 fi 13404 fi 13405 13406 if test $found = "no" ; then 13407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13409 fi 13410 13411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13413 fi 13414 13415 CFLAGS="$CFLAGS -fd" 13416 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13418$as_echo_n "checking if $CC supports -fd... " >&6; } 13419 cacheid=xorg_cv_cc_flag__fd 13420 if eval \${$cacheid+:} false; then : 13421 $as_echo_n "(cached) " >&6 13422else 13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13424/* end confdefs.h. */ 13425int i; 13426int 13427main () 13428{ 13429 13430 ; 13431 return 0; 13432} 13433_ACEOF 13434if ac_fn_c_try_link "$LINENO"; then : 13435 eval $cacheid=yes 13436else 13437 eval $cacheid=no 13438fi 13439rm -f core conftest.err conftest.$ac_objext \ 13440 conftest$ac_exeext conftest.$ac_ext 13441fi 13442 13443 13444 CFLAGS="$xorg_testset_save_CFLAGS" 13445 13446 eval supported=\$$cacheid 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13448$as_echo "$supported" >&6; } 13449 if test "$supported" = "yes" ; then 13450 BASE_CFLAGS="$BASE_CFLAGS -fd" 13451 found="yes" 13452 fi 13453 fi 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469xorg_testset_save_CFLAGS="$CFLAGS" 13470 13471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13476 $as_echo_n "(cached) " >&6 13477else 13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13479/* end confdefs.h. */ 13480int i; 13481_ACEOF 13482if ac_fn_c_try_compile "$LINENO"; then : 13483 xorg_cv_cc_flag_unknown_warning_option=yes 13484else 13485 xorg_cv_cc_flag_unknown_warning_option=no 13486fi 13487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13488fi 13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13492 CFLAGS="$xorg_testset_save_CFLAGS" 13493fi 13494 13495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13498 fi 13499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13503 $as_echo_n "(cached) " >&6 13504else 13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13506/* end confdefs.h. */ 13507int i; 13508_ACEOF 13509if ac_fn_c_try_compile "$LINENO"; then : 13510 xorg_cv_cc_flag_unused_command_line_argument=yes 13511else 13512 xorg_cv_cc_flag_unused_command_line_argument=no 13513fi 13514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13515fi 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13519 CFLAGS="$xorg_testset_save_CFLAGS" 13520fi 13521 13522found="no" 13523 13524 if test $found = "no" ; then 13525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13527 fi 13528 13529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13531 fi 13532 13533 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13534 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13536$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13537 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13538 if eval \${$cacheid+:} false; then : 13539 $as_echo_n "(cached) " >&6 13540else 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543int i; 13544int 13545main () 13546{ 13547 13548 ; 13549 return 0; 13550} 13551_ACEOF 13552if ac_fn_c_try_link "$LINENO"; then : 13553 eval $cacheid=yes 13554else 13555 eval $cacheid=no 13556fi 13557rm -f core conftest.err conftest.$ac_objext \ 13558 conftest$ac_exeext conftest.$ac_ext 13559fi 13560 13561 13562 CFLAGS="$xorg_testset_save_CFLAGS" 13563 13564 eval supported=\$$cacheid 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13566$as_echo "$supported" >&6; } 13567 if test "$supported" = "yes" ; then 13568 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13569 found="yes" 13570 fi 13571 fi 13572 13573 13574 13575 13576 13577# This chunk adds additional warnings that could catch undesired effects. 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591xorg_testset_save_CFLAGS="$CFLAGS" 13592 13593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13598 $as_echo_n "(cached) " >&6 13599else 13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13601/* end confdefs.h. */ 13602int i; 13603_ACEOF 13604if ac_fn_c_try_compile "$LINENO"; then : 13605 xorg_cv_cc_flag_unknown_warning_option=yes 13606else 13607 xorg_cv_cc_flag_unknown_warning_option=no 13608fi 13609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13610fi 13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13614 CFLAGS="$xorg_testset_save_CFLAGS" 13615fi 13616 13617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 fi 13621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13625 $as_echo_n "(cached) " >&6 13626else 13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13628/* end confdefs.h. */ 13629int i; 13630_ACEOF 13631if ac_fn_c_try_compile "$LINENO"; then : 13632 xorg_cv_cc_flag_unused_command_line_argument=yes 13633else 13634 xorg_cv_cc_flag_unused_command_line_argument=no 13635fi 13636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13637fi 13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13641 CFLAGS="$xorg_testset_save_CFLAGS" 13642fi 13643 13644found="no" 13645 13646 if test $found = "no" ; then 13647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 fi 13650 13651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13653 fi 13654 13655 CFLAGS="$CFLAGS -Wunused" 13656 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13658$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13659 cacheid=xorg_cv_cc_flag__Wunused 13660 if eval \${$cacheid+:} false; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13664/* end confdefs.h. */ 13665int i; 13666int 13667main () 13668{ 13669 13670 ; 13671 return 0; 13672} 13673_ACEOF 13674if ac_fn_c_try_link "$LINENO"; then : 13675 eval $cacheid=yes 13676else 13677 eval $cacheid=no 13678fi 13679rm -f core conftest.err conftest.$ac_objext \ 13680 conftest$ac_exeext conftest.$ac_ext 13681fi 13682 13683 13684 CFLAGS="$xorg_testset_save_CFLAGS" 13685 13686 eval supported=\$$cacheid 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13688$as_echo "$supported" >&6; } 13689 if test "$supported" = "yes" ; then 13690 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13691 found="yes" 13692 fi 13693 fi 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709xorg_testset_save_CFLAGS="$CFLAGS" 13710 13711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13716 $as_echo_n "(cached) " >&6 13717else 13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719/* end confdefs.h. */ 13720int i; 13721_ACEOF 13722if ac_fn_c_try_compile "$LINENO"; then : 13723 xorg_cv_cc_flag_unknown_warning_option=yes 13724else 13725 xorg_cv_cc_flag_unknown_warning_option=no 13726fi 13727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13728fi 13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13732 CFLAGS="$xorg_testset_save_CFLAGS" 13733fi 13734 13735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13738 fi 13739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13743 $as_echo_n "(cached) " >&6 13744else 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13746/* end confdefs.h. */ 13747int i; 13748_ACEOF 13749if ac_fn_c_try_compile "$LINENO"; then : 13750 xorg_cv_cc_flag_unused_command_line_argument=yes 13751else 13752 xorg_cv_cc_flag_unused_command_line_argument=no 13753fi 13754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13755fi 13756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13759 CFLAGS="$xorg_testset_save_CFLAGS" 13760fi 13761 13762found="no" 13763 13764 if test $found = "no" ; then 13765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13767 fi 13768 13769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13771 fi 13772 13773 CFLAGS="$CFLAGS -Wuninitialized" 13774 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13776$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13777 cacheid=xorg_cv_cc_flag__Wuninitialized 13778 if eval \${$cacheid+:} false; then : 13779 $as_echo_n "(cached) " >&6 13780else 13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13782/* end confdefs.h. */ 13783int i; 13784int 13785main () 13786{ 13787 13788 ; 13789 return 0; 13790} 13791_ACEOF 13792if ac_fn_c_try_link "$LINENO"; then : 13793 eval $cacheid=yes 13794else 13795 eval $cacheid=no 13796fi 13797rm -f core conftest.err conftest.$ac_objext \ 13798 conftest$ac_exeext conftest.$ac_ext 13799fi 13800 13801 13802 CFLAGS="$xorg_testset_save_CFLAGS" 13803 13804 eval supported=\$$cacheid 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13806$as_echo "$supported" >&6; } 13807 if test "$supported" = "yes" ; then 13808 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13809 found="yes" 13810 fi 13811 fi 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827xorg_testset_save_CFLAGS="$CFLAGS" 13828 13829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13834 $as_echo_n "(cached) " >&6 13835else 13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13837/* end confdefs.h. */ 13838int i; 13839_ACEOF 13840if ac_fn_c_try_compile "$LINENO"; then : 13841 xorg_cv_cc_flag_unknown_warning_option=yes 13842else 13843 xorg_cv_cc_flag_unknown_warning_option=no 13844fi 13845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13846fi 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13850 CFLAGS="$xorg_testset_save_CFLAGS" 13851fi 13852 13853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 fi 13857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13861 $as_echo_n "(cached) " >&6 13862else 13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865int i; 13866_ACEOF 13867if ac_fn_c_try_compile "$LINENO"; then : 13868 xorg_cv_cc_flag_unused_command_line_argument=yes 13869else 13870 xorg_cv_cc_flag_unused_command_line_argument=no 13871fi 13872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13873fi 13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13877 CFLAGS="$xorg_testset_save_CFLAGS" 13878fi 13879 13880found="no" 13881 13882 if test $found = "no" ; then 13883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13885 fi 13886 13887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13889 fi 13890 13891 CFLAGS="$CFLAGS -Wshadow" 13892 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13894$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13895 cacheid=xorg_cv_cc_flag__Wshadow 13896 if eval \${$cacheid+:} false; then : 13897 $as_echo_n "(cached) " >&6 13898else 13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13900/* end confdefs.h. */ 13901int i; 13902int 13903main () 13904{ 13905 13906 ; 13907 return 0; 13908} 13909_ACEOF 13910if ac_fn_c_try_link "$LINENO"; then : 13911 eval $cacheid=yes 13912else 13913 eval $cacheid=no 13914fi 13915rm -f core conftest.err conftest.$ac_objext \ 13916 conftest$ac_exeext conftest.$ac_ext 13917fi 13918 13919 13920 CFLAGS="$xorg_testset_save_CFLAGS" 13921 13922 eval supported=\$$cacheid 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13924$as_echo "$supported" >&6; } 13925 if test "$supported" = "yes" ; then 13926 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13927 found="yes" 13928 fi 13929 fi 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945xorg_testset_save_CFLAGS="$CFLAGS" 13946 13947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13952 $as_echo_n "(cached) " >&6 13953else 13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13955/* end confdefs.h. */ 13956int i; 13957_ACEOF 13958if ac_fn_c_try_compile "$LINENO"; then : 13959 xorg_cv_cc_flag_unknown_warning_option=yes 13960else 13961 xorg_cv_cc_flag_unknown_warning_option=no 13962fi 13963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13964fi 13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13968 CFLAGS="$xorg_testset_save_CFLAGS" 13969fi 13970 13971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13974 fi 13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13982/* end confdefs.h. */ 13983int i; 13984_ACEOF 13985if ac_fn_c_try_compile "$LINENO"; then : 13986 xorg_cv_cc_flag_unused_command_line_argument=yes 13987else 13988 xorg_cv_cc_flag_unused_command_line_argument=no 13989fi 13990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13991fi 13992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13995 CFLAGS="$xorg_testset_save_CFLAGS" 13996fi 13997 13998found="no" 13999 14000 if test $found = "no" ; then 14001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14003 fi 14004 14005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14007 fi 14008 14009 CFLAGS="$CFLAGS -Wmissing-noreturn" 14010 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14012$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14013 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14014 if eval \${$cacheid+:} false; then : 14015 $as_echo_n "(cached) " >&6 14016else 14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14018/* end confdefs.h. */ 14019int i; 14020int 14021main () 14022{ 14023 14024 ; 14025 return 0; 14026} 14027_ACEOF 14028if ac_fn_c_try_link "$LINENO"; then : 14029 eval $cacheid=yes 14030else 14031 eval $cacheid=no 14032fi 14033rm -f core conftest.err conftest.$ac_objext \ 14034 conftest$ac_exeext conftest.$ac_ext 14035fi 14036 14037 14038 CFLAGS="$xorg_testset_save_CFLAGS" 14039 14040 eval supported=\$$cacheid 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14042$as_echo "$supported" >&6; } 14043 if test "$supported" = "yes" ; then 14044 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14045 found="yes" 14046 fi 14047 fi 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063xorg_testset_save_CFLAGS="$CFLAGS" 14064 14065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14070 $as_echo_n "(cached) " >&6 14071else 14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14073/* end confdefs.h. */ 14074int i; 14075_ACEOF 14076if ac_fn_c_try_compile "$LINENO"; then : 14077 xorg_cv_cc_flag_unknown_warning_option=yes 14078else 14079 xorg_cv_cc_flag_unknown_warning_option=no 14080fi 14081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14082fi 14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14086 CFLAGS="$xorg_testset_save_CFLAGS" 14087fi 14088 14089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14092 fi 14093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14097 $as_echo_n "(cached) " >&6 14098else 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101int i; 14102_ACEOF 14103if ac_fn_c_try_compile "$LINENO"; then : 14104 xorg_cv_cc_flag_unused_command_line_argument=yes 14105else 14106 xorg_cv_cc_flag_unused_command_line_argument=no 14107fi 14108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14109fi 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14113 CFLAGS="$xorg_testset_save_CFLAGS" 14114fi 14115 14116found="no" 14117 14118 if test $found = "no" ; then 14119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14121 fi 14122 14123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14125 fi 14126 14127 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14128 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14130$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14131 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14132 if eval \${$cacheid+:} false; then : 14133 $as_echo_n "(cached) " >&6 14134else 14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14136/* end confdefs.h. */ 14137int i; 14138int 14139main () 14140{ 14141 14142 ; 14143 return 0; 14144} 14145_ACEOF 14146if ac_fn_c_try_link "$LINENO"; then : 14147 eval $cacheid=yes 14148else 14149 eval $cacheid=no 14150fi 14151rm -f core conftest.err conftest.$ac_objext \ 14152 conftest$ac_exeext conftest.$ac_ext 14153fi 14154 14155 14156 CFLAGS="$xorg_testset_save_CFLAGS" 14157 14158 eval supported=\$$cacheid 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14160$as_echo "$supported" >&6; } 14161 if test "$supported" = "yes" ; then 14162 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14163 found="yes" 14164 fi 14165 fi 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181xorg_testset_save_CFLAGS="$CFLAGS" 14182 14183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14188 $as_echo_n "(cached) " >&6 14189else 14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14191/* end confdefs.h. */ 14192int i; 14193_ACEOF 14194if ac_fn_c_try_compile "$LINENO"; then : 14195 xorg_cv_cc_flag_unknown_warning_option=yes 14196else 14197 xorg_cv_cc_flag_unknown_warning_option=no 14198fi 14199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14200fi 14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14204 CFLAGS="$xorg_testset_save_CFLAGS" 14205fi 14206 14207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14210 fi 14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14215 $as_echo_n "(cached) " >&6 14216else 14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14218/* end confdefs.h. */ 14219int i; 14220_ACEOF 14221if ac_fn_c_try_compile "$LINENO"; then : 14222 xorg_cv_cc_flag_unused_command_line_argument=yes 14223else 14224 xorg_cv_cc_flag_unused_command_line_argument=no 14225fi 14226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14227fi 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14231 CFLAGS="$xorg_testset_save_CFLAGS" 14232fi 14233 14234found="no" 14235 14236 if test $found = "no" ; then 14237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14239 fi 14240 14241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14243 fi 14244 14245 CFLAGS="$CFLAGS -Wredundant-decls" 14246 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14248$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14249 cacheid=xorg_cv_cc_flag__Wredundant_decls 14250 if eval \${$cacheid+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252else 14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14254/* end confdefs.h. */ 14255int i; 14256int 14257main () 14258{ 14259 14260 ; 14261 return 0; 14262} 14263_ACEOF 14264if ac_fn_c_try_link "$LINENO"; then : 14265 eval $cacheid=yes 14266else 14267 eval $cacheid=no 14268fi 14269rm -f core conftest.err conftest.$ac_objext \ 14270 conftest$ac_exeext conftest.$ac_ext 14271fi 14272 14273 14274 CFLAGS="$xorg_testset_save_CFLAGS" 14275 14276 eval supported=\$$cacheid 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14278$as_echo "$supported" >&6; } 14279 if test "$supported" = "yes" ; then 14280 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14281 found="yes" 14282 fi 14283 fi 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299xorg_testset_save_CFLAGS="$CFLAGS" 14300 14301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307else 14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14309/* end confdefs.h. */ 14310int i; 14311_ACEOF 14312if ac_fn_c_try_compile "$LINENO"; then : 14313 xorg_cv_cc_flag_unknown_warning_option=yes 14314else 14315 xorg_cv_cc_flag_unknown_warning_option=no 14316fi 14317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14318fi 14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14322 CFLAGS="$xorg_testset_save_CFLAGS" 14323fi 14324 14325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 fi 14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14333 $as_echo_n "(cached) " >&6 14334else 14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14336/* end confdefs.h. */ 14337int i; 14338_ACEOF 14339if ac_fn_c_try_compile "$LINENO"; then : 14340 xorg_cv_cc_flag_unused_command_line_argument=yes 14341else 14342 xorg_cv_cc_flag_unused_command_line_argument=no 14343fi 14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14345fi 14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14349 CFLAGS="$xorg_testset_save_CFLAGS" 14350fi 14351 14352found="no" 14353 14354 if test $found = "no" ; then 14355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14357 fi 14358 14359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14361 fi 14362 14363 CFLAGS="$CFLAGS -Wlogical-op" 14364 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14366$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14367 cacheid=xorg_cv_cc_flag__Wlogical_op 14368 if eval \${$cacheid+:} false; then : 14369 $as_echo_n "(cached) " >&6 14370else 14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14372/* end confdefs.h. */ 14373int i; 14374int 14375main () 14376{ 14377 14378 ; 14379 return 0; 14380} 14381_ACEOF 14382if ac_fn_c_try_link "$LINENO"; then : 14383 eval $cacheid=yes 14384else 14385 eval $cacheid=no 14386fi 14387rm -f core conftest.err conftest.$ac_objext \ 14388 conftest$ac_exeext conftest.$ac_ext 14389fi 14390 14391 14392 CFLAGS="$xorg_testset_save_CFLAGS" 14393 14394 eval supported=\$$cacheid 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14396$as_echo "$supported" >&6; } 14397 if test "$supported" = "yes" ; then 14398 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14399 found="yes" 14400 fi 14401 fi 14402 14403 14404 14405# These are currently disabled because they are noisy. They will be enabled 14406# in the future once the codebase is sufficiently modernized to silence 14407# them. For now, I don't want them to drown out the other warnings. 14408# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14409# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14410# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14411 14412# Turn some warnings into errors, so we don't accidently get successful builds 14413# when there are problems that should be fixed. 14414 14415if test "x$SELECTIVE_WERROR" = "xyes" ; then 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429xorg_testset_save_CFLAGS="$CFLAGS" 14430 14431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14436 $as_echo_n "(cached) " >&6 14437else 14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14439/* end confdefs.h. */ 14440int i; 14441_ACEOF 14442if ac_fn_c_try_compile "$LINENO"; then : 14443 xorg_cv_cc_flag_unknown_warning_option=yes 14444else 14445 xorg_cv_cc_flag_unknown_warning_option=no 14446fi 14447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14448fi 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14452 CFLAGS="$xorg_testset_save_CFLAGS" 14453fi 14454 14455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 fi 14459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14463 $as_echo_n "(cached) " >&6 14464else 14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14466/* end confdefs.h. */ 14467int i; 14468_ACEOF 14469if ac_fn_c_try_compile "$LINENO"; then : 14470 xorg_cv_cc_flag_unused_command_line_argument=yes 14471else 14472 xorg_cv_cc_flag_unused_command_line_argument=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14475fi 14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480fi 14481 14482found="no" 14483 14484 if test $found = "no" ; then 14485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14487 fi 14488 14489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14491 fi 14492 14493 CFLAGS="$CFLAGS -Werror=implicit" 14494 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14496$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14497 cacheid=xorg_cv_cc_flag__Werror_implicit 14498 if eval \${$cacheid+:} false; then : 14499 $as_echo_n "(cached) " >&6 14500else 14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14502/* end confdefs.h. */ 14503int i; 14504int 14505main () 14506{ 14507 14508 ; 14509 return 0; 14510} 14511_ACEOF 14512if ac_fn_c_try_link "$LINENO"; then : 14513 eval $cacheid=yes 14514else 14515 eval $cacheid=no 14516fi 14517rm -f core conftest.err conftest.$ac_objext \ 14518 conftest$ac_exeext conftest.$ac_ext 14519fi 14520 14521 14522 CFLAGS="$xorg_testset_save_CFLAGS" 14523 14524 eval supported=\$$cacheid 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14526$as_echo "$supported" >&6; } 14527 if test "$supported" = "yes" ; then 14528 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14529 found="yes" 14530 fi 14531 fi 14532 14533 if test $found = "no" ; then 14534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14536 fi 14537 14538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14540 fi 14541 14542 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14543 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14545$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14546 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14547 if eval \${$cacheid+:} false; then : 14548 $as_echo_n "(cached) " >&6 14549else 14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14551/* end confdefs.h. */ 14552int i; 14553int 14554main () 14555{ 14556 14557 ; 14558 return 0; 14559} 14560_ACEOF 14561if ac_fn_c_try_link "$LINENO"; then : 14562 eval $cacheid=yes 14563else 14564 eval $cacheid=no 14565fi 14566rm -f core conftest.err conftest.$ac_objext \ 14567 conftest$ac_exeext conftest.$ac_ext 14568fi 14569 14570 14571 CFLAGS="$xorg_testset_save_CFLAGS" 14572 14573 eval supported=\$$cacheid 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14575$as_echo "$supported" >&6; } 14576 if test "$supported" = "yes" ; then 14577 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14578 found="yes" 14579 fi 14580 fi 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596xorg_testset_save_CFLAGS="$CFLAGS" 14597 14598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604else 14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14606/* end confdefs.h. */ 14607int i; 14608_ACEOF 14609if ac_fn_c_try_compile "$LINENO"; then : 14610 xorg_cv_cc_flag_unknown_warning_option=yes 14611else 14612 xorg_cv_cc_flag_unknown_warning_option=no 14613fi 14614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14615fi 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14619 CFLAGS="$xorg_testset_save_CFLAGS" 14620fi 14621 14622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14625 fi 14626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14630 $as_echo_n "(cached) " >&6 14631else 14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14633/* end confdefs.h. */ 14634int i; 14635_ACEOF 14636if ac_fn_c_try_compile "$LINENO"; then : 14637 xorg_cv_cc_flag_unused_command_line_argument=yes 14638else 14639 xorg_cv_cc_flag_unused_command_line_argument=no 14640fi 14641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14642fi 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14646 CFLAGS="$xorg_testset_save_CFLAGS" 14647fi 14648 14649found="no" 14650 14651 if test $found = "no" ; then 14652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14654 fi 14655 14656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14658 fi 14659 14660 CFLAGS="$CFLAGS -Werror=nonnull" 14661 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14663$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14664 cacheid=xorg_cv_cc_flag__Werror_nonnull 14665 if eval \${$cacheid+:} false; then : 14666 $as_echo_n "(cached) " >&6 14667else 14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14669/* end confdefs.h. */ 14670int i; 14671int 14672main () 14673{ 14674 14675 ; 14676 return 0; 14677} 14678_ACEOF 14679if ac_fn_c_try_link "$LINENO"; then : 14680 eval $cacheid=yes 14681else 14682 eval $cacheid=no 14683fi 14684rm -f core conftest.err conftest.$ac_objext \ 14685 conftest$ac_exeext conftest.$ac_ext 14686fi 14687 14688 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690 14691 eval supported=\$$cacheid 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14693$as_echo "$supported" >&6; } 14694 if test "$supported" = "yes" ; then 14695 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14696 found="yes" 14697 fi 14698 fi 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714xorg_testset_save_CFLAGS="$CFLAGS" 14715 14716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14721 $as_echo_n "(cached) " >&6 14722else 14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14724/* end confdefs.h. */ 14725int i; 14726_ACEOF 14727if ac_fn_c_try_compile "$LINENO"; then : 14728 xorg_cv_cc_flag_unknown_warning_option=yes 14729else 14730 xorg_cv_cc_flag_unknown_warning_option=no 14731fi 14732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14733fi 14734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14737 CFLAGS="$xorg_testset_save_CFLAGS" 14738fi 14739 14740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14743 fi 14744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14748 $as_echo_n "(cached) " >&6 14749else 14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751/* end confdefs.h. */ 14752int i; 14753_ACEOF 14754if ac_fn_c_try_compile "$LINENO"; then : 14755 xorg_cv_cc_flag_unused_command_line_argument=yes 14756else 14757 xorg_cv_cc_flag_unused_command_line_argument=no 14758fi 14759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14760fi 14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14764 CFLAGS="$xorg_testset_save_CFLAGS" 14765fi 14766 14767found="no" 14768 14769 if test $found = "no" ; then 14770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14772 fi 14773 14774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14776 fi 14777 14778 CFLAGS="$CFLAGS -Werror=init-self" 14779 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14781$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14782 cacheid=xorg_cv_cc_flag__Werror_init_self 14783 if eval \${$cacheid+:} false; then : 14784 $as_echo_n "(cached) " >&6 14785else 14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14787/* end confdefs.h. */ 14788int i; 14789int 14790main () 14791{ 14792 14793 ; 14794 return 0; 14795} 14796_ACEOF 14797if ac_fn_c_try_link "$LINENO"; then : 14798 eval $cacheid=yes 14799else 14800 eval $cacheid=no 14801fi 14802rm -f core conftest.err conftest.$ac_objext \ 14803 conftest$ac_exeext conftest.$ac_ext 14804fi 14805 14806 14807 CFLAGS="$xorg_testset_save_CFLAGS" 14808 14809 eval supported=\$$cacheid 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14811$as_echo "$supported" >&6; } 14812 if test "$supported" = "yes" ; then 14813 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14814 found="yes" 14815 fi 14816 fi 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832xorg_testset_save_CFLAGS="$CFLAGS" 14833 14834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14839 $as_echo_n "(cached) " >&6 14840else 14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14842/* end confdefs.h. */ 14843int i; 14844_ACEOF 14845if ac_fn_c_try_compile "$LINENO"; then : 14846 xorg_cv_cc_flag_unknown_warning_option=yes 14847else 14848 xorg_cv_cc_flag_unknown_warning_option=no 14849fi 14850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14851fi 14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14855 CFLAGS="$xorg_testset_save_CFLAGS" 14856fi 14857 14858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14861 fi 14862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867else 14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14869/* end confdefs.h. */ 14870int i; 14871_ACEOF 14872if ac_fn_c_try_compile "$LINENO"; then : 14873 xorg_cv_cc_flag_unused_command_line_argument=yes 14874else 14875 xorg_cv_cc_flag_unused_command_line_argument=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14878fi 14879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14882 CFLAGS="$xorg_testset_save_CFLAGS" 14883fi 14884 14885found="no" 14886 14887 if test $found = "no" ; then 14888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14890 fi 14891 14892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14894 fi 14895 14896 CFLAGS="$CFLAGS -Werror=main" 14897 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14899$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14900 cacheid=xorg_cv_cc_flag__Werror_main 14901 if eval \${$cacheid+:} false; then : 14902 $as_echo_n "(cached) " >&6 14903else 14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14905/* end confdefs.h. */ 14906int i; 14907int 14908main () 14909{ 14910 14911 ; 14912 return 0; 14913} 14914_ACEOF 14915if ac_fn_c_try_link "$LINENO"; then : 14916 eval $cacheid=yes 14917else 14918 eval $cacheid=no 14919fi 14920rm -f core conftest.err conftest.$ac_objext \ 14921 conftest$ac_exeext conftest.$ac_ext 14922fi 14923 14924 14925 CFLAGS="$xorg_testset_save_CFLAGS" 14926 14927 eval supported=\$$cacheid 14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14929$as_echo "$supported" >&6; } 14930 if test "$supported" = "yes" ; then 14931 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14932 found="yes" 14933 fi 14934 fi 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950xorg_testset_save_CFLAGS="$CFLAGS" 14951 14952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14957 $as_echo_n "(cached) " >&6 14958else 14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14960/* end confdefs.h. */ 14961int i; 14962_ACEOF 14963if ac_fn_c_try_compile "$LINENO"; then : 14964 xorg_cv_cc_flag_unknown_warning_option=yes 14965else 14966 xorg_cv_cc_flag_unknown_warning_option=no 14967fi 14968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14969fi 14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14973 CFLAGS="$xorg_testset_save_CFLAGS" 14974fi 14975 14976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14979 fi 14980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14984 $as_echo_n "(cached) " >&6 14985else 14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14987/* end confdefs.h. */ 14988int i; 14989_ACEOF 14990if ac_fn_c_try_compile "$LINENO"; then : 14991 xorg_cv_cc_flag_unused_command_line_argument=yes 14992else 14993 xorg_cv_cc_flag_unused_command_line_argument=no 14994fi 14995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14996fi 14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15000 CFLAGS="$xorg_testset_save_CFLAGS" 15001fi 15002 15003found="no" 15004 15005 if test $found = "no" ; then 15006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15008 fi 15009 15010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15012 fi 15013 15014 CFLAGS="$CFLAGS -Werror=missing-braces" 15015 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15017$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15018 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15019 if eval \${$cacheid+:} false; then : 15020 $as_echo_n "(cached) " >&6 15021else 15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15023/* end confdefs.h. */ 15024int i; 15025int 15026main () 15027{ 15028 15029 ; 15030 return 0; 15031} 15032_ACEOF 15033if ac_fn_c_try_link "$LINENO"; then : 15034 eval $cacheid=yes 15035else 15036 eval $cacheid=no 15037fi 15038rm -f core conftest.err conftest.$ac_objext \ 15039 conftest$ac_exeext conftest.$ac_ext 15040fi 15041 15042 15043 CFLAGS="$xorg_testset_save_CFLAGS" 15044 15045 eval supported=\$$cacheid 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15047$as_echo "$supported" >&6; } 15048 if test "$supported" = "yes" ; then 15049 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15050 found="yes" 15051 fi 15052 fi 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068xorg_testset_save_CFLAGS="$CFLAGS" 15069 15070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15075 $as_echo_n "(cached) " >&6 15076else 15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15078/* end confdefs.h. */ 15079int i; 15080_ACEOF 15081if ac_fn_c_try_compile "$LINENO"; then : 15082 xorg_cv_cc_flag_unknown_warning_option=yes 15083else 15084 xorg_cv_cc_flag_unknown_warning_option=no 15085fi 15086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15087fi 15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15091 CFLAGS="$xorg_testset_save_CFLAGS" 15092fi 15093 15094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 fi 15098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15102 $as_echo_n "(cached) " >&6 15103else 15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15105/* end confdefs.h. */ 15106int i; 15107_ACEOF 15108if ac_fn_c_try_compile "$LINENO"; then : 15109 xorg_cv_cc_flag_unused_command_line_argument=yes 15110else 15111 xorg_cv_cc_flag_unused_command_line_argument=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15114fi 15115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119fi 15120 15121found="no" 15122 15123 if test $found = "no" ; then 15124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15126 fi 15127 15128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15130 fi 15131 15132 CFLAGS="$CFLAGS -Werror=sequence-point" 15133 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15135$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15136 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15137 if eval \${$cacheid+:} false; then : 15138 $as_echo_n "(cached) " >&6 15139else 15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142int i; 15143int 15144main () 15145{ 15146 15147 ; 15148 return 0; 15149} 15150_ACEOF 15151if ac_fn_c_try_link "$LINENO"; then : 15152 eval $cacheid=yes 15153else 15154 eval $cacheid=no 15155fi 15156rm -f core conftest.err conftest.$ac_objext \ 15157 conftest$ac_exeext conftest.$ac_ext 15158fi 15159 15160 15161 CFLAGS="$xorg_testset_save_CFLAGS" 15162 15163 eval supported=\$$cacheid 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15165$as_echo "$supported" >&6; } 15166 if test "$supported" = "yes" ; then 15167 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15168 found="yes" 15169 fi 15170 fi 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186xorg_testset_save_CFLAGS="$CFLAGS" 15187 15188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15193 $as_echo_n "(cached) " >&6 15194else 15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15196/* end confdefs.h. */ 15197int i; 15198_ACEOF 15199if ac_fn_c_try_compile "$LINENO"; then : 15200 xorg_cv_cc_flag_unknown_warning_option=yes 15201else 15202 xorg_cv_cc_flag_unknown_warning_option=no 15203fi 15204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15205fi 15206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15209 CFLAGS="$xorg_testset_save_CFLAGS" 15210fi 15211 15212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15215 fi 15216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223/* end confdefs.h. */ 15224int i; 15225_ACEOF 15226if ac_fn_c_try_compile "$LINENO"; then : 15227 xorg_cv_cc_flag_unused_command_line_argument=yes 15228else 15229 xorg_cv_cc_flag_unused_command_line_argument=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15232fi 15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237fi 15238 15239found="no" 15240 15241 if test $found = "no" ; then 15242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15244 fi 15245 15246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15248 fi 15249 15250 CFLAGS="$CFLAGS -Werror=return-type" 15251 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15253$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15254 cacheid=xorg_cv_cc_flag__Werror_return_type 15255 if eval \${$cacheid+:} false; then : 15256 $as_echo_n "(cached) " >&6 15257else 15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15259/* end confdefs.h. */ 15260int i; 15261int 15262main () 15263{ 15264 15265 ; 15266 return 0; 15267} 15268_ACEOF 15269if ac_fn_c_try_link "$LINENO"; then : 15270 eval $cacheid=yes 15271else 15272 eval $cacheid=no 15273fi 15274rm -f core conftest.err conftest.$ac_objext \ 15275 conftest$ac_exeext conftest.$ac_ext 15276fi 15277 15278 15279 CFLAGS="$xorg_testset_save_CFLAGS" 15280 15281 eval supported=\$$cacheid 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15283$as_echo "$supported" >&6; } 15284 if test "$supported" = "yes" ; then 15285 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15286 found="yes" 15287 fi 15288 fi 15289 15290 if test $found = "no" ; then 15291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15293 fi 15294 15295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15297 fi 15298 15299 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15300 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15302$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15303 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15304 if eval \${$cacheid+:} false; then : 15305 $as_echo_n "(cached) " >&6 15306else 15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15308/* end confdefs.h. */ 15309int i; 15310int 15311main () 15312{ 15313 15314 ; 15315 return 0; 15316} 15317_ACEOF 15318if ac_fn_c_try_link "$LINENO"; then : 15319 eval $cacheid=yes 15320else 15321 eval $cacheid=no 15322fi 15323rm -f core conftest.err conftest.$ac_objext \ 15324 conftest$ac_exeext conftest.$ac_ext 15325fi 15326 15327 15328 CFLAGS="$xorg_testset_save_CFLAGS" 15329 15330 eval supported=\$$cacheid 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15332$as_echo "$supported" >&6; } 15333 if test "$supported" = "yes" ; then 15334 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15335 found="yes" 15336 fi 15337 fi 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353xorg_testset_save_CFLAGS="$CFLAGS" 15354 15355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15360 $as_echo_n "(cached) " >&6 15361else 15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15363/* end confdefs.h. */ 15364int i; 15365_ACEOF 15366if ac_fn_c_try_compile "$LINENO"; then : 15367 xorg_cv_cc_flag_unknown_warning_option=yes 15368else 15369 xorg_cv_cc_flag_unknown_warning_option=no 15370fi 15371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15372fi 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15376 CFLAGS="$xorg_testset_save_CFLAGS" 15377fi 15378 15379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15382 fi 15383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15387 $as_echo_n "(cached) " >&6 15388else 15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15390/* end confdefs.h. */ 15391int i; 15392_ACEOF 15393if ac_fn_c_try_compile "$LINENO"; then : 15394 xorg_cv_cc_flag_unused_command_line_argument=yes 15395else 15396 xorg_cv_cc_flag_unused_command_line_argument=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15399fi 15400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15403 CFLAGS="$xorg_testset_save_CFLAGS" 15404fi 15405 15406found="no" 15407 15408 if test $found = "no" ; then 15409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15411 fi 15412 15413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15415 fi 15416 15417 CFLAGS="$CFLAGS -Werror=trigraphs" 15418 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15420$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15421 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15422 if eval \${$cacheid+:} false; then : 15423 $as_echo_n "(cached) " >&6 15424else 15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15426/* end confdefs.h. */ 15427int i; 15428int 15429main () 15430{ 15431 15432 ; 15433 return 0; 15434} 15435_ACEOF 15436if ac_fn_c_try_link "$LINENO"; then : 15437 eval $cacheid=yes 15438else 15439 eval $cacheid=no 15440fi 15441rm -f core conftest.err conftest.$ac_objext \ 15442 conftest$ac_exeext conftest.$ac_ext 15443fi 15444 15445 15446 CFLAGS="$xorg_testset_save_CFLAGS" 15447 15448 eval supported=\$$cacheid 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15450$as_echo "$supported" >&6; } 15451 if test "$supported" = "yes" ; then 15452 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15453 found="yes" 15454 fi 15455 fi 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471xorg_testset_save_CFLAGS="$CFLAGS" 15472 15473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15478 $as_echo_n "(cached) " >&6 15479else 15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15481/* end confdefs.h. */ 15482int i; 15483_ACEOF 15484if ac_fn_c_try_compile "$LINENO"; then : 15485 xorg_cv_cc_flag_unknown_warning_option=yes 15486else 15487 xorg_cv_cc_flag_unknown_warning_option=no 15488fi 15489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15490fi 15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15494 CFLAGS="$xorg_testset_save_CFLAGS" 15495fi 15496 15497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15500 fi 15501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15505 $as_echo_n "(cached) " >&6 15506else 15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508/* end confdefs.h. */ 15509int i; 15510_ACEOF 15511if ac_fn_c_try_compile "$LINENO"; then : 15512 xorg_cv_cc_flag_unused_command_line_argument=yes 15513else 15514 xorg_cv_cc_flag_unused_command_line_argument=no 15515fi 15516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15517fi 15518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15521 CFLAGS="$xorg_testset_save_CFLAGS" 15522fi 15523 15524found="no" 15525 15526 if test $found = "no" ; then 15527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15529 fi 15530 15531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15533 fi 15534 15535 CFLAGS="$CFLAGS -Werror=array-bounds" 15536 15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15538$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15539 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15540 if eval \${$cacheid+:} false; then : 15541 $as_echo_n "(cached) " >&6 15542else 15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545int i; 15546int 15547main () 15548{ 15549 15550 ; 15551 return 0; 15552} 15553_ACEOF 15554if ac_fn_c_try_link "$LINENO"; then : 15555 eval $cacheid=yes 15556else 15557 eval $cacheid=no 15558fi 15559rm -f core conftest.err conftest.$ac_objext \ 15560 conftest$ac_exeext conftest.$ac_ext 15561fi 15562 15563 15564 CFLAGS="$xorg_testset_save_CFLAGS" 15565 15566 eval supported=\$$cacheid 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15568$as_echo "$supported" >&6; } 15569 if test "$supported" = "yes" ; then 15570 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15571 found="yes" 15572 fi 15573 fi 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589xorg_testset_save_CFLAGS="$CFLAGS" 15590 15591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15596 $as_echo_n "(cached) " >&6 15597else 15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15599/* end confdefs.h. */ 15600int i; 15601_ACEOF 15602if ac_fn_c_try_compile "$LINENO"; then : 15603 xorg_cv_cc_flag_unknown_warning_option=yes 15604else 15605 xorg_cv_cc_flag_unknown_warning_option=no 15606fi 15607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15608fi 15609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15612 CFLAGS="$xorg_testset_save_CFLAGS" 15613fi 15614 15615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15618 fi 15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15623 $as_echo_n "(cached) " >&6 15624else 15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15626/* end confdefs.h. */ 15627int i; 15628_ACEOF 15629if ac_fn_c_try_compile "$LINENO"; then : 15630 xorg_cv_cc_flag_unused_command_line_argument=yes 15631else 15632 xorg_cv_cc_flag_unused_command_line_argument=no 15633fi 15634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15635fi 15636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15639 CFLAGS="$xorg_testset_save_CFLAGS" 15640fi 15641 15642found="no" 15643 15644 if test $found = "no" ; then 15645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15647 fi 15648 15649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15651 fi 15652 15653 CFLAGS="$CFLAGS -Werror=write-strings" 15654 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15656$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15657 cacheid=xorg_cv_cc_flag__Werror_write_strings 15658 if eval \${$cacheid+:} false; then : 15659 $as_echo_n "(cached) " >&6 15660else 15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662/* end confdefs.h. */ 15663int i; 15664int 15665main () 15666{ 15667 15668 ; 15669 return 0; 15670} 15671_ACEOF 15672if ac_fn_c_try_link "$LINENO"; then : 15673 eval $cacheid=yes 15674else 15675 eval $cacheid=no 15676fi 15677rm -f core conftest.err conftest.$ac_objext \ 15678 conftest$ac_exeext conftest.$ac_ext 15679fi 15680 15681 15682 CFLAGS="$xorg_testset_save_CFLAGS" 15683 15684 eval supported=\$$cacheid 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15686$as_echo "$supported" >&6; } 15687 if test "$supported" = "yes" ; then 15688 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15689 found="yes" 15690 fi 15691 fi 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707xorg_testset_save_CFLAGS="$CFLAGS" 15708 15709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15714 $as_echo_n "(cached) " >&6 15715else 15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15717/* end confdefs.h. */ 15718int i; 15719_ACEOF 15720if ac_fn_c_try_compile "$LINENO"; then : 15721 xorg_cv_cc_flag_unknown_warning_option=yes 15722else 15723 xorg_cv_cc_flag_unknown_warning_option=no 15724fi 15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15726fi 15727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15730 CFLAGS="$xorg_testset_save_CFLAGS" 15731fi 15732 15733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15736 fi 15737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15741 $as_echo_n "(cached) " >&6 15742else 15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15744/* end confdefs.h. */ 15745int i; 15746_ACEOF 15747if ac_fn_c_try_compile "$LINENO"; then : 15748 xorg_cv_cc_flag_unused_command_line_argument=yes 15749else 15750 xorg_cv_cc_flag_unused_command_line_argument=no 15751fi 15752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15753fi 15754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15757 CFLAGS="$xorg_testset_save_CFLAGS" 15758fi 15759 15760found="no" 15761 15762 if test $found = "no" ; then 15763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15765 fi 15766 15767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15769 fi 15770 15771 CFLAGS="$CFLAGS -Werror=address" 15772 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15774$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15775 cacheid=xorg_cv_cc_flag__Werror_address 15776 if eval \${$cacheid+:} false; then : 15777 $as_echo_n "(cached) " >&6 15778else 15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15780/* end confdefs.h. */ 15781int i; 15782int 15783main () 15784{ 15785 15786 ; 15787 return 0; 15788} 15789_ACEOF 15790if ac_fn_c_try_link "$LINENO"; then : 15791 eval $cacheid=yes 15792else 15793 eval $cacheid=no 15794fi 15795rm -f core conftest.err conftest.$ac_objext \ 15796 conftest$ac_exeext conftest.$ac_ext 15797fi 15798 15799 15800 CFLAGS="$xorg_testset_save_CFLAGS" 15801 15802 eval supported=\$$cacheid 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15804$as_echo "$supported" >&6; } 15805 if test "$supported" = "yes" ; then 15806 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15807 found="yes" 15808 fi 15809 fi 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825xorg_testset_save_CFLAGS="$CFLAGS" 15826 15827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15832 $as_echo_n "(cached) " >&6 15833else 15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15835/* end confdefs.h. */ 15836int i; 15837_ACEOF 15838if ac_fn_c_try_compile "$LINENO"; then : 15839 xorg_cv_cc_flag_unknown_warning_option=yes 15840else 15841 xorg_cv_cc_flag_unknown_warning_option=no 15842fi 15843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15844fi 15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15848 CFLAGS="$xorg_testset_save_CFLAGS" 15849fi 15850 15851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15854 fi 15855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15859 $as_echo_n "(cached) " >&6 15860else 15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863int i; 15864_ACEOF 15865if ac_fn_c_try_compile "$LINENO"; then : 15866 xorg_cv_cc_flag_unused_command_line_argument=yes 15867else 15868 xorg_cv_cc_flag_unused_command_line_argument=no 15869fi 15870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15871fi 15872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15875 CFLAGS="$xorg_testset_save_CFLAGS" 15876fi 15877 15878found="no" 15879 15880 if test $found = "no" ; then 15881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15883 fi 15884 15885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15887 fi 15888 15889 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15890 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15892$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15893 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15894 if eval \${$cacheid+:} false; then : 15895 $as_echo_n "(cached) " >&6 15896else 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898/* end confdefs.h. */ 15899int i; 15900int 15901main () 15902{ 15903 15904 ; 15905 return 0; 15906} 15907_ACEOF 15908if ac_fn_c_try_link "$LINENO"; then : 15909 eval $cacheid=yes 15910else 15911 eval $cacheid=no 15912fi 15913rm -f core conftest.err conftest.$ac_objext \ 15914 conftest$ac_exeext conftest.$ac_ext 15915fi 15916 15917 15918 CFLAGS="$xorg_testset_save_CFLAGS" 15919 15920 eval supported=\$$cacheid 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15922$as_echo "$supported" >&6; } 15923 if test "$supported" = "yes" ; then 15924 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15925 found="yes" 15926 fi 15927 fi 15928 15929 if test $found = "no" ; then 15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15932 fi 15933 15934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15936 fi 15937 15938 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15939 15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15941$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15942 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15943 if eval \${$cacheid+:} false; then : 15944 $as_echo_n "(cached) " >&6 15945else 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947/* end confdefs.h. */ 15948int i; 15949int 15950main () 15951{ 15952 15953 ; 15954 return 0; 15955} 15956_ACEOF 15957if ac_fn_c_try_link "$LINENO"; then : 15958 eval $cacheid=yes 15959else 15960 eval $cacheid=no 15961fi 15962rm -f core conftest.err conftest.$ac_objext \ 15963 conftest$ac_exeext conftest.$ac_ext 15964fi 15965 15966 15967 CFLAGS="$xorg_testset_save_CFLAGS" 15968 15969 eval supported=\$$cacheid 15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15971$as_echo "$supported" >&6; } 15972 if test "$supported" = "yes" ; then 15973 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15974 found="yes" 15975 fi 15976 fi 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992xorg_testset_save_CFLAGS="$CFLAGS" 15993 15994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15999 $as_echo_n "(cached) " >&6 16000else 16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002/* end confdefs.h. */ 16003int i; 16004_ACEOF 16005if ac_fn_c_try_compile "$LINENO"; then : 16006 xorg_cv_cc_flag_unknown_warning_option=yes 16007else 16008 xorg_cv_cc_flag_unknown_warning_option=no 16009fi 16010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16011fi 16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16015 CFLAGS="$xorg_testset_save_CFLAGS" 16016fi 16017 16018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 fi 16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16026 $as_echo_n "(cached) " >&6 16027else 16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16029/* end confdefs.h. */ 16030int i; 16031_ACEOF 16032if ac_fn_c_try_compile "$LINENO"; then : 16033 xorg_cv_cc_flag_unused_command_line_argument=yes 16034else 16035 xorg_cv_cc_flag_unused_command_line_argument=no 16036fi 16037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16038fi 16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16042 CFLAGS="$xorg_testset_save_CFLAGS" 16043fi 16044 16045found="no" 16046 16047 if test $found = "no" ; then 16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16050 fi 16051 16052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16054 fi 16055 16056 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16057 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16059$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16060 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16061 if eval \${$cacheid+:} false; then : 16062 $as_echo_n "(cached) " >&6 16063else 16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16065/* end confdefs.h. */ 16066int i; 16067int 16068main () 16069{ 16070 16071 ; 16072 return 0; 16073} 16074_ACEOF 16075if ac_fn_c_try_link "$LINENO"; then : 16076 eval $cacheid=yes 16077else 16078 eval $cacheid=no 16079fi 16080rm -f core conftest.err conftest.$ac_objext \ 16081 conftest$ac_exeext conftest.$ac_ext 16082fi 16083 16084 16085 CFLAGS="$xorg_testset_save_CFLAGS" 16086 16087 eval supported=\$$cacheid 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16089$as_echo "$supported" >&6; } 16090 if test "$supported" = "yes" ; then 16091 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16092 found="yes" 16093 fi 16094 fi 16095 16096 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16097else 16098{ $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 16099$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;} 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113xorg_testset_save_CFLAGS="$CFLAGS" 16114 16115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16120 $as_echo_n "(cached) " >&6 16121else 16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16123/* end confdefs.h. */ 16124int i; 16125_ACEOF 16126if ac_fn_c_try_compile "$LINENO"; then : 16127 xorg_cv_cc_flag_unknown_warning_option=yes 16128else 16129 xorg_cv_cc_flag_unknown_warning_option=no 16130fi 16131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16132fi 16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16136 CFLAGS="$xorg_testset_save_CFLAGS" 16137fi 16138 16139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16142 fi 16143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16150/* end confdefs.h. */ 16151int i; 16152_ACEOF 16153if ac_fn_c_try_compile "$LINENO"; then : 16154 xorg_cv_cc_flag_unused_command_line_argument=yes 16155else 16156 xorg_cv_cc_flag_unused_command_line_argument=no 16157fi 16158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16159fi 16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16163 CFLAGS="$xorg_testset_save_CFLAGS" 16164fi 16165 16166found="no" 16167 16168 if test $found = "no" ; then 16169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16171 fi 16172 16173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16175 fi 16176 16177 CFLAGS="$CFLAGS -Wimplicit" 16178 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16180$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16181 cacheid=xorg_cv_cc_flag__Wimplicit 16182 if eval \${$cacheid+:} false; then : 16183 $as_echo_n "(cached) " >&6 16184else 16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16186/* end confdefs.h. */ 16187int i; 16188int 16189main () 16190{ 16191 16192 ; 16193 return 0; 16194} 16195_ACEOF 16196if ac_fn_c_try_link "$LINENO"; then : 16197 eval $cacheid=yes 16198else 16199 eval $cacheid=no 16200fi 16201rm -f core conftest.err conftest.$ac_objext \ 16202 conftest$ac_exeext conftest.$ac_ext 16203fi 16204 16205 16206 CFLAGS="$xorg_testset_save_CFLAGS" 16207 16208 eval supported=\$$cacheid 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16210$as_echo "$supported" >&6; } 16211 if test "$supported" = "yes" ; then 16212 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16213 found="yes" 16214 fi 16215 fi 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231xorg_testset_save_CFLAGS="$CFLAGS" 16232 16233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16238 $as_echo_n "(cached) " >&6 16239else 16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16241/* end confdefs.h. */ 16242int i; 16243_ACEOF 16244if ac_fn_c_try_compile "$LINENO"; then : 16245 xorg_cv_cc_flag_unknown_warning_option=yes 16246else 16247 xorg_cv_cc_flag_unknown_warning_option=no 16248fi 16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16250fi 16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16254 CFLAGS="$xorg_testset_save_CFLAGS" 16255fi 16256 16257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16260 fi 16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269int i; 16270_ACEOF 16271if ac_fn_c_try_compile "$LINENO"; then : 16272 xorg_cv_cc_flag_unused_command_line_argument=yes 16273else 16274 xorg_cv_cc_flag_unused_command_line_argument=no 16275fi 16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16277fi 16278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16281 CFLAGS="$xorg_testset_save_CFLAGS" 16282fi 16283 16284found="no" 16285 16286 if test $found = "no" ; then 16287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16289 fi 16290 16291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16293 fi 16294 16295 CFLAGS="$CFLAGS -Wnonnull" 16296 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16298$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16299 cacheid=xorg_cv_cc_flag__Wnonnull 16300 if eval \${$cacheid+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302else 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305int i; 16306int 16307main () 16308{ 16309 16310 ; 16311 return 0; 16312} 16313_ACEOF 16314if ac_fn_c_try_link "$LINENO"; then : 16315 eval $cacheid=yes 16316else 16317 eval $cacheid=no 16318fi 16319rm -f core conftest.err conftest.$ac_objext \ 16320 conftest$ac_exeext conftest.$ac_ext 16321fi 16322 16323 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325 16326 eval supported=\$$cacheid 16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16328$as_echo "$supported" >&6; } 16329 if test "$supported" = "yes" ; then 16330 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16331 found="yes" 16332 fi 16333 fi 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349xorg_testset_save_CFLAGS="$CFLAGS" 16350 16351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16356 $as_echo_n "(cached) " >&6 16357else 16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16359/* end confdefs.h. */ 16360int i; 16361_ACEOF 16362if ac_fn_c_try_compile "$LINENO"; then : 16363 xorg_cv_cc_flag_unknown_warning_option=yes 16364else 16365 xorg_cv_cc_flag_unknown_warning_option=no 16366fi 16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16368fi 16369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16372 CFLAGS="$xorg_testset_save_CFLAGS" 16373fi 16374 16375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 fi 16379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16383 $as_echo_n "(cached) " >&6 16384else 16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16386/* end confdefs.h. */ 16387int i; 16388_ACEOF 16389if ac_fn_c_try_compile "$LINENO"; then : 16390 xorg_cv_cc_flag_unused_command_line_argument=yes 16391else 16392 xorg_cv_cc_flag_unused_command_line_argument=no 16393fi 16394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16395fi 16396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16399 CFLAGS="$xorg_testset_save_CFLAGS" 16400fi 16401 16402found="no" 16403 16404 if test $found = "no" ; then 16405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16407 fi 16408 16409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16411 fi 16412 16413 CFLAGS="$CFLAGS -Winit-self" 16414 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16416$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16417 cacheid=xorg_cv_cc_flag__Winit_self 16418 if eval \${$cacheid+:} false; then : 16419 $as_echo_n "(cached) " >&6 16420else 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422/* end confdefs.h. */ 16423int i; 16424int 16425main () 16426{ 16427 16428 ; 16429 return 0; 16430} 16431_ACEOF 16432if ac_fn_c_try_link "$LINENO"; then : 16433 eval $cacheid=yes 16434else 16435 eval $cacheid=no 16436fi 16437rm -f core conftest.err conftest.$ac_objext \ 16438 conftest$ac_exeext conftest.$ac_ext 16439fi 16440 16441 16442 CFLAGS="$xorg_testset_save_CFLAGS" 16443 16444 eval supported=\$$cacheid 16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16446$as_echo "$supported" >&6; } 16447 if test "$supported" = "yes" ; then 16448 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16449 found="yes" 16450 fi 16451 fi 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467xorg_testset_save_CFLAGS="$CFLAGS" 16468 16469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16474 $as_echo_n "(cached) " >&6 16475else 16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16477/* end confdefs.h. */ 16478int i; 16479_ACEOF 16480if ac_fn_c_try_compile "$LINENO"; then : 16481 xorg_cv_cc_flag_unknown_warning_option=yes 16482else 16483 xorg_cv_cc_flag_unknown_warning_option=no 16484fi 16485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16486fi 16487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16490 CFLAGS="$xorg_testset_save_CFLAGS" 16491fi 16492 16493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16496 fi 16497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16501 $as_echo_n "(cached) " >&6 16502else 16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16504/* end confdefs.h. */ 16505int i; 16506_ACEOF 16507if ac_fn_c_try_compile "$LINENO"; then : 16508 xorg_cv_cc_flag_unused_command_line_argument=yes 16509else 16510 xorg_cv_cc_flag_unused_command_line_argument=no 16511fi 16512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16513fi 16514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16517 CFLAGS="$xorg_testset_save_CFLAGS" 16518fi 16519 16520found="no" 16521 16522 if test $found = "no" ; then 16523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16525 fi 16526 16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16529 fi 16530 16531 CFLAGS="$CFLAGS -Wmain" 16532 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16534$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16535 cacheid=xorg_cv_cc_flag__Wmain 16536 if eval \${$cacheid+:} false; then : 16537 $as_echo_n "(cached) " >&6 16538else 16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540/* end confdefs.h. */ 16541int i; 16542int 16543main () 16544{ 16545 16546 ; 16547 return 0; 16548} 16549_ACEOF 16550if ac_fn_c_try_link "$LINENO"; then : 16551 eval $cacheid=yes 16552else 16553 eval $cacheid=no 16554fi 16555rm -f core conftest.err conftest.$ac_objext \ 16556 conftest$ac_exeext conftest.$ac_ext 16557fi 16558 16559 16560 CFLAGS="$xorg_testset_save_CFLAGS" 16561 16562 eval supported=\$$cacheid 16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16564$as_echo "$supported" >&6; } 16565 if test "$supported" = "yes" ; then 16566 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16567 found="yes" 16568 fi 16569 fi 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585xorg_testset_save_CFLAGS="$CFLAGS" 16586 16587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16592 $as_echo_n "(cached) " >&6 16593else 16594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16595/* end confdefs.h. */ 16596int i; 16597_ACEOF 16598if ac_fn_c_try_compile "$LINENO"; then : 16599 xorg_cv_cc_flag_unknown_warning_option=yes 16600else 16601 xorg_cv_cc_flag_unknown_warning_option=no 16602fi 16603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16604fi 16605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16608 CFLAGS="$xorg_testset_save_CFLAGS" 16609fi 16610 16611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16614 fi 16615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16619 $as_echo_n "(cached) " >&6 16620else 16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16622/* end confdefs.h. */ 16623int i; 16624_ACEOF 16625if ac_fn_c_try_compile "$LINENO"; then : 16626 xorg_cv_cc_flag_unused_command_line_argument=yes 16627else 16628 xorg_cv_cc_flag_unused_command_line_argument=no 16629fi 16630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16631fi 16632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16635 CFLAGS="$xorg_testset_save_CFLAGS" 16636fi 16637 16638found="no" 16639 16640 if test $found = "no" ; then 16641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16643 fi 16644 16645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16647 fi 16648 16649 CFLAGS="$CFLAGS -Wmissing-braces" 16650 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16652$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16653 cacheid=xorg_cv_cc_flag__Wmissing_braces 16654 if eval \${$cacheid+:} false; then : 16655 $as_echo_n "(cached) " >&6 16656else 16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16658/* end confdefs.h. */ 16659int i; 16660int 16661main () 16662{ 16663 16664 ; 16665 return 0; 16666} 16667_ACEOF 16668if ac_fn_c_try_link "$LINENO"; then : 16669 eval $cacheid=yes 16670else 16671 eval $cacheid=no 16672fi 16673rm -f core conftest.err conftest.$ac_objext \ 16674 conftest$ac_exeext conftest.$ac_ext 16675fi 16676 16677 16678 CFLAGS="$xorg_testset_save_CFLAGS" 16679 16680 eval supported=\$$cacheid 16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16682$as_echo "$supported" >&6; } 16683 if test "$supported" = "yes" ; then 16684 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16685 found="yes" 16686 fi 16687 fi 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703xorg_testset_save_CFLAGS="$CFLAGS" 16704 16705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16713/* end confdefs.h. */ 16714int i; 16715_ACEOF 16716if ac_fn_c_try_compile "$LINENO"; then : 16717 xorg_cv_cc_flag_unknown_warning_option=yes 16718else 16719 xorg_cv_cc_flag_unknown_warning_option=no 16720fi 16721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16722fi 16723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16726 CFLAGS="$xorg_testset_save_CFLAGS" 16727fi 16728 16729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16732 fi 16733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16737 $as_echo_n "(cached) " >&6 16738else 16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16740/* end confdefs.h. */ 16741int i; 16742_ACEOF 16743if ac_fn_c_try_compile "$LINENO"; then : 16744 xorg_cv_cc_flag_unused_command_line_argument=yes 16745else 16746 xorg_cv_cc_flag_unused_command_line_argument=no 16747fi 16748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16749fi 16750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16753 CFLAGS="$xorg_testset_save_CFLAGS" 16754fi 16755 16756found="no" 16757 16758 if test $found = "no" ; then 16759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16761 fi 16762 16763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16765 fi 16766 16767 CFLAGS="$CFLAGS -Wsequence-point" 16768 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16770$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16771 cacheid=xorg_cv_cc_flag__Wsequence_point 16772 if eval \${$cacheid+:} false; then : 16773 $as_echo_n "(cached) " >&6 16774else 16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16776/* end confdefs.h. */ 16777int i; 16778int 16779main () 16780{ 16781 16782 ; 16783 return 0; 16784} 16785_ACEOF 16786if ac_fn_c_try_link "$LINENO"; then : 16787 eval $cacheid=yes 16788else 16789 eval $cacheid=no 16790fi 16791rm -f core conftest.err conftest.$ac_objext \ 16792 conftest$ac_exeext conftest.$ac_ext 16793fi 16794 16795 16796 CFLAGS="$xorg_testset_save_CFLAGS" 16797 16798 eval supported=\$$cacheid 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16800$as_echo "$supported" >&6; } 16801 if test "$supported" = "yes" ; then 16802 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16803 found="yes" 16804 fi 16805 fi 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821xorg_testset_save_CFLAGS="$CFLAGS" 16822 16823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16828 $as_echo_n "(cached) " >&6 16829else 16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16831/* end confdefs.h. */ 16832int i; 16833_ACEOF 16834if ac_fn_c_try_compile "$LINENO"; then : 16835 xorg_cv_cc_flag_unknown_warning_option=yes 16836else 16837 xorg_cv_cc_flag_unknown_warning_option=no 16838fi 16839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16840fi 16841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16844 CFLAGS="$xorg_testset_save_CFLAGS" 16845fi 16846 16847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 fi 16851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16855 $as_echo_n "(cached) " >&6 16856else 16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16858/* end confdefs.h. */ 16859int i; 16860_ACEOF 16861if ac_fn_c_try_compile "$LINENO"; then : 16862 xorg_cv_cc_flag_unused_command_line_argument=yes 16863else 16864 xorg_cv_cc_flag_unused_command_line_argument=no 16865fi 16866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16867fi 16868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16871 CFLAGS="$xorg_testset_save_CFLAGS" 16872fi 16873 16874found="no" 16875 16876 if test $found = "no" ; then 16877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16879 fi 16880 16881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16883 fi 16884 16885 CFLAGS="$CFLAGS -Wreturn-type" 16886 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16888$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16889 cacheid=xorg_cv_cc_flag__Wreturn_type 16890 if eval \${$cacheid+:} false; then : 16891 $as_echo_n "(cached) " >&6 16892else 16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16894/* end confdefs.h. */ 16895int i; 16896int 16897main () 16898{ 16899 16900 ; 16901 return 0; 16902} 16903_ACEOF 16904if ac_fn_c_try_link "$LINENO"; then : 16905 eval $cacheid=yes 16906else 16907 eval $cacheid=no 16908fi 16909rm -f core conftest.err conftest.$ac_objext \ 16910 conftest$ac_exeext conftest.$ac_ext 16911fi 16912 16913 16914 CFLAGS="$xorg_testset_save_CFLAGS" 16915 16916 eval supported=\$$cacheid 16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16918$as_echo "$supported" >&6; } 16919 if test "$supported" = "yes" ; then 16920 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16921 found="yes" 16922 fi 16923 fi 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939xorg_testset_save_CFLAGS="$CFLAGS" 16940 16941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16946 $as_echo_n "(cached) " >&6 16947else 16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16949/* end confdefs.h. */ 16950int i; 16951_ACEOF 16952if ac_fn_c_try_compile "$LINENO"; then : 16953 xorg_cv_cc_flag_unknown_warning_option=yes 16954else 16955 xorg_cv_cc_flag_unknown_warning_option=no 16956fi 16957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16958fi 16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16962 CFLAGS="$xorg_testset_save_CFLAGS" 16963fi 16964 16965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 fi 16969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16973 $as_echo_n "(cached) " >&6 16974else 16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16976/* end confdefs.h. */ 16977int i; 16978_ACEOF 16979if ac_fn_c_try_compile "$LINENO"; then : 16980 xorg_cv_cc_flag_unused_command_line_argument=yes 16981else 16982 xorg_cv_cc_flag_unused_command_line_argument=no 16983fi 16984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16985fi 16986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16989 CFLAGS="$xorg_testset_save_CFLAGS" 16990fi 16991 16992found="no" 16993 16994 if test $found = "no" ; then 16995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16997 fi 16998 16999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17001 fi 17002 17003 CFLAGS="$CFLAGS -Wtrigraphs" 17004 17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17006$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17007 cacheid=xorg_cv_cc_flag__Wtrigraphs 17008 if eval \${$cacheid+:} false; then : 17009 $as_echo_n "(cached) " >&6 17010else 17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17012/* end confdefs.h. */ 17013int i; 17014int 17015main () 17016{ 17017 17018 ; 17019 return 0; 17020} 17021_ACEOF 17022if ac_fn_c_try_link "$LINENO"; then : 17023 eval $cacheid=yes 17024else 17025 eval $cacheid=no 17026fi 17027rm -f core conftest.err conftest.$ac_objext \ 17028 conftest$ac_exeext conftest.$ac_ext 17029fi 17030 17031 17032 CFLAGS="$xorg_testset_save_CFLAGS" 17033 17034 eval supported=\$$cacheid 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17036$as_echo "$supported" >&6; } 17037 if test "$supported" = "yes" ; then 17038 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17039 found="yes" 17040 fi 17041 fi 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057xorg_testset_save_CFLAGS="$CFLAGS" 17058 17059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17064 $as_echo_n "(cached) " >&6 17065else 17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17067/* end confdefs.h. */ 17068int i; 17069_ACEOF 17070if ac_fn_c_try_compile "$LINENO"; then : 17071 xorg_cv_cc_flag_unknown_warning_option=yes 17072else 17073 xorg_cv_cc_flag_unknown_warning_option=no 17074fi 17075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17076fi 17077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17080 CFLAGS="$xorg_testset_save_CFLAGS" 17081fi 17082 17083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17086 fi 17087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17091 $as_echo_n "(cached) " >&6 17092else 17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095int i; 17096_ACEOF 17097if ac_fn_c_try_compile "$LINENO"; then : 17098 xorg_cv_cc_flag_unused_command_line_argument=yes 17099else 17100 xorg_cv_cc_flag_unused_command_line_argument=no 17101fi 17102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17103fi 17104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17107 CFLAGS="$xorg_testset_save_CFLAGS" 17108fi 17109 17110found="no" 17111 17112 if test $found = "no" ; then 17113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17115 fi 17116 17117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17119 fi 17120 17121 CFLAGS="$CFLAGS -Warray-bounds" 17122 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17124$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17125 cacheid=xorg_cv_cc_flag__Warray_bounds 17126 if eval \${$cacheid+:} false; then : 17127 $as_echo_n "(cached) " >&6 17128else 17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17130/* end confdefs.h. */ 17131int i; 17132int 17133main () 17134{ 17135 17136 ; 17137 return 0; 17138} 17139_ACEOF 17140if ac_fn_c_try_link "$LINENO"; then : 17141 eval $cacheid=yes 17142else 17143 eval $cacheid=no 17144fi 17145rm -f core conftest.err conftest.$ac_objext \ 17146 conftest$ac_exeext conftest.$ac_ext 17147fi 17148 17149 17150 CFLAGS="$xorg_testset_save_CFLAGS" 17151 17152 eval supported=\$$cacheid 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17154$as_echo "$supported" >&6; } 17155 if test "$supported" = "yes" ; then 17156 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17157 found="yes" 17158 fi 17159 fi 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175xorg_testset_save_CFLAGS="$CFLAGS" 17176 17177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17182 $as_echo_n "(cached) " >&6 17183else 17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185/* end confdefs.h. */ 17186int i; 17187_ACEOF 17188if ac_fn_c_try_compile "$LINENO"; then : 17189 xorg_cv_cc_flag_unknown_warning_option=yes 17190else 17191 xorg_cv_cc_flag_unknown_warning_option=no 17192fi 17193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17194fi 17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17198 CFLAGS="$xorg_testset_save_CFLAGS" 17199fi 17200 17201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 fi 17205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17209 $as_echo_n "(cached) " >&6 17210else 17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17212/* end confdefs.h. */ 17213int i; 17214_ACEOF 17215if ac_fn_c_try_compile "$LINENO"; then : 17216 xorg_cv_cc_flag_unused_command_line_argument=yes 17217else 17218 xorg_cv_cc_flag_unused_command_line_argument=no 17219fi 17220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17221fi 17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17225 CFLAGS="$xorg_testset_save_CFLAGS" 17226fi 17227 17228found="no" 17229 17230 if test $found = "no" ; then 17231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17233 fi 17234 17235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17237 fi 17238 17239 CFLAGS="$CFLAGS -Wwrite-strings" 17240 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17242$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17243 cacheid=xorg_cv_cc_flag__Wwrite_strings 17244 if eval \${$cacheid+:} false; then : 17245 $as_echo_n "(cached) " >&6 17246else 17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17248/* end confdefs.h. */ 17249int i; 17250int 17251main () 17252{ 17253 17254 ; 17255 return 0; 17256} 17257_ACEOF 17258if ac_fn_c_try_link "$LINENO"; then : 17259 eval $cacheid=yes 17260else 17261 eval $cacheid=no 17262fi 17263rm -f core conftest.err conftest.$ac_objext \ 17264 conftest$ac_exeext conftest.$ac_ext 17265fi 17266 17267 17268 CFLAGS="$xorg_testset_save_CFLAGS" 17269 17270 eval supported=\$$cacheid 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17272$as_echo "$supported" >&6; } 17273 if test "$supported" = "yes" ; then 17274 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17275 found="yes" 17276 fi 17277 fi 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293xorg_testset_save_CFLAGS="$CFLAGS" 17294 17295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17300 $as_echo_n "(cached) " >&6 17301else 17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17303/* end confdefs.h. */ 17304int i; 17305_ACEOF 17306if ac_fn_c_try_compile "$LINENO"; then : 17307 xorg_cv_cc_flag_unknown_warning_option=yes 17308else 17309 xorg_cv_cc_flag_unknown_warning_option=no 17310fi 17311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17312fi 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17316 CFLAGS="$xorg_testset_save_CFLAGS" 17317fi 17318 17319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 fi 17323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17327 $as_echo_n "(cached) " >&6 17328else 17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17330/* end confdefs.h. */ 17331int i; 17332_ACEOF 17333if ac_fn_c_try_compile "$LINENO"; then : 17334 xorg_cv_cc_flag_unused_command_line_argument=yes 17335else 17336 xorg_cv_cc_flag_unused_command_line_argument=no 17337fi 17338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17339fi 17340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17343 CFLAGS="$xorg_testset_save_CFLAGS" 17344fi 17345 17346found="no" 17347 17348 if test $found = "no" ; then 17349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17351 fi 17352 17353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17355 fi 17356 17357 CFLAGS="$CFLAGS -Waddress" 17358 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17360$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17361 cacheid=xorg_cv_cc_flag__Waddress 17362 if eval \${$cacheid+:} false; then : 17363 $as_echo_n "(cached) " >&6 17364else 17365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17366/* end confdefs.h. */ 17367int i; 17368int 17369main () 17370{ 17371 17372 ; 17373 return 0; 17374} 17375_ACEOF 17376if ac_fn_c_try_link "$LINENO"; then : 17377 eval $cacheid=yes 17378else 17379 eval $cacheid=no 17380fi 17381rm -f core conftest.err conftest.$ac_objext \ 17382 conftest$ac_exeext conftest.$ac_ext 17383fi 17384 17385 17386 CFLAGS="$xorg_testset_save_CFLAGS" 17387 17388 eval supported=\$$cacheid 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17390$as_echo "$supported" >&6; } 17391 if test "$supported" = "yes" ; then 17392 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17393 found="yes" 17394 fi 17395 fi 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411xorg_testset_save_CFLAGS="$CFLAGS" 17412 17413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17418 $as_echo_n "(cached) " >&6 17419else 17420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17421/* end confdefs.h. */ 17422int i; 17423_ACEOF 17424if ac_fn_c_try_compile "$LINENO"; then : 17425 xorg_cv_cc_flag_unknown_warning_option=yes 17426else 17427 xorg_cv_cc_flag_unknown_warning_option=no 17428fi 17429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17430fi 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17434 CFLAGS="$xorg_testset_save_CFLAGS" 17435fi 17436 17437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17440 fi 17441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17445 $as_echo_n "(cached) " >&6 17446else 17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17448/* end confdefs.h. */ 17449int i; 17450_ACEOF 17451if ac_fn_c_try_compile "$LINENO"; then : 17452 xorg_cv_cc_flag_unused_command_line_argument=yes 17453else 17454 xorg_cv_cc_flag_unused_command_line_argument=no 17455fi 17456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17457fi 17458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17461 CFLAGS="$xorg_testset_save_CFLAGS" 17462fi 17463 17464found="no" 17465 17466 if test $found = "no" ; then 17467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17469 fi 17470 17471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17473 fi 17474 17475 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17476 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17478$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17479 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17480 if eval \${$cacheid+:} false; then : 17481 $as_echo_n "(cached) " >&6 17482else 17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17484/* end confdefs.h. */ 17485int i; 17486int 17487main () 17488{ 17489 17490 ; 17491 return 0; 17492} 17493_ACEOF 17494if ac_fn_c_try_link "$LINENO"; then : 17495 eval $cacheid=yes 17496else 17497 eval $cacheid=no 17498fi 17499rm -f core conftest.err conftest.$ac_objext \ 17500 conftest$ac_exeext conftest.$ac_ext 17501fi 17502 17503 17504 CFLAGS="$xorg_testset_save_CFLAGS" 17505 17506 eval supported=\$$cacheid 17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17508$as_echo "$supported" >&6; } 17509 if test "$supported" = "yes" ; then 17510 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17511 found="yes" 17512 fi 17513 fi 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529xorg_testset_save_CFLAGS="$CFLAGS" 17530 17531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17536 $as_echo_n "(cached) " >&6 17537else 17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17539/* end confdefs.h. */ 17540int i; 17541_ACEOF 17542if ac_fn_c_try_compile "$LINENO"; then : 17543 xorg_cv_cc_flag_unknown_warning_option=yes 17544else 17545 xorg_cv_cc_flag_unknown_warning_option=no 17546fi 17547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17548fi 17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17552 CFLAGS="$xorg_testset_save_CFLAGS" 17553fi 17554 17555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17558 fi 17559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17563 $as_echo_n "(cached) " >&6 17564else 17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17566/* end confdefs.h. */ 17567int i; 17568_ACEOF 17569if ac_fn_c_try_compile "$LINENO"; then : 17570 xorg_cv_cc_flag_unused_command_line_argument=yes 17571else 17572 xorg_cv_cc_flag_unused_command_line_argument=no 17573fi 17574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17575fi 17576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17579 CFLAGS="$xorg_testset_save_CFLAGS" 17580fi 17581 17582found="no" 17583 17584 if test $found = "no" ; then 17585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17587 fi 17588 17589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17591 fi 17592 17593 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17594 17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17596$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17597 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17598 if eval \${$cacheid+:} false; then : 17599 $as_echo_n "(cached) " >&6 17600else 17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17602/* end confdefs.h. */ 17603int i; 17604int 17605main () 17606{ 17607 17608 ; 17609 return 0; 17610} 17611_ACEOF 17612if ac_fn_c_try_link "$LINENO"; then : 17613 eval $cacheid=yes 17614else 17615 eval $cacheid=no 17616fi 17617rm -f core conftest.err conftest.$ac_objext \ 17618 conftest$ac_exeext conftest.$ac_ext 17619fi 17620 17621 17622 CFLAGS="$xorg_testset_save_CFLAGS" 17623 17624 eval supported=\$$cacheid 17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17626$as_echo "$supported" >&6; } 17627 if test "$supported" = "yes" ; then 17628 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17629 found="yes" 17630 fi 17631 fi 17632 17633 17634fi 17635 17636 17637 17638 17639 17640 17641 17642 CWARNFLAGS="$BASE_CFLAGS" 17643 if test "x$GCC" = xyes ; then 17644 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17645 fi 17646 17647 17648 17649 17650 17651 17652 17653 17654# Check whether --enable-strict-compilation was given. 17655if test "${enable_strict_compilation+set}" = set; then : 17656 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17657else 17658 STRICT_COMPILE=no 17659fi 17660 17661 17662 17663 17664 17665 17666STRICT_CFLAGS="" 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680xorg_testset_save_CFLAGS="$CFLAGS" 17681 17682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17687 $as_echo_n "(cached) " >&6 17688else 17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17690/* end confdefs.h. */ 17691int i; 17692_ACEOF 17693if ac_fn_c_try_compile "$LINENO"; then : 17694 xorg_cv_cc_flag_unknown_warning_option=yes 17695else 17696 xorg_cv_cc_flag_unknown_warning_option=no 17697fi 17698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17699fi 17700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17703 CFLAGS="$xorg_testset_save_CFLAGS" 17704fi 17705 17706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17709 fi 17710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17714 $as_echo_n "(cached) " >&6 17715else 17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17717/* end confdefs.h. */ 17718int i; 17719_ACEOF 17720if ac_fn_c_try_compile "$LINENO"; then : 17721 xorg_cv_cc_flag_unused_command_line_argument=yes 17722else 17723 xorg_cv_cc_flag_unused_command_line_argument=no 17724fi 17725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17726fi 17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17730 CFLAGS="$xorg_testset_save_CFLAGS" 17731fi 17732 17733found="no" 17734 17735 if test $found = "no" ; then 17736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17738 fi 17739 17740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17742 fi 17743 17744 CFLAGS="$CFLAGS -pedantic" 17745 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17747$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17748 cacheid=xorg_cv_cc_flag__pedantic 17749 if eval \${$cacheid+:} false; then : 17750 $as_echo_n "(cached) " >&6 17751else 17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17753/* end confdefs.h. */ 17754int i; 17755int 17756main () 17757{ 17758 17759 ; 17760 return 0; 17761} 17762_ACEOF 17763if ac_fn_c_try_link "$LINENO"; then : 17764 eval $cacheid=yes 17765else 17766 eval $cacheid=no 17767fi 17768rm -f core conftest.err conftest.$ac_objext \ 17769 conftest$ac_exeext conftest.$ac_ext 17770fi 17771 17772 17773 CFLAGS="$xorg_testset_save_CFLAGS" 17774 17775 eval supported=\$$cacheid 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17777$as_echo "$supported" >&6; } 17778 if test "$supported" = "yes" ; then 17779 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17780 found="yes" 17781 fi 17782 fi 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798xorg_testset_save_CFLAGS="$CFLAGS" 17799 17800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17805 $as_echo_n "(cached) " >&6 17806else 17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17808/* end confdefs.h. */ 17809int i; 17810_ACEOF 17811if ac_fn_c_try_compile "$LINENO"; then : 17812 xorg_cv_cc_flag_unknown_warning_option=yes 17813else 17814 xorg_cv_cc_flag_unknown_warning_option=no 17815fi 17816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17817fi 17818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17821 CFLAGS="$xorg_testset_save_CFLAGS" 17822fi 17823 17824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17827 fi 17828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17832 $as_echo_n "(cached) " >&6 17833else 17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17835/* end confdefs.h. */ 17836int i; 17837_ACEOF 17838if ac_fn_c_try_compile "$LINENO"; then : 17839 xorg_cv_cc_flag_unused_command_line_argument=yes 17840else 17841 xorg_cv_cc_flag_unused_command_line_argument=no 17842fi 17843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17844fi 17845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17848 CFLAGS="$xorg_testset_save_CFLAGS" 17849fi 17850 17851found="no" 17852 17853 if test $found = "no" ; then 17854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17856 fi 17857 17858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17860 fi 17861 17862 CFLAGS="$CFLAGS -Werror" 17863 17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17865$as_echo_n "checking if $CC supports -Werror... " >&6; } 17866 cacheid=xorg_cv_cc_flag__Werror 17867 if eval \${$cacheid+:} false; then : 17868 $as_echo_n "(cached) " >&6 17869else 17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872int i; 17873int 17874main () 17875{ 17876 17877 ; 17878 return 0; 17879} 17880_ACEOF 17881if ac_fn_c_try_link "$LINENO"; then : 17882 eval $cacheid=yes 17883else 17884 eval $cacheid=no 17885fi 17886rm -f core conftest.err conftest.$ac_objext \ 17887 conftest$ac_exeext conftest.$ac_ext 17888fi 17889 17890 17891 CFLAGS="$xorg_testset_save_CFLAGS" 17892 17893 eval supported=\$$cacheid 17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17895$as_echo "$supported" >&6; } 17896 if test "$supported" = "yes" ; then 17897 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17898 found="yes" 17899 fi 17900 fi 17901 17902 if test $found = "no" ; then 17903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17905 fi 17906 17907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17909 fi 17910 17911 CFLAGS="$CFLAGS -errwarn" 17912 17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17914$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17915 cacheid=xorg_cv_cc_flag__errwarn 17916 if eval \${$cacheid+:} false; then : 17917 $as_echo_n "(cached) " >&6 17918else 17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17920/* end confdefs.h. */ 17921int i; 17922int 17923main () 17924{ 17925 17926 ; 17927 return 0; 17928} 17929_ACEOF 17930if ac_fn_c_try_link "$LINENO"; then : 17931 eval $cacheid=yes 17932else 17933 eval $cacheid=no 17934fi 17935rm -f core conftest.err conftest.$ac_objext \ 17936 conftest$ac_exeext conftest.$ac_ext 17937fi 17938 17939 17940 CFLAGS="$xorg_testset_save_CFLAGS" 17941 17942 eval supported=\$$cacheid 17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17944$as_echo "$supported" >&6; } 17945 if test "$supported" = "yes" ; then 17946 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17947 found="yes" 17948 fi 17949 fi 17950 17951 17952 17953# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17954# activate it with -Werror, so we add it here explicitly. 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968xorg_testset_save_CFLAGS="$CFLAGS" 17969 17970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17975 $as_echo_n "(cached) " >&6 17976else 17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17978/* end confdefs.h. */ 17979int i; 17980_ACEOF 17981if ac_fn_c_try_compile "$LINENO"; then : 17982 xorg_cv_cc_flag_unknown_warning_option=yes 17983else 17984 xorg_cv_cc_flag_unknown_warning_option=no 17985fi 17986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17987fi 17988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17991 CFLAGS="$xorg_testset_save_CFLAGS" 17992fi 17993 17994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17997 fi 17998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18002 $as_echo_n "(cached) " >&6 18003else 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006int i; 18007_ACEOF 18008if ac_fn_c_try_compile "$LINENO"; then : 18009 xorg_cv_cc_flag_unused_command_line_argument=yes 18010else 18011 xorg_cv_cc_flag_unused_command_line_argument=no 18012fi 18013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18014fi 18015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18018 CFLAGS="$xorg_testset_save_CFLAGS" 18019fi 18020 18021found="no" 18022 18023 if test $found = "no" ; then 18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18026 fi 18027 18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18030 fi 18031 18032 CFLAGS="$CFLAGS -Werror=attributes" 18033 18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18035$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18036 cacheid=xorg_cv_cc_flag__Werror_attributes 18037 if eval \${$cacheid+:} false; then : 18038 $as_echo_n "(cached) " >&6 18039else 18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18041/* end confdefs.h. */ 18042int i; 18043int 18044main () 18045{ 18046 18047 ; 18048 return 0; 18049} 18050_ACEOF 18051if ac_fn_c_try_link "$LINENO"; then : 18052 eval $cacheid=yes 18053else 18054 eval $cacheid=no 18055fi 18056rm -f core conftest.err conftest.$ac_objext \ 18057 conftest$ac_exeext conftest.$ac_ext 18058fi 18059 18060 18061 CFLAGS="$xorg_testset_save_CFLAGS" 18062 18063 eval supported=\$$cacheid 18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18065$as_echo "$supported" >&6; } 18066 if test "$supported" = "yes" ; then 18067 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18068 found="yes" 18069 fi 18070 fi 18071 18072 18073 18074if test "x$STRICT_COMPILE" = "xyes"; then 18075 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18076 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18077fi 18078 18079 18080 18081 18082 18083 18084cat >>confdefs.h <<_ACEOF 18085#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18086_ACEOF 18087 18088 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18089 if test "x$PVM" = "x"; then 18090 PVM="0" 18091 fi 18092 18093cat >>confdefs.h <<_ACEOF 18094#define PACKAGE_VERSION_MINOR $PVM 18095_ACEOF 18096 18097 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18098 if test "x$PVP" = "x"; then 18099 PVP="0" 18100 fi 18101 18102cat >>confdefs.h <<_ACEOF 18103#define PACKAGE_VERSION_PATCHLEVEL $PVP 18104_ACEOF 18105 18106 18107 18108CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18109mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18110|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18111echo 'git directory not found: installing possibly empty changelog.' >&2)" 18112 18113 18114 18115 18116macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18117INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18118mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18119|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18120echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18121 18122 18123 18124 18125 18126 18127if test x$APP_MAN_SUFFIX = x ; then 18128 APP_MAN_SUFFIX=1 18129fi 18130if test x$APP_MAN_DIR = x ; then 18131 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18132fi 18133 18134if test x$LIB_MAN_SUFFIX = x ; then 18135 LIB_MAN_SUFFIX=3 18136fi 18137if test x$LIB_MAN_DIR = x ; then 18138 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18139fi 18140 18141if test x$FILE_MAN_SUFFIX = x ; then 18142 case $host_os in 18143 # Solaris 2.0 - 11 use SysV man page sections 18144 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 18145 *) FILE_MAN_SUFFIX=5 ;; 18146 esac 18147fi 18148if test x$FILE_MAN_DIR = x ; then 18149 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18150fi 18151 18152if test x$MISC_MAN_SUFFIX = x ; then 18153 case $host_os in 18154 # Solaris 2.0 - 11 use SysV man page sections 18155 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 18156 *) MISC_MAN_SUFFIX=7 ;; 18157 esac 18158fi 18159if test x$MISC_MAN_DIR = x ; then 18160 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18161fi 18162 18163if test x$DRIVER_MAN_SUFFIX = x ; then 18164 case $host_os in 18165 # Solaris 2.0 - 11 use SysV man page sections 18166 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 18167 *) DRIVER_MAN_SUFFIX=4 ;; 18168 esac 18169fi 18170if test x$DRIVER_MAN_DIR = x ; then 18171 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18172fi 18173 18174if test x$ADMIN_MAN_SUFFIX = x ; then 18175 case $host_os in 18176 # Solaris 2.0 - 11 use SysV man page sections 18177 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 18178 *) ADMIN_MAN_SUFFIX=8 ;; 18179 esac 18180fi 18181if test x$ADMIN_MAN_DIR = x ; then 18182 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18183fi 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199XORG_MAN_PAGE="X Version 11" 18200 18201MAN_SUBSTS="\ 18202 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18203 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18204 -e 's|__xservername__|Xorg|g' \ 18205 -e 's|__xconfigfile__|xorg.conf|g' \ 18206 -e 's|__projectroot__|\$(prefix)|g' \ 18207 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18208 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18209 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18210 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18211 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18212 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18213 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18214 18215 18216 18217# Check whether --enable-silent-rules was given. 18218if test "${enable_silent_rules+set}" = set; then : 18219 enableval=$enable_silent_rules; 18220fi 18221 18222case $enable_silent_rules in # ((( 18223 yes) AM_DEFAULT_VERBOSITY=0;; 18224 no) AM_DEFAULT_VERBOSITY=1;; 18225 *) AM_DEFAULT_VERBOSITY=0;; 18226esac 18227am_make=${MAKE-make} 18228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18229$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18230if ${am_cv_make_support_nested_variables+:} false; then : 18231 $as_echo_n "(cached) " >&6 18232else 18233 if $as_echo 'TRUE=$(BAR$(V)) 18234BAR0=false 18235BAR1=true 18236V=1 18237am__doit: 18238 @$(TRUE) 18239.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18240 am_cv_make_support_nested_variables=yes 18241else 18242 am_cv_make_support_nested_variables=no 18243fi 18244fi 18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18246$as_echo "$am_cv_make_support_nested_variables" >&6; } 18247if test $am_cv_make_support_nested_variables = yes; then 18248 AM_V='$(V)' 18249 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18250else 18251 AM_V=$AM_DEFAULT_VERBOSITY 18252 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18253fi 18254AM_BACKSLASH='\' 18255 18256 18257 18258# Checks for library functions. 18259ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 18260if test "x$ac_cv_func_strcasecmp" = xyes; then : 18261 18262else 18263 18264$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h 18265 18266fi 18267 18268ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 18269if test "x$ac_cv_func_getc_unlocked" = xyes; then : 18270 18271$as_echo "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h 18272 18273fi 18274 18275 18276# Obtain compiler/linker options for depedencies 18277 18278pkg_failed=no 18279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5 18280$as_echo_n "checking for XKBFILE... " >&6; } 18281 18282if test -n "$XKBFILE_CFLAGS"; then 18283 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS" 18284 elif test -n "$PKG_CONFIG"; then 18285 if test -n "$PKG_CONFIG" && \ 18286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 18287 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 18288 ac_status=$? 18289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18290 test $ac_status = 0; }; then 18291 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null` 18292 test "x$?" != "x0" && pkg_failed=yes 18293else 18294 pkg_failed=yes 18295fi 18296 else 18297 pkg_failed=untried 18298fi 18299if test -n "$XKBFILE_LIBS"; then 18300 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS" 18301 elif test -n "$PKG_CONFIG"; then 18302 if test -n "$PKG_CONFIG" && \ 18303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 18304 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 18305 ac_status=$? 18306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18307 test $ac_status = 0; }; then 18308 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null` 18309 test "x$?" != "x0" && pkg_failed=yes 18310else 18311 pkg_failed=yes 18312fi 18313 else 18314 pkg_failed=untried 18315fi 18316 18317 18318 18319if test $pkg_failed = yes; then 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18321$as_echo "no" >&6; } 18322 18323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18324 _pkg_short_errors_supported=yes 18325else 18326 _pkg_short_errors_supported=no 18327fi 18328 if test $_pkg_short_errors_supported = yes; then 18329 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1` 18330 else 18331 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1` 18332 fi 18333 # Put the nasty error message in config.log where it belongs 18334 echo "$XKBFILE_PKG_ERRORS" >&5 18335 18336 as_fn_error $? "Package requirements (x11 kbproto) were not met: 18337 18338$XKBFILE_PKG_ERRORS 18339 18340Consider adjusting the PKG_CONFIG_PATH environment variable if you 18341installed software in a non-standard prefix. 18342 18343Alternatively, you may set the environment variables XKBFILE_CFLAGS 18344and XKBFILE_LIBS to avoid the need to call pkg-config. 18345See the pkg-config man page for more details." "$LINENO" 5 18346elif test $pkg_failed = untried; then 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18348$as_echo "no" >&6; } 18349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18351as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18352is in your PATH or set the PKG_CONFIG environment variable to the full 18353path to pkg-config. 18354 18355Alternatively, you may set the environment variables XKBFILE_CFLAGS 18356and XKBFILE_LIBS to avoid the need to call pkg-config. 18357See the pkg-config man page for more details. 18358 18359To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18360See \`config.log' for more details" "$LINENO" 5; } 18361else 18362 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS 18363 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18365$as_echo "yes" >&6; } 18366 18367fi 18368 18369ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc" 18370 18371cat >confcache <<\_ACEOF 18372# This file is a shell script that caches the results of configure 18373# tests run on this system so they can be shared between configure 18374# scripts and configure runs, see configure's option --config-cache. 18375# It is not useful on other systems. If it contains results you don't 18376# want to keep, you may remove or edit it. 18377# 18378# config.status only pays attention to the cache file if you give it 18379# the --recheck option to rerun configure. 18380# 18381# `ac_cv_env_foo' variables (set or unset) will be overridden when 18382# loading this file, other *unset* `ac_cv_foo' will be assigned the 18383# following values. 18384 18385_ACEOF 18386 18387# The following way of writing the cache mishandles newlines in values, 18388# but we know of no workaround that is simple, portable, and efficient. 18389# So, we kill variables containing newlines. 18390# Ultrix sh set writes to stderr and can't be redirected directly, 18391# and sets the high bit in the cache file unless we assign to the vars. 18392( 18393 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18394 eval ac_val=\$$ac_var 18395 case $ac_val in #( 18396 *${as_nl}*) 18397 case $ac_var in #( 18398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18399$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18400 esac 18401 case $ac_var in #( 18402 _ | IFS | as_nl) ;; #( 18403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18404 *) { eval $ac_var=; unset $ac_var;} ;; 18405 esac ;; 18406 esac 18407 done 18408 18409 (set) 2>&1 | 18410 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18411 *${as_nl}ac_space=\ *) 18412 # `set' does not quote correctly, so add quotes: double-quote 18413 # substitution turns \\\\ into \\, and sed turns \\ into \. 18414 sed -n \ 18415 "s/'/'\\\\''/g; 18416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18417 ;; #( 18418 *) 18419 # `set' quotes correctly as required by POSIX, so do not add quotes. 18420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18421 ;; 18422 esac | 18423 sort 18424) | 18425 sed ' 18426 /^ac_cv_env_/b end 18427 t clear 18428 :clear 18429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18430 t end 18431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18432 :end' >>confcache 18433if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18434 if test -w "$cache_file"; then 18435 if test "x$cache_file" != "x/dev/null"; then 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18437$as_echo "$as_me: updating cache $cache_file" >&6;} 18438 if test ! -f "$cache_file" || test -h "$cache_file"; then 18439 cat confcache >"$cache_file" 18440 else 18441 case $cache_file in #( 18442 */* | ?:*) 18443 mv -f confcache "$cache_file"$$ && 18444 mv -f "$cache_file"$$ "$cache_file" ;; #( 18445 *) 18446 mv -f confcache "$cache_file" ;; 18447 esac 18448 fi 18449 fi 18450 else 18451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18452$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18453 fi 18454fi 18455rm -f confcache 18456 18457test "x$prefix" = xNONE && prefix=$ac_default_prefix 18458# Let make expand exec_prefix. 18459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18460 18461DEFS=-DHAVE_CONFIG_H 18462 18463ac_libobjs= 18464ac_ltlibobjs= 18465U= 18466for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18467 # 1. Remove the extension, and $U if already installed. 18468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18469 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18471 # will be set to the directory where LIBOBJS objects are built. 18472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18474done 18475LIBOBJS=$ac_libobjs 18476 18477LTLIBOBJS=$ac_ltlibobjs 18478 18479 18480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18481$as_echo_n "checking that generated files are newer than configure... " >&6; } 18482 if test -n "$am_sleep_pid"; then 18483 # Hide warnings about reused PIDs. 18484 wait $am_sleep_pid 2>/dev/null 18485 fi 18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18487$as_echo "done" >&6; } 18488 if test -n "$EXEEXT"; then 18489 am__EXEEXT_TRUE= 18490 am__EXEEXT_FALSE='#' 18491else 18492 am__EXEEXT_TRUE='#' 18493 am__EXEEXT_FALSE= 18494fi 18495 18496if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18497 as_fn_error $? "conditional \"AMDEP\" was never defined. 18498Usually this means the macro was only invoked conditionally." "$LINENO" 5 18499fi 18500if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18502Usually this means the macro was only invoked conditionally." "$LINENO" 5 18503fi 18504 18505: "${CONFIG_STATUS=./config.status}" 18506ac_write_fail=0 18507ac_clean_files_save=$ac_clean_files 18508ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18509{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18510$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18511as_write_fail=0 18512cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18513#! $SHELL 18514# Generated by $as_me. 18515# Run this file to recreate the current configuration. 18516# Compiler output produced by configure, useful for debugging 18517# configure, is in config.log if it exists. 18518 18519debug=false 18520ac_cs_recheck=false 18521ac_cs_silent=false 18522 18523SHELL=\${CONFIG_SHELL-$SHELL} 18524export SHELL 18525_ASEOF 18526cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18527## -------------------- ## 18528## M4sh Initialization. ## 18529## -------------------- ## 18530 18531# Be more Bourne compatible 18532DUALCASE=1; export DUALCASE # for MKS sh 18533if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18534 emulate sh 18535 NULLCMD=: 18536 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18537 # is contrary to our usage. Disable this feature. 18538 alias -g '${1+"$@"}'='"$@"' 18539 setopt NO_GLOB_SUBST 18540else 18541 case `(set -o) 2>/dev/null` in #( 18542 *posix*) : 18543 set -o posix ;; #( 18544 *) : 18545 ;; 18546esac 18547fi 18548 18549 18550as_nl=' 18551' 18552export as_nl 18553# Printing a long string crashes Solaris 7 /usr/bin/printf. 18554as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18555as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18556as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18557# Prefer a ksh shell builtin over an external printf program on Solaris, 18558# but without wasting forks for bash or zsh. 18559if test -z "$BASH_VERSION$ZSH_VERSION" \ 18560 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18561 as_echo='print -r --' 18562 as_echo_n='print -rn --' 18563elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18564 as_echo='printf %s\n' 18565 as_echo_n='printf %s' 18566else 18567 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18568 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18569 as_echo_n='/usr/ucb/echo -n' 18570 else 18571 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18572 as_echo_n_body='eval 18573 arg=$1; 18574 case $arg in #( 18575 *"$as_nl"*) 18576 expr "X$arg" : "X\\(.*\\)$as_nl"; 18577 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18578 esac; 18579 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18580 ' 18581 export as_echo_n_body 18582 as_echo_n='sh -c $as_echo_n_body as_echo' 18583 fi 18584 export as_echo_body 18585 as_echo='sh -c $as_echo_body as_echo' 18586fi 18587 18588# The user is always right. 18589if test "${PATH_SEPARATOR+set}" != set; then 18590 PATH_SEPARATOR=: 18591 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18592 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18593 PATH_SEPARATOR=';' 18594 } 18595fi 18596 18597 18598# IFS 18599# We need space, tab and new line, in precisely that order. Quoting is 18600# there to prevent editors from complaining about space-tab. 18601# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18602# splitting by setting IFS to empty value.) 18603IFS=" "" $as_nl" 18604 18605# Find who we are. Look in the path if we contain no directory separator. 18606as_myself= 18607case $0 in #(( 18608 *[\\/]* ) as_myself=$0 ;; 18609 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18610for as_dir in $PATH 18611do 18612 IFS=$as_save_IFS 18613 test -z "$as_dir" && as_dir=. 18614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18615 done 18616IFS=$as_save_IFS 18617 18618 ;; 18619esac 18620# We did not find ourselves, most probably we were run as `sh COMMAND' 18621# in which case we are not to be found in the path. 18622if test "x$as_myself" = x; then 18623 as_myself=$0 18624fi 18625if test ! -f "$as_myself"; then 18626 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18627 exit 1 18628fi 18629 18630# Unset variables that we do not need and which cause bugs (e.g. in 18631# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18632# suppresses any "Segmentation fault" message there. '((' could 18633# trigger a bug in pdksh 5.2.14. 18634for as_var in BASH_ENV ENV MAIL MAILPATH 18635do eval test x\${$as_var+set} = xset \ 18636 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18637done 18638PS1='$ ' 18639PS2='> ' 18640PS4='+ ' 18641 18642# NLS nuisances. 18643LC_ALL=C 18644export LC_ALL 18645LANGUAGE=C 18646export LANGUAGE 18647 18648# CDPATH. 18649(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18650 18651 18652# as_fn_error STATUS ERROR [LINENO LOG_FD] 18653# ---------------------------------------- 18654# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18655# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18656# script with STATUS, using 1 if that was 0. 18657as_fn_error () 18658{ 18659 as_status=$1; test $as_status -eq 0 && as_status=1 18660 if test "$4"; then 18661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18663 fi 18664 $as_echo "$as_me: error: $2" >&2 18665 as_fn_exit $as_status 18666} # as_fn_error 18667 18668 18669# as_fn_set_status STATUS 18670# ----------------------- 18671# Set $? to STATUS, without forking. 18672as_fn_set_status () 18673{ 18674 return $1 18675} # as_fn_set_status 18676 18677# as_fn_exit STATUS 18678# ----------------- 18679# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18680as_fn_exit () 18681{ 18682 set +e 18683 as_fn_set_status $1 18684 exit $1 18685} # as_fn_exit 18686 18687# as_fn_unset VAR 18688# --------------- 18689# Portably unset VAR. 18690as_fn_unset () 18691{ 18692 { eval $1=; unset $1;} 18693} 18694as_unset=as_fn_unset 18695# as_fn_append VAR VALUE 18696# ---------------------- 18697# Append the text in VALUE to the end of the definition contained in VAR. Take 18698# advantage of any shell optimizations that allow amortized linear growth over 18699# repeated appends, instead of the typical quadratic growth present in naive 18700# implementations. 18701if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18702 eval 'as_fn_append () 18703 { 18704 eval $1+=\$2 18705 }' 18706else 18707 as_fn_append () 18708 { 18709 eval $1=\$$1\$2 18710 } 18711fi # as_fn_append 18712 18713# as_fn_arith ARG... 18714# ------------------ 18715# Perform arithmetic evaluation on the ARGs, and store the result in the 18716# global $as_val. Take advantage of shells that can avoid forks. The arguments 18717# must be portable across $(()) and expr. 18718if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18719 eval 'as_fn_arith () 18720 { 18721 as_val=$(( $* )) 18722 }' 18723else 18724 as_fn_arith () 18725 { 18726 as_val=`expr "$@" || test $? -eq 1` 18727 } 18728fi # as_fn_arith 18729 18730 18731if expr a : '\(a\)' >/dev/null 2>&1 && 18732 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18733 as_expr=expr 18734else 18735 as_expr=false 18736fi 18737 18738if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18739 as_basename=basename 18740else 18741 as_basename=false 18742fi 18743 18744if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18745 as_dirname=dirname 18746else 18747 as_dirname=false 18748fi 18749 18750as_me=`$as_basename -- "$0" || 18751$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18752 X"$0" : 'X\(//\)$' \| \ 18753 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18754$as_echo X/"$0" | 18755 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18756 s//\1/ 18757 q 18758 } 18759 /^X\/\(\/\/\)$/{ 18760 s//\1/ 18761 q 18762 } 18763 /^X\/\(\/\).*/{ 18764 s//\1/ 18765 q 18766 } 18767 s/.*/./; q'` 18768 18769# Avoid depending upon Character Ranges. 18770as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18771as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18772as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18773as_cr_digits='0123456789' 18774as_cr_alnum=$as_cr_Letters$as_cr_digits 18775 18776ECHO_C= ECHO_N= ECHO_T= 18777case `echo -n x` in #((((( 18778-n*) 18779 case `echo 'xy\c'` in 18780 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18781 xy) ECHO_C='\c';; 18782 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18783 ECHO_T=' ';; 18784 esac;; 18785*) 18786 ECHO_N='-n';; 18787esac 18788 18789rm -f conf$$ conf$$.exe conf$$.file 18790if test -d conf$$.dir; then 18791 rm -f conf$$.dir/conf$$.file 18792else 18793 rm -f conf$$.dir 18794 mkdir conf$$.dir 2>/dev/null 18795fi 18796if (echo >conf$$.file) 2>/dev/null; then 18797 if ln -s conf$$.file conf$$ 2>/dev/null; then 18798 as_ln_s='ln -s' 18799 # ... but there are two gotchas: 18800 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18801 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18802 # In both cases, we have to default to `cp -pR'. 18803 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18804 as_ln_s='cp -pR' 18805 elif ln conf$$.file conf$$ 2>/dev/null; then 18806 as_ln_s=ln 18807 else 18808 as_ln_s='cp -pR' 18809 fi 18810else 18811 as_ln_s='cp -pR' 18812fi 18813rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18814rmdir conf$$.dir 2>/dev/null 18815 18816 18817# as_fn_mkdir_p 18818# ------------- 18819# Create "$as_dir" as a directory, including parents if necessary. 18820as_fn_mkdir_p () 18821{ 18822 18823 case $as_dir in #( 18824 -*) as_dir=./$as_dir;; 18825 esac 18826 test -d "$as_dir" || eval $as_mkdir_p || { 18827 as_dirs= 18828 while :; do 18829 case $as_dir in #( 18830 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18831 *) as_qdir=$as_dir;; 18832 esac 18833 as_dirs="'$as_qdir' $as_dirs" 18834 as_dir=`$as_dirname -- "$as_dir" || 18835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18836 X"$as_dir" : 'X\(//\)[^/]' \| \ 18837 X"$as_dir" : 'X\(//\)$' \| \ 18838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18839$as_echo X"$as_dir" | 18840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18841 s//\1/ 18842 q 18843 } 18844 /^X\(\/\/\)[^/].*/{ 18845 s//\1/ 18846 q 18847 } 18848 /^X\(\/\/\)$/{ 18849 s//\1/ 18850 q 18851 } 18852 /^X\(\/\).*/{ 18853 s//\1/ 18854 q 18855 } 18856 s/.*/./; q'` 18857 test -d "$as_dir" && break 18858 done 18859 test -z "$as_dirs" || eval "mkdir $as_dirs" 18860 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18861 18862 18863} # as_fn_mkdir_p 18864if mkdir -p . 2>/dev/null; then 18865 as_mkdir_p='mkdir -p "$as_dir"' 18866else 18867 test -d ./-p && rmdir ./-p 18868 as_mkdir_p=false 18869fi 18870 18871 18872# as_fn_executable_p FILE 18873# ----------------------- 18874# Test if FILE is an executable regular file. 18875as_fn_executable_p () 18876{ 18877 test -f "$1" && test -x "$1" 18878} # as_fn_executable_p 18879as_test_x='test -x' 18880as_executable_p=as_fn_executable_p 18881 18882# Sed expression to map a string onto a valid CPP name. 18883as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18884 18885# Sed expression to map a string onto a valid variable name. 18886as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18887 18888 18889exec 6>&1 18890## ----------------------------------- ## 18891## Main body of $CONFIG_STATUS script. ## 18892## ----------------------------------- ## 18893_ASEOF 18894test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18895 18896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18897# Save the log message, to keep $0 and so on meaningful, and to 18898# report actual input values of CONFIG_FILES etc. instead of their 18899# values after options handling. 18900ac_log=" 18901This file was extended by libxkbfile $as_me 1.1.0, which was 18902generated by GNU Autoconf 2.69. Invocation command line was 18903 18904 CONFIG_FILES = $CONFIG_FILES 18905 CONFIG_HEADERS = $CONFIG_HEADERS 18906 CONFIG_LINKS = $CONFIG_LINKS 18907 CONFIG_COMMANDS = $CONFIG_COMMANDS 18908 $ $0 $@ 18909 18910on `(hostname || uname -n) 2>/dev/null | sed 1q` 18911" 18912 18913_ACEOF 18914 18915case $ac_config_files in *" 18916"*) set x $ac_config_files; shift; ac_config_files=$*;; 18917esac 18918 18919case $ac_config_headers in *" 18920"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18921esac 18922 18923 18924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18925# Files that config.status was made for. 18926config_files="$ac_config_files" 18927config_headers="$ac_config_headers" 18928config_commands="$ac_config_commands" 18929 18930_ACEOF 18931 18932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18933ac_cs_usage="\ 18934\`$as_me' instantiates files and other configuration actions 18935from templates according to the current configuration. Unless the files 18936and actions are specified as TAGs, all are instantiated by default. 18937 18938Usage: $0 [OPTION]... [TAG]... 18939 18940 -h, --help print this help, then exit 18941 -V, --version print version number and configuration settings, then exit 18942 --config print configuration, then exit 18943 -q, --quiet, --silent 18944 do not print progress messages 18945 -d, --debug don't remove temporary files 18946 --recheck update $as_me by reconfiguring in the same conditions 18947 --file=FILE[:TEMPLATE] 18948 instantiate the configuration file FILE 18949 --header=FILE[:TEMPLATE] 18950 instantiate the configuration header FILE 18951 18952Configuration files: 18953$config_files 18954 18955Configuration headers: 18956$config_headers 18957 18958Configuration commands: 18959$config_commands 18960 18961Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/issues>." 18962 18963_ACEOF 18964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18965ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18966ac_cs_version="\\ 18967libxkbfile config.status 1.1.0 18968configured by $0, generated by GNU Autoconf 2.69, 18969 with options \\"\$ac_cs_config\\" 18970 18971Copyright (C) 2012 Free Software Foundation, Inc. 18972This config.status script is free software; the Free Software Foundation 18973gives unlimited permission to copy, distribute and modify it." 18974 18975ac_pwd='$ac_pwd' 18976srcdir='$srcdir' 18977INSTALL='$INSTALL' 18978MKDIR_P='$MKDIR_P' 18979AWK='$AWK' 18980test -n "\$AWK" || AWK=awk 18981_ACEOF 18982 18983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18984# The default lists apply if the user does not specify any file. 18985ac_need_defaults=: 18986while test $# != 0 18987do 18988 case $1 in 18989 --*=?*) 18990 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18991 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18992 ac_shift=: 18993 ;; 18994 --*=) 18995 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18996 ac_optarg= 18997 ac_shift=: 18998 ;; 18999 *) 19000 ac_option=$1 19001 ac_optarg=$2 19002 ac_shift=shift 19003 ;; 19004 esac 19005 19006 case $ac_option in 19007 # Handling of the options. 19008 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19009 ac_cs_recheck=: ;; 19010 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19011 $as_echo "$ac_cs_version"; exit ;; 19012 --config | --confi | --conf | --con | --co | --c ) 19013 $as_echo "$ac_cs_config"; exit ;; 19014 --debug | --debu | --deb | --de | --d | -d ) 19015 debug=: ;; 19016 --file | --fil | --fi | --f ) 19017 $ac_shift 19018 case $ac_optarg in 19019 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19020 '') as_fn_error $? "missing file argument" ;; 19021 esac 19022 as_fn_append CONFIG_FILES " '$ac_optarg'" 19023 ac_need_defaults=false;; 19024 --header | --heade | --head | --hea ) 19025 $ac_shift 19026 case $ac_optarg in 19027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19028 esac 19029 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19030 ac_need_defaults=false;; 19031 --he | --h) 19032 # Conflict between --help and --header 19033 as_fn_error $? "ambiguous option: \`$1' 19034Try \`$0 --help' for more information.";; 19035 --help | --hel | -h ) 19036 $as_echo "$ac_cs_usage"; exit ;; 19037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19038 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19039 ac_cs_silent=: ;; 19040 19041 # This is an error. 19042 -*) as_fn_error $? "unrecognized option: \`$1' 19043Try \`$0 --help' for more information." ;; 19044 19045 *) as_fn_append ac_config_targets " $1" 19046 ac_need_defaults=false ;; 19047 19048 esac 19049 shift 19050done 19051 19052ac_configure_extra_args= 19053 19054if $ac_cs_silent; then 19055 exec 6>/dev/null 19056 ac_configure_extra_args="$ac_configure_extra_args --silent" 19057fi 19058 19059_ACEOF 19060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19061if \$ac_cs_recheck; then 19062 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19063 shift 19064 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19065 CONFIG_SHELL='$SHELL' 19066 export CONFIG_SHELL 19067 exec "\$@" 19068fi 19069 19070_ACEOF 19071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19072exec 5>>config.log 19073{ 19074 echo 19075 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19076## Running $as_me. ## 19077_ASBOX 19078 $as_echo "$ac_log" 19079} >&5 19080 19081_ACEOF 19082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19083# 19084# INIT-COMMANDS 19085# 19086AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19087 19088 19089# The HP-UX ksh and POSIX shell print the target directory to stdout 19090# if CDPATH is set. 19091(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19092 19093sed_quote_subst='$sed_quote_subst' 19094double_quote_subst='$double_quote_subst' 19095delay_variable_subst='$delay_variable_subst' 19096macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19097macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19098enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19099enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19100pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19101enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19102shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19103SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19104ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19105PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19106host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19107host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19108host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19109build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19110build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19111build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19112SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19113Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19114GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19115EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19116FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19117LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19118NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19119LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19120max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19121ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19122exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19123lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19124lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19125lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19126lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19127lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19128reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19129reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19130OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19131deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19132file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19133file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19134want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19135DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19136sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19137AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19138AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19139archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19140STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19141RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19142old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19143old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19144old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19145lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19146CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19147CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19148compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19149GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19150lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19151lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19152lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19153lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19154lt_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"`' 19155lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19156nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19157lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19158lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19159objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19160MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19161lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19162lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19163lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19164lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19165lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19166need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19167MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19168DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19169NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19170LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19171OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19172OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19173libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19174shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19175extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19176archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19177enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19178export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19179whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19180compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19181old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19182old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19183archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19184archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19185module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19186module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19187with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19188allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19189no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19190hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19191hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19192hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19193hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19194hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19195hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19196hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19197inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19198link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19199always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19200export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19201exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19202include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19203prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19204postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19205file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19206variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19207need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19208need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19209version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19210runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19211shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19212shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19213libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19214library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19215soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19216install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19217postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19218postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19219finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19220finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19221hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19222sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19223configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19224configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19225hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19226enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19227enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19228enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19229old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19230striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19231 19232LTCC='$LTCC' 19233LTCFLAGS='$LTCFLAGS' 19234compiler='$compiler_DEFAULT' 19235 19236# A function that is used when there is no print builtin or printf. 19237func_fallback_echo () 19238{ 19239 eval 'cat <<_LTECHO_EOF 19240\$1 19241_LTECHO_EOF' 19242} 19243 19244# Quote evaled strings. 19245for var in SHELL \ 19246ECHO \ 19247PATH_SEPARATOR \ 19248SED \ 19249GREP \ 19250EGREP \ 19251FGREP \ 19252LD \ 19253NM \ 19254LN_S \ 19255lt_SP2NL \ 19256lt_NL2SP \ 19257reload_flag \ 19258OBJDUMP \ 19259deplibs_check_method \ 19260file_magic_cmd \ 19261file_magic_glob \ 19262want_nocaseglob \ 19263DLLTOOL \ 19264sharedlib_from_linklib_cmd \ 19265AR \ 19266AR_FLAGS \ 19267archiver_list_spec \ 19268STRIP \ 19269RANLIB \ 19270CC \ 19271CFLAGS \ 19272compiler \ 19273lt_cv_sys_global_symbol_pipe \ 19274lt_cv_sys_global_symbol_to_cdecl \ 19275lt_cv_sys_global_symbol_to_import \ 19276lt_cv_sys_global_symbol_to_c_name_address \ 19277lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19278lt_cv_nm_interface \ 19279nm_file_list_spec \ 19280lt_cv_truncate_bin \ 19281lt_prog_compiler_no_builtin_flag \ 19282lt_prog_compiler_pic \ 19283lt_prog_compiler_wl \ 19284lt_prog_compiler_static \ 19285lt_cv_prog_compiler_c_o \ 19286need_locks \ 19287MANIFEST_TOOL \ 19288DSYMUTIL \ 19289NMEDIT \ 19290LIPO \ 19291OTOOL \ 19292OTOOL64 \ 19293shrext_cmds \ 19294export_dynamic_flag_spec \ 19295whole_archive_flag_spec \ 19296compiler_needs_object \ 19297with_gnu_ld \ 19298allow_undefined_flag \ 19299no_undefined_flag \ 19300hardcode_libdir_flag_spec \ 19301hardcode_libdir_separator \ 19302exclude_expsyms \ 19303include_expsyms \ 19304file_list_spec \ 19305variables_saved_for_relink \ 19306libname_spec \ 19307library_names_spec \ 19308soname_spec \ 19309install_override_mode \ 19310finish_eval \ 19311old_striplib \ 19312striplib; do 19313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19314 *[\\\\\\\`\\"\\\$]*) 19315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19316 ;; 19317 *) 19318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19319 ;; 19320 esac 19321done 19322 19323# Double-quote double-evaled strings. 19324for var in reload_cmds \ 19325old_postinstall_cmds \ 19326old_postuninstall_cmds \ 19327old_archive_cmds \ 19328extract_expsyms_cmds \ 19329old_archive_from_new_cmds \ 19330old_archive_from_expsyms_cmds \ 19331archive_cmds \ 19332archive_expsym_cmds \ 19333module_cmds \ 19334module_expsym_cmds \ 19335export_symbols_cmds \ 19336prelink_cmds \ 19337postlink_cmds \ 19338postinstall_cmds \ 19339postuninstall_cmds \ 19340finish_cmds \ 19341sys_lib_search_path_spec \ 19342configure_time_dlsearch_path \ 19343configure_time_lt_sys_library_path; do 19344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19345 *[\\\\\\\`\\"\\\$]*) 19346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19347 ;; 19348 *) 19349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19350 ;; 19351 esac 19352done 19353 19354ac_aux_dir='$ac_aux_dir' 19355 19356# See if we are running on zsh, and set the options that allow our 19357# commands through without removal of \ escapes INIT. 19358if test -n "\${ZSH_VERSION+set}"; then 19359 setopt NO_GLOB_SUBST 19360fi 19361 19362 19363 PACKAGE='$PACKAGE' 19364 VERSION='$VERSION' 19365 RM='$RM' 19366 ofile='$ofile' 19367 19368 19369 19370 19371_ACEOF 19372 19373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19374 19375# Handling of arguments. 19376for ac_config_target in $ac_config_targets 19377do 19378 case $ac_config_target in 19379 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19380 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19381 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19383 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19384 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;; 19385 19386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19387 esac 19388done 19389 19390 19391# If the user did not use the arguments to specify the items to instantiate, 19392# then the envvar interface is used. Set only those that are not. 19393# We use the long form for the default assignment because of an extremely 19394# bizarre bug on SunOS 4.1.3. 19395if $ac_need_defaults; then 19396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19399fi 19400 19401# Have a temporary directory for convenience. Make it in the build tree 19402# simply because there is no reason against having it here, and in addition, 19403# creating and moving files from /tmp can sometimes cause problems. 19404# Hook for its removal unless debugging. 19405# Note that there is a small window in which the directory will not be cleaned: 19406# after its creation but before its name has been assigned to `$tmp'. 19407$debug || 19408{ 19409 tmp= ac_tmp= 19410 trap 'exit_status=$? 19411 : "${ac_tmp:=$tmp}" 19412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19413' 0 19414 trap 'as_fn_exit 1' 1 2 13 15 19415} 19416# Create a (secure) tmp directory for tmp files. 19417 19418{ 19419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19420 test -d "$tmp" 19421} || 19422{ 19423 tmp=./conf$$-$RANDOM 19424 (umask 077 && mkdir "$tmp") 19425} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19426ac_tmp=$tmp 19427 19428# Set up the scripts for CONFIG_FILES section. 19429# No need to generate them if there are no CONFIG_FILES. 19430# This happens for instance with `./config.status config.h'. 19431if test -n "$CONFIG_FILES"; then 19432 19433 19434ac_cr=`echo X | tr X '\015'` 19435# On cygwin, bash can eat \r inside `` if the user requested igncr. 19436# But we know of no other shell where ac_cr would be empty at this 19437# point, so we can use a bashism as a fallback. 19438if test "x$ac_cr" = x; then 19439 eval ac_cr=\$\'\\r\' 19440fi 19441ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19442if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19443 ac_cs_awk_cr='\\r' 19444else 19445 ac_cs_awk_cr=$ac_cr 19446fi 19447 19448echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19449_ACEOF 19450 19451 19452{ 19453 echo "cat >conf$$subs.awk <<_ACEOF" && 19454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19455 echo "_ACEOF" 19456} >conf$$subs.sh || 19457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19458ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19459ac_delim='%!_!# ' 19460for ac_last_try in false false false false false :; do 19461 . ./conf$$subs.sh || 19462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19463 19464 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19465 if test $ac_delim_n = $ac_delim_num; then 19466 break 19467 elif $ac_last_try; then 19468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19469 else 19470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19471 fi 19472done 19473rm -f conf$$subs.sh 19474 19475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19476cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19477_ACEOF 19478sed -n ' 19479h 19480s/^/S["/; s/!.*/"]=/ 19481p 19482g 19483s/^[^!]*!// 19484:repl 19485t repl 19486s/'"$ac_delim"'$// 19487t delim 19488:nl 19489h 19490s/\(.\{148\}\)..*/\1/ 19491t more1 19492s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19493p 19494n 19495b repl 19496:more1 19497s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19498p 19499g 19500s/.\{148\}// 19501t nl 19502:delim 19503h 19504s/\(.\{148\}\)..*/\1/ 19505t more2 19506s/["\\]/\\&/g; s/^/"/; s/$/"/ 19507p 19508b 19509:more2 19510s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19511p 19512g 19513s/.\{148\}// 19514t delim 19515' <conf$$subs.awk | sed ' 19516/^[^""]/{ 19517 N 19518 s/\n// 19519} 19520' >>$CONFIG_STATUS || ac_write_fail=1 19521rm -f conf$$subs.awk 19522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19523_ACAWK 19524cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19525 for (key in S) S_is_set[key] = 1 19526 FS = "" 19527 19528} 19529{ 19530 line = $ 0 19531 nfields = split(line, field, "@") 19532 substed = 0 19533 len = length(field[1]) 19534 for (i = 2; i < nfields; i++) { 19535 key = field[i] 19536 keylen = length(key) 19537 if (S_is_set[key]) { 19538 value = S[key] 19539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19540 len += length(value) + length(field[++i]) 19541 substed = 1 19542 } else 19543 len += 1 + keylen 19544 } 19545 19546 print line 19547} 19548 19549_ACAWK 19550_ACEOF 19551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19552if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19553 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19554else 19555 cat 19556fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19557 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19558_ACEOF 19559 19560# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19561# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19562# trailing colons and then remove the whole line if VPATH becomes empty 19563# (actually we leave an empty line to preserve line numbers). 19564if test "x$srcdir" = x.; then 19565 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19566h 19567s/// 19568s/^/:/ 19569s/[ ]*$/:/ 19570s/:\$(srcdir):/:/g 19571s/:\${srcdir}:/:/g 19572s/:@srcdir@:/:/g 19573s/^:*// 19574s/:*$// 19575x 19576s/\(=[ ]*\).*/\1/ 19577G 19578s/\n// 19579s/^[^=]*=[ ]*$// 19580}' 19581fi 19582 19583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19584fi # test -n "$CONFIG_FILES" 19585 19586# Set up the scripts for CONFIG_HEADERS section. 19587# No need to generate them if there are no CONFIG_HEADERS. 19588# This happens for instance with `./config.status Makefile'. 19589if test -n "$CONFIG_HEADERS"; then 19590cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19591BEGIN { 19592_ACEOF 19593 19594# Transform confdefs.h into an awk script `defines.awk', embedded as 19595# here-document in config.status, that substitutes the proper values into 19596# config.h.in to produce config.h. 19597 19598# Create a delimiter string that does not exist in confdefs.h, to ease 19599# handling of long lines. 19600ac_delim='%!_!# ' 19601for ac_last_try in false false :; do 19602 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19603 if test -z "$ac_tt"; then 19604 break 19605 elif $ac_last_try; then 19606 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19607 else 19608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19609 fi 19610done 19611 19612# For the awk script, D is an array of macro values keyed by name, 19613# likewise P contains macro parameters if any. Preserve backslash 19614# newline sequences. 19615 19616ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19617sed -n ' 19618s/.\{148\}/&'"$ac_delim"'/g 19619t rset 19620:rset 19621s/^[ ]*#[ ]*define[ ][ ]*/ / 19622t def 19623d 19624:def 19625s/\\$// 19626t bsnl 19627s/["\\]/\\&/g 19628s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19629D["\1"]=" \3"/p 19630s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19631d 19632:bsnl 19633s/["\\]/\\&/g 19634s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19635D["\1"]=" \3\\\\\\n"\\/p 19636t cont 19637s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19638t cont 19639d 19640:cont 19641n 19642s/.\{148\}/&'"$ac_delim"'/g 19643t clear 19644:clear 19645s/\\$// 19646t bsnlc 19647s/["\\]/\\&/g; s/^/"/; s/$/"/p 19648d 19649:bsnlc 19650s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19651b cont 19652' <confdefs.h | sed ' 19653s/'"$ac_delim"'/"\\\ 19654"/g' >>$CONFIG_STATUS || ac_write_fail=1 19655 19656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19657 for (key in D) D_is_set[key] = 1 19658 FS = "" 19659} 19660/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19661 line = \$ 0 19662 split(line, arg, " ") 19663 if (arg[1] == "#") { 19664 defundef = arg[2] 19665 mac1 = arg[3] 19666 } else { 19667 defundef = substr(arg[1], 2) 19668 mac1 = arg[2] 19669 } 19670 split(mac1, mac2, "(") #) 19671 macro = mac2[1] 19672 prefix = substr(line, 1, index(line, defundef) - 1) 19673 if (D_is_set[macro]) { 19674 # Preserve the white space surrounding the "#". 19675 print prefix "define", macro P[macro] D[macro] 19676 next 19677 } else { 19678 # Replace #undef with comments. This is necessary, for example, 19679 # in the case of _POSIX_SOURCE, which is predefined and required 19680 # on some systems where configure will not decide to define it. 19681 if (defundef == "undef") { 19682 print "/*", prefix defundef, macro, "*/" 19683 next 19684 } 19685 } 19686} 19687{ print } 19688_ACAWK 19689_ACEOF 19690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19691 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19692fi # test -n "$CONFIG_HEADERS" 19693 19694 19695eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19696shift 19697for ac_tag 19698do 19699 case $ac_tag in 19700 :[FHLC]) ac_mode=$ac_tag; continue;; 19701 esac 19702 case $ac_mode$ac_tag in 19703 :[FHL]*:*);; 19704 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19705 :[FH]-) ac_tag=-:-;; 19706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19707 esac 19708 ac_save_IFS=$IFS 19709 IFS=: 19710 set x $ac_tag 19711 IFS=$ac_save_IFS 19712 shift 19713 ac_file=$1 19714 shift 19715 19716 case $ac_mode in 19717 :L) ac_source=$1;; 19718 :[FH]) 19719 ac_file_inputs= 19720 for ac_f 19721 do 19722 case $ac_f in 19723 -) ac_f="$ac_tmp/stdin";; 19724 *) # Look for the file first in the build tree, then in the source tree 19725 # (if the path is not absolute). The absolute path cannot be DOS-style, 19726 # because $ac_f cannot contain `:'. 19727 test -f "$ac_f" || 19728 case $ac_f in 19729 [\\/$]*) false;; 19730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19731 esac || 19732 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19733 esac 19734 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19735 as_fn_append ac_file_inputs " '$ac_f'" 19736 done 19737 19738 # Let's still pretend it is `configure' which instantiates (i.e., don't 19739 # use $as_me), people would be surprised to read: 19740 # /* config.h. Generated by config.status. */ 19741 configure_input='Generated from '` 19742 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19743 `' by configure.' 19744 if test x"$ac_file" != x-; then 19745 configure_input="$ac_file. $configure_input" 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19747$as_echo "$as_me: creating $ac_file" >&6;} 19748 fi 19749 # Neutralize special characters interpreted by sed in replacement strings. 19750 case $configure_input in #( 19751 *\&* | *\|* | *\\* ) 19752 ac_sed_conf_input=`$as_echo "$configure_input" | 19753 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19754 *) ac_sed_conf_input=$configure_input;; 19755 esac 19756 19757 case $ac_tag in 19758 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19760 esac 19761 ;; 19762 esac 19763 19764 ac_dir=`$as_dirname -- "$ac_file" || 19765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19766 X"$ac_file" : 'X\(//\)[^/]' \| \ 19767 X"$ac_file" : 'X\(//\)$' \| \ 19768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19769$as_echo X"$ac_file" | 19770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19771 s//\1/ 19772 q 19773 } 19774 /^X\(\/\/\)[^/].*/{ 19775 s//\1/ 19776 q 19777 } 19778 /^X\(\/\/\)$/{ 19779 s//\1/ 19780 q 19781 } 19782 /^X\(\/\).*/{ 19783 s//\1/ 19784 q 19785 } 19786 s/.*/./; q'` 19787 as_dir="$ac_dir"; as_fn_mkdir_p 19788 ac_builddir=. 19789 19790case "$ac_dir" in 19791.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19792*) 19793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19794 # A ".." for each directory in $ac_dir_suffix. 19795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19796 case $ac_top_builddir_sub in 19797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19799 esac ;; 19800esac 19801ac_abs_top_builddir=$ac_pwd 19802ac_abs_builddir=$ac_pwd$ac_dir_suffix 19803# for backward compatibility: 19804ac_top_builddir=$ac_top_build_prefix 19805 19806case $srcdir in 19807 .) # We are building in place. 19808 ac_srcdir=. 19809 ac_top_srcdir=$ac_top_builddir_sub 19810 ac_abs_top_srcdir=$ac_pwd ;; 19811 [\\/]* | ?:[\\/]* ) # Absolute name. 19812 ac_srcdir=$srcdir$ac_dir_suffix; 19813 ac_top_srcdir=$srcdir 19814 ac_abs_top_srcdir=$srcdir ;; 19815 *) # Relative name. 19816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19817 ac_top_srcdir=$ac_top_build_prefix$srcdir 19818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19819esac 19820ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19821 19822 19823 case $ac_mode in 19824 :F) 19825 # 19826 # CONFIG_FILE 19827 # 19828 19829 case $INSTALL in 19830 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19831 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19832 esac 19833 ac_MKDIR_P=$MKDIR_P 19834 case $MKDIR_P in 19835 [\\/$]* | ?:[\\/]* ) ;; 19836 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19837 esac 19838_ACEOF 19839 19840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19841# If the template does not know about datarootdir, expand it. 19842# FIXME: This hack should be removed a few years after 2.60. 19843ac_datarootdir_hack=; ac_datarootdir_seen= 19844ac_sed_dataroot=' 19845/datarootdir/ { 19846 p 19847 q 19848} 19849/@datadir@/p 19850/@docdir@/p 19851/@infodir@/p 19852/@localedir@/p 19853/@mandir@/p' 19854case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19855*datarootdir*) ac_datarootdir_seen=yes;; 19856*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19858$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19859_ACEOF 19860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19861 ac_datarootdir_hack=' 19862 s&@datadir@&$datadir&g 19863 s&@docdir@&$docdir&g 19864 s&@infodir@&$infodir&g 19865 s&@localedir@&$localedir&g 19866 s&@mandir@&$mandir&g 19867 s&\\\${datarootdir}&$datarootdir&g' ;; 19868esac 19869_ACEOF 19870 19871# Neutralize VPATH when `$srcdir' = `.'. 19872# Shell code in configure.ac might set extrasub. 19873# FIXME: do we really want to maintain this feature? 19874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19875ac_sed_extra="$ac_vpsub 19876$extrasub 19877_ACEOF 19878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19879:t 19880/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19881s|@configure_input@|$ac_sed_conf_input|;t t 19882s&@top_builddir@&$ac_top_builddir_sub&;t t 19883s&@top_build_prefix@&$ac_top_build_prefix&;t t 19884s&@srcdir@&$ac_srcdir&;t t 19885s&@abs_srcdir@&$ac_abs_srcdir&;t t 19886s&@top_srcdir@&$ac_top_srcdir&;t t 19887s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19888s&@builddir@&$ac_builddir&;t t 19889s&@abs_builddir@&$ac_abs_builddir&;t t 19890s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19891s&@INSTALL@&$ac_INSTALL&;t t 19892s&@MKDIR_P@&$ac_MKDIR_P&;t t 19893$ac_datarootdir_hack 19894" 19895eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19896 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19897 19898test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19901 "$ac_tmp/out"`; test -z "$ac_out"; } && 19902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19903which seems to be undefined. Please make sure it is defined" >&5 19904$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19905which seems to be undefined. Please make sure it is defined" >&2;} 19906 19907 rm -f "$ac_tmp/stdin" 19908 case $ac_file in 19909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19911 esac \ 19912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19913 ;; 19914 :H) 19915 # 19916 # CONFIG_HEADER 19917 # 19918 if test x"$ac_file" != x-; then 19919 { 19920 $as_echo "/* $configure_input */" \ 19921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19922 } >"$ac_tmp/config.h" \ 19923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19925 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19926$as_echo "$as_me: $ac_file is unchanged" >&6;} 19927 else 19928 rm -f "$ac_file" 19929 mv "$ac_tmp/config.h" "$ac_file" \ 19930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19931 fi 19932 else 19933 $as_echo "/* $configure_input */" \ 19934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19935 || as_fn_error $? "could not create -" "$LINENO" 5 19936 fi 19937# Compute "$ac_file"'s index in $config_headers. 19938_am_arg="$ac_file" 19939_am_stamp_count=1 19940for _am_header in $config_headers :; do 19941 case $_am_header in 19942 $_am_arg | $_am_arg:* ) 19943 break ;; 19944 * ) 19945 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19946 esac 19947done 19948echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19949$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19950 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19951 X"$_am_arg" : 'X\(//\)$' \| \ 19952 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19953$as_echo X"$_am_arg" | 19954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19955 s//\1/ 19956 q 19957 } 19958 /^X\(\/\/\)[^/].*/{ 19959 s//\1/ 19960 q 19961 } 19962 /^X\(\/\/\)$/{ 19963 s//\1/ 19964 q 19965 } 19966 /^X\(\/\).*/{ 19967 s//\1/ 19968 q 19969 } 19970 s/.*/./; q'`/stamp-h$_am_stamp_count 19971 ;; 19972 19973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19974$as_echo "$as_me: executing $ac_file commands" >&6;} 19975 ;; 19976 esac 19977 19978 19979 case $ac_file$ac_mode in 19980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19981 # Older Autoconf quotes --file arguments for eval, but not when files 19982 # are listed without --file. Let's play safe and only enable the eval 19983 # if we detect the quoting. 19984 case $CONFIG_FILES in 19985 *\'*) eval set x "$CONFIG_FILES" ;; 19986 *) set x $CONFIG_FILES ;; 19987 esac 19988 shift 19989 for mf 19990 do 19991 # Strip MF so we end up with the name of the file. 19992 mf=`echo "$mf" | sed -e 's/:.*$//'` 19993 # Check whether this is an Automake generated Makefile or not. 19994 # We used to match only the files named 'Makefile.in', but 19995 # some people rename them; so instead we look at the file content. 19996 # Grep'ing the first line is not enough: some people post-process 19997 # each Makefile.in and add a new line on top of each file to say so. 19998 # Grep'ing the whole file is not good either: AIX grep has a line 19999 # limit of 2048, but all sed's we know have understand at least 4000. 20000 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20001 dirpart=`$as_dirname -- "$mf" || 20002$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20003 X"$mf" : 'X\(//\)[^/]' \| \ 20004 X"$mf" : 'X\(//\)$' \| \ 20005 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20006$as_echo X"$mf" | 20007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20008 s//\1/ 20009 q 20010 } 20011 /^X\(\/\/\)[^/].*/{ 20012 s//\1/ 20013 q 20014 } 20015 /^X\(\/\/\)$/{ 20016 s//\1/ 20017 q 20018 } 20019 /^X\(\/\).*/{ 20020 s//\1/ 20021 q 20022 } 20023 s/.*/./; q'` 20024 else 20025 continue 20026 fi 20027 # Extract the definition of DEPDIR, am__include, and am__quote 20028 # from the Makefile without running 'make'. 20029 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20030 test -z "$DEPDIR" && continue 20031 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20032 test -z "$am__include" && continue 20033 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20034 # Find all dependency output files, they are included files with 20035 # $(DEPDIR) in their names. We invoke sed twice because it is the 20036 # simplest approach to changing $(DEPDIR) to its actual value in the 20037 # expansion. 20038 for file in `sed -n " 20039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20041 # Make sure the directory exists. 20042 test -f "$dirpart/$file" && continue 20043 fdir=`$as_dirname -- "$file" || 20044$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20045 X"$file" : 'X\(//\)[^/]' \| \ 20046 X"$file" : 'X\(//\)$' \| \ 20047 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20048$as_echo X"$file" | 20049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20050 s//\1/ 20051 q 20052 } 20053 /^X\(\/\/\)[^/].*/{ 20054 s//\1/ 20055 q 20056 } 20057 /^X\(\/\/\)$/{ 20058 s//\1/ 20059 q 20060 } 20061 /^X\(\/\).*/{ 20062 s//\1/ 20063 q 20064 } 20065 s/.*/./; q'` 20066 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20067 # echo "creating $dirpart/$file" 20068 echo '# dummy' > "$dirpart/$file" 20069 done 20070 done 20071} 20072 ;; 20073 "libtool":C) 20074 20075 # See if we are running on zsh, and set the options that allow our 20076 # commands through without removal of \ escapes. 20077 if test -n "${ZSH_VERSION+set}"; then 20078 setopt NO_GLOB_SUBST 20079 fi 20080 20081 cfgfile=${ofile}T 20082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20083 $RM "$cfgfile" 20084 20085 cat <<_LT_EOF >> "$cfgfile" 20086#! $SHELL 20087# Generated automatically by $as_me ($PACKAGE) $VERSION 20088# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20089# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20090 20091# Provide generalized library-building support services. 20092# Written by Gordon Matzigkeit, 1996 20093 20094# Copyright (C) 2014 Free Software Foundation, Inc. 20095# This is free software; see the source for copying conditions. There is NO 20096# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20097 20098# GNU Libtool is free software; you can redistribute it and/or modify 20099# it under the terms of the GNU General Public License as published by 20100# the Free Software Foundation; either version 2 of of the License, or 20101# (at your option) any later version. 20102# 20103# As a special exception to the GNU General Public License, if you 20104# distribute this file as part of a program or library that is built 20105# using GNU Libtool, you may include this file under the same 20106# distribution terms that you use for the rest of that program. 20107# 20108# GNU Libtool is distributed in the hope that it will be useful, but 20109# WITHOUT ANY WARRANTY; without even the implied warranty of 20110# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20111# GNU General Public License for more details. 20112# 20113# You should have received a copy of the GNU General Public License 20114# along with this program. If not, see <http://www.gnu.org/licenses/>. 20115 20116 20117# The names of the tagged configurations supported by this script. 20118available_tags='' 20119 20120# Configured defaults for sys_lib_dlsearch_path munging. 20121: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20122 20123# ### BEGIN LIBTOOL CONFIG 20124 20125# Which release of libtool.m4 was used? 20126macro_version=$macro_version 20127macro_revision=$macro_revision 20128 20129# Whether or not to build shared libraries. 20130build_libtool_libs=$enable_shared 20131 20132# Whether or not to build static libraries. 20133build_old_libs=$enable_static 20134 20135# What type of objects to build. 20136pic_mode=$pic_mode 20137 20138# Whether or not to optimize for fast installation. 20139fast_install=$enable_fast_install 20140 20141# Shared archive member basename,for filename based shared library versioning on AIX. 20142shared_archive_member_spec=$shared_archive_member_spec 20143 20144# Shell to use when invoking shell scripts. 20145SHELL=$lt_SHELL 20146 20147# An echo program that protects backslashes. 20148ECHO=$lt_ECHO 20149 20150# The PATH separator for the build system. 20151PATH_SEPARATOR=$lt_PATH_SEPARATOR 20152 20153# The host system. 20154host_alias=$host_alias 20155host=$host 20156host_os=$host_os 20157 20158# The build system. 20159build_alias=$build_alias 20160build=$build 20161build_os=$build_os 20162 20163# A sed program that does not truncate output. 20164SED=$lt_SED 20165 20166# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20167Xsed="\$SED -e 1s/^X//" 20168 20169# A grep program that handles long lines. 20170GREP=$lt_GREP 20171 20172# An ERE matcher. 20173EGREP=$lt_EGREP 20174 20175# A literal string matcher. 20176FGREP=$lt_FGREP 20177 20178# A BSD- or MS-compatible name lister. 20179NM=$lt_NM 20180 20181# Whether we need soft or hard links. 20182LN_S=$lt_LN_S 20183 20184# What is the maximum length of a command? 20185max_cmd_len=$max_cmd_len 20186 20187# Object file suffix (normally "o"). 20188objext=$ac_objext 20189 20190# Executable file suffix (normally ""). 20191exeext=$exeext 20192 20193# whether the shell understands "unset". 20194lt_unset=$lt_unset 20195 20196# turn spaces into newlines. 20197SP2NL=$lt_lt_SP2NL 20198 20199# turn newlines into spaces. 20200NL2SP=$lt_lt_NL2SP 20201 20202# convert \$build file names to \$host format. 20203to_host_file_cmd=$lt_cv_to_host_file_cmd 20204 20205# convert \$build files to toolchain format. 20206to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20207 20208# An object symbol dumper. 20209OBJDUMP=$lt_OBJDUMP 20210 20211# Method to check whether dependent libraries are shared objects. 20212deplibs_check_method=$lt_deplibs_check_method 20213 20214# Command to use when deplibs_check_method = "file_magic". 20215file_magic_cmd=$lt_file_magic_cmd 20216 20217# How to find potential files when deplibs_check_method = "file_magic". 20218file_magic_glob=$lt_file_magic_glob 20219 20220# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20221want_nocaseglob=$lt_want_nocaseglob 20222 20223# DLL creation program. 20224DLLTOOL=$lt_DLLTOOL 20225 20226# Command to associate shared and link libraries. 20227sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20228 20229# The archiver. 20230AR=$lt_AR 20231 20232# Flags to create an archive. 20233AR_FLAGS=$lt_AR_FLAGS 20234 20235# How to feed a file listing to the archiver. 20236archiver_list_spec=$lt_archiver_list_spec 20237 20238# A symbol stripping program. 20239STRIP=$lt_STRIP 20240 20241# Commands used to install an old-style archive. 20242RANLIB=$lt_RANLIB 20243old_postinstall_cmds=$lt_old_postinstall_cmds 20244old_postuninstall_cmds=$lt_old_postuninstall_cmds 20245 20246# Whether to use a lock for old archive extraction. 20247lock_old_archive_extraction=$lock_old_archive_extraction 20248 20249# A C compiler. 20250LTCC=$lt_CC 20251 20252# LTCC compiler flags. 20253LTCFLAGS=$lt_CFLAGS 20254 20255# Take the output of nm and produce a listing of raw symbols and C names. 20256global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20257 20258# Transform the output of nm in a proper C declaration. 20259global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20260 20261# Transform the output of nm into a list of symbols to manually relocate. 20262global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20263 20264# Transform the output of nm in a C name address pair. 20265global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20266 20267# Transform the output of nm in a C name address pair when lib prefix is needed. 20268global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20269 20270# The name lister interface. 20271nm_interface=$lt_lt_cv_nm_interface 20272 20273# Specify filename containing input files for \$NM. 20274nm_file_list_spec=$lt_nm_file_list_spec 20275 20276# The root where to search for dependent libraries,and where our libraries should be installed. 20277lt_sysroot=$lt_sysroot 20278 20279# Command to truncate a binary pipe. 20280lt_truncate_bin=$lt_lt_cv_truncate_bin 20281 20282# The name of the directory that contains temporary libtool files. 20283objdir=$objdir 20284 20285# Used to examine libraries when file_magic_cmd begins with "file". 20286MAGIC_CMD=$MAGIC_CMD 20287 20288# Must we lock files when doing compilation? 20289need_locks=$lt_need_locks 20290 20291# Manifest tool. 20292MANIFEST_TOOL=$lt_MANIFEST_TOOL 20293 20294# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20295DSYMUTIL=$lt_DSYMUTIL 20296 20297# Tool to change global to local symbols on Mac OS X. 20298NMEDIT=$lt_NMEDIT 20299 20300# Tool to manipulate fat objects and archives on Mac OS X. 20301LIPO=$lt_LIPO 20302 20303# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20304OTOOL=$lt_OTOOL 20305 20306# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20307OTOOL64=$lt_OTOOL64 20308 20309# Old archive suffix (normally "a"). 20310libext=$libext 20311 20312# Shared library suffix (normally ".so"). 20313shrext_cmds=$lt_shrext_cmds 20314 20315# The commands to extract the exported symbol list from a shared archive. 20316extract_expsyms_cmds=$lt_extract_expsyms_cmds 20317 20318# Variables whose values should be saved in libtool wrapper scripts and 20319# restored at link time. 20320variables_saved_for_relink=$lt_variables_saved_for_relink 20321 20322# Do we need the "lib" prefix for modules? 20323need_lib_prefix=$need_lib_prefix 20324 20325# Do we need a version for libraries? 20326need_version=$need_version 20327 20328# Library versioning type. 20329version_type=$version_type 20330 20331# Shared library runtime path variable. 20332runpath_var=$runpath_var 20333 20334# Shared library path variable. 20335shlibpath_var=$shlibpath_var 20336 20337# Is shlibpath searched before the hard-coded library search path? 20338shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20339 20340# Format of library name prefix. 20341libname_spec=$lt_libname_spec 20342 20343# List of archive names. First name is the real one, the rest are links. 20344# The last name is the one that the linker finds with -lNAME 20345library_names_spec=$lt_library_names_spec 20346 20347# The coded name of the library, if different from the real name. 20348soname_spec=$lt_soname_spec 20349 20350# Permission mode override for installation of shared libraries. 20351install_override_mode=$lt_install_override_mode 20352 20353# Command to use after installation of a shared archive. 20354postinstall_cmds=$lt_postinstall_cmds 20355 20356# Command to use after uninstallation of a shared archive. 20357postuninstall_cmds=$lt_postuninstall_cmds 20358 20359# Commands used to finish a libtool library installation in a directory. 20360finish_cmds=$lt_finish_cmds 20361 20362# As "finish_cmds", except a single script fragment to be evaled but 20363# not shown. 20364finish_eval=$lt_finish_eval 20365 20366# Whether we should hardcode library paths into libraries. 20367hardcode_into_libs=$hardcode_into_libs 20368 20369# Compile-time system search path for libraries. 20370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20371 20372# Detected run-time system search path for libraries. 20373sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20374 20375# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20376configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20377 20378# Whether dlopen is supported. 20379dlopen_support=$enable_dlopen 20380 20381# Whether dlopen of programs is supported. 20382dlopen_self=$enable_dlopen_self 20383 20384# Whether dlopen of statically linked programs is supported. 20385dlopen_self_static=$enable_dlopen_self_static 20386 20387# Commands to strip libraries. 20388old_striplib=$lt_old_striplib 20389striplib=$lt_striplib 20390 20391 20392# The linker used to build libraries. 20393LD=$lt_LD 20394 20395# How to create reloadable object files. 20396reload_flag=$lt_reload_flag 20397reload_cmds=$lt_reload_cmds 20398 20399# Commands used to build an old-style archive. 20400old_archive_cmds=$lt_old_archive_cmds 20401 20402# A language specific compiler. 20403CC=$lt_compiler 20404 20405# Is the compiler the GNU compiler? 20406with_gcc=$GCC 20407 20408# Compiler flag to turn off builtin functions. 20409no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20410 20411# Additional compiler flags for building library objects. 20412pic_flag=$lt_lt_prog_compiler_pic 20413 20414# How to pass a linker flag through the compiler. 20415wl=$lt_lt_prog_compiler_wl 20416 20417# Compiler flag to prevent dynamic linking. 20418link_static_flag=$lt_lt_prog_compiler_static 20419 20420# Does compiler simultaneously support -c and -o options? 20421compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20422 20423# Whether or not to add -lc for building shared libraries. 20424build_libtool_need_lc=$archive_cmds_need_lc 20425 20426# Whether or not to disallow shared libs when runtime libs are static. 20427allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20428 20429# Compiler flag to allow reflexive dlopens. 20430export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20431 20432# Compiler flag to generate shared objects directly from archives. 20433whole_archive_flag_spec=$lt_whole_archive_flag_spec 20434 20435# Whether the compiler copes with passing no objects directly. 20436compiler_needs_object=$lt_compiler_needs_object 20437 20438# Create an old-style archive from a shared archive. 20439old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20440 20441# Create a temporary old-style archive to link instead of a shared archive. 20442old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20443 20444# Commands used to build a shared archive. 20445archive_cmds=$lt_archive_cmds 20446archive_expsym_cmds=$lt_archive_expsym_cmds 20447 20448# Commands used to build a loadable module if different from building 20449# a shared archive. 20450module_cmds=$lt_module_cmds 20451module_expsym_cmds=$lt_module_expsym_cmds 20452 20453# Whether we are building with GNU ld or not. 20454with_gnu_ld=$lt_with_gnu_ld 20455 20456# Flag that allows shared libraries with undefined symbols to be built. 20457allow_undefined_flag=$lt_allow_undefined_flag 20458 20459# Flag that enforces no undefined symbols. 20460no_undefined_flag=$lt_no_undefined_flag 20461 20462# Flag to hardcode \$libdir into a binary during linking. 20463# This must work even if \$libdir does not exist 20464hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20465 20466# Whether we need a single "-rpath" flag with a separated argument. 20467hardcode_libdir_separator=$lt_hardcode_libdir_separator 20468 20469# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20470# DIR into the resulting binary. 20471hardcode_direct=$hardcode_direct 20472 20473# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20474# DIR into the resulting binary and the resulting library dependency is 20475# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20476# library is relocated. 20477hardcode_direct_absolute=$hardcode_direct_absolute 20478 20479# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20480# into the resulting binary. 20481hardcode_minus_L=$hardcode_minus_L 20482 20483# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20484# into the resulting binary. 20485hardcode_shlibpath_var=$hardcode_shlibpath_var 20486 20487# Set to "yes" if building a shared library automatically hardcodes DIR 20488# into the library and all subsequent libraries and executables linked 20489# against it. 20490hardcode_automatic=$hardcode_automatic 20491 20492# Set to yes if linker adds runtime paths of dependent libraries 20493# to runtime path list. 20494inherit_rpath=$inherit_rpath 20495 20496# Whether libtool must link a program against all its dependency libraries. 20497link_all_deplibs=$link_all_deplibs 20498 20499# Set to "yes" if exported symbols are required. 20500always_export_symbols=$always_export_symbols 20501 20502# The commands to list exported symbols. 20503export_symbols_cmds=$lt_export_symbols_cmds 20504 20505# Symbols that should not be listed in the preloaded symbols. 20506exclude_expsyms=$lt_exclude_expsyms 20507 20508# Symbols that must always be exported. 20509include_expsyms=$lt_include_expsyms 20510 20511# Commands necessary for linking programs (against libraries) with templates. 20512prelink_cmds=$lt_prelink_cmds 20513 20514# Commands necessary for finishing linking programs. 20515postlink_cmds=$lt_postlink_cmds 20516 20517# Specify filename containing input files. 20518file_list_spec=$lt_file_list_spec 20519 20520# How to hardcode a shared library path into an executable. 20521hardcode_action=$hardcode_action 20522 20523# ### END LIBTOOL CONFIG 20524 20525_LT_EOF 20526 20527 cat <<'_LT_EOF' >> "$cfgfile" 20528 20529# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20530 20531# func_munge_path_list VARIABLE PATH 20532# ----------------------------------- 20533# VARIABLE is name of variable containing _space_ separated list of 20534# directories to be munged by the contents of PATH, which is string 20535# having a format: 20536# "DIR[:DIR]:" 20537# string "DIR[ DIR]" will be prepended to VARIABLE 20538# ":DIR[:DIR]" 20539# string "DIR[ DIR]" will be appended to VARIABLE 20540# "DIRP[:DIRP]::[DIRA:]DIRA" 20541# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20542# "DIRA[ DIRA]" will be appended to VARIABLE 20543# "DIR[:DIR]" 20544# VARIABLE will be replaced by "DIR[ DIR]" 20545func_munge_path_list () 20546{ 20547 case x$2 in 20548 x) 20549 ;; 20550 *:) 20551 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20552 ;; 20553 x:*) 20554 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20555 ;; 20556 *::*) 20557 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20558 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20559 ;; 20560 *) 20561 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20562 ;; 20563 esac 20564} 20565 20566 20567# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20568func_cc_basename () 20569{ 20570 for cc_temp in $*""; do 20571 case $cc_temp in 20572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20574 \-*) ;; 20575 *) break;; 20576 esac 20577 done 20578 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20579} 20580 20581 20582# ### END FUNCTIONS SHARED WITH CONFIGURE 20583 20584_LT_EOF 20585 20586 case $host_os in 20587 aix3*) 20588 cat <<\_LT_EOF >> "$cfgfile" 20589# AIX sometimes has problems with the GCC collect2 program. For some 20590# reason, if we set the COLLECT_NAMES environment variable, the problems 20591# vanish in a puff of smoke. 20592if test set != "${COLLECT_NAMES+set}"; then 20593 COLLECT_NAMES= 20594 export COLLECT_NAMES 20595fi 20596_LT_EOF 20597 ;; 20598 esac 20599 20600 20601ltmain=$ac_aux_dir/ltmain.sh 20602 20603 20604 # We use sed instead of cat because bash on DJGPP gets confused if 20605 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20606 # text mode, it properly converts lines to CR/LF. This bash problem 20607 # is reportedly fixed, but why not run on old versions too? 20608 sed '$q' "$ltmain" >> "$cfgfile" \ 20609 || (rm -f "$cfgfile"; exit 1) 20610 20611 mv -f "$cfgfile" "$ofile" || 20612 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20613 chmod +x "$ofile" 20614 20615 ;; 20616 20617 esac 20618done # for ac_tag 20619 20620 20621as_fn_exit 0 20622_ACEOF 20623ac_clean_files=$ac_clean_files_save 20624 20625test $ac_write_fail = 0 || 20626 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20627 20628 20629# configure is writing to config.log, and then calls config.status. 20630# config.status does its own redirection, appending to config.log. 20631# Unfortunately, on DOS this fails, as config.log is still kept open 20632# by configure, so config.status won't be able to write to it; its 20633# output is simply discarded. So we exec the FD to /dev/null, 20634# effectively closing config.log, so it can be properly (re)opened and 20635# appended to by config.status. When coming back to configure, we 20636# need to make the FD available again. 20637if test "$no_create" != yes; then 20638 ac_cs_success=: 20639 ac_config_status_args= 20640 test "$silent" = yes && 20641 ac_config_status_args="$ac_config_status_args --quiet" 20642 exec 5>/dev/null 20643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20644 exec 5>>config.log 20645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20646 # would make configure fail if this is the last instruction. 20647 $ac_cs_success || as_fn_exit 1 20648fi 20649if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20651$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20652fi 20653 20654