1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libxkbfile 1.1.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libxkbfile' 624PACKAGE_TARNAME='libxkbfile' 625PACKAGE_VERSION='1.1.2' 626PACKAGE_STRING='libxkbfile 1.1.2' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667XKBFILE_LIBS 668XKBFILE_CFLAGS 669MAN_SUBSTS 670XORG_MAN_PAGE 671ADMIN_MAN_DIR 672DRIVER_MAN_DIR 673MISC_MAN_DIR 674FILE_MAN_DIR 675LIB_MAN_DIR 676APP_MAN_DIR 677ADMIN_MAN_SUFFIX 678DRIVER_MAN_SUFFIX 679MISC_MAN_SUFFIX 680FILE_MAN_SUFFIX 681LIB_MAN_SUFFIX 682APP_MAN_SUFFIX 683INSTALL_CMD 684PKG_CONFIG_LIBDIR 685PKG_CONFIG_PATH 686PKG_CONFIG 687CHANGELOG_CMD 688STRICT_CFLAGS 689CWARNFLAGS 690BASE_CFLAGS 691LT_SYS_LIBRARY_PATH 692OTOOL64 693OTOOL 694LIPO 695NMEDIT 696DSYMUTIL 697MANIFEST_TOOL 698RANLIB 699ac_ct_AR 700AR 701DLLTOOL 702OBJDUMP 703FILECMD 704LN_S 705NM 706ac_ct_DUMPBIN 707DUMPBIN 708LD 709FGREP 710EGREP 711GREP 712SED 713am__fastdepCC_FALSE 714am__fastdepCC_TRUE 715CCDEPMODE 716am__nodep 717AMDEPBACKSLASH 718AMDEP_FALSE 719AMDEP_TRUE 720am__include 721DEPDIR 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729host_os 730host_vendor 731host_cpu 732host 733build_os 734build_vendor 735build_cpu 736build 737LIBTOOL 738AM_BACKSLASH 739AM_DEFAULT_VERBOSITY 740AM_DEFAULT_V 741AM_V 742CSCOPE 743ETAGS 744CTAGS 745am__untar 746am__tar 747AMTAR 748am__leading_dot 749SET_MAKE 750AWK 751mkdir_p 752MKDIR_P 753INSTALL_STRIP_PROGRAM 754STRIP 755install_sh 756MAKEINFO 757AUTOHEADER 758AUTOMAKE 759AUTOCONF 760ACLOCAL 761VERSION 762PACKAGE 763CYGPATH_W 764am__isrc 765INSTALL_DATA 766INSTALL_SCRIPT 767INSTALL_PROGRAM 768target_alias 769host_alias 770build_alias 771LIBS 772ECHO_T 773ECHO_N 774ECHO_C 775DEFS 776mandir 777localedir 778libdir 779psdir 780pdfdir 781dvidir 782htmldir 783infodir 784docdir 785oldincludedir 786includedir 787runstatedir 788localstatedir 789sharedstatedir 790sysconfdir 791datadir 792datarootdir 793libexecdir 794sbindir 795bindir 796program_transform_name 797prefix 798exec_prefix 799PACKAGE_URL 800PACKAGE_BUGREPORT 801PACKAGE_STRING 802PACKAGE_VERSION 803PACKAGE_TARNAME 804PACKAGE_NAME 805PATH_SEPARATOR 806SHELL 807am__quote' 808ac_subst_files='' 809ac_user_opts=' 810enable_option_checking 811enable_silent_rules 812enable_shared 813enable_static 814with_pic 815enable_fast_install 816with_aix_soname 817enable_dependency_tracking 818with_gnu_ld 819with_sysroot 820enable_libtool_lock 821enable_selective_werror 822enable_strict_compilation 823enable_largefile 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833LT_SYS_LIBRARY_PATH 834PKG_CONFIG 835PKG_CONFIG_PATH 836PKG_CONFIG_LIBDIR 837XKBFILE_CFLAGS 838XKBFILE_LIBS' 839 840 841# Initialize some variables set by options. 842ac_init_help= 843ac_init_version=false 844ac_unrecognized_opts= 845ac_unrecognized_sep= 846# The variables have the same names as the options, with 847# dashes changed to underlines. 848cache_file=/dev/null 849exec_prefix=NONE 850no_create= 851no_recursion= 852prefix=NONE 853program_prefix=NONE 854program_suffix=NONE 855program_transform_name=s,x,x, 856silent= 857site= 858srcdir= 859verbose= 860x_includes=NONE 861x_libraries=NONE 862 863# Installation directory options. 864# These are left unexpanded so users can "make install exec_prefix=/foo" 865# and all the variables that are supposed to be based on exec_prefix 866# by default will actually change. 867# Use braces instead of parens because sh, perl, etc. also accept them. 868# (The list follows the same order as the GNU Coding Standards.) 869bindir='${exec_prefix}/bin' 870sbindir='${exec_prefix}/sbin' 871libexecdir='${exec_prefix}/libexec' 872datarootdir='${prefix}/share' 873datadir='${datarootdir}' 874sysconfdir='${prefix}/etc' 875sharedstatedir='${prefix}/com' 876localstatedir='${prefix}/var' 877runstatedir='${localstatedir}/run' 878includedir='${prefix}/include' 879oldincludedir='/usr/include' 880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881infodir='${datarootdir}/info' 882htmldir='${docdir}' 883dvidir='${docdir}' 884pdfdir='${docdir}' 885psdir='${docdir}' 886libdir='${exec_prefix}/lib' 887localedir='${datarootdir}/locale' 888mandir='${datarootdir}/man' 889 890ac_prev= 891ac_dashdash= 892for ac_option 893do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: \`$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: \`$ac_useropt'" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1129 | --runstate | --runstat | --runsta | --runst | --runs \ 1130 | --run | --ru | --r) 1131 ac_prev=runstatedir ;; 1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1134 | --run=* | --ru=* | --r=*) 1135 runstatedir=$ac_optarg ;; 1136 1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1138 ac_prev=sbindir ;; 1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1140 | --sbi=* | --sb=*) 1141 sbindir=$ac_optarg ;; 1142 1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1145 | --sharedst | --shareds | --shared | --share | --shar \ 1146 | --sha | --sh) 1147 ac_prev=sharedstatedir ;; 1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1151 | --sha=* | --sh=*) 1152 sharedstatedir=$ac_optarg ;; 1153 1154 -site | --site | --sit) 1155 ac_prev=site ;; 1156 -site=* | --site=* | --sit=*) 1157 site=$ac_optarg ;; 1158 1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1160 ac_prev=srcdir ;; 1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1162 srcdir=$ac_optarg ;; 1163 1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1165 | --syscon | --sysco | --sysc | --sys | --sy) 1166 ac_prev=sysconfdir ;; 1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1169 sysconfdir=$ac_optarg ;; 1170 1171 -target | --target | --targe | --targ | --tar | --ta | --t) 1172 ac_prev=target_alias ;; 1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1174 target_alias=$ac_optarg ;; 1175 1176 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1177 verbose=yes ;; 1178 1179 -version | --version | --versio | --versi | --vers | -V) 1180 ac_init_version=: ;; 1181 1182 -with-* | --with-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: \`$ac_useropt'" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191"with_$ac_useropt" 1192"*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=\$ac_optarg ;; 1197 1198 -without-* | --without-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: \`$ac_useropt'" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207"with_$ac_useropt" 1208"*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=no ;; 1213 1214 --x) 1215 # Obsolete; use --with-x. 1216 with_x=yes ;; 1217 1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1219 | --x-incl | --x-inc | --x-in | --x-i) 1220 ac_prev=x_includes ;; 1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1223 x_includes=$ac_optarg ;; 1224 1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1227 ac_prev=x_libraries ;; 1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1230 x_libraries=$ac_optarg ;; 1231 1232 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1233Try \`$0 --help' for more information" 1234 ;; 1235 1236 *=*) 1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1238 # Reject names that are not valid shell variable names. 1239 case $ac_envvar in #( 1240 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1242 esac 1243 eval $ac_envvar=\$ac_optarg 1244 export $ac_envvar ;; 1245 1246 *) 1247 # FIXME: should be removed in autoconf 3.0. 1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1252 ;; 1253 1254 esac 1255done 1256 1257if test -n "$ac_prev"; then 1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1259 as_fn_error $? "missing argument to $ac_option" 1260fi 1261 1262if test -n "$ac_unrecognized_opts"; then 1263 case $enable_option_checking in 1264 no) ;; 1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1267 esac 1268fi 1269 1270# Check all directory arguments for consistency. 1271for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1272 datadir sysconfdir sharedstatedir localstatedir includedir \ 1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1274 libdir localedir mandir runstatedir 1275do 1276 eval ac_val=\$$ac_var 1277 # Remove trailing slashes. 1278 case $ac_val in 1279 */ ) 1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1281 eval $ac_var=\$ac_val;; 1282 esac 1283 # Be sure to have absolute directory names. 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1289done 1290 1291# There might be people who depend on the old broken behavior: `$host' 1292# used to hold the argument of --host etc. 1293# FIXME: To remove some day. 1294build=$build_alias 1295host=$host_alias 1296target=$target_alias 1297 1298# FIXME: To remove some day. 1299if test "x$host_alias" != x; then 1300 if test "x$build_alias" = x; then 1301 cross_compiling=maybe 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305fi 1306 1307ac_tool_prefix= 1308test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310test "$silent" = yes && exec 6>/dev/null 1311 1312 1313ac_pwd=`pwd` && test -n "$ac_pwd" && 1314ac_ls_di=`ls -di .` && 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 as_fn_error $? "working directory cannot be determined" 1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318 as_fn_error $? "pwd does not report name of working directory" 1319 1320 1321# Find the source files, if location was not specified. 1322if test -z "$srcdir"; then 1323 ac_srcdir_defaulted=yes 1324 # Try the directory containing this script, then the parent directory. 1325 ac_confdir=`$as_dirname -- "$as_myself" || 1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1327 X"$as_myself" : 'X\(//\)[^/]' \| \ 1328 X"$as_myself" : 'X\(//\)$' \| \ 1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1330printf "%s\n" X"$as_myself" | 1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)[^/].*/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\).*/{ 1344 s//\1/ 1345 q 1346 } 1347 s/.*/./; q'` 1348 srcdir=$ac_confdir 1349 if test ! -r "$srcdir/$ac_unique_file"; then 1350 srcdir=.. 1351 fi 1352else 1353 ac_srcdir_defaulted=no 1354fi 1355if test ! -r "$srcdir/$ac_unique_file"; then 1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1358fi 1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1360ac_abs_confdir=`( 1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1362 pwd)` 1363# When building in place, set srcdir=. 1364if test "$ac_abs_confdir" = "$ac_pwd"; then 1365 srcdir=. 1366fi 1367# Remove unnecessary trailing slashes from srcdir. 1368# Double slashes in file names in object file debugging info 1369# mess up M-x gdb in Emacs. 1370case $srcdir in 1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1372esac 1373for ac_var in $ac_precious_vars; do 1374 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_env_${ac_var}_value=\$${ac_var} 1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1378done 1379 1380# 1381# Report the --help message. 1382# 1383if test "$ac_init_help" = "long"; then 1384 # Omit some internal or obsolete options to make the list less imposing. 1385 # This message is too long to be a string in the A/UX 3.1 sh. 1386 cat <<_ACEOF 1387\`configure' configures libxkbfile 1.1.2 to adapt to many kinds of systems. 1388 1389Usage: $0 [OPTION]... [VAR=VALUE]... 1390 1391To assign environment variables (e.g., CC, CFLAGS...), specify them as 1392VAR=VALUE. See below for descriptions of some of the useful variables. 1393 1394Defaults for the options are specified in brackets. 1395 1396Configuration: 1397 -h, --help display this help and exit 1398 --help=short display options specific to this package 1399 --help=recursive display the short help of all the included packages 1400 -V, --version display version information and exit 1401 -q, --quiet, --silent do not print \`checking ...' messages 1402 --cache-file=FILE cache test results in FILE [disabled] 1403 -C, --config-cache alias for \`--cache-file=config.cache' 1404 -n, --no-create do not create output files 1405 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1406 1407Installation directories: 1408 --prefix=PREFIX install architecture-independent files in PREFIX 1409 [$ac_default_prefix] 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1411 [PREFIX] 1412 1413By default, \`make install' will install all the files in 1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1415an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1416for instance \`--prefix=\$HOME'. 1417 1418For better control, use the options below. 1419 1420Fine tuning of the installation directories: 1421 --bindir=DIR user executables [EPREFIX/bin] 1422 --sbindir=DIR system admin executables [EPREFIX/sbin] 1423 --libexecdir=DIR program executables [EPREFIX/libexec] 1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441_ACEOF 1442 1443 cat <<\_ACEOF 1444 1445Program names: 1446 --program-prefix=PREFIX prepend PREFIX to installed program names 1447 --program-suffix=SUFFIX append SUFFIX to installed program names 1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1449 1450System types: 1451 --build=BUILD configure for building on BUILD [guessed] 1452 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1453_ACEOF 1454fi 1455 1456if test -n "$ac_init_help"; then 1457 case $ac_init_help in 1458 short | recursive ) echo "Configuration of libxkbfile 1.1.2:";; 1459 esac 1460 cat <<\_ACEOF 1461 1462Optional Features: 1463 --disable-option-checking ignore unrecognized --enable/--with options 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1466 --enable-silent-rules less verbose build output (undo: "make V=1") 1467 --disable-silent-rules verbose build output (undo: "make V=0") 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --enable-dependency-tracking 1473 do not reject slow dependency extractors 1474 --disable-dependency-tracking 1475 speeds up one-time build 1476 --disable-libtool-lock avoid locking (might break parallel builds) 1477 --disable-selective-werror 1478 Turn off selective compiler errors. (default: 1479 enabled) 1480 --enable-strict-compilation 1481 Enable all warnings from compiler and make them 1482 errors (default: disabled) 1483 --disable-largefile omit support for large files 1484 1485Optional Packages: 1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1488 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1489 both] 1490 --with-aix-soname=aix|svr4|both 1491 shared library versioning (aka "SONAME") variant to 1492 provide on AIX, [default=aix]. 1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1494 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1495 compiler's sysroot if not specified). 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 LT_SYS_LIBRARY_PATH 1506 User-defined run-time library search path. 1507 PKG_CONFIG path to pkg-config utility 1508 PKG_CONFIG_PATH 1509 directories to add to pkg-config's search path 1510 PKG_CONFIG_LIBDIR 1511 path overriding pkg-config's built-in search path 1512 XKBFILE_CFLAGS 1513 C compiler flags for XKBFILE, overriding pkg-config 1514 XKBFILE_LIBS 1515 linker flags for XKBFILE, overriding pkg-config 1516 1517Use these variables to override the choices made by `configure' or to help 1518it to find libraries and programs with nonstandard names/locations. 1519 1520Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>. 1521_ACEOF 1522ac_status=$? 1523fi 1524 1525if test "$ac_init_help" = "recursive"; then 1526 # If there are subdirs, report their specific --help. 1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1528 test -d "$ac_dir" || 1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1530 continue 1531 ac_builddir=. 1532 1533case "$ac_dir" in 1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535*) 1536 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1537 # A ".." for each directory in $ac_dir_suffix. 1538 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1539 case $ac_top_builddir_sub in 1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1542 esac ;; 1543esac 1544ac_abs_top_builddir=$ac_pwd 1545ac_abs_builddir=$ac_pwd$ac_dir_suffix 1546# for backward compatibility: 1547ac_top_builddir=$ac_top_build_prefix 1548 1549case $srcdir in 1550 .) # We are building in place. 1551 ac_srcdir=. 1552 ac_top_srcdir=$ac_top_builddir_sub 1553 ac_abs_top_srcdir=$ac_pwd ;; 1554 [\\/]* | ?:[\\/]* ) # Absolute name. 1555 ac_srcdir=$srcdir$ac_dir_suffix; 1556 ac_top_srcdir=$srcdir 1557 ac_abs_top_srcdir=$srcdir ;; 1558 *) # Relative name. 1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1560 ac_top_srcdir=$ac_top_build_prefix$srcdir 1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1562esac 1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1564 1565 cd "$ac_dir" || { ac_status=$?; continue; } 1566 # Check for configure.gnu first; this name is used for a wrapper for 1567 # Metaconfig's "Configure" on case-insensitive file systems. 1568 if test -f "$ac_srcdir/configure.gnu"; then 1569 echo && 1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1571 elif test -f "$ac_srcdir/configure"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure" --help=recursive 1574 else 1575 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1576 fi || ac_status=$? 1577 cd "$ac_pwd" || { ac_status=$?; break; } 1578 done 1579fi 1580 1581test -n "$ac_init_help" && exit $ac_status 1582if $ac_init_version; then 1583 cat <<\_ACEOF 1584libxkbfile configure 1.1.2 1585generated by GNU Autoconf 2.71 1586 1587Copyright (C) 2021 Free Software Foundation, Inc. 1588This configure script is free software; the Free Software Foundation 1589gives unlimited permission to copy, distribute and modify it. 1590_ACEOF 1591 exit 1592fi 1593 1594## ------------------------ ## 1595## Autoconf initialization. ## 1596## ------------------------ ## 1597 1598# ac_fn_c_try_compile LINENO 1599# -------------------------- 1600# Try to compile conftest.$ac_ext, and return whether this succeeded. 1601ac_fn_c_try_compile () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 rm -f conftest.$ac_objext conftest.beam 1605 if { { ac_try="$ac_compile" 1606case "(($ac_try" in 1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1608 *) ac_try_echo=$ac_try;; 1609esac 1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1611printf "%s\n" "$ac_try_echo"; } >&5 1612 (eval "$ac_compile") 2>conftest.err 1613 ac_status=$? 1614 if test -s conftest.err; then 1615 grep -v '^ *+' conftest.err >conftest.er1 1616 cat conftest.er1 >&5 1617 mv -f conftest.er1 conftest.err 1618 fi 1619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1620 test $ac_status = 0; } && { 1621 test -z "$ac_c_werror_flag" || 1622 test ! -s conftest.err 1623 } && test -s conftest.$ac_objext 1624then : 1625 ac_retval=0 1626else $as_nop 1627 printf "%s\n" "$as_me: failed program was:" >&5 1628sed 's/^/| /' conftest.$ac_ext >&5 1629 1630 ac_retval=1 1631fi 1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633 as_fn_set_status $ac_retval 1634 1635} # ac_fn_c_try_compile 1636 1637# ac_fn_c_try_link LINENO 1638# ----------------------- 1639# Try to link conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_c_try_link () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1644 if { { ac_try="$ac_link" 1645case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648esac 1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650printf "%s\n" "$ac_try_echo"; } >&5 1651 (eval "$ac_link") 2>conftest.err 1652 ac_status=$? 1653 if test -s conftest.err; then 1654 grep -v '^ *+' conftest.err >conftest.er1 1655 cat conftest.er1 >&5 1656 mv -f conftest.er1 conftest.err 1657 fi 1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { 1660 test -z "$ac_c_werror_flag" || 1661 test ! -s conftest.err 1662 } && test -s conftest$ac_exeext && { 1663 test "$cross_compiling" = yes || 1664 test -x conftest$ac_exeext 1665 } 1666then : 1667 ac_retval=0 1668else $as_nop 1669 printf "%s\n" "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1676 # interfere with the next link command; also delete a directory that is 1677 # left behind by Apple's compiler. We do this before executing the actions. 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_link 1683 1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1685# ------------------------------------------------------- 1686# Tests whether HEADER exists and can be compiled using the include files in 1687# INCLUDES, setting the cache variable VAR accordingly. 1688ac_fn_c_check_header_compile () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692printf %s "checking for $2... " >&6; } 1693if eval test \${$3+y} 1694then : 1695 printf %s "(cached) " >&6 1696else $as_nop 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699$4 1700#include <$2> 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO" 1703then : 1704 eval "$3=yes" 1705else $as_nop 1706 eval "$3=no" 1707fi 1708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1709fi 1710eval ac_res=\$$3 1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712printf "%s\n" "$ac_res" >&6; } 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 1715} # ac_fn_c_check_header_compile 1716 1717# ac_fn_c_check_func LINENO FUNC VAR 1718# ---------------------------------- 1719# Tests whether FUNC exists, setting the cache variable VAR accordingly 1720ac_fn_c_check_func () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724printf %s "checking for $2... " >&6; } 1725if eval test \${$3+y} 1726then : 1727 printf %s "(cached) " >&6 1728else $as_nop 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733#define $2 innocuous_$2 1734 1735/* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (void); below. */ 1737 1738#include <limits.h> 1739#undef $2 1740 1741/* Override any GCC internal prototype to avoid an error. 1742 Use char because int might match the return type of a GCC 1743 builtin and then its argument prototype would still apply. */ 1744#ifdef __cplusplus 1745extern "C" 1746#endif 1747char $2 (void); 1748/* The GNU C library defines this for functions which it implements 1749 to always fail with ENOSYS. Some functions are actually named 1750 something starting with __ and the normal name is an alias. */ 1751#if defined __stub_$2 || defined __stub___$2 1752choke me 1753#endif 1754 1755int 1756main (void) 1757{ 1758return $2 (); 1759 ; 1760 return 0; 1761} 1762_ACEOF 1763if ac_fn_c_try_link "$LINENO" 1764then : 1765 eval "$3=yes" 1766else $as_nop 1767 eval "$3=no" 1768fi 1769rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1770 conftest$ac_exeext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774printf "%s\n" "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_func 1778 1779# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1780# ------------------------------------------------------------------ 1781# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1782# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1783ac_fn_check_decl () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 as_decl_name=`echo $2|sed 's/ *(.*//'` 1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1788printf %s "checking whether $as_decl_name is declared... " >&6; } 1789if eval test \${$3+y} 1790then : 1791 printf %s "(cached) " >&6 1792else $as_nop 1793 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1794 eval ac_save_FLAGS=\$$6 1795 as_fn_append $6 " $5" 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798$4 1799int 1800main (void) 1801{ 1802#ifndef $as_decl_name 1803#ifdef __cplusplus 1804 (void) $as_decl_use; 1805#else 1806 (void) $as_decl_name; 1807#endif 1808#endif 1809 1810 ; 1811 return 0; 1812} 1813_ACEOF 1814if ac_fn_c_try_compile "$LINENO" 1815then : 1816 eval "$3=yes" 1817else $as_nop 1818 eval "$3=no" 1819fi 1820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1821 eval $6=\$ac_save_FLAGS 1822 1823fi 1824eval ac_res=\$$3 1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826printf "%s\n" "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_check_decl 1830ac_configure_args_raw= 1831for ac_arg 1832do 1833 case $ac_arg in 1834 *\'*) 1835 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1836 esac 1837 as_fn_append ac_configure_args_raw " '$ac_arg'" 1838done 1839 1840case $ac_configure_args_raw in 1841 *$as_nl*) 1842 ac_safe_unquote= ;; 1843 *) 1844 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1845 ac_unsafe_a="$ac_unsafe_z#~" 1846 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1847 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1848esac 1849 1850cat >config.log <<_ACEOF 1851This file contains any messages produced by compilers while 1852running configure, to aid debugging if configure makes a mistake. 1853 1854It was created by libxkbfile $as_me 1.1.2, which was 1855generated by GNU Autoconf 2.71. Invocation command line was 1856 1857 $ $0$ac_configure_args_raw 1858 1859_ACEOF 1860exec 5>>config.log 1861{ 1862cat <<_ASUNAME 1863## --------- ## 1864## Platform. ## 1865## --------- ## 1866 1867hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1868uname -m = `(uname -m) 2>/dev/null || echo unknown` 1869uname -r = `(uname -r) 2>/dev/null || echo unknown` 1870uname -s = `(uname -s) 2>/dev/null || echo unknown` 1871uname -v = `(uname -v) 2>/dev/null || echo unknown` 1872 1873/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1874/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1875 1876/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1877/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1878/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1879/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1880/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1881/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1882/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1883 1884_ASUNAME 1885 1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1887for as_dir in $PATH 1888do 1889 IFS=$as_save_IFS 1890 case $as_dir in #((( 1891 '') as_dir=./ ;; 1892 */) ;; 1893 *) as_dir=$as_dir/ ;; 1894 esac 1895 printf "%s\n" "PATH: $as_dir" 1896 done 1897IFS=$as_save_IFS 1898 1899} >&5 1900 1901cat >&5 <<_ACEOF 1902 1903 1904## ----------- ## 1905## Core tests. ## 1906## ----------- ## 1907 1908_ACEOF 1909 1910 1911# Keep a trace of the command line. 1912# Strip out --no-create and --no-recursion so they do not pile up. 1913# Strip out --silent because we don't want to record it for future runs. 1914# Also quote any args containing shell meta-characters. 1915# Make two passes to allow for proper duplicate-argument suppression. 1916ac_configure_args= 1917ac_configure_args0= 1918ac_configure_args1= 1919ac_must_keep_next=false 1920for ac_pass in 1 2 1921do 1922 for ac_arg 1923 do 1924 case $ac_arg in 1925 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1927 | -silent | --silent | --silen | --sile | --sil) 1928 continue ;; 1929 *\'*) 1930 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1931 esac 1932 case $ac_pass in 1933 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1934 2) 1935 as_fn_append ac_configure_args1 " '$ac_arg'" 1936 if test $ac_must_keep_next = true; then 1937 ac_must_keep_next=false # Got value, back to normal. 1938 else 1939 case $ac_arg in 1940 *=* | --config-cache | -C | -disable-* | --disable-* \ 1941 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1942 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1943 | -with-* | --with-* | -without-* | --without-* | --x) 1944 case "$ac_configure_args0 " in 1945 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1946 esac 1947 ;; 1948 -* ) ac_must_keep_next=true ;; 1949 esac 1950 fi 1951 as_fn_append ac_configure_args " '$ac_arg'" 1952 ;; 1953 esac 1954 done 1955done 1956{ ac_configure_args0=; unset ac_configure_args0;} 1957{ ac_configure_args1=; unset ac_configure_args1;} 1958 1959# When interrupted or exit'd, cleanup temporary files, and complete 1960# config.log. We remove comments because anyway the quotes in there 1961# would cause problems or look ugly. 1962# WARNING: Use '\'' to represent an apostrophe within the trap. 1963# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1964trap 'exit_status=$? 1965 # Sanitize IFS. 1966 IFS=" "" $as_nl" 1967 # Save into config.log some information that might help in debugging. 1968 { 1969 echo 1970 1971 printf "%s\n" "## ---------------- ## 1972## Cache variables. ## 1973## ---------------- ##" 1974 echo 1975 # The following way of writing the cache mishandles newlines in values, 1976( 1977 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1978 eval ac_val=\$$ac_var 1979 case $ac_val in #( 1980 *${as_nl}*) 1981 case $ac_var in #( 1982 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1983printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1984 esac 1985 case $ac_var in #( 1986 _ | IFS | as_nl) ;; #( 1987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1988 *) { eval $ac_var=; unset $ac_var;} ;; 1989 esac ;; 1990 esac 1991 done 1992 (set) 2>&1 | 1993 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1994 *${as_nl}ac_space=\ *) 1995 sed -n \ 1996 "s/'\''/'\''\\\\'\'''\''/g; 1997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1998 ;; #( 1999 *) 2000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2001 ;; 2002 esac | 2003 sort 2004) 2005 echo 2006 2007 printf "%s\n" "## ----------------- ## 2008## Output variables. ## 2009## ----------------- ##" 2010 echo 2011 for ac_var in $ac_subst_vars 2012 do 2013 eval ac_val=\$$ac_var 2014 case $ac_val in 2015 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2016 esac 2017 printf "%s\n" "$ac_var='\''$ac_val'\''" 2018 done | sort 2019 echo 2020 2021 if test -n "$ac_subst_files"; then 2022 printf "%s\n" "## ------------------- ## 2023## File substitutions. ## 2024## ------------------- ##" 2025 echo 2026 for ac_var in $ac_subst_files 2027 do 2028 eval ac_val=\$$ac_var 2029 case $ac_val in 2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2031 esac 2032 printf "%s\n" "$ac_var='\''$ac_val'\''" 2033 done | sort 2034 echo 2035 fi 2036 2037 if test -s confdefs.h; then 2038 printf "%s\n" "## ----------- ## 2039## confdefs.h. ## 2040## ----------- ##" 2041 echo 2042 cat confdefs.h 2043 echo 2044 fi 2045 test "$ac_signal" != 0 && 2046 printf "%s\n" "$as_me: caught signal $ac_signal" 2047 printf "%s\n" "$as_me: exit $exit_status" 2048 } >&5 2049 rm -f core *.core core.conftest.* && 2050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2051 exit $exit_status 2052' 0 2053for ac_signal in 1 2 13 15; do 2054 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2055done 2056ac_signal=0 2057 2058# confdefs.h avoids OS command line length limits that DEFS can exceed. 2059rm -f -r conftest* confdefs.h 2060 2061printf "%s\n" "/* confdefs.h */" > confdefs.h 2062 2063# Predefined preprocessor variables. 2064 2065printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2066 2067printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2068 2069printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2070 2071printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2072 2073printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2074 2075printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2076 2077 2078# Let the site file select an alternate cache file if it wants to. 2079# Prefer an explicitly selected file to automatically selected ones. 2080if test -n "$CONFIG_SITE"; then 2081 ac_site_files="$CONFIG_SITE" 2082elif test "x$prefix" != xNONE; then 2083 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2084else 2085 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2086fi 2087 2088for ac_site_file in $ac_site_files 2089do 2090 case $ac_site_file in #( 2091 */*) : 2092 ;; #( 2093 *) : 2094 ac_site_file=./$ac_site_file ;; 2095esac 2096 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2098printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2099 sed 's/^/| /' "$ac_site_file" >&5 2100 . "$ac_site_file" \ 2101 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2102printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2103as_fn_error $? "failed to load site script $ac_site_file 2104See \`config.log' for more details" "$LINENO" 5; } 2105 fi 2106done 2107 2108if test -r "$cache_file"; then 2109 # Some versions of bash will fail to source /dev/null (special files 2110 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2111 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2113printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2114 case $cache_file in 2115 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2116 *) . "./$cache_file";; 2117 esac 2118 fi 2119else 2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2121printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2122 >$cache_file 2123fi 2124 2125# Test code for whether the C compiler supports C89 (global declarations) 2126ac_c_conftest_c89_globals=' 2127/* Does the compiler advertise C89 conformance? 2128 Do not test the value of __STDC__, because some compilers set it to 0 2129 while being otherwise adequately conformant. */ 2130#if !defined __STDC__ 2131# error "Compiler does not advertise C89 conformance" 2132#endif 2133 2134#include <stddef.h> 2135#include <stdarg.h> 2136struct stat; 2137/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2138struct buf { int x; }; 2139struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2140static char *e (char **p, int i) 2141{ 2142 return p[i]; 2143} 2144static char *f (char * (*g) (char **, int), char **p, ...) 2145{ 2146 char *s; 2147 va_list v; 2148 va_start (v,p); 2149 s = g (p, va_arg (v,int)); 2150 va_end (v); 2151 return s; 2152} 2153 2154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2155 function prototypes and stuff, but not \xHH hex character constants. 2156 These do not provoke an error unfortunately, instead are silently treated 2157 as an "x". The following induces an error, until -std is added to get 2158 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2159 array size at least. It is necessary to write \x00 == 0 to get something 2160 that is true only with -std. */ 2161int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2162 2163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2164 inside strings and character constants. */ 2165#define FOO(x) '\''x'\'' 2166int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2167 2168int test (int i, double x); 2169struct s1 {int (*f) (int a);}; 2170struct s2 {int (*f) (double a);}; 2171int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2172 int, int);' 2173 2174# Test code for whether the C compiler supports C89 (body of main). 2175ac_c_conftest_c89_main=' 2176ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2177' 2178 2179# Test code for whether the C compiler supports C99 (global declarations) 2180ac_c_conftest_c99_globals=' 2181// Does the compiler advertise C99 conformance? 2182#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2183# error "Compiler does not advertise C99 conformance" 2184#endif 2185 2186#include <stdbool.h> 2187extern int puts (const char *); 2188extern int printf (const char *, ...); 2189extern int dprintf (int, const char *, ...); 2190extern void *malloc (size_t); 2191extern void free (void *); 2192 2193// Check varargs macros. These examples are taken from C99 6.10.3.5. 2194// dprintf is used instead of fprintf to avoid needing to declare 2195// FILE and stderr. 2196#define debug(...) dprintf (2, __VA_ARGS__) 2197#define showlist(...) puts (#__VA_ARGS__) 2198#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2199static void 2200test_varargs_macros (void) 2201{ 2202 int x = 1234; 2203 int y = 5678; 2204 debug ("Flag"); 2205 debug ("X = %d\n", x); 2206 showlist (The first, second, and third items.); 2207 report (x>y, "x is %d but y is %d", x, y); 2208} 2209 2210// Check long long types. 2211#define BIG64 18446744073709551615ull 2212#define BIG32 4294967295ul 2213#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2214#if !BIG_OK 2215 #error "your preprocessor is broken" 2216#endif 2217#if BIG_OK 2218#else 2219 #error "your preprocessor is broken" 2220#endif 2221static long long int bignum = -9223372036854775807LL; 2222static unsigned long long int ubignum = BIG64; 2223 2224struct incomplete_array 2225{ 2226 int datasize; 2227 double data[]; 2228}; 2229 2230struct named_init { 2231 int number; 2232 const wchar_t *name; 2233 double average; 2234}; 2235 2236typedef const char *ccp; 2237 2238static inline int 2239test_restrict (ccp restrict text) 2240{ 2241 // See if C++-style comments work. 2242 // Iterate through items via the restricted pointer. 2243 // Also check for declarations in for loops. 2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2245 continue; 2246 return 0; 2247} 2248 2249// Check varargs and va_copy. 2250static bool 2251test_varargs (const char *format, ...) 2252{ 2253 va_list args; 2254 va_start (args, format); 2255 va_list args_copy; 2256 va_copy (args_copy, args); 2257 2258 const char *str = ""; 2259 int number = 0; 2260 float fnumber = 0; 2261 2262 while (*format) 2263 { 2264 switch (*format++) 2265 { 2266 case '\''s'\'': // string 2267 str = va_arg (args_copy, const char *); 2268 break; 2269 case '\''d'\'': // int 2270 number = va_arg (args_copy, int); 2271 break; 2272 case '\''f'\'': // float 2273 fnumber = va_arg (args_copy, double); 2274 break; 2275 default: 2276 break; 2277 } 2278 } 2279 va_end (args_copy); 2280 va_end (args); 2281 2282 return *str && number && fnumber; 2283} 2284' 2285 2286# Test code for whether the C compiler supports C99 (body of main). 2287ac_c_conftest_c99_main=' 2288 // Check bool. 2289 _Bool success = false; 2290 success |= (argc != 0); 2291 2292 // Check restrict. 2293 if (test_restrict ("String literal") == 0) 2294 success = true; 2295 char *restrict newvar = "Another string"; 2296 2297 // Check varargs. 2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2299 test_varargs_macros (); 2300 2301 // Check flexible array members. 2302 struct incomplete_array *ia = 2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2304 ia->datasize = 10; 2305 for (int i = 0; i < ia->datasize; ++i) 2306 ia->data[i] = i * 1.234; 2307 2308 // Check named initializers. 2309 struct named_init ni = { 2310 .number = 34, 2311 .name = L"Test wide string", 2312 .average = 543.34343, 2313 }; 2314 2315 ni.number = 58; 2316 2317 int dynamic_array[ni.number]; 2318 dynamic_array[0] = argv[0][0]; 2319 dynamic_array[ni.number - 1] = 543; 2320 2321 // work around unused variable warnings 2322 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2323 || dynamic_array[ni.number - 1] != 543); 2324' 2325 2326# Test code for whether the C compiler supports C11 (global declarations) 2327ac_c_conftest_c11_globals=' 2328// Does the compiler advertise C11 conformance? 2329#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2330# error "Compiler does not advertise C11 conformance" 2331#endif 2332 2333// Check _Alignas. 2334char _Alignas (double) aligned_as_double; 2335char _Alignas (0) no_special_alignment; 2336extern char aligned_as_int; 2337char _Alignas (0) _Alignas (int) aligned_as_int; 2338 2339// Check _Alignof. 2340enum 2341{ 2342 int_alignment = _Alignof (int), 2343 int_array_alignment = _Alignof (int[100]), 2344 char_alignment = _Alignof (char) 2345}; 2346_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2347 2348// Check _Noreturn. 2349int _Noreturn does_not_return (void) { for (;;) continue; } 2350 2351// Check _Static_assert. 2352struct test_static_assert 2353{ 2354 int x; 2355 _Static_assert (sizeof (int) <= sizeof (long int), 2356 "_Static_assert does not work in struct"); 2357 long int y; 2358}; 2359 2360// Check UTF-8 literals. 2361#define u8 syntax error! 2362char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2363 2364// Check duplicate typedefs. 2365typedef long *long_ptr; 2366typedef long int *long_ptr; 2367typedef long_ptr long_ptr; 2368 2369// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2370struct anonymous 2371{ 2372 union { 2373 struct { int i; int j; }; 2374 struct { int k; long int l; } w; 2375 }; 2376 int m; 2377} v1; 2378' 2379 2380# Test code for whether the C compiler supports C11 (body of main). 2381ac_c_conftest_c11_main=' 2382 _Static_assert ((offsetof (struct anonymous, i) 2383 == offsetof (struct anonymous, w.k)), 2384 "Anonymous union alignment botch"); 2385 v1.i = 2; 2386 v1.w.k = 5; 2387 ok |= v1.i != 5; 2388' 2389 2390# Test code for whether the C compiler supports C11 (complete). 2391ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2392${ac_c_conftest_c99_globals} 2393${ac_c_conftest_c11_globals} 2394 2395int 2396main (int argc, char **argv) 2397{ 2398 int ok = 0; 2399 ${ac_c_conftest_c89_main} 2400 ${ac_c_conftest_c99_main} 2401 ${ac_c_conftest_c11_main} 2402 return ok; 2403} 2404" 2405 2406# Test code for whether the C compiler supports C99 (complete). 2407ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2408${ac_c_conftest_c99_globals} 2409 2410int 2411main (int argc, char **argv) 2412{ 2413 int ok = 0; 2414 ${ac_c_conftest_c89_main} 2415 ${ac_c_conftest_c99_main} 2416 return ok; 2417} 2418" 2419 2420# Test code for whether the C compiler supports C89 (complete). 2421ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2422 2423int 2424main (int argc, char **argv) 2425{ 2426 int ok = 0; 2427 ${ac_c_conftest_c89_main} 2428 return ok; 2429} 2430" 2431 2432as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2433as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2434as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2435as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2436as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2437as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2438as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2439as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2440as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2441 2442# Auxiliary files required by this configure script. 2443ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2444 2445# Locations in which to look for auxiliary files. 2446ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2447 2448# Search for a directory containing all of the required auxiliary files, 2449# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2450# If we don't find one directory that contains all the files we need, 2451# we report the set of missing files from the *first* directory in 2452# $ac_aux_dir_candidates and give up. 2453ac_missing_aux_files="" 2454ac_first_candidate=: 2455printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457as_found=false 2458for as_dir in $ac_aux_dir_candidates 2459do 2460 IFS=$as_save_IFS 2461 case $as_dir in #((( 2462 '') as_dir=./ ;; 2463 */) ;; 2464 *) as_dir=$as_dir/ ;; 2465 esac 2466 as_found=: 2467 2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2469 ac_aux_dir_found=yes 2470 ac_install_sh= 2471 for ac_aux in $ac_aux_files 2472 do 2473 # As a special case, if "install-sh" is required, that requirement 2474 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2475 # and $ac_install_sh is set appropriately for whichever one is found. 2476 if test x"$ac_aux" = x"install-sh" 2477 then 2478 if test -f "${as_dir}install-sh"; then 2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2480 ac_install_sh="${as_dir}install-sh -c" 2481 elif test -f "${as_dir}install.sh"; then 2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2483 ac_install_sh="${as_dir}install.sh -c" 2484 elif test -f "${as_dir}shtool"; then 2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2486 ac_install_sh="${as_dir}shtool install -c" 2487 else 2488 ac_aux_dir_found=no 2489 if $ac_first_candidate; then 2490 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2491 else 2492 break 2493 fi 2494 fi 2495 else 2496 if test -f "${as_dir}${ac_aux}"; then 2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2498 else 2499 ac_aux_dir_found=no 2500 if $ac_first_candidate; then 2501 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2502 else 2503 break 2504 fi 2505 fi 2506 fi 2507 done 2508 if test "$ac_aux_dir_found" = yes; then 2509 ac_aux_dir="$as_dir" 2510 break 2511 fi 2512 ac_first_candidate=false 2513 2514 as_found=false 2515done 2516IFS=$as_save_IFS 2517if $as_found 2518then : 2519 2520else $as_nop 2521 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2522fi 2523 2524 2525# These three variables are undocumented and unsupported, 2526# and are intended to be withdrawn in a future Autoconf release. 2527# They can cause serious problems if a builder's source tree is in a directory 2528# whose full name contains unusual characters. 2529if test -f "${ac_aux_dir}config.guess"; then 2530 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2531fi 2532if test -f "${ac_aux_dir}config.sub"; then 2533 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2534fi 2535if test -f "$ac_aux_dir/configure"; then 2536 ac_configure="$SHELL ${ac_aux_dir}configure" 2537fi 2538 2539# Check that the precious variables saved in the cache have kept the same 2540# value. 2541ac_cache_corrupted=false 2542for ac_var in $ac_precious_vars; do 2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2544 eval ac_new_set=\$ac_env_${ac_var}_set 2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2546 eval ac_new_val=\$ac_env_${ac_var}_value 2547 case $ac_old_set,$ac_new_set in 2548 set,) 2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2550printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2551 ac_cache_corrupted=: ;; 2552 ,set) 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2554printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2555 ac_cache_corrupted=: ;; 2556 ,);; 2557 *) 2558 if test "x$ac_old_val" != "x$ac_new_val"; then 2559 # differences in whitespace do not lead to failure. 2560 ac_old_val_w=`echo x $ac_old_val` 2561 ac_new_val_w=`echo x $ac_new_val` 2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2564printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2565 ac_cache_corrupted=: 2566 else 2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2568printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2569 eval $ac_var=\$ac_old_val 2570 fi 2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2572printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2574printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2575 fi;; 2576 esac 2577 # Pass precious variables to config.status. 2578 if test "$ac_new_set" = set; then 2579 case $ac_new_val in 2580 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2581 *) ac_arg=$ac_var=$ac_new_val ;; 2582 esac 2583 case " $ac_configure_args " in 2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2586 esac 2587 fi 2588done 2589if $ac_cache_corrupted; then 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2591printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2593printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2594 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2595 and start over" "$LINENO" 5 2596fi 2597## -------------------- ## 2598## Main body of script. ## 2599## -------------------- ## 2600 2601ac_ext=c 2602ac_cpp='$CPP $CPPFLAGS' 2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2605ac_compiler_gnu=$ac_cv_c_compiler_gnu 2606 2607 2608 2609ac_config_headers="$ac_config_headers config.h" 2610 2611 2612# Initialize Automake 2613am__api_version='1.16' 2614 2615 2616 2617 # Find a good install program. We prefer a C program (faster), 2618# so one script is as good as another. But avoid the broken or 2619# incompatible versions: 2620# SysV /etc/install, /usr/sbin/install 2621# SunOS /usr/etc/install 2622# IRIX /sbin/install 2623# AIX /bin/install 2624# AmigaOS /C/install, which installs bootblocks on floppy discs 2625# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2626# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2627# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2628# OS/2's system install, which has a completely different semantic 2629# ./install, which can be erroneously created by make from ./install.sh. 2630# Reject install programs that cannot install multiple files. 2631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2632printf %s "checking for a BSD-compatible install... " >&6; } 2633if test -z "$INSTALL"; then 2634if test ${ac_cv_path_install+y} 2635then : 2636 printf %s "(cached) " >&6 2637else $as_nop 2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 case $as_dir in #((( 2643 '') as_dir=./ ;; 2644 */) ;; 2645 *) as_dir=$as_dir/ ;; 2646 esac 2647 # Account for fact that we put trailing slashes in our PATH walk. 2648case $as_dir in #(( 2649 ./ | /[cC]/* | \ 2650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2652 /usr/ucb/* ) ;; 2653 *) 2654 # OSF1 and SCO ODT 3.0 have their own names for install. 2655 # Don't use installbsd from OSF since it installs stuff as root 2656 # by default. 2657 for ac_prog in ginstall scoinst install; do 2658 for ac_exec_ext in '' $ac_executable_extensions; do 2659 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2660 if test $ac_prog = install && 2661 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2662 # AIX install. It has an incompatible calling convention. 2663 : 2664 elif test $ac_prog = install && 2665 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2666 # program-specific install script used by HP pwplus--don't use. 2667 : 2668 else 2669 rm -rf conftest.one conftest.two conftest.dir 2670 echo one > conftest.one 2671 echo two > conftest.two 2672 mkdir conftest.dir 2673 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2674 test -s conftest.one && test -s conftest.two && 2675 test -s conftest.dir/conftest.one && 2676 test -s conftest.dir/conftest.two 2677 then 2678 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2679 break 3 2680 fi 2681 fi 2682 fi 2683 done 2684 done 2685 ;; 2686esac 2687 2688 done 2689IFS=$as_save_IFS 2690 2691rm -rf conftest.one conftest.two conftest.dir 2692 2693fi 2694 if test ${ac_cv_path_install+y}; then 2695 INSTALL=$ac_cv_path_install 2696 else 2697 # As a last resort, use the slow shell script. Don't cache a 2698 # value for INSTALL within a source directory, because that will 2699 # break other packages using the cache if that directory is 2700 # removed, or if the value is a relative name. 2701 INSTALL=$ac_install_sh 2702 fi 2703fi 2704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2705printf "%s\n" "$INSTALL" >&6; } 2706 2707# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2708# It thinks the first close brace ends the variable substitution. 2709test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2710 2711test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2712 2713test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2714 2715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2716printf %s "checking whether build environment is sane... " >&6; } 2717# Reject unsafe characters in $srcdir or the absolute working directory 2718# name. Accept space and tab only in the latter. 2719am_lf=' 2720' 2721case `pwd` in 2722 *[\\\"\#\$\&\'\`$am_lf]*) 2723 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2724esac 2725case $srcdir in 2726 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2727 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2728esac 2729 2730# Do 'set' in a subshell so we don't clobber the current shell's 2731# arguments. Must try -L first in case configure is actually a 2732# symlink; some systems play weird games with the mod time of symlinks 2733# (eg FreeBSD returns the mod time of the symlink's containing 2734# directory). 2735if ( 2736 am_has_slept=no 2737 for am_try in 1 2; do 2738 echo "timestamp, slept: $am_has_slept" > conftest.file 2739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2740 if test "$*" = "X"; then 2741 # -L didn't work. 2742 set X `ls -t "$srcdir/configure" conftest.file` 2743 fi 2744 if test "$*" != "X $srcdir/configure conftest.file" \ 2745 && test "$*" != "X conftest.file $srcdir/configure"; then 2746 2747 # If neither matched, then we have a broken ls. This can happen 2748 # if, for instance, CONFIG_SHELL is bash and it inherits a 2749 # broken ls alias from the environment. This has actually 2750 # happened. Such a system could not be considered "sane". 2751 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2752 alias in your environment" "$LINENO" 5 2753 fi 2754 if test "$2" = conftest.file || test $am_try -eq 2; then 2755 break 2756 fi 2757 # Just in case. 2758 sleep 1 2759 am_has_slept=yes 2760 done 2761 test "$2" = conftest.file 2762 ) 2763then 2764 # Ok. 2765 : 2766else 2767 as_fn_error $? "newly created file is older than distributed files! 2768Check your system clock" "$LINENO" 5 2769fi 2770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2771printf "%s\n" "yes" >&6; } 2772# If we didn't sleep, we still need to ensure time stamps of config.status and 2773# generated files are strictly newer. 2774am_sleep_pid= 2775if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2776 ( sleep 1 ) & 2777 am_sleep_pid=$! 2778fi 2779 2780rm -f conftest.file 2781 2782test "$program_prefix" != NONE && 2783 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2784# Use a double $ so make ignores it. 2785test "$program_suffix" != NONE && 2786 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2787# Double any \ or $. 2788# By default was `s,x,x', remove it if useless. 2789ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2790program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2791 2792 2793# Expand $ac_aux_dir to an absolute path. 2794am_aux_dir=`cd "$ac_aux_dir" && pwd` 2795 2796 2797 if test x"${MISSING+set}" != xset; then 2798 MISSING="\${SHELL} '$am_aux_dir/missing'" 2799fi 2800# Use eval to expand $SHELL 2801if eval "$MISSING --is-lightweight"; then 2802 am_missing_run="$MISSING " 2803else 2804 am_missing_run= 2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2806printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2807fi 2808 2809if test x"${install_sh+set}" != xset; then 2810 case $am_aux_dir in 2811 *\ * | *\ *) 2812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2813 *) 2814 install_sh="\${SHELL} $am_aux_dir/install-sh" 2815 esac 2816fi 2817 2818# Installed binaries are usually stripped using 'strip' when the user 2819# run "make install-strip". However 'strip' might not be the right 2820# tool to use in cross-compilation environments, therefore Automake 2821# will honor the 'STRIP' environment variable to overrule this program. 2822if test "$cross_compiling" != no; then 2823 if test -n "$ac_tool_prefix"; then 2824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2825set dummy ${ac_tool_prefix}strip; ac_word=$2 2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827printf %s "checking for $ac_word... " >&6; } 2828if test ${ac_cv_prog_STRIP+y} 2829then : 2830 printf %s "(cached) " >&6 2831else $as_nop 2832 if test -n "$STRIP"; then 2833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2834else 2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836for as_dir in $PATH 2837do 2838 IFS=$as_save_IFS 2839 case $as_dir in #((( 2840 '') as_dir=./ ;; 2841 */) ;; 2842 *) as_dir=$as_dir/ ;; 2843 esac 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2846 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856STRIP=$ac_cv_prog_STRIP 2857if test -n "$STRIP"; then 2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2859printf "%s\n" "$STRIP" >&6; } 2860else 2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862printf "%s\n" "no" >&6; } 2863fi 2864 2865 2866fi 2867if test -z "$ac_cv_prog_STRIP"; then 2868 ac_ct_STRIP=$STRIP 2869 # Extract the first word of "strip", so it can be a program name with args. 2870set dummy strip; ac_word=$2 2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2872printf %s "checking for $ac_word... " >&6; } 2873if test ${ac_cv_prog_ac_ct_STRIP+y} 2874then : 2875 printf %s "(cached) " >&6 2876else $as_nop 2877 if test -n "$ac_ct_STRIP"; then 2878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2879else 2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2881for as_dir in $PATH 2882do 2883 IFS=$as_save_IFS 2884 case $as_dir in #((( 2885 '') as_dir=./ ;; 2886 */) ;; 2887 *) as_dir=$as_dir/ ;; 2888 esac 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2891 ac_cv_prog_ac_ct_STRIP="strip" 2892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2902if test -n "$ac_ct_STRIP"; then 2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2904printf "%s\n" "$ac_ct_STRIP" >&6; } 2905else 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907printf "%s\n" "no" >&6; } 2908fi 2909 2910 if test "x$ac_ct_STRIP" = x; then 2911 STRIP=":" 2912 else 2913 case $cross_compiling:$ac_tool_warned in 2914yes:) 2915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2917ac_tool_warned=yes ;; 2918esac 2919 STRIP=$ac_ct_STRIP 2920 fi 2921else 2922 STRIP="$ac_cv_prog_STRIP" 2923fi 2924 2925fi 2926INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2927 2928 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2930printf %s "checking for a race-free mkdir -p... " >&6; } 2931if test -z "$MKDIR_P"; then 2932 if test ${ac_cv_path_mkdir+y} 2933then : 2934 printf %s "(cached) " >&6 2935else $as_nop 2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2938do 2939 IFS=$as_save_IFS 2940 case $as_dir in #((( 2941 '') as_dir=./ ;; 2942 */) ;; 2943 *) as_dir=$as_dir/ ;; 2944 esac 2945 for ac_prog in mkdir gmkdir; do 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2948 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2949 'mkdir ('*'coreutils) '* | \ 2950 'BusyBox '* | \ 2951 'mkdir (fileutils) '4.1*) 2952 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2953 break 3;; 2954 esac 2955 done 2956 done 2957 done 2958IFS=$as_save_IFS 2959 2960fi 2961 2962 test -d ./--version && rmdir ./--version 2963 if test ${ac_cv_path_mkdir+y}; then 2964 MKDIR_P="$ac_cv_path_mkdir -p" 2965 else 2966 # As a last resort, use the slow shell script. Don't cache a 2967 # value for MKDIR_P within a source directory, because that will 2968 # break other packages using the cache if that directory is 2969 # removed, or if the value is a relative name. 2970 MKDIR_P="$ac_install_sh -d" 2971 fi 2972fi 2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2974printf "%s\n" "$MKDIR_P" >&6; } 2975 2976for ac_prog in gawk mawk nawk awk 2977do 2978 # Extract the first word of "$ac_prog", so it can be a program name with args. 2979set dummy $ac_prog; ac_word=$2 2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981printf %s "checking for $ac_word... " >&6; } 2982if test ${ac_cv_prog_AWK+y} 2983then : 2984 printf %s "(cached) " >&6 2985else $as_nop 2986 if test -n "$AWK"; then 2987 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 case $as_dir in #((( 2994 '') as_dir=./ ;; 2995 */) ;; 2996 *) as_dir=$as_dir/ ;; 2997 esac 2998 for ac_exec_ext in '' $ac_executable_extensions; do 2999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3000 ac_cv_prog_AWK="$ac_prog" 3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3002 break 2 3003 fi 3004done 3005 done 3006IFS=$as_save_IFS 3007 3008fi 3009fi 3010AWK=$ac_cv_prog_AWK 3011if test -n "$AWK"; then 3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3013printf "%s\n" "$AWK" >&6; } 3014else 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3016printf "%s\n" "no" >&6; } 3017fi 3018 3019 3020 test -n "$AWK" && break 3021done 3022 3023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3024printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3025set x ${MAKE-make} 3026ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3027if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3028then : 3029 printf %s "(cached) " >&6 3030else $as_nop 3031 cat >conftest.make <<\_ACEOF 3032SHELL = /bin/sh 3033all: 3034 @echo '@@@%%%=$(MAKE)=@@@%%%' 3035_ACEOF 3036# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3037case `${MAKE-make} -f conftest.make 2>/dev/null` in 3038 *@@@%%%=?*=@@@%%%*) 3039 eval ac_cv_prog_make_${ac_make}_set=yes;; 3040 *) 3041 eval ac_cv_prog_make_${ac_make}_set=no;; 3042esac 3043rm -f conftest.make 3044fi 3045if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3047printf "%s\n" "yes" >&6; } 3048 SET_MAKE= 3049else 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051printf "%s\n" "no" >&6; } 3052 SET_MAKE="MAKE=${MAKE-make}" 3053fi 3054 3055rm -rf .tst 2>/dev/null 3056mkdir .tst 2>/dev/null 3057if test -d .tst; then 3058 am__leading_dot=. 3059else 3060 am__leading_dot=_ 3061fi 3062rmdir .tst 2>/dev/null 3063 3064# Check whether --enable-silent-rules was given. 3065if test ${enable_silent_rules+y} 3066then : 3067 enableval=$enable_silent_rules; 3068fi 3069 3070case $enable_silent_rules in # ((( 3071 yes) AM_DEFAULT_VERBOSITY=0;; 3072 no) AM_DEFAULT_VERBOSITY=1;; 3073 *) AM_DEFAULT_VERBOSITY=1;; 3074esac 3075am_make=${MAKE-make} 3076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3077printf %s "checking whether $am_make supports nested variables... " >&6; } 3078if test ${am_cv_make_support_nested_variables+y} 3079then : 3080 printf %s "(cached) " >&6 3081else $as_nop 3082 if printf "%s\n" 'TRUE=$(BAR$(V)) 3083BAR0=false 3084BAR1=true 3085V=1 3086am__doit: 3087 @$(TRUE) 3088.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3089 am_cv_make_support_nested_variables=yes 3090else 3091 am_cv_make_support_nested_variables=no 3092fi 3093fi 3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3095printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3096if test $am_cv_make_support_nested_variables = yes; then 3097 AM_V='$(V)' 3098 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3099else 3100 AM_V=$AM_DEFAULT_VERBOSITY 3101 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3102fi 3103AM_BACKSLASH='\' 3104 3105if test "`cd $srcdir && pwd`" != "`pwd`"; then 3106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3107 # is not polluted with repeated "-I." 3108 am__isrc=' -I$(srcdir)' 3109 # test to see if srcdir already configured 3110 if test -f $srcdir/config.status; then 3111 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3112 fi 3113fi 3114 3115# test whether we have cygpath 3116if test -z "$CYGPATH_W"; then 3117 if (cygpath --version) >/dev/null 2>/dev/null; then 3118 CYGPATH_W='cygpath -w' 3119 else 3120 CYGPATH_W=echo 3121 fi 3122fi 3123 3124 3125# Define the identity of the package. 3126 PACKAGE='libxkbfile' 3127 VERSION='1.1.2' 3128 3129 3130printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3131 3132 3133printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3134 3135# Some tools Automake needs. 3136 3137ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3138 3139 3140AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3141 3142 3143AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3144 3145 3146AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3147 3148 3149MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3150 3151# For better backward compatibility. To be removed once Automake 1.9.x 3152# dies out for good. For more background, see: 3153# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3154# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3155mkdir_p='$(MKDIR_P)' 3156 3157# We need awk for the "check" target (and possibly the TAP driver). The 3158# system "awk" is bad on some platforms. 3159# Always define AMTAR for backward compatibility. Yes, it's still used 3160# in the wild :-( We should find a proper way to deprecate it ... 3161AMTAR='$${TAR-tar}' 3162 3163 3164# We'll loop over all known methods to create a tar archive until one works. 3165_am_tools='gnutar pax cpio none' 3166 3167am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3168 3169 3170 3171 3172 3173# Variables for tags utilities; see am/tags.am 3174if test -z "$CTAGS"; then 3175 CTAGS=ctags 3176fi 3177 3178if test -z "$ETAGS"; then 3179 ETAGS=etags 3180fi 3181 3182if test -z "$CSCOPE"; then 3183 CSCOPE=cscope 3184fi 3185 3186 3187 3188# POSIX will say in a future version that running "rm -f" with no argument 3189# is OK; and we want to be able to make that assumption in our Makefile 3190# recipes. So use an aggressive probe to check that the usage we want is 3191# actually supported "in the wild" to an acceptable degree. 3192# See automake bug#10828. 3193# To make any issue more visible, cause the running configure to be aborted 3194# by default if the 'rm' program in use doesn't match our expectations; the 3195# user can still override this though. 3196if rm -f && rm -fr && rm -rf; then : OK; else 3197 cat >&2 <<'END' 3198Oops! 3199 3200Your 'rm' program seems unable to run without file operands specified 3201on the command line, even when the '-f' option is present. This is contrary 3202to the behaviour of most rm programs out there, and not conforming with 3203the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3204 3205Please tell bug-automake@gnu.org about your system, including the value 3206of your $PATH and any error possibly output before this message. This 3207can help us improve future automake versions. 3208 3209END 3210 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3211 echo 'Configuration will proceed anyway, since you have set the' >&2 3212 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3213 echo >&2 3214 else 3215 cat >&2 <<'END' 3216Aborting the configuration process, to ensure you take notice of the issue. 3217 3218You can download and install GNU coreutils to get an 'rm' implementation 3219that behaves properly: <https://www.gnu.org/software/coreutils/>. 3220 3221If you want to complete the configuration process using your problematic 3222'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3223to "yes", and re-run configure. 3224 3225END 3226 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3227 fi 3228fi 3229 3230 3231# Initialize libtool 3232case `pwd` in 3233 *\ * | *\ *) 3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3235printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3236esac 3237 3238 3239 3240macro_version='2.4.7' 3241macro_revision='2.4.7' 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256ltmain=$ac_aux_dir/ltmain.sh 3257 3258 3259 3260 # Make sure we can run config.sub. 3261$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3262 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3263 3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3265printf %s "checking build system type... " >&6; } 3266if test ${ac_cv_build+y} 3267then : 3268 printf %s "(cached) " >&6 3269else $as_nop 3270 ac_build_alias=$build_alias 3271test "x$ac_build_alias" = x && 3272 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3273test "x$ac_build_alias" = x && 3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3275ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3276 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3277 3278fi 3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3280printf "%s\n" "$ac_cv_build" >&6; } 3281case $ac_cv_build in 3282*-*-*) ;; 3283*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3284esac 3285build=$ac_cv_build 3286ac_save_IFS=$IFS; IFS='-' 3287set x $ac_cv_build 3288shift 3289build_cpu=$1 3290build_vendor=$2 3291shift; shift 3292# Remember, the first character of IFS is used to create $*, 3293# except with old shells: 3294build_os=$* 3295IFS=$ac_save_IFS 3296case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3297 3298 3299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3300printf %s "checking host system type... " >&6; } 3301if test ${ac_cv_host+y} 3302then : 3303 printf %s "(cached) " >&6 3304else $as_nop 3305 if test "x$host_alias" = x; then 3306 ac_cv_host=$ac_cv_build 3307else 3308 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3309 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3310fi 3311 3312fi 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3314printf "%s\n" "$ac_cv_host" >&6; } 3315case $ac_cv_host in 3316*-*-*) ;; 3317*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3318esac 3319host=$ac_cv_host 3320ac_save_IFS=$IFS; IFS='-' 3321set x $ac_cv_host 3322shift 3323host_cpu=$1 3324host_vendor=$2 3325shift; shift 3326# Remember, the first character of IFS is used to create $*, 3327# except with old shells: 3328host_os=$* 3329IFS=$ac_save_IFS 3330case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3331 3332 3333# Backslashify metacharacters that are still active within 3334# double-quoted strings. 3335sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3336 3337# Same as above, but do not quote variable references. 3338double_quote_subst='s/\(["`\\]\)/\\\1/g' 3339 3340# Sed substitution to delay expansion of an escaped shell variable in a 3341# double_quote_subst'ed string. 3342delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3343 3344# Sed substitution to delay expansion of an escaped single quote. 3345delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3346 3347# Sed substitution to avoid accidental globbing in evaled expressions 3348no_glob_subst='s/\*/\\\*/g' 3349 3350ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3351ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3352ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3353 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3355printf %s "checking how to print strings... " >&6; } 3356# Test print first, because it will be a builtin if present. 3357if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3358 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3359 ECHO='print -r --' 3360elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3361 ECHO='printf %s\n' 3362else 3363 # Use this function as a fallback that always works. 3364 func_fallback_echo () 3365 { 3366 eval 'cat <<_LTECHO_EOF 3367$1 3368_LTECHO_EOF' 3369 } 3370 ECHO='func_fallback_echo' 3371fi 3372 3373# func_echo_all arg... 3374# Invoke $ECHO with all args, space-separated. 3375func_echo_all () 3376{ 3377 $ECHO "" 3378} 3379 3380case $ECHO in 3381 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3382printf "%s\n" "printf" >&6; } ;; 3383 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3384printf "%s\n" "print -r" >&6; } ;; 3385 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3386printf "%s\n" "cat" >&6; } ;; 3387esac 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411DEPDIR="${am__leading_dot}deps" 3412 3413ac_config_commands="$ac_config_commands depfiles" 3414 3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3416printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3417cat > confinc.mk << 'END' 3418am__doit: 3419 @echo this is the am__doit target >confinc.out 3420.PHONY: am__doit 3421END 3422am__include="#" 3423am__quote= 3424# BSD make does it like this. 3425echo '.include "confinc.mk" # ignored' > confmf.BSD 3426# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3427echo 'include confinc.mk # ignored' > confmf.GNU 3428_am_result=no 3429for s in GNU BSD; do 3430 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3431 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3432 ac_status=$? 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } 3435 case $?:`cat confinc.out 2>/dev/null` in #( 3436 '0:this is the am__doit target') : 3437 case $s in #( 3438 BSD) : 3439 am__include='.include' am__quote='"' ;; #( 3440 *) : 3441 am__include='include' am__quote='' ;; 3442esac ;; #( 3443 *) : 3444 ;; 3445esac 3446 if test "$am__include" != "#"; then 3447 _am_result="yes ($s style)" 3448 break 3449 fi 3450done 3451rm -f confinc.* confmf.* 3452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3453printf "%s\n" "${_am_result}" >&6; } 3454 3455# Check whether --enable-dependency-tracking was given. 3456if test ${enable_dependency_tracking+y} 3457then : 3458 enableval=$enable_dependency_tracking; 3459fi 3460 3461if test "x$enable_dependency_tracking" != xno; then 3462 am_depcomp="$ac_aux_dir/depcomp" 3463 AMDEPBACKSLASH='\' 3464 am__nodep='_no' 3465fi 3466 if test "x$enable_dependency_tracking" != xno; then 3467 AMDEP_TRUE= 3468 AMDEP_FALSE='#' 3469else 3470 AMDEP_TRUE='#' 3471 AMDEP_FALSE= 3472fi 3473 3474 3475ac_ext=c 3476ac_cpp='$CPP $CPPFLAGS' 3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3479ac_compiler_gnu=$ac_cv_c_compiler_gnu 3480if test -n "$ac_tool_prefix"; then 3481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3482set dummy ${ac_tool_prefix}gcc; ac_word=$2 3483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3484printf %s "checking for $ac_word... " >&6; } 3485if test ${ac_cv_prog_CC+y} 3486then : 3487 printf %s "(cached) " >&6 3488else $as_nop 3489 if test -n "$CC"; then 3490 ac_cv_prog_CC="$CC" # Let the user override the test. 3491else 3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493for as_dir in $PATH 3494do 3495 IFS=$as_save_IFS 3496 case $as_dir in #((( 3497 '') as_dir=./ ;; 3498 */) ;; 3499 *) as_dir=$as_dir/ ;; 3500 esac 3501 for ac_exec_ext in '' $ac_executable_extensions; do 3502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3503 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3505 break 2 3506 fi 3507done 3508 done 3509IFS=$as_save_IFS 3510 3511fi 3512fi 3513CC=$ac_cv_prog_CC 3514if test -n "$CC"; then 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3516printf "%s\n" "$CC" >&6; } 3517else 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519printf "%s\n" "no" >&6; } 3520fi 3521 3522 3523fi 3524if test -z "$ac_cv_prog_CC"; then 3525 ac_ct_CC=$CC 3526 # Extract the first word of "gcc", so it can be a program name with args. 3527set dummy gcc; ac_word=$2 3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529printf %s "checking for $ac_word... " >&6; } 3530if test ${ac_cv_prog_ac_ct_CC+y} 3531then : 3532 printf %s "(cached) " >&6 3533else $as_nop 3534 if test -n "$ac_ct_CC"; then 3535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3536else 3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3538for as_dir in $PATH 3539do 3540 IFS=$as_save_IFS 3541 case $as_dir in #((( 3542 '') as_dir=./ ;; 3543 */) ;; 3544 *) as_dir=$as_dir/ ;; 3545 esac 3546 for ac_exec_ext in '' $ac_executable_extensions; do 3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3548 ac_cv_prog_ac_ct_CC="gcc" 3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3550 break 2 3551 fi 3552done 3553 done 3554IFS=$as_save_IFS 3555 3556fi 3557fi 3558ac_ct_CC=$ac_cv_prog_ac_ct_CC 3559if test -n "$ac_ct_CC"; then 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3561printf "%s\n" "$ac_ct_CC" >&6; } 3562else 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3564printf "%s\n" "no" >&6; } 3565fi 3566 3567 if test "x$ac_ct_CC" = x; then 3568 CC="" 3569 else 3570 case $cross_compiling:$ac_tool_warned in 3571yes:) 3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3573printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3574ac_tool_warned=yes ;; 3575esac 3576 CC=$ac_ct_CC 3577 fi 3578else 3579 CC="$ac_cv_prog_CC" 3580fi 3581 3582if test -z "$CC"; then 3583 if test -n "$ac_tool_prefix"; then 3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3585set dummy ${ac_tool_prefix}cc; ac_word=$2 3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3587printf %s "checking for $ac_word... " >&6; } 3588if test ${ac_cv_prog_CC+y} 3589then : 3590 printf %s "(cached) " >&6 3591else $as_nop 3592 if test -n "$CC"; then 3593 ac_cv_prog_CC="$CC" # Let the user override the test. 3594else 3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH 3597do 3598 IFS=$as_save_IFS 3599 case $as_dir in #((( 3600 '') as_dir=./ ;; 3601 */) ;; 3602 *) as_dir=$as_dir/ ;; 3603 esac 3604 for ac_exec_ext in '' $ac_executable_extensions; do 3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3606 ac_cv_prog_CC="${ac_tool_prefix}cc" 3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3608 break 2 3609 fi 3610done 3611 done 3612IFS=$as_save_IFS 3613 3614fi 3615fi 3616CC=$ac_cv_prog_CC 3617if test -n "$CC"; then 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3619printf "%s\n" "$CC" >&6; } 3620else 3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622printf "%s\n" "no" >&6; } 3623fi 3624 3625 3626 fi 3627fi 3628if test -z "$CC"; then 3629 # Extract the first word of "cc", so it can be a program name with args. 3630set dummy cc; ac_word=$2 3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3632printf %s "checking for $ac_word... " >&6; } 3633if test ${ac_cv_prog_CC+y} 3634then : 3635 printf %s "(cached) " >&6 3636else $as_nop 3637 if test -n "$CC"; then 3638 ac_cv_prog_CC="$CC" # Let the user override the test. 3639else 3640 ac_prog_rejected=no 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 case $as_dir in #((( 3646 '') as_dir=./ ;; 3647 */) ;; 3648 *) as_dir=$as_dir/ ;; 3649 esac 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3652 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3653 ac_prog_rejected=yes 3654 continue 3655 fi 3656 ac_cv_prog_CC="cc" 3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661 done 3662IFS=$as_save_IFS 3663 3664if test $ac_prog_rejected = yes; then 3665 # We found a bogon in the path, so make sure we never use it. 3666 set dummy $ac_cv_prog_CC 3667 shift 3668 if test $# != 0; then 3669 # We chose a different compiler from the bogus one. 3670 # However, it has the same basename, so the bogon will be chosen 3671 # first if we set CC to just the basename; use the full file name. 3672 shift 3673 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3674 fi 3675fi 3676fi 3677fi 3678CC=$ac_cv_prog_CC 3679if test -n "$CC"; then 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3681printf "%s\n" "$CC" >&6; } 3682else 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3684printf "%s\n" "no" >&6; } 3685fi 3686 3687 3688fi 3689if test -z "$CC"; then 3690 if test -n "$ac_tool_prefix"; then 3691 for ac_prog in cl.exe 3692 do 3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3694set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3696printf %s "checking for $ac_word... " >&6; } 3697if test ${ac_cv_prog_CC+y} 3698then : 3699 printf %s "(cached) " >&6 3700else $as_nop 3701 if test -n "$CC"; then 3702 ac_cv_prog_CC="$CC" # Let the user override the test. 3703else 3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705for as_dir in $PATH 3706do 3707 IFS=$as_save_IFS 3708 case $as_dir in #((( 3709 '') as_dir=./ ;; 3710 */) ;; 3711 *) as_dir=$as_dir/ ;; 3712 esac 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3717 break 2 3718 fi 3719done 3720 done 3721IFS=$as_save_IFS 3722 3723fi 3724fi 3725CC=$ac_cv_prog_CC 3726if test -n "$CC"; then 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3728printf "%s\n" "$CC" >&6; } 3729else 3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731printf "%s\n" "no" >&6; } 3732fi 3733 3734 3735 test -n "$CC" && break 3736 done 3737fi 3738if test -z "$CC"; then 3739 ac_ct_CC=$CC 3740 for ac_prog in cl.exe 3741do 3742 # Extract the first word of "$ac_prog", so it can be a program name with args. 3743set dummy $ac_prog; ac_word=$2 3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3745printf %s "checking for $ac_word... " >&6; } 3746if test ${ac_cv_prog_ac_ct_CC+y} 3747then : 3748 printf %s "(cached) " >&6 3749else $as_nop 3750 if test -n "$ac_ct_CC"; then 3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3752else 3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3754for as_dir in $PATH 3755do 3756 IFS=$as_save_IFS 3757 case $as_dir in #((( 3758 '') as_dir=./ ;; 3759 */) ;; 3760 *) as_dir=$as_dir/ ;; 3761 esac 3762 for ac_exec_ext in '' $ac_executable_extensions; do 3763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3764 ac_cv_prog_ac_ct_CC="$ac_prog" 3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3766 break 2 3767 fi 3768done 3769 done 3770IFS=$as_save_IFS 3771 3772fi 3773fi 3774ac_ct_CC=$ac_cv_prog_ac_ct_CC 3775if test -n "$ac_ct_CC"; then 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3777printf "%s\n" "$ac_ct_CC" >&6; } 3778else 3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3780printf "%s\n" "no" >&6; } 3781fi 3782 3783 3784 test -n "$ac_ct_CC" && break 3785done 3786 3787 if test "x$ac_ct_CC" = x; then 3788 CC="" 3789 else 3790 case $cross_compiling:$ac_tool_warned in 3791yes:) 3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3794ac_tool_warned=yes ;; 3795esac 3796 CC=$ac_ct_CC 3797 fi 3798fi 3799 3800fi 3801if test -z "$CC"; then 3802 if test -n "$ac_tool_prefix"; then 3803 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3804set dummy ${ac_tool_prefix}clang; ac_word=$2 3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3806printf %s "checking for $ac_word... " >&6; } 3807if test ${ac_cv_prog_CC+y} 3808then : 3809 printf %s "(cached) " >&6 3810else $as_nop 3811 if test -n "$CC"; then 3812 ac_cv_prog_CC="$CC" # Let the user override the test. 3813else 3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815for as_dir in $PATH 3816do 3817 IFS=$as_save_IFS 3818 case $as_dir in #((( 3819 '') as_dir=./ ;; 3820 */) ;; 3821 *) as_dir=$as_dir/ ;; 3822 esac 3823 for ac_exec_ext in '' $ac_executable_extensions; do 3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3825 ac_cv_prog_CC="${ac_tool_prefix}clang" 3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3827 break 2 3828 fi 3829done 3830 done 3831IFS=$as_save_IFS 3832 3833fi 3834fi 3835CC=$ac_cv_prog_CC 3836if test -n "$CC"; then 3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3838printf "%s\n" "$CC" >&6; } 3839else 3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3841printf "%s\n" "no" >&6; } 3842fi 3843 3844 3845fi 3846if test -z "$ac_cv_prog_CC"; then 3847 ac_ct_CC=$CC 3848 # Extract the first word of "clang", so it can be a program name with args. 3849set dummy clang; ac_word=$2 3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3851printf %s "checking for $ac_word... " >&6; } 3852if test ${ac_cv_prog_ac_ct_CC+y} 3853then : 3854 printf %s "(cached) " >&6 3855else $as_nop 3856 if test -n "$ac_ct_CC"; then 3857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3858else 3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860for as_dir in $PATH 3861do 3862 IFS=$as_save_IFS 3863 case $as_dir in #((( 3864 '') as_dir=./ ;; 3865 */) ;; 3866 *) as_dir=$as_dir/ ;; 3867 esac 3868 for ac_exec_ext in '' $ac_executable_extensions; do 3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3870 ac_cv_prog_ac_ct_CC="clang" 3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875 done 3876IFS=$as_save_IFS 3877 3878fi 3879fi 3880ac_ct_CC=$ac_cv_prog_ac_ct_CC 3881if test -n "$ac_ct_CC"; then 3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3883printf "%s\n" "$ac_ct_CC" >&6; } 3884else 3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3886printf "%s\n" "no" >&6; } 3887fi 3888 3889 if test "x$ac_ct_CC" = x; then 3890 CC="" 3891 else 3892 case $cross_compiling:$ac_tool_warned in 3893yes:) 3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3896ac_tool_warned=yes ;; 3897esac 3898 CC=$ac_ct_CC 3899 fi 3900else 3901 CC="$ac_cv_prog_CC" 3902fi 3903 3904fi 3905 3906 3907test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3908printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3909as_fn_error $? "no acceptable C compiler found in \$PATH 3910See \`config.log' for more details" "$LINENO" 5; } 3911 3912# Provide some information about the compiler. 3913printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3914set X $ac_compile 3915ac_compiler=$2 3916for ac_option in --version -v -V -qversion -version; do 3917 { { ac_try="$ac_compiler $ac_option >&5" 3918case "(($ac_try" in 3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3920 *) ac_try_echo=$ac_try;; 3921esac 3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3923printf "%s\n" "$ac_try_echo"; } >&5 3924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3925 ac_status=$? 3926 if test -s conftest.err; then 3927 sed '10a\ 3928... rest of stderr output deleted ... 3929 10q' conftest.err >conftest.er1 3930 cat conftest.er1 >&5 3931 fi 3932 rm -f conftest.er1 conftest.err 3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3934 test $ac_status = 0; } 3935done 3936 3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main (void) 3942{ 3943 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948ac_clean_files_save=$ac_clean_files 3949ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3950# Try to create an executable without -o first, disregard a.out. 3951# It will help us diagnose broken compilers, and finding out an intuition 3952# of exeext. 3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3954printf %s "checking whether the C compiler works... " >&6; } 3955ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3956 3957# The possible output files: 3958ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3959 3960ac_rmfiles= 3961for ac_file in $ac_files 3962do 3963 case $ac_file in 3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3965 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3966 esac 3967done 3968rm -f $ac_rmfiles 3969 3970if { { ac_try="$ac_link_default" 3971case "(($ac_try" in 3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3973 *) ac_try_echo=$ac_try;; 3974esac 3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3976printf "%s\n" "$ac_try_echo"; } >&5 3977 (eval "$ac_link_default") 2>&5 3978 ac_status=$? 3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3980 test $ac_status = 0; } 3981then : 3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3984# in a Makefile. We should not override ac_cv_exeext if it was cached, 3985# so that the user can short-circuit this test for compilers unknown to 3986# Autoconf. 3987for ac_file in $ac_files '' 3988do 3989 test -f "$ac_file" || continue 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3992 ;; 3993 [ab].out ) 3994 # We found the default executable, but exeext='' is most 3995 # certainly right. 3996 break;; 3997 *.* ) 3998 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3999 then :; else 4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4001 fi 4002 # We set ac_cv_exeext here because the later test for it is not 4003 # safe: cross compilers may not add the suffix if given an `-o' 4004 # argument, so we may need to know it at that point already. 4005 # Even if this section looks crufty: it has the advantage of 4006 # actually working. 4007 break;; 4008 * ) 4009 break;; 4010 esac 4011done 4012test "$ac_cv_exeext" = no && ac_cv_exeext= 4013 4014else $as_nop 4015 ac_file='' 4016fi 4017if test -z "$ac_file" 4018then : 4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4020printf "%s\n" "no" >&6; } 4021printf "%s\n" "$as_me: failed program was:" >&5 4022sed 's/^/| /' conftest.$ac_ext >&5 4023 4024{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4025printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4026as_fn_error 77 "C compiler cannot create executables 4027See \`config.log' for more details" "$LINENO" 5; } 4028else $as_nop 4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4030printf "%s\n" "yes" >&6; } 4031fi 4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4033printf %s "checking for C compiler default output file name... " >&6; } 4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4035printf "%s\n" "$ac_file" >&6; } 4036ac_exeext=$ac_cv_exeext 4037 4038rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4039ac_clean_files=$ac_clean_files_save 4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4041printf %s "checking for suffix of executables... " >&6; } 4042if { { ac_try="$ac_link" 4043case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046esac 4047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4048printf "%s\n" "$ac_try_echo"; } >&5 4049 (eval "$ac_link") 2>&5 4050 ac_status=$? 4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4052 test $ac_status = 0; } 4053then : 4054 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4055# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4056# work properly (i.e., refer to `conftest.exe'), while it won't with 4057# `rm'. 4058for ac_file in conftest.exe conftest conftest.*; do 4059 test -f "$ac_file" || continue 4060 case $ac_file in 4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4063 break;; 4064 * ) break;; 4065 esac 4066done 4067else $as_nop 4068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4069printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4070as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4071See \`config.log' for more details" "$LINENO" 5; } 4072fi 4073rm -f conftest conftest$ac_cv_exeext 4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4075printf "%s\n" "$ac_cv_exeext" >&6; } 4076 4077rm -f conftest.$ac_ext 4078EXEEXT=$ac_cv_exeext 4079ac_exeext=$EXEEXT 4080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4081/* end confdefs.h. */ 4082#include <stdio.h> 4083int 4084main (void) 4085{ 4086FILE *f = fopen ("conftest.out", "w"); 4087 return ferror (f) || fclose (f) != 0; 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093ac_clean_files="$ac_clean_files conftest.out" 4094# Check that the compiler produces executables we can run. If not, either 4095# the compiler is broken, or we cross compile. 4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4097printf %s "checking whether we are cross compiling... " >&6; } 4098if test "$cross_compiling" != yes; then 4099 { { ac_try="$ac_link" 4100case "(($ac_try" in 4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4102 *) ac_try_echo=$ac_try;; 4103esac 4104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4105printf "%s\n" "$ac_try_echo"; } >&5 4106 (eval "$ac_link") 2>&5 4107 ac_status=$? 4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4109 test $ac_status = 0; } 4110 if { ac_try='./conftest$ac_cv_exeext' 4111 { { case "(($ac_try" in 4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4113 *) ac_try_echo=$ac_try;; 4114esac 4115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4116printf "%s\n" "$ac_try_echo"; } >&5 4117 (eval "$ac_try") 2>&5 4118 ac_status=$? 4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4120 test $ac_status = 0; }; }; then 4121 cross_compiling=no 4122 else 4123 if test "$cross_compiling" = maybe; then 4124 cross_compiling=yes 4125 else 4126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4127printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4128as_fn_error 77 "cannot run C compiled programs. 4129If you meant to cross compile, use \`--host'. 4130See \`config.log' for more details" "$LINENO" 5; } 4131 fi 4132 fi 4133fi 4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4135printf "%s\n" "$cross_compiling" >&6; } 4136 4137rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4138ac_clean_files=$ac_clean_files_save 4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4140printf %s "checking for suffix of object files... " >&6; } 4141if test ${ac_cv_objext+y} 4142then : 4143 printf %s "(cached) " >&6 4144else $as_nop 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147 4148int 4149main (void) 4150{ 4151 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156rm -f conftest.o conftest.obj 4157if { { ac_try="$ac_compile" 4158case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4163printf "%s\n" "$ac_try_echo"; } >&5 4164 (eval "$ac_compile") 2>&5 4165 ac_status=$? 4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4167 test $ac_status = 0; } 4168then : 4169 for ac_file in conftest.o conftest.obj conftest.*; do 4170 test -f "$ac_file" || continue; 4171 case $ac_file in 4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4174 break;; 4175 esac 4176done 4177else $as_nop 4178 printf "%s\n" "$as_me: failed program was:" >&5 4179sed 's/^/| /' conftest.$ac_ext >&5 4180 4181{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4182printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4183as_fn_error $? "cannot compute suffix of object files: cannot compile 4184See \`config.log' for more details" "$LINENO" 5; } 4185fi 4186rm -f conftest.$ac_cv_objext conftest.$ac_ext 4187fi 4188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4189printf "%s\n" "$ac_cv_objext" >&6; } 4190OBJEXT=$ac_cv_objext 4191ac_objext=$OBJEXT 4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4193printf %s "checking whether the compiler supports GNU C... " >&6; } 4194if test ${ac_cv_c_compiler_gnu+y} 4195then : 4196 printf %s "(cached) " >&6 4197else $as_nop 4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200 4201int 4202main (void) 4203{ 4204#ifndef __GNUC__ 4205 choke me 4206#endif 4207 4208 ; 4209 return 0; 4210} 4211_ACEOF 4212if ac_fn_c_try_compile "$LINENO" 4213then : 4214 ac_compiler_gnu=yes 4215else $as_nop 4216 ac_compiler_gnu=no 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4219ac_cv_c_compiler_gnu=$ac_compiler_gnu 4220 4221fi 4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4223printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4224ac_compiler_gnu=$ac_cv_c_compiler_gnu 4225 4226if test $ac_compiler_gnu = yes; then 4227 GCC=yes 4228else 4229 GCC= 4230fi 4231ac_test_CFLAGS=${CFLAGS+y} 4232ac_save_CFLAGS=$CFLAGS 4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4234printf %s "checking whether $CC accepts -g... " >&6; } 4235if test ${ac_cv_prog_cc_g+y} 4236then : 4237 printf %s "(cached) " >&6 4238else $as_nop 4239 ac_save_c_werror_flag=$ac_c_werror_flag 4240 ac_c_werror_flag=yes 4241 ac_cv_prog_cc_g=no 4242 CFLAGS="-g" 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245 4246int 4247main (void) 4248{ 4249 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254if ac_fn_c_try_compile "$LINENO" 4255then : 4256 ac_cv_prog_cc_g=yes 4257else $as_nop 4258 CFLAGS="" 4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261 4262int 4263main (void) 4264{ 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270if ac_fn_c_try_compile "$LINENO" 4271then : 4272 4273else $as_nop 4274 ac_c_werror_flag=$ac_save_c_werror_flag 4275 CFLAGS="-g" 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278 4279int 4280main (void) 4281{ 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287if ac_fn_c_try_compile "$LINENO" 4288then : 4289 ac_cv_prog_cc_g=yes 4290fi 4291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4294fi 4295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4296 ac_c_werror_flag=$ac_save_c_werror_flag 4297fi 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4299printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4300if test $ac_test_CFLAGS; then 4301 CFLAGS=$ac_save_CFLAGS 4302elif test $ac_cv_prog_cc_g = yes; then 4303 if test "$GCC" = yes; then 4304 CFLAGS="-g -O2" 4305 else 4306 CFLAGS="-g" 4307 fi 4308else 4309 if test "$GCC" = yes; then 4310 CFLAGS="-O2" 4311 else 4312 CFLAGS= 4313 fi 4314fi 4315ac_prog_cc_stdc=no 4316if test x$ac_prog_cc_stdc = xno 4317then : 4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4319printf %s "checking for $CC option to enable C11 features... " >&6; } 4320if test ${ac_cv_prog_cc_c11+y} 4321then : 4322 printf %s "(cached) " >&6 4323else $as_nop 4324 ac_cv_prog_cc_c11=no 4325ac_save_CC=$CC 4326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4327/* end confdefs.h. */ 4328$ac_c_conftest_c11_program 4329_ACEOF 4330for ac_arg in '' -std=gnu11 4331do 4332 CC="$ac_save_CC $ac_arg" 4333 if ac_fn_c_try_compile "$LINENO" 4334then : 4335 ac_cv_prog_cc_c11=$ac_arg 4336fi 4337rm -f core conftest.err conftest.$ac_objext conftest.beam 4338 test "x$ac_cv_prog_cc_c11" != "xno" && break 4339done 4340rm -f conftest.$ac_ext 4341CC=$ac_save_CC 4342fi 4343 4344if test "x$ac_cv_prog_cc_c11" = xno 4345then : 4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4347printf "%s\n" "unsupported" >&6; } 4348else $as_nop 4349 if test "x$ac_cv_prog_cc_c11" = x 4350then : 4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4352printf "%s\n" "none needed" >&6; } 4353else $as_nop 4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4355printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4356 CC="$CC $ac_cv_prog_cc_c11" 4357fi 4358 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4359 ac_prog_cc_stdc=c11 4360fi 4361fi 4362if test x$ac_prog_cc_stdc = xno 4363then : 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4365printf %s "checking for $CC option to enable C99 features... " >&6; } 4366if test ${ac_cv_prog_cc_c99+y} 4367then : 4368 printf %s "(cached) " >&6 4369else $as_nop 4370 ac_cv_prog_cc_c99=no 4371ac_save_CC=$CC 4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374$ac_c_conftest_c99_program 4375_ACEOF 4376for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4377do 4378 CC="$ac_save_CC $ac_arg" 4379 if ac_fn_c_try_compile "$LINENO" 4380then : 4381 ac_cv_prog_cc_c99=$ac_arg 4382fi 4383rm -f core conftest.err conftest.$ac_objext conftest.beam 4384 test "x$ac_cv_prog_cc_c99" != "xno" && break 4385done 4386rm -f conftest.$ac_ext 4387CC=$ac_save_CC 4388fi 4389 4390if test "x$ac_cv_prog_cc_c99" = xno 4391then : 4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4393printf "%s\n" "unsupported" >&6; } 4394else $as_nop 4395 if test "x$ac_cv_prog_cc_c99" = x 4396then : 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4398printf "%s\n" "none needed" >&6; } 4399else $as_nop 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4401printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4402 CC="$CC $ac_cv_prog_cc_c99" 4403fi 4404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4405 ac_prog_cc_stdc=c99 4406fi 4407fi 4408if test x$ac_prog_cc_stdc = xno 4409then : 4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4411printf %s "checking for $CC option to enable C89 features... " >&6; } 4412if test ${ac_cv_prog_cc_c89+y} 4413then : 4414 printf %s "(cached) " >&6 4415else $as_nop 4416 ac_cv_prog_cc_c89=no 4417ac_save_CC=$CC 4418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420$ac_c_conftest_c89_program 4421_ACEOF 4422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4423do 4424 CC="$ac_save_CC $ac_arg" 4425 if ac_fn_c_try_compile "$LINENO" 4426then : 4427 ac_cv_prog_cc_c89=$ac_arg 4428fi 4429rm -f core conftest.err conftest.$ac_objext conftest.beam 4430 test "x$ac_cv_prog_cc_c89" != "xno" && break 4431done 4432rm -f conftest.$ac_ext 4433CC=$ac_save_CC 4434fi 4435 4436if test "x$ac_cv_prog_cc_c89" = xno 4437then : 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4439printf "%s\n" "unsupported" >&6; } 4440else $as_nop 4441 if test "x$ac_cv_prog_cc_c89" = x 4442then : 4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4444printf "%s\n" "none needed" >&6; } 4445else $as_nop 4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4447printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4448 CC="$CC $ac_cv_prog_cc_c89" 4449fi 4450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4451 ac_prog_cc_stdc=c89 4452fi 4453fi 4454 4455ac_ext=c 4456ac_cpp='$CPP $CPPFLAGS' 4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4459ac_compiler_gnu=$ac_cv_c_compiler_gnu 4460 4461 4462 ac_ext=c 4463ac_cpp='$CPP $CPPFLAGS' 4464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4466ac_compiler_gnu=$ac_cv_c_compiler_gnu 4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4468printf %s "checking whether $CC understands -c and -o together... " >&6; } 4469if test ${am_cv_prog_cc_c_o+y} 4470then : 4471 printf %s "(cached) " >&6 4472else $as_nop 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475 4476int 4477main (void) 4478{ 4479 4480 ; 4481 return 0; 4482} 4483_ACEOF 4484 # Make sure it works both with $CC and with simple cc. 4485 # Following AC_PROG_CC_C_O, we do the test twice because some 4486 # compilers refuse to overwrite an existing .o file with -o, 4487 # though they will create one. 4488 am_cv_prog_cc_c_o=yes 4489 for am_i in 1 2; do 4490 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4491 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4492 ac_status=$? 4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4494 (exit $ac_status); } \ 4495 && test -f conftest2.$ac_objext; then 4496 : OK 4497 else 4498 am_cv_prog_cc_c_o=no 4499 break 4500 fi 4501 done 4502 rm -f core conftest* 4503 unset am_i 4504fi 4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4506printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4507if test "$am_cv_prog_cc_c_o" != yes; then 4508 # Losing compiler, so override with the script. 4509 # FIXME: It is wrong to rewrite CC. 4510 # But if we don't then we get into trouble of one sort or another. 4511 # A longer-term fix would be to have automake use am__CC in this case, 4512 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4513 CC="$am_aux_dir/compile $CC" 4514fi 4515ac_ext=c 4516ac_cpp='$CPP $CPPFLAGS' 4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4519ac_compiler_gnu=$ac_cv_c_compiler_gnu 4520 4521 4522depcc="$CC" am_compiler_list= 4523 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4525printf %s "checking dependency style of $depcc... " >&6; } 4526if test ${am_cv_CC_dependencies_compiler_type+y} 4527then : 4528 printf %s "(cached) " >&6 4529else $as_nop 4530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4531 # We make a subdir and do the tests there. Otherwise we can end up 4532 # making bogus files that we don't know about and never remove. For 4533 # instance it was reported that on HP-UX the gcc test will end up 4534 # making a dummy file named 'D' -- because '-MD' means "put the output 4535 # in D". 4536 rm -rf conftest.dir 4537 mkdir conftest.dir 4538 # Copy depcomp to subdir because otherwise we won't find it if we're 4539 # using a relative directory. 4540 cp "$am_depcomp" conftest.dir 4541 cd conftest.dir 4542 # We will build objects and dependencies in a subdirectory because 4543 # it helps to detect inapplicable dependency modes. For instance 4544 # both Tru64's cc and ICC support -MD to output dependencies as a 4545 # side effect of compilation, but ICC will put the dependencies in 4546 # the current directory while Tru64 will put them in the object 4547 # directory. 4548 mkdir sub 4549 4550 am_cv_CC_dependencies_compiler_type=none 4551 if test "$am_compiler_list" = ""; then 4552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4553 fi 4554 am__universal=false 4555 case " $depcc " in #( 4556 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4557 esac 4558 4559 for depmode in $am_compiler_list; do 4560 # Setup a source with many dependencies, because some compilers 4561 # like to wrap large dependency lists on column 80 (with \), and 4562 # we should not choose a depcomp mode which is confused by this. 4563 # 4564 # We need to recreate these files for each test, as the compiler may 4565 # overwrite some of them when testing with obscure command lines. 4566 # This happens at least with the AIX C compiler. 4567 : > sub/conftest.c 4568 for i in 1 2 3 4 5 6; do 4569 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4570 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4571 # Solaris 10 /bin/sh. 4572 echo '/* dummy */' > sub/conftst$i.h 4573 done 4574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4575 4576 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4577 # mode. It turns out that the SunPro C++ compiler does not properly 4578 # handle '-M -o', and we need to detect this. Also, some Intel 4579 # versions had trouble with output in subdirs. 4580 am__obj=sub/conftest.${OBJEXT-o} 4581 am__minus_obj="-o $am__obj" 4582 case $depmode in 4583 gcc) 4584 # This depmode causes a compiler race in universal mode. 4585 test "$am__universal" = false || continue 4586 ;; 4587 nosideeffect) 4588 # After this tag, mechanisms are not by side-effect, so they'll 4589 # only be used when explicitly requested. 4590 if test "x$enable_dependency_tracking" = xyes; then 4591 continue 4592 else 4593 break 4594 fi 4595 ;; 4596 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4597 # This compiler won't grok '-c -o', but also, the minuso test has 4598 # not run yet. These depmodes are late enough in the game, and 4599 # so weak that their functioning should not be impacted. 4600 am__obj=conftest.${OBJEXT-o} 4601 am__minus_obj= 4602 ;; 4603 none) break ;; 4604 esac 4605 if depmode=$depmode \ 4606 source=sub/conftest.c object=$am__obj \ 4607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4609 >/dev/null 2>conftest.err && 4610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4614 # icc doesn't choke on unknown options, it will just issue warnings 4615 # or remarks (even with -Werror). So we grep stderr for any message 4616 # that says an option was ignored or not supported. 4617 # When given -MP, icc 7.0 and 7.1 complain thusly: 4618 # icc: Command line warning: ignoring option '-M'; no argument required 4619 # The diagnosis changed in icc 8.0: 4620 # icc: Command line remark: option '-MP' not supported 4621 if (grep 'ignoring option' conftest.err || 4622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4623 am_cv_CC_dependencies_compiler_type=$depmode 4624 break 4625 fi 4626 fi 4627 done 4628 4629 cd .. 4630 rm -rf conftest.dir 4631else 4632 am_cv_CC_dependencies_compiler_type=none 4633fi 4634 4635fi 4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4637printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4638CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4639 4640 if 4641 test "x$enable_dependency_tracking" != xno \ 4642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4643 am__fastdepCC_TRUE= 4644 am__fastdepCC_FALSE='#' 4645else 4646 am__fastdepCC_TRUE='#' 4647 am__fastdepCC_FALSE= 4648fi 4649 4650 4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4652printf %s "checking for a sed that does not truncate output... " >&6; } 4653if test ${ac_cv_path_SED+y} 4654then : 4655 printf %s "(cached) " >&6 4656else $as_nop 4657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4658 for ac_i in 1 2 3 4 5 6 7; do 4659 ac_script="$ac_script$as_nl$ac_script" 4660 done 4661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4662 { ac_script=; unset ac_script;} 4663 if test -z "$SED"; then 4664 ac_path_SED_found=false 4665 # Loop through the user's path and test for each of PROGNAME-LIST 4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 case $as_dir in #((( 4671 '') as_dir=./ ;; 4672 */) ;; 4673 *) as_dir=$as_dir/ ;; 4674 esac 4675 for ac_prog in sed gsed 4676 do 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4679 as_fn_executable_p "$ac_path_SED" || continue 4680# Check for GNU ac_path_SED and select it if it is found. 4681 # Check for GNU $ac_path_SED 4682case `"$ac_path_SED" --version 2>&1` in 4683*GNU*) 4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4685*) 4686 ac_count=0 4687 printf %s 0123456789 >"conftest.in" 4688 while : 4689 do 4690 cat "conftest.in" "conftest.in" >"conftest.tmp" 4691 mv "conftest.tmp" "conftest.in" 4692 cp "conftest.in" "conftest.nl" 4693 printf "%s\n" '' >> "conftest.nl" 4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4696 as_fn_arith $ac_count + 1 && ac_count=$as_val 4697 if test $ac_count -gt ${ac_path_SED_max-0}; then 4698 # Best one so far, save it but keep looking for a better one 4699 ac_cv_path_SED="$ac_path_SED" 4700 ac_path_SED_max=$ac_count 4701 fi 4702 # 10*(2^10) chars as input seems more than enough 4703 test $ac_count -gt 10 && break 4704 done 4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4706esac 4707 4708 $ac_path_SED_found && break 3 4709 done 4710 done 4711 done 4712IFS=$as_save_IFS 4713 if test -z "$ac_cv_path_SED"; then 4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4715 fi 4716else 4717 ac_cv_path_SED=$SED 4718fi 4719 4720fi 4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4722printf "%s\n" "$ac_cv_path_SED" >&6; } 4723 SED="$ac_cv_path_SED" 4724 rm -f conftest.sed 4725 4726test -z "$SED" && SED=sed 4727Xsed="$SED -e 1s/^X//" 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4740printf %s "checking for grep that handles long lines and -e... " >&6; } 4741if test ${ac_cv_path_GREP+y} 4742then : 4743 printf %s "(cached) " >&6 4744else $as_nop 4745 if test -z "$GREP"; then 4746 ac_path_GREP_found=false 4747 # Loop through the user's path and test for each of PROGNAME-LIST 4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4750do 4751 IFS=$as_save_IFS 4752 case $as_dir in #((( 4753 '') as_dir=./ ;; 4754 */) ;; 4755 *) as_dir=$as_dir/ ;; 4756 esac 4757 for ac_prog in grep ggrep 4758 do 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4761 as_fn_executable_p "$ac_path_GREP" || continue 4762# Check for GNU ac_path_GREP and select it if it is found. 4763 # Check for GNU $ac_path_GREP 4764case `"$ac_path_GREP" --version 2>&1` in 4765*GNU*) 4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4767*) 4768 ac_count=0 4769 printf %s 0123456789 >"conftest.in" 4770 while : 4771 do 4772 cat "conftest.in" "conftest.in" >"conftest.tmp" 4773 mv "conftest.tmp" "conftest.in" 4774 cp "conftest.in" "conftest.nl" 4775 printf "%s\n" 'GREP' >> "conftest.nl" 4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4778 as_fn_arith $ac_count + 1 && ac_count=$as_val 4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4780 # Best one so far, save it but keep looking for a better one 4781 ac_cv_path_GREP="$ac_path_GREP" 4782 ac_path_GREP_max=$ac_count 4783 fi 4784 # 10*(2^10) chars as input seems more than enough 4785 test $ac_count -gt 10 && break 4786 done 4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4788esac 4789 4790 $ac_path_GREP_found && break 3 4791 done 4792 done 4793 done 4794IFS=$as_save_IFS 4795 if test -z "$ac_cv_path_GREP"; then 4796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4797 fi 4798else 4799 ac_cv_path_GREP=$GREP 4800fi 4801 4802fi 4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4804printf "%s\n" "$ac_cv_path_GREP" >&6; } 4805 GREP="$ac_cv_path_GREP" 4806 4807 4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4809printf %s "checking for egrep... " >&6; } 4810if test ${ac_cv_path_EGREP+y} 4811then : 4812 printf %s "(cached) " >&6 4813else $as_nop 4814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4815 then ac_cv_path_EGREP="$GREP -E" 4816 else 4817 if test -z "$EGREP"; then 4818 ac_path_EGREP_found=false 4819 # Loop through the user's path and test for each of PROGNAME-LIST 4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4821for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4822do 4823 IFS=$as_save_IFS 4824 case $as_dir in #((( 4825 '') as_dir=./ ;; 4826 */) ;; 4827 *) as_dir=$as_dir/ ;; 4828 esac 4829 for ac_prog in egrep 4830 do 4831 for ac_exec_ext in '' $ac_executable_extensions; do 4832 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4833 as_fn_executable_p "$ac_path_EGREP" || continue 4834# Check for GNU ac_path_EGREP and select it if it is found. 4835 # Check for GNU $ac_path_EGREP 4836case `"$ac_path_EGREP" --version 2>&1` in 4837*GNU*) 4838 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4839*) 4840 ac_count=0 4841 printf %s 0123456789 >"conftest.in" 4842 while : 4843 do 4844 cat "conftest.in" "conftest.in" >"conftest.tmp" 4845 mv "conftest.tmp" "conftest.in" 4846 cp "conftest.in" "conftest.nl" 4847 printf "%s\n" 'EGREP' >> "conftest.nl" 4848 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4850 as_fn_arith $ac_count + 1 && ac_count=$as_val 4851 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4852 # Best one so far, save it but keep looking for a better one 4853 ac_cv_path_EGREP="$ac_path_EGREP" 4854 ac_path_EGREP_max=$ac_count 4855 fi 4856 # 10*(2^10) chars as input seems more than enough 4857 test $ac_count -gt 10 && break 4858 done 4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4860esac 4861 4862 $ac_path_EGREP_found && break 3 4863 done 4864 done 4865 done 4866IFS=$as_save_IFS 4867 if test -z "$ac_cv_path_EGREP"; then 4868 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4869 fi 4870else 4871 ac_cv_path_EGREP=$EGREP 4872fi 4873 4874 fi 4875fi 4876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4877printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4878 EGREP="$ac_cv_path_EGREP" 4879 4880 4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4882printf %s "checking for fgrep... " >&6; } 4883if test ${ac_cv_path_FGREP+y} 4884then : 4885 printf %s "(cached) " >&6 4886else $as_nop 4887 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4888 then ac_cv_path_FGREP="$GREP -F" 4889 else 4890 if test -z "$FGREP"; then 4891 ac_path_FGREP_found=false 4892 # Loop through the user's path and test for each of PROGNAME-LIST 4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4895do 4896 IFS=$as_save_IFS 4897 case $as_dir in #((( 4898 '') as_dir=./ ;; 4899 */) ;; 4900 *) as_dir=$as_dir/ ;; 4901 esac 4902 for ac_prog in fgrep 4903 do 4904 for ac_exec_ext in '' $ac_executable_extensions; do 4905 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4906 as_fn_executable_p "$ac_path_FGREP" || continue 4907# Check for GNU ac_path_FGREP and select it if it is found. 4908 # Check for GNU $ac_path_FGREP 4909case `"$ac_path_FGREP" --version 2>&1` in 4910*GNU*) 4911 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4912*) 4913 ac_count=0 4914 printf %s 0123456789 >"conftest.in" 4915 while : 4916 do 4917 cat "conftest.in" "conftest.in" >"conftest.tmp" 4918 mv "conftest.tmp" "conftest.in" 4919 cp "conftest.in" "conftest.nl" 4920 printf "%s\n" 'FGREP' >> "conftest.nl" 4921 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4923 as_fn_arith $ac_count + 1 && ac_count=$as_val 4924 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4925 # Best one so far, save it but keep looking for a better one 4926 ac_cv_path_FGREP="$ac_path_FGREP" 4927 ac_path_FGREP_max=$ac_count 4928 fi 4929 # 10*(2^10) chars as input seems more than enough 4930 test $ac_count -gt 10 && break 4931 done 4932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4933esac 4934 4935 $ac_path_FGREP_found && break 3 4936 done 4937 done 4938 done 4939IFS=$as_save_IFS 4940 if test -z "$ac_cv_path_FGREP"; then 4941 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4942 fi 4943else 4944 ac_cv_path_FGREP=$FGREP 4945fi 4946 4947 fi 4948fi 4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4950printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4951 FGREP="$ac_cv_path_FGREP" 4952 4953 4954test -z "$GREP" && GREP=grep 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974# Check whether --with-gnu-ld was given. 4975if test ${with_gnu_ld+y} 4976then : 4977 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4978else $as_nop 4979 with_gnu_ld=no 4980fi 4981 4982ac_prog=ld 4983if test yes = "$GCC"; then 4984 # Check if gcc -print-prog-name=ld gives a path. 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4986printf %s "checking for ld used by $CC... " >&6; } 4987 case $host in 4988 *-*-mingw*) 4989 # gcc leaves a trailing carriage return, which upsets mingw 4990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4991 *) 4992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4993 esac 4994 case $ac_prog in 4995 # Accept absolute paths. 4996 [\\/]* | ?:[\\/]*) 4997 re_direlt='/[^/][^/]*/\.\./' 4998 # Canonicalize the pathname of ld 4999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5002 done 5003 test -z "$LD" && LD=$ac_prog 5004 ;; 5005 "") 5006 # If it fails, then pretend we aren't using GCC. 5007 ac_prog=ld 5008 ;; 5009 *) 5010 # If it is relative, then search for the first ld in PATH. 5011 with_gnu_ld=unknown 5012 ;; 5013 esac 5014elif test yes = "$with_gnu_ld"; then 5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5016printf %s "checking for GNU ld... " >&6; } 5017else 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5019printf %s "checking for non-GNU ld... " >&6; } 5020fi 5021if test ${lt_cv_path_LD+y} 5022then : 5023 printf %s "(cached) " >&6 5024else $as_nop 5025 if test -z "$LD"; then 5026 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5027 for ac_dir in $PATH; do 5028 IFS=$lt_save_ifs 5029 test -z "$ac_dir" && ac_dir=. 5030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5031 lt_cv_path_LD=$ac_dir/$ac_prog 5032 # Check to see if the program is GNU ld. I'd rather use --version, 5033 # but apparently some variants of GNU ld only accept -v. 5034 # Break only if it was the GNU/non-GNU ld that we prefer. 5035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5036 *GNU* | *'with BFD'*) 5037 test no != "$with_gnu_ld" && break 5038 ;; 5039 *) 5040 test yes != "$with_gnu_ld" && break 5041 ;; 5042 esac 5043 fi 5044 done 5045 IFS=$lt_save_ifs 5046else 5047 lt_cv_path_LD=$LD # Let the user override the test with a path. 5048fi 5049fi 5050 5051LD=$lt_cv_path_LD 5052if test -n "$LD"; then 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5054printf "%s\n" "$LD" >&6; } 5055else 5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5057printf "%s\n" "no" >&6; } 5058fi 5059test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5061printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5062if test ${lt_cv_prog_gnu_ld+y} 5063then : 5064 printf %s "(cached) " >&6 5065else $as_nop 5066 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5067case `$LD -v 2>&1 </dev/null` in 5068*GNU* | *'with BFD'*) 5069 lt_cv_prog_gnu_ld=yes 5070 ;; 5071*) 5072 lt_cv_prog_gnu_ld=no 5073 ;; 5074esac 5075fi 5076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5077printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5078with_gnu_ld=$lt_cv_prog_gnu_ld 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5089printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5090if test ${lt_cv_path_NM+y} 5091then : 5092 printf %s "(cached) " >&6 5093else $as_nop 5094 if test -n "$NM"; then 5095 # Let the user override the test. 5096 lt_cv_path_NM=$NM 5097else 5098 lt_nm_to_check=${ac_tool_prefix}nm 5099 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5100 lt_nm_to_check="$lt_nm_to_check nm" 5101 fi 5102 for lt_tmp_nm in $lt_nm_to_check; do 5103 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5105 IFS=$lt_save_ifs 5106 test -z "$ac_dir" && ac_dir=. 5107 tmp_nm=$ac_dir/$lt_tmp_nm 5108 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5109 # Check to see if the nm accepts a BSD-compat flag. 5110 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5111 # nm: unknown option "B" ignored 5112 # Tru64's nm complains that /dev/null is an invalid object file 5113 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5114 case $build_os in 5115 mingw*) lt_bad_file=conftest.nm/nofile ;; 5116 *) lt_bad_file=/dev/null ;; 5117 esac 5118 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5119 *$lt_bad_file* | *'Invalid file or object type'*) 5120 lt_cv_path_NM="$tmp_nm -B" 5121 break 2 5122 ;; 5123 *) 5124 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5125 */dev/null*) 5126 lt_cv_path_NM="$tmp_nm -p" 5127 break 2 5128 ;; 5129 *) 5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5131 continue # so that we can try to find one that supports BSD flags 5132 ;; 5133 esac 5134 ;; 5135 esac 5136 fi 5137 done 5138 IFS=$lt_save_ifs 5139 done 5140 : ${lt_cv_path_NM=no} 5141fi 5142fi 5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5144printf "%s\n" "$lt_cv_path_NM" >&6; } 5145if test no != "$lt_cv_path_NM"; then 5146 NM=$lt_cv_path_NM 5147else 5148 # Didn't find any BSD compatible name lister, look for dumpbin. 5149 if test -n "$DUMPBIN"; then : 5150 # Let the user override the test. 5151 else 5152 if test -n "$ac_tool_prefix"; then 5153 for ac_prog in dumpbin "link -dump" 5154 do 5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5156set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158printf %s "checking for $ac_word... " >&6; } 5159if test ${ac_cv_prog_DUMPBIN+y} 5160then : 5161 printf %s "(cached) " >&6 5162else $as_nop 5163 if test -n "$DUMPBIN"; then 5164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5165else 5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5167for as_dir in $PATH 5168do 5169 IFS=$as_save_IFS 5170 case $as_dir in #((( 5171 '') as_dir=./ ;; 5172 */) ;; 5173 *) as_dir=$as_dir/ ;; 5174 esac 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5179 break 2 5180 fi 5181done 5182 done 5183IFS=$as_save_IFS 5184 5185fi 5186fi 5187DUMPBIN=$ac_cv_prog_DUMPBIN 5188if test -n "$DUMPBIN"; then 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5190printf "%s\n" "$DUMPBIN" >&6; } 5191else 5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193printf "%s\n" "no" >&6; } 5194fi 5195 5196 5197 test -n "$DUMPBIN" && break 5198 done 5199fi 5200if test -z "$DUMPBIN"; then 5201 ac_ct_DUMPBIN=$DUMPBIN 5202 for ac_prog in dumpbin "link -dump" 5203do 5204 # Extract the first word of "$ac_prog", so it can be a program name with args. 5205set dummy $ac_prog; ac_word=$2 5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5207printf %s "checking for $ac_word... " >&6; } 5208if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5209then : 5210 printf %s "(cached) " >&6 5211else $as_nop 5212 if test -n "$ac_ct_DUMPBIN"; then 5213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5214else 5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216for as_dir in $PATH 5217do 5218 IFS=$as_save_IFS 5219 case $as_dir in #((( 5220 '') as_dir=./ ;; 5221 */) ;; 5222 *) as_dir=$as_dir/ ;; 5223 esac 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5226 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5228 break 2 5229 fi 5230done 5231 done 5232IFS=$as_save_IFS 5233 5234fi 5235fi 5236ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5237if test -n "$ac_ct_DUMPBIN"; then 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5239printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5240else 5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5242printf "%s\n" "no" >&6; } 5243fi 5244 5245 5246 test -n "$ac_ct_DUMPBIN" && break 5247done 5248 5249 if test "x$ac_ct_DUMPBIN" = x; then 5250 DUMPBIN=":" 5251 else 5252 case $cross_compiling:$ac_tool_warned in 5253yes:) 5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5255printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5256ac_tool_warned=yes ;; 5257esac 5258 DUMPBIN=$ac_ct_DUMPBIN 5259 fi 5260fi 5261 5262 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5263 *COFF*) 5264 DUMPBIN="$DUMPBIN -symbols -headers" 5265 ;; 5266 *) 5267 DUMPBIN=: 5268 ;; 5269 esac 5270 fi 5271 5272 if test : != "$DUMPBIN"; then 5273 NM=$DUMPBIN 5274 fi 5275fi 5276test -z "$NM" && NM=nm 5277 5278 5279 5280 5281 5282 5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5284printf %s "checking the name lister ($NM) interface... " >&6; } 5285if test ${lt_cv_nm_interface+y} 5286then : 5287 printf %s "(cached) " >&6 5288else $as_nop 5289 lt_cv_nm_interface="BSD nm" 5290 echo "int some_variable = 0;" > conftest.$ac_ext 5291 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5292 (eval "$ac_compile" 2>conftest.err) 5293 cat conftest.err >&5 5294 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5296 cat conftest.err >&5 5297 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5298 cat conftest.out >&5 5299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5300 lt_cv_nm_interface="MS dumpbin" 5301 fi 5302 rm -f conftest* 5303fi 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5305printf "%s\n" "$lt_cv_nm_interface" >&6; } 5306 5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5308printf %s "checking whether ln -s works... " >&6; } 5309LN_S=$as_ln_s 5310if test "$LN_S" = "ln -s"; then 5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5312printf "%s\n" "yes" >&6; } 5313else 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5315printf "%s\n" "no, using $LN_S" >&6; } 5316fi 5317 5318# find the maximum length of command line arguments 5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5320printf %s "checking the maximum length of command line arguments... " >&6; } 5321if test ${lt_cv_sys_max_cmd_len+y} 5322then : 5323 printf %s "(cached) " >&6 5324else $as_nop 5325 i=0 5326 teststring=ABCD 5327 5328 case $build_os in 5329 msdosdjgpp*) 5330 # On DJGPP, this test can blow up pretty badly due to problems in libc 5331 # (any single argument exceeding 2000 bytes causes a buffer overrun 5332 # during glob expansion). Even if it were fixed, the result of this 5333 # check would be larger than it should be. 5334 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5335 ;; 5336 5337 gnu*) 5338 # Under GNU Hurd, this test is not required because there is 5339 # no limit to the length of command line arguments. 5340 # Libtool will interpret -1 as no limit whatsoever 5341 lt_cv_sys_max_cmd_len=-1; 5342 ;; 5343 5344 cygwin* | mingw* | cegcc*) 5345 # On Win9x/ME, this test blows up -- it succeeds, but takes 5346 # about 5 minutes as the teststring grows exponentially. 5347 # Worse, since 9x/ME are not pre-emptively multitasking, 5348 # you end up with a "frozen" computer, even though with patience 5349 # the test eventually succeeds (with a max line length of 256k). 5350 # Instead, let's just punt: use the minimum linelength reported by 5351 # all of the supported platforms: 8192 (on NT/2K/XP). 5352 lt_cv_sys_max_cmd_len=8192; 5353 ;; 5354 5355 mint*) 5356 # On MiNT this can take a long time and run out of memory. 5357 lt_cv_sys_max_cmd_len=8192; 5358 ;; 5359 5360 mint*) 5361 # On MiNT this can take a long time and run out of memory. 5362 lt_cv_sys_max_cmd_len=8192; 5363 ;; 5364 5365 amigaos*) 5366 # On AmigaOS with pdksh, this test takes hours, literally. 5367 # So we just punt and use a minimum line length of 8192. 5368 lt_cv_sys_max_cmd_len=8192; 5369 ;; 5370 5371 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5372 # This has been around since 386BSD, at least. Likely further. 5373 if test -x /sbin/sysctl; then 5374 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5375 elif test -x /usr/sbin/sysctl; then 5376 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5377 else 5378 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5379 fi 5380 # And add a safety zone 5381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5383 ;; 5384 5385 interix*) 5386 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5387 lt_cv_sys_max_cmd_len=196608 5388 ;; 5389 5390 os2*) 5391 # The test takes a long time on OS/2. 5392 lt_cv_sys_max_cmd_len=8192 5393 ;; 5394 5395 osf*) 5396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5398 # nice to cause kernel panics so lets avoid the loop below. 5399 # First set a reasonable default. 5400 lt_cv_sys_max_cmd_len=16384 5401 # 5402 if test -x /sbin/sysconfig; then 5403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5404 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5405 esac 5406 fi 5407 ;; 5408 sco3.2v5*) 5409 lt_cv_sys_max_cmd_len=102400 5410 ;; 5411 sysv5* | sco5v6* | sysv4.2uw2*) 5412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5413 if test -n "$kargmax"; then 5414 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5415 else 5416 lt_cv_sys_max_cmd_len=32768 5417 fi 5418 ;; 5419 *) 5420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5421 if test -n "$lt_cv_sys_max_cmd_len" && \ 5422 test undefined != "$lt_cv_sys_max_cmd_len"; then 5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5425 else 5426 # Make teststring a little bigger before we do anything with it. 5427 # a 1K string should be a reasonable start. 5428 for i in 1 2 3 4 5 6 7 8; do 5429 teststring=$teststring$teststring 5430 done 5431 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5432 # If test is not a shell built-in, we'll probably end up computing a 5433 # maximum length that is only half of the actual maximum length, but 5434 # we can't tell. 5435 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5436 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5437 test 17 != "$i" # 1/2 MB should be enough 5438 do 5439 i=`expr $i + 1` 5440 teststring=$teststring$teststring 5441 done 5442 # Only check the string length outside the loop. 5443 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5444 teststring= 5445 # Add a significant safety factor because C++ compilers can tack on 5446 # massive amounts of additional arguments before passing them to the 5447 # linker. It appears as though 1/2 is a usable value. 5448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5449 fi 5450 ;; 5451 esac 5452 5453fi 5454 5455if test -n "$lt_cv_sys_max_cmd_len"; then 5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5457printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5458else 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5460printf "%s\n" "none" >&6; } 5461fi 5462max_cmd_len=$lt_cv_sys_max_cmd_len 5463 5464 5465 5466 5467 5468 5469: ${CP="cp -f"} 5470: ${MV="mv -f"} 5471: ${RM="rm -f"} 5472 5473if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5474 lt_unset=unset 5475else 5476 lt_unset=false 5477fi 5478 5479 5480 5481 5482 5483# test EBCDIC or ASCII 5484case `echo X|tr X '\101'` in 5485 A) # ASCII based system 5486 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5487 lt_SP2NL='tr \040 \012' 5488 lt_NL2SP='tr \015\012 \040\040' 5489 ;; 5490 *) # EBCDIC based system 5491 lt_SP2NL='tr \100 \n' 5492 lt_NL2SP='tr \r\n \100\100' 5493 ;; 5494esac 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5505printf %s "checking how to convert $build file names to $host format... " >&6; } 5506if test ${lt_cv_to_host_file_cmd+y} 5507then : 5508 printf %s "(cached) " >&6 5509else $as_nop 5510 case $host in 5511 *-*-mingw* ) 5512 case $build in 5513 *-*-mingw* ) # actually msys 5514 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5515 ;; 5516 *-*-cygwin* ) 5517 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5518 ;; 5519 * ) # otherwise, assume *nix 5520 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5521 ;; 5522 esac 5523 ;; 5524 *-*-cygwin* ) 5525 case $build in 5526 *-*-mingw* ) # actually msys 5527 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5528 ;; 5529 *-*-cygwin* ) 5530 lt_cv_to_host_file_cmd=func_convert_file_noop 5531 ;; 5532 * ) # otherwise, assume *nix 5533 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5534 ;; 5535 esac 5536 ;; 5537 * ) # unhandled hosts (and "normal" native builds) 5538 lt_cv_to_host_file_cmd=func_convert_file_noop 5539 ;; 5540esac 5541 5542fi 5543 5544to_host_file_cmd=$lt_cv_to_host_file_cmd 5545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5546printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5547 5548 5549 5550 5551 5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5553printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5554if test ${lt_cv_to_tool_file_cmd+y} 5555then : 5556 printf %s "(cached) " >&6 5557else $as_nop 5558 #assume ordinary cross tools, or native build. 5559lt_cv_to_tool_file_cmd=func_convert_file_noop 5560case $host in 5561 *-*-mingw* ) 5562 case $build in 5563 *-*-mingw* ) # actually msys 5564 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5565 ;; 5566 esac 5567 ;; 5568esac 5569 5570fi 5571 5572to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5574printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5575 5576 5577 5578 5579 5580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5581printf %s "checking for $LD option to reload object files... " >&6; } 5582if test ${lt_cv_ld_reload_flag+y} 5583then : 5584 printf %s "(cached) " >&6 5585else $as_nop 5586 lt_cv_ld_reload_flag='-r' 5587fi 5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5589printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5590reload_flag=$lt_cv_ld_reload_flag 5591case $reload_flag in 5592"" | " "*) ;; 5593*) reload_flag=" $reload_flag" ;; 5594esac 5595reload_cmds='$LD$reload_flag -o $output$reload_objs' 5596case $host_os in 5597 cygwin* | mingw* | pw32* | cegcc*) 5598 if test yes != "$GCC"; then 5599 reload_cmds=false 5600 fi 5601 ;; 5602 darwin*) 5603 if test yes = "$GCC"; then 5604 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5605 else 5606 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5607 fi 5608 ;; 5609esac 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619if test -n "$ac_tool_prefix"; then 5620 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5621set dummy ${ac_tool_prefix}file; ac_word=$2 5622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623printf %s "checking for $ac_word... " >&6; } 5624if test ${ac_cv_prog_FILECMD+y} 5625then : 5626 printf %s "(cached) " >&6 5627else $as_nop 5628 if test -n "$FILECMD"; then 5629 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5630else 5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632for as_dir in $PATH 5633do 5634 IFS=$as_save_IFS 5635 case $as_dir in #((( 5636 '') as_dir=./ ;; 5637 */) ;; 5638 *) as_dir=$as_dir/ ;; 5639 esac 5640 for ac_exec_ext in '' $ac_executable_extensions; do 5641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5642 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5644 break 2 5645 fi 5646done 5647 done 5648IFS=$as_save_IFS 5649 5650fi 5651fi 5652FILECMD=$ac_cv_prog_FILECMD 5653if test -n "$FILECMD"; then 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5655printf "%s\n" "$FILECMD" >&6; } 5656else 5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5658printf "%s\n" "no" >&6; } 5659fi 5660 5661 5662fi 5663if test -z "$ac_cv_prog_FILECMD"; then 5664 ac_ct_FILECMD=$FILECMD 5665 # Extract the first word of "file", so it can be a program name with args. 5666set dummy file; ac_word=$2 5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5668printf %s "checking for $ac_word... " >&6; } 5669if test ${ac_cv_prog_ac_ct_FILECMD+y} 5670then : 5671 printf %s "(cached) " >&6 5672else $as_nop 5673 if test -n "$ac_ct_FILECMD"; then 5674 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5675else 5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677for as_dir in $PATH 5678do 5679 IFS=$as_save_IFS 5680 case $as_dir in #((( 5681 '') as_dir=./ ;; 5682 */) ;; 5683 *) as_dir=$as_dir/ ;; 5684 esac 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5687 ac_cv_prog_ac_ct_FILECMD="file" 5688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5689 break 2 5690 fi 5691done 5692 done 5693IFS=$as_save_IFS 5694 5695fi 5696fi 5697ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5698if test -n "$ac_ct_FILECMD"; then 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5700printf "%s\n" "$ac_ct_FILECMD" >&6; } 5701else 5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5703printf "%s\n" "no" >&6; } 5704fi 5705 5706 if test "x$ac_ct_FILECMD" = x; then 5707 FILECMD=":" 5708 else 5709 case $cross_compiling:$ac_tool_warned in 5710yes:) 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5713ac_tool_warned=yes ;; 5714esac 5715 FILECMD=$ac_ct_FILECMD 5716 fi 5717else 5718 FILECMD="$ac_cv_prog_FILECMD" 5719fi 5720 5721 5722 5723 5724 5725 5726 5727if test -n "$ac_tool_prefix"; then 5728 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5729set dummy ${ac_tool_prefix}objdump; ac_word=$2 5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731printf %s "checking for $ac_word... " >&6; } 5732if test ${ac_cv_prog_OBJDUMP+y} 5733then : 5734 printf %s "(cached) " >&6 5735else $as_nop 5736 if test -n "$OBJDUMP"; then 5737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5738else 5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740for as_dir in $PATH 5741do 5742 IFS=$as_save_IFS 5743 case $as_dir in #((( 5744 '') as_dir=./ ;; 5745 */) ;; 5746 *) as_dir=$as_dir/ ;; 5747 esac 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755 done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760OBJDUMP=$ac_cv_prog_OBJDUMP 5761if test -n "$OBJDUMP"; then 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5763printf "%s\n" "$OBJDUMP" >&6; } 5764else 5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766printf "%s\n" "no" >&6; } 5767fi 5768 5769 5770fi 5771if test -z "$ac_cv_prog_OBJDUMP"; then 5772 ac_ct_OBJDUMP=$OBJDUMP 5773 # Extract the first word of "objdump", so it can be a program name with args. 5774set dummy objdump; ac_word=$2 5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5776printf %s "checking for $ac_word... " >&6; } 5777if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5778then : 5779 printf %s "(cached) " >&6 5780else $as_nop 5781 if test -n "$ac_ct_OBJDUMP"; then 5782 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5783else 5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH 5786do 5787 IFS=$as_save_IFS 5788 case $as_dir in #((( 5789 '') as_dir=./ ;; 5790 */) ;; 5791 *) as_dir=$as_dir/ ;; 5792 esac 5793 for ac_exec_ext in '' $ac_executable_extensions; do 5794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5795 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5797 break 2 5798 fi 5799done 5800 done 5801IFS=$as_save_IFS 5802 5803fi 5804fi 5805ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5806if test -n "$ac_ct_OBJDUMP"; then 5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5808printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5809else 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5811printf "%s\n" "no" >&6; } 5812fi 5813 5814 if test "x$ac_ct_OBJDUMP" = x; then 5815 OBJDUMP="false" 5816 else 5817 case $cross_compiling:$ac_tool_warned in 5818yes:) 5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5821ac_tool_warned=yes ;; 5822esac 5823 OBJDUMP=$ac_ct_OBJDUMP 5824 fi 5825else 5826 OBJDUMP="$ac_cv_prog_OBJDUMP" 5827fi 5828 5829test -z "$OBJDUMP" && OBJDUMP=objdump 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5840printf %s "checking how to recognize dependent libraries... " >&6; } 5841if test ${lt_cv_deplibs_check_method+y} 5842then : 5843 printf %s "(cached) " >&6 5844else $as_nop 5845 lt_cv_file_magic_cmd='$MAGIC_CMD' 5846lt_cv_file_magic_test_file= 5847lt_cv_deplibs_check_method='unknown' 5848# Need to set the preceding variable on all platforms that support 5849# interlibrary dependencies. 5850# 'none' -- dependencies not supported. 5851# 'unknown' -- same as none, but documents that we really don't know. 5852# 'pass_all' -- all dependencies passed with no checks. 5853# 'test_compile' -- check by making test program. 5854# 'file_magic [[regex]]' -- check by looking for files in library path 5855# that responds to the $file_magic_cmd with a given extended regex. 5856# If you have 'file' or equivalent on your system and you're not sure 5857# whether 'pass_all' will *always* work, you probably want this one. 5858 5859case $host_os in 5860aix[4-9]*) 5861 lt_cv_deplibs_check_method=pass_all 5862 ;; 5863 5864beos*) 5865 lt_cv_deplibs_check_method=pass_all 5866 ;; 5867 5868bsdi[45]*) 5869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5870 lt_cv_file_magic_cmd='$FILECMD -L' 5871 lt_cv_file_magic_test_file=/shlib/libc.so 5872 ;; 5873 5874cygwin*) 5875 # func_win32_libid is a shell function defined in ltmain.sh 5876 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5877 lt_cv_file_magic_cmd='func_win32_libid' 5878 ;; 5879 5880mingw* | pw32*) 5881 # Base MSYS/MinGW do not provide the 'file' command needed by 5882 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5883 # unless we find 'file', for example because we are cross-compiling. 5884 if ( file / ) >/dev/null 2>&1; then 5885 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5886 lt_cv_file_magic_cmd='func_win32_libid' 5887 else 5888 # Keep this pattern in sync with the one in func_win32_libid. 5889 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5890 lt_cv_file_magic_cmd='$OBJDUMP -f' 5891 fi 5892 ;; 5893 5894cegcc*) 5895 # use the weaker test based on 'objdump'. See mingw*. 5896 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5897 lt_cv_file_magic_cmd='$OBJDUMP -f' 5898 ;; 5899 5900darwin* | rhapsody*) 5901 lt_cv_deplibs_check_method=pass_all 5902 ;; 5903 5904freebsd* | dragonfly* | midnightbsd*) 5905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5906 case $host_cpu in 5907 i*86 ) 5908 # Not sure whether the presence of OpenBSD here was a mistake. 5909 # Let's accept both of them until this is cleared up. 5910 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5911 lt_cv_file_magic_cmd=$FILECMD 5912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5913 ;; 5914 esac 5915 else 5916 lt_cv_deplibs_check_method=pass_all 5917 fi 5918 ;; 5919 5920haiku*) 5921 lt_cv_deplibs_check_method=pass_all 5922 ;; 5923 5924hpux10.20* | hpux11*) 5925 lt_cv_file_magic_cmd=$FILECMD 5926 case $host_cpu in 5927 ia64*) 5928 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5929 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5930 ;; 5931 hppa*64*) 5932 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]' 5933 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5934 ;; 5935 *) 5936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5937 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5938 ;; 5939 esac 5940 ;; 5941 5942interix[3-9]*) 5943 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5945 ;; 5946 5947irix5* | irix6* | nonstopux*) 5948 case $LD in 5949 *-32|*"-32 ") libmagic=32-bit;; 5950 *-n32|*"-n32 ") libmagic=N32;; 5951 *-64|*"-64 ") libmagic=64-bit;; 5952 *) libmagic=never-match;; 5953 esac 5954 lt_cv_deplibs_check_method=pass_all 5955 ;; 5956 5957# This must be glibc/ELF. 5958linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5959 lt_cv_deplibs_check_method=pass_all 5960 ;; 5961 5962netbsd*) 5963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5965 else 5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5967 fi 5968 ;; 5969 5970newos6*) 5971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5972 lt_cv_file_magic_cmd=$FILECMD 5973 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5974 ;; 5975 5976*nto* | *qnx*) 5977 lt_cv_deplibs_check_method=pass_all 5978 ;; 5979 5980openbsd* | bitrig*) 5981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5983 else 5984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5985 fi 5986 ;; 5987 5988osf3* | osf4* | osf5*) 5989 lt_cv_deplibs_check_method=pass_all 5990 ;; 5991 5992rdos*) 5993 lt_cv_deplibs_check_method=pass_all 5994 ;; 5995 5996solaris*) 5997 lt_cv_deplibs_check_method=pass_all 5998 ;; 5999 6000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004sysv4 | sysv4.3*) 6005 case $host_vendor in 6006 motorola) 6007 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]' 6008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6009 ;; 6010 ncr) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 sequent) 6014 lt_cv_file_magic_cmd='/bin/file' 6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6016 ;; 6017 sni) 6018 lt_cv_file_magic_cmd='/bin/file' 6019 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6020 lt_cv_file_magic_test_file=/lib/libc.so 6021 ;; 6022 siemens) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025 pc) 6026 lt_cv_deplibs_check_method=pass_all 6027 ;; 6028 esac 6029 ;; 6030 6031tpf*) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034os2*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037esac 6038 6039fi 6040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6041printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6042 6043file_magic_glob= 6044want_nocaseglob=no 6045if test "$build" = "$host"; then 6046 case $host_os in 6047 mingw* | pw32*) 6048 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6049 want_nocaseglob=yes 6050 else 6051 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6052 fi 6053 ;; 6054 esac 6055fi 6056 6057file_magic_cmd=$lt_cv_file_magic_cmd 6058deplibs_check_method=$lt_cv_deplibs_check_method 6059test -z "$deplibs_check_method" && deplibs_check_method=unknown 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082if test -n "$ac_tool_prefix"; then 6083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6084set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086printf %s "checking for $ac_word... " >&6; } 6087if test ${ac_cv_prog_DLLTOOL+y} 6088then : 6089 printf %s "(cached) " >&6 6090else $as_nop 6091 if test -n "$DLLTOOL"; then 6092 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6093else 6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095for as_dir in $PATH 6096do 6097 IFS=$as_save_IFS 6098 case $as_dir in #((( 6099 '') as_dir=./ ;; 6100 */) ;; 6101 *) as_dir=$as_dir/ ;; 6102 esac 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115DLLTOOL=$ac_cv_prog_DLLTOOL 6116if test -n "$DLLTOOL"; then 6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6118printf "%s\n" "$DLLTOOL" >&6; } 6119else 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6121printf "%s\n" "no" >&6; } 6122fi 6123 6124 6125fi 6126if test -z "$ac_cv_prog_DLLTOOL"; then 6127 ac_ct_DLLTOOL=$DLLTOOL 6128 # Extract the first word of "dlltool", so it can be a program name with args. 6129set dummy dlltool; ac_word=$2 6130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131printf %s "checking for $ac_word... " >&6; } 6132if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6133then : 6134 printf %s "(cached) " >&6 6135else $as_nop 6136 if test -n "$ac_ct_DLLTOOL"; then 6137 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 case $as_dir in #((( 6144 '') as_dir=./ ;; 6145 */) ;; 6146 *) as_dir=$as_dir/ ;; 6147 esac 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6150 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155 done 6156IFS=$as_save_IFS 6157 6158fi 6159fi 6160ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6161if test -n "$ac_ct_DLLTOOL"; then 6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6163printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6164else 6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166printf "%s\n" "no" >&6; } 6167fi 6168 6169 if test "x$ac_ct_DLLTOOL" = x; then 6170 DLLTOOL="false" 6171 else 6172 case $cross_compiling:$ac_tool_warned in 6173yes:) 6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6175printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176ac_tool_warned=yes ;; 6177esac 6178 DLLTOOL=$ac_ct_DLLTOOL 6179 fi 6180else 6181 DLLTOOL="$ac_cv_prog_DLLTOOL" 6182fi 6183 6184test -z "$DLLTOOL" && DLLTOOL=dlltool 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6196printf %s "checking how to associate runtime and link libraries... " >&6; } 6197if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6198then : 6199 printf %s "(cached) " >&6 6200else $as_nop 6201 lt_cv_sharedlib_from_linklib_cmd='unknown' 6202 6203case $host_os in 6204cygwin* | mingw* | pw32* | cegcc*) 6205 # two different shell functions defined in ltmain.sh; 6206 # decide which one to use based on capabilities of $DLLTOOL 6207 case `$DLLTOOL --help 2>&1` in 6208 *--identify-strict*) 6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6210 ;; 6211 *) 6212 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6213 ;; 6214 esac 6215 ;; 6216*) 6217 # fallback: assume linklib IS sharedlib 6218 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6219 ;; 6220esac 6221 6222fi 6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6224printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6225sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6226test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6227 6228 6229 6230 6231 6232 6233 6234 6235if test -n "$ac_tool_prefix"; then 6236 for ac_prog in ar 6237 do 6238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241printf %s "checking for $ac_word... " >&6; } 6242if test ${ac_cv_prog_AR+y} 6243then : 6244 printf %s "(cached) " >&6 6245else $as_nop 6246 if test -n "$AR"; then 6247 ac_cv_prog_AR="$AR" # Let the user override the test. 6248else 6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250for as_dir in $PATH 6251do 6252 IFS=$as_save_IFS 6253 case $as_dir in #((( 6254 '') as_dir=./ ;; 6255 */) ;; 6256 *) as_dir=$as_dir/ ;; 6257 esac 6258 for ac_exec_ext in '' $ac_executable_extensions; do 6259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6260 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6262 break 2 6263 fi 6264done 6265 done 6266IFS=$as_save_IFS 6267 6268fi 6269fi 6270AR=$ac_cv_prog_AR 6271if test -n "$AR"; then 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6273printf "%s\n" "$AR" >&6; } 6274else 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6276printf "%s\n" "no" >&6; } 6277fi 6278 6279 6280 test -n "$AR" && break 6281 done 6282fi 6283if test -z "$AR"; then 6284 ac_ct_AR=$AR 6285 for ac_prog in ar 6286do 6287 # Extract the first word of "$ac_prog", so it can be a program name with args. 6288set dummy $ac_prog; ac_word=$2 6289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290printf %s "checking for $ac_word... " >&6; } 6291if test ${ac_cv_prog_ac_ct_AR+y} 6292then : 6293 printf %s "(cached) " >&6 6294else $as_nop 6295 if test -n "$ac_ct_AR"; then 6296 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6297else 6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6299for as_dir in $PATH 6300do 6301 IFS=$as_save_IFS 6302 case $as_dir in #((( 6303 '') as_dir=./ ;; 6304 */) ;; 6305 *) as_dir=$as_dir/ ;; 6306 esac 6307 for ac_exec_ext in '' $ac_executable_extensions; do 6308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6309 ac_cv_prog_ac_ct_AR="$ac_prog" 6310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6311 break 2 6312 fi 6313done 6314 done 6315IFS=$as_save_IFS 6316 6317fi 6318fi 6319ac_ct_AR=$ac_cv_prog_ac_ct_AR 6320if test -n "$ac_ct_AR"; then 6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6322printf "%s\n" "$ac_ct_AR" >&6; } 6323else 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6325printf "%s\n" "no" >&6; } 6326fi 6327 6328 6329 test -n "$ac_ct_AR" && break 6330done 6331 6332 if test "x$ac_ct_AR" = x; then 6333 AR="false" 6334 else 6335 case $cross_compiling:$ac_tool_warned in 6336yes:) 6337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6339ac_tool_warned=yes ;; 6340esac 6341 AR=$ac_ct_AR 6342 fi 6343fi 6344 6345: ${AR=ar} 6346 6347 6348 6349 6350 6351 6352# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6353# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6354# higher priority because thats what people were doing historically (setting 6355# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6356# variable obsoleted/removed. 6357 6358test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6359lt_ar_flags=$AR_FLAGS 6360 6361 6362 6363 6364 6365 6366# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6367# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6368 6369 6370 6371 6372 6373 6374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6375printf %s "checking for archiver @FILE support... " >&6; } 6376if test ${lt_cv_ar_at_file+y} 6377then : 6378 printf %s "(cached) " >&6 6379else $as_nop 6380 lt_cv_ar_at_file=no 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383 6384int 6385main (void) 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_compile "$LINENO" 6393then : 6394 echo conftest.$ac_objext > conftest.lst 6395 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6397 (eval $lt_ar_try) 2>&5 6398 ac_status=$? 6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6400 test $ac_status = 0; } 6401 if test 0 -eq "$ac_status"; then 6402 # Ensure the archiver fails upon bogus file names. 6403 rm -f conftest.$ac_objext libconftest.a 6404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6405 (eval $lt_ar_try) 2>&5 6406 ac_status=$? 6407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6408 test $ac_status = 0; } 6409 if test 0 -ne "$ac_status"; then 6410 lt_cv_ar_at_file=@ 6411 fi 6412 fi 6413 rm -f conftest.* libconftest.a 6414 6415fi 6416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6417 6418fi 6419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6420printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6421 6422if test no = "$lt_cv_ar_at_file"; then 6423 archiver_list_spec= 6424else 6425 archiver_list_spec=$lt_cv_ar_at_file 6426fi 6427 6428 6429 6430 6431 6432 6433 6434if test -n "$ac_tool_prefix"; then 6435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6436set dummy ${ac_tool_prefix}strip; ac_word=$2 6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6438printf %s "checking for $ac_word... " >&6; } 6439if test ${ac_cv_prog_STRIP+y} 6440then : 6441 printf %s "(cached) " >&6 6442else $as_nop 6443 if test -n "$STRIP"; then 6444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6445else 6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6447for as_dir in $PATH 6448do 6449 IFS=$as_save_IFS 6450 case $as_dir in #((( 6451 '') as_dir=./ ;; 6452 */) ;; 6453 *) as_dir=$as_dir/ ;; 6454 esac 6455 for ac_exec_ext in '' $ac_executable_extensions; do 6456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6457 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6459 break 2 6460 fi 6461done 6462 done 6463IFS=$as_save_IFS 6464 6465fi 6466fi 6467STRIP=$ac_cv_prog_STRIP 6468if test -n "$STRIP"; then 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6470printf "%s\n" "$STRIP" >&6; } 6471else 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6473printf "%s\n" "no" >&6; } 6474fi 6475 6476 6477fi 6478if test -z "$ac_cv_prog_STRIP"; then 6479 ac_ct_STRIP=$STRIP 6480 # Extract the first word of "strip", so it can be a program name with args. 6481set dummy strip; ac_word=$2 6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6483printf %s "checking for $ac_word... " >&6; } 6484if test ${ac_cv_prog_ac_ct_STRIP+y} 6485then : 6486 printf %s "(cached) " >&6 6487else $as_nop 6488 if test -n "$ac_ct_STRIP"; then 6489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 case $as_dir in #((( 6496 '') as_dir=./ ;; 6497 */) ;; 6498 *) as_dir=$as_dir/ ;; 6499 esac 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6502 ac_cv_prog_ac_ct_STRIP="strip" 6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506done 6507 done 6508IFS=$as_save_IFS 6509 6510fi 6511fi 6512ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6513if test -n "$ac_ct_STRIP"; then 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6515printf "%s\n" "$ac_ct_STRIP" >&6; } 6516else 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6518printf "%s\n" "no" >&6; } 6519fi 6520 6521 if test "x$ac_ct_STRIP" = x; then 6522 STRIP=":" 6523 else 6524 case $cross_compiling:$ac_tool_warned in 6525yes:) 6526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6527printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6528ac_tool_warned=yes ;; 6529esac 6530 STRIP=$ac_ct_STRIP 6531 fi 6532else 6533 STRIP="$ac_cv_prog_STRIP" 6534fi 6535 6536test -z "$STRIP" && STRIP=: 6537 6538 6539 6540 6541 6542 6543if test -n "$ac_tool_prefix"; then 6544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6545set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6547printf %s "checking for $ac_word... " >&6; } 6548if test ${ac_cv_prog_RANLIB+y} 6549then : 6550 printf %s "(cached) " >&6 6551else $as_nop 6552 if test -n "$RANLIB"; then 6553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6554else 6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556for as_dir in $PATH 6557do 6558 IFS=$as_save_IFS 6559 case $as_dir in #((( 6560 '') as_dir=./ ;; 6561 */) ;; 6562 *) as_dir=$as_dir/ ;; 6563 esac 6564 for ac_exec_ext in '' $ac_executable_extensions; do 6565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6568 break 2 6569 fi 6570done 6571 done 6572IFS=$as_save_IFS 6573 6574fi 6575fi 6576RANLIB=$ac_cv_prog_RANLIB 6577if test -n "$RANLIB"; then 6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6579printf "%s\n" "$RANLIB" >&6; } 6580else 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6582printf "%s\n" "no" >&6; } 6583fi 6584 6585 6586fi 6587if test -z "$ac_cv_prog_RANLIB"; then 6588 ac_ct_RANLIB=$RANLIB 6589 # Extract the first word of "ranlib", so it can be a program name with args. 6590set dummy ranlib; ac_word=$2 6591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6592printf %s "checking for $ac_word... " >&6; } 6593if test ${ac_cv_prog_ac_ct_RANLIB+y} 6594then : 6595 printf %s "(cached) " >&6 6596else $as_nop 6597 if test -n "$ac_ct_RANLIB"; then 6598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6599else 6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6601for as_dir in $PATH 6602do 6603 IFS=$as_save_IFS 6604 case $as_dir in #((( 6605 '') as_dir=./ ;; 6606 */) ;; 6607 *) as_dir=$as_dir/ ;; 6608 esac 6609 for ac_exec_ext in '' $ac_executable_extensions; do 6610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6611 ac_cv_prog_ac_ct_RANLIB="ranlib" 6612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6613 break 2 6614 fi 6615done 6616 done 6617IFS=$as_save_IFS 6618 6619fi 6620fi 6621ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6622if test -n "$ac_ct_RANLIB"; then 6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6624printf "%s\n" "$ac_ct_RANLIB" >&6; } 6625else 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6627printf "%s\n" "no" >&6; } 6628fi 6629 6630 if test "x$ac_ct_RANLIB" = x; then 6631 RANLIB=":" 6632 else 6633 case $cross_compiling:$ac_tool_warned in 6634yes:) 6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6636printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6637ac_tool_warned=yes ;; 6638esac 6639 RANLIB=$ac_ct_RANLIB 6640 fi 6641else 6642 RANLIB="$ac_cv_prog_RANLIB" 6643fi 6644 6645test -z "$RANLIB" && RANLIB=: 6646 6647 6648 6649 6650 6651 6652# Determine commands to create old-style static archives. 6653old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6654old_postinstall_cmds='chmod 644 $oldlib' 6655old_postuninstall_cmds= 6656 6657if test -n "$RANLIB"; then 6658 case $host_os in 6659 bitrig* | openbsd*) 6660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6661 ;; 6662 *) 6663 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6664 ;; 6665 esac 6666 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6667fi 6668 6669case $host_os in 6670 darwin*) 6671 lock_old_archive_extraction=yes ;; 6672 *) 6673 lock_old_archive_extraction=no ;; 6674esac 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714# If no C compiler was specified, use CC. 6715LTCC=${LTCC-"$CC"} 6716 6717# If no C compiler flags were specified, use CFLAGS. 6718LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6719 6720# Allow CC to be a program name with arguments. 6721compiler=$CC 6722 6723 6724# Check for command to grab the raw symbol name followed by C symbol from nm. 6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6726printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6727if test ${lt_cv_sys_global_symbol_pipe+y} 6728then : 6729 printf %s "(cached) " >&6 6730else $as_nop 6731 6732# These are sane defaults that work on at least a few old systems. 6733# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6734 6735# Character class describing NM global symbol codes. 6736symcode='[BCDEGRST]' 6737 6738# Regexp to match symbols that can be accessed directly from C. 6739sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6740 6741# Define system-specific variables. 6742case $host_os in 6743aix*) 6744 symcode='[BCDT]' 6745 ;; 6746cygwin* | mingw* | pw32* | cegcc*) 6747 symcode='[ABCDGISTW]' 6748 ;; 6749hpux*) 6750 if test ia64 = "$host_cpu"; then 6751 symcode='[ABCDEGRST]' 6752 fi 6753 ;; 6754irix* | nonstopux*) 6755 symcode='[BCDEGRST]' 6756 ;; 6757osf*) 6758 symcode='[BCDEGQRST]' 6759 ;; 6760solaris*) 6761 symcode='[BDRT]' 6762 ;; 6763sco3.2v5*) 6764 symcode='[DT]' 6765 ;; 6766sysv4.2uw2*) 6767 symcode='[DT]' 6768 ;; 6769sysv5* | sco5v6* | unixware* | OpenUNIX*) 6770 symcode='[ABDT]' 6771 ;; 6772sysv4) 6773 symcode='[DFNSTU]' 6774 ;; 6775esac 6776 6777# If we're using GNU nm, then use its standard symbol codes. 6778case `$NM -V 2>&1` in 6779*GNU* | *'with BFD'*) 6780 symcode='[ABCDGIRSTW]' ;; 6781esac 6782 6783if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6784 # Gets list of data symbols to import. 6785 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6786 # Adjust the below global symbol transforms to fixup imported variables. 6787 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6788 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6789 lt_c_name_lib_hook="\ 6790 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6791 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6792else 6793 # Disable hooks by default. 6794 lt_cv_sys_global_symbol_to_import= 6795 lt_cdecl_hook= 6796 lt_c_name_hook= 6797 lt_c_name_lib_hook= 6798fi 6799 6800# Transform an extracted symbol line into a proper C declaration. 6801# Some systems (esp. on ia64) link data and code symbols differently, 6802# so use this general approach. 6803lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6804$lt_cdecl_hook\ 6805" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6806" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6807 6808# Transform an extracted symbol line into symbol name and symbol address 6809lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6810$lt_c_name_hook\ 6811" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6812" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6813 6814# Transform an extracted symbol line into symbol name with lib prefix and 6815# symbol address. 6816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6817$lt_c_name_lib_hook\ 6818" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6819" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6820" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6821 6822# Handle CRLF in mingw tool chain 6823opt_cr= 6824case $build_os in 6825mingw*) 6826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6827 ;; 6828esac 6829 6830# Try without a prefix underscore, then with it. 6831for ac_symprfx in "" "_"; do 6832 6833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6834 symxfrm="\\1 $ac_symprfx\\2 \\2" 6835 6836 # Write the raw and C identifiers. 6837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6838 # Fake it for dumpbin and say T for any non-static function, 6839 # D for any global variable and I for any imported variable. 6840 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6841 # which start with @ or ?. 6842 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6843" {last_section=section; section=\$ 3};"\ 6844" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6845" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6846" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6847" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6848" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6849" \$ 0!~/External *\|/{next};"\ 6850" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6851" {if(hide[section]) next};"\ 6852" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6853" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6854" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6855" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6856" ' prfx=^$ac_symprfx" 6857 else 6858 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6859 fi 6860 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6861 6862 # Check to see that the pipe works correctly. 6863 pipe_works=no 6864 6865 rm -f conftest* 6866 cat > conftest.$ac_ext <<_LT_EOF 6867#ifdef __cplusplus 6868extern "C" { 6869#endif 6870char nm_test_var; 6871void nm_test_func(void); 6872void nm_test_func(void){} 6873#ifdef __cplusplus 6874} 6875#endif 6876int main(){nm_test_var='a';nm_test_func();return(0);} 6877_LT_EOF 6878 6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6880 (eval $ac_compile) 2>&5 6881 ac_status=$? 6882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6883 test $ac_status = 0; }; then 6884 # Now try to grab the symbols. 6885 nlist=conftest.nm 6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6888 ac_status=$? 6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6890 test $ac_status = 0; } && test -s "$nlist"; then 6891 # Try sorting and uniquifying the output. 6892 if sort "$nlist" | uniq > "$nlist"T; then 6893 mv -f "$nlist"T "$nlist" 6894 else 6895 rm -f "$nlist"T 6896 fi 6897 6898 # Make sure that we snagged all the symbols we need. 6899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6901 cat <<_LT_EOF > conftest.$ac_ext 6902/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6903#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6904/* DATA imports from DLLs on WIN32 can't be const, because runtime 6905 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6906# define LT_DLSYM_CONST 6907#elif defined __osf__ 6908/* This system does not cope well with relocations in const data. */ 6909# define LT_DLSYM_CONST 6910#else 6911# define LT_DLSYM_CONST const 6912#endif 6913 6914#ifdef __cplusplus 6915extern "C" { 6916#endif 6917 6918_LT_EOF 6919 # Now generate the symbol file. 6920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6921 6922 cat <<_LT_EOF >> conftest.$ac_ext 6923 6924/* The mapping between symbol names and symbols. */ 6925LT_DLSYM_CONST struct { 6926 const char *name; 6927 void *address; 6928} 6929lt__PROGRAM__LTX_preloaded_symbols[] = 6930{ 6931 { "@PROGRAM@", (void *) 0 }, 6932_LT_EOF 6933 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6934 cat <<\_LT_EOF >> conftest.$ac_ext 6935 {0, (void *) 0} 6936}; 6937 6938/* This works around a problem in FreeBSD linker */ 6939#ifdef FREEBSD_WORKAROUND 6940static const void *lt_preloaded_setup() { 6941 return lt__PROGRAM__LTX_preloaded_symbols; 6942} 6943#endif 6944 6945#ifdef __cplusplus 6946} 6947#endif 6948_LT_EOF 6949 # Now try linking the two files. 6950 mv conftest.$ac_objext conftstm.$ac_objext 6951 lt_globsym_save_LIBS=$LIBS 6952 lt_globsym_save_CFLAGS=$CFLAGS 6953 LIBS=conftstm.$ac_objext 6954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6956 (eval $ac_link) 2>&5 6957 ac_status=$? 6958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6959 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6960 pipe_works=yes 6961 fi 6962 LIBS=$lt_globsym_save_LIBS 6963 CFLAGS=$lt_globsym_save_CFLAGS 6964 else 6965 echo "cannot find nm_test_func in $nlist" >&5 6966 fi 6967 else 6968 echo "cannot find nm_test_var in $nlist" >&5 6969 fi 6970 else 6971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6972 fi 6973 else 6974 echo "$progname: failed program was:" >&5 6975 cat conftest.$ac_ext >&5 6976 fi 6977 rm -rf conftest* conftst* 6978 6979 # Do not use the global_symbol_pipe unless it works. 6980 if test yes = "$pipe_works"; then 6981 break 6982 else 6983 lt_cv_sys_global_symbol_pipe= 6984 fi 6985done 6986 6987fi 6988 6989if test -z "$lt_cv_sys_global_symbol_pipe"; then 6990 lt_cv_sys_global_symbol_to_cdecl= 6991fi 6992if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6994printf "%s\n" "failed" >&6; } 6995else 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6997printf "%s\n" "ok" >&6; } 6998fi 6999 7000# Response file support. 7001if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7002 nm_file_list_spec='@' 7003elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7004 nm_file_list_spec='@' 7005fi 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7044printf %s "checking for sysroot... " >&6; } 7045 7046# Check whether --with-sysroot was given. 7047if test ${with_sysroot+y} 7048then : 7049 withval=$with_sysroot; 7050else $as_nop 7051 with_sysroot=no 7052fi 7053 7054 7055lt_sysroot= 7056case $with_sysroot in #( 7057 yes) 7058 if test yes = "$GCC"; then 7059 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7060 fi 7061 ;; #( 7062 /*) 7063 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7064 ;; #( 7065 no|'') 7066 ;; #( 7067 *) 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7069printf "%s\n" "$with_sysroot" >&6; } 7070 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7071 ;; 7072esac 7073 7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7075printf "%s\n" "${lt_sysroot:-no}" >&6; } 7076 7077 7078 7079 7080 7081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7082printf %s "checking for a working dd... " >&6; } 7083if test ${ac_cv_path_lt_DD+y} 7084then : 7085 printf %s "(cached) " >&6 7086else $as_nop 7087 printf 0123456789abcdef0123456789abcdef >conftest.i 7088cat conftest.i conftest.i >conftest2.i 7089: ${lt_DD:=$DD} 7090if test -z "$lt_DD"; then 7091 ac_path_lt_DD_found=false 7092 # Loop through the user's path and test for each of PROGNAME-LIST 7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7094for as_dir in $PATH 7095do 7096 IFS=$as_save_IFS 7097 case $as_dir in #((( 7098 '') as_dir=./ ;; 7099 */) ;; 7100 *) as_dir=$as_dir/ ;; 7101 esac 7102 for ac_prog in dd 7103 do 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7106 as_fn_executable_p "$ac_path_lt_DD" || continue 7107if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7108 cmp -s conftest.i conftest.out \ 7109 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7110fi 7111 $ac_path_lt_DD_found && break 3 7112 done 7113 done 7114 done 7115IFS=$as_save_IFS 7116 if test -z "$ac_cv_path_lt_DD"; then 7117 : 7118 fi 7119else 7120 ac_cv_path_lt_DD=$lt_DD 7121fi 7122 7123rm -f conftest.i conftest2.i conftest.out 7124fi 7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7126printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7127 7128 7129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7130printf %s "checking how to truncate binary pipes... " >&6; } 7131if test ${lt_cv_truncate_bin+y} 7132then : 7133 printf %s "(cached) " >&6 7134else $as_nop 7135 printf 0123456789abcdef0123456789abcdef >conftest.i 7136cat conftest.i conftest.i >conftest2.i 7137lt_cv_truncate_bin= 7138if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7139 cmp -s conftest.i conftest.out \ 7140 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7141fi 7142rm -f conftest.i conftest2.i conftest.out 7143test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7144fi 7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7146printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7147 7148 7149 7150 7151 7152 7153 7154# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7155func_cc_basename () 7156{ 7157 for cc_temp in $*""; do 7158 case $cc_temp in 7159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7161 \-*) ;; 7162 *) break;; 7163 esac 7164 done 7165 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7166} 7167 7168# Check whether --enable-libtool-lock was given. 7169if test ${enable_libtool_lock+y} 7170then : 7171 enableval=$enable_libtool_lock; 7172fi 7173 7174test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7175 7176# Some flags need to be propagated to the compiler or linker for good 7177# libtool support. 7178case $host in 7179ia64-*-hpux*) 7180 # Find out what ABI is being produced by ac_compile, and set mode 7181 # options accordingly. 7182 echo 'int i;' > conftest.$ac_ext 7183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7184 (eval $ac_compile) 2>&5 7185 ac_status=$? 7186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7187 test $ac_status = 0; }; then 7188 case `$FILECMD conftest.$ac_objext` in 7189 *ELF-32*) 7190 HPUX_IA64_MODE=32 7191 ;; 7192 *ELF-64*) 7193 HPUX_IA64_MODE=64 7194 ;; 7195 esac 7196 fi 7197 rm -rf conftest* 7198 ;; 7199*-*-irix6*) 7200 # Find out what ABI is being produced by ac_compile, and set linker 7201 # options accordingly. 7202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7204 (eval $ac_compile) 2>&5 7205 ac_status=$? 7206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7207 test $ac_status = 0; }; then 7208 if test yes = "$lt_cv_prog_gnu_ld"; then 7209 case `$FILECMD conftest.$ac_objext` in 7210 *32-bit*) 7211 LD="${LD-ld} -melf32bsmip" 7212 ;; 7213 *N32*) 7214 LD="${LD-ld} -melf32bmipn32" 7215 ;; 7216 *64-bit*) 7217 LD="${LD-ld} -melf64bmip" 7218 ;; 7219 esac 7220 else 7221 case `$FILECMD conftest.$ac_objext` in 7222 *32-bit*) 7223 LD="${LD-ld} -32" 7224 ;; 7225 *N32*) 7226 LD="${LD-ld} -n32" 7227 ;; 7228 *64-bit*) 7229 LD="${LD-ld} -64" 7230 ;; 7231 esac 7232 fi 7233 fi 7234 rm -rf conftest* 7235 ;; 7236 7237mips64*-*linux*) 7238 # Find out what ABI is being produced by ac_compile, and set linker 7239 # options accordingly. 7240 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7242 (eval $ac_compile) 2>&5 7243 ac_status=$? 7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7245 test $ac_status = 0; }; then 7246 emul=elf 7247 case `$FILECMD conftest.$ac_objext` in 7248 *32-bit*) 7249 emul="${emul}32" 7250 ;; 7251 *64-bit*) 7252 emul="${emul}64" 7253 ;; 7254 esac 7255 case `$FILECMD conftest.$ac_objext` in 7256 *MSB*) 7257 emul="${emul}btsmip" 7258 ;; 7259 *LSB*) 7260 emul="${emul}ltsmip" 7261 ;; 7262 esac 7263 case `$FILECMD conftest.$ac_objext` in 7264 *N32*) 7265 emul="${emul}n32" 7266 ;; 7267 esac 7268 LD="${LD-ld} -m $emul" 7269 fi 7270 rm -rf conftest* 7271 ;; 7272 7273x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7274s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7275 # Find out what ABI is being produced by ac_compile, and set linker 7276 # options accordingly. Note that the listed cases only cover the 7277 # situations where additional linker options are needed (such as when 7278 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7279 # vice versa); the common cases where no linker options are needed do 7280 # not appear in the list. 7281 echo 'int i;' > conftest.$ac_ext 7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7283 (eval $ac_compile) 2>&5 7284 ac_status=$? 7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7286 test $ac_status = 0; }; then 7287 case `$FILECMD conftest.o` in 7288 *32-bit*) 7289 case $host in 7290 x86_64-*kfreebsd*-gnu) 7291 LD="${LD-ld} -m elf_i386_fbsd" 7292 ;; 7293 x86_64-*linux*) 7294 case `$FILECMD conftest.o` in 7295 *x86-64*) 7296 LD="${LD-ld} -m elf32_x86_64" 7297 ;; 7298 *) 7299 LD="${LD-ld} -m elf_i386" 7300 ;; 7301 esac 7302 ;; 7303 powerpc64le-*linux*) 7304 LD="${LD-ld} -m elf32lppclinux" 7305 ;; 7306 powerpc64-*linux*) 7307 LD="${LD-ld} -m elf32ppclinux" 7308 ;; 7309 s390x-*linux*) 7310 LD="${LD-ld} -m elf_s390" 7311 ;; 7312 sparc64-*linux*) 7313 LD="${LD-ld} -m elf32_sparc" 7314 ;; 7315 esac 7316 ;; 7317 *64-bit*) 7318 case $host in 7319 x86_64-*kfreebsd*-gnu) 7320 LD="${LD-ld} -m elf_x86_64_fbsd" 7321 ;; 7322 x86_64-*linux*) 7323 LD="${LD-ld} -m elf_x86_64" 7324 ;; 7325 powerpcle-*linux*|powerpc64le-*linux*) 7326 LD="${LD-ld} -m elf64lppc" 7327 ;; 7328 powerpc-*linux*|powerpc64-*linux*) 7329 LD="${LD-ld} -m elf64ppc" 7330 ;; 7331 s390*-*linux*|s390*-*tpf*) 7332 LD="${LD-ld} -m elf64_s390" 7333 ;; 7334 sparc*-*linux*) 7335 LD="${LD-ld} -m elf64_sparc" 7336 ;; 7337 esac 7338 ;; 7339 esac 7340 fi 7341 rm -rf conftest* 7342 ;; 7343 7344*-*-sco3.2v5*) 7345 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7346 SAVE_CFLAGS=$CFLAGS 7347 CFLAGS="$CFLAGS -belf" 7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7349printf %s "checking whether the C compiler needs -belf... " >&6; } 7350if test ${lt_cv_cc_needs_belf+y} 7351then : 7352 printf %s "(cached) " >&6 7353else $as_nop 7354 ac_ext=c 7355ac_cpp='$CPP $CPPFLAGS' 7356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7358ac_compiler_gnu=$ac_cv_c_compiler_gnu 7359 7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361/* end confdefs.h. */ 7362 7363int 7364main (void) 7365{ 7366 7367 ; 7368 return 0; 7369} 7370_ACEOF 7371if ac_fn_c_try_link "$LINENO" 7372then : 7373 lt_cv_cc_needs_belf=yes 7374else $as_nop 7375 lt_cv_cc_needs_belf=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7378 conftest$ac_exeext conftest.$ac_ext 7379 ac_ext=c 7380ac_cpp='$CPP $CPPFLAGS' 7381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7383ac_compiler_gnu=$ac_cv_c_compiler_gnu 7384 7385fi 7386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7387printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7388 if test yes != "$lt_cv_cc_needs_belf"; then 7389 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7390 CFLAGS=$SAVE_CFLAGS 7391 fi 7392 ;; 7393*-*solaris*) 7394 # Find out what ABI is being produced by ac_compile, and set linker 7395 # options accordingly. 7396 echo 'int i;' > conftest.$ac_ext 7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7398 (eval $ac_compile) 2>&5 7399 ac_status=$? 7400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7401 test $ac_status = 0; }; then 7402 case `$FILECMD conftest.o` in 7403 *64-bit*) 7404 case $lt_cv_prog_gnu_ld in 7405 yes*) 7406 case $host in 7407 i?86-*-solaris*|x86_64-*-solaris*) 7408 LD="${LD-ld} -m elf_x86_64" 7409 ;; 7410 sparc*-*-solaris*) 7411 LD="${LD-ld} -m elf64_sparc" 7412 ;; 7413 esac 7414 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7415 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7416 LD=${LD-ld}_sol2 7417 fi 7418 ;; 7419 *) 7420 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7421 LD="${LD-ld} -64" 7422 fi 7423 ;; 7424 esac 7425 ;; 7426 esac 7427 fi 7428 rm -rf conftest* 7429 ;; 7430esac 7431 7432need_locks=$enable_libtool_lock 7433 7434if test -n "$ac_tool_prefix"; then 7435 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7436set dummy ${ac_tool_prefix}mt; ac_word=$2 7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7438printf %s "checking for $ac_word... " >&6; } 7439if test ${ac_cv_prog_MANIFEST_TOOL+y} 7440then : 7441 printf %s "(cached) " >&6 7442else $as_nop 7443 if test -n "$MANIFEST_TOOL"; then 7444 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7445else 7446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7447for as_dir in $PATH 7448do 7449 IFS=$as_save_IFS 7450 case $as_dir in #((( 7451 '') as_dir=./ ;; 7452 */) ;; 7453 *) as_dir=$as_dir/ ;; 7454 esac 7455 for ac_exec_ext in '' $ac_executable_extensions; do 7456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7457 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7459 break 2 7460 fi 7461done 7462 done 7463IFS=$as_save_IFS 7464 7465fi 7466fi 7467MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7468if test -n "$MANIFEST_TOOL"; then 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7470printf "%s\n" "$MANIFEST_TOOL" >&6; } 7471else 7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7473printf "%s\n" "no" >&6; } 7474fi 7475 7476 7477fi 7478if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7479 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7480 # Extract the first word of "mt", so it can be a program name with args. 7481set dummy mt; ac_word=$2 7482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7483printf %s "checking for $ac_word... " >&6; } 7484if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7485then : 7486 printf %s "(cached) " >&6 7487else $as_nop 7488 if test -n "$ac_ct_MANIFEST_TOOL"; then 7489 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7490else 7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7492for as_dir in $PATH 7493do 7494 IFS=$as_save_IFS 7495 case $as_dir in #((( 7496 '') as_dir=./ ;; 7497 */) ;; 7498 *) as_dir=$as_dir/ ;; 7499 esac 7500 for ac_exec_ext in '' $ac_executable_extensions; do 7501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7502 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7504 break 2 7505 fi 7506done 7507 done 7508IFS=$as_save_IFS 7509 7510fi 7511fi 7512ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7513if test -n "$ac_ct_MANIFEST_TOOL"; then 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7515printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7516else 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518printf "%s\n" "no" >&6; } 7519fi 7520 7521 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7522 MANIFEST_TOOL=":" 7523 else 7524 case $cross_compiling:$ac_tool_warned in 7525yes:) 7526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7527printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7528ac_tool_warned=yes ;; 7529esac 7530 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7531 fi 7532else 7533 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7534fi 7535 7536test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7538printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7539if test ${lt_cv_path_mainfest_tool+y} 7540then : 7541 printf %s "(cached) " >&6 7542else $as_nop 7543 lt_cv_path_mainfest_tool=no 7544 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7545 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7546 cat conftest.err >&5 7547 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7548 lt_cv_path_mainfest_tool=yes 7549 fi 7550 rm -f conftest* 7551fi 7552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7553printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7554if test yes != "$lt_cv_path_mainfest_tool"; then 7555 MANIFEST_TOOL=: 7556fi 7557 7558 7559 7560 7561 7562 7563 case $host_os in 7564 rhapsody* | darwin*) 7565 if test -n "$ac_tool_prefix"; then 7566 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7567set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7569printf %s "checking for $ac_word... " >&6; } 7570if test ${ac_cv_prog_DSYMUTIL+y} 7571then : 7572 printf %s "(cached) " >&6 7573else $as_nop 7574 if test -n "$DSYMUTIL"; then 7575 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7576else 7577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7578for as_dir in $PATH 7579do 7580 IFS=$as_save_IFS 7581 case $as_dir in #((( 7582 '') as_dir=./ ;; 7583 */) ;; 7584 *) as_dir=$as_dir/ ;; 7585 esac 7586 for ac_exec_ext in '' $ac_executable_extensions; do 7587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7588 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7590 break 2 7591 fi 7592done 7593 done 7594IFS=$as_save_IFS 7595 7596fi 7597fi 7598DSYMUTIL=$ac_cv_prog_DSYMUTIL 7599if test -n "$DSYMUTIL"; then 7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7601printf "%s\n" "$DSYMUTIL" >&6; } 7602else 7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7604printf "%s\n" "no" >&6; } 7605fi 7606 7607 7608fi 7609if test -z "$ac_cv_prog_DSYMUTIL"; then 7610 ac_ct_DSYMUTIL=$DSYMUTIL 7611 # Extract the first word of "dsymutil", so it can be a program name with args. 7612set dummy dsymutil; ac_word=$2 7613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7614printf %s "checking for $ac_word... " >&6; } 7615if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7616then : 7617 printf %s "(cached) " >&6 7618else $as_nop 7619 if test -n "$ac_ct_DSYMUTIL"; then 7620 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7621else 7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7623for as_dir in $PATH 7624do 7625 IFS=$as_save_IFS 7626 case $as_dir in #((( 7627 '') as_dir=./ ;; 7628 */) ;; 7629 *) as_dir=$as_dir/ ;; 7630 esac 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7635 break 2 7636 fi 7637done 7638 done 7639IFS=$as_save_IFS 7640 7641fi 7642fi 7643ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7644if test -n "$ac_ct_DSYMUTIL"; then 7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7646printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7647else 7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7649printf "%s\n" "no" >&6; } 7650fi 7651 7652 if test "x$ac_ct_DSYMUTIL" = x; then 7653 DSYMUTIL=":" 7654 else 7655 case $cross_compiling:$ac_tool_warned in 7656yes:) 7657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7658printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7659ac_tool_warned=yes ;; 7660esac 7661 DSYMUTIL=$ac_ct_DSYMUTIL 7662 fi 7663else 7664 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7665fi 7666 7667 if test -n "$ac_tool_prefix"; then 7668 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7669set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7671printf %s "checking for $ac_word... " >&6; } 7672if test ${ac_cv_prog_NMEDIT+y} 7673then : 7674 printf %s "(cached) " >&6 7675else $as_nop 7676 if test -n "$NMEDIT"; then 7677 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7678else 7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7680for as_dir in $PATH 7681do 7682 IFS=$as_save_IFS 7683 case $as_dir in #((( 7684 '') as_dir=./ ;; 7685 */) ;; 7686 *) as_dir=$as_dir/ ;; 7687 esac 7688 for ac_exec_ext in '' $ac_executable_extensions; do 7689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7690 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7692 break 2 7693 fi 7694done 7695 done 7696IFS=$as_save_IFS 7697 7698fi 7699fi 7700NMEDIT=$ac_cv_prog_NMEDIT 7701if test -n "$NMEDIT"; then 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7703printf "%s\n" "$NMEDIT" >&6; } 7704else 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706printf "%s\n" "no" >&6; } 7707fi 7708 7709 7710fi 7711if test -z "$ac_cv_prog_NMEDIT"; then 7712 ac_ct_NMEDIT=$NMEDIT 7713 # Extract the first word of "nmedit", so it can be a program name with args. 7714set dummy nmedit; ac_word=$2 7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7716printf %s "checking for $ac_word... " >&6; } 7717if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7718then : 7719 printf %s "(cached) " >&6 7720else $as_nop 7721 if test -n "$ac_ct_NMEDIT"; then 7722 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7723else 7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7725for as_dir in $PATH 7726do 7727 IFS=$as_save_IFS 7728 case $as_dir in #((( 7729 '') as_dir=./ ;; 7730 */) ;; 7731 *) as_dir=$as_dir/ ;; 7732 esac 7733 for ac_exec_ext in '' $ac_executable_extensions; do 7734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7735 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7737 break 2 7738 fi 7739done 7740 done 7741IFS=$as_save_IFS 7742 7743fi 7744fi 7745ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7746if test -n "$ac_ct_NMEDIT"; then 7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7748printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7749else 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7751printf "%s\n" "no" >&6; } 7752fi 7753 7754 if test "x$ac_ct_NMEDIT" = x; then 7755 NMEDIT=":" 7756 else 7757 case $cross_compiling:$ac_tool_warned in 7758yes:) 7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7760printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7761ac_tool_warned=yes ;; 7762esac 7763 NMEDIT=$ac_ct_NMEDIT 7764 fi 7765else 7766 NMEDIT="$ac_cv_prog_NMEDIT" 7767fi 7768 7769 if test -n "$ac_tool_prefix"; then 7770 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7771set dummy ${ac_tool_prefix}lipo; ac_word=$2 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7773printf %s "checking for $ac_word... " >&6; } 7774if test ${ac_cv_prog_LIPO+y} 7775then : 7776 printf %s "(cached) " >&6 7777else $as_nop 7778 if test -n "$LIPO"; then 7779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7780else 7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782for as_dir in $PATH 7783do 7784 IFS=$as_save_IFS 7785 case $as_dir in #((( 7786 '') as_dir=./ ;; 7787 */) ;; 7788 *) as_dir=$as_dir/ ;; 7789 esac 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802LIPO=$ac_cv_prog_LIPO 7803if test -n "$LIPO"; then 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7805printf "%s\n" "$LIPO" >&6; } 7806else 7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808printf "%s\n" "no" >&6; } 7809fi 7810 7811 7812fi 7813if test -z "$ac_cv_prog_LIPO"; then 7814 ac_ct_LIPO=$LIPO 7815 # Extract the first word of "lipo", so it can be a program name with args. 7816set dummy lipo; ac_word=$2 7817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7818printf %s "checking for $ac_word... " >&6; } 7819if test ${ac_cv_prog_ac_ct_LIPO+y} 7820then : 7821 printf %s "(cached) " >&6 7822else $as_nop 7823 if test -n "$ac_ct_LIPO"; then 7824 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7825else 7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7827for as_dir in $PATH 7828do 7829 IFS=$as_save_IFS 7830 case $as_dir in #((( 7831 '') as_dir=./ ;; 7832 */) ;; 7833 *) as_dir=$as_dir/ ;; 7834 esac 7835 for ac_exec_ext in '' $ac_executable_extensions; do 7836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7837 ac_cv_prog_ac_ct_LIPO="lipo" 7838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7839 break 2 7840 fi 7841done 7842 done 7843IFS=$as_save_IFS 7844 7845fi 7846fi 7847ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7848if test -n "$ac_ct_LIPO"; then 7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7850printf "%s\n" "$ac_ct_LIPO" >&6; } 7851else 7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7853printf "%s\n" "no" >&6; } 7854fi 7855 7856 if test "x$ac_ct_LIPO" = x; then 7857 LIPO=":" 7858 else 7859 case $cross_compiling:$ac_tool_warned in 7860yes:) 7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7862printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7863ac_tool_warned=yes ;; 7864esac 7865 LIPO=$ac_ct_LIPO 7866 fi 7867else 7868 LIPO="$ac_cv_prog_LIPO" 7869fi 7870 7871 if test -n "$ac_tool_prefix"; then 7872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7873set dummy ${ac_tool_prefix}otool; ac_word=$2 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7875printf %s "checking for $ac_word... " >&6; } 7876if test ${ac_cv_prog_OTOOL+y} 7877then : 7878 printf %s "(cached) " >&6 7879else $as_nop 7880 if test -n "$OTOOL"; then 7881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 case $as_dir in #((( 7888 '') as_dir=./ ;; 7889 */) ;; 7890 *) as_dir=$as_dir/ ;; 7891 esac 7892 for ac_exec_ext in '' $ac_executable_extensions; do 7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7894 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7896 break 2 7897 fi 7898done 7899 done 7900IFS=$as_save_IFS 7901 7902fi 7903fi 7904OTOOL=$ac_cv_prog_OTOOL 7905if test -n "$OTOOL"; then 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7907printf "%s\n" "$OTOOL" >&6; } 7908else 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7910printf "%s\n" "no" >&6; } 7911fi 7912 7913 7914fi 7915if test -z "$ac_cv_prog_OTOOL"; then 7916 ac_ct_OTOOL=$OTOOL 7917 # Extract the first word of "otool", so it can be a program name with args. 7918set dummy otool; ac_word=$2 7919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7920printf %s "checking for $ac_word... " >&6; } 7921if test ${ac_cv_prog_ac_ct_OTOOL+y} 7922then : 7923 printf %s "(cached) " >&6 7924else $as_nop 7925 if test -n "$ac_ct_OTOOL"; then 7926 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7927else 7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7929for as_dir in $PATH 7930do 7931 IFS=$as_save_IFS 7932 case $as_dir in #((( 7933 '') as_dir=./ ;; 7934 */) ;; 7935 *) as_dir=$as_dir/ ;; 7936 esac 7937 for ac_exec_ext in '' $ac_executable_extensions; do 7938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7939 ac_cv_prog_ac_ct_OTOOL="otool" 7940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7941 break 2 7942 fi 7943done 7944 done 7945IFS=$as_save_IFS 7946 7947fi 7948fi 7949ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7950if test -n "$ac_ct_OTOOL"; then 7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7952printf "%s\n" "$ac_ct_OTOOL" >&6; } 7953else 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7955printf "%s\n" "no" >&6; } 7956fi 7957 7958 if test "x$ac_ct_OTOOL" = x; then 7959 OTOOL=":" 7960 else 7961 case $cross_compiling:$ac_tool_warned in 7962yes:) 7963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7964printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7965ac_tool_warned=yes ;; 7966esac 7967 OTOOL=$ac_ct_OTOOL 7968 fi 7969else 7970 OTOOL="$ac_cv_prog_OTOOL" 7971fi 7972 7973 if test -n "$ac_tool_prefix"; then 7974 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7975set dummy ${ac_tool_prefix}otool64; ac_word=$2 7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7977printf %s "checking for $ac_word... " >&6; } 7978if test ${ac_cv_prog_OTOOL64+y} 7979then : 7980 printf %s "(cached) " >&6 7981else $as_nop 7982 if test -n "$OTOOL64"; then 7983 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7984else 7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7986for as_dir in $PATH 7987do 7988 IFS=$as_save_IFS 7989 case $as_dir in #((( 7990 '') as_dir=./ ;; 7991 */) ;; 7992 *) as_dir=$as_dir/ ;; 7993 esac 7994 for ac_exec_ext in '' $ac_executable_extensions; do 7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7996 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7998 break 2 7999 fi 8000done 8001 done 8002IFS=$as_save_IFS 8003 8004fi 8005fi 8006OTOOL64=$ac_cv_prog_OTOOL64 8007if test -n "$OTOOL64"; then 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8009printf "%s\n" "$OTOOL64" >&6; } 8010else 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8012printf "%s\n" "no" >&6; } 8013fi 8014 8015 8016fi 8017if test -z "$ac_cv_prog_OTOOL64"; then 8018 ac_ct_OTOOL64=$OTOOL64 8019 # Extract the first word of "otool64", so it can be a program name with args. 8020set dummy otool64; ac_word=$2 8021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8022printf %s "checking for $ac_word... " >&6; } 8023if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8024then : 8025 printf %s "(cached) " >&6 8026else $as_nop 8027 if test -n "$ac_ct_OTOOL64"; then 8028 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8029else 8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8031for as_dir in $PATH 8032do 8033 IFS=$as_save_IFS 8034 case $as_dir in #((( 8035 '') as_dir=./ ;; 8036 */) ;; 8037 *) as_dir=$as_dir/ ;; 8038 esac 8039 for ac_exec_ext in '' $ac_executable_extensions; do 8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8041 ac_cv_prog_ac_ct_OTOOL64="otool64" 8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8043 break 2 8044 fi 8045done 8046 done 8047IFS=$as_save_IFS 8048 8049fi 8050fi 8051ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8052if test -n "$ac_ct_OTOOL64"; then 8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8054printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8055else 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8057printf "%s\n" "no" >&6; } 8058fi 8059 8060 if test "x$ac_ct_OTOOL64" = x; then 8061 OTOOL64=":" 8062 else 8063 case $cross_compiling:$ac_tool_warned in 8064yes:) 8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8066printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8067ac_tool_warned=yes ;; 8068esac 8069 OTOOL64=$ac_ct_OTOOL64 8070 fi 8071else 8072 OTOOL64="$ac_cv_prog_OTOOL64" 8073fi 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8102printf %s "checking for -single_module linker flag... " >&6; } 8103if test ${lt_cv_apple_cc_single_mod+y} 8104then : 8105 printf %s "(cached) " >&6 8106else $as_nop 8107 lt_cv_apple_cc_single_mod=no 8108 if test -z "$LT_MULTI_MODULE"; then 8109 # By default we will add the -single_module flag. You can override 8110 # by either setting the environment variable LT_MULTI_MODULE 8111 # non-empty at configure time, or by adding -multi_module to the 8112 # link flags. 8113 rm -rf libconftest.dylib* 8114 echo "int foo(void){return 1;}" > conftest.c 8115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8116-dynamiclib -Wl,-single_module conftest.c" >&5 8117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8119 _lt_result=$? 8120 # If there is a non-empty error log, and "single_module" 8121 # appears in it, assume the flag caused a linker warning 8122 if test -s conftest.err && $GREP single_module conftest.err; then 8123 cat conftest.err >&5 8124 # Otherwise, if the output was created with a 0 exit code from 8125 # the compiler, it worked. 8126 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8127 lt_cv_apple_cc_single_mod=yes 8128 else 8129 cat conftest.err >&5 8130 fi 8131 rm -rf libconftest.dylib* 8132 rm -f conftest.* 8133 fi 8134fi 8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8136printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8137 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8139printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8140if test ${lt_cv_ld_exported_symbols_list+y} 8141then : 8142 printf %s "(cached) " >&6 8143else $as_nop 8144 lt_cv_ld_exported_symbols_list=no 8145 save_LDFLAGS=$LDFLAGS 8146 echo "_main" > conftest.sym 8147 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149/* end confdefs.h. */ 8150 8151int 8152main (void) 8153{ 8154 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159if ac_fn_c_try_link "$LINENO" 8160then : 8161 lt_cv_ld_exported_symbols_list=yes 8162else $as_nop 8163 lt_cv_ld_exported_symbols_list=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8166 conftest$ac_exeext conftest.$ac_ext 8167 LDFLAGS=$save_LDFLAGS 8168 8169fi 8170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8171printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8172 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8174printf %s "checking for -force_load linker flag... " >&6; } 8175if test ${lt_cv_ld_force_load+y} 8176then : 8177 printf %s "(cached) " >&6 8178else $as_nop 8179 lt_cv_ld_force_load=no 8180 cat > conftest.c << _LT_EOF 8181int forced_loaded() { return 2;} 8182_LT_EOF 8183 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8184 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8185 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8186 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8187 echo "$RANLIB libconftest.a" >&5 8188 $RANLIB libconftest.a 2>&5 8189 cat > conftest.c << _LT_EOF 8190int main() { return 0;} 8191_LT_EOF 8192 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8193 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8194 _lt_result=$? 8195 if test -s conftest.err && $GREP force_load conftest.err; then 8196 cat conftest.err >&5 8197 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8198 lt_cv_ld_force_load=yes 8199 else 8200 cat conftest.err >&5 8201 fi 8202 rm -f conftest.err libconftest.a conftest conftest.c 8203 rm -rf conftest.dSYM 8204 8205fi 8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8207printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8208 case $host_os in 8209 rhapsody* | darwin1.[012]) 8210 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8211 darwin1.*) 8212 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8213 darwin*) 8214 case $MACOSX_DEPLOYMENT_TARGET,$host in 8215 10.[012],*|,*powerpc*-darwin[5-8]*) 8216 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8217 *) 8218 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8219 esac 8220 ;; 8221 esac 8222 if test yes = "$lt_cv_apple_cc_single_mod"; then 8223 _lt_dar_single_mod='$single_module' 8224 fi 8225 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8226 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8227 else 8228 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8229 fi 8230 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8231 _lt_dsymutil='~$DSYMUTIL $lib || :' 8232 else 8233 _lt_dsymutil= 8234 fi 8235 ;; 8236 esac 8237 8238# func_munge_path_list VARIABLE PATH 8239# ----------------------------------- 8240# VARIABLE is name of variable containing _space_ separated list of 8241# directories to be munged by the contents of PATH, which is string 8242# having a format: 8243# "DIR[:DIR]:" 8244# string "DIR[ DIR]" will be prepended to VARIABLE 8245# ":DIR[:DIR]" 8246# string "DIR[ DIR]" will be appended to VARIABLE 8247# "DIRP[:DIRP]::[DIRA:]DIRA" 8248# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8249# "DIRA[ DIRA]" will be appended to VARIABLE 8250# "DIR[:DIR]" 8251# VARIABLE will be replaced by "DIR[ DIR]" 8252func_munge_path_list () 8253{ 8254 case x$2 in 8255 x) 8256 ;; 8257 *:) 8258 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8259 ;; 8260 x:*) 8261 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8262 ;; 8263 *::*) 8264 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8265 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8266 ;; 8267 *) 8268 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8269 ;; 8270 esac 8271} 8272 8273ac_header= ac_cache= 8274for ac_item in $ac_header_c_list 8275do 8276 if test $ac_cache; then 8277 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8278 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8279 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8280 fi 8281 ac_header= ac_cache= 8282 elif test $ac_header; then 8283 ac_cache=$ac_item 8284 else 8285 ac_header=$ac_item 8286 fi 8287done 8288 8289 8290 8291 8292 8293 8294 8295 8296if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8297then : 8298 8299printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8300 8301fi 8302ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8303" 8304if test "x$ac_cv_header_dlfcn_h" = xyes 8305then : 8306 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8307 8308fi 8309 8310 8311 8312 8313 8314# Set options 8315 8316 8317 8318 enable_dlopen=no 8319 8320 8321 enable_win32_dll=no 8322 8323 8324 # Check whether --enable-shared was given. 8325if test ${enable_shared+y} 8326then : 8327 enableval=$enable_shared; p=${PACKAGE-default} 8328 case $enableval in 8329 yes) enable_shared=yes ;; 8330 no) enable_shared=no ;; 8331 *) 8332 enable_shared=no 8333 # Look at the argument we got. We use all the common list separators. 8334 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8335 for pkg in $enableval; do 8336 IFS=$lt_save_ifs 8337 if test "X$pkg" = "X$p"; then 8338 enable_shared=yes 8339 fi 8340 done 8341 IFS=$lt_save_ifs 8342 ;; 8343 esac 8344else $as_nop 8345 enable_shared=yes 8346fi 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 # Check whether --enable-static was given. 8357if test ${enable_static+y} 8358then : 8359 enableval=$enable_static; p=${PACKAGE-default} 8360 case $enableval in 8361 yes) enable_static=yes ;; 8362 no) enable_static=no ;; 8363 *) 8364 enable_static=no 8365 # Look at the argument we got. We use all the common list separators. 8366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8367 for pkg in $enableval; do 8368 IFS=$lt_save_ifs 8369 if test "X$pkg" = "X$p"; then 8370 enable_static=yes 8371 fi 8372 done 8373 IFS=$lt_save_ifs 8374 ;; 8375 esac 8376else $as_nop 8377 enable_static=yes 8378fi 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389# Check whether --with-pic was given. 8390if test ${with_pic+y} 8391then : 8392 withval=$with_pic; lt_p=${PACKAGE-default} 8393 case $withval in 8394 yes|no) pic_mode=$withval ;; 8395 *) 8396 pic_mode=default 8397 # Look at the argument we got. We use all the common list separators. 8398 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8399 for lt_pkg in $withval; do 8400 IFS=$lt_save_ifs 8401 if test "X$lt_pkg" = "X$lt_p"; then 8402 pic_mode=yes 8403 fi 8404 done 8405 IFS=$lt_save_ifs 8406 ;; 8407 esac 8408else $as_nop 8409 pic_mode=default 8410fi 8411 8412 8413 8414 8415 8416 8417 8418 8419 # Check whether --enable-fast-install was given. 8420if test ${enable_fast_install+y} 8421then : 8422 enableval=$enable_fast_install; p=${PACKAGE-default} 8423 case $enableval in 8424 yes) enable_fast_install=yes ;; 8425 no) enable_fast_install=no ;; 8426 *) 8427 enable_fast_install=no 8428 # Look at the argument we got. We use all the common list separators. 8429 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8430 for pkg in $enableval; do 8431 IFS=$lt_save_ifs 8432 if test "X$pkg" = "X$p"; then 8433 enable_fast_install=yes 8434 fi 8435 done 8436 IFS=$lt_save_ifs 8437 ;; 8438 esac 8439else $as_nop 8440 enable_fast_install=yes 8441fi 8442 8443 8444 8445 8446 8447 8448 8449 8450 shared_archive_member_spec= 8451case $host,$enable_shared in 8452power*-*-aix[5-9]*,yes) 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8454printf %s "checking which variant of shared library versioning to provide... " >&6; } 8455 8456# Check whether --with-aix-soname was given. 8457if test ${with_aix_soname+y} 8458then : 8459 withval=$with_aix_soname; case $withval in 8460 aix|svr4|both) 8461 ;; 8462 *) 8463 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8464 ;; 8465 esac 8466 lt_cv_with_aix_soname=$with_aix_soname 8467else $as_nop 8468 if test ${lt_cv_with_aix_soname+y} 8469then : 8470 printf %s "(cached) " >&6 8471else $as_nop 8472 lt_cv_with_aix_soname=aix 8473fi 8474 8475 with_aix_soname=$lt_cv_with_aix_soname 8476fi 8477 8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8479printf "%s\n" "$with_aix_soname" >&6; } 8480 if test aix != "$with_aix_soname"; then 8481 # For the AIX way of multilib, we name the shared archive member 8482 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8483 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8484 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8485 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8486 if test 64 = "${OBJECT_MODE-32}"; then 8487 shared_archive_member_spec=shr_64 8488 else 8489 shared_archive_member_spec=shr 8490 fi 8491 fi 8492 ;; 8493*) 8494 with_aix_soname=aix 8495 ;; 8496esac 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507# This can be used to rebuild libtool when needed 8508LIBTOOL_DEPS=$ltmain 8509 8510# Always use our own libtool. 8511LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542test -z "$LN_S" && LN_S="ln -s" 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557if test -n "${ZSH_VERSION+set}"; then 8558 setopt NO_GLOB_SUBST 8559fi 8560 8561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8562printf %s "checking for objdir... " >&6; } 8563if test ${lt_cv_objdir+y} 8564then : 8565 printf %s "(cached) " >&6 8566else $as_nop 8567 rm -f .libs 2>/dev/null 8568mkdir .libs 2>/dev/null 8569if test -d .libs; then 8570 lt_cv_objdir=.libs 8571else 8572 # MS-DOS does not allow filenames that begin with a dot. 8573 lt_cv_objdir=_libs 8574fi 8575rmdir .libs 2>/dev/null 8576fi 8577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8578printf "%s\n" "$lt_cv_objdir" >&6; } 8579objdir=$lt_cv_objdir 8580 8581 8582 8583 8584 8585printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8586 8587 8588 8589 8590case $host_os in 8591aix3*) 8592 # AIX sometimes has problems with the GCC collect2 program. For some 8593 # reason, if we set the COLLECT_NAMES environment variable, the problems 8594 # vanish in a puff of smoke. 8595 if test set != "${COLLECT_NAMES+set}"; then 8596 COLLECT_NAMES= 8597 export COLLECT_NAMES 8598 fi 8599 ;; 8600esac 8601 8602# Global variables: 8603ofile=libtool 8604can_build_shared=yes 8605 8606# All known linkers require a '.a' archive for static linking (except MSVC and 8607# ICC, which need '.lib'). 8608libext=a 8609 8610with_gnu_ld=$lt_cv_prog_gnu_ld 8611 8612old_CC=$CC 8613old_CFLAGS=$CFLAGS 8614 8615# Set sane defaults for various variables 8616test -z "$CC" && CC=cc 8617test -z "$LTCC" && LTCC=$CC 8618test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8619test -z "$LD" && LD=ld 8620test -z "$ac_objext" && ac_objext=o 8621 8622func_cc_basename $compiler 8623cc_basename=$func_cc_basename_result 8624 8625 8626# Only perform the check for file, if the check method requires it 8627test -z "$MAGIC_CMD" && MAGIC_CMD=file 8628case $deplibs_check_method in 8629file_magic*) 8630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8632printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8633if test ${lt_cv_path_MAGIC_CMD+y} 8634then : 8635 printf %s "(cached) " >&6 8636else $as_nop 8637 case $MAGIC_CMD in 8638[\\/*] | ?:[\\/]*) 8639 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8640 ;; 8641*) 8642 lt_save_MAGIC_CMD=$MAGIC_CMD 8643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8645 for ac_dir in $ac_dummy; do 8646 IFS=$lt_save_ifs 8647 test -z "$ac_dir" && ac_dir=. 8648 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8649 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8650 if test -n "$file_magic_test_file"; then 8651 case $deplibs_check_method in 8652 "file_magic "*) 8653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8654 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8656 $EGREP "$file_magic_regex" > /dev/null; then 8657 : 8658 else 8659 cat <<_LT_EOF 1>&2 8660 8661*** Warning: the command libtool uses to detect shared libraries, 8662*** $file_magic_cmd, produces output that libtool cannot recognize. 8663*** The result is that libtool may fail to recognize shared libraries 8664*** as such. This will affect the creation of libtool libraries that 8665*** depend on shared libraries, but programs linked with such libtool 8666*** libraries will work regardless of this problem. Nevertheless, you 8667*** may want to report the problem to your system manager and/or to 8668*** bug-libtool@gnu.org 8669 8670_LT_EOF 8671 fi ;; 8672 esac 8673 fi 8674 break 8675 fi 8676 done 8677 IFS=$lt_save_ifs 8678 MAGIC_CMD=$lt_save_MAGIC_CMD 8679 ;; 8680esac 8681fi 8682 8683MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8684if test -n "$MAGIC_CMD"; then 8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8686printf "%s\n" "$MAGIC_CMD" >&6; } 8687else 8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8689printf "%s\n" "no" >&6; } 8690fi 8691 8692 8693 8694 8695 8696if test -z "$lt_cv_path_MAGIC_CMD"; then 8697 if test -n "$ac_tool_prefix"; then 8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8699printf %s "checking for file... " >&6; } 8700if test ${lt_cv_path_MAGIC_CMD+y} 8701then : 8702 printf %s "(cached) " >&6 8703else $as_nop 8704 case $MAGIC_CMD in 8705[\\/*] | ?:[\\/]*) 8706 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8707 ;; 8708*) 8709 lt_save_MAGIC_CMD=$MAGIC_CMD 8710 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8712 for ac_dir in $ac_dummy; do 8713 IFS=$lt_save_ifs 8714 test -z "$ac_dir" && ac_dir=. 8715 if test -f "$ac_dir/file"; then 8716 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8717 if test -n "$file_magic_test_file"; then 8718 case $deplibs_check_method in 8719 "file_magic "*) 8720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8723 $EGREP "$file_magic_regex" > /dev/null; then 8724 : 8725 else 8726 cat <<_LT_EOF 1>&2 8727 8728*** Warning: the command libtool uses to detect shared libraries, 8729*** $file_magic_cmd, produces output that libtool cannot recognize. 8730*** The result is that libtool may fail to recognize shared libraries 8731*** as such. This will affect the creation of libtool libraries that 8732*** depend on shared libraries, but programs linked with such libtool 8733*** libraries will work regardless of this problem. Nevertheless, you 8734*** may want to report the problem to your system manager and/or to 8735*** bug-libtool@gnu.org 8736 8737_LT_EOF 8738 fi ;; 8739 esac 8740 fi 8741 break 8742 fi 8743 done 8744 IFS=$lt_save_ifs 8745 MAGIC_CMD=$lt_save_MAGIC_CMD 8746 ;; 8747esac 8748fi 8749 8750MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8751if test -n "$MAGIC_CMD"; then 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8753printf "%s\n" "$MAGIC_CMD" >&6; } 8754else 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8756printf "%s\n" "no" >&6; } 8757fi 8758 8759 8760 else 8761 MAGIC_CMD=: 8762 fi 8763fi 8764 8765 fi 8766 ;; 8767esac 8768 8769# Use C for the default configuration in the libtool script 8770 8771lt_save_CC=$CC 8772ac_ext=c 8773ac_cpp='$CPP $CPPFLAGS' 8774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8776ac_compiler_gnu=$ac_cv_c_compiler_gnu 8777 8778 8779# Source file extension for C test sources. 8780ac_ext=c 8781 8782# Object file extension for compiled C test sources. 8783objext=o 8784objext=$objext 8785 8786# Code to be used in simple compile tests 8787lt_simple_compile_test_code="int some_variable = 0;" 8788 8789# Code to be used in simple link tests 8790lt_simple_link_test_code='int main(){return(0);}' 8791 8792 8793 8794 8795 8796 8797 8798# If no C compiler was specified, use CC. 8799LTCC=${LTCC-"$CC"} 8800 8801# If no C compiler flags were specified, use CFLAGS. 8802LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8803 8804# Allow CC to be a program name with arguments. 8805compiler=$CC 8806 8807# Save the default compiler, since it gets overwritten when the other 8808# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8809compiler_DEFAULT=$CC 8810 8811# save warnings/boilerplate of simple test code 8812ac_outfile=conftest.$ac_objext 8813echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8815_lt_compiler_boilerplate=`cat conftest.err` 8816$RM conftest* 8817 8818ac_outfile=conftest.$ac_objext 8819echo "$lt_simple_link_test_code" >conftest.$ac_ext 8820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8821_lt_linker_boilerplate=`cat conftest.err` 8822$RM -r conftest* 8823 8824 8825if test -n "$compiler"; then 8826 8827lt_prog_compiler_no_builtin_flag= 8828 8829if test yes = "$GCC"; then 8830 case $cc_basename in 8831 nvcc*) 8832 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8833 *) 8834 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8835 esac 8836 8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8838printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8839if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8840then : 8841 printf %s "(cached) " >&6 8842else $as_nop 8843 lt_cv_prog_compiler_rtti_exceptions=no 8844 ac_outfile=conftest.$ac_objext 8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8846 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8847 # Insert the option either (1) after the last *FLAGS variable, or 8848 # (2) before a word containing "conftest.", or (3) at the end. 8849 # Note that $ac_compile itself does not contain backslashes and begins 8850 # with a dollar sign (not a hyphen), so the echo should work correctly. 8851 # The option is referenced via a variable to avoid confusing sed. 8852 lt_compile=`echo "$ac_compile" | $SED \ 8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8855 -e 's:$: $lt_compiler_flag:'` 8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8857 (eval "$lt_compile" 2>conftest.err) 8858 ac_status=$? 8859 cat conftest.err >&5 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8861 if (exit $ac_status) && test -s "$ac_outfile"; then 8862 # The compiler can only warn and ignore the option if not recognized 8863 # So say no if there are warnings other than the usual output. 8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8867 lt_cv_prog_compiler_rtti_exceptions=yes 8868 fi 8869 fi 8870 $RM conftest* 8871 8872fi 8873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8874printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8875 8876if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8877 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8878else 8879 : 8880fi 8881 8882fi 8883 8884 8885 8886 8887 8888 8889 lt_prog_compiler_wl= 8890lt_prog_compiler_pic= 8891lt_prog_compiler_static= 8892 8893 8894 if test yes = "$GCC"; then 8895 lt_prog_compiler_wl='-Wl,' 8896 lt_prog_compiler_static='-static' 8897 8898 case $host_os in 8899 aix*) 8900 # All AIX code is PIC. 8901 if test ia64 = "$host_cpu"; then 8902 # AIX 5 now supports IA64 processor 8903 lt_prog_compiler_static='-Bstatic' 8904 fi 8905 lt_prog_compiler_pic='-fPIC' 8906 ;; 8907 8908 amigaos*) 8909 case $host_cpu in 8910 powerpc) 8911 # see comment about AmigaOS4 .so support 8912 lt_prog_compiler_pic='-fPIC' 8913 ;; 8914 m68k) 8915 # FIXME: we need at least 68020 code to build shared libraries, but 8916 # adding the '-m68020' flag to GCC prevents building anything better, 8917 # like '-m68040'. 8918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8919 ;; 8920 esac 8921 ;; 8922 8923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8924 # PIC is the default for these OSes. 8925 ;; 8926 8927 mingw* | cygwin* | pw32* | os2* | cegcc*) 8928 # This hack is so that the source file can tell whether it is being 8929 # built for inclusion in a dll (and should export symbols for example). 8930 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8931 # (--disable-auto-import) libraries 8932 lt_prog_compiler_pic='-DDLL_EXPORT' 8933 case $host_os in 8934 os2*) 8935 lt_prog_compiler_static='$wl-static' 8936 ;; 8937 esac 8938 ;; 8939 8940 darwin* | rhapsody*) 8941 # PIC is the default on this platform 8942 # Common symbols not allowed in MH_DYLIB files 8943 lt_prog_compiler_pic='-fno-common' 8944 ;; 8945 8946 haiku*) 8947 # PIC is the default for Haiku. 8948 # The "-static" flag exists, but is broken. 8949 lt_prog_compiler_static= 8950 ;; 8951 8952 hpux*) 8953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8955 # sets the default TLS model and affects inlining. 8956 case $host_cpu in 8957 hppa*64*) 8958 # +Z the default 8959 ;; 8960 *) 8961 lt_prog_compiler_pic='-fPIC' 8962 ;; 8963 esac 8964 ;; 8965 8966 interix[3-9]*) 8967 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8968 # Instead, we relocate shared libraries at runtime. 8969 ;; 8970 8971 msdosdjgpp*) 8972 # Just because we use GCC doesn't mean we suddenly get shared libraries 8973 # on systems that don't support them. 8974 lt_prog_compiler_can_build_shared=no 8975 enable_shared=no 8976 ;; 8977 8978 *nto* | *qnx*) 8979 # QNX uses GNU C++, but need to define -shared option too, otherwise 8980 # it will coredump. 8981 lt_prog_compiler_pic='-fPIC -shared' 8982 ;; 8983 8984 sysv4*MP*) 8985 if test -d /usr/nec; then 8986 lt_prog_compiler_pic=-Kconform_pic 8987 fi 8988 ;; 8989 8990 *) 8991 lt_prog_compiler_pic='-fPIC' 8992 ;; 8993 esac 8994 8995 case $cc_basename in 8996 nvcc*) # Cuda Compiler Driver 2.2 8997 lt_prog_compiler_wl='-Xlinker ' 8998 if test -n "$lt_prog_compiler_pic"; then 8999 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9000 fi 9001 ;; 9002 esac 9003 else 9004 # PORTME Check for flag to pass linker flags through the system compiler. 9005 case $host_os in 9006 aix*) 9007 lt_prog_compiler_wl='-Wl,' 9008 if test ia64 = "$host_cpu"; then 9009 # AIX 5 now supports IA64 processor 9010 lt_prog_compiler_static='-Bstatic' 9011 else 9012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9013 fi 9014 ;; 9015 9016 darwin* | rhapsody*) 9017 # PIC is the default on this platform 9018 # Common symbols not allowed in MH_DYLIB files 9019 lt_prog_compiler_pic='-fno-common' 9020 case $cc_basename in 9021 nagfor*) 9022 # NAG Fortran compiler 9023 lt_prog_compiler_wl='-Wl,-Wl,,' 9024 lt_prog_compiler_pic='-PIC' 9025 lt_prog_compiler_static='-Bstatic' 9026 ;; 9027 esac 9028 ;; 9029 9030 mingw* | cygwin* | pw32* | os2* | cegcc*) 9031 # This hack is so that the source file can tell whether it is being 9032 # built for inclusion in a dll (and should export symbols for example). 9033 lt_prog_compiler_pic='-DDLL_EXPORT' 9034 case $host_os in 9035 os2*) 9036 lt_prog_compiler_static='$wl-static' 9037 ;; 9038 esac 9039 ;; 9040 9041 hpux9* | hpux10* | hpux11*) 9042 lt_prog_compiler_wl='-Wl,' 9043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9044 # not for PA HP-UX. 9045 case $host_cpu in 9046 hppa*64*|ia64*) 9047 # +Z the default 9048 ;; 9049 *) 9050 lt_prog_compiler_pic='+Z' 9051 ;; 9052 esac 9053 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9054 lt_prog_compiler_static='$wl-a ${wl}archive' 9055 ;; 9056 9057 irix5* | irix6* | nonstopux*) 9058 lt_prog_compiler_wl='-Wl,' 9059 # PIC (with -KPIC) is the default. 9060 lt_prog_compiler_static='-non_shared' 9061 ;; 9062 9063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9064 case $cc_basename in 9065 # old Intel for x86_64, which still supported -KPIC. 9066 ecc*) 9067 lt_prog_compiler_wl='-Wl,' 9068 lt_prog_compiler_pic='-KPIC' 9069 lt_prog_compiler_static='-static' 9070 ;; 9071 # icc used to be incompatible with GCC. 9072 # ICC 10 doesn't accept -KPIC any more. 9073 icc* | ifort*) 9074 lt_prog_compiler_wl='-Wl,' 9075 lt_prog_compiler_pic='-fPIC' 9076 lt_prog_compiler_static='-static' 9077 ;; 9078 # Lahey Fortran 8.1. 9079 lf95*) 9080 lt_prog_compiler_wl='-Wl,' 9081 lt_prog_compiler_pic='--shared' 9082 lt_prog_compiler_static='--static' 9083 ;; 9084 nagfor*) 9085 # NAG Fortran compiler 9086 lt_prog_compiler_wl='-Wl,-Wl,,' 9087 lt_prog_compiler_pic='-PIC' 9088 lt_prog_compiler_static='-Bstatic' 9089 ;; 9090 tcc*) 9091 # Fabrice Bellard et al's Tiny C Compiler 9092 lt_prog_compiler_wl='-Wl,' 9093 lt_prog_compiler_pic='-fPIC' 9094 lt_prog_compiler_static='-static' 9095 ;; 9096 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9097 # Portland Group compilers (*not* the Pentium gcc compiler, 9098 # which looks to be a dead project) 9099 lt_prog_compiler_wl='-Wl,' 9100 lt_prog_compiler_pic='-fpic' 9101 lt_prog_compiler_static='-Bstatic' 9102 ;; 9103 ccc*) 9104 lt_prog_compiler_wl='-Wl,' 9105 # All Alpha code is PIC. 9106 lt_prog_compiler_static='-non_shared' 9107 ;; 9108 xl* | bgxl* | bgf* | mpixl*) 9109 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9110 lt_prog_compiler_wl='-Wl,' 9111 lt_prog_compiler_pic='-qpic' 9112 lt_prog_compiler_static='-qstaticlink' 9113 ;; 9114 *) 9115 case `$CC -V 2>&1 | $SED 5q` in 9116 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9117 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9118 lt_prog_compiler_pic='-KPIC' 9119 lt_prog_compiler_static='-Bstatic' 9120 lt_prog_compiler_wl='' 9121 ;; 9122 *Sun\ F* | *Sun*Fortran*) 9123 lt_prog_compiler_pic='-KPIC' 9124 lt_prog_compiler_static='-Bstatic' 9125 lt_prog_compiler_wl='-Qoption ld ' 9126 ;; 9127 *Sun\ C*) 9128 # Sun C 5.9 9129 lt_prog_compiler_pic='-KPIC' 9130 lt_prog_compiler_static='-Bstatic' 9131 lt_prog_compiler_wl='-Wl,' 9132 ;; 9133 *Intel*\ [CF]*Compiler*) 9134 lt_prog_compiler_wl='-Wl,' 9135 lt_prog_compiler_pic='-fPIC' 9136 lt_prog_compiler_static='-static' 9137 ;; 9138 *Portland\ Group*) 9139 lt_prog_compiler_wl='-Wl,' 9140 lt_prog_compiler_pic='-fpic' 9141 lt_prog_compiler_static='-Bstatic' 9142 ;; 9143 esac 9144 ;; 9145 esac 9146 ;; 9147 9148 newsos6) 9149 lt_prog_compiler_pic='-KPIC' 9150 lt_prog_compiler_static='-Bstatic' 9151 ;; 9152 9153 *nto* | *qnx*) 9154 # QNX uses GNU C++, but need to define -shared option too, otherwise 9155 # it will coredump. 9156 lt_prog_compiler_pic='-fPIC -shared' 9157 ;; 9158 9159 osf3* | osf4* | osf5*) 9160 lt_prog_compiler_wl='-Wl,' 9161 # All OSF/1 code is PIC. 9162 lt_prog_compiler_static='-non_shared' 9163 ;; 9164 9165 rdos*) 9166 lt_prog_compiler_static='-non_shared' 9167 ;; 9168 9169 solaris*) 9170 lt_prog_compiler_pic='-KPIC' 9171 lt_prog_compiler_static='-Bstatic' 9172 case $cc_basename in 9173 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9174 lt_prog_compiler_wl='-Qoption ld ';; 9175 *) 9176 lt_prog_compiler_wl='-Wl,';; 9177 esac 9178 ;; 9179 9180 sunos4*) 9181 lt_prog_compiler_wl='-Qoption ld ' 9182 lt_prog_compiler_pic='-PIC' 9183 lt_prog_compiler_static='-Bstatic' 9184 ;; 9185 9186 sysv4 | sysv4.2uw2* | sysv4.3*) 9187 lt_prog_compiler_wl='-Wl,' 9188 lt_prog_compiler_pic='-KPIC' 9189 lt_prog_compiler_static='-Bstatic' 9190 ;; 9191 9192 sysv4*MP*) 9193 if test -d /usr/nec; then 9194 lt_prog_compiler_pic='-Kconform_pic' 9195 lt_prog_compiler_static='-Bstatic' 9196 fi 9197 ;; 9198 9199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9200 lt_prog_compiler_wl='-Wl,' 9201 lt_prog_compiler_pic='-KPIC' 9202 lt_prog_compiler_static='-Bstatic' 9203 ;; 9204 9205 unicos*) 9206 lt_prog_compiler_wl='-Wl,' 9207 lt_prog_compiler_can_build_shared=no 9208 ;; 9209 9210 uts4*) 9211 lt_prog_compiler_pic='-pic' 9212 lt_prog_compiler_static='-Bstatic' 9213 ;; 9214 9215 *) 9216 lt_prog_compiler_can_build_shared=no 9217 ;; 9218 esac 9219 fi 9220 9221case $host_os in 9222 # For platforms that do not support PIC, -DPIC is meaningless: 9223 *djgpp*) 9224 lt_prog_compiler_pic= 9225 ;; 9226 *) 9227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9228 ;; 9229esac 9230 9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9232printf %s "checking for $compiler option to produce PIC... " >&6; } 9233if test ${lt_cv_prog_compiler_pic+y} 9234then : 9235 printf %s "(cached) " >&6 9236else $as_nop 9237 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9238fi 9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9240printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9241lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9242 9243# 9244# Check to make sure the PIC flag actually works. 9245# 9246if test -n "$lt_prog_compiler_pic"; then 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9248printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9249if test ${lt_cv_prog_compiler_pic_works+y} 9250then : 9251 printf %s "(cached) " >&6 9252else $as_nop 9253 lt_cv_prog_compiler_pic_works=no 9254 ac_outfile=conftest.$ac_objext 9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9257 # Insert the option either (1) after the last *FLAGS variable, or 9258 # (2) before a word containing "conftest.", or (3) at the end. 9259 # Note that $ac_compile itself does not contain backslashes and begins 9260 # with a dollar sign (not a hyphen), so the echo should work correctly. 9261 # The option is referenced via a variable to avoid confusing sed. 9262 lt_compile=`echo "$ac_compile" | $SED \ 9263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9265 -e 's:$: $lt_compiler_flag:'` 9266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9267 (eval "$lt_compile" 2>conftest.err) 9268 ac_status=$? 9269 cat conftest.err >&5 9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9271 if (exit $ac_status) && test -s "$ac_outfile"; then 9272 # The compiler can only warn and ignore the option if not recognized 9273 # So say no if there are warnings other than the usual output. 9274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9277 lt_cv_prog_compiler_pic_works=yes 9278 fi 9279 fi 9280 $RM conftest* 9281 9282fi 9283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9284printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9285 9286if test yes = "$lt_cv_prog_compiler_pic_works"; then 9287 case $lt_prog_compiler_pic in 9288 "" | " "*) ;; 9289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9290 esac 9291else 9292 lt_prog_compiler_pic= 9293 lt_prog_compiler_can_build_shared=no 9294fi 9295 9296fi 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308# 9309# Check to make sure the static flag actually works. 9310# 9311wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9313printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9314if test ${lt_cv_prog_compiler_static_works+y} 9315then : 9316 printf %s "(cached) " >&6 9317else $as_nop 9318 lt_cv_prog_compiler_static_works=no 9319 save_LDFLAGS=$LDFLAGS 9320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9321 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9323 # The linker can only warn and ignore the option if not recognized 9324 # So say no if there are warnings 9325 if test -s conftest.err; then 9326 # Append any errors to the config.log. 9327 cat conftest.err 1>&5 9328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9330 if diff conftest.exp conftest.er2 >/dev/null; then 9331 lt_cv_prog_compiler_static_works=yes 9332 fi 9333 else 9334 lt_cv_prog_compiler_static_works=yes 9335 fi 9336 fi 9337 $RM -r conftest* 9338 LDFLAGS=$save_LDFLAGS 9339 9340fi 9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9342printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9343 9344if test yes = "$lt_cv_prog_compiler_static_works"; then 9345 : 9346else 9347 lt_prog_compiler_static= 9348fi 9349 9350 9351 9352 9353 9354 9355 9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9357printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9358if test ${lt_cv_prog_compiler_c_o+y} 9359then : 9360 printf %s "(cached) " >&6 9361else $as_nop 9362 lt_cv_prog_compiler_c_o=no 9363 $RM -r conftest 2>/dev/null 9364 mkdir conftest 9365 cd conftest 9366 mkdir out 9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9368 9369 lt_compiler_flag="-o out/conftest2.$ac_objext" 9370 # Insert the option either (1) after the last *FLAGS variable, or 9371 # (2) before a word containing "conftest.", or (3) at the end. 9372 # Note that $ac_compile itself does not contain backslashes and begins 9373 # with a dollar sign (not a hyphen), so the echo should work correctly. 9374 lt_compile=`echo "$ac_compile" | $SED \ 9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9377 -e 's:$: $lt_compiler_flag:'` 9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9379 (eval "$lt_compile" 2>out/conftest.err) 9380 ac_status=$? 9381 cat out/conftest.err >&5 9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9383 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9384 then 9385 # The compiler can only warn and ignore the option if not recognized 9386 # So say no if there are warnings 9387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9390 lt_cv_prog_compiler_c_o=yes 9391 fi 9392 fi 9393 chmod u+w . 2>&5 9394 $RM conftest* 9395 # SGI C++ compiler will create directory out/ii_files/ for 9396 # template instantiation 9397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9398 $RM out/* && rmdir out 9399 cd .. 9400 $RM -r conftest 9401 $RM conftest* 9402 9403fi 9404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9405printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9406 9407 9408 9409 9410 9411 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9413printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9414if test ${lt_cv_prog_compiler_c_o+y} 9415then : 9416 printf %s "(cached) " >&6 9417else $as_nop 9418 lt_cv_prog_compiler_c_o=no 9419 $RM -r conftest 2>/dev/null 9420 mkdir conftest 9421 cd conftest 9422 mkdir out 9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9424 9425 lt_compiler_flag="-o out/conftest2.$ac_objext" 9426 # Insert the option either (1) after the last *FLAGS variable, or 9427 # (2) before a word containing "conftest.", or (3) at the end. 9428 # Note that $ac_compile itself does not contain backslashes and begins 9429 # with a dollar sign (not a hyphen), so the echo should work correctly. 9430 lt_compile=`echo "$ac_compile" | $SED \ 9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9433 -e 's:$: $lt_compiler_flag:'` 9434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9435 (eval "$lt_compile" 2>out/conftest.err) 9436 ac_status=$? 9437 cat out/conftest.err >&5 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9440 then 9441 # The compiler can only warn and ignore the option if not recognized 9442 # So say no if there are warnings 9443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9446 lt_cv_prog_compiler_c_o=yes 9447 fi 9448 fi 9449 chmod u+w . 2>&5 9450 $RM conftest* 9451 # SGI C++ compiler will create directory out/ii_files/ for 9452 # template instantiation 9453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9454 $RM out/* && rmdir out 9455 cd .. 9456 $RM -r conftest 9457 $RM conftest* 9458 9459fi 9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9461printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9462 9463 9464 9465 9466hard_links=nottested 9467if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9468 # do not overwrite the value of need_locks provided by the user 9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9470printf %s "checking if we can lock with hard links... " >&6; } 9471 hard_links=yes 9472 $RM conftest* 9473 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9474 touch conftest.a 9475 ln conftest.a conftest.b 2>&5 || hard_links=no 9476 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9478printf "%s\n" "$hard_links" >&6; } 9479 if test no = "$hard_links"; then 9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9481printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9482 need_locks=warn 9483 fi 9484else 9485 need_locks=no 9486fi 9487 9488 9489 9490 9491 9492 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9494printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9495 9496 runpath_var= 9497 allow_undefined_flag= 9498 always_export_symbols=no 9499 archive_cmds= 9500 archive_expsym_cmds= 9501 compiler_needs_object=no 9502 enable_shared_with_static_runtimes=no 9503 export_dynamic_flag_spec= 9504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9505 hardcode_automatic=no 9506 hardcode_direct=no 9507 hardcode_direct_absolute=no 9508 hardcode_libdir_flag_spec= 9509 hardcode_libdir_separator= 9510 hardcode_minus_L=no 9511 hardcode_shlibpath_var=unsupported 9512 inherit_rpath=no 9513 link_all_deplibs=unknown 9514 module_cmds= 9515 module_expsym_cmds= 9516 old_archive_from_new_cmds= 9517 old_archive_from_expsyms_cmds= 9518 thread_safe_flag_spec= 9519 whole_archive_flag_spec= 9520 # include_expsyms should be a list of space-separated symbols to be *always* 9521 # included in the symbol list 9522 include_expsyms= 9523 # exclude_expsyms can be an extended regexp of symbols to exclude 9524 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9525 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9526 # as well as any symbol that contains 'd'. 9527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9529 # platforms (ab)use it in PIC code, but their linkers get confused if 9530 # the symbol is explicitly referenced. Since portable code cannot 9531 # rely on this symbol name, it's probably fine to never include it in 9532 # preloaded symbol tables. 9533 # Exclude shared library initialization/finalization symbols. 9534 extract_expsyms_cmds= 9535 9536 case $host_os in 9537 cygwin* | mingw* | pw32* | cegcc*) 9538 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9539 # When not using gcc, we currently assume that we are using 9540 # Microsoft Visual C++ or Intel C++ Compiler. 9541 if test yes != "$GCC"; then 9542 with_gnu_ld=no 9543 fi 9544 ;; 9545 interix*) 9546 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9547 with_gnu_ld=yes 9548 ;; 9549 openbsd* | bitrig*) 9550 with_gnu_ld=no 9551 ;; 9552 esac 9553 9554 ld_shlibs=yes 9555 9556 # On some targets, GNU ld is compatible enough with the native linker 9557 # that we're better off using the native interface for both. 9558 lt_use_gnu_ld_interface=no 9559 if test yes = "$with_gnu_ld"; then 9560 case $host_os in 9561 aix*) 9562 # The AIX port of GNU ld has always aspired to compatibility 9563 # with the native linker. However, as the warning in the GNU ld 9564 # block says, versions before 2.19.5* couldn't really create working 9565 # shared libraries, regardless of the interface used. 9566 case `$LD -v 2>&1` in 9567 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9568 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9569 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9570 *) 9571 lt_use_gnu_ld_interface=yes 9572 ;; 9573 esac 9574 ;; 9575 *) 9576 lt_use_gnu_ld_interface=yes 9577 ;; 9578 esac 9579 fi 9580 9581 if test yes = "$lt_use_gnu_ld_interface"; then 9582 # If archive_cmds runs LD, not CC, wlarc should be empty 9583 wlarc='$wl' 9584 9585 # Set some defaults for GNU ld with shared library support. These 9586 # are reset later if shared libraries are not supported. Putting them 9587 # here allows them to be overridden if necessary. 9588 runpath_var=LD_RUN_PATH 9589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9590 export_dynamic_flag_spec='$wl--export-dynamic' 9591 # ancient GNU ld didn't support --whole-archive et. al. 9592 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9593 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9594 else 9595 whole_archive_flag_spec= 9596 fi 9597 supports_anon_versioning=no 9598 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9599 *GNU\ gold*) supports_anon_versioning=yes ;; 9600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9603 *\ 2.11.*) ;; # other 2.11 versions 9604 *) supports_anon_versioning=yes ;; 9605 esac 9606 9607 # See if GNU ld supports shared libraries. 9608 case $host_os in 9609 aix[3-9]*) 9610 # On AIX/PPC, the GNU linker is very broken 9611 if test ia64 != "$host_cpu"; then 9612 ld_shlibs=no 9613 cat <<_LT_EOF 1>&2 9614 9615*** Warning: the GNU linker, at least up to release 2.19, is reported 9616*** to be unable to reliably create shared libraries on AIX. 9617*** Therefore, libtool is disabling shared libraries support. If you 9618*** really care for shared libraries, you may want to install binutils 9619*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9620*** You will then need to restart the configuration process. 9621 9622_LT_EOF 9623 fi 9624 ;; 9625 9626 amigaos*) 9627 case $host_cpu in 9628 powerpc) 9629 # see comment about AmigaOS4 .so support 9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9631 archive_expsym_cmds='' 9632 ;; 9633 m68k) 9634 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)' 9635 hardcode_libdir_flag_spec='-L$libdir' 9636 hardcode_minus_L=yes 9637 ;; 9638 esac 9639 ;; 9640 9641 beos*) 9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9643 allow_undefined_flag=unsupported 9644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9645 # support --undefined. This deserves some investigation. FIXME 9646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9647 else 9648 ld_shlibs=no 9649 fi 9650 ;; 9651 9652 cygwin* | mingw* | pw32* | cegcc*) 9653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9654 # as there is no search path for DLLs. 9655 hardcode_libdir_flag_spec='-L$libdir' 9656 export_dynamic_flag_spec='$wl--export-all-symbols' 9657 allow_undefined_flag=unsupported 9658 always_export_symbols=no 9659 enable_shared_with_static_runtimes=yes 9660 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' 9661 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9662 9663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9665 # If the export-symbols file already is a .def file, use it as 9666 # is; otherwise, prepend EXPORTS... 9667 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9668 cp $export_symbols $output_objdir/$soname.def; 9669 else 9670 echo EXPORTS > $output_objdir/$soname.def; 9671 cat $export_symbols >> $output_objdir/$soname.def; 9672 fi~ 9673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9674 else 9675 ld_shlibs=no 9676 fi 9677 ;; 9678 9679 haiku*) 9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9681 link_all_deplibs=yes 9682 ;; 9683 9684 os2*) 9685 hardcode_libdir_flag_spec='-L$libdir' 9686 hardcode_minus_L=yes 9687 allow_undefined_flag=unsupported 9688 shrext_cmds=.dll 9689 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9690 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9691 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9692 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9693 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9694 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9695 emximp -o $lib $output_objdir/$libname.def' 9696 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9697 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9698 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9699 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9700 prefix_cmds="$SED"~ 9701 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9702 prefix_cmds="$prefix_cmds -e 1d"; 9703 fi~ 9704 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9705 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9706 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9707 emximp -o $lib $output_objdir/$libname.def' 9708 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9709 enable_shared_with_static_runtimes=yes 9710 file_list_spec='@' 9711 ;; 9712 9713 interix[3-9]*) 9714 hardcode_direct=no 9715 hardcode_shlibpath_var=no 9716 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9717 export_dynamic_flag_spec='$wl-E' 9718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9719 # Instead, shared libraries are loaded at an image base (0x10000000 by 9720 # default) and relocated if they conflict, which is a slow very memory 9721 # consuming and fragmenting process. To avoid this, we pick a random, 9722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9723 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9725 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' 9726 ;; 9727 9728 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9729 tmp_diet=no 9730 if test linux-dietlibc = "$host_os"; then 9731 case $cc_basename in 9732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9733 esac 9734 fi 9735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9736 && test no = "$tmp_diet" 9737 then 9738 tmp_addflag=' $pic_flag' 9739 tmp_sharedflag='-shared' 9740 case $cc_basename,$host_cpu in 9741 pgcc*) # Portland Group C compiler 9742 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' 9743 tmp_addflag=' $pic_flag' 9744 ;; 9745 pgf77* | pgf90* | pgf95* | pgfortran*) 9746 # Portland Group f77 and f90 compilers 9747 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' 9748 tmp_addflag=' $pic_flag -Mnomain' ;; 9749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9750 tmp_addflag=' -i_dynamic' ;; 9751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9752 tmp_addflag=' -i_dynamic -nofor_main' ;; 9753 ifc* | ifort*) # Intel Fortran compiler 9754 tmp_addflag=' -nofor_main' ;; 9755 lf95*) # Lahey Fortran 8.1 9756 whole_archive_flag_spec= 9757 tmp_sharedflag='--shared' ;; 9758 nagfor*) # NAGFOR 5.3 9759 tmp_sharedflag='-Wl,-shared' ;; 9760 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9761 tmp_sharedflag='-qmkshrobj' 9762 tmp_addflag= ;; 9763 nvcc*) # Cuda Compiler Driver 2.2 9764 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' 9765 compiler_needs_object=yes 9766 ;; 9767 esac 9768 case `$CC -V 2>&1 | $SED 5q` in 9769 *Sun\ C*) # Sun C 5.9 9770 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' 9771 compiler_needs_object=yes 9772 tmp_sharedflag='-G' ;; 9773 *Sun\ F*) # Sun Fortran 8.3 9774 tmp_sharedflag='-G' ;; 9775 esac 9776 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9777 9778 if test yes = "$supports_anon_versioning"; then 9779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9780 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9781 echo "local: *; };" >> $output_objdir/$libname.ver~ 9782 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9783 fi 9784 9785 case $cc_basename in 9786 tcc*) 9787 export_dynamic_flag_spec='-rdynamic' 9788 ;; 9789 xlf* | bgf* | bgxlf* | mpixlf*) 9790 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9791 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9793 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9794 if test yes = "$supports_anon_versioning"; then 9795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9796 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9797 echo "local: *; };" >> $output_objdir/$libname.ver~ 9798 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9799 fi 9800 ;; 9801 esac 9802 else 9803 ld_shlibs=no 9804 fi 9805 ;; 9806 9807 netbsd*) 9808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9809 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9810 wlarc= 9811 else 9812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9813 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9814 fi 9815 ;; 9816 9817 solaris*) 9818 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9819 ld_shlibs=no 9820 cat <<_LT_EOF 1>&2 9821 9822*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9823*** create shared libraries on Solaris systems. Therefore, libtool 9824*** is disabling shared libraries support. We urge you to upgrade GNU 9825*** binutils to release 2.9.1 or newer. Another option is to modify 9826*** your PATH or compiler configuration so that the native linker is 9827*** used, and then restart. 9828 9829_LT_EOF 9830 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9833 else 9834 ld_shlibs=no 9835 fi 9836 ;; 9837 9838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9839 case `$LD -v 2>&1` in 9840 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9841 ld_shlibs=no 9842 cat <<_LT_EOF 1>&2 9843 9844*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9845*** reliably create shared libraries on SCO systems. Therefore, libtool 9846*** is disabling shared libraries support. We urge you to upgrade GNU 9847*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9848*** your PATH or compiler configuration so that the native linker is 9849*** used, and then restart. 9850 9851_LT_EOF 9852 ;; 9853 *) 9854 # For security reasons, it is highly recommended that you always 9855 # use absolute paths for naming shared libraries, and exclude the 9856 # DT_RUNPATH tag from executables and libraries. But doing so 9857 # requires that you compile everything twice, which is a pain. 9858 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9862 else 9863 ld_shlibs=no 9864 fi 9865 ;; 9866 esac 9867 ;; 9868 9869 sunos4*) 9870 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9871 wlarc= 9872 hardcode_direct=yes 9873 hardcode_shlibpath_var=no 9874 ;; 9875 9876 *) 9877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9879 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9880 else 9881 ld_shlibs=no 9882 fi 9883 ;; 9884 esac 9885 9886 if test no = "$ld_shlibs"; then 9887 runpath_var= 9888 hardcode_libdir_flag_spec= 9889 export_dynamic_flag_spec= 9890 whole_archive_flag_spec= 9891 fi 9892 else 9893 # PORTME fill in a description of your system's linker (not GNU ld) 9894 case $host_os in 9895 aix3*) 9896 allow_undefined_flag=unsupported 9897 always_export_symbols=yes 9898 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' 9899 # Note: this linker hardcodes the directories in LIBPATH if there 9900 # are no directories specified by -L. 9901 hardcode_minus_L=yes 9902 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9903 # Neither direct hardcoding nor static linking is supported with a 9904 # broken collect2. 9905 hardcode_direct=unsupported 9906 fi 9907 ;; 9908 9909 aix[4-9]*) 9910 if test ia64 = "$host_cpu"; then 9911 # On IA64, the linker does run time linking by default, so we don't 9912 # have to do anything special. 9913 aix_use_runtimelinking=no 9914 exp_sym_flag='-Bexport' 9915 no_entry_flag= 9916 else 9917 # If we're using GNU nm, then we don't want the "-C" option. 9918 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9919 # Without the "-l" option, or with the "-B" option, AIX nm treats 9920 # weak defined symbols like other global defined symbols, whereas 9921 # GNU nm marks them as "W". 9922 # While the 'weak' keyword is ignored in the Export File, we need 9923 # it in the Import File for the 'aix-soname' feature, so we have 9924 # to replace the "-B" option with "-P" for AIX nm. 9925 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9926 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' 9927 else 9928 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 == "L") || (\$ 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' 9929 fi 9930 aix_use_runtimelinking=no 9931 9932 # Test if we are trying to use run time linking or normal 9933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9934 # have runtime linking enabled, and use it for executables. 9935 # For shared libraries, we enable/disable runtime linking 9936 # depending on the kind of the shared library created - 9937 # when "with_aix_soname,aix_use_runtimelinking" is: 9938 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9939 # "aix,yes" lib.so shared, rtl:yes, for executables 9940 # lib.a static archive 9941 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9942 # lib.a(lib.so.V) shared, rtl:no, for executables 9943 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9944 # lib.a(lib.so.V) shared, rtl:no 9945 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9946 # lib.a static archive 9947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9948 for ld_flag in $LDFLAGS; do 9949 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9950 aix_use_runtimelinking=yes 9951 break 9952 fi 9953 done 9954 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9955 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9956 # so we don't have lib.a shared libs to link our executables. 9957 # We have to force runtime linking in this case. 9958 aix_use_runtimelinking=yes 9959 LDFLAGS="$LDFLAGS -Wl,-brtl" 9960 fi 9961 ;; 9962 esac 9963 9964 exp_sym_flag='-bexport' 9965 no_entry_flag='-bnoentry' 9966 fi 9967 9968 # When large executables or shared objects are built, AIX ld can 9969 # have problems creating the table of contents. If linking a library 9970 # or program results in "error TOC overflow" add -mminimal-toc to 9971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9973 9974 archive_cmds='' 9975 hardcode_direct=yes 9976 hardcode_direct_absolute=yes 9977 hardcode_libdir_separator=':' 9978 link_all_deplibs=yes 9979 file_list_spec='$wl-f,' 9980 case $with_aix_soname,$aix_use_runtimelinking in 9981 aix,*) ;; # traditional, no import file 9982 svr4,* | *,yes) # use import file 9983 # The Import File defines what to hardcode. 9984 hardcode_direct=no 9985 hardcode_direct_absolute=no 9986 ;; 9987 esac 9988 9989 if test yes = "$GCC"; then 9990 case $host_os in aix4.[012]|aix4.[012].*) 9991 # We only want to do this on AIX 4.2 and lower, the check 9992 # below for broken collect2 doesn't work under 4.3+ 9993 collect2name=`$CC -print-prog-name=collect2` 9994 if test -f "$collect2name" && 9995 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9996 then 9997 # We have reworked collect2 9998 : 9999 else 10000 # We have old collect2 10001 hardcode_direct=unsupported 10002 # It fails to find uninstalled libraries when the uninstalled 10003 # path is not listed in the libpath. Setting hardcode_minus_L 10004 # to unsupported forces relinking 10005 hardcode_minus_L=yes 10006 hardcode_libdir_flag_spec='-L$libdir' 10007 hardcode_libdir_separator= 10008 fi 10009 ;; 10010 esac 10011 shared_flag='-shared' 10012 if test yes = "$aix_use_runtimelinking"; then 10013 shared_flag="$shared_flag "'$wl-G' 10014 fi 10015 # Need to ensure runtime linking is disabled for the traditional 10016 # shared library, or the linker may eventually find shared libraries 10017 # /with/ Import File - we do not want to mix them. 10018 shared_flag_aix='-shared' 10019 shared_flag_svr4='-shared $wl-G' 10020 else 10021 # not using gcc 10022 if test ia64 = "$host_cpu"; then 10023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10024 # chokes on -Wl,-G. The following line is correct: 10025 shared_flag='-G' 10026 else 10027 if test yes = "$aix_use_runtimelinking"; then 10028 shared_flag='$wl-G' 10029 else 10030 shared_flag='$wl-bM:SRE' 10031 fi 10032 shared_flag_aix='$wl-bM:SRE' 10033 shared_flag_svr4='$wl-G' 10034 fi 10035 fi 10036 10037 export_dynamic_flag_spec='$wl-bexpall' 10038 # It seems that -bexpall does not export symbols beginning with 10039 # underscore (_), so it is better to generate a list of symbols to export. 10040 always_export_symbols=yes 10041 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10042 # Warning - without using the other runtime loading flags (-brtl), 10043 # -berok will link without error, but may produce a broken library. 10044 allow_undefined_flag='-berok' 10045 # Determine the default libpath from the value encoded in an 10046 # empty executable. 10047 if test set = "${lt_cv_aix_libpath+set}"; then 10048 aix_libpath=$lt_cv_aix_libpath 10049else 10050 if test ${lt_cv_aix_libpath_+y} 10051then : 10052 printf %s "(cached) " >&6 10053else $as_nop 10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10055/* end confdefs.h. */ 10056 10057int 10058main (void) 10059{ 10060 10061 ; 10062 return 0; 10063} 10064_ACEOF 10065if ac_fn_c_try_link "$LINENO" 10066then : 10067 10068 lt_aix_libpath_sed=' 10069 /Import File Strings/,/^$/ { 10070 /^0/ { 10071 s/^0 *\([^ ]*\) *$/\1/ 10072 p 10073 } 10074 }' 10075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10076 # Check for a 64-bit object if we didn't find anything. 10077 if test -z "$lt_cv_aix_libpath_"; then 10078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10079 fi 10080fi 10081rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10082 conftest$ac_exeext conftest.$ac_ext 10083 if test -z "$lt_cv_aix_libpath_"; then 10084 lt_cv_aix_libpath_=/usr/lib:/lib 10085 fi 10086 10087fi 10088 10089 aix_libpath=$lt_cv_aix_libpath_ 10090fi 10091 10092 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10093 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 10094 else 10095 if test ia64 = "$host_cpu"; then 10096 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10097 allow_undefined_flag="-z nodefs" 10098 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" 10099 else 10100 # Determine the default libpath from the value encoded in an 10101 # empty executable. 10102 if test set = "${lt_cv_aix_libpath+set}"; then 10103 aix_libpath=$lt_cv_aix_libpath 10104else 10105 if test ${lt_cv_aix_libpath_+y} 10106then : 10107 printf %s "(cached) " >&6 10108else $as_nop 10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10110/* end confdefs.h. */ 10111 10112int 10113main (void) 10114{ 10115 10116 ; 10117 return 0; 10118} 10119_ACEOF 10120if ac_fn_c_try_link "$LINENO" 10121then : 10122 10123 lt_aix_libpath_sed=' 10124 /Import File Strings/,/^$/ { 10125 /^0/ { 10126 s/^0 *\([^ ]*\) *$/\1/ 10127 p 10128 } 10129 }' 10130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10131 # Check for a 64-bit object if we didn't find anything. 10132 if test -z "$lt_cv_aix_libpath_"; then 10133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10134 fi 10135fi 10136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10137 conftest$ac_exeext conftest.$ac_ext 10138 if test -z "$lt_cv_aix_libpath_"; then 10139 lt_cv_aix_libpath_=/usr/lib:/lib 10140 fi 10141 10142fi 10143 10144 aix_libpath=$lt_cv_aix_libpath_ 10145fi 10146 10147 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10148 # Warning - without using the other run time loading flags, 10149 # -berok will link without error, but may produce a broken library. 10150 no_undefined_flag=' $wl-bernotok' 10151 allow_undefined_flag=' $wl-berok' 10152 if test yes = "$with_gnu_ld"; then 10153 # We only use this code for GNU lds that support --whole-archive. 10154 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10155 else 10156 # Exported symbols can be pulled into shared objects from archives 10157 whole_archive_flag_spec='$convenience' 10158 fi 10159 archive_cmds_need_lc=yes 10160 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10161 # -brtl affects multiple linker settings, -berok does not and is overridden later 10162 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10163 if test svr4 != "$with_aix_soname"; then 10164 # This is similar to how AIX traditionally builds its shared libraries. 10165 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' 10166 fi 10167 if test aix != "$with_aix_soname"; then 10168 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' 10169 else 10170 # used by -dlpreopen to get the symbols 10171 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10172 fi 10173 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10174 fi 10175 fi 10176 ;; 10177 10178 amigaos*) 10179 case $host_cpu in 10180 powerpc) 10181 # see comment about AmigaOS4 .so support 10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10183 archive_expsym_cmds='' 10184 ;; 10185 m68k) 10186 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)' 10187 hardcode_libdir_flag_spec='-L$libdir' 10188 hardcode_minus_L=yes 10189 ;; 10190 esac 10191 ;; 10192 10193 bsdi[45]*) 10194 export_dynamic_flag_spec=-rdynamic 10195 ;; 10196 10197 cygwin* | mingw* | pw32* | cegcc*) 10198 # When not using gcc, we currently assume that we are using 10199 # Microsoft Visual C++ or Intel C++ Compiler. 10200 # hardcode_libdir_flag_spec is actually meaningless, as there is 10201 # no search path for DLLs. 10202 case $cc_basename in 10203 cl* | icl*) 10204 # Native MSVC or ICC 10205 hardcode_libdir_flag_spec=' ' 10206 allow_undefined_flag=unsupported 10207 always_export_symbols=yes 10208 file_list_spec='@' 10209 # Tell ltmain to make .lib files, not .a files. 10210 libext=lib 10211 # Tell ltmain to make .dll files, not .so files. 10212 shrext_cmds=.dll 10213 # FIXME: Setting linknames here is a bad hack. 10214 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10215 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10216 cp "$export_symbols" "$output_objdir/$soname.def"; 10217 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10218 else 10219 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10220 fi~ 10221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10222 linknames=' 10223 # The linker will not automatically build a static lib if we build a DLL. 10224 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10225 enable_shared_with_static_runtimes=yes 10226 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10228 # Don't use ranlib 10229 old_postinstall_cmds='chmod 644 $oldlib' 10230 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10231 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10232 case $lt_outputfile in 10233 *.exe|*.EXE) ;; 10234 *) 10235 lt_outputfile=$lt_outputfile.exe 10236 lt_tool_outputfile=$lt_tool_outputfile.exe 10237 ;; 10238 esac~ 10239 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10241 $RM "$lt_outputfile.manifest"; 10242 fi' 10243 ;; 10244 *) 10245 # Assume MSVC and ICC wrapper 10246 hardcode_libdir_flag_spec=' ' 10247 allow_undefined_flag=unsupported 10248 # Tell ltmain to make .lib files, not .a files. 10249 libext=lib 10250 # Tell ltmain to make .dll files, not .so files. 10251 shrext_cmds=.dll 10252 # FIXME: Setting linknames here is a bad hack. 10253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10254 # The linker will automatically build a .lib file if we build a DLL. 10255 old_archive_from_new_cmds='true' 10256 # FIXME: Should let the user specify the lib program. 10257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10258 enable_shared_with_static_runtimes=yes 10259 ;; 10260 esac 10261 ;; 10262 10263 darwin* | rhapsody*) 10264 10265 10266 archive_cmds_need_lc=no 10267 hardcode_direct=no 10268 hardcode_automatic=yes 10269 hardcode_shlibpath_var=unsupported 10270 if test yes = "$lt_cv_ld_force_load"; then 10271 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\"`' 10272 10273 else 10274 whole_archive_flag_spec='' 10275 fi 10276 link_all_deplibs=yes 10277 allow_undefined_flag=$_lt_dar_allow_undefined 10278 case $cc_basename in 10279 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10280 *) _lt_dar_can_shared=$GCC ;; 10281 esac 10282 if test yes = "$_lt_dar_can_shared"; then 10283 output_verbose_link_cmd=func_echo_all 10284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10286 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" 10287 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" 10288 10289 else 10290 ld_shlibs=no 10291 fi 10292 10293 ;; 10294 10295 dgux*) 10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10297 hardcode_libdir_flag_spec='-L$libdir' 10298 hardcode_shlibpath_var=no 10299 ;; 10300 10301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10302 # support. Future versions do this automatically, but an explicit c++rt0.o 10303 # does not break anything, and helps significantly (at the cost of a little 10304 # extra space). 10305 freebsd2.2*) 10306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10307 hardcode_libdir_flag_spec='-R$libdir' 10308 hardcode_direct=yes 10309 hardcode_shlibpath_var=no 10310 ;; 10311 10312 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10313 freebsd2.*) 10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10315 hardcode_direct=yes 10316 hardcode_minus_L=yes 10317 hardcode_shlibpath_var=no 10318 ;; 10319 10320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10321 freebsd* | dragonfly* | midnightbsd*) 10322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10323 hardcode_libdir_flag_spec='-R$libdir' 10324 hardcode_direct=yes 10325 hardcode_shlibpath_var=no 10326 ;; 10327 10328 hpux9*) 10329 if test yes = "$GCC"; then 10330 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' 10331 else 10332 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' 10333 fi 10334 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10335 hardcode_libdir_separator=: 10336 hardcode_direct=yes 10337 10338 # hardcode_minus_L: Not really in the search PATH, 10339 # but as the default location of the library. 10340 hardcode_minus_L=yes 10341 export_dynamic_flag_spec='$wl-E' 10342 ;; 10343 10344 hpux10*) 10345 if test yes,no = "$GCC,$with_gnu_ld"; then 10346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10347 else 10348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10349 fi 10350 if test no = "$with_gnu_ld"; then 10351 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10352 hardcode_libdir_separator=: 10353 hardcode_direct=yes 10354 hardcode_direct_absolute=yes 10355 export_dynamic_flag_spec='$wl-E' 10356 # hardcode_minus_L: Not really in the search PATH, 10357 # but as the default location of the library. 10358 hardcode_minus_L=yes 10359 fi 10360 ;; 10361 10362 hpux11*) 10363 if test yes,no = "$GCC,$with_gnu_ld"; then 10364 case $host_cpu in 10365 hppa*64*) 10366 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10367 ;; 10368 ia64*) 10369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10370 ;; 10371 *) 10372 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10373 ;; 10374 esac 10375 else 10376 case $host_cpu in 10377 hppa*64*) 10378 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10379 ;; 10380 ia64*) 10381 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10382 ;; 10383 *) 10384 10385 # Older versions of the 11.00 compiler do not understand -b yet 10386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10388printf %s "checking if $CC understands -b... " >&6; } 10389if test ${lt_cv_prog_compiler__b+y} 10390then : 10391 printf %s "(cached) " >&6 10392else $as_nop 10393 lt_cv_prog_compiler__b=no 10394 save_LDFLAGS=$LDFLAGS 10395 LDFLAGS="$LDFLAGS -b" 10396 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10398 # The linker can only warn and ignore the option if not recognized 10399 # So say no if there are warnings 10400 if test -s conftest.err; then 10401 # Append any errors to the config.log. 10402 cat conftest.err 1>&5 10403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10405 if diff conftest.exp conftest.er2 >/dev/null; then 10406 lt_cv_prog_compiler__b=yes 10407 fi 10408 else 10409 lt_cv_prog_compiler__b=yes 10410 fi 10411 fi 10412 $RM -r conftest* 10413 LDFLAGS=$save_LDFLAGS 10414 10415fi 10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10417printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10418 10419if test yes = "$lt_cv_prog_compiler__b"; then 10420 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10421else 10422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10423fi 10424 10425 ;; 10426 esac 10427 fi 10428 if test no = "$with_gnu_ld"; then 10429 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10430 hardcode_libdir_separator=: 10431 10432 case $host_cpu in 10433 hppa*64*|ia64*) 10434 hardcode_direct=no 10435 hardcode_shlibpath_var=no 10436 ;; 10437 *) 10438 hardcode_direct=yes 10439 hardcode_direct_absolute=yes 10440 export_dynamic_flag_spec='$wl-E' 10441 10442 # hardcode_minus_L: Not really in the search PATH, 10443 # but as the default location of the library. 10444 hardcode_minus_L=yes 10445 ;; 10446 esac 10447 fi 10448 ;; 10449 10450 irix5* | irix6* | nonstopux*) 10451 if test yes = "$GCC"; then 10452 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' 10453 # Try to use the -exported_symbol ld option, if it does not 10454 # work, assume that -exports_file does not work either and 10455 # implicitly export all symbols. 10456 # This should be the same for all languages, so no per-tag cache variable. 10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10458printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10459if test ${lt_cv_irix_exported_symbol+y} 10460then : 10461 printf %s "(cached) " >&6 10462else $as_nop 10463 save_LDFLAGS=$LDFLAGS 10464 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10466/* end confdefs.h. */ 10467int foo (void) { return 0; } 10468_ACEOF 10469if ac_fn_c_try_link "$LINENO" 10470then : 10471 lt_cv_irix_exported_symbol=yes 10472else $as_nop 10473 lt_cv_irix_exported_symbol=no 10474fi 10475rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10476 conftest$ac_exeext conftest.$ac_ext 10477 LDFLAGS=$save_LDFLAGS 10478fi 10479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10480printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10481 if test yes = "$lt_cv_irix_exported_symbol"; then 10482 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' 10483 fi 10484 else 10485 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' 10486 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' 10487 fi 10488 archive_cmds_need_lc='no' 10489 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10490 hardcode_libdir_separator=: 10491 inherit_rpath=yes 10492 link_all_deplibs=yes 10493 ;; 10494 10495 linux*) 10496 case $cc_basename in 10497 tcc*) 10498 # Fabrice Bellard et al's Tiny C Compiler 10499 ld_shlibs=yes 10500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10501 ;; 10502 esac 10503 ;; 10504 10505 netbsd*) 10506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10508 else 10509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10510 fi 10511 hardcode_libdir_flag_spec='-R$libdir' 10512 hardcode_direct=yes 10513 hardcode_shlibpath_var=no 10514 ;; 10515 10516 newsos6) 10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10518 hardcode_direct=yes 10519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10520 hardcode_libdir_separator=: 10521 hardcode_shlibpath_var=no 10522 ;; 10523 10524 *nto* | *qnx*) 10525 ;; 10526 10527 openbsd* | bitrig*) 10528 if test -f /usr/libexec/ld.so; then 10529 hardcode_direct=yes 10530 hardcode_shlibpath_var=no 10531 hardcode_direct_absolute=yes 10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10535 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10536 export_dynamic_flag_spec='$wl-E' 10537 else 10538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10539 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10540 fi 10541 else 10542 ld_shlibs=no 10543 fi 10544 ;; 10545 10546 os2*) 10547 hardcode_libdir_flag_spec='-L$libdir' 10548 hardcode_minus_L=yes 10549 allow_undefined_flag=unsupported 10550 shrext_cmds=.dll 10551 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10552 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10553 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10554 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10555 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10556 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10557 emximp -o $lib $output_objdir/$libname.def' 10558 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10559 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10560 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10561 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10562 prefix_cmds="$SED"~ 10563 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10564 prefix_cmds="$prefix_cmds -e 1d"; 10565 fi~ 10566 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10567 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10568 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10569 emximp -o $lib $output_objdir/$libname.def' 10570 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10571 enable_shared_with_static_runtimes=yes 10572 file_list_spec='@' 10573 ;; 10574 10575 osf3*) 10576 if test yes = "$GCC"; then 10577 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10578 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' 10579 else 10580 allow_undefined_flag=' -expect_unresolved \*' 10581 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' 10582 fi 10583 archive_cmds_need_lc='no' 10584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10585 hardcode_libdir_separator=: 10586 ;; 10587 10588 osf4* | osf5*) # as osf3* with the addition of -msym flag 10589 if test yes = "$GCC"; then 10590 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10591 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' 10592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10593 else 10594 allow_undefined_flag=' -expect_unresolved \*' 10595 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' 10596 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~ 10597 $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' 10598 10599 # Both c and cxx compiler support -rpath directly 10600 hardcode_libdir_flag_spec='-rpath $libdir' 10601 fi 10602 archive_cmds_need_lc='no' 10603 hardcode_libdir_separator=: 10604 ;; 10605 10606 solaris*) 10607 no_undefined_flag=' -z defs' 10608 if test yes = "$GCC"; then 10609 wlarc='$wl' 10610 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10612 $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' 10613 else 10614 case `$CC -V 2>&1` in 10615 *"Compilers 5.0"*) 10616 wlarc='' 10617 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10619 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10620 ;; 10621 *) 10622 wlarc='$wl' 10623 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10625 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10626 ;; 10627 esac 10628 fi 10629 hardcode_libdir_flag_spec='-R$libdir' 10630 hardcode_shlibpath_var=no 10631 case $host_os in 10632 solaris2.[0-5] | solaris2.[0-5].*) ;; 10633 *) 10634 # The compiler driver will combine and reorder linker options, 10635 # but understands '-z linker_flag'. GCC discards it without '$wl', 10636 # but is careful enough not to reorder. 10637 # Supported since Solaris 2.6 (maybe 2.5.1?) 10638 if test yes = "$GCC"; then 10639 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10640 else 10641 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10642 fi 10643 ;; 10644 esac 10645 link_all_deplibs=yes 10646 ;; 10647 10648 sunos4*) 10649 if test sequent = "$host_vendor"; then 10650 # Use $CC to link under sequent, because it throws in some extra .o 10651 # files that make .init and .fini sections work. 10652 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10653 else 10654 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10655 fi 10656 hardcode_libdir_flag_spec='-L$libdir' 10657 hardcode_direct=yes 10658 hardcode_minus_L=yes 10659 hardcode_shlibpath_var=no 10660 ;; 10661 10662 sysv4) 10663 case $host_vendor in 10664 sni) 10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10666 hardcode_direct=yes # is this really true??? 10667 ;; 10668 siemens) 10669 ## LD is ld it makes a PLAMLIB 10670 ## CC just makes a GrossModule. 10671 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10672 reload_cmds='$CC -r -o $output$reload_objs' 10673 hardcode_direct=no 10674 ;; 10675 motorola) 10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10677 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10678 ;; 10679 esac 10680 runpath_var='LD_RUN_PATH' 10681 hardcode_shlibpath_var=no 10682 ;; 10683 10684 sysv4.3*) 10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10686 hardcode_shlibpath_var=no 10687 export_dynamic_flag_spec='-Bexport' 10688 ;; 10689 10690 sysv4*MP*) 10691 if test -d /usr/nec; then 10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10693 hardcode_shlibpath_var=no 10694 runpath_var=LD_RUN_PATH 10695 hardcode_runpath_var=yes 10696 ld_shlibs=yes 10697 fi 10698 ;; 10699 10700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10701 no_undefined_flag='$wl-z,text' 10702 archive_cmds_need_lc=no 10703 hardcode_shlibpath_var=no 10704 runpath_var='LD_RUN_PATH' 10705 10706 if test yes = "$GCC"; then 10707 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10708 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10709 else 10710 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10711 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10712 fi 10713 ;; 10714 10715 sysv5* | sco3.2v5* | sco5v6*) 10716 # Note: We CANNOT use -z defs as we might desire, because we do not 10717 # link with -lc, and that would cause any symbols used from libc to 10718 # always be unresolved, which means just about no library would 10719 # ever link correctly. If we're not using GNU ld we use -z text 10720 # though, which does catch some bad symbols but isn't as heavy-handed 10721 # as -z defs. 10722 no_undefined_flag='$wl-z,text' 10723 allow_undefined_flag='$wl-z,nodefs' 10724 archive_cmds_need_lc=no 10725 hardcode_shlibpath_var=no 10726 hardcode_libdir_flag_spec='$wl-R,$libdir' 10727 hardcode_libdir_separator=':' 10728 link_all_deplibs=yes 10729 export_dynamic_flag_spec='$wl-Bexport' 10730 runpath_var='LD_RUN_PATH' 10731 10732 if test yes = "$GCC"; then 10733 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10735 else 10736 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10737 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10738 fi 10739 ;; 10740 10741 uts4*) 10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10743 hardcode_libdir_flag_spec='-L$libdir' 10744 hardcode_shlibpath_var=no 10745 ;; 10746 10747 *) 10748 ld_shlibs=no 10749 ;; 10750 esac 10751 10752 if test sni = "$host_vendor"; then 10753 case $host in 10754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10755 export_dynamic_flag_spec='$wl-Blargedynsym' 10756 ;; 10757 esac 10758 fi 10759 fi 10760 10761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10762printf "%s\n" "$ld_shlibs" >&6; } 10763test no = "$ld_shlibs" && can_build_shared=no 10764 10765with_gnu_ld=$with_gnu_ld 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781# 10782# Do we need to explicitly link libc? 10783# 10784case "x$archive_cmds_need_lc" in 10785x|xyes) 10786 # Assume -lc should be added 10787 archive_cmds_need_lc=yes 10788 10789 if test yes,yes = "$GCC,$enable_shared"; then 10790 case $archive_cmds in 10791 *'~'*) 10792 # FIXME: we may have to deal with multi-command sequences. 10793 ;; 10794 '$CC '*) 10795 # Test whether the compiler implicitly links with -lc since on some 10796 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10797 # to ld, don't add -lc before -lgcc. 10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10799printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10800if test ${lt_cv_archive_cmds_need_lc+y} 10801then : 10802 printf %s "(cached) " >&6 10803else $as_nop 10804 $RM conftest* 10805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10806 10807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10808 (eval $ac_compile) 2>&5 10809 ac_status=$? 10810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10811 test $ac_status = 0; } 2>conftest.err; then 10812 soname=conftest 10813 lib=conftest 10814 libobjs=conftest.$ac_objext 10815 deplibs= 10816 wl=$lt_prog_compiler_wl 10817 pic_flag=$lt_prog_compiler_pic 10818 compiler_flags=-v 10819 linker_flags=-v 10820 verstring= 10821 output_objdir=. 10822 libname=conftest 10823 lt_save_allow_undefined_flag=$allow_undefined_flag 10824 allow_undefined_flag= 10825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10826 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10827 ac_status=$? 10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10829 test $ac_status = 0; } 10830 then 10831 lt_cv_archive_cmds_need_lc=no 10832 else 10833 lt_cv_archive_cmds_need_lc=yes 10834 fi 10835 allow_undefined_flag=$lt_save_allow_undefined_flag 10836 else 10837 cat conftest.err 1>&5 10838 fi 10839 $RM conftest* 10840 10841fi 10842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10843printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10844 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10845 ;; 10846 esac 10847 fi 10848 ;; 10849esac 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11003printf %s "checking dynamic linker characteristics... " >&6; } 11004 11005if test yes = "$GCC"; then 11006 case $host_os in 11007 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11008 *) lt_awk_arg='/^libraries:/' ;; 11009 esac 11010 case $host_os in 11011 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11012 *) lt_sed_strip_eq='s|=/|/|g' ;; 11013 esac 11014 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11015 case $lt_search_path_spec in 11016 *\;*) 11017 # if the path contains ";" then we assume it to be the separator 11018 # otherwise default to the standard path separator (i.e. ":") - it is 11019 # assumed that no part of a normal pathname contains ";" but that should 11020 # okay in the real world where ";" in dirpaths is itself problematic. 11021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11022 ;; 11023 *) 11024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11025 ;; 11026 esac 11027 # Ok, now we have the path, separated by spaces, we can step through it 11028 # and add multilib dir if necessary... 11029 lt_tmp_lt_search_path_spec= 11030 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11031 # ...but if some path component already ends with the multilib dir we assume 11032 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11033 case "$lt_multi_os_dir; $lt_search_path_spec " in 11034 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11035 lt_multi_os_dir= 11036 ;; 11037 esac 11038 for lt_sys_path in $lt_search_path_spec; do 11039 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11040 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11041 elif test -n "$lt_multi_os_dir"; then 11042 test -d "$lt_sys_path" && \ 11043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11044 fi 11045 done 11046 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11047BEGIN {RS = " "; FS = "/|\n";} { 11048 lt_foo = ""; 11049 lt_count = 0; 11050 for (lt_i = NF; lt_i > 0; lt_i--) { 11051 if ($lt_i != "" && $lt_i != ".") { 11052 if ($lt_i == "..") { 11053 lt_count++; 11054 } else { 11055 if (lt_count == 0) { 11056 lt_foo = "/" $lt_i lt_foo; 11057 } else { 11058 lt_count--; 11059 } 11060 } 11061 } 11062 } 11063 if (lt_foo != "") { lt_freq[lt_foo]++; } 11064 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11065}'` 11066 # AWK program above erroneously prepends '/' to C:/dos/paths 11067 # for these hosts. 11068 case $host_os in 11069 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11070 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11071 esac 11072 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11073else 11074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11075fi 11076library_names_spec= 11077libname_spec='lib$name' 11078soname_spec= 11079shrext_cmds=.so 11080postinstall_cmds= 11081postuninstall_cmds= 11082finish_cmds= 11083finish_eval= 11084shlibpath_var= 11085shlibpath_overrides_runpath=unknown 11086version_type=none 11087dynamic_linker="$host_os ld.so" 11088sys_lib_dlsearch_path_spec="/lib /usr/lib" 11089need_lib_prefix=unknown 11090hardcode_into_libs=no 11091 11092# when you set need_version to no, make sure it does not cause -set_version 11093# flags to be left without arguments 11094need_version=unknown 11095 11096 11097 11098case $host_os in 11099aix3*) 11100 version_type=linux # correct to gnu/linux during the next big refactor 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11102 shlibpath_var=LIBPATH 11103 11104 # AIX 3 has no versioning support, so we append a major version to the name. 11105 soname_spec='$libname$release$shared_ext$major' 11106 ;; 11107 11108aix[4-9]*) 11109 version_type=linux # correct to gnu/linux during the next big refactor 11110 need_lib_prefix=no 11111 need_version=no 11112 hardcode_into_libs=yes 11113 if test ia64 = "$host_cpu"; then 11114 # AIX 5 supports IA64 11115 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11116 shlibpath_var=LD_LIBRARY_PATH 11117 else 11118 # With GCC up to 2.95.x, collect2 would create an import file 11119 # for dependence libraries. The import file would start with 11120 # the line '#! .'. This would cause the generated library to 11121 # depend on '.', always an invalid library. This was fixed in 11122 # development snapshots of GCC prior to 3.0. 11123 case $host_os in 11124 aix4 | aix4.[01] | aix4.[01].*) 11125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11126 echo ' yes ' 11127 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11128 : 11129 else 11130 can_build_shared=no 11131 fi 11132 ;; 11133 esac 11134 # Using Import Files as archive members, it is possible to support 11135 # filename-based versioning of shared library archives on AIX. While 11136 # this would work for both with and without runtime linking, it will 11137 # prevent static linking of such archives. So we do filename-based 11138 # shared library versioning with .so extension only, which is used 11139 # when both runtime linking and shared linking is enabled. 11140 # Unfortunately, runtime linking may impact performance, so we do 11141 # not want this to be the default eventually. Also, we use the 11142 # versioned .so libs for executables only if there is the -brtl 11143 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11144 # To allow for filename-based versioning support, we need to create 11145 # libNAME.so.V as an archive file, containing: 11146 # *) an Import File, referring to the versioned filename of the 11147 # archive as well as the shared archive member, telling the 11148 # bitwidth (32 or 64) of that shared object, and providing the 11149 # list of exported symbols of that shared object, eventually 11150 # decorated with the 'weak' keyword 11151 # *) the shared object with the F_LOADONLY flag set, to really avoid 11152 # it being seen by the linker. 11153 # At run time we better use the real file rather than another symlink, 11154 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11155 11156 case $with_aix_soname,$aix_use_runtimelinking in 11157 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11158 # soname into executable. Probably we can add versioning support to 11159 # collect2, so additional links can be useful in future. 11160 aix,yes) # traditional libtool 11161 dynamic_linker='AIX unversionable lib.so' 11162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11163 # instead of lib<name>.a to let people know that these are not 11164 # typical AIX shared libraries. 11165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11166 ;; 11167 aix,no) # traditional AIX only 11168 dynamic_linker='AIX lib.a(lib.so.V)' 11169 # We preserve .a as extension for shared libraries through AIX4.2 11170 # and later when we are not doing run time linking. 11171 library_names_spec='$libname$release.a $libname.a' 11172 soname_spec='$libname$release$shared_ext$major' 11173 ;; 11174 svr4,*) # full svr4 only 11175 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11176 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11177 # We do not specify a path in Import Files, so LIBPATH fires. 11178 shlibpath_overrides_runpath=yes 11179 ;; 11180 *,yes) # both, prefer svr4 11181 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11182 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11183 # unpreferred sharedlib libNAME.a needs extra handling 11184 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"' 11185 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"' 11186 # We do not specify a path in Import Files, so LIBPATH fires. 11187 shlibpath_overrides_runpath=yes 11188 ;; 11189 *,no) # both, prefer aix 11190 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11191 library_names_spec='$libname$release.a $libname.a' 11192 soname_spec='$libname$release$shared_ext$major' 11193 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11194 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)' 11195 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"' 11196 ;; 11197 esac 11198 shlibpath_var=LIBPATH 11199 fi 11200 ;; 11201 11202amigaos*) 11203 case $host_cpu in 11204 powerpc) 11205 # Since July 2007 AmigaOS4 officially supports .so libraries. 11206 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11208 ;; 11209 m68k) 11210 library_names_spec='$libname.ixlibrary $libname.a' 11211 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11212 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' 11213 ;; 11214 esac 11215 ;; 11216 11217beos*) 11218 library_names_spec='$libname$shared_ext' 11219 dynamic_linker="$host_os ld.so" 11220 shlibpath_var=LIBRARY_PATH 11221 ;; 11222 11223bsdi[45]*) 11224 version_type=linux # correct to gnu/linux during the next big refactor 11225 need_version=no 11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11227 soname_spec='$libname$release$shared_ext$major' 11228 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11229 shlibpath_var=LD_LIBRARY_PATH 11230 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11231 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11232 # the default ld.so.conf also contains /usr/contrib/lib and 11233 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11234 # libtool to hard-code these into programs 11235 ;; 11236 11237cygwin* | mingw* | pw32* | cegcc*) 11238 version_type=windows 11239 shrext_cmds=.dll 11240 need_version=no 11241 need_lib_prefix=no 11242 11243 case $GCC,$cc_basename in 11244 yes,*) 11245 # gcc 11246 library_names_spec='$libname.dll.a' 11247 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11248 postinstall_cmds='base_file=`basename \$file`~ 11249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11250 dldir=$destdir/`dirname \$dlpath`~ 11251 test -d \$dldir || mkdir -p \$dldir~ 11252 $install_prog $dir/$dlname \$dldir/$dlname~ 11253 chmod a+x \$dldir/$dlname~ 11254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11256 fi' 11257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11258 dlpath=$dir/\$dldll~ 11259 $RM \$dlpath' 11260 shlibpath_overrides_runpath=yes 11261 11262 case $host_os in 11263 cygwin*) 11264 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11265 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11266 11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11268 ;; 11269 mingw* | cegcc*) 11270 # MinGW DLLs use traditional 'lib' prefix 11271 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11272 ;; 11273 pw32*) 11274 # pw32 DLLs use 'pw' prefix rather than 'lib' 11275 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11276 ;; 11277 esac 11278 dynamic_linker='Win32 ld.exe' 11279 ;; 11280 11281 *,cl* | *,icl*) 11282 # Native MSVC or ICC 11283 libname_spec='$name' 11284 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11285 library_names_spec='$libname.dll.lib' 11286 11287 case $build_os in 11288 mingw*) 11289 sys_lib_search_path_spec= 11290 lt_save_ifs=$IFS 11291 IFS=';' 11292 for lt_path in $LIB 11293 do 11294 IFS=$lt_save_ifs 11295 # Let DOS variable expansion print the short 8.3 style file name. 11296 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11297 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11298 done 11299 IFS=$lt_save_ifs 11300 # Convert to MSYS style. 11301 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11302 ;; 11303 cygwin*) 11304 # Convert to unix form, then to dos form, then back to unix form 11305 # but this time dos style (no spaces!) so that the unix form looks 11306 # like /cygdrive/c/PROGRA~1:/cygdr... 11307 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11308 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11309 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11310 ;; 11311 *) 11312 sys_lib_search_path_spec=$LIB 11313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11314 # It is most probably a Windows format PATH. 11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11316 else 11317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11318 fi 11319 # FIXME: find the short name or the path components, as spaces are 11320 # common. (e.g. "Program Files" -> "PROGRA~1") 11321 ;; 11322 esac 11323 11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11325 postinstall_cmds='base_file=`basename \$file`~ 11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11327 dldir=$destdir/`dirname \$dlpath`~ 11328 test -d \$dldir || mkdir -p \$dldir~ 11329 $install_prog $dir/$dlname \$dldir/$dlname' 11330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11331 dlpath=$dir/\$dldll~ 11332 $RM \$dlpath' 11333 shlibpath_overrides_runpath=yes 11334 dynamic_linker='Win32 link.exe' 11335 ;; 11336 11337 *) 11338 # Assume MSVC and ICC wrapper 11339 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11340 dynamic_linker='Win32 ld.exe' 11341 ;; 11342 esac 11343 # FIXME: first we should search . and the directory the executable is in 11344 shlibpath_var=PATH 11345 ;; 11346 11347darwin* | rhapsody*) 11348 dynamic_linker="$host_os dyld" 11349 version_type=darwin 11350 need_lib_prefix=no 11351 need_version=no 11352 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11353 soname_spec='$libname$release$major$shared_ext' 11354 shlibpath_overrides_runpath=yes 11355 shlibpath_var=DYLD_LIBRARY_PATH 11356 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11357 11358 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11360 ;; 11361 11362dgux*) 11363 version_type=linux # correct to gnu/linux during the next big refactor 11364 need_lib_prefix=no 11365 need_version=no 11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11367 soname_spec='$libname$release$shared_ext$major' 11368 shlibpath_var=LD_LIBRARY_PATH 11369 ;; 11370 11371freebsd* | dragonfly* | midnightbsd*) 11372 # DragonFly does not have aout. When/if they implement a new 11373 # versioning mechanism, adjust this. 11374 if test -x /usr/bin/objformat; then 11375 objformat=`/usr/bin/objformat` 11376 else 11377 case $host_os in 11378 freebsd[23].*) objformat=aout ;; 11379 *) objformat=elf ;; 11380 esac 11381 fi 11382 # Handle Gentoo/FreeBSD as it was Linux 11383 case $host_vendor in 11384 gentoo) 11385 version_type=linux ;; 11386 *) 11387 version_type=freebsd-$objformat ;; 11388 esac 11389 11390 case $version_type in 11391 freebsd-elf*) 11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11393 soname_spec='$libname$release$shared_ext$major' 11394 need_version=no 11395 need_lib_prefix=no 11396 ;; 11397 freebsd-*) 11398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11399 need_version=yes 11400 ;; 11401 linux) 11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11403 soname_spec='${libname}${release}${shared_ext}$major' 11404 need_lib_prefix=no 11405 need_version=no 11406 ;; 11407 esac 11408 shlibpath_var=LD_LIBRARY_PATH 11409 case $host_os in 11410 freebsd2.*) 11411 shlibpath_overrides_runpath=yes 11412 ;; 11413 freebsd3.[01]* | freebsdelf3.[01]*) 11414 shlibpath_overrides_runpath=yes 11415 hardcode_into_libs=yes 11416 ;; 11417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11419 shlibpath_overrides_runpath=no 11420 hardcode_into_libs=yes 11421 ;; 11422 *) # from 4.6 on, and DragonFly 11423 shlibpath_overrides_runpath=yes 11424 hardcode_into_libs=yes 11425 ;; 11426 esac 11427 ;; 11428 11429haiku*) 11430 version_type=linux # correct to gnu/linux during the next big refactor 11431 need_lib_prefix=no 11432 need_version=no 11433 dynamic_linker="$host_os runtime_loader" 11434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11435 soname_spec='$libname$release$shared_ext$major' 11436 shlibpath_var=LIBRARY_PATH 11437 shlibpath_overrides_runpath=no 11438 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11439 hardcode_into_libs=yes 11440 ;; 11441 11442hpux9* | hpux10* | hpux11*) 11443 # Give a soname corresponding to the major version so that dld.sl refuses to 11444 # link against other versions. 11445 version_type=sunos 11446 need_lib_prefix=no 11447 need_version=no 11448 case $host_cpu in 11449 ia64*) 11450 shrext_cmds='.so' 11451 hardcode_into_libs=yes 11452 dynamic_linker="$host_os dld.so" 11453 shlibpath_var=LD_LIBRARY_PATH 11454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11456 soname_spec='$libname$release$shared_ext$major' 11457 if test 32 = "$HPUX_IA64_MODE"; then 11458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11459 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11460 else 11461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11462 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11463 fi 11464 ;; 11465 hppa*64*) 11466 shrext_cmds='.sl' 11467 hardcode_into_libs=yes 11468 dynamic_linker="$host_os dld.sl" 11469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11472 soname_spec='$libname$release$shared_ext$major' 11473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11475 ;; 11476 *) 11477 shrext_cmds='.sl' 11478 dynamic_linker="$host_os dld.sl" 11479 shlibpath_var=SHLIB_PATH 11480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11482 soname_spec='$libname$release$shared_ext$major' 11483 ;; 11484 esac 11485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11486 postinstall_cmds='chmod 555 $lib' 11487 # or fails outright, so override atomically: 11488 install_override_mode=555 11489 ;; 11490 11491interix[3-9]*) 11492 version_type=linux # correct to gnu/linux during the next big refactor 11493 need_lib_prefix=no 11494 need_version=no 11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11496 soname_spec='$libname$release$shared_ext$major' 11497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11498 shlibpath_var=LD_LIBRARY_PATH 11499 shlibpath_overrides_runpath=no 11500 hardcode_into_libs=yes 11501 ;; 11502 11503irix5* | irix6* | nonstopux*) 11504 case $host_os in 11505 nonstopux*) version_type=nonstopux ;; 11506 *) 11507 if test yes = "$lt_cv_prog_gnu_ld"; then 11508 version_type=linux # correct to gnu/linux during the next big refactor 11509 else 11510 version_type=irix 11511 fi ;; 11512 esac 11513 need_lib_prefix=no 11514 need_version=no 11515 soname_spec='$libname$release$shared_ext$major' 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11517 case $host_os in 11518 irix5* | nonstopux*) 11519 libsuff= shlibsuff= 11520 ;; 11521 *) 11522 case $LD in # libtool.m4 will add one of these switches to LD 11523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11524 libsuff= shlibsuff= libmagic=32-bit;; 11525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11526 libsuff=32 shlibsuff=N32 libmagic=N32;; 11527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11528 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11529 *) libsuff= shlibsuff= libmagic=never-match;; 11530 esac 11531 ;; 11532 esac 11533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11534 shlibpath_overrides_runpath=no 11535 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11536 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11537 hardcode_into_libs=yes 11538 ;; 11539 11540# No shared lib support for Linux oldld, aout, or coff. 11541linux*oldld* | linux*aout* | linux*coff*) 11542 dynamic_linker=no 11543 ;; 11544 11545linux*android*) 11546 version_type=none # Android doesn't support versioned libraries. 11547 need_lib_prefix=no 11548 need_version=no 11549 library_names_spec='$libname$release$shared_ext' 11550 soname_spec='$libname$release$shared_ext' 11551 finish_cmds= 11552 shlibpath_var=LD_LIBRARY_PATH 11553 shlibpath_overrides_runpath=yes 11554 11555 # This implies no fast_install, which is unacceptable. 11556 # Some rework will be needed to allow for fast_install 11557 # before this can be enabled. 11558 hardcode_into_libs=yes 11559 11560 dynamic_linker='Android linker' 11561 # Don't embed -rpath directories since the linker doesn't support them. 11562 hardcode_libdir_flag_spec='-L$libdir' 11563 ;; 11564 11565# This must be glibc/ELF. 11566linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11567 version_type=linux # correct to gnu/linux during the next big refactor 11568 need_lib_prefix=no 11569 need_version=no 11570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11571 soname_spec='$libname$release$shared_ext$major' 11572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11573 shlibpath_var=LD_LIBRARY_PATH 11574 shlibpath_overrides_runpath=no 11575 11576 # Some binutils ld are patched to set DT_RUNPATH 11577 if test ${lt_cv_shlibpath_overrides_runpath+y} 11578then : 11579 printf %s "(cached) " >&6 11580else $as_nop 11581 lt_cv_shlibpath_overrides_runpath=no 11582 save_LDFLAGS=$LDFLAGS 11583 save_libdir=$libdir 11584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11587/* end confdefs.h. */ 11588 11589int 11590main (void) 11591{ 11592 11593 ; 11594 return 0; 11595} 11596_ACEOF 11597if ac_fn_c_try_link "$LINENO" 11598then : 11599 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11600then : 11601 lt_cv_shlibpath_overrides_runpath=yes 11602fi 11603fi 11604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11605 conftest$ac_exeext conftest.$ac_ext 11606 LDFLAGS=$save_LDFLAGS 11607 libdir=$save_libdir 11608 11609fi 11610 11611 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11612 11613 # This implies no fast_install, which is unacceptable. 11614 # Some rework will be needed to allow for fast_install 11615 # before this can be enabled. 11616 hardcode_into_libs=yes 11617 11618 # Ideally, we could use ldconfig to report *all* directores which are 11619 # searched for libraries, however this is still not possible. Aside from not 11620 # being certain /sbin/ldconfig is available, command 11621 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11622 # even though it is searched at run-time. Try to do the best guess by 11623 # appending ld.so.conf contents (and includes) to the search path. 11624 if test -f /etc/ld.so.conf; then 11625 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' ' '` 11626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11627 fi 11628 11629 # We used to test for /lib/ld.so.1 and disable shared libraries on 11630 # powerpc, because MkLinux only supported shared libraries with the 11631 # GNU dynamic linker. Since this was broken with cross compilers, 11632 # most powerpc-linux boxes support dynamic linking these days and 11633 # people can always --disable-shared, the test was removed, and we 11634 # assume the GNU/Linux dynamic linker is in use. 11635 dynamic_linker='GNU/Linux ld.so' 11636 ;; 11637 11638netbsd*) 11639 version_type=sunos 11640 need_lib_prefix=no 11641 need_version=no 11642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11645 dynamic_linker='NetBSD (a.out) ld.so' 11646 else 11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11648 soname_spec='$libname$release$shared_ext$major' 11649 dynamic_linker='NetBSD ld.elf_so' 11650 fi 11651 shlibpath_var=LD_LIBRARY_PATH 11652 shlibpath_overrides_runpath=yes 11653 hardcode_into_libs=yes 11654 ;; 11655 11656newsos6) 11657 version_type=linux # correct to gnu/linux during the next big refactor 11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11659 shlibpath_var=LD_LIBRARY_PATH 11660 shlibpath_overrides_runpath=yes 11661 ;; 11662 11663*nto* | *qnx*) 11664 version_type=qnx 11665 need_lib_prefix=no 11666 need_version=no 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11668 soname_spec='$libname$release$shared_ext$major' 11669 shlibpath_var=LD_LIBRARY_PATH 11670 shlibpath_overrides_runpath=no 11671 hardcode_into_libs=yes 11672 dynamic_linker='ldqnx.so' 11673 ;; 11674 11675openbsd* | bitrig*) 11676 version_type=sunos 11677 sys_lib_dlsearch_path_spec=/usr/lib 11678 need_lib_prefix=no 11679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11680 need_version=no 11681 else 11682 need_version=yes 11683 fi 11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11686 shlibpath_var=LD_LIBRARY_PATH 11687 shlibpath_overrides_runpath=yes 11688 ;; 11689 11690os2*) 11691 libname_spec='$name' 11692 version_type=windows 11693 shrext_cmds=.dll 11694 need_version=no 11695 need_lib_prefix=no 11696 # OS/2 can only load a DLL with a base name of 8 characters or less. 11697 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11698 v=$($ECHO $release$versuffix | tr -d .-); 11699 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11700 $ECHO $n$v`$shared_ext' 11701 library_names_spec='${libname}_dll.$libext' 11702 dynamic_linker='OS/2 ld.exe' 11703 shlibpath_var=BEGINLIBPATH 11704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11706 postinstall_cmds='base_file=`basename \$file`~ 11707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11708 dldir=$destdir/`dirname \$dlpath`~ 11709 test -d \$dldir || mkdir -p \$dldir~ 11710 $install_prog $dir/$dlname \$dldir/$dlname~ 11711 chmod a+x \$dldir/$dlname~ 11712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11714 fi' 11715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11716 dlpath=$dir/\$dldll~ 11717 $RM \$dlpath' 11718 ;; 11719 11720osf3* | osf4* | osf5*) 11721 version_type=osf 11722 need_lib_prefix=no 11723 need_version=no 11724 soname_spec='$libname$release$shared_ext$major' 11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11729 ;; 11730 11731rdos*) 11732 dynamic_linker=no 11733 ;; 11734 11735solaris*) 11736 version_type=linux # correct to gnu/linux during the next big refactor 11737 need_lib_prefix=no 11738 need_version=no 11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11740 soname_spec='$libname$release$shared_ext$major' 11741 shlibpath_var=LD_LIBRARY_PATH 11742 shlibpath_overrides_runpath=yes 11743 hardcode_into_libs=yes 11744 # ldd complains unless libraries are executable 11745 postinstall_cmds='chmod +x $lib' 11746 ;; 11747 11748sunos4*) 11749 version_type=sunos 11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11752 shlibpath_var=LD_LIBRARY_PATH 11753 shlibpath_overrides_runpath=yes 11754 if test yes = "$with_gnu_ld"; then 11755 need_lib_prefix=no 11756 fi 11757 need_version=yes 11758 ;; 11759 11760sysv4 | sysv4.3*) 11761 version_type=linux # correct to gnu/linux during the next big refactor 11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 soname_spec='$libname$release$shared_ext$major' 11764 shlibpath_var=LD_LIBRARY_PATH 11765 case $host_vendor in 11766 sni) 11767 shlibpath_overrides_runpath=no 11768 need_lib_prefix=no 11769 runpath_var=LD_RUN_PATH 11770 ;; 11771 siemens) 11772 need_lib_prefix=no 11773 ;; 11774 motorola) 11775 need_lib_prefix=no 11776 need_version=no 11777 shlibpath_overrides_runpath=no 11778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11779 ;; 11780 esac 11781 ;; 11782 11783sysv4*MP*) 11784 if test -d /usr/nec; then 11785 version_type=linux # correct to gnu/linux during the next big refactor 11786 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11787 soname_spec='$libname$shared_ext.$major' 11788 shlibpath_var=LD_LIBRARY_PATH 11789 fi 11790 ;; 11791 11792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11793 version_type=sco 11794 need_lib_prefix=no 11795 need_version=no 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11797 soname_spec='$libname$release$shared_ext$major' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 shlibpath_overrides_runpath=yes 11800 hardcode_into_libs=yes 11801 if test yes = "$with_gnu_ld"; then 11802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11803 else 11804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11805 case $host_os in 11806 sco3.2v5*) 11807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11808 ;; 11809 esac 11810 fi 11811 sys_lib_dlsearch_path_spec='/usr/lib' 11812 ;; 11813 11814tpf*) 11815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11816 version_type=linux # correct to gnu/linux during the next big refactor 11817 need_lib_prefix=no 11818 need_version=no 11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11820 shlibpath_var=LD_LIBRARY_PATH 11821 shlibpath_overrides_runpath=no 11822 hardcode_into_libs=yes 11823 ;; 11824 11825uts4*) 11826 version_type=linux # correct to gnu/linux during the next big refactor 11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11828 soname_spec='$libname$release$shared_ext$major' 11829 shlibpath_var=LD_LIBRARY_PATH 11830 ;; 11831 11832*) 11833 dynamic_linker=no 11834 ;; 11835esac 11836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11837printf "%s\n" "$dynamic_linker" >&6; } 11838test no = "$dynamic_linker" && can_build_shared=no 11839 11840variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11841if test yes = "$GCC"; then 11842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11843fi 11844 11845if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11846 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11847fi 11848 11849if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11850 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11851fi 11852 11853# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11854configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11855 11856# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11857func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11858 11859# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11860configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11959printf %s "checking how to hardcode library paths into programs... " >&6; } 11960hardcode_action= 11961if test -n "$hardcode_libdir_flag_spec" || 11962 test -n "$runpath_var" || 11963 test yes = "$hardcode_automatic"; then 11964 11965 # We can hardcode non-existent directories. 11966 if test no != "$hardcode_direct" && 11967 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11968 # have to relink, otherwise we might link with an installed library 11969 # when we should be linking with a yet-to-be-installed one 11970 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11971 test no != "$hardcode_minus_L"; then 11972 # Linking always hardcodes the temporary library directory. 11973 hardcode_action=relink 11974 else 11975 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11976 hardcode_action=immediate 11977 fi 11978else 11979 # We cannot hardcode anything, or else we can only hardcode existing 11980 # directories. 11981 hardcode_action=unsupported 11982fi 11983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11984printf "%s\n" "$hardcode_action" >&6; } 11985 11986if test relink = "$hardcode_action" || 11987 test yes = "$inherit_rpath"; then 11988 # Fast installation is not supported 11989 enable_fast_install=no 11990elif test yes = "$shlibpath_overrides_runpath" || 11991 test no = "$enable_shared"; then 11992 # Fast installation is not necessary 11993 enable_fast_install=needless 11994fi 11995 11996 11997 11998 11999 12000 12001 if test yes != "$enable_dlopen"; then 12002 enable_dlopen=unknown 12003 enable_dlopen_self=unknown 12004 enable_dlopen_self_static=unknown 12005else 12006 lt_cv_dlopen=no 12007 lt_cv_dlopen_libs= 12008 12009 case $host_os in 12010 beos*) 12011 lt_cv_dlopen=load_add_on 12012 lt_cv_dlopen_libs= 12013 lt_cv_dlopen_self=yes 12014 ;; 12015 12016 mingw* | pw32* | cegcc*) 12017 lt_cv_dlopen=LoadLibrary 12018 lt_cv_dlopen_libs= 12019 ;; 12020 12021 cygwin*) 12022 lt_cv_dlopen=dlopen 12023 lt_cv_dlopen_libs= 12024 ;; 12025 12026 darwin*) 12027 # if libdl is installed we need to link against it 12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12029printf %s "checking for dlopen in -ldl... " >&6; } 12030if test ${ac_cv_lib_dl_dlopen+y} 12031then : 12032 printf %s "(cached) " >&6 12033else $as_nop 12034 ac_check_lib_save_LIBS=$LIBS 12035LIBS="-ldl $LIBS" 12036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12037/* end confdefs.h. */ 12038 12039/* Override any GCC internal prototype to avoid an error. 12040 Use char because int might match the return type of a GCC 12041 builtin and then its argument prototype would still apply. 12042 The 'extern "C"' is for builds by C++ compilers; 12043 although this is not generally supported in C code supporting it here 12044 has little cost and some practical benefit (sr 110532). */ 12045#ifdef __cplusplus 12046extern "C" 12047#endif 12048char dlopen (void); 12049int 12050main (void) 12051{ 12052return dlopen (); 12053 ; 12054 return 0; 12055} 12056_ACEOF 12057if ac_fn_c_try_link "$LINENO" 12058then : 12059 ac_cv_lib_dl_dlopen=yes 12060else $as_nop 12061 ac_cv_lib_dl_dlopen=no 12062fi 12063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12064 conftest$ac_exeext conftest.$ac_ext 12065LIBS=$ac_check_lib_save_LIBS 12066fi 12067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12068printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12069if test "x$ac_cv_lib_dl_dlopen" = xyes 12070then : 12071 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12072else $as_nop 12073 12074 lt_cv_dlopen=dyld 12075 lt_cv_dlopen_libs= 12076 lt_cv_dlopen_self=yes 12077 12078fi 12079 12080 ;; 12081 12082 tpf*) 12083 # Don't try to run any link tests for TPF. We know it's impossible 12084 # because TPF is a cross-compiler, and we know how we open DSOs. 12085 lt_cv_dlopen=dlopen 12086 lt_cv_dlopen_libs= 12087 lt_cv_dlopen_self=no 12088 ;; 12089 12090 *) 12091 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12092if test "x$ac_cv_func_shl_load" = xyes 12093then : 12094 lt_cv_dlopen=shl_load 12095else $as_nop 12096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12097printf %s "checking for shl_load in -ldld... " >&6; } 12098if test ${ac_cv_lib_dld_shl_load+y} 12099then : 12100 printf %s "(cached) " >&6 12101else $as_nop 12102 ac_check_lib_save_LIBS=$LIBS 12103LIBS="-ldld $LIBS" 12104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12105/* end confdefs.h. */ 12106 12107/* Override any GCC internal prototype to avoid an error. 12108 Use char because int might match the return type of a GCC 12109 builtin and then its argument prototype would still apply. 12110 The 'extern "C"' is for builds by C++ compilers; 12111 although this is not generally supported in C code supporting it here 12112 has little cost and some practical benefit (sr 110532). */ 12113#ifdef __cplusplus 12114extern "C" 12115#endif 12116char shl_load (void); 12117int 12118main (void) 12119{ 12120return shl_load (); 12121 ; 12122 return 0; 12123} 12124_ACEOF 12125if ac_fn_c_try_link "$LINENO" 12126then : 12127 ac_cv_lib_dld_shl_load=yes 12128else $as_nop 12129 ac_cv_lib_dld_shl_load=no 12130fi 12131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12132 conftest$ac_exeext conftest.$ac_ext 12133LIBS=$ac_check_lib_save_LIBS 12134fi 12135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12136printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12137if test "x$ac_cv_lib_dld_shl_load" = xyes 12138then : 12139 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12140else $as_nop 12141 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12142if test "x$ac_cv_func_dlopen" = xyes 12143then : 12144 lt_cv_dlopen=dlopen 12145else $as_nop 12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12147printf %s "checking for dlopen in -ldl... " >&6; } 12148if test ${ac_cv_lib_dl_dlopen+y} 12149then : 12150 printf %s "(cached) " >&6 12151else $as_nop 12152 ac_check_lib_save_LIBS=$LIBS 12153LIBS="-ldl $LIBS" 12154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12155/* end confdefs.h. */ 12156 12157/* Override any GCC internal prototype to avoid an error. 12158 Use char because int might match the return type of a GCC 12159 builtin and then its argument prototype would still apply. 12160 The 'extern "C"' is for builds by C++ compilers; 12161 although this is not generally supported in C code supporting it here 12162 has little cost and some practical benefit (sr 110532). */ 12163#ifdef __cplusplus 12164extern "C" 12165#endif 12166char dlopen (void); 12167int 12168main (void) 12169{ 12170return dlopen (); 12171 ; 12172 return 0; 12173} 12174_ACEOF 12175if ac_fn_c_try_link "$LINENO" 12176then : 12177 ac_cv_lib_dl_dlopen=yes 12178else $as_nop 12179 ac_cv_lib_dl_dlopen=no 12180fi 12181rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12182 conftest$ac_exeext conftest.$ac_ext 12183LIBS=$ac_check_lib_save_LIBS 12184fi 12185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12186printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12187if test "x$ac_cv_lib_dl_dlopen" = xyes 12188then : 12189 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12190else $as_nop 12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12192printf %s "checking for dlopen in -lsvld... " >&6; } 12193if test ${ac_cv_lib_svld_dlopen+y} 12194then : 12195 printf %s "(cached) " >&6 12196else $as_nop 12197 ac_check_lib_save_LIBS=$LIBS 12198LIBS="-lsvld $LIBS" 12199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12200/* end confdefs.h. */ 12201 12202/* Override any GCC internal prototype to avoid an error. 12203 Use char because int might match the return type of a GCC 12204 builtin and then its argument prototype would still apply. 12205 The 'extern "C"' is for builds by C++ compilers; 12206 although this is not generally supported in C code supporting it here 12207 has little cost and some practical benefit (sr 110532). */ 12208#ifdef __cplusplus 12209extern "C" 12210#endif 12211char dlopen (void); 12212int 12213main (void) 12214{ 12215return dlopen (); 12216 ; 12217 return 0; 12218} 12219_ACEOF 12220if ac_fn_c_try_link "$LINENO" 12221then : 12222 ac_cv_lib_svld_dlopen=yes 12223else $as_nop 12224 ac_cv_lib_svld_dlopen=no 12225fi 12226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12227 conftest$ac_exeext conftest.$ac_ext 12228LIBS=$ac_check_lib_save_LIBS 12229fi 12230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12231printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12232if test "x$ac_cv_lib_svld_dlopen" = xyes 12233then : 12234 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12235else $as_nop 12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12237printf %s "checking for dld_link in -ldld... " >&6; } 12238if test ${ac_cv_lib_dld_dld_link+y} 12239then : 12240 printf %s "(cached) " >&6 12241else $as_nop 12242 ac_check_lib_save_LIBS=$LIBS 12243LIBS="-ldld $LIBS" 12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247/* Override any GCC internal prototype to avoid an error. 12248 Use char because int might match the return type of a GCC 12249 builtin and then its argument prototype would still apply. 12250 The 'extern "C"' is for builds by C++ compilers; 12251 although this is not generally supported in C code supporting it here 12252 has little cost and some practical benefit (sr 110532). */ 12253#ifdef __cplusplus 12254extern "C" 12255#endif 12256char dld_link (void); 12257int 12258main (void) 12259{ 12260return dld_link (); 12261 ; 12262 return 0; 12263} 12264_ACEOF 12265if ac_fn_c_try_link "$LINENO" 12266then : 12267 ac_cv_lib_dld_dld_link=yes 12268else $as_nop 12269 ac_cv_lib_dld_dld_link=no 12270fi 12271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12272 conftest$ac_exeext conftest.$ac_ext 12273LIBS=$ac_check_lib_save_LIBS 12274fi 12275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12276printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12277if test "x$ac_cv_lib_dld_dld_link" = xyes 12278then : 12279 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12280fi 12281 12282 12283fi 12284 12285 12286fi 12287 12288 12289fi 12290 12291 12292fi 12293 12294 12295fi 12296 12297 ;; 12298 esac 12299 12300 if test no = "$lt_cv_dlopen"; then 12301 enable_dlopen=no 12302 else 12303 enable_dlopen=yes 12304 fi 12305 12306 case $lt_cv_dlopen in 12307 dlopen) 12308 save_CPPFLAGS=$CPPFLAGS 12309 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12310 12311 save_LDFLAGS=$LDFLAGS 12312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12313 12314 save_LIBS=$LIBS 12315 LIBS="$lt_cv_dlopen_libs $LIBS" 12316 12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12318printf %s "checking whether a program can dlopen itself... " >&6; } 12319if test ${lt_cv_dlopen_self+y} 12320then : 12321 printf %s "(cached) " >&6 12322else $as_nop 12323 if test yes = "$cross_compiling"; then : 12324 lt_cv_dlopen_self=cross 12325else 12326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12327 lt_status=$lt_dlunknown 12328 cat > conftest.$ac_ext <<_LT_EOF 12329#line $LINENO "configure" 12330#include "confdefs.h" 12331 12332#if HAVE_DLFCN_H 12333#include <dlfcn.h> 12334#endif 12335 12336#include <stdio.h> 12337 12338#ifdef RTLD_GLOBAL 12339# define LT_DLGLOBAL RTLD_GLOBAL 12340#else 12341# ifdef DL_GLOBAL 12342# define LT_DLGLOBAL DL_GLOBAL 12343# else 12344# define LT_DLGLOBAL 0 12345# endif 12346#endif 12347 12348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12349 find out it does not work in some platform. */ 12350#ifndef LT_DLLAZY_OR_NOW 12351# ifdef RTLD_LAZY 12352# define LT_DLLAZY_OR_NOW RTLD_LAZY 12353# else 12354# ifdef DL_LAZY 12355# define LT_DLLAZY_OR_NOW DL_LAZY 12356# else 12357# ifdef RTLD_NOW 12358# define LT_DLLAZY_OR_NOW RTLD_NOW 12359# else 12360# ifdef DL_NOW 12361# define LT_DLLAZY_OR_NOW DL_NOW 12362# else 12363# define LT_DLLAZY_OR_NOW 0 12364# endif 12365# endif 12366# endif 12367# endif 12368#endif 12369 12370/* When -fvisibility=hidden is used, assume the code has been annotated 12371 correspondingly for the symbols needed. */ 12372#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12373int fnord () __attribute__((visibility("default"))); 12374#endif 12375 12376int fnord () { return 42; } 12377int main () 12378{ 12379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12380 int status = $lt_dlunknown; 12381 12382 if (self) 12383 { 12384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12385 else 12386 { 12387 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12388 else puts (dlerror ()); 12389 } 12390 /* dlclose (self); */ 12391 } 12392 else 12393 puts (dlerror ()); 12394 12395 return status; 12396} 12397_LT_EOF 12398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12399 (eval $ac_link) 2>&5 12400 ac_status=$? 12401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12402 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12403 (./conftest; exit; ) >&5 2>/dev/null 12404 lt_status=$? 12405 case x$lt_status in 12406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12409 esac 12410 else : 12411 # compilation failed 12412 lt_cv_dlopen_self=no 12413 fi 12414fi 12415rm -fr conftest* 12416 12417 12418fi 12419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12420printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12421 12422 if test yes = "$lt_cv_dlopen_self"; then 12423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12425printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12426if test ${lt_cv_dlopen_self_static+y} 12427then : 12428 printf %s "(cached) " >&6 12429else $as_nop 12430 if test yes = "$cross_compiling"; then : 12431 lt_cv_dlopen_self_static=cross 12432else 12433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12434 lt_status=$lt_dlunknown 12435 cat > conftest.$ac_ext <<_LT_EOF 12436#line $LINENO "configure" 12437#include "confdefs.h" 12438 12439#if HAVE_DLFCN_H 12440#include <dlfcn.h> 12441#endif 12442 12443#include <stdio.h> 12444 12445#ifdef RTLD_GLOBAL 12446# define LT_DLGLOBAL RTLD_GLOBAL 12447#else 12448# ifdef DL_GLOBAL 12449# define LT_DLGLOBAL DL_GLOBAL 12450# else 12451# define LT_DLGLOBAL 0 12452# endif 12453#endif 12454 12455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12456 find out it does not work in some platform. */ 12457#ifndef LT_DLLAZY_OR_NOW 12458# ifdef RTLD_LAZY 12459# define LT_DLLAZY_OR_NOW RTLD_LAZY 12460# else 12461# ifdef DL_LAZY 12462# define LT_DLLAZY_OR_NOW DL_LAZY 12463# else 12464# ifdef RTLD_NOW 12465# define LT_DLLAZY_OR_NOW RTLD_NOW 12466# else 12467# ifdef DL_NOW 12468# define LT_DLLAZY_OR_NOW DL_NOW 12469# else 12470# define LT_DLLAZY_OR_NOW 0 12471# endif 12472# endif 12473# endif 12474# endif 12475#endif 12476 12477/* When -fvisibility=hidden is used, assume the code has been annotated 12478 correspondingly for the symbols needed. */ 12479#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12480int fnord () __attribute__((visibility("default"))); 12481#endif 12482 12483int fnord () { return 42; } 12484int main () 12485{ 12486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12487 int status = $lt_dlunknown; 12488 12489 if (self) 12490 { 12491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12492 else 12493 { 12494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12495 else puts (dlerror ()); 12496 } 12497 /* dlclose (self); */ 12498 } 12499 else 12500 puts (dlerror ()); 12501 12502 return status; 12503} 12504_LT_EOF 12505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12506 (eval $ac_link) 2>&5 12507 ac_status=$? 12508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12509 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12510 (./conftest; exit; ) >&5 2>/dev/null 12511 lt_status=$? 12512 case x$lt_status in 12513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12515 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12516 esac 12517 else : 12518 # compilation failed 12519 lt_cv_dlopen_self_static=no 12520 fi 12521fi 12522rm -fr conftest* 12523 12524 12525fi 12526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12527printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12528 fi 12529 12530 CPPFLAGS=$save_CPPFLAGS 12531 LDFLAGS=$save_LDFLAGS 12532 LIBS=$save_LIBS 12533 ;; 12534 esac 12535 12536 case $lt_cv_dlopen_self in 12537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12538 *) enable_dlopen_self=unknown ;; 12539 esac 12540 12541 case $lt_cv_dlopen_self_static in 12542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12543 *) enable_dlopen_self_static=unknown ;; 12544 esac 12545fi 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563striplib= 12564old_striplib= 12565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12566printf %s "checking whether stripping libraries is possible... " >&6; } 12567if test -z "$STRIP"; then 12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12569printf "%s\n" "no" >&6; } 12570else 12571 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12572 old_striplib="$STRIP --strip-debug" 12573 striplib="$STRIP --strip-unneeded" 12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12575printf "%s\n" "yes" >&6; } 12576 else 12577 case $host_os in 12578 darwin*) 12579 # FIXME - insert some real tests, host_os isn't really good enough 12580 striplib="$STRIP -x" 12581 old_striplib="$STRIP -S" 12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12583printf "%s\n" "yes" >&6; } 12584 ;; 12585 freebsd*) 12586 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12587 old_striplib="$STRIP --strip-debug" 12588 striplib="$STRIP --strip-unneeded" 12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12590printf "%s\n" "yes" >&6; } 12591 else 12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12593printf "%s\n" "no" >&6; } 12594 fi 12595 ;; 12596 *) 12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12598printf "%s\n" "no" >&6; } 12599 ;; 12600 esac 12601 fi 12602fi 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 # Report what library types will actually be built 12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12617printf %s "checking if libtool supports shared libraries... " >&6; } 12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12619printf "%s\n" "$can_build_shared" >&6; } 12620 12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12622printf %s "checking whether to build shared libraries... " >&6; } 12623 test no = "$can_build_shared" && enable_shared=no 12624 12625 # On AIX, shared libraries and static libraries use the same namespace, and 12626 # are all built from PIC. 12627 case $host_os in 12628 aix3*) 12629 test yes = "$enable_shared" && enable_static=no 12630 if test -n "$RANLIB"; then 12631 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12632 postinstall_cmds='$RANLIB $lib' 12633 fi 12634 ;; 12635 12636 aix[4-9]*) 12637 if test ia64 != "$host_cpu"; then 12638 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12639 yes,aix,yes) ;; # shared object as lib.so file only 12640 yes,svr4,*) ;; # shared object as lib.so archive member only 12641 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12642 esac 12643 fi 12644 ;; 12645 esac 12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12647printf "%s\n" "$enable_shared" >&6; } 12648 12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12650printf %s "checking whether to build static libraries... " >&6; } 12651 # Make sure either enable_shared or enable_static is yes. 12652 test yes = "$enable_shared" || enable_static=yes 12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12654printf "%s\n" "$enable_static" >&6; } 12655 12656 12657 12658 12659fi 12660ac_ext=c 12661ac_cpp='$CPP $CPPFLAGS' 12662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12664ac_compiler_gnu=$ac_cv_c_compiler_gnu 12665 12666CC=$lt_save_CC 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 ac_config_commands="$ac_config_commands libtool" 12683 12684 12685 12686 12687# Only expand once: 12688 12689 12690 12691# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12705printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12706if test ${ac_cv_c_undeclared_builtin_options+y} 12707then : 12708 printf %s "(cached) " >&6 12709else $as_nop 12710 ac_save_CFLAGS=$CFLAGS 12711 ac_cv_c_undeclared_builtin_options='cannot detect' 12712 for ac_arg in '' -fno-builtin; do 12713 CFLAGS="$ac_save_CFLAGS $ac_arg" 12714 # This test program should *not* compile successfully. 12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12716/* end confdefs.h. */ 12717 12718int 12719main (void) 12720{ 12721(void) strchr; 12722 ; 12723 return 0; 12724} 12725_ACEOF 12726if ac_fn_c_try_compile "$LINENO" 12727then : 12728 12729else $as_nop 12730 # This test program should compile successfully. 12731 # No library function is consistently available on 12732 # freestanding implementations, so test against a dummy 12733 # declaration. Include always-available headers on the 12734 # off chance that they somehow elicit warnings. 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737#include <float.h> 12738#include <limits.h> 12739#include <stdarg.h> 12740#include <stddef.h> 12741extern void ac_decl (int, char *); 12742 12743int 12744main (void) 12745{ 12746(void) ac_decl (0, (char *) 0); 12747 (void) ac_decl; 12748 12749 ; 12750 return 0; 12751} 12752_ACEOF 12753if ac_fn_c_try_compile "$LINENO" 12754then : 12755 if test x"$ac_arg" = x 12756then : 12757 ac_cv_c_undeclared_builtin_options='none needed' 12758else $as_nop 12759 ac_cv_c_undeclared_builtin_options=$ac_arg 12760fi 12761 break 12762fi 12763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12764fi 12765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12766 done 12767 CFLAGS=$ac_save_CFLAGS 12768 12769fi 12770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12771printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12772 case $ac_cv_c_undeclared_builtin_options in #( 12773 'cannot detect') : 12774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12775printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12776as_fn_error $? "cannot make $CC report undeclared builtins 12777See \`config.log' for more details" "$LINENO" 5; } ;; #( 12778 'none needed') : 12779 ac_c_undeclared_builtin_options='' ;; #( 12780 *) : 12781 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12782esac 12783 12784 12785 12786 12787 12788ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12789if test "x$ac_cv_have_decl___clang__" = xyes 12790then : 12791 CLANGCC="yes" 12792else $as_nop 12793 CLANGCC="no" 12794fi 12795ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12796if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12797then : 12798 INTELCC="yes" 12799else $as_nop 12800 INTELCC="no" 12801fi 12802ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12803if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12804then : 12805 SUNCC="yes" 12806else $as_nop 12807 SUNCC="no" 12808fi 12809 12810 12811 12812 12813 12814 12815 12816 12817if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12818 if test -n "$ac_tool_prefix"; then 12819 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12820set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12822printf %s "checking for $ac_word... " >&6; } 12823if test ${ac_cv_path_PKG_CONFIG+y} 12824then : 12825 printf %s "(cached) " >&6 12826else $as_nop 12827 case $PKG_CONFIG in 12828 [\\/]* | ?:[\\/]*) 12829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12830 ;; 12831 *) 12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12833for as_dir in $PATH 12834do 12835 IFS=$as_save_IFS 12836 case $as_dir in #((( 12837 '') as_dir=./ ;; 12838 */) ;; 12839 *) as_dir=$as_dir/ ;; 12840 esac 12841 for ac_exec_ext in '' $ac_executable_extensions; do 12842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12843 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12845 break 2 12846 fi 12847done 12848 done 12849IFS=$as_save_IFS 12850 12851 ;; 12852esac 12853fi 12854PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12855if test -n "$PKG_CONFIG"; then 12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12857printf "%s\n" "$PKG_CONFIG" >&6; } 12858else 12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12860printf "%s\n" "no" >&6; } 12861fi 12862 12863 12864fi 12865if test -z "$ac_cv_path_PKG_CONFIG"; then 12866 ac_pt_PKG_CONFIG=$PKG_CONFIG 12867 # Extract the first word of "pkg-config", so it can be a program name with args. 12868set dummy pkg-config; ac_word=$2 12869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12870printf %s "checking for $ac_word... " >&6; } 12871if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12872then : 12873 printf %s "(cached) " >&6 12874else $as_nop 12875 case $ac_pt_PKG_CONFIG in 12876 [\\/]* | ?:[\\/]*) 12877 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12878 ;; 12879 *) 12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12881for as_dir in $PATH 12882do 12883 IFS=$as_save_IFS 12884 case $as_dir in #((( 12885 '') as_dir=./ ;; 12886 */) ;; 12887 *) as_dir=$as_dir/ ;; 12888 esac 12889 for ac_exec_ext in '' $ac_executable_extensions; do 12890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12891 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12893 break 2 12894 fi 12895done 12896 done 12897IFS=$as_save_IFS 12898 12899 ;; 12900esac 12901fi 12902ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12903if test -n "$ac_pt_PKG_CONFIG"; then 12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12905printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12906else 12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12908printf "%s\n" "no" >&6; } 12909fi 12910 12911 if test "x$ac_pt_PKG_CONFIG" = x; then 12912 PKG_CONFIG="" 12913 else 12914 case $cross_compiling:$ac_tool_warned in 12915yes:) 12916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12918ac_tool_warned=yes ;; 12919esac 12920 PKG_CONFIG=$ac_pt_PKG_CONFIG 12921 fi 12922else 12923 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12924fi 12925 12926fi 12927if test -n "$PKG_CONFIG"; then 12928 _pkg_min_version=0.9.0 12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12930printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12931 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12933printf "%s\n" "yes" >&6; } 12934 else 12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12936printf "%s\n" "no" >&6; } 12937 PKG_CONFIG="" 12938 fi 12939fi 12940 12941 12942 12943 12944 12945# Check whether --enable-selective-werror was given. 12946if test ${enable_selective_werror+y} 12947then : 12948 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12949else $as_nop 12950 SELECTIVE_WERROR=yes 12951fi 12952 12953 12954 12955 12956 12957# -v is too short to test reliably with XORG_TESTSET_CFLAG 12958if test "x$SUNCC" = "xyes"; then 12959 BASE_CFLAGS="-v" 12960else 12961 BASE_CFLAGS="" 12962fi 12963 12964# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978xorg_testset_save_CFLAGS="$CFLAGS" 12979 12980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12985then : 12986 printf %s "(cached) " >&6 12987else $as_nop 12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12989/* end confdefs.h. */ 12990int i; 12991_ACEOF 12992if ac_fn_c_try_compile "$LINENO" 12993then : 12994 xorg_cv_cc_flag_unknown_warning_option=yes 12995else $as_nop 12996 xorg_cv_cc_flag_unknown_warning_option=no 12997fi 12998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12999fi 13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13003 CFLAGS="$xorg_testset_save_CFLAGS" 13004fi 13005 13006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13009 fi 13010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13013if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13014then : 13015 printf %s "(cached) " >&6 13016else $as_nop 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019int i; 13020_ACEOF 13021if ac_fn_c_try_compile "$LINENO" 13022then : 13023 xorg_cv_cc_flag_unused_command_line_argument=yes 13024else $as_nop 13025 xorg_cv_cc_flag_unused_command_line_argument=no 13026fi 13027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13028fi 13029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13032 CFLAGS="$xorg_testset_save_CFLAGS" 13033fi 13034 13035found="no" 13036 13037 if test $found = "no" ; then 13038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13040 fi 13041 13042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13044 fi 13045 13046 CFLAGS="$CFLAGS -Wall" 13047 13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13049printf %s "checking if $CC supports -Wall... " >&6; } 13050 cacheid=xorg_cv_cc_flag__Wall 13051 if eval test \${$cacheid+y} 13052then : 13053 printf %s "(cached) " >&6 13054else $as_nop 13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13056/* end confdefs.h. */ 13057int i; 13058int 13059main (void) 13060{ 13061 13062 ; 13063 return 0; 13064} 13065_ACEOF 13066if ac_fn_c_try_link "$LINENO" 13067then : 13068 eval $cacheid=yes 13069else $as_nop 13070 eval $cacheid=no 13071fi 13072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13073 conftest$ac_exeext conftest.$ac_ext 13074fi 13075 13076 13077 CFLAGS="$xorg_testset_save_CFLAGS" 13078 13079 eval supported=\$$cacheid 13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13081printf "%s\n" "$supported" >&6; } 13082 if test "$supported" = "yes" ; then 13083 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13084 found="yes" 13085 fi 13086 fi 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102xorg_testset_save_CFLAGS="$CFLAGS" 13103 13104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13108if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13109then : 13110 printf %s "(cached) " >&6 13111else $as_nop 13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13113/* end confdefs.h. */ 13114int i; 13115_ACEOF 13116if ac_fn_c_try_compile "$LINENO" 13117then : 13118 xorg_cv_cc_flag_unknown_warning_option=yes 13119else $as_nop 13120 xorg_cv_cc_flag_unknown_warning_option=no 13121fi 13122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13123fi 13124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13127 CFLAGS="$xorg_testset_save_CFLAGS" 13128fi 13129 13130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13133 fi 13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13137if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13138then : 13139 printf %s "(cached) " >&6 13140else $as_nop 13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143int i; 13144_ACEOF 13145if ac_fn_c_try_compile "$LINENO" 13146then : 13147 xorg_cv_cc_flag_unused_command_line_argument=yes 13148else $as_nop 13149 xorg_cv_cc_flag_unused_command_line_argument=no 13150fi 13151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13152fi 13153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13156 CFLAGS="$xorg_testset_save_CFLAGS" 13157fi 13158 13159found="no" 13160 13161 if test $found = "no" ; then 13162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13164 fi 13165 13166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13168 fi 13169 13170 CFLAGS="$CFLAGS -Wpointer-arith" 13171 13172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13173printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13174 cacheid=xorg_cv_cc_flag__Wpointer_arith 13175 if eval test \${$cacheid+y} 13176then : 13177 printf %s "(cached) " >&6 13178else $as_nop 13179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13180/* end confdefs.h. */ 13181int i; 13182int 13183main (void) 13184{ 13185 13186 ; 13187 return 0; 13188} 13189_ACEOF 13190if ac_fn_c_try_link "$LINENO" 13191then : 13192 eval $cacheid=yes 13193else $as_nop 13194 eval $cacheid=no 13195fi 13196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13197 conftest$ac_exeext conftest.$ac_ext 13198fi 13199 13200 13201 CFLAGS="$xorg_testset_save_CFLAGS" 13202 13203 eval supported=\$$cacheid 13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13205printf "%s\n" "$supported" >&6; } 13206 if test "$supported" = "yes" ; then 13207 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13208 found="yes" 13209 fi 13210 fi 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226xorg_testset_save_CFLAGS="$CFLAGS" 13227 13228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13233then : 13234 printf %s "(cached) " >&6 13235else $as_nop 13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13237/* end confdefs.h. */ 13238int i; 13239_ACEOF 13240if ac_fn_c_try_compile "$LINENO" 13241then : 13242 xorg_cv_cc_flag_unknown_warning_option=yes 13243else $as_nop 13244 xorg_cv_cc_flag_unknown_warning_option=no 13245fi 13246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13247fi 13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13251 CFLAGS="$xorg_testset_save_CFLAGS" 13252fi 13253 13254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13257 fi 13258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13262then : 13263 printf %s "(cached) " >&6 13264else $as_nop 13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267int i; 13268_ACEOF 13269if ac_fn_c_try_compile "$LINENO" 13270then : 13271 xorg_cv_cc_flag_unused_command_line_argument=yes 13272else $as_nop 13273 xorg_cv_cc_flag_unused_command_line_argument=no 13274fi 13275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13276fi 13277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13280 CFLAGS="$xorg_testset_save_CFLAGS" 13281fi 13282 13283found="no" 13284 13285 if test $found = "no" ; then 13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13288 fi 13289 13290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13292 fi 13293 13294 CFLAGS="$CFLAGS -Wmissing-declarations" 13295 13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13297printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13298 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13299 if eval test \${$cacheid+y} 13300then : 13301 printf %s "(cached) " >&6 13302else $as_nop 13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13304/* end confdefs.h. */ 13305int i; 13306int 13307main (void) 13308{ 13309 13310 ; 13311 return 0; 13312} 13313_ACEOF 13314if ac_fn_c_try_link "$LINENO" 13315then : 13316 eval $cacheid=yes 13317else $as_nop 13318 eval $cacheid=no 13319fi 13320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13321 conftest$ac_exeext conftest.$ac_ext 13322fi 13323 13324 13325 CFLAGS="$xorg_testset_save_CFLAGS" 13326 13327 eval supported=\$$cacheid 13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13329printf "%s\n" "$supported" >&6; } 13330 if test "$supported" = "yes" ; then 13331 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13332 found="yes" 13333 fi 13334 fi 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350xorg_testset_save_CFLAGS="$CFLAGS" 13351 13352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13357then : 13358 printf %s "(cached) " >&6 13359else $as_nop 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362int i; 13363_ACEOF 13364if ac_fn_c_try_compile "$LINENO" 13365then : 13366 xorg_cv_cc_flag_unknown_warning_option=yes 13367else $as_nop 13368 xorg_cv_cc_flag_unknown_warning_option=no 13369fi 13370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13371fi 13372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13375 CFLAGS="$xorg_testset_save_CFLAGS" 13376fi 13377 13378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13381 fi 13382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13385if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13386then : 13387 printf %s "(cached) " >&6 13388else $as_nop 13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13390/* end confdefs.h. */ 13391int i; 13392_ACEOF 13393if ac_fn_c_try_compile "$LINENO" 13394then : 13395 xorg_cv_cc_flag_unused_command_line_argument=yes 13396else $as_nop 13397 xorg_cv_cc_flag_unused_command_line_argument=no 13398fi 13399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13400fi 13401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13404 CFLAGS="$xorg_testset_save_CFLAGS" 13405fi 13406 13407found="no" 13408 13409 if test $found = "no" ; then 13410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13412 fi 13413 13414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13416 fi 13417 13418 CFLAGS="$CFLAGS -Wformat=2" 13419 13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13421printf %s "checking if $CC supports -Wformat=2... " >&6; } 13422 cacheid=xorg_cv_cc_flag__Wformat_2 13423 if eval test \${$cacheid+y} 13424then : 13425 printf %s "(cached) " >&6 13426else $as_nop 13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429int i; 13430int 13431main (void) 13432{ 13433 13434 ; 13435 return 0; 13436} 13437_ACEOF 13438if ac_fn_c_try_link "$LINENO" 13439then : 13440 eval $cacheid=yes 13441else $as_nop 13442 eval $cacheid=no 13443fi 13444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13445 conftest$ac_exeext conftest.$ac_ext 13446fi 13447 13448 13449 CFLAGS="$xorg_testset_save_CFLAGS" 13450 13451 eval supported=\$$cacheid 13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13453printf "%s\n" "$supported" >&6; } 13454 if test "$supported" = "yes" ; then 13455 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13456 found="yes" 13457 fi 13458 fi 13459 13460 if test $found = "no" ; then 13461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13463 fi 13464 13465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13467 fi 13468 13469 CFLAGS="$CFLAGS -Wformat" 13470 13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13472printf %s "checking if $CC supports -Wformat... " >&6; } 13473 cacheid=xorg_cv_cc_flag__Wformat 13474 if eval test \${$cacheid+y} 13475then : 13476 printf %s "(cached) " >&6 13477else $as_nop 13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13479/* end confdefs.h. */ 13480int i; 13481int 13482main (void) 13483{ 13484 13485 ; 13486 return 0; 13487} 13488_ACEOF 13489if ac_fn_c_try_link "$LINENO" 13490then : 13491 eval $cacheid=yes 13492else $as_nop 13493 eval $cacheid=no 13494fi 13495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13496 conftest$ac_exeext conftest.$ac_ext 13497fi 13498 13499 13500 CFLAGS="$xorg_testset_save_CFLAGS" 13501 13502 eval supported=\$$cacheid 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13504printf "%s\n" "$supported" >&6; } 13505 if test "$supported" = "yes" ; then 13506 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13507 found="yes" 13508 fi 13509 fi 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527xorg_testset_save_CFLAGS="$CFLAGS" 13528 13529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13533if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13534then : 13535 printf %s "(cached) " >&6 13536else $as_nop 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539int i; 13540_ACEOF 13541if ac_fn_c_try_compile "$LINENO" 13542then : 13543 xorg_cv_cc_flag_unknown_warning_option=yes 13544else $as_nop 13545 xorg_cv_cc_flag_unknown_warning_option=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13548fi 13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13552 CFLAGS="$xorg_testset_save_CFLAGS" 13553fi 13554 13555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13558 fi 13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13562if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13563then : 13564 printf %s "(cached) " >&6 13565else $as_nop 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13567/* end confdefs.h. */ 13568int i; 13569_ACEOF 13570if ac_fn_c_try_compile "$LINENO" 13571then : 13572 xorg_cv_cc_flag_unused_command_line_argument=yes 13573else $as_nop 13574 xorg_cv_cc_flag_unused_command_line_argument=no 13575fi 13576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13577fi 13578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13581 CFLAGS="$xorg_testset_save_CFLAGS" 13582fi 13583 13584found="no" 13585 13586 if test $found = "no" ; then 13587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13589 fi 13590 13591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13593 fi 13594 13595 CFLAGS="$CFLAGS -Wstrict-prototypes" 13596 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13598printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13599 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13600 if eval test \${$cacheid+y} 13601then : 13602 printf %s "(cached) " >&6 13603else $as_nop 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606int i; 13607int 13608main (void) 13609{ 13610 13611 ; 13612 return 0; 13613} 13614_ACEOF 13615if ac_fn_c_try_link "$LINENO" 13616then : 13617 eval $cacheid=yes 13618else $as_nop 13619 eval $cacheid=no 13620fi 13621rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13622 conftest$ac_exeext conftest.$ac_ext 13623fi 13624 13625 13626 CFLAGS="$xorg_testset_save_CFLAGS" 13627 13628 eval supported=\$$cacheid 13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13630printf "%s\n" "$supported" >&6; } 13631 if test "$supported" = "yes" ; then 13632 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13633 found="yes" 13634 fi 13635 fi 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651xorg_testset_save_CFLAGS="$CFLAGS" 13652 13653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13657if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13658then : 13659 printf %s "(cached) " >&6 13660else $as_nop 13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13662/* end confdefs.h. */ 13663int i; 13664_ACEOF 13665if ac_fn_c_try_compile "$LINENO" 13666then : 13667 xorg_cv_cc_flag_unknown_warning_option=yes 13668else $as_nop 13669 xorg_cv_cc_flag_unknown_warning_option=no 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13672fi 13673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13676 CFLAGS="$xorg_testset_save_CFLAGS" 13677fi 13678 13679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13682 fi 13683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13686if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13687then : 13688 printf %s "(cached) " >&6 13689else $as_nop 13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13691/* end confdefs.h. */ 13692int i; 13693_ACEOF 13694if ac_fn_c_try_compile "$LINENO" 13695then : 13696 xorg_cv_cc_flag_unused_command_line_argument=yes 13697else $as_nop 13698 xorg_cv_cc_flag_unused_command_line_argument=no 13699fi 13700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13701fi 13702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13705 CFLAGS="$xorg_testset_save_CFLAGS" 13706fi 13707 13708found="no" 13709 13710 if test $found = "no" ; then 13711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13713 fi 13714 13715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13717 fi 13718 13719 CFLAGS="$CFLAGS -Wmissing-prototypes" 13720 13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13722printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13723 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13724 if eval test \${$cacheid+y} 13725then : 13726 printf %s "(cached) " >&6 13727else $as_nop 13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13729/* end confdefs.h. */ 13730int i; 13731int 13732main (void) 13733{ 13734 13735 ; 13736 return 0; 13737} 13738_ACEOF 13739if ac_fn_c_try_link "$LINENO" 13740then : 13741 eval $cacheid=yes 13742else $as_nop 13743 eval $cacheid=no 13744fi 13745rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13746 conftest$ac_exeext conftest.$ac_ext 13747fi 13748 13749 13750 CFLAGS="$xorg_testset_save_CFLAGS" 13751 13752 eval supported=\$$cacheid 13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13754printf "%s\n" "$supported" >&6; } 13755 if test "$supported" = "yes" ; then 13756 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13757 found="yes" 13758 fi 13759 fi 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775xorg_testset_save_CFLAGS="$CFLAGS" 13776 13777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13781if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13782then : 13783 printf %s "(cached) " >&6 13784else $as_nop 13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13786/* end confdefs.h. */ 13787int i; 13788_ACEOF 13789if ac_fn_c_try_compile "$LINENO" 13790then : 13791 xorg_cv_cc_flag_unknown_warning_option=yes 13792else $as_nop 13793 xorg_cv_cc_flag_unknown_warning_option=no 13794fi 13795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13796fi 13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13800 CFLAGS="$xorg_testset_save_CFLAGS" 13801fi 13802 13803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13806 fi 13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13810if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13811then : 13812 printf %s "(cached) " >&6 13813else $as_nop 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816int i; 13817_ACEOF 13818if ac_fn_c_try_compile "$LINENO" 13819then : 13820 xorg_cv_cc_flag_unused_command_line_argument=yes 13821else $as_nop 13822 xorg_cv_cc_flag_unused_command_line_argument=no 13823fi 13824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13825fi 13826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13829 CFLAGS="$xorg_testset_save_CFLAGS" 13830fi 13831 13832found="no" 13833 13834 if test $found = "no" ; then 13835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13837 fi 13838 13839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13841 fi 13842 13843 CFLAGS="$CFLAGS -Wnested-externs" 13844 13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13846printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13847 cacheid=xorg_cv_cc_flag__Wnested_externs 13848 if eval test \${$cacheid+y} 13849then : 13850 printf %s "(cached) " >&6 13851else $as_nop 13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13853/* end confdefs.h. */ 13854int i; 13855int 13856main (void) 13857{ 13858 13859 ; 13860 return 0; 13861} 13862_ACEOF 13863if ac_fn_c_try_link "$LINENO" 13864then : 13865 eval $cacheid=yes 13866else $as_nop 13867 eval $cacheid=no 13868fi 13869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13870 conftest$ac_exeext conftest.$ac_ext 13871fi 13872 13873 13874 CFLAGS="$xorg_testset_save_CFLAGS" 13875 13876 eval supported=\$$cacheid 13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13878printf "%s\n" "$supported" >&6; } 13879 if test "$supported" = "yes" ; then 13880 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13881 found="yes" 13882 fi 13883 fi 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899xorg_testset_save_CFLAGS="$CFLAGS" 13900 13901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13905if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13906then : 13907 printf %s "(cached) " >&6 13908else $as_nop 13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13910/* end confdefs.h. */ 13911int i; 13912_ACEOF 13913if ac_fn_c_try_compile "$LINENO" 13914then : 13915 xorg_cv_cc_flag_unknown_warning_option=yes 13916else $as_nop 13917 xorg_cv_cc_flag_unknown_warning_option=no 13918fi 13919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13920fi 13921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13924 CFLAGS="$xorg_testset_save_CFLAGS" 13925fi 13926 13927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13930 fi 13931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13934if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13935then : 13936 printf %s "(cached) " >&6 13937else $as_nop 13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13939/* end confdefs.h. */ 13940int i; 13941_ACEOF 13942if ac_fn_c_try_compile "$LINENO" 13943then : 13944 xorg_cv_cc_flag_unused_command_line_argument=yes 13945else $as_nop 13946 xorg_cv_cc_flag_unused_command_line_argument=no 13947fi 13948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13949fi 13950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13953 CFLAGS="$xorg_testset_save_CFLAGS" 13954fi 13955 13956found="no" 13957 13958 if test $found = "no" ; then 13959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13961 fi 13962 13963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13965 fi 13966 13967 CFLAGS="$CFLAGS -Wbad-function-cast" 13968 13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13970printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13971 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13972 if eval test \${$cacheid+y} 13973then : 13974 printf %s "(cached) " >&6 13975else $as_nop 13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13977/* end confdefs.h. */ 13978int i; 13979int 13980main (void) 13981{ 13982 13983 ; 13984 return 0; 13985} 13986_ACEOF 13987if ac_fn_c_try_link "$LINENO" 13988then : 13989 eval $cacheid=yes 13990else $as_nop 13991 eval $cacheid=no 13992fi 13993rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13994 conftest$ac_exeext conftest.$ac_ext 13995fi 13996 13997 13998 CFLAGS="$xorg_testset_save_CFLAGS" 13999 14000 eval supported=\$$cacheid 14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14002printf "%s\n" "$supported" >&6; } 14003 if test "$supported" = "yes" ; then 14004 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14005 found="yes" 14006 fi 14007 fi 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023xorg_testset_save_CFLAGS="$CFLAGS" 14024 14025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14029if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14030then : 14031 printf %s "(cached) " >&6 14032else $as_nop 14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14034/* end confdefs.h. */ 14035int i; 14036_ACEOF 14037if ac_fn_c_try_compile "$LINENO" 14038then : 14039 xorg_cv_cc_flag_unknown_warning_option=yes 14040else $as_nop 14041 xorg_cv_cc_flag_unknown_warning_option=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14044fi 14045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14048 CFLAGS="$xorg_testset_save_CFLAGS" 14049fi 14050 14051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14054 fi 14055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14058if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14059then : 14060 printf %s "(cached) " >&6 14061else $as_nop 14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063/* end confdefs.h. */ 14064int i; 14065_ACEOF 14066if ac_fn_c_try_compile "$LINENO" 14067then : 14068 xorg_cv_cc_flag_unused_command_line_argument=yes 14069else $as_nop 14070 xorg_cv_cc_flag_unused_command_line_argument=no 14071fi 14072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14073fi 14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14077 CFLAGS="$xorg_testset_save_CFLAGS" 14078fi 14079 14080found="no" 14081 14082 if test $found = "no" ; then 14083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14085 fi 14086 14087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14089 fi 14090 14091 CFLAGS="$CFLAGS -Wold-style-definition" 14092 14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14094printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14095 cacheid=xorg_cv_cc_flag__Wold_style_definition 14096 if eval test \${$cacheid+y} 14097then : 14098 printf %s "(cached) " >&6 14099else $as_nop 14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14101/* end confdefs.h. */ 14102int i; 14103int 14104main (void) 14105{ 14106 14107 ; 14108 return 0; 14109} 14110_ACEOF 14111if ac_fn_c_try_link "$LINENO" 14112then : 14113 eval $cacheid=yes 14114else $as_nop 14115 eval $cacheid=no 14116fi 14117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14118 conftest$ac_exeext conftest.$ac_ext 14119fi 14120 14121 14122 CFLAGS="$xorg_testset_save_CFLAGS" 14123 14124 eval supported=\$$cacheid 14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14126printf "%s\n" "$supported" >&6; } 14127 if test "$supported" = "yes" ; then 14128 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14129 found="yes" 14130 fi 14131 fi 14132 14133 if test $found = "no" ; then 14134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14136 fi 14137 14138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14140 fi 14141 14142 CFLAGS="$CFLAGS -fd" 14143 14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14145printf %s "checking if $CC supports -fd... " >&6; } 14146 cacheid=xorg_cv_cc_flag__fd 14147 if eval test \${$cacheid+y} 14148then : 14149 printf %s "(cached) " >&6 14150else $as_nop 14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14152/* end confdefs.h. */ 14153int i; 14154int 14155main (void) 14156{ 14157 14158 ; 14159 return 0; 14160} 14161_ACEOF 14162if ac_fn_c_try_link "$LINENO" 14163then : 14164 eval $cacheid=yes 14165else $as_nop 14166 eval $cacheid=no 14167fi 14168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14169 conftest$ac_exeext conftest.$ac_ext 14170fi 14171 14172 14173 CFLAGS="$xorg_testset_save_CFLAGS" 14174 14175 eval supported=\$$cacheid 14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14177printf "%s\n" "$supported" >&6; } 14178 if test "$supported" = "yes" ; then 14179 BASE_CFLAGS="$BASE_CFLAGS -fd" 14180 found="yes" 14181 fi 14182 fi 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198xorg_testset_save_CFLAGS="$CFLAGS" 14199 14200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14204if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14205then : 14206 printf %s "(cached) " >&6 14207else $as_nop 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14209/* end confdefs.h. */ 14210int i; 14211_ACEOF 14212if ac_fn_c_try_compile "$LINENO" 14213then : 14214 xorg_cv_cc_flag_unknown_warning_option=yes 14215else $as_nop 14216 xorg_cv_cc_flag_unknown_warning_option=no 14217fi 14218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14219fi 14220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14221printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14223 CFLAGS="$xorg_testset_save_CFLAGS" 14224fi 14225 14226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14229 fi 14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14232printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14233if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14234then : 14235 printf %s "(cached) " >&6 14236else $as_nop 14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14238/* end confdefs.h. */ 14239int i; 14240_ACEOF 14241if ac_fn_c_try_compile "$LINENO" 14242then : 14243 xorg_cv_cc_flag_unused_command_line_argument=yes 14244else $as_nop 14245 xorg_cv_cc_flag_unused_command_line_argument=no 14246fi 14247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14248fi 14249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14250printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14252 CFLAGS="$xorg_testset_save_CFLAGS" 14253fi 14254 14255found="no" 14256 14257 if test $found = "no" ; then 14258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14260 fi 14261 14262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14264 fi 14265 14266 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14267 14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14269printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14270 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14271 if eval test \${$cacheid+y} 14272then : 14273 printf %s "(cached) " >&6 14274else $as_nop 14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14276/* end confdefs.h. */ 14277int i; 14278int 14279main (void) 14280{ 14281 14282 ; 14283 return 0; 14284} 14285_ACEOF 14286if ac_fn_c_try_link "$LINENO" 14287then : 14288 eval $cacheid=yes 14289else $as_nop 14290 eval $cacheid=no 14291fi 14292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14293 conftest$ac_exeext conftest.$ac_ext 14294fi 14295 14296 14297 CFLAGS="$xorg_testset_save_CFLAGS" 14298 14299 eval supported=\$$cacheid 14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14301printf "%s\n" "$supported" >&6; } 14302 if test "$supported" = "yes" ; then 14303 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14304 found="yes" 14305 fi 14306 fi 14307 14308 14309 14310 14311 14312# This chunk adds additional warnings that could catch undesired effects. 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326xorg_testset_save_CFLAGS="$CFLAGS" 14327 14328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14332if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14333then : 14334 printf %s "(cached) " >&6 14335else $as_nop 14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337/* end confdefs.h. */ 14338int i; 14339_ACEOF 14340if ac_fn_c_try_compile "$LINENO" 14341then : 14342 xorg_cv_cc_flag_unknown_warning_option=yes 14343else $as_nop 14344 xorg_cv_cc_flag_unknown_warning_option=no 14345fi 14346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14347fi 14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14351 CFLAGS="$xorg_testset_save_CFLAGS" 14352fi 14353 14354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14357 fi 14358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14361if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14362then : 14363 printf %s "(cached) " >&6 14364else $as_nop 14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366/* end confdefs.h. */ 14367int i; 14368_ACEOF 14369if ac_fn_c_try_compile "$LINENO" 14370then : 14371 xorg_cv_cc_flag_unused_command_line_argument=yes 14372else $as_nop 14373 xorg_cv_cc_flag_unused_command_line_argument=no 14374fi 14375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14376fi 14377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14380 CFLAGS="$xorg_testset_save_CFLAGS" 14381fi 14382 14383found="no" 14384 14385 if test $found = "no" ; then 14386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14388 fi 14389 14390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14392 fi 14393 14394 CFLAGS="$CFLAGS -Wunused" 14395 14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14397printf %s "checking if $CC supports -Wunused... " >&6; } 14398 cacheid=xorg_cv_cc_flag__Wunused 14399 if eval test \${$cacheid+y} 14400then : 14401 printf %s "(cached) " >&6 14402else $as_nop 14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14404/* end confdefs.h. */ 14405int i; 14406int 14407main (void) 14408{ 14409 14410 ; 14411 return 0; 14412} 14413_ACEOF 14414if ac_fn_c_try_link "$LINENO" 14415then : 14416 eval $cacheid=yes 14417else $as_nop 14418 eval $cacheid=no 14419fi 14420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14421 conftest$ac_exeext conftest.$ac_ext 14422fi 14423 14424 14425 CFLAGS="$xorg_testset_save_CFLAGS" 14426 14427 eval supported=\$$cacheid 14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14429printf "%s\n" "$supported" >&6; } 14430 if test "$supported" = "yes" ; then 14431 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14432 found="yes" 14433 fi 14434 fi 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450xorg_testset_save_CFLAGS="$CFLAGS" 14451 14452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14456if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14457then : 14458 printf %s "(cached) " >&6 14459else $as_nop 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461/* end confdefs.h. */ 14462int i; 14463_ACEOF 14464if ac_fn_c_try_compile "$LINENO" 14465then : 14466 xorg_cv_cc_flag_unknown_warning_option=yes 14467else $as_nop 14468 xorg_cv_cc_flag_unknown_warning_option=no 14469fi 14470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14471fi 14472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14475 CFLAGS="$xorg_testset_save_CFLAGS" 14476fi 14477 14478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14481 fi 14482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14485if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14486then : 14487 printf %s "(cached) " >&6 14488else $as_nop 14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14490/* end confdefs.h. */ 14491int i; 14492_ACEOF 14493if ac_fn_c_try_compile "$LINENO" 14494then : 14495 xorg_cv_cc_flag_unused_command_line_argument=yes 14496else $as_nop 14497 xorg_cv_cc_flag_unused_command_line_argument=no 14498fi 14499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14500fi 14501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14504 CFLAGS="$xorg_testset_save_CFLAGS" 14505fi 14506 14507found="no" 14508 14509 if test $found = "no" ; then 14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 fi 14513 14514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 fi 14517 14518 CFLAGS="$CFLAGS -Wuninitialized" 14519 14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14521printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14522 cacheid=xorg_cv_cc_flag__Wuninitialized 14523 if eval test \${$cacheid+y} 14524then : 14525 printf %s "(cached) " >&6 14526else $as_nop 14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14528/* end confdefs.h. */ 14529int i; 14530int 14531main (void) 14532{ 14533 14534 ; 14535 return 0; 14536} 14537_ACEOF 14538if ac_fn_c_try_link "$LINENO" 14539then : 14540 eval $cacheid=yes 14541else $as_nop 14542 eval $cacheid=no 14543fi 14544rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14545 conftest$ac_exeext conftest.$ac_ext 14546fi 14547 14548 14549 CFLAGS="$xorg_testset_save_CFLAGS" 14550 14551 eval supported=\$$cacheid 14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14553printf "%s\n" "$supported" >&6; } 14554 if test "$supported" = "yes" ; then 14555 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14556 found="yes" 14557 fi 14558 fi 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574xorg_testset_save_CFLAGS="$CFLAGS" 14575 14576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14580if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14581then : 14582 printf %s "(cached) " >&6 14583else $as_nop 14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14585/* end confdefs.h. */ 14586int i; 14587_ACEOF 14588if ac_fn_c_try_compile "$LINENO" 14589then : 14590 xorg_cv_cc_flag_unknown_warning_option=yes 14591else $as_nop 14592 xorg_cv_cc_flag_unknown_warning_option=no 14593fi 14594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14595fi 14596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14599 CFLAGS="$xorg_testset_save_CFLAGS" 14600fi 14601 14602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14605 fi 14606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14609if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14610then : 14611 printf %s "(cached) " >&6 14612else $as_nop 14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14614/* end confdefs.h. */ 14615int i; 14616_ACEOF 14617if ac_fn_c_try_compile "$LINENO" 14618then : 14619 xorg_cv_cc_flag_unused_command_line_argument=yes 14620else $as_nop 14621 xorg_cv_cc_flag_unused_command_line_argument=no 14622fi 14623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14624fi 14625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14628 CFLAGS="$xorg_testset_save_CFLAGS" 14629fi 14630 14631found="no" 14632 14633 if test $found = "no" ; then 14634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14636 fi 14637 14638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14640 fi 14641 14642 CFLAGS="$CFLAGS -Wshadow" 14643 14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14645printf %s "checking if $CC supports -Wshadow... " >&6; } 14646 cacheid=xorg_cv_cc_flag__Wshadow 14647 if eval test \${$cacheid+y} 14648then : 14649 printf %s "(cached) " >&6 14650else $as_nop 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653int i; 14654int 14655main (void) 14656{ 14657 14658 ; 14659 return 0; 14660} 14661_ACEOF 14662if ac_fn_c_try_link "$LINENO" 14663then : 14664 eval $cacheid=yes 14665else $as_nop 14666 eval $cacheid=no 14667fi 14668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14669 conftest$ac_exeext conftest.$ac_ext 14670fi 14671 14672 14673 CFLAGS="$xorg_testset_save_CFLAGS" 14674 14675 eval supported=\$$cacheid 14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14677printf "%s\n" "$supported" >&6; } 14678 if test "$supported" = "yes" ; then 14679 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14680 found="yes" 14681 fi 14682 fi 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698xorg_testset_save_CFLAGS="$CFLAGS" 14699 14700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14703printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14704if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14705then : 14706 printf %s "(cached) " >&6 14707else $as_nop 14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14709/* end confdefs.h. */ 14710int i; 14711_ACEOF 14712if ac_fn_c_try_compile "$LINENO" 14713then : 14714 xorg_cv_cc_flag_unknown_warning_option=yes 14715else $as_nop 14716 xorg_cv_cc_flag_unknown_warning_option=no 14717fi 14718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14719fi 14720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14723 CFLAGS="$xorg_testset_save_CFLAGS" 14724fi 14725 14726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14729 fi 14730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14734then : 14735 printf %s "(cached) " >&6 14736else $as_nop 14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14738/* end confdefs.h. */ 14739int i; 14740_ACEOF 14741if ac_fn_c_try_compile "$LINENO" 14742then : 14743 xorg_cv_cc_flag_unused_command_line_argument=yes 14744else $as_nop 14745 xorg_cv_cc_flag_unused_command_line_argument=no 14746fi 14747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14748fi 14749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14752 CFLAGS="$xorg_testset_save_CFLAGS" 14753fi 14754 14755found="no" 14756 14757 if test $found = "no" ; then 14758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14760 fi 14761 14762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14764 fi 14765 14766 CFLAGS="$CFLAGS -Wmissing-noreturn" 14767 14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14769printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14770 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14771 if eval test \${$cacheid+y} 14772then : 14773 printf %s "(cached) " >&6 14774else $as_nop 14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14776/* end confdefs.h. */ 14777int i; 14778int 14779main (void) 14780{ 14781 14782 ; 14783 return 0; 14784} 14785_ACEOF 14786if ac_fn_c_try_link "$LINENO" 14787then : 14788 eval $cacheid=yes 14789else $as_nop 14790 eval $cacheid=no 14791fi 14792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14793 conftest$ac_exeext conftest.$ac_ext 14794fi 14795 14796 14797 CFLAGS="$xorg_testset_save_CFLAGS" 14798 14799 eval supported=\$$cacheid 14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14801printf "%s\n" "$supported" >&6; } 14802 if test "$supported" = "yes" ; then 14803 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14804 found="yes" 14805 fi 14806 fi 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822xorg_testset_save_CFLAGS="$CFLAGS" 14823 14824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14828if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14829then : 14830 printf %s "(cached) " >&6 14831else $as_nop 14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834int i; 14835_ACEOF 14836if ac_fn_c_try_compile "$LINENO" 14837then : 14838 xorg_cv_cc_flag_unknown_warning_option=yes 14839else $as_nop 14840 xorg_cv_cc_flag_unknown_warning_option=no 14841fi 14842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14843fi 14844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14847 CFLAGS="$xorg_testset_save_CFLAGS" 14848fi 14849 14850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14853 fi 14854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14857if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14858then : 14859 printf %s "(cached) " >&6 14860else $as_nop 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863int i; 14864_ACEOF 14865if ac_fn_c_try_compile "$LINENO" 14866then : 14867 xorg_cv_cc_flag_unused_command_line_argument=yes 14868else $as_nop 14869 xorg_cv_cc_flag_unused_command_line_argument=no 14870fi 14871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14872fi 14873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14874printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14876 CFLAGS="$xorg_testset_save_CFLAGS" 14877fi 14878 14879found="no" 14880 14881 if test $found = "no" ; then 14882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14884 fi 14885 14886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14888 fi 14889 14890 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14891 14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14893printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14894 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14895 if eval test \${$cacheid+y} 14896then : 14897 printf %s "(cached) " >&6 14898else $as_nop 14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14900/* end confdefs.h. */ 14901int i; 14902int 14903main (void) 14904{ 14905 14906 ; 14907 return 0; 14908} 14909_ACEOF 14910if ac_fn_c_try_link "$LINENO" 14911then : 14912 eval $cacheid=yes 14913else $as_nop 14914 eval $cacheid=no 14915fi 14916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14917 conftest$ac_exeext conftest.$ac_ext 14918fi 14919 14920 14921 CFLAGS="$xorg_testset_save_CFLAGS" 14922 14923 eval supported=\$$cacheid 14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14925printf "%s\n" "$supported" >&6; } 14926 if test "$supported" = "yes" ; then 14927 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14928 found="yes" 14929 fi 14930 fi 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946xorg_testset_save_CFLAGS="$CFLAGS" 14947 14948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14952if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14953then : 14954 printf %s "(cached) " >&6 14955else $as_nop 14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14957/* end confdefs.h. */ 14958int i; 14959_ACEOF 14960if ac_fn_c_try_compile "$LINENO" 14961then : 14962 xorg_cv_cc_flag_unknown_warning_option=yes 14963else $as_nop 14964 xorg_cv_cc_flag_unknown_warning_option=no 14965fi 14966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14967fi 14968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972fi 14973 14974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14977 fi 14978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14981if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14982then : 14983 printf %s "(cached) " >&6 14984else $as_nop 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987int i; 14988_ACEOF 14989if ac_fn_c_try_compile "$LINENO" 14990then : 14991 xorg_cv_cc_flag_unused_command_line_argument=yes 14992else $as_nop 14993 xorg_cv_cc_flag_unused_command_line_argument=no 14994fi 14995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14996fi 14997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14998printf "%s\n" "$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 -Wredundant-decls" 15015 15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15017printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15018 cacheid=xorg_cv_cc_flag__Wredundant_decls 15019 if eval test \${$cacheid+y} 15020then : 15021 printf %s "(cached) " >&6 15022else $as_nop 15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15024/* end confdefs.h. */ 15025int i; 15026int 15027main (void) 15028{ 15029 15030 ; 15031 return 0; 15032} 15033_ACEOF 15034if ac_fn_c_try_link "$LINENO" 15035then : 15036 eval $cacheid=yes 15037else $as_nop 15038 eval $cacheid=no 15039fi 15040rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15041 conftest$ac_exeext conftest.$ac_ext 15042fi 15043 15044 15045 CFLAGS="$xorg_testset_save_CFLAGS" 15046 15047 eval supported=\$$cacheid 15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15049printf "%s\n" "$supported" >&6; } 15050 if test "$supported" = "yes" ; then 15051 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15052 found="yes" 15053 fi 15054 fi 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070xorg_testset_save_CFLAGS="$CFLAGS" 15071 15072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15075printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15076if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15077then : 15078 printf %s "(cached) " >&6 15079else $as_nop 15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15081/* end confdefs.h. */ 15082int i; 15083_ACEOF 15084if ac_fn_c_try_compile "$LINENO" 15085then : 15086 xorg_cv_cc_flag_unknown_warning_option=yes 15087else $as_nop 15088 xorg_cv_cc_flag_unknown_warning_option=no 15089fi 15090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15091fi 15092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15095 CFLAGS="$xorg_testset_save_CFLAGS" 15096fi 15097 15098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15101 fi 15102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15105if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15106then : 15107 printf %s "(cached) " >&6 15108else $as_nop 15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15110/* end confdefs.h. */ 15111int i; 15112_ACEOF 15113if ac_fn_c_try_compile "$LINENO" 15114then : 15115 xorg_cv_cc_flag_unused_command_line_argument=yes 15116else $as_nop 15117 xorg_cv_cc_flag_unused_command_line_argument=no 15118fi 15119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15120fi 15121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15124 CFLAGS="$xorg_testset_save_CFLAGS" 15125fi 15126 15127found="no" 15128 15129 if test $found = "no" ; then 15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15132 fi 15133 15134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15136 fi 15137 15138 CFLAGS="$CFLAGS -Wlogical-op" 15139 15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15141printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15142 cacheid=xorg_cv_cc_flag__Wlogical_op 15143 if eval test \${$cacheid+y} 15144then : 15145 printf %s "(cached) " >&6 15146else $as_nop 15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15148/* end confdefs.h. */ 15149int i; 15150int 15151main (void) 15152{ 15153 15154 ; 15155 return 0; 15156} 15157_ACEOF 15158if ac_fn_c_try_link "$LINENO" 15159then : 15160 eval $cacheid=yes 15161else $as_nop 15162 eval $cacheid=no 15163fi 15164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15165 conftest$ac_exeext conftest.$ac_ext 15166fi 15167 15168 15169 CFLAGS="$xorg_testset_save_CFLAGS" 15170 15171 eval supported=\$$cacheid 15172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15173printf "%s\n" "$supported" >&6; } 15174 if test "$supported" = "yes" ; then 15175 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15176 found="yes" 15177 fi 15178 fi 15179 15180 15181 15182# These are currently disabled because they are noisy. They will be enabled 15183# in the future once the codebase is sufficiently modernized to silence 15184# them. For now, I don't want them to drown out the other warnings. 15185# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15186# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15187# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15188 15189# Turn some warnings into errors, so we don't accidently get successful builds 15190# when there are problems that should be fixed. 15191 15192if test "x$SELECTIVE_WERROR" = "xyes" ; then 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206xorg_testset_save_CFLAGS="$CFLAGS" 15207 15208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15212if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15213then : 15214 printf %s "(cached) " >&6 15215else $as_nop 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15217/* end confdefs.h. */ 15218int i; 15219_ACEOF 15220if ac_fn_c_try_compile "$LINENO" 15221then : 15222 xorg_cv_cc_flag_unknown_warning_option=yes 15223else $as_nop 15224 xorg_cv_cc_flag_unknown_warning_option=no 15225fi 15226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15227fi 15228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15231 CFLAGS="$xorg_testset_save_CFLAGS" 15232fi 15233 15234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15237 fi 15238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15241if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15242then : 15243 printf %s "(cached) " >&6 15244else $as_nop 15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15246/* end confdefs.h. */ 15247int i; 15248_ACEOF 15249if ac_fn_c_try_compile "$LINENO" 15250then : 15251 xorg_cv_cc_flag_unused_command_line_argument=yes 15252else $as_nop 15253 xorg_cv_cc_flag_unused_command_line_argument=no 15254fi 15255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15256fi 15257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15260 CFLAGS="$xorg_testset_save_CFLAGS" 15261fi 15262 15263found="no" 15264 15265 if test $found = "no" ; then 15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15268 fi 15269 15270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15272 fi 15273 15274 CFLAGS="$CFLAGS -Werror=implicit" 15275 15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15277printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15278 cacheid=xorg_cv_cc_flag__Werror_implicit 15279 if eval test \${$cacheid+y} 15280then : 15281 printf %s "(cached) " >&6 15282else $as_nop 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286int 15287main (void) 15288{ 15289 15290 ; 15291 return 0; 15292} 15293_ACEOF 15294if ac_fn_c_try_link "$LINENO" 15295then : 15296 eval $cacheid=yes 15297else $as_nop 15298 eval $cacheid=no 15299fi 15300rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15301 conftest$ac_exeext conftest.$ac_ext 15302fi 15303 15304 15305 CFLAGS="$xorg_testset_save_CFLAGS" 15306 15307 eval supported=\$$cacheid 15308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15309printf "%s\n" "$supported" >&6; } 15310 if test "$supported" = "yes" ; then 15311 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15312 found="yes" 15313 fi 15314 fi 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15326 15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15328printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15329 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15330 if eval test \${$cacheid+y} 15331then : 15332 printf %s "(cached) " >&6 15333else $as_nop 15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15335/* end confdefs.h. */ 15336int i; 15337int 15338main (void) 15339{ 15340 15341 ; 15342 return 0; 15343} 15344_ACEOF 15345if ac_fn_c_try_link "$LINENO" 15346then : 15347 eval $cacheid=yes 15348else $as_nop 15349 eval $cacheid=no 15350fi 15351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15352 conftest$ac_exeext conftest.$ac_ext 15353fi 15354 15355 15356 CFLAGS="$xorg_testset_save_CFLAGS" 15357 15358 eval supported=\$$cacheid 15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15360printf "%s\n" "$supported" >&6; } 15361 if test "$supported" = "yes" ; then 15362 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15363 found="yes" 15364 fi 15365 fi 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381xorg_testset_save_CFLAGS="$CFLAGS" 15382 15383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15387if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15388then : 15389 printf %s "(cached) " >&6 15390else $as_nop 15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392/* end confdefs.h. */ 15393int i; 15394_ACEOF 15395if ac_fn_c_try_compile "$LINENO" 15396then : 15397 xorg_cv_cc_flag_unknown_warning_option=yes 15398else $as_nop 15399 xorg_cv_cc_flag_unknown_warning_option=no 15400fi 15401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15402fi 15403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15406 CFLAGS="$xorg_testset_save_CFLAGS" 15407fi 15408 15409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15412 fi 15413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15416if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15417then : 15418 printf %s "(cached) " >&6 15419else $as_nop 15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15421/* end confdefs.h. */ 15422int i; 15423_ACEOF 15424if ac_fn_c_try_compile "$LINENO" 15425then : 15426 xorg_cv_cc_flag_unused_command_line_argument=yes 15427else $as_nop 15428 xorg_cv_cc_flag_unused_command_line_argument=no 15429fi 15430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15431fi 15432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15435 CFLAGS="$xorg_testset_save_CFLAGS" 15436fi 15437 15438found="no" 15439 15440 if test $found = "no" ; then 15441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15443 fi 15444 15445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15447 fi 15448 15449 CFLAGS="$CFLAGS -Werror=nonnull" 15450 15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15452printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15453 cacheid=xorg_cv_cc_flag__Werror_nonnull 15454 if eval test \${$cacheid+y} 15455then : 15456 printf %s "(cached) " >&6 15457else $as_nop 15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459/* end confdefs.h. */ 15460int i; 15461int 15462main (void) 15463{ 15464 15465 ; 15466 return 0; 15467} 15468_ACEOF 15469if ac_fn_c_try_link "$LINENO" 15470then : 15471 eval $cacheid=yes 15472else $as_nop 15473 eval $cacheid=no 15474fi 15475rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15476 conftest$ac_exeext conftest.$ac_ext 15477fi 15478 15479 15480 CFLAGS="$xorg_testset_save_CFLAGS" 15481 15482 eval supported=\$$cacheid 15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15484printf "%s\n" "$supported" >&6; } 15485 if test "$supported" = "yes" ; then 15486 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15487 found="yes" 15488 fi 15489 fi 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505xorg_testset_save_CFLAGS="$CFLAGS" 15506 15507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15511if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15512then : 15513 printf %s "(cached) " >&6 15514else $as_nop 15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15516/* end confdefs.h. */ 15517int i; 15518_ACEOF 15519if ac_fn_c_try_compile "$LINENO" 15520then : 15521 xorg_cv_cc_flag_unknown_warning_option=yes 15522else $as_nop 15523 xorg_cv_cc_flag_unknown_warning_option=no 15524fi 15525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15526fi 15527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15528printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15530 CFLAGS="$xorg_testset_save_CFLAGS" 15531fi 15532 15533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15536 fi 15537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15539printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15540if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15541then : 15542 printf %s "(cached) " >&6 15543else $as_nop 15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15545/* end confdefs.h. */ 15546int i; 15547_ACEOF 15548if ac_fn_c_try_compile "$LINENO" 15549then : 15550 xorg_cv_cc_flag_unused_command_line_argument=yes 15551else $as_nop 15552 xorg_cv_cc_flag_unused_command_line_argument=no 15553fi 15554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15555fi 15556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15559 CFLAGS="$xorg_testset_save_CFLAGS" 15560fi 15561 15562found="no" 15563 15564 if test $found = "no" ; then 15565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15567 fi 15568 15569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15571 fi 15572 15573 CFLAGS="$CFLAGS -Werror=init-self" 15574 15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15576printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15577 cacheid=xorg_cv_cc_flag__Werror_init_self 15578 if eval test \${$cacheid+y} 15579then : 15580 printf %s "(cached) " >&6 15581else $as_nop 15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15583/* end confdefs.h. */ 15584int i; 15585int 15586main (void) 15587{ 15588 15589 ; 15590 return 0; 15591} 15592_ACEOF 15593if ac_fn_c_try_link "$LINENO" 15594then : 15595 eval $cacheid=yes 15596else $as_nop 15597 eval $cacheid=no 15598fi 15599rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15600 conftest$ac_exeext conftest.$ac_ext 15601fi 15602 15603 15604 CFLAGS="$xorg_testset_save_CFLAGS" 15605 15606 eval supported=\$$cacheid 15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15608printf "%s\n" "$supported" >&6; } 15609 if test "$supported" = "yes" ; then 15610 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15611 found="yes" 15612 fi 15613 fi 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629xorg_testset_save_CFLAGS="$CFLAGS" 15630 15631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15636then : 15637 printf %s "(cached) " >&6 15638else $as_nop 15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15640/* end confdefs.h. */ 15641int i; 15642_ACEOF 15643if ac_fn_c_try_compile "$LINENO" 15644then : 15645 xorg_cv_cc_flag_unknown_warning_option=yes 15646else $as_nop 15647 xorg_cv_cc_flag_unknown_warning_option=no 15648fi 15649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15650fi 15651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15652printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15654 CFLAGS="$xorg_testset_save_CFLAGS" 15655fi 15656 15657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15660 fi 15661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15663printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15664if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15665then : 15666 printf %s "(cached) " >&6 15667else $as_nop 15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15669/* end confdefs.h. */ 15670int i; 15671_ACEOF 15672if ac_fn_c_try_compile "$LINENO" 15673then : 15674 xorg_cv_cc_flag_unused_command_line_argument=yes 15675else $as_nop 15676 xorg_cv_cc_flag_unused_command_line_argument=no 15677fi 15678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15679fi 15680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15683 CFLAGS="$xorg_testset_save_CFLAGS" 15684fi 15685 15686found="no" 15687 15688 if test $found = "no" ; then 15689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15691 fi 15692 15693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15695 fi 15696 15697 CFLAGS="$CFLAGS -Werror=main" 15698 15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15700printf %s "checking if $CC supports -Werror=main... " >&6; } 15701 cacheid=xorg_cv_cc_flag__Werror_main 15702 if eval test \${$cacheid+y} 15703then : 15704 printf %s "(cached) " >&6 15705else $as_nop 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708int i; 15709int 15710main (void) 15711{ 15712 15713 ; 15714 return 0; 15715} 15716_ACEOF 15717if ac_fn_c_try_link "$LINENO" 15718then : 15719 eval $cacheid=yes 15720else $as_nop 15721 eval $cacheid=no 15722fi 15723rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15724 conftest$ac_exeext conftest.$ac_ext 15725fi 15726 15727 15728 CFLAGS="$xorg_testset_save_CFLAGS" 15729 15730 eval supported=\$$cacheid 15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15732printf "%s\n" "$supported" >&6; } 15733 if test "$supported" = "yes" ; then 15734 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15735 found="yes" 15736 fi 15737 fi 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753xorg_testset_save_CFLAGS="$CFLAGS" 15754 15755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15760then : 15761 printf %s "(cached) " >&6 15762else $as_nop 15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15764/* end confdefs.h. */ 15765int i; 15766_ACEOF 15767if ac_fn_c_try_compile "$LINENO" 15768then : 15769 xorg_cv_cc_flag_unknown_warning_option=yes 15770else $as_nop 15771 xorg_cv_cc_flag_unknown_warning_option=no 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15774fi 15775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15778 CFLAGS="$xorg_testset_save_CFLAGS" 15779fi 15780 15781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15784 fi 15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15788if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15789then : 15790 printf %s "(cached) " >&6 15791else $as_nop 15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15793/* end confdefs.h. */ 15794int i; 15795_ACEOF 15796if ac_fn_c_try_compile "$LINENO" 15797then : 15798 xorg_cv_cc_flag_unused_command_line_argument=yes 15799else $as_nop 15800 xorg_cv_cc_flag_unused_command_line_argument=no 15801fi 15802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15803fi 15804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15807 CFLAGS="$xorg_testset_save_CFLAGS" 15808fi 15809 15810found="no" 15811 15812 if test $found = "no" ; then 15813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15815 fi 15816 15817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15819 fi 15820 15821 CFLAGS="$CFLAGS -Werror=missing-braces" 15822 15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15824printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15825 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15826 if eval test \${$cacheid+y} 15827then : 15828 printf %s "(cached) " >&6 15829else $as_nop 15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15831/* end confdefs.h. */ 15832int i; 15833int 15834main (void) 15835{ 15836 15837 ; 15838 return 0; 15839} 15840_ACEOF 15841if ac_fn_c_try_link "$LINENO" 15842then : 15843 eval $cacheid=yes 15844else $as_nop 15845 eval $cacheid=no 15846fi 15847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15848 conftest$ac_exeext conftest.$ac_ext 15849fi 15850 15851 15852 CFLAGS="$xorg_testset_save_CFLAGS" 15853 15854 eval supported=\$$cacheid 15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15856printf "%s\n" "$supported" >&6; } 15857 if test "$supported" = "yes" ; then 15858 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15859 found="yes" 15860 fi 15861 fi 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877xorg_testset_save_CFLAGS="$CFLAGS" 15878 15879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15883if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15884then : 15885 printf %s "(cached) " >&6 15886else $as_nop 15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889int i; 15890_ACEOF 15891if ac_fn_c_try_compile "$LINENO" 15892then : 15893 xorg_cv_cc_flag_unknown_warning_option=yes 15894else $as_nop 15895 xorg_cv_cc_flag_unknown_warning_option=no 15896fi 15897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15898fi 15899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15902 CFLAGS="$xorg_testset_save_CFLAGS" 15903fi 15904 15905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15908 fi 15909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15912if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15913then : 15914 printf %s "(cached) " >&6 15915else $as_nop 15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15917/* end confdefs.h. */ 15918int i; 15919_ACEOF 15920if ac_fn_c_try_compile "$LINENO" 15921then : 15922 xorg_cv_cc_flag_unused_command_line_argument=yes 15923else $as_nop 15924 xorg_cv_cc_flag_unused_command_line_argument=no 15925fi 15926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15927fi 15928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15931 CFLAGS="$xorg_testset_save_CFLAGS" 15932fi 15933 15934found="no" 15935 15936 if test $found = "no" ; then 15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15939 fi 15940 15941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15943 fi 15944 15945 CFLAGS="$CFLAGS -Werror=sequence-point" 15946 15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15948printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15949 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15950 if eval test \${$cacheid+y} 15951then : 15952 printf %s "(cached) " >&6 15953else $as_nop 15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15955/* end confdefs.h. */ 15956int i; 15957int 15958main (void) 15959{ 15960 15961 ; 15962 return 0; 15963} 15964_ACEOF 15965if ac_fn_c_try_link "$LINENO" 15966then : 15967 eval $cacheid=yes 15968else $as_nop 15969 eval $cacheid=no 15970fi 15971rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15972 conftest$ac_exeext conftest.$ac_ext 15973fi 15974 15975 15976 CFLAGS="$xorg_testset_save_CFLAGS" 15977 15978 eval supported=\$$cacheid 15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15980printf "%s\n" "$supported" >&6; } 15981 if test "$supported" = "yes" ; then 15982 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15983 found="yes" 15984 fi 15985 fi 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001xorg_testset_save_CFLAGS="$CFLAGS" 16002 16003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16007if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16008then : 16009 printf %s "(cached) " >&6 16010else $as_nop 16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16012/* end confdefs.h. */ 16013int i; 16014_ACEOF 16015if ac_fn_c_try_compile "$LINENO" 16016then : 16017 xorg_cv_cc_flag_unknown_warning_option=yes 16018else $as_nop 16019 xorg_cv_cc_flag_unknown_warning_option=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16022fi 16023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027fi 16028 16029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16032 fi 16033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16036if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16037then : 16038 printf %s "(cached) " >&6 16039else $as_nop 16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041/* end confdefs.h. */ 16042int i; 16043_ACEOF 16044if ac_fn_c_try_compile "$LINENO" 16045then : 16046 xorg_cv_cc_flag_unused_command_line_argument=yes 16047else $as_nop 16048 xorg_cv_cc_flag_unused_command_line_argument=no 16049fi 16050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16051fi 16052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16055 CFLAGS="$xorg_testset_save_CFLAGS" 16056fi 16057 16058found="no" 16059 16060 if test $found = "no" ; then 16061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16063 fi 16064 16065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16067 fi 16068 16069 CFLAGS="$CFLAGS -Werror=return-type" 16070 16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16072printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16073 cacheid=xorg_cv_cc_flag__Werror_return_type 16074 if eval test \${$cacheid+y} 16075then : 16076 printf %s "(cached) " >&6 16077else $as_nop 16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16079/* end confdefs.h. */ 16080int i; 16081int 16082main (void) 16083{ 16084 16085 ; 16086 return 0; 16087} 16088_ACEOF 16089if ac_fn_c_try_link "$LINENO" 16090then : 16091 eval $cacheid=yes 16092else $as_nop 16093 eval $cacheid=no 16094fi 16095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16096 conftest$ac_exeext conftest.$ac_ext 16097fi 16098 16099 16100 CFLAGS="$xorg_testset_save_CFLAGS" 16101 16102 eval supported=\$$cacheid 16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16104printf "%s\n" "$supported" >&6; } 16105 if test "$supported" = "yes" ; then 16106 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16107 found="yes" 16108 fi 16109 fi 16110 16111 if test $found = "no" ; then 16112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16114 fi 16115 16116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16118 fi 16119 16120 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16121 16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16123printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16124 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16125 if eval test \${$cacheid+y} 16126then : 16127 printf %s "(cached) " >&6 16128else $as_nop 16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16130/* end confdefs.h. */ 16131int i; 16132int 16133main (void) 16134{ 16135 16136 ; 16137 return 0; 16138} 16139_ACEOF 16140if ac_fn_c_try_link "$LINENO" 16141then : 16142 eval $cacheid=yes 16143else $as_nop 16144 eval $cacheid=no 16145fi 16146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16147 conftest$ac_exeext conftest.$ac_ext 16148fi 16149 16150 16151 CFLAGS="$xorg_testset_save_CFLAGS" 16152 16153 eval supported=\$$cacheid 16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16155printf "%s\n" "$supported" >&6; } 16156 if test "$supported" = "yes" ; then 16157 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16158 found="yes" 16159 fi 16160 fi 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176xorg_testset_save_CFLAGS="$CFLAGS" 16177 16178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16183then : 16184 printf %s "(cached) " >&6 16185else $as_nop 16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16187/* end confdefs.h. */ 16188int i; 16189_ACEOF 16190if ac_fn_c_try_compile "$LINENO" 16191then : 16192 xorg_cv_cc_flag_unknown_warning_option=yes 16193else $as_nop 16194 xorg_cv_cc_flag_unknown_warning_option=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16197fi 16198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202fi 16203 16204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16207 fi 16208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16211if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16212then : 16213 printf %s "(cached) " >&6 16214else $as_nop 16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16216/* end confdefs.h. */ 16217int i; 16218_ACEOF 16219if ac_fn_c_try_compile "$LINENO" 16220then : 16221 xorg_cv_cc_flag_unused_command_line_argument=yes 16222else $as_nop 16223 xorg_cv_cc_flag_unused_command_line_argument=no 16224fi 16225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16226fi 16227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16230 CFLAGS="$xorg_testset_save_CFLAGS" 16231fi 16232 16233found="no" 16234 16235 if test $found = "no" ; then 16236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16238 fi 16239 16240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16242 fi 16243 16244 CFLAGS="$CFLAGS -Werror=trigraphs" 16245 16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16247printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16248 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16249 if eval test \${$cacheid+y} 16250then : 16251 printf %s "(cached) " >&6 16252else $as_nop 16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16254/* end confdefs.h. */ 16255int i; 16256int 16257main (void) 16258{ 16259 16260 ; 16261 return 0; 16262} 16263_ACEOF 16264if ac_fn_c_try_link "$LINENO" 16265then : 16266 eval $cacheid=yes 16267else $as_nop 16268 eval $cacheid=no 16269fi 16270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16271 conftest$ac_exeext conftest.$ac_ext 16272fi 16273 16274 16275 CFLAGS="$xorg_testset_save_CFLAGS" 16276 16277 eval supported=\$$cacheid 16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16279printf "%s\n" "$supported" >&6; } 16280 if test "$supported" = "yes" ; then 16281 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16282 found="yes" 16283 fi 16284 fi 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300xorg_testset_save_CFLAGS="$CFLAGS" 16301 16302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16306if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16307then : 16308 printf %s "(cached) " >&6 16309else $as_nop 16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16311/* end confdefs.h. */ 16312int i; 16313_ACEOF 16314if ac_fn_c_try_compile "$LINENO" 16315then : 16316 xorg_cv_cc_flag_unknown_warning_option=yes 16317else $as_nop 16318 xorg_cv_cc_flag_unknown_warning_option=no 16319fi 16320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16321fi 16322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16325 CFLAGS="$xorg_testset_save_CFLAGS" 16326fi 16327 16328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16331 fi 16332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16335if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16336then : 16337 printf %s "(cached) " >&6 16338else $as_nop 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341int i; 16342_ACEOF 16343if ac_fn_c_try_compile "$LINENO" 16344then : 16345 xorg_cv_cc_flag_unused_command_line_argument=yes 16346else $as_nop 16347 xorg_cv_cc_flag_unused_command_line_argument=no 16348fi 16349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16350fi 16351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16354 CFLAGS="$xorg_testset_save_CFLAGS" 16355fi 16356 16357found="no" 16358 16359 if test $found = "no" ; then 16360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16362 fi 16363 16364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16366 fi 16367 16368 CFLAGS="$CFLAGS -Werror=array-bounds" 16369 16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16371printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16372 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16373 if eval test \${$cacheid+y} 16374then : 16375 printf %s "(cached) " >&6 16376else $as_nop 16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16378/* end confdefs.h. */ 16379int i; 16380int 16381main (void) 16382{ 16383 16384 ; 16385 return 0; 16386} 16387_ACEOF 16388if ac_fn_c_try_link "$LINENO" 16389then : 16390 eval $cacheid=yes 16391else $as_nop 16392 eval $cacheid=no 16393fi 16394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16395 conftest$ac_exeext conftest.$ac_ext 16396fi 16397 16398 16399 CFLAGS="$xorg_testset_save_CFLAGS" 16400 16401 eval supported=\$$cacheid 16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16403printf "%s\n" "$supported" >&6; } 16404 if test "$supported" = "yes" ; then 16405 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16406 found="yes" 16407 fi 16408 fi 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424xorg_testset_save_CFLAGS="$CFLAGS" 16425 16426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16430if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16431then : 16432 printf %s "(cached) " >&6 16433else $as_nop 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436int i; 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO" 16439then : 16440 xorg_cv_cc_flag_unknown_warning_option=yes 16441else $as_nop 16442 xorg_cv_cc_flag_unknown_warning_option=no 16443fi 16444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16445fi 16446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16449 CFLAGS="$xorg_testset_save_CFLAGS" 16450fi 16451 16452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16455 fi 16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16459if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16460then : 16461 printf %s "(cached) " >&6 16462else $as_nop 16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16464/* end confdefs.h. */ 16465int i; 16466_ACEOF 16467if ac_fn_c_try_compile "$LINENO" 16468then : 16469 xorg_cv_cc_flag_unused_command_line_argument=yes 16470else $as_nop 16471 xorg_cv_cc_flag_unused_command_line_argument=no 16472fi 16473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16474fi 16475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16478 CFLAGS="$xorg_testset_save_CFLAGS" 16479fi 16480 16481found="no" 16482 16483 if test $found = "no" ; then 16484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16486 fi 16487 16488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16490 fi 16491 16492 CFLAGS="$CFLAGS -Werror=write-strings" 16493 16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16495printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16496 cacheid=xorg_cv_cc_flag__Werror_write_strings 16497 if eval test \${$cacheid+y} 16498then : 16499 printf %s "(cached) " >&6 16500else $as_nop 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503int i; 16504int 16505main (void) 16506{ 16507 16508 ; 16509 return 0; 16510} 16511_ACEOF 16512if ac_fn_c_try_link "$LINENO" 16513then : 16514 eval $cacheid=yes 16515else $as_nop 16516 eval $cacheid=no 16517fi 16518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16519 conftest$ac_exeext conftest.$ac_ext 16520fi 16521 16522 16523 CFLAGS="$xorg_testset_save_CFLAGS" 16524 16525 eval supported=\$$cacheid 16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16527printf "%s\n" "$supported" >&6; } 16528 if test "$supported" = "yes" ; then 16529 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16530 found="yes" 16531 fi 16532 fi 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548xorg_testset_save_CFLAGS="$CFLAGS" 16549 16550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16554if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16555then : 16556 printf %s "(cached) " >&6 16557else $as_nop 16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16559/* end confdefs.h. */ 16560int i; 16561_ACEOF 16562if ac_fn_c_try_compile "$LINENO" 16563then : 16564 xorg_cv_cc_flag_unknown_warning_option=yes 16565else $as_nop 16566 xorg_cv_cc_flag_unknown_warning_option=no 16567fi 16568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16569fi 16570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16573 CFLAGS="$xorg_testset_save_CFLAGS" 16574fi 16575 16576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 fi 16580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16583if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16584then : 16585 printf %s "(cached) " >&6 16586else $as_nop 16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16588/* end confdefs.h. */ 16589int i; 16590_ACEOF 16591if ac_fn_c_try_compile "$LINENO" 16592then : 16593 xorg_cv_cc_flag_unused_command_line_argument=yes 16594else $as_nop 16595 xorg_cv_cc_flag_unused_command_line_argument=no 16596fi 16597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16598fi 16599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16602 CFLAGS="$xorg_testset_save_CFLAGS" 16603fi 16604 16605found="no" 16606 16607 if test $found = "no" ; then 16608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16610 fi 16611 16612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16614 fi 16615 16616 CFLAGS="$CFLAGS -Werror=address" 16617 16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16619printf %s "checking if $CC supports -Werror=address... " >&6; } 16620 cacheid=xorg_cv_cc_flag__Werror_address 16621 if eval test \${$cacheid+y} 16622then : 16623 printf %s "(cached) " >&6 16624else $as_nop 16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16626/* end confdefs.h. */ 16627int i; 16628int 16629main (void) 16630{ 16631 16632 ; 16633 return 0; 16634} 16635_ACEOF 16636if ac_fn_c_try_link "$LINENO" 16637then : 16638 eval $cacheid=yes 16639else $as_nop 16640 eval $cacheid=no 16641fi 16642rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16643 conftest$ac_exeext conftest.$ac_ext 16644fi 16645 16646 16647 CFLAGS="$xorg_testset_save_CFLAGS" 16648 16649 eval supported=\$$cacheid 16650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16651printf "%s\n" "$supported" >&6; } 16652 if test "$supported" = "yes" ; then 16653 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16654 found="yes" 16655 fi 16656 fi 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672xorg_testset_save_CFLAGS="$CFLAGS" 16673 16674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16678if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16679then : 16680 printf %s "(cached) " >&6 16681else $as_nop 16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684int i; 16685_ACEOF 16686if ac_fn_c_try_compile "$LINENO" 16687then : 16688 xorg_cv_cc_flag_unknown_warning_option=yes 16689else $as_nop 16690 xorg_cv_cc_flag_unknown_warning_option=no 16691fi 16692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16693fi 16694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16697 CFLAGS="$xorg_testset_save_CFLAGS" 16698fi 16699 16700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16703 fi 16704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16707if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16708then : 16709 printf %s "(cached) " >&6 16710else $as_nop 16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16712/* end confdefs.h. */ 16713int i; 16714_ACEOF 16715if ac_fn_c_try_compile "$LINENO" 16716then : 16717 xorg_cv_cc_flag_unused_command_line_argument=yes 16718else $as_nop 16719 xorg_cv_cc_flag_unused_command_line_argument=no 16720fi 16721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16722fi 16723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16726 CFLAGS="$xorg_testset_save_CFLAGS" 16727fi 16728 16729found="no" 16730 16731 if test $found = "no" ; then 16732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16734 fi 16735 16736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16738 fi 16739 16740 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16741 16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16743printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16744 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16745 if eval test \${$cacheid+y} 16746then : 16747 printf %s "(cached) " >&6 16748else $as_nop 16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16750/* end confdefs.h. */ 16751int i; 16752int 16753main (void) 16754{ 16755 16756 ; 16757 return 0; 16758} 16759_ACEOF 16760if ac_fn_c_try_link "$LINENO" 16761then : 16762 eval $cacheid=yes 16763else $as_nop 16764 eval $cacheid=no 16765fi 16766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16767 conftest$ac_exeext conftest.$ac_ext 16768fi 16769 16770 16771 CFLAGS="$xorg_testset_save_CFLAGS" 16772 16773 eval supported=\$$cacheid 16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16775printf "%s\n" "$supported" >&6; } 16776 if test "$supported" = "yes" ; then 16777 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16778 found="yes" 16779 fi 16780 fi 16781 16782 if test $found = "no" ; then 16783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16785 fi 16786 16787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16789 fi 16790 16791 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16792 16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16794printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16795 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16796 if eval test \${$cacheid+y} 16797then : 16798 printf %s "(cached) " >&6 16799else $as_nop 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802int i; 16803int 16804main (void) 16805{ 16806 16807 ; 16808 return 0; 16809} 16810_ACEOF 16811if ac_fn_c_try_link "$LINENO" 16812then : 16813 eval $cacheid=yes 16814else $as_nop 16815 eval $cacheid=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16818 conftest$ac_exeext conftest.$ac_ext 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826printf "%s\n" "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16829 found="yes" 16830 fi 16831 fi 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847xorg_testset_save_CFLAGS="$CFLAGS" 16848 16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16853if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16854then : 16855 printf %s "(cached) " >&6 16856else $as_nop 16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16858/* end confdefs.h. */ 16859int i; 16860_ACEOF 16861if ac_fn_c_try_compile "$LINENO" 16862then : 16863 xorg_cv_cc_flag_unknown_warning_option=yes 16864else $as_nop 16865 xorg_cv_cc_flag_unknown_warning_option=no 16866fi 16867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16868fi 16869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16872 CFLAGS="$xorg_testset_save_CFLAGS" 16873fi 16874 16875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16878 fi 16879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16882if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16883then : 16884 printf %s "(cached) " >&6 16885else $as_nop 16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887/* end confdefs.h. */ 16888int i; 16889_ACEOF 16890if ac_fn_c_try_compile "$LINENO" 16891then : 16892 xorg_cv_cc_flag_unused_command_line_argument=yes 16893else $as_nop 16894 xorg_cv_cc_flag_unused_command_line_argument=no 16895fi 16896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16897fi 16898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16901 CFLAGS="$xorg_testset_save_CFLAGS" 16902fi 16903 16904found="no" 16905 16906 if test $found = "no" ; then 16907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16909 fi 16910 16911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16913 fi 16914 16915 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16916 16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16918printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16919 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16920 if eval test \${$cacheid+y} 16921then : 16922 printf %s "(cached) " >&6 16923else $as_nop 16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16925/* end confdefs.h. */ 16926int i; 16927int 16928main (void) 16929{ 16930 16931 ; 16932 return 0; 16933} 16934_ACEOF 16935if ac_fn_c_try_link "$LINENO" 16936then : 16937 eval $cacheid=yes 16938else $as_nop 16939 eval $cacheid=no 16940fi 16941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16942 conftest$ac_exeext conftest.$ac_ext 16943fi 16944 16945 16946 CFLAGS="$xorg_testset_save_CFLAGS" 16947 16948 eval supported=\$$cacheid 16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16950printf "%s\n" "$supported" >&6; } 16951 if test "$supported" = "yes" ; then 16952 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16953 found="yes" 16954 fi 16955 fi 16956 16957 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16958else 16959{ printf "%s\n" "$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 16960printf "%s\n" "$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;} 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974xorg_testset_save_CFLAGS="$CFLAGS" 16975 16976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16980if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16981then : 16982 printf %s "(cached) " >&6 16983else $as_nop 16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16985/* end confdefs.h. */ 16986int i; 16987_ACEOF 16988if ac_fn_c_try_compile "$LINENO" 16989then : 16990 xorg_cv_cc_flag_unknown_warning_option=yes 16991else $as_nop 16992 xorg_cv_cc_flag_unknown_warning_option=no 16993fi 16994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16995fi 16996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16999 CFLAGS="$xorg_testset_save_CFLAGS" 17000fi 17001 17002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17005 fi 17006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17010then : 17011 printf %s "(cached) " >&6 17012else $as_nop 17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17014/* end confdefs.h. */ 17015int i; 17016_ACEOF 17017if ac_fn_c_try_compile "$LINENO" 17018then : 17019 xorg_cv_cc_flag_unused_command_line_argument=yes 17020else $as_nop 17021 xorg_cv_cc_flag_unused_command_line_argument=no 17022fi 17023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17024fi 17025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17028 CFLAGS="$xorg_testset_save_CFLAGS" 17029fi 17030 17031found="no" 17032 17033 if test $found = "no" ; then 17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17036 fi 17037 17038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17040 fi 17041 17042 CFLAGS="$CFLAGS -Wimplicit" 17043 17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17045printf %s "checking if $CC supports -Wimplicit... " >&6; } 17046 cacheid=xorg_cv_cc_flag__Wimplicit 17047 if eval test \${$cacheid+y} 17048then : 17049 printf %s "(cached) " >&6 17050else $as_nop 17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17052/* end confdefs.h. */ 17053int i; 17054int 17055main (void) 17056{ 17057 17058 ; 17059 return 0; 17060} 17061_ACEOF 17062if ac_fn_c_try_link "$LINENO" 17063then : 17064 eval $cacheid=yes 17065else $as_nop 17066 eval $cacheid=no 17067fi 17068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17069 conftest$ac_exeext conftest.$ac_ext 17070fi 17071 17072 17073 CFLAGS="$xorg_testset_save_CFLAGS" 17074 17075 eval supported=\$$cacheid 17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17077printf "%s\n" "$supported" >&6; } 17078 if test "$supported" = "yes" ; then 17079 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17080 found="yes" 17081 fi 17082 fi 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098xorg_testset_save_CFLAGS="$CFLAGS" 17099 17100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17104if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17105then : 17106 printf %s "(cached) " >&6 17107else $as_nop 17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17109/* end confdefs.h. */ 17110int i; 17111_ACEOF 17112if ac_fn_c_try_compile "$LINENO" 17113then : 17114 xorg_cv_cc_flag_unknown_warning_option=yes 17115else $as_nop 17116 xorg_cv_cc_flag_unknown_warning_option=no 17117fi 17118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17119fi 17120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17123 CFLAGS="$xorg_testset_save_CFLAGS" 17124fi 17125 17126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17129 fi 17130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17133if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17134then : 17135 printf %s "(cached) " >&6 17136else $as_nop 17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17138/* end confdefs.h. */ 17139int i; 17140_ACEOF 17141if ac_fn_c_try_compile "$LINENO" 17142then : 17143 xorg_cv_cc_flag_unused_command_line_argument=yes 17144else $as_nop 17145 xorg_cv_cc_flag_unused_command_line_argument=no 17146fi 17147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17148fi 17149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17152 CFLAGS="$xorg_testset_save_CFLAGS" 17153fi 17154 17155found="no" 17156 17157 if test $found = "no" ; then 17158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17160 fi 17161 17162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17164 fi 17165 17166 CFLAGS="$CFLAGS -Wnonnull" 17167 17168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17169printf %s "checking if $CC supports -Wnonnull... " >&6; } 17170 cacheid=xorg_cv_cc_flag__Wnonnull 17171 if eval test \${$cacheid+y} 17172then : 17173 printf %s "(cached) " >&6 17174else $as_nop 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177int i; 17178int 17179main (void) 17180{ 17181 17182 ; 17183 return 0; 17184} 17185_ACEOF 17186if ac_fn_c_try_link "$LINENO" 17187then : 17188 eval $cacheid=yes 17189else $as_nop 17190 eval $cacheid=no 17191fi 17192rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17193 conftest$ac_exeext conftest.$ac_ext 17194fi 17195 17196 17197 CFLAGS="$xorg_testset_save_CFLAGS" 17198 17199 eval supported=\$$cacheid 17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17201printf "%s\n" "$supported" >&6; } 17202 if test "$supported" = "yes" ; then 17203 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17204 found="yes" 17205 fi 17206 fi 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222xorg_testset_save_CFLAGS="$CFLAGS" 17223 17224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17228if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17229then : 17230 printf %s "(cached) " >&6 17231else $as_nop 17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17233/* end confdefs.h. */ 17234int i; 17235_ACEOF 17236if ac_fn_c_try_compile "$LINENO" 17237then : 17238 xorg_cv_cc_flag_unknown_warning_option=yes 17239else $as_nop 17240 xorg_cv_cc_flag_unknown_warning_option=no 17241fi 17242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17243fi 17244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17247 CFLAGS="$xorg_testset_save_CFLAGS" 17248fi 17249 17250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17253 fi 17254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17258then : 17259 printf %s "(cached) " >&6 17260else $as_nop 17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17262/* end confdefs.h. */ 17263int i; 17264_ACEOF 17265if ac_fn_c_try_compile "$LINENO" 17266then : 17267 xorg_cv_cc_flag_unused_command_line_argument=yes 17268else $as_nop 17269 xorg_cv_cc_flag_unused_command_line_argument=no 17270fi 17271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17272fi 17273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17276 CFLAGS="$xorg_testset_save_CFLAGS" 17277fi 17278 17279found="no" 17280 17281 if test $found = "no" ; then 17282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17284 fi 17285 17286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17288 fi 17289 17290 CFLAGS="$CFLAGS -Winit-self" 17291 17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17293printf %s "checking if $CC supports -Winit-self... " >&6; } 17294 cacheid=xorg_cv_cc_flag__Winit_self 17295 if eval test \${$cacheid+y} 17296then : 17297 printf %s "(cached) " >&6 17298else $as_nop 17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17300/* end confdefs.h. */ 17301int i; 17302int 17303main (void) 17304{ 17305 17306 ; 17307 return 0; 17308} 17309_ACEOF 17310if ac_fn_c_try_link "$LINENO" 17311then : 17312 eval $cacheid=yes 17313else $as_nop 17314 eval $cacheid=no 17315fi 17316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17317 conftest$ac_exeext conftest.$ac_ext 17318fi 17319 17320 17321 CFLAGS="$xorg_testset_save_CFLAGS" 17322 17323 eval supported=\$$cacheid 17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17325printf "%s\n" "$supported" >&6; } 17326 if test "$supported" = "yes" ; then 17327 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17328 found="yes" 17329 fi 17330 fi 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346xorg_testset_save_CFLAGS="$CFLAGS" 17347 17348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17353then : 17354 printf %s "(cached) " >&6 17355else $as_nop 17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358int i; 17359_ACEOF 17360if ac_fn_c_try_compile "$LINENO" 17361then : 17362 xorg_cv_cc_flag_unknown_warning_option=yes 17363else $as_nop 17364 xorg_cv_cc_flag_unknown_warning_option=no 17365fi 17366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17367fi 17368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17371 CFLAGS="$xorg_testset_save_CFLAGS" 17372fi 17373 17374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17377 fi 17378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17381if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17382then : 17383 printf %s "(cached) " >&6 17384else $as_nop 17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17386/* end confdefs.h. */ 17387int i; 17388_ACEOF 17389if ac_fn_c_try_compile "$LINENO" 17390then : 17391 xorg_cv_cc_flag_unused_command_line_argument=yes 17392else $as_nop 17393 xorg_cv_cc_flag_unused_command_line_argument=no 17394fi 17395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17396fi 17397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17400 CFLAGS="$xorg_testset_save_CFLAGS" 17401fi 17402 17403found="no" 17404 17405 if test $found = "no" ; then 17406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 fi 17409 17410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17412 fi 17413 17414 CFLAGS="$CFLAGS -Wmain" 17415 17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17417printf %s "checking if $CC supports -Wmain... " >&6; } 17418 cacheid=xorg_cv_cc_flag__Wmain 17419 if eval test \${$cacheid+y} 17420then : 17421 printf %s "(cached) " >&6 17422else $as_nop 17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17424/* end confdefs.h. */ 17425int i; 17426int 17427main (void) 17428{ 17429 17430 ; 17431 return 0; 17432} 17433_ACEOF 17434if ac_fn_c_try_link "$LINENO" 17435then : 17436 eval $cacheid=yes 17437else $as_nop 17438 eval $cacheid=no 17439fi 17440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17441 conftest$ac_exeext conftest.$ac_ext 17442fi 17443 17444 17445 CFLAGS="$xorg_testset_save_CFLAGS" 17446 17447 eval supported=\$$cacheid 17448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17449printf "%s\n" "$supported" >&6; } 17450 if test "$supported" = "yes" ; then 17451 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17452 found="yes" 17453 fi 17454 fi 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470xorg_testset_save_CFLAGS="$CFLAGS" 17471 17472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17477then : 17478 printf %s "(cached) " >&6 17479else $as_nop 17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17481/* end confdefs.h. */ 17482int i; 17483_ACEOF 17484if ac_fn_c_try_compile "$LINENO" 17485then : 17486 xorg_cv_cc_flag_unknown_warning_option=yes 17487else $as_nop 17488 xorg_cv_cc_flag_unknown_warning_option=no 17489fi 17490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17491fi 17492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496fi 17497 17498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17501 fi 17502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17505if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17506then : 17507 printf %s "(cached) " >&6 17508else $as_nop 17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17510/* end confdefs.h. */ 17511int i; 17512_ACEOF 17513if ac_fn_c_try_compile "$LINENO" 17514then : 17515 xorg_cv_cc_flag_unused_command_line_argument=yes 17516else $as_nop 17517 xorg_cv_cc_flag_unused_command_line_argument=no 17518fi 17519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17520fi 17521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17524 CFLAGS="$xorg_testset_save_CFLAGS" 17525fi 17526 17527found="no" 17528 17529 if test $found = "no" ; then 17530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17532 fi 17533 17534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17536 fi 17537 17538 CFLAGS="$CFLAGS -Wmissing-braces" 17539 17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17541printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17542 cacheid=xorg_cv_cc_flag__Wmissing_braces 17543 if eval test \${$cacheid+y} 17544then : 17545 printf %s "(cached) " >&6 17546else $as_nop 17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17548/* end confdefs.h. */ 17549int i; 17550int 17551main (void) 17552{ 17553 17554 ; 17555 return 0; 17556} 17557_ACEOF 17558if ac_fn_c_try_link "$LINENO" 17559then : 17560 eval $cacheid=yes 17561else $as_nop 17562 eval $cacheid=no 17563fi 17564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17565 conftest$ac_exeext conftest.$ac_ext 17566fi 17567 17568 17569 CFLAGS="$xorg_testset_save_CFLAGS" 17570 17571 eval supported=\$$cacheid 17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17573printf "%s\n" "$supported" >&6; } 17574 if test "$supported" = "yes" ; then 17575 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17576 found="yes" 17577 fi 17578 fi 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594xorg_testset_save_CFLAGS="$CFLAGS" 17595 17596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17601then : 17602 printf %s "(cached) " >&6 17603else $as_nop 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606int i; 17607_ACEOF 17608if ac_fn_c_try_compile "$LINENO" 17609then : 17610 xorg_cv_cc_flag_unknown_warning_option=yes 17611else $as_nop 17612 xorg_cv_cc_flag_unknown_warning_option=no 17613fi 17614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17615fi 17616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17619 CFLAGS="$xorg_testset_save_CFLAGS" 17620fi 17621 17622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17625 fi 17626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17630then : 17631 printf %s "(cached) " >&6 17632else $as_nop 17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17634/* end confdefs.h. */ 17635int i; 17636_ACEOF 17637if ac_fn_c_try_compile "$LINENO" 17638then : 17639 xorg_cv_cc_flag_unused_command_line_argument=yes 17640else $as_nop 17641 xorg_cv_cc_flag_unused_command_line_argument=no 17642fi 17643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17644fi 17645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17648 CFLAGS="$xorg_testset_save_CFLAGS" 17649fi 17650 17651found="no" 17652 17653 if test $found = "no" ; then 17654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17656 fi 17657 17658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17660 fi 17661 17662 CFLAGS="$CFLAGS -Wsequence-point" 17663 17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17665printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17666 cacheid=xorg_cv_cc_flag__Wsequence_point 17667 if eval test \${$cacheid+y} 17668then : 17669 printf %s "(cached) " >&6 17670else $as_nop 17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17672/* end confdefs.h. */ 17673int i; 17674int 17675main (void) 17676{ 17677 17678 ; 17679 return 0; 17680} 17681_ACEOF 17682if ac_fn_c_try_link "$LINENO" 17683then : 17684 eval $cacheid=yes 17685else $as_nop 17686 eval $cacheid=no 17687fi 17688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17689 conftest$ac_exeext conftest.$ac_ext 17690fi 17691 17692 17693 CFLAGS="$xorg_testset_save_CFLAGS" 17694 17695 eval supported=\$$cacheid 17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17697printf "%s\n" "$supported" >&6; } 17698 if test "$supported" = "yes" ; then 17699 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17700 found="yes" 17701 fi 17702 fi 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718xorg_testset_save_CFLAGS="$CFLAGS" 17719 17720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17725then : 17726 printf %s "(cached) " >&6 17727else $as_nop 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730int i; 17731_ACEOF 17732if ac_fn_c_try_compile "$LINENO" 17733then : 17734 xorg_cv_cc_flag_unknown_warning_option=yes 17735else $as_nop 17736 xorg_cv_cc_flag_unknown_warning_option=no 17737fi 17738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17739fi 17740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17743 CFLAGS="$xorg_testset_save_CFLAGS" 17744fi 17745 17746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17749 fi 17750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17753if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17754then : 17755 printf %s "(cached) " >&6 17756else $as_nop 17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17758/* end confdefs.h. */ 17759int i; 17760_ACEOF 17761if ac_fn_c_try_compile "$LINENO" 17762then : 17763 xorg_cv_cc_flag_unused_command_line_argument=yes 17764else $as_nop 17765 xorg_cv_cc_flag_unused_command_line_argument=no 17766fi 17767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17768fi 17769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17772 CFLAGS="$xorg_testset_save_CFLAGS" 17773fi 17774 17775found="no" 17776 17777 if test $found = "no" ; then 17778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17780 fi 17781 17782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17784 fi 17785 17786 CFLAGS="$CFLAGS -Wreturn-type" 17787 17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17789printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17790 cacheid=xorg_cv_cc_flag__Wreturn_type 17791 if eval test \${$cacheid+y} 17792then : 17793 printf %s "(cached) " >&6 17794else $as_nop 17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17796/* end confdefs.h. */ 17797int i; 17798int 17799main (void) 17800{ 17801 17802 ; 17803 return 0; 17804} 17805_ACEOF 17806if ac_fn_c_try_link "$LINENO" 17807then : 17808 eval $cacheid=yes 17809else $as_nop 17810 eval $cacheid=no 17811fi 17812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17813 conftest$ac_exeext conftest.$ac_ext 17814fi 17815 17816 17817 CFLAGS="$xorg_testset_save_CFLAGS" 17818 17819 eval supported=\$$cacheid 17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17821printf "%s\n" "$supported" >&6; } 17822 if test "$supported" = "yes" ; then 17823 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17824 found="yes" 17825 fi 17826 fi 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842xorg_testset_save_CFLAGS="$CFLAGS" 17843 17844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17848if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17849then : 17850 printf %s "(cached) " >&6 17851else $as_nop 17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853/* end confdefs.h. */ 17854int i; 17855_ACEOF 17856if ac_fn_c_try_compile "$LINENO" 17857then : 17858 xorg_cv_cc_flag_unknown_warning_option=yes 17859else $as_nop 17860 xorg_cv_cc_flag_unknown_warning_option=no 17861fi 17862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17863fi 17864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17867 CFLAGS="$xorg_testset_save_CFLAGS" 17868fi 17869 17870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17873 fi 17874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17877if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17878then : 17879 printf %s "(cached) " >&6 17880else $as_nop 17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17882/* end confdefs.h. */ 17883int i; 17884_ACEOF 17885if ac_fn_c_try_compile "$LINENO" 17886then : 17887 xorg_cv_cc_flag_unused_command_line_argument=yes 17888else $as_nop 17889 xorg_cv_cc_flag_unused_command_line_argument=no 17890fi 17891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17892fi 17893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17896 CFLAGS="$xorg_testset_save_CFLAGS" 17897fi 17898 17899found="no" 17900 17901 if test $found = "no" ; then 17902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17904 fi 17905 17906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17908 fi 17909 17910 CFLAGS="$CFLAGS -Wtrigraphs" 17911 17912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17913printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17914 cacheid=xorg_cv_cc_flag__Wtrigraphs 17915 if eval test \${$cacheid+y} 17916then : 17917 printf %s "(cached) " >&6 17918else $as_nop 17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17920/* end confdefs.h. */ 17921int i; 17922int 17923main (void) 17924{ 17925 17926 ; 17927 return 0; 17928} 17929_ACEOF 17930if ac_fn_c_try_link "$LINENO" 17931then : 17932 eval $cacheid=yes 17933else $as_nop 17934 eval $cacheid=no 17935fi 17936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17937 conftest$ac_exeext conftest.$ac_ext 17938fi 17939 17940 17941 CFLAGS="$xorg_testset_save_CFLAGS" 17942 17943 eval supported=\$$cacheid 17944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17945printf "%s\n" "$supported" >&6; } 17946 if test "$supported" = "yes" ; then 17947 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17948 found="yes" 17949 fi 17950 fi 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966xorg_testset_save_CFLAGS="$CFLAGS" 17967 17968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17973then : 17974 printf %s "(cached) " >&6 17975else $as_nop 17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977/* end confdefs.h. */ 17978int i; 17979_ACEOF 17980if ac_fn_c_try_compile "$LINENO" 17981then : 17982 xorg_cv_cc_flag_unknown_warning_option=yes 17983else $as_nop 17984 xorg_cv_cc_flag_unknown_warning_option=no 17985fi 17986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17987fi 17988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17989printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18002then : 18003 printf %s "(cached) " >&6 18004else $as_nop 18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18006/* end confdefs.h. */ 18007int i; 18008_ACEOF 18009if ac_fn_c_try_compile "$LINENO" 18010then : 18011 xorg_cv_cc_flag_unused_command_line_argument=yes 18012else $as_nop 18013 xorg_cv_cc_flag_unused_command_line_argument=no 18014fi 18015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18016fi 18017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18020 CFLAGS="$xorg_testset_save_CFLAGS" 18021fi 18022 18023found="no" 18024 18025 if test $found = "no" ; then 18026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18028 fi 18029 18030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18032 fi 18033 18034 CFLAGS="$CFLAGS -Warray-bounds" 18035 18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18037printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18038 cacheid=xorg_cv_cc_flag__Warray_bounds 18039 if eval test \${$cacheid+y} 18040then : 18041 printf %s "(cached) " >&6 18042else $as_nop 18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18044/* end confdefs.h. */ 18045int i; 18046int 18047main (void) 18048{ 18049 18050 ; 18051 return 0; 18052} 18053_ACEOF 18054if ac_fn_c_try_link "$LINENO" 18055then : 18056 eval $cacheid=yes 18057else $as_nop 18058 eval $cacheid=no 18059fi 18060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18061 conftest$ac_exeext conftest.$ac_ext 18062fi 18063 18064 18065 CFLAGS="$xorg_testset_save_CFLAGS" 18066 18067 eval supported=\$$cacheid 18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18069printf "%s\n" "$supported" >&6; } 18070 if test "$supported" = "yes" ; then 18071 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18072 found="yes" 18073 fi 18074 fi 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090xorg_testset_save_CFLAGS="$CFLAGS" 18091 18092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18097then : 18098 printf %s "(cached) " >&6 18099else $as_nop 18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18101/* end confdefs.h. */ 18102int i; 18103_ACEOF 18104if ac_fn_c_try_compile "$LINENO" 18105then : 18106 xorg_cv_cc_flag_unknown_warning_option=yes 18107else $as_nop 18108 xorg_cv_cc_flag_unknown_warning_option=no 18109fi 18110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18111fi 18112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18115 CFLAGS="$xorg_testset_save_CFLAGS" 18116fi 18117 18118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18121 fi 18122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18126then : 18127 printf %s "(cached) " >&6 18128else $as_nop 18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18130/* end confdefs.h. */ 18131int i; 18132_ACEOF 18133if ac_fn_c_try_compile "$LINENO" 18134then : 18135 xorg_cv_cc_flag_unused_command_line_argument=yes 18136else $as_nop 18137 xorg_cv_cc_flag_unused_command_line_argument=no 18138fi 18139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18140fi 18141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18144 CFLAGS="$xorg_testset_save_CFLAGS" 18145fi 18146 18147found="no" 18148 18149 if test $found = "no" ; then 18150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18152 fi 18153 18154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18156 fi 18157 18158 CFLAGS="$CFLAGS -Wwrite-strings" 18159 18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18161printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18162 cacheid=xorg_cv_cc_flag__Wwrite_strings 18163 if eval test \${$cacheid+y} 18164then : 18165 printf %s "(cached) " >&6 18166else $as_nop 18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18168/* end confdefs.h. */ 18169int i; 18170int 18171main (void) 18172{ 18173 18174 ; 18175 return 0; 18176} 18177_ACEOF 18178if ac_fn_c_try_link "$LINENO" 18179then : 18180 eval $cacheid=yes 18181else $as_nop 18182 eval $cacheid=no 18183fi 18184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18185 conftest$ac_exeext conftest.$ac_ext 18186fi 18187 18188 18189 CFLAGS="$xorg_testset_save_CFLAGS" 18190 18191 eval supported=\$$cacheid 18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18193printf "%s\n" "$supported" >&6; } 18194 if test "$supported" = "yes" ; then 18195 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18196 found="yes" 18197 fi 18198 fi 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214xorg_testset_save_CFLAGS="$CFLAGS" 18215 18216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18221then : 18222 printf %s "(cached) " >&6 18223else $as_nop 18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18225/* end confdefs.h. */ 18226int i; 18227_ACEOF 18228if ac_fn_c_try_compile "$LINENO" 18229then : 18230 xorg_cv_cc_flag_unknown_warning_option=yes 18231else $as_nop 18232 xorg_cv_cc_flag_unknown_warning_option=no 18233fi 18234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18235fi 18236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18239 CFLAGS="$xorg_testset_save_CFLAGS" 18240fi 18241 18242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18245 fi 18246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18249if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18250then : 18251 printf %s "(cached) " >&6 18252else $as_nop 18253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18254/* end confdefs.h. */ 18255int i; 18256_ACEOF 18257if ac_fn_c_try_compile "$LINENO" 18258then : 18259 xorg_cv_cc_flag_unused_command_line_argument=yes 18260else $as_nop 18261 xorg_cv_cc_flag_unused_command_line_argument=no 18262fi 18263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18264fi 18265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18268 CFLAGS="$xorg_testset_save_CFLAGS" 18269fi 18270 18271found="no" 18272 18273 if test $found = "no" ; then 18274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18276 fi 18277 18278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18280 fi 18281 18282 CFLAGS="$CFLAGS -Waddress" 18283 18284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18285printf %s "checking if $CC supports -Waddress... " >&6; } 18286 cacheid=xorg_cv_cc_flag__Waddress 18287 if eval test \${$cacheid+y} 18288then : 18289 printf %s "(cached) " >&6 18290else $as_nop 18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293int i; 18294int 18295main (void) 18296{ 18297 18298 ; 18299 return 0; 18300} 18301_ACEOF 18302if ac_fn_c_try_link "$LINENO" 18303then : 18304 eval $cacheid=yes 18305else $as_nop 18306 eval $cacheid=no 18307fi 18308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18309 conftest$ac_exeext conftest.$ac_ext 18310fi 18311 18312 18313 CFLAGS="$xorg_testset_save_CFLAGS" 18314 18315 eval supported=\$$cacheid 18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18317printf "%s\n" "$supported" >&6; } 18318 if test "$supported" = "yes" ; then 18319 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18320 found="yes" 18321 fi 18322 fi 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338xorg_testset_save_CFLAGS="$CFLAGS" 18339 18340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18344if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18345then : 18346 printf %s "(cached) " >&6 18347else $as_nop 18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18349/* end confdefs.h. */ 18350int i; 18351_ACEOF 18352if ac_fn_c_try_compile "$LINENO" 18353then : 18354 xorg_cv_cc_flag_unknown_warning_option=yes 18355else $as_nop 18356 xorg_cv_cc_flag_unknown_warning_option=no 18357fi 18358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18359fi 18360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18363 CFLAGS="$xorg_testset_save_CFLAGS" 18364fi 18365 18366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18369 fi 18370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18373if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18374then : 18375 printf %s "(cached) " >&6 18376else $as_nop 18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18378/* end confdefs.h. */ 18379int i; 18380_ACEOF 18381if ac_fn_c_try_compile "$LINENO" 18382then : 18383 xorg_cv_cc_flag_unused_command_line_argument=yes 18384else $as_nop 18385 xorg_cv_cc_flag_unused_command_line_argument=no 18386fi 18387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18388fi 18389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18392 CFLAGS="$xorg_testset_save_CFLAGS" 18393fi 18394 18395found="no" 18396 18397 if test $found = "no" ; then 18398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18400 fi 18401 18402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18404 fi 18405 18406 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18407 18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18409printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18410 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18411 if eval test \${$cacheid+y} 18412then : 18413 printf %s "(cached) " >&6 18414else $as_nop 18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18416/* end confdefs.h. */ 18417int i; 18418int 18419main (void) 18420{ 18421 18422 ; 18423 return 0; 18424} 18425_ACEOF 18426if ac_fn_c_try_link "$LINENO" 18427then : 18428 eval $cacheid=yes 18429else $as_nop 18430 eval $cacheid=no 18431fi 18432rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18433 conftest$ac_exeext conftest.$ac_ext 18434fi 18435 18436 18437 CFLAGS="$xorg_testset_save_CFLAGS" 18438 18439 eval supported=\$$cacheid 18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18441printf "%s\n" "$supported" >&6; } 18442 if test "$supported" = "yes" ; then 18443 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18444 found="yes" 18445 fi 18446 fi 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462xorg_testset_save_CFLAGS="$CFLAGS" 18463 18464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18469then : 18470 printf %s "(cached) " >&6 18471else $as_nop 18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18473/* end confdefs.h. */ 18474int i; 18475_ACEOF 18476if ac_fn_c_try_compile "$LINENO" 18477then : 18478 xorg_cv_cc_flag_unknown_warning_option=yes 18479else $as_nop 18480 xorg_cv_cc_flag_unknown_warning_option=no 18481fi 18482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18483fi 18484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18487 CFLAGS="$xorg_testset_save_CFLAGS" 18488fi 18489 18490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18493 fi 18494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18497if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18498then : 18499 printf %s "(cached) " >&6 18500else $as_nop 18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18502/* end confdefs.h. */ 18503int i; 18504_ACEOF 18505if ac_fn_c_try_compile "$LINENO" 18506then : 18507 xorg_cv_cc_flag_unused_command_line_argument=yes 18508else $as_nop 18509 xorg_cv_cc_flag_unused_command_line_argument=no 18510fi 18511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18512fi 18513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18516 CFLAGS="$xorg_testset_save_CFLAGS" 18517fi 18518 18519found="no" 18520 18521 if test $found = "no" ; then 18522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18524 fi 18525 18526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18528 fi 18529 18530 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18531 18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18533printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18534 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18535 if eval test \${$cacheid+y} 18536then : 18537 printf %s "(cached) " >&6 18538else $as_nop 18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18540/* end confdefs.h. */ 18541int i; 18542int 18543main (void) 18544{ 18545 18546 ; 18547 return 0; 18548} 18549_ACEOF 18550if ac_fn_c_try_link "$LINENO" 18551then : 18552 eval $cacheid=yes 18553else $as_nop 18554 eval $cacheid=no 18555fi 18556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18557 conftest$ac_exeext conftest.$ac_ext 18558fi 18559 18560 18561 CFLAGS="$xorg_testset_save_CFLAGS" 18562 18563 eval supported=\$$cacheid 18564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18565printf "%s\n" "$supported" >&6; } 18566 if test "$supported" = "yes" ; then 18567 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18568 found="yes" 18569 fi 18570 fi 18571 18572 18573fi 18574 18575 18576 18577 18578 18579 18580 18581 CWARNFLAGS="$BASE_CFLAGS" 18582 if test "x$GCC" = xyes ; then 18583 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18584 fi 18585 18586 18587 18588 18589 18590 18591 18592 18593# Check whether --enable-strict-compilation was given. 18594if test ${enable_strict_compilation+y} 18595then : 18596 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18597else $as_nop 18598 STRICT_COMPILE=no 18599fi 18600 18601 18602 18603 18604 18605 18606STRICT_CFLAGS="" 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620xorg_testset_save_CFLAGS="$CFLAGS" 18621 18622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18626if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18627then : 18628 printf %s "(cached) " >&6 18629else $as_nop 18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18631/* end confdefs.h. */ 18632int i; 18633_ACEOF 18634if ac_fn_c_try_compile "$LINENO" 18635then : 18636 xorg_cv_cc_flag_unknown_warning_option=yes 18637else $as_nop 18638 xorg_cv_cc_flag_unknown_warning_option=no 18639fi 18640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18641fi 18642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18645 CFLAGS="$xorg_testset_save_CFLAGS" 18646fi 18647 18648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18651 fi 18652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18655if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18656then : 18657 printf %s "(cached) " >&6 18658else $as_nop 18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18660/* end confdefs.h. */ 18661int i; 18662_ACEOF 18663if ac_fn_c_try_compile "$LINENO" 18664then : 18665 xorg_cv_cc_flag_unused_command_line_argument=yes 18666else $as_nop 18667 xorg_cv_cc_flag_unused_command_line_argument=no 18668fi 18669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18670fi 18671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18674 CFLAGS="$xorg_testset_save_CFLAGS" 18675fi 18676 18677found="no" 18678 18679 if test $found = "no" ; then 18680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18682 fi 18683 18684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18686 fi 18687 18688 CFLAGS="$CFLAGS -pedantic" 18689 18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18691printf %s "checking if $CC supports -pedantic... " >&6; } 18692 cacheid=xorg_cv_cc_flag__pedantic 18693 if eval test \${$cacheid+y} 18694then : 18695 printf %s "(cached) " >&6 18696else $as_nop 18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18698/* end confdefs.h. */ 18699int i; 18700int 18701main (void) 18702{ 18703 18704 ; 18705 return 0; 18706} 18707_ACEOF 18708if ac_fn_c_try_link "$LINENO" 18709then : 18710 eval $cacheid=yes 18711else $as_nop 18712 eval $cacheid=no 18713fi 18714rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18715 conftest$ac_exeext conftest.$ac_ext 18716fi 18717 18718 18719 CFLAGS="$xorg_testset_save_CFLAGS" 18720 18721 eval supported=\$$cacheid 18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18723printf "%s\n" "$supported" >&6; } 18724 if test "$supported" = "yes" ; then 18725 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18726 found="yes" 18727 fi 18728 fi 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744xorg_testset_save_CFLAGS="$CFLAGS" 18745 18746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18750if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18751then : 18752 printf %s "(cached) " >&6 18753else $as_nop 18754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18755/* end confdefs.h. */ 18756int i; 18757_ACEOF 18758if ac_fn_c_try_compile "$LINENO" 18759then : 18760 xorg_cv_cc_flag_unknown_warning_option=yes 18761else $as_nop 18762 xorg_cv_cc_flag_unknown_warning_option=no 18763fi 18764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18765fi 18766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18769 CFLAGS="$xorg_testset_save_CFLAGS" 18770fi 18771 18772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18775 fi 18776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18779if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18780then : 18781 printf %s "(cached) " >&6 18782else $as_nop 18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18784/* end confdefs.h. */ 18785int i; 18786_ACEOF 18787if ac_fn_c_try_compile "$LINENO" 18788then : 18789 xorg_cv_cc_flag_unused_command_line_argument=yes 18790else $as_nop 18791 xorg_cv_cc_flag_unused_command_line_argument=no 18792fi 18793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18794fi 18795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18798 CFLAGS="$xorg_testset_save_CFLAGS" 18799fi 18800 18801found="no" 18802 18803 if test $found = "no" ; then 18804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18806 fi 18807 18808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18810 fi 18811 18812 CFLAGS="$CFLAGS -Werror" 18813 18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18815printf %s "checking if $CC supports -Werror... " >&6; } 18816 cacheid=xorg_cv_cc_flag__Werror 18817 if eval test \${$cacheid+y} 18818then : 18819 printf %s "(cached) " >&6 18820else $as_nop 18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18822/* end confdefs.h. */ 18823int i; 18824int 18825main (void) 18826{ 18827 18828 ; 18829 return 0; 18830} 18831_ACEOF 18832if ac_fn_c_try_link "$LINENO" 18833then : 18834 eval $cacheid=yes 18835else $as_nop 18836 eval $cacheid=no 18837fi 18838rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18839 conftest$ac_exeext conftest.$ac_ext 18840fi 18841 18842 18843 CFLAGS="$xorg_testset_save_CFLAGS" 18844 18845 eval supported=\$$cacheid 18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18847printf "%s\n" "$supported" >&6; } 18848 if test "$supported" = "yes" ; then 18849 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18850 found="yes" 18851 fi 18852 fi 18853 18854 if test $found = "no" ; then 18855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18857 fi 18858 18859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18861 fi 18862 18863 CFLAGS="$CFLAGS -errwarn" 18864 18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18866printf %s "checking if $CC supports -errwarn... " >&6; } 18867 cacheid=xorg_cv_cc_flag__errwarn 18868 if eval test \${$cacheid+y} 18869then : 18870 printf %s "(cached) " >&6 18871else $as_nop 18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18873/* end confdefs.h. */ 18874int i; 18875int 18876main (void) 18877{ 18878 18879 ; 18880 return 0; 18881} 18882_ACEOF 18883if ac_fn_c_try_link "$LINENO" 18884then : 18885 eval $cacheid=yes 18886else $as_nop 18887 eval $cacheid=no 18888fi 18889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18890 conftest$ac_exeext conftest.$ac_ext 18891fi 18892 18893 18894 CFLAGS="$xorg_testset_save_CFLAGS" 18895 18896 eval supported=\$$cacheid 18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18898printf "%s\n" "$supported" >&6; } 18899 if test "$supported" = "yes" ; then 18900 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18901 found="yes" 18902 fi 18903 fi 18904 18905 18906 18907# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18908# activate it with -Werror, so we add it here explicitly. 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922xorg_testset_save_CFLAGS="$CFLAGS" 18923 18924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18928if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18929then : 18930 printf %s "(cached) " >&6 18931else $as_nop 18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18933/* end confdefs.h. */ 18934int i; 18935_ACEOF 18936if ac_fn_c_try_compile "$LINENO" 18937then : 18938 xorg_cv_cc_flag_unknown_warning_option=yes 18939else $as_nop 18940 xorg_cv_cc_flag_unknown_warning_option=no 18941fi 18942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18943fi 18944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18947 CFLAGS="$xorg_testset_save_CFLAGS" 18948fi 18949 18950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18953 fi 18954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18957if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18958then : 18959 printf %s "(cached) " >&6 18960else $as_nop 18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18962/* end confdefs.h. */ 18963int i; 18964_ACEOF 18965if ac_fn_c_try_compile "$LINENO" 18966then : 18967 xorg_cv_cc_flag_unused_command_line_argument=yes 18968else $as_nop 18969 xorg_cv_cc_flag_unused_command_line_argument=no 18970fi 18971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18972fi 18973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18976 CFLAGS="$xorg_testset_save_CFLAGS" 18977fi 18978 18979found="no" 18980 18981 if test $found = "no" ; then 18982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18984 fi 18985 18986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18988 fi 18989 18990 CFLAGS="$CFLAGS -Werror=attributes" 18991 18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18993printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18994 cacheid=xorg_cv_cc_flag__Werror_attributes 18995 if eval test \${$cacheid+y} 18996then : 18997 printf %s "(cached) " >&6 18998else $as_nop 18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19000/* end confdefs.h. */ 19001int i; 19002int 19003main (void) 19004{ 19005 19006 ; 19007 return 0; 19008} 19009_ACEOF 19010if ac_fn_c_try_link "$LINENO" 19011then : 19012 eval $cacheid=yes 19013else $as_nop 19014 eval $cacheid=no 19015fi 19016rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19017 conftest$ac_exeext conftest.$ac_ext 19018fi 19019 19020 19021 CFLAGS="$xorg_testset_save_CFLAGS" 19022 19023 eval supported=\$$cacheid 19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19025printf "%s\n" "$supported" >&6; } 19026 if test "$supported" = "yes" ; then 19027 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19028 found="yes" 19029 fi 19030 fi 19031 19032 19033 19034if test "x$STRICT_COMPILE" = "xyes"; then 19035 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19036 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19037fi 19038 19039 19040 19041 19042 19043 19044cat >>confdefs.h <<_ACEOF 19045#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19046_ACEOF 19047 19048 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19049 if test "x$PVM" = "x"; then 19050 PVM="0" 19051 fi 19052 19053printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19054 19055 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19056 if test "x$PVP" = "x"; then 19057 PVP="0" 19058 fi 19059 19060printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19061 19062 19063 19064CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19065mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19066|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19067touch \$(top_srcdir)/ChangeLog; \ 19068echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19069 19070 19071 19072 19073macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19074INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19075mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19076|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19077touch \$(top_srcdir)/INSTALL; \ 19078echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19079 19080 19081 19082 19083 19084 19085case $host_os in 19086 solaris*) 19087 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19088 # check for a man page file found in later versions that use 19089 # traditional section numbers instead 19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19091printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19092if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19093then : 19094 printf %s "(cached) " >&6 19095else $as_nop 19096 test "$cross_compiling" = yes && 19097 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19098if test -r "/usr/share/man/man7/attributes.7"; then 19099 ac_cv_file__usr_share_man_man7_attributes_7=yes 19100else 19101 ac_cv_file__usr_share_man_man7_attributes_7=no 19102fi 19103fi 19104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19105printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19106if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19107then : 19108 SYSV_MAN_SECTIONS=false 19109else $as_nop 19110 SYSV_MAN_SECTIONS=true 19111fi 19112 19113 ;; 19114 *) SYSV_MAN_SECTIONS=false ;; 19115esac 19116 19117if test x$APP_MAN_SUFFIX = x ; then 19118 APP_MAN_SUFFIX=1 19119fi 19120if test x$APP_MAN_DIR = x ; then 19121 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19122fi 19123 19124if test x$LIB_MAN_SUFFIX = x ; then 19125 LIB_MAN_SUFFIX=3 19126fi 19127if test x$LIB_MAN_DIR = x ; then 19128 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19129fi 19130 19131if test x$FILE_MAN_SUFFIX = x ; then 19132 case $SYSV_MAN_SECTIONS in 19133 true) FILE_MAN_SUFFIX=4 ;; 19134 *) FILE_MAN_SUFFIX=5 ;; 19135 esac 19136fi 19137if test x$FILE_MAN_DIR = x ; then 19138 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19139fi 19140 19141if test x$MISC_MAN_SUFFIX = x ; then 19142 case $SYSV_MAN_SECTIONS in 19143 true) MISC_MAN_SUFFIX=5 ;; 19144 *) MISC_MAN_SUFFIX=7 ;; 19145 esac 19146fi 19147if test x$MISC_MAN_DIR = x ; then 19148 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19149fi 19150 19151if test x$DRIVER_MAN_SUFFIX = x ; then 19152 case $SYSV_MAN_SECTIONS in 19153 true) DRIVER_MAN_SUFFIX=7 ;; 19154 *) DRIVER_MAN_SUFFIX=4 ;; 19155 esac 19156fi 19157if test x$DRIVER_MAN_DIR = x ; then 19158 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19159fi 19160 19161if test x$ADMIN_MAN_SUFFIX = x ; then 19162 case $SYSV_MAN_SECTIONS in 19163 true) ADMIN_MAN_SUFFIX=1m ;; 19164 *) ADMIN_MAN_SUFFIX=8 ;; 19165 esac 19166fi 19167if test x$ADMIN_MAN_DIR = x ; then 19168 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19169fi 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185XORG_MAN_PAGE="X Version 11" 19186 19187MAN_SUBSTS="\ 19188 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19189 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19190 -e 's|__xservername__|Xorg|g' \ 19191 -e 's|__xconfigfile__|xorg.conf|g' \ 19192 -e 's|__projectroot__|\$(prefix)|g' \ 19193 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19194 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19195 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19196 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19197 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19198 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19199 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19200 19201 19202 19203# Check whether --enable-silent-rules was given. 19204if test ${enable_silent_rules+y} 19205then : 19206 enableval=$enable_silent_rules; 19207fi 19208 19209case $enable_silent_rules in # ((( 19210 yes) AM_DEFAULT_VERBOSITY=0;; 19211 no) AM_DEFAULT_VERBOSITY=1;; 19212 *) AM_DEFAULT_VERBOSITY=0;; 19213esac 19214am_make=${MAKE-make} 19215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19216printf %s "checking whether $am_make supports nested variables... " >&6; } 19217if test ${am_cv_make_support_nested_variables+y} 19218then : 19219 printf %s "(cached) " >&6 19220else $as_nop 19221 if printf "%s\n" 'TRUE=$(BAR$(V)) 19222BAR0=false 19223BAR1=true 19224V=1 19225am__doit: 19226 @$(TRUE) 19227.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19228 am_cv_make_support_nested_variables=yes 19229else 19230 am_cv_make_support_nested_variables=no 19231fi 19232fi 19233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19234printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19235if test $am_cv_make_support_nested_variables = yes; then 19236 AM_V='$(V)' 19237 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19238else 19239 AM_V=$AM_DEFAULT_VERBOSITY 19240 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19241fi 19242AM_BACKSLASH='\' 19243 19244 19245 19246# Checks for library functions. 19247ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 19248if test "x$ac_cv_func_strcasecmp" = xyes 19249then : 19250 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 19251 19252fi 19253ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 19254if test "x$ac_cv_func_strndup" = xyes 19255then : 19256 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 19257 19258fi 19259 19260ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 19261if test "x$ac_cv_func_getc_unlocked" = xyes 19262then : 19263 19264printf "%s\n" "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h 19265 19266fi 19267 19268 19269# Obtain compiler/linker options for dependencies 19270 19271pkg_failed=no 19272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5 19273printf %s "checking for XKBFILE... " >&6; } 19274 19275if test -n "$XKBFILE_CFLAGS"; then 19276 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS" 19277 elif test -n "$PKG_CONFIG"; then 19278 if test -n "$PKG_CONFIG" && \ 19279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 19280 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 19281 ac_status=$? 19282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19283 test $ac_status = 0; }; then 19284 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null` 19285 test "x$?" != "x0" && pkg_failed=yes 19286else 19287 pkg_failed=yes 19288fi 19289 else 19290 pkg_failed=untried 19291fi 19292if test -n "$XKBFILE_LIBS"; then 19293 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS" 19294 elif test -n "$PKG_CONFIG"; then 19295 if test -n "$PKG_CONFIG" && \ 19296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 19297 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 19298 ac_status=$? 19299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19300 test $ac_status = 0; }; then 19301 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null` 19302 test "x$?" != "x0" && pkg_failed=yes 19303else 19304 pkg_failed=yes 19305fi 19306 else 19307 pkg_failed=untried 19308fi 19309 19310 19311 19312if test $pkg_failed = yes; then 19313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19314printf "%s\n" "no" >&6; } 19315 19316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19317 _pkg_short_errors_supported=yes 19318else 19319 _pkg_short_errors_supported=no 19320fi 19321 if test $_pkg_short_errors_supported = yes; then 19322 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1` 19323 else 19324 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1` 19325 fi 19326 # Put the nasty error message in config.log where it belongs 19327 echo "$XKBFILE_PKG_ERRORS" >&5 19328 19329 as_fn_error $? "Package requirements (x11 kbproto) were not met: 19330 19331$XKBFILE_PKG_ERRORS 19332 19333Consider adjusting the PKG_CONFIG_PATH environment variable if you 19334installed software in a non-standard prefix. 19335 19336Alternatively, you may set the environment variables XKBFILE_CFLAGS 19337and XKBFILE_LIBS to avoid the need to call pkg-config. 19338See the pkg-config man page for more details." "$LINENO" 5 19339elif test $pkg_failed = untried; then 19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19341printf "%s\n" "no" >&6; } 19342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19343printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19344as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19345is in your PATH or set the PKG_CONFIG environment variable to the full 19346path to pkg-config. 19347 19348Alternatively, you may set the environment variables XKBFILE_CFLAGS 19349and XKBFILE_LIBS to avoid the need to call pkg-config. 19350See the pkg-config man page for more details. 19351 19352To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19353See \`config.log' for more details" "$LINENO" 5; } 19354else 19355 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS 19356 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS 19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19358printf "%s\n" "yes" >&6; } 19359 19360fi 19361 19362# Checks for typedefs, structures, and compiler characteristics. 19363# Check whether --enable-largefile was given. 19364if test ${enable_largefile+y} 19365then : 19366 enableval=$enable_largefile; 19367fi 19368 19369if test "$enable_largefile" != no; then 19370 19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19372printf %s "checking for special C compiler options needed for large files... " >&6; } 19373if test ${ac_cv_sys_largefile_CC+y} 19374then : 19375 printf %s "(cached) " >&6 19376else $as_nop 19377 ac_cv_sys_largefile_CC=no 19378 if test "$GCC" != yes; then 19379 ac_save_CC=$CC 19380 while :; do 19381 # IRIX 6.2 and later do not support large files by default, 19382 # so use the C compiler's -n32 option if that helps. 19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19384/* end confdefs.h. */ 19385#include <sys/types.h> 19386 /* Check that off_t can represent 2**63 - 1 correctly. 19387 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19388 since some C++ compilers masquerading as C compilers 19389 incorrectly reject 9223372036854775807. */ 19390#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19392 && LARGE_OFF_T % 2147483647 == 1) 19393 ? 1 : -1]; 19394int 19395main (void) 19396{ 19397 19398 ; 19399 return 0; 19400} 19401_ACEOF 19402 if ac_fn_c_try_compile "$LINENO" 19403then : 19404 break 19405fi 19406rm -f core conftest.err conftest.$ac_objext conftest.beam 19407 CC="$CC -n32" 19408 if ac_fn_c_try_compile "$LINENO" 19409then : 19410 ac_cv_sys_largefile_CC=' -n32'; break 19411fi 19412rm -f core conftest.err conftest.$ac_objext conftest.beam 19413 break 19414 done 19415 CC=$ac_save_CC 19416 rm -f conftest.$ac_ext 19417 fi 19418fi 19419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19420printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 19421 if test "$ac_cv_sys_largefile_CC" != no; then 19422 CC=$CC$ac_cv_sys_largefile_CC 19423 fi 19424 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19426printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19427if test ${ac_cv_sys_file_offset_bits+y} 19428then : 19429 printf %s "(cached) " >&6 19430else $as_nop 19431 while :; do 19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19433/* end confdefs.h. */ 19434#include <sys/types.h> 19435 /* Check that off_t can represent 2**63 - 1 correctly. 19436 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19437 since some C++ compilers masquerading as C compilers 19438 incorrectly reject 9223372036854775807. */ 19439#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19441 && LARGE_OFF_T % 2147483647 == 1) 19442 ? 1 : -1]; 19443int 19444main (void) 19445{ 19446 19447 ; 19448 return 0; 19449} 19450_ACEOF 19451if ac_fn_c_try_compile "$LINENO" 19452then : 19453 ac_cv_sys_file_offset_bits=no; break 19454fi 19455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19457/* end confdefs.h. */ 19458#define _FILE_OFFSET_BITS 64 19459#include <sys/types.h> 19460 /* Check that off_t can represent 2**63 - 1 correctly. 19461 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19462 since some C++ compilers masquerading as C compilers 19463 incorrectly reject 9223372036854775807. */ 19464#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19466 && LARGE_OFF_T % 2147483647 == 1) 19467 ? 1 : -1]; 19468int 19469main (void) 19470{ 19471 19472 ; 19473 return 0; 19474} 19475_ACEOF 19476if ac_fn_c_try_compile "$LINENO" 19477then : 19478 ac_cv_sys_file_offset_bits=64; break 19479fi 19480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19481 ac_cv_sys_file_offset_bits=unknown 19482 break 19483done 19484fi 19485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19486printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 19487case $ac_cv_sys_file_offset_bits in #( 19488 no | unknown) ;; 19489 *) 19490printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 19491;; 19492esac 19493rm -rf conftest* 19494 if test $ac_cv_sys_file_offset_bits = unknown; then 19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19496printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 19497if test ${ac_cv_sys_large_files+y} 19498then : 19499 printf %s "(cached) " >&6 19500else $as_nop 19501 while :; do 19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19503/* end confdefs.h. */ 19504#include <sys/types.h> 19505 /* Check that off_t can represent 2**63 - 1 correctly. 19506 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19507 since some C++ compilers masquerading as C compilers 19508 incorrectly reject 9223372036854775807. */ 19509#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19511 && LARGE_OFF_T % 2147483647 == 1) 19512 ? 1 : -1]; 19513int 19514main (void) 19515{ 19516 19517 ; 19518 return 0; 19519} 19520_ACEOF 19521if ac_fn_c_try_compile "$LINENO" 19522then : 19523 ac_cv_sys_large_files=no; break 19524fi 19525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19527/* end confdefs.h. */ 19528#define _LARGE_FILES 1 19529#include <sys/types.h> 19530 /* Check that off_t can represent 2**63 - 1 correctly. 19531 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19532 since some C++ compilers masquerading as C compilers 19533 incorrectly reject 9223372036854775807. */ 19534#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19536 && LARGE_OFF_T % 2147483647 == 1) 19537 ? 1 : -1]; 19538int 19539main (void) 19540{ 19541 19542 ; 19543 return 0; 19544} 19545_ACEOF 19546if ac_fn_c_try_compile "$LINENO" 19547then : 19548 ac_cv_sys_large_files=1; break 19549fi 19550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19551 ac_cv_sys_large_files=unknown 19552 break 19553done 19554fi 19555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 19556printf "%s\n" "$ac_cv_sys_large_files" >&6; } 19557case $ac_cv_sys_large_files in #( 19558 no | unknown) ;; 19559 *) 19560printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 19561;; 19562esac 19563rm -rf conftest* 19564 fi 19565fi 19566 19567 19568ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc" 19569 19570cat >confcache <<\_ACEOF 19571# This file is a shell script that caches the results of configure 19572# tests run on this system so they can be shared between configure 19573# scripts and configure runs, see configure's option --config-cache. 19574# It is not useful on other systems. If it contains results you don't 19575# want to keep, you may remove or edit it. 19576# 19577# config.status only pays attention to the cache file if you give it 19578# the --recheck option to rerun configure. 19579# 19580# `ac_cv_env_foo' variables (set or unset) will be overridden when 19581# loading this file, other *unset* `ac_cv_foo' will be assigned the 19582# following values. 19583 19584_ACEOF 19585 19586# The following way of writing the cache mishandles newlines in values, 19587# but we know of no workaround that is simple, portable, and efficient. 19588# So, we kill variables containing newlines. 19589# Ultrix sh set writes to stderr and can't be redirected directly, 19590# and sets the high bit in the cache file unless we assign to the vars. 19591( 19592 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19593 eval ac_val=\$$ac_var 19594 case $ac_val in #( 19595 *${as_nl}*) 19596 case $ac_var in #( 19597 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19598printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19599 esac 19600 case $ac_var in #( 19601 _ | IFS | as_nl) ;; #( 19602 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19603 *) { eval $ac_var=; unset $ac_var;} ;; 19604 esac ;; 19605 esac 19606 done 19607 19608 (set) 2>&1 | 19609 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19610 *${as_nl}ac_space=\ *) 19611 # `set' does not quote correctly, so add quotes: double-quote 19612 # substitution turns \\\\ into \\, and sed turns \\ into \. 19613 sed -n \ 19614 "s/'/'\\\\''/g; 19615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19616 ;; #( 19617 *) 19618 # `set' quotes correctly as required by POSIX, so do not add quotes. 19619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19620 ;; 19621 esac | 19622 sort 19623) | 19624 sed ' 19625 /^ac_cv_env_/b end 19626 t clear 19627 :clear 19628 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19629 t end 19630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19631 :end' >>confcache 19632if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19633 if test -w "$cache_file"; then 19634 if test "x$cache_file" != "x/dev/null"; then 19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19636printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19637 if test ! -f "$cache_file" || test -h "$cache_file"; then 19638 cat confcache >"$cache_file" 19639 else 19640 case $cache_file in #( 19641 */* | ?:*) 19642 mv -f confcache "$cache_file"$$ && 19643 mv -f "$cache_file"$$ "$cache_file" ;; #( 19644 *) 19645 mv -f confcache "$cache_file" ;; 19646 esac 19647 fi 19648 fi 19649 else 19650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19651printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19652 fi 19653fi 19654rm -f confcache 19655 19656test "x$prefix" = xNONE && prefix=$ac_default_prefix 19657# Let make expand exec_prefix. 19658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19659 19660DEFS=-DHAVE_CONFIG_H 19661 19662ac_libobjs= 19663ac_ltlibobjs= 19664U= 19665for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19666 # 1. Remove the extension, and $U if already installed. 19667 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19668 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19669 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19670 # will be set to the directory where LIBOBJS objects are built. 19671 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19672 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19673done 19674LIBOBJS=$ac_libobjs 19675 19676LTLIBOBJS=$ac_ltlibobjs 19677 19678 19679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19680printf %s "checking that generated files are newer than configure... " >&6; } 19681 if test -n "$am_sleep_pid"; then 19682 # Hide warnings about reused PIDs. 19683 wait $am_sleep_pid 2>/dev/null 19684 fi 19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19686printf "%s\n" "done" >&6; } 19687 if test -n "$EXEEXT"; then 19688 am__EXEEXT_TRUE= 19689 am__EXEEXT_FALSE='#' 19690else 19691 am__EXEEXT_TRUE='#' 19692 am__EXEEXT_FALSE= 19693fi 19694 19695if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19696 as_fn_error $? "conditional \"AMDEP\" was never defined. 19697Usually this means the macro was only invoked conditionally." "$LINENO" 5 19698fi 19699if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19700 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19701Usually this means the macro was only invoked conditionally." "$LINENO" 5 19702fi 19703 19704: "${CONFIG_STATUS=./config.status}" 19705ac_write_fail=0 19706ac_clean_files_save=$ac_clean_files 19707ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19709printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19710as_write_fail=0 19711cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19712#! $SHELL 19713# Generated by $as_me. 19714# Run this file to recreate the current configuration. 19715# Compiler output produced by configure, useful for debugging 19716# configure, is in config.log if it exists. 19717 19718debug=false 19719ac_cs_recheck=false 19720ac_cs_silent=false 19721 19722SHELL=\${CONFIG_SHELL-$SHELL} 19723export SHELL 19724_ASEOF 19725cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19726## -------------------- ## 19727## M4sh Initialization. ## 19728## -------------------- ## 19729 19730# Be more Bourne compatible 19731DUALCASE=1; export DUALCASE # for MKS sh 19732as_nop=: 19733if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19734then : 19735 emulate sh 19736 NULLCMD=: 19737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19738 # is contrary to our usage. Disable this feature. 19739 alias -g '${1+"$@"}'='"$@"' 19740 setopt NO_GLOB_SUBST 19741else $as_nop 19742 case `(set -o) 2>/dev/null` in #( 19743 *posix*) : 19744 set -o posix ;; #( 19745 *) : 19746 ;; 19747esac 19748fi 19749 19750 19751 19752# Reset variables that may have inherited troublesome values from 19753# the environment. 19754 19755# IFS needs to be set, to space, tab, and newline, in precisely that order. 19756# (If _AS_PATH_WALK were called with IFS unset, it would have the 19757# side effect of setting IFS to empty, thus disabling word splitting.) 19758# Quoting is to prevent editors from complaining about space-tab. 19759as_nl=' 19760' 19761export as_nl 19762IFS=" "" $as_nl" 19763 19764PS1='$ ' 19765PS2='> ' 19766PS4='+ ' 19767 19768# Ensure predictable behavior from utilities with locale-dependent output. 19769LC_ALL=C 19770export LC_ALL 19771LANGUAGE=C 19772export LANGUAGE 19773 19774# We cannot yet rely on "unset" to work, but we need these variables 19775# to be unset--not just set to an empty or harmless value--now, to 19776# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19777# also avoids known problems related to "unset" and subshell syntax 19778# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19779for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19780do eval test \${$as_var+y} \ 19781 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19782done 19783 19784# Ensure that fds 0, 1, and 2 are open. 19785if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19786if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19787if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19788 19789# The user is always right. 19790if ${PATH_SEPARATOR+false} :; then 19791 PATH_SEPARATOR=: 19792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19794 PATH_SEPARATOR=';' 19795 } 19796fi 19797 19798 19799# Find who we are. Look in the path if we contain no directory separator. 19800as_myself= 19801case $0 in #(( 19802 *[\\/]* ) as_myself=$0 ;; 19803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19804for as_dir in $PATH 19805do 19806 IFS=$as_save_IFS 19807 case $as_dir in #((( 19808 '') as_dir=./ ;; 19809 */) ;; 19810 *) as_dir=$as_dir/ ;; 19811 esac 19812 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19813 done 19814IFS=$as_save_IFS 19815 19816 ;; 19817esac 19818# We did not find ourselves, most probably we were run as `sh COMMAND' 19819# in which case we are not to be found in the path. 19820if test "x$as_myself" = x; then 19821 as_myself=$0 19822fi 19823if test ! -f "$as_myself"; then 19824 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19825 exit 1 19826fi 19827 19828 19829 19830# as_fn_error STATUS ERROR [LINENO LOG_FD] 19831# ---------------------------------------- 19832# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19833# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19834# script with STATUS, using 1 if that was 0. 19835as_fn_error () 19836{ 19837 as_status=$1; test $as_status -eq 0 && as_status=1 19838 if test "$4"; then 19839 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19841 fi 19842 printf "%s\n" "$as_me: error: $2" >&2 19843 as_fn_exit $as_status 19844} # as_fn_error 19845 19846 19847 19848# as_fn_set_status STATUS 19849# ----------------------- 19850# Set $? to STATUS, without forking. 19851as_fn_set_status () 19852{ 19853 return $1 19854} # as_fn_set_status 19855 19856# as_fn_exit STATUS 19857# ----------------- 19858# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19859as_fn_exit () 19860{ 19861 set +e 19862 as_fn_set_status $1 19863 exit $1 19864} # as_fn_exit 19865 19866# as_fn_unset VAR 19867# --------------- 19868# Portably unset VAR. 19869as_fn_unset () 19870{ 19871 { eval $1=; unset $1;} 19872} 19873as_unset=as_fn_unset 19874 19875# as_fn_append VAR VALUE 19876# ---------------------- 19877# Append the text in VALUE to the end of the definition contained in VAR. Take 19878# advantage of any shell optimizations that allow amortized linear growth over 19879# repeated appends, instead of the typical quadratic growth present in naive 19880# implementations. 19881if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19882then : 19883 eval 'as_fn_append () 19884 { 19885 eval $1+=\$2 19886 }' 19887else $as_nop 19888 as_fn_append () 19889 { 19890 eval $1=\$$1\$2 19891 } 19892fi # as_fn_append 19893 19894# as_fn_arith ARG... 19895# ------------------ 19896# Perform arithmetic evaluation on the ARGs, and store the result in the 19897# global $as_val. Take advantage of shells that can avoid forks. The arguments 19898# must be portable across $(()) and expr. 19899if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19900then : 19901 eval 'as_fn_arith () 19902 { 19903 as_val=$(( $* )) 19904 }' 19905else $as_nop 19906 as_fn_arith () 19907 { 19908 as_val=`expr "$@" || test $? -eq 1` 19909 } 19910fi # as_fn_arith 19911 19912 19913if expr a : '\(a\)' >/dev/null 2>&1 && 19914 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19915 as_expr=expr 19916else 19917 as_expr=false 19918fi 19919 19920if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19921 as_basename=basename 19922else 19923 as_basename=false 19924fi 19925 19926if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19927 as_dirname=dirname 19928else 19929 as_dirname=false 19930fi 19931 19932as_me=`$as_basename -- "$0" || 19933$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19934 X"$0" : 'X\(//\)$' \| \ 19935 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19936printf "%s\n" X/"$0" | 19937 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19938 s//\1/ 19939 q 19940 } 19941 /^X\/\(\/\/\)$/{ 19942 s//\1/ 19943 q 19944 } 19945 /^X\/\(\/\).*/{ 19946 s//\1/ 19947 q 19948 } 19949 s/.*/./; q'` 19950 19951# Avoid depending upon Character Ranges. 19952as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19953as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19954as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19955as_cr_digits='0123456789' 19956as_cr_alnum=$as_cr_Letters$as_cr_digits 19957 19958 19959# Determine whether it's possible to make 'echo' print without a newline. 19960# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19961# for compatibility with existing Makefiles. 19962ECHO_C= ECHO_N= ECHO_T= 19963case `echo -n x` in #((((( 19964-n*) 19965 case `echo 'xy\c'` in 19966 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19967 xy) ECHO_C='\c';; 19968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19969 ECHO_T=' ';; 19970 esac;; 19971*) 19972 ECHO_N='-n';; 19973esac 19974 19975# For backward compatibility with old third-party macros, we provide 19976# the shell variables $as_echo and $as_echo_n. New code should use 19977# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19978as_echo='printf %s\n' 19979as_echo_n='printf %s' 19980 19981rm -f conf$$ conf$$.exe conf$$.file 19982if test -d conf$$.dir; then 19983 rm -f conf$$.dir/conf$$.file 19984else 19985 rm -f conf$$.dir 19986 mkdir conf$$.dir 2>/dev/null 19987fi 19988if (echo >conf$$.file) 2>/dev/null; then 19989 if ln -s conf$$.file conf$$ 2>/dev/null; then 19990 as_ln_s='ln -s' 19991 # ... but there are two gotchas: 19992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19994 # In both cases, we have to default to `cp -pR'. 19995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19996 as_ln_s='cp -pR' 19997 elif ln conf$$.file conf$$ 2>/dev/null; then 19998 as_ln_s=ln 19999 else 20000 as_ln_s='cp -pR' 20001 fi 20002else 20003 as_ln_s='cp -pR' 20004fi 20005rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20006rmdir conf$$.dir 2>/dev/null 20007 20008 20009# as_fn_mkdir_p 20010# ------------- 20011# Create "$as_dir" as a directory, including parents if necessary. 20012as_fn_mkdir_p () 20013{ 20014 20015 case $as_dir in #( 20016 -*) as_dir=./$as_dir;; 20017 esac 20018 test -d "$as_dir" || eval $as_mkdir_p || { 20019 as_dirs= 20020 while :; do 20021 case $as_dir in #( 20022 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20023 *) as_qdir=$as_dir;; 20024 esac 20025 as_dirs="'$as_qdir' $as_dirs" 20026 as_dir=`$as_dirname -- "$as_dir" || 20027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20028 X"$as_dir" : 'X\(//\)[^/]' \| \ 20029 X"$as_dir" : 'X\(//\)$' \| \ 20030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20031printf "%s\n" X"$as_dir" | 20032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20033 s//\1/ 20034 q 20035 } 20036 /^X\(\/\/\)[^/].*/{ 20037 s//\1/ 20038 q 20039 } 20040 /^X\(\/\/\)$/{ 20041 s//\1/ 20042 q 20043 } 20044 /^X\(\/\).*/{ 20045 s//\1/ 20046 q 20047 } 20048 s/.*/./; q'` 20049 test -d "$as_dir" && break 20050 done 20051 test -z "$as_dirs" || eval "mkdir $as_dirs" 20052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20053 20054 20055} # as_fn_mkdir_p 20056if mkdir -p . 2>/dev/null; then 20057 as_mkdir_p='mkdir -p "$as_dir"' 20058else 20059 test -d ./-p && rmdir ./-p 20060 as_mkdir_p=false 20061fi 20062 20063 20064# as_fn_executable_p FILE 20065# ----------------------- 20066# Test if FILE is an executable regular file. 20067as_fn_executable_p () 20068{ 20069 test -f "$1" && test -x "$1" 20070} # as_fn_executable_p 20071as_test_x='test -x' 20072as_executable_p=as_fn_executable_p 20073 20074# Sed expression to map a string onto a valid CPP name. 20075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20076 20077# Sed expression to map a string onto a valid variable name. 20078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20079 20080 20081exec 6>&1 20082## ----------------------------------- ## 20083## Main body of $CONFIG_STATUS script. ## 20084## ----------------------------------- ## 20085_ASEOF 20086test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20087 20088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20089# Save the log message, to keep $0 and so on meaningful, and to 20090# report actual input values of CONFIG_FILES etc. instead of their 20091# values after options handling. 20092ac_log=" 20093This file was extended by libxkbfile $as_me 1.1.2, which was 20094generated by GNU Autoconf 2.71. Invocation command line was 20095 20096 CONFIG_FILES = $CONFIG_FILES 20097 CONFIG_HEADERS = $CONFIG_HEADERS 20098 CONFIG_LINKS = $CONFIG_LINKS 20099 CONFIG_COMMANDS = $CONFIG_COMMANDS 20100 $ $0 $@ 20101 20102on `(hostname || uname -n) 2>/dev/null | sed 1q` 20103" 20104 20105_ACEOF 20106 20107case $ac_config_files in *" 20108"*) set x $ac_config_files; shift; ac_config_files=$*;; 20109esac 20110 20111case $ac_config_headers in *" 20112"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20113esac 20114 20115 20116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20117# Files that config.status was made for. 20118config_files="$ac_config_files" 20119config_headers="$ac_config_headers" 20120config_commands="$ac_config_commands" 20121 20122_ACEOF 20123 20124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20125ac_cs_usage="\ 20126\`$as_me' instantiates files and other configuration actions 20127from templates according to the current configuration. Unless the files 20128and actions are specified as TAGs, all are instantiated by default. 20129 20130Usage: $0 [OPTION]... [TAG]... 20131 20132 -h, --help print this help, then exit 20133 -V, --version print version number and configuration settings, then exit 20134 --config print configuration, then exit 20135 -q, --quiet, --silent 20136 do not print progress messages 20137 -d, --debug don't remove temporary files 20138 --recheck update $as_me by reconfiguring in the same conditions 20139 --file=FILE[:TEMPLATE] 20140 instantiate the configuration file FILE 20141 --header=FILE[:TEMPLATE] 20142 instantiate the configuration header FILE 20143 20144Configuration files: 20145$config_files 20146 20147Configuration headers: 20148$config_headers 20149 20150Configuration commands: 20151$config_commands 20152 20153Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>." 20154 20155_ACEOF 20156ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20157ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20159ac_cs_config='$ac_cs_config_escaped' 20160ac_cs_version="\\ 20161libxkbfile config.status 1.1.2 20162configured by $0, generated by GNU Autoconf 2.71, 20163 with options \\"\$ac_cs_config\\" 20164 20165Copyright (C) 2021 Free Software Foundation, Inc. 20166This config.status script is free software; the Free Software Foundation 20167gives unlimited permission to copy, distribute and modify it." 20168 20169ac_pwd='$ac_pwd' 20170srcdir='$srcdir' 20171INSTALL='$INSTALL' 20172MKDIR_P='$MKDIR_P' 20173AWK='$AWK' 20174test -n "\$AWK" || AWK=awk 20175_ACEOF 20176 20177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20178# The default lists apply if the user does not specify any file. 20179ac_need_defaults=: 20180while test $# != 0 20181do 20182 case $1 in 20183 --*=?*) 20184 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20186 ac_shift=: 20187 ;; 20188 --*=) 20189 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20190 ac_optarg= 20191 ac_shift=: 20192 ;; 20193 *) 20194 ac_option=$1 20195 ac_optarg=$2 20196 ac_shift=shift 20197 ;; 20198 esac 20199 20200 case $ac_option in 20201 # Handling of the options. 20202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20203 ac_cs_recheck=: ;; 20204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20205 printf "%s\n" "$ac_cs_version"; exit ;; 20206 --config | --confi | --conf | --con | --co | --c ) 20207 printf "%s\n" "$ac_cs_config"; exit ;; 20208 --debug | --debu | --deb | --de | --d | -d ) 20209 debug=: ;; 20210 --file | --fil | --fi | --f ) 20211 $ac_shift 20212 case $ac_optarg in 20213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20214 '') as_fn_error $? "missing file argument" ;; 20215 esac 20216 as_fn_append CONFIG_FILES " '$ac_optarg'" 20217 ac_need_defaults=false;; 20218 --header | --heade | --head | --hea ) 20219 $ac_shift 20220 case $ac_optarg in 20221 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20222 esac 20223 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20224 ac_need_defaults=false;; 20225 --he | --h) 20226 # Conflict between --help and --header 20227 as_fn_error $? "ambiguous option: \`$1' 20228Try \`$0 --help' for more information.";; 20229 --help | --hel | -h ) 20230 printf "%s\n" "$ac_cs_usage"; exit ;; 20231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20232 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20233 ac_cs_silent=: ;; 20234 20235 # This is an error. 20236 -*) as_fn_error $? "unrecognized option: \`$1' 20237Try \`$0 --help' for more information." ;; 20238 20239 *) as_fn_append ac_config_targets " $1" 20240 ac_need_defaults=false ;; 20241 20242 esac 20243 shift 20244done 20245 20246ac_configure_extra_args= 20247 20248if $ac_cs_silent; then 20249 exec 6>/dev/null 20250 ac_configure_extra_args="$ac_configure_extra_args --silent" 20251fi 20252 20253_ACEOF 20254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20255if \$ac_cs_recheck; then 20256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20257 shift 20258 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20259 CONFIG_SHELL='$SHELL' 20260 export CONFIG_SHELL 20261 exec "\$@" 20262fi 20263 20264_ACEOF 20265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20266exec 5>>config.log 20267{ 20268 echo 20269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20270## Running $as_me. ## 20271_ASBOX 20272 printf "%s\n" "$ac_log" 20273} >&5 20274 20275_ACEOF 20276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20277# 20278# INIT-COMMANDS 20279# 20280AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20281 20282 20283# The HP-UX ksh and POSIX shell print the target directory to stdout 20284# if CDPATH is set. 20285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20286 20287sed_quote_subst='$sed_quote_subst' 20288double_quote_subst='$double_quote_subst' 20289delay_variable_subst='$delay_variable_subst' 20290macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20291macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20292enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20293enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20294pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20295enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20296shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20297SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20298ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20299PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20300host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20301host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20302host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20303build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20304build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20305build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20306SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20307Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20308GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20309EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20310FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20311LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20312NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20313LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20314max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20315ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20316exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20317lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20318lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20319lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20320lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20321lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20322reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20323reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20324FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20325OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20326deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20327file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20328file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20329want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20330DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20331sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20332AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20333lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20334AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20335archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20336STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20337RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20338old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20339old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20340old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20341lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20342CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20343CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20344compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20345GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20346lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20347lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20348lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20349lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20350lt_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"`' 20351lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20352nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20353lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20354lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20355objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20356MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20357lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20358lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20359lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20360lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20361lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20362need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20363MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20364DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20365NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20366LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20367OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20368OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20369libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20370shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20371extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20372archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20373enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20374export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20375whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20376compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20377old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20378old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20379archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20380archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20381module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20382module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20383with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20384allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20385no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20386hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20387hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20388hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20389hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20390hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20391hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20392hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20393inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20394link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20395always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20396export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20397exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20398include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20399prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20400postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20401file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20402variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20403need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20404need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20405version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20406runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20407shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20408shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20409libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20410library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20411soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20412install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20413postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20414postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20415finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20416finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20417hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20418sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20419configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20420configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20421hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20422enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20423enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20424enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20425old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20426striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20427 20428LTCC='$LTCC' 20429LTCFLAGS='$LTCFLAGS' 20430compiler='$compiler_DEFAULT' 20431 20432# A function that is used when there is no print builtin or printf. 20433func_fallback_echo () 20434{ 20435 eval 'cat <<_LTECHO_EOF 20436\$1 20437_LTECHO_EOF' 20438} 20439 20440# Quote evaled strings. 20441for var in SHELL \ 20442ECHO \ 20443PATH_SEPARATOR \ 20444SED \ 20445GREP \ 20446EGREP \ 20447FGREP \ 20448LD \ 20449NM \ 20450LN_S \ 20451lt_SP2NL \ 20452lt_NL2SP \ 20453reload_flag \ 20454FILECMD \ 20455OBJDUMP \ 20456deplibs_check_method \ 20457file_magic_cmd \ 20458file_magic_glob \ 20459want_nocaseglob \ 20460DLLTOOL \ 20461sharedlib_from_linklib_cmd \ 20462AR \ 20463archiver_list_spec \ 20464STRIP \ 20465RANLIB \ 20466CC \ 20467CFLAGS \ 20468compiler \ 20469lt_cv_sys_global_symbol_pipe \ 20470lt_cv_sys_global_symbol_to_cdecl \ 20471lt_cv_sys_global_symbol_to_import \ 20472lt_cv_sys_global_symbol_to_c_name_address \ 20473lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20474lt_cv_nm_interface \ 20475nm_file_list_spec \ 20476lt_cv_truncate_bin \ 20477lt_prog_compiler_no_builtin_flag \ 20478lt_prog_compiler_pic \ 20479lt_prog_compiler_wl \ 20480lt_prog_compiler_static \ 20481lt_cv_prog_compiler_c_o \ 20482need_locks \ 20483MANIFEST_TOOL \ 20484DSYMUTIL \ 20485NMEDIT \ 20486LIPO \ 20487OTOOL \ 20488OTOOL64 \ 20489shrext_cmds \ 20490export_dynamic_flag_spec \ 20491whole_archive_flag_spec \ 20492compiler_needs_object \ 20493with_gnu_ld \ 20494allow_undefined_flag \ 20495no_undefined_flag \ 20496hardcode_libdir_flag_spec \ 20497hardcode_libdir_separator \ 20498exclude_expsyms \ 20499include_expsyms \ 20500file_list_spec \ 20501variables_saved_for_relink \ 20502libname_spec \ 20503library_names_spec \ 20504soname_spec \ 20505install_override_mode \ 20506finish_eval \ 20507old_striplib \ 20508striplib; do 20509 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20510 *[\\\\\\\`\\"\\\$]*) 20511 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20512 ;; 20513 *) 20514 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20515 ;; 20516 esac 20517done 20518 20519# Double-quote double-evaled strings. 20520for var in reload_cmds \ 20521old_postinstall_cmds \ 20522old_postuninstall_cmds \ 20523old_archive_cmds \ 20524extract_expsyms_cmds \ 20525old_archive_from_new_cmds \ 20526old_archive_from_expsyms_cmds \ 20527archive_cmds \ 20528archive_expsym_cmds \ 20529module_cmds \ 20530module_expsym_cmds \ 20531export_symbols_cmds \ 20532prelink_cmds \ 20533postlink_cmds \ 20534postinstall_cmds \ 20535postuninstall_cmds \ 20536finish_cmds \ 20537sys_lib_search_path_spec \ 20538configure_time_dlsearch_path \ 20539configure_time_lt_sys_library_path; do 20540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20541 *[\\\\\\\`\\"\\\$]*) 20542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20543 ;; 20544 *) 20545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20546 ;; 20547 esac 20548done 20549 20550ac_aux_dir='$ac_aux_dir' 20551 20552# See if we are running on zsh, and set the options that allow our 20553# commands through without removal of \ escapes INIT. 20554if test -n "\${ZSH_VERSION+set}"; then 20555 setopt NO_GLOB_SUBST 20556fi 20557 20558 20559 PACKAGE='$PACKAGE' 20560 VERSION='$VERSION' 20561 RM='$RM' 20562 ofile='$ofile' 20563 20564 20565 20566 20567_ACEOF 20568 20569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20570 20571# Handling of arguments. 20572for ac_config_target in $ac_config_targets 20573do 20574 case $ac_config_target in 20575 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20576 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20577 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20578 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20579 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20580 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;; 20581 20582 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20583 esac 20584done 20585 20586 20587# If the user did not use the arguments to specify the items to instantiate, 20588# then the envvar interface is used. Set only those that are not. 20589# We use the long form for the default assignment because of an extremely 20590# bizarre bug on SunOS 4.1.3. 20591if $ac_need_defaults; then 20592 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20593 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20594 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20595fi 20596 20597# Have a temporary directory for convenience. Make it in the build tree 20598# simply because there is no reason against having it here, and in addition, 20599# creating and moving files from /tmp can sometimes cause problems. 20600# Hook for its removal unless debugging. 20601# Note that there is a small window in which the directory will not be cleaned: 20602# after its creation but before its name has been assigned to `$tmp'. 20603$debug || 20604{ 20605 tmp= ac_tmp= 20606 trap 'exit_status=$? 20607 : "${ac_tmp:=$tmp}" 20608 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20609' 0 20610 trap 'as_fn_exit 1' 1 2 13 15 20611} 20612# Create a (secure) tmp directory for tmp files. 20613 20614{ 20615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20616 test -d "$tmp" 20617} || 20618{ 20619 tmp=./conf$$-$RANDOM 20620 (umask 077 && mkdir "$tmp") 20621} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20622ac_tmp=$tmp 20623 20624# Set up the scripts for CONFIG_FILES section. 20625# No need to generate them if there are no CONFIG_FILES. 20626# This happens for instance with `./config.status config.h'. 20627if test -n "$CONFIG_FILES"; then 20628 20629 20630ac_cr=`echo X | tr X '\015'` 20631# On cygwin, bash can eat \r inside `` if the user requested igncr. 20632# But we know of no other shell where ac_cr would be empty at this 20633# point, so we can use a bashism as a fallback. 20634if test "x$ac_cr" = x; then 20635 eval ac_cr=\$\'\\r\' 20636fi 20637ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20638if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20639 ac_cs_awk_cr='\\r' 20640else 20641 ac_cs_awk_cr=$ac_cr 20642fi 20643 20644echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20645_ACEOF 20646 20647 20648{ 20649 echo "cat >conf$$subs.awk <<_ACEOF" && 20650 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20651 echo "_ACEOF" 20652} >conf$$subs.sh || 20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20654ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20655ac_delim='%!_!# ' 20656for ac_last_try in false false false false false :; do 20657 . ./conf$$subs.sh || 20658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20659 20660 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20661 if test $ac_delim_n = $ac_delim_num; then 20662 break 20663 elif $ac_last_try; then 20664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20665 else 20666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20667 fi 20668done 20669rm -f conf$$subs.sh 20670 20671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20672cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20673_ACEOF 20674sed -n ' 20675h 20676s/^/S["/; s/!.*/"]=/ 20677p 20678g 20679s/^[^!]*!// 20680:repl 20681t repl 20682s/'"$ac_delim"'$// 20683t delim 20684:nl 20685h 20686s/\(.\{148\}\)..*/\1/ 20687t more1 20688s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20689p 20690n 20691b repl 20692:more1 20693s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20694p 20695g 20696s/.\{148\}// 20697t nl 20698:delim 20699h 20700s/\(.\{148\}\)..*/\1/ 20701t more2 20702s/["\\]/\\&/g; s/^/"/; s/$/"/ 20703p 20704b 20705:more2 20706s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20707p 20708g 20709s/.\{148\}// 20710t delim 20711' <conf$$subs.awk | sed ' 20712/^[^""]/{ 20713 N 20714 s/\n// 20715} 20716' >>$CONFIG_STATUS || ac_write_fail=1 20717rm -f conf$$subs.awk 20718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20719_ACAWK 20720cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20721 for (key in S) S_is_set[key] = 1 20722 FS = "" 20723 20724} 20725{ 20726 line = $ 0 20727 nfields = split(line, field, "@") 20728 substed = 0 20729 len = length(field[1]) 20730 for (i = 2; i < nfields; i++) { 20731 key = field[i] 20732 keylen = length(key) 20733 if (S_is_set[key]) { 20734 value = S[key] 20735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20736 len += length(value) + length(field[++i]) 20737 substed = 1 20738 } else 20739 len += 1 + keylen 20740 } 20741 20742 print line 20743} 20744 20745_ACAWK 20746_ACEOF 20747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20748if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20749 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20750else 20751 cat 20752fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20753 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20754_ACEOF 20755 20756# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20757# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20758# trailing colons and then remove the whole line if VPATH becomes empty 20759# (actually we leave an empty line to preserve line numbers). 20760if test "x$srcdir" = x.; then 20761 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20762h 20763s/// 20764s/^/:/ 20765s/[ ]*$/:/ 20766s/:\$(srcdir):/:/g 20767s/:\${srcdir}:/:/g 20768s/:@srcdir@:/:/g 20769s/^:*// 20770s/:*$// 20771x 20772s/\(=[ ]*\).*/\1/ 20773G 20774s/\n// 20775s/^[^=]*=[ ]*$// 20776}' 20777fi 20778 20779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20780fi # test -n "$CONFIG_FILES" 20781 20782# Set up the scripts for CONFIG_HEADERS section. 20783# No need to generate them if there are no CONFIG_HEADERS. 20784# This happens for instance with `./config.status Makefile'. 20785if test -n "$CONFIG_HEADERS"; then 20786cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20787BEGIN { 20788_ACEOF 20789 20790# Transform confdefs.h into an awk script `defines.awk', embedded as 20791# here-document in config.status, that substitutes the proper values into 20792# config.h.in to produce config.h. 20793 20794# Create a delimiter string that does not exist in confdefs.h, to ease 20795# handling of long lines. 20796ac_delim='%!_!# ' 20797for ac_last_try in false false :; do 20798 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20799 if test -z "$ac_tt"; then 20800 break 20801 elif $ac_last_try; then 20802 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20803 else 20804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20805 fi 20806done 20807 20808# For the awk script, D is an array of macro values keyed by name, 20809# likewise P contains macro parameters if any. Preserve backslash 20810# newline sequences. 20811 20812ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20813sed -n ' 20814s/.\{148\}/&'"$ac_delim"'/g 20815t rset 20816:rset 20817s/^[ ]*#[ ]*define[ ][ ]*/ / 20818t def 20819d 20820:def 20821s/\\$// 20822t bsnl 20823s/["\\]/\\&/g 20824s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20825D["\1"]=" \3"/p 20826s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20827d 20828:bsnl 20829s/["\\]/\\&/g 20830s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20831D["\1"]=" \3\\\\\\n"\\/p 20832t cont 20833s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20834t cont 20835d 20836:cont 20837n 20838s/.\{148\}/&'"$ac_delim"'/g 20839t clear 20840:clear 20841s/\\$// 20842t bsnlc 20843s/["\\]/\\&/g; s/^/"/; s/$/"/p 20844d 20845:bsnlc 20846s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20847b cont 20848' <confdefs.h | sed ' 20849s/'"$ac_delim"'/"\\\ 20850"/g' >>$CONFIG_STATUS || ac_write_fail=1 20851 20852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20853 for (key in D) D_is_set[key] = 1 20854 FS = "" 20855} 20856/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20857 line = \$ 0 20858 split(line, arg, " ") 20859 if (arg[1] == "#") { 20860 defundef = arg[2] 20861 mac1 = arg[3] 20862 } else { 20863 defundef = substr(arg[1], 2) 20864 mac1 = arg[2] 20865 } 20866 split(mac1, mac2, "(") #) 20867 macro = mac2[1] 20868 prefix = substr(line, 1, index(line, defundef) - 1) 20869 if (D_is_set[macro]) { 20870 # Preserve the white space surrounding the "#". 20871 print prefix "define", macro P[macro] D[macro] 20872 next 20873 } else { 20874 # Replace #undef with comments. This is necessary, for example, 20875 # in the case of _POSIX_SOURCE, which is predefined and required 20876 # on some systems where configure will not decide to define it. 20877 if (defundef == "undef") { 20878 print "/*", prefix defundef, macro, "*/" 20879 next 20880 } 20881 } 20882} 20883{ print } 20884_ACAWK 20885_ACEOF 20886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20887 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20888fi # test -n "$CONFIG_HEADERS" 20889 20890 20891eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20892shift 20893for ac_tag 20894do 20895 case $ac_tag in 20896 :[FHLC]) ac_mode=$ac_tag; continue;; 20897 esac 20898 case $ac_mode$ac_tag in 20899 :[FHL]*:*);; 20900 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20901 :[FH]-) ac_tag=-:-;; 20902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20903 esac 20904 ac_save_IFS=$IFS 20905 IFS=: 20906 set x $ac_tag 20907 IFS=$ac_save_IFS 20908 shift 20909 ac_file=$1 20910 shift 20911 20912 case $ac_mode in 20913 :L) ac_source=$1;; 20914 :[FH]) 20915 ac_file_inputs= 20916 for ac_f 20917 do 20918 case $ac_f in 20919 -) ac_f="$ac_tmp/stdin";; 20920 *) # Look for the file first in the build tree, then in the source tree 20921 # (if the path is not absolute). The absolute path cannot be DOS-style, 20922 # because $ac_f cannot contain `:'. 20923 test -f "$ac_f" || 20924 case $ac_f in 20925 [\\/$]*) false;; 20926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20927 esac || 20928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20929 esac 20930 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20931 as_fn_append ac_file_inputs " '$ac_f'" 20932 done 20933 20934 # Let's still pretend it is `configure' which instantiates (i.e., don't 20935 # use $as_me), people would be surprised to read: 20936 # /* config.h. Generated by config.status. */ 20937 configure_input='Generated from '` 20938 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20939 `' by configure.' 20940 if test x"$ac_file" != x-; then 20941 configure_input="$ac_file. $configure_input" 20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20943printf "%s\n" "$as_me: creating $ac_file" >&6;} 20944 fi 20945 # Neutralize special characters interpreted by sed in replacement strings. 20946 case $configure_input in #( 20947 *\&* | *\|* | *\\* ) 20948 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20949 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20950 *) ac_sed_conf_input=$configure_input;; 20951 esac 20952 20953 case $ac_tag in 20954 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20956 esac 20957 ;; 20958 esac 20959 20960 ac_dir=`$as_dirname -- "$ac_file" || 20961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20962 X"$ac_file" : 'X\(//\)[^/]' \| \ 20963 X"$ac_file" : 'X\(//\)$' \| \ 20964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20965printf "%s\n" X"$ac_file" | 20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20967 s//\1/ 20968 q 20969 } 20970 /^X\(\/\/\)[^/].*/{ 20971 s//\1/ 20972 q 20973 } 20974 /^X\(\/\/\)$/{ 20975 s//\1/ 20976 q 20977 } 20978 /^X\(\/\).*/{ 20979 s//\1/ 20980 q 20981 } 20982 s/.*/./; q'` 20983 as_dir="$ac_dir"; as_fn_mkdir_p 20984 ac_builddir=. 20985 20986case "$ac_dir" in 20987.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20988*) 20989 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20990 # A ".." for each directory in $ac_dir_suffix. 20991 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20992 case $ac_top_builddir_sub in 20993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20995 esac ;; 20996esac 20997ac_abs_top_builddir=$ac_pwd 20998ac_abs_builddir=$ac_pwd$ac_dir_suffix 20999# for backward compatibility: 21000ac_top_builddir=$ac_top_build_prefix 21001 21002case $srcdir in 21003 .) # We are building in place. 21004 ac_srcdir=. 21005 ac_top_srcdir=$ac_top_builddir_sub 21006 ac_abs_top_srcdir=$ac_pwd ;; 21007 [\\/]* | ?:[\\/]* ) # Absolute name. 21008 ac_srcdir=$srcdir$ac_dir_suffix; 21009 ac_top_srcdir=$srcdir 21010 ac_abs_top_srcdir=$srcdir ;; 21011 *) # Relative name. 21012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21013 ac_top_srcdir=$ac_top_build_prefix$srcdir 21014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21015esac 21016ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21017 21018 21019 case $ac_mode in 21020 :F) 21021 # 21022 # CONFIG_FILE 21023 # 21024 21025 case $INSTALL in 21026 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21027 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21028 esac 21029 ac_MKDIR_P=$MKDIR_P 21030 case $MKDIR_P in 21031 [\\/$]* | ?:[\\/]* ) ;; 21032 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21033 esac 21034_ACEOF 21035 21036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21037# If the template does not know about datarootdir, expand it. 21038# FIXME: This hack should be removed a few years after 2.60. 21039ac_datarootdir_hack=; ac_datarootdir_seen= 21040ac_sed_dataroot=' 21041/datarootdir/ { 21042 p 21043 q 21044} 21045/@datadir@/p 21046/@docdir@/p 21047/@infodir@/p 21048/@localedir@/p 21049/@mandir@/p' 21050case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21051*datarootdir*) ac_datarootdir_seen=yes;; 21052*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21054printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21055_ACEOF 21056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21057 ac_datarootdir_hack=' 21058 s&@datadir@&$datadir&g 21059 s&@docdir@&$docdir&g 21060 s&@infodir@&$infodir&g 21061 s&@localedir@&$localedir&g 21062 s&@mandir@&$mandir&g 21063 s&\\\${datarootdir}&$datarootdir&g' ;; 21064esac 21065_ACEOF 21066 21067# Neutralize VPATH when `$srcdir' = `.'. 21068# Shell code in configure.ac might set extrasub. 21069# FIXME: do we really want to maintain this feature? 21070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21071ac_sed_extra="$ac_vpsub 21072$extrasub 21073_ACEOF 21074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21075:t 21076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21077s|@configure_input@|$ac_sed_conf_input|;t t 21078s&@top_builddir@&$ac_top_builddir_sub&;t t 21079s&@top_build_prefix@&$ac_top_build_prefix&;t t 21080s&@srcdir@&$ac_srcdir&;t t 21081s&@abs_srcdir@&$ac_abs_srcdir&;t t 21082s&@top_srcdir@&$ac_top_srcdir&;t t 21083s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21084s&@builddir@&$ac_builddir&;t t 21085s&@abs_builddir@&$ac_abs_builddir&;t t 21086s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21087s&@INSTALL@&$ac_INSTALL&;t t 21088s&@MKDIR_P@&$ac_MKDIR_P&;t t 21089$ac_datarootdir_hack 21090" 21091eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21092 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21093 21094test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21095 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21097 "$ac_tmp/out"`; test -z "$ac_out"; } && 21098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21099which seems to be undefined. Please make sure it is defined" >&5 21100printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21101which seems to be undefined. Please make sure it is defined" >&2;} 21102 21103 rm -f "$ac_tmp/stdin" 21104 case $ac_file in 21105 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21106 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21107 esac \ 21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21109 ;; 21110 :H) 21111 # 21112 # CONFIG_HEADER 21113 # 21114 if test x"$ac_file" != x-; then 21115 { 21116 printf "%s\n" "/* $configure_input */" >&1 \ 21117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21118 } >"$ac_tmp/config.h" \ 21119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21120 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21122printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21123 else 21124 rm -f "$ac_file" 21125 mv "$ac_tmp/config.h" "$ac_file" \ 21126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21127 fi 21128 else 21129 printf "%s\n" "/* $configure_input */" >&1 \ 21130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21131 || as_fn_error $? "could not create -" "$LINENO" 5 21132 fi 21133# Compute "$ac_file"'s index in $config_headers. 21134_am_arg="$ac_file" 21135_am_stamp_count=1 21136for _am_header in $config_headers :; do 21137 case $_am_header in 21138 $_am_arg | $_am_arg:* ) 21139 break ;; 21140 * ) 21141 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21142 esac 21143done 21144echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21145$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21146 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21147 X"$_am_arg" : 'X\(//\)$' \| \ 21148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21149printf "%s\n" X"$_am_arg" | 21150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21151 s//\1/ 21152 q 21153 } 21154 /^X\(\/\/\)[^/].*/{ 21155 s//\1/ 21156 q 21157 } 21158 /^X\(\/\/\)$/{ 21159 s//\1/ 21160 q 21161 } 21162 /^X\(\/\).*/{ 21163 s//\1/ 21164 q 21165 } 21166 s/.*/./; q'`/stamp-h$_am_stamp_count 21167 ;; 21168 21169 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21170printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21171 ;; 21172 esac 21173 21174 21175 case $ac_file$ac_mode in 21176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21177 # Older Autoconf quotes --file arguments for eval, but not when files 21178 # are listed without --file. Let's play safe and only enable the eval 21179 # if we detect the quoting. 21180 # TODO: see whether this extra hack can be removed once we start 21181 # requiring Autoconf 2.70 or later. 21182 case $CONFIG_FILES in #( 21183 *\'*) : 21184 eval set x "$CONFIG_FILES" ;; #( 21185 *) : 21186 set x $CONFIG_FILES ;; #( 21187 *) : 21188 ;; 21189esac 21190 shift 21191 # Used to flag and report bootstrapping failures. 21192 am_rc=0 21193 for am_mf 21194 do 21195 # Strip MF so we end up with the name of the file. 21196 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21197 # Check whether this is an Automake generated Makefile which includes 21198 # dependency-tracking related rules and includes. 21199 # Grep'ing the whole file directly is not great: AIX grep has a line 21200 # limit of 2048, but all sed's we know have understand at least 4000. 21201 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21202 || continue 21203 am_dirpart=`$as_dirname -- "$am_mf" || 21204$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21205 X"$am_mf" : 'X\(//\)[^/]' \| \ 21206 X"$am_mf" : 'X\(//\)$' \| \ 21207 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21208printf "%s\n" X"$am_mf" | 21209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21210 s//\1/ 21211 q 21212 } 21213 /^X\(\/\/\)[^/].*/{ 21214 s//\1/ 21215 q 21216 } 21217 /^X\(\/\/\)$/{ 21218 s//\1/ 21219 q 21220 } 21221 /^X\(\/\).*/{ 21222 s//\1/ 21223 q 21224 } 21225 s/.*/./; q'` 21226 am_filepart=`$as_basename -- "$am_mf" || 21227$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21228 X"$am_mf" : 'X\(//\)$' \| \ 21229 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21230printf "%s\n" X/"$am_mf" | 21231 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21232 s//\1/ 21233 q 21234 } 21235 /^X\/\(\/\/\)$/{ 21236 s//\1/ 21237 q 21238 } 21239 /^X\/\(\/\).*/{ 21240 s//\1/ 21241 q 21242 } 21243 s/.*/./; q'` 21244 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21245 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21246 | $MAKE -f - am--depfiles" >&5 21247 (cd "$am_dirpart" \ 21248 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21249 | $MAKE -f - am--depfiles) >&5 2>&5 21250 ac_status=$? 21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21252 (exit $ac_status); } || am_rc=$? 21253 done 21254 if test $am_rc -ne 0; then 21255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21256printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21257as_fn_error $? "Something went wrong bootstrapping makefile fragments 21258 for automatic dependency tracking. If GNU make was not used, consider 21259 re-running the configure script with MAKE=\"gmake\" (or whatever is 21260 necessary). You can also try re-running configure with the 21261 '--disable-dependency-tracking' option to at least be able to build 21262 the package (albeit without support for automatic dependency tracking). 21263See \`config.log' for more details" "$LINENO" 5; } 21264 fi 21265 { am_dirpart=; unset am_dirpart;} 21266 { am_filepart=; unset am_filepart;} 21267 { am_mf=; unset am_mf;} 21268 { am_rc=; unset am_rc;} 21269 rm -f conftest-deps.mk 21270} 21271 ;; 21272 "libtool":C) 21273 21274 # See if we are running on zsh, and set the options that allow our 21275 # commands through without removal of \ escapes. 21276 if test -n "${ZSH_VERSION+set}"; then 21277 setopt NO_GLOB_SUBST 21278 fi 21279 21280 cfgfile=${ofile}T 21281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21282 $RM "$cfgfile" 21283 21284 cat <<_LT_EOF >> "$cfgfile" 21285#! $SHELL 21286# Generated automatically by $as_me ($PACKAGE) $VERSION 21287# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21288# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21289 21290# Provide generalized library-building support services. 21291# Written by Gordon Matzigkeit, 1996 21292 21293# Copyright (C) 2014 Free Software Foundation, Inc. 21294# This is free software; see the source for copying conditions. There is NO 21295# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21296 21297# GNU Libtool is free software; you can redistribute it and/or modify 21298# it under the terms of the GNU General Public License as published by 21299# the Free Software Foundation; either version 2 of of the License, or 21300# (at your option) any later version. 21301# 21302# As a special exception to the GNU General Public License, if you 21303# distribute this file as part of a program or library that is built 21304# using GNU Libtool, you may include this file under the same 21305# distribution terms that you use for the rest of that program. 21306# 21307# GNU Libtool is distributed in the hope that it will be useful, but 21308# WITHOUT ANY WARRANTY; without even the implied warranty of 21309# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21310# GNU General Public License for more details. 21311# 21312# You should have received a copy of the GNU General Public License 21313# along with this program. If not, see <http://www.gnu.org/licenses/>. 21314 21315 21316# The names of the tagged configurations supported by this script. 21317available_tags='' 21318 21319# Configured defaults for sys_lib_dlsearch_path munging. 21320: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21321 21322# ### BEGIN LIBTOOL CONFIG 21323 21324# Which release of libtool.m4 was used? 21325macro_version=$macro_version 21326macro_revision=$macro_revision 21327 21328# Whether or not to build shared libraries. 21329build_libtool_libs=$enable_shared 21330 21331# Whether or not to build static libraries. 21332build_old_libs=$enable_static 21333 21334# What type of objects to build. 21335pic_mode=$pic_mode 21336 21337# Whether or not to optimize for fast installation. 21338fast_install=$enable_fast_install 21339 21340# Shared archive member basename,for filename based shared library versioning on AIX. 21341shared_archive_member_spec=$shared_archive_member_spec 21342 21343# Shell to use when invoking shell scripts. 21344SHELL=$lt_SHELL 21345 21346# An echo program that protects backslashes. 21347ECHO=$lt_ECHO 21348 21349# The PATH separator for the build system. 21350PATH_SEPARATOR=$lt_PATH_SEPARATOR 21351 21352# The host system. 21353host_alias=$host_alias 21354host=$host 21355host_os=$host_os 21356 21357# The build system. 21358build_alias=$build_alias 21359build=$build 21360build_os=$build_os 21361 21362# A sed program that does not truncate output. 21363SED=$lt_SED 21364 21365# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21366Xsed="\$SED -e 1s/^X//" 21367 21368# A grep program that handles long lines. 21369GREP=$lt_GREP 21370 21371# An ERE matcher. 21372EGREP=$lt_EGREP 21373 21374# A literal string matcher. 21375FGREP=$lt_FGREP 21376 21377# A BSD- or MS-compatible name lister. 21378NM=$lt_NM 21379 21380# Whether we need soft or hard links. 21381LN_S=$lt_LN_S 21382 21383# What is the maximum length of a command? 21384max_cmd_len=$max_cmd_len 21385 21386# Object file suffix (normally "o"). 21387objext=$ac_objext 21388 21389# Executable file suffix (normally ""). 21390exeext=$exeext 21391 21392# whether the shell understands "unset". 21393lt_unset=$lt_unset 21394 21395# turn spaces into newlines. 21396SP2NL=$lt_lt_SP2NL 21397 21398# turn newlines into spaces. 21399NL2SP=$lt_lt_NL2SP 21400 21401# convert \$build file names to \$host format. 21402to_host_file_cmd=$lt_cv_to_host_file_cmd 21403 21404# convert \$build files to toolchain format. 21405to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21406 21407# A file(cmd) program that detects file types. 21408FILECMD=$lt_FILECMD 21409 21410# An object symbol dumper. 21411OBJDUMP=$lt_OBJDUMP 21412 21413# Method to check whether dependent libraries are shared objects. 21414deplibs_check_method=$lt_deplibs_check_method 21415 21416# Command to use when deplibs_check_method = "file_magic". 21417file_magic_cmd=$lt_file_magic_cmd 21418 21419# How to find potential files when deplibs_check_method = "file_magic". 21420file_magic_glob=$lt_file_magic_glob 21421 21422# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21423want_nocaseglob=$lt_want_nocaseglob 21424 21425# DLL creation program. 21426DLLTOOL=$lt_DLLTOOL 21427 21428# Command to associate shared and link libraries. 21429sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21430 21431# The archiver. 21432AR=$lt_AR 21433 21434# Flags to create an archive (by configure). 21435lt_ar_flags=$lt_ar_flags 21436 21437# Flags to create an archive. 21438AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21439 21440# How to feed a file listing to the archiver. 21441archiver_list_spec=$lt_archiver_list_spec 21442 21443# A symbol stripping program. 21444STRIP=$lt_STRIP 21445 21446# Commands used to install an old-style archive. 21447RANLIB=$lt_RANLIB 21448old_postinstall_cmds=$lt_old_postinstall_cmds 21449old_postuninstall_cmds=$lt_old_postuninstall_cmds 21450 21451# Whether to use a lock for old archive extraction. 21452lock_old_archive_extraction=$lock_old_archive_extraction 21453 21454# A C compiler. 21455LTCC=$lt_CC 21456 21457# LTCC compiler flags. 21458LTCFLAGS=$lt_CFLAGS 21459 21460# Take the output of nm and produce a listing of raw symbols and C names. 21461global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21462 21463# Transform the output of nm in a proper C declaration. 21464global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21465 21466# Transform the output of nm into a list of symbols to manually relocate. 21467global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21468 21469# Transform the output of nm in a C name address pair. 21470global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21471 21472# Transform the output of nm in a C name address pair when lib prefix is needed. 21473global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21474 21475# The name lister interface. 21476nm_interface=$lt_lt_cv_nm_interface 21477 21478# Specify filename containing input files for \$NM. 21479nm_file_list_spec=$lt_nm_file_list_spec 21480 21481# The root where to search for dependent libraries,and where our libraries should be installed. 21482lt_sysroot=$lt_sysroot 21483 21484# Command to truncate a binary pipe. 21485lt_truncate_bin=$lt_lt_cv_truncate_bin 21486 21487# The name of the directory that contains temporary libtool files. 21488objdir=$objdir 21489 21490# Used to examine libraries when file_magic_cmd begins with "file". 21491MAGIC_CMD=$MAGIC_CMD 21492 21493# Must we lock files when doing compilation? 21494need_locks=$lt_need_locks 21495 21496# Manifest tool. 21497MANIFEST_TOOL=$lt_MANIFEST_TOOL 21498 21499# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21500DSYMUTIL=$lt_DSYMUTIL 21501 21502# Tool to change global to local symbols on Mac OS X. 21503NMEDIT=$lt_NMEDIT 21504 21505# Tool to manipulate fat objects and archives on Mac OS X. 21506LIPO=$lt_LIPO 21507 21508# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21509OTOOL=$lt_OTOOL 21510 21511# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21512OTOOL64=$lt_OTOOL64 21513 21514# Old archive suffix (normally "a"). 21515libext=$libext 21516 21517# Shared library suffix (normally ".so"). 21518shrext_cmds=$lt_shrext_cmds 21519 21520# The commands to extract the exported symbol list from a shared archive. 21521extract_expsyms_cmds=$lt_extract_expsyms_cmds 21522 21523# Variables whose values should be saved in libtool wrapper scripts and 21524# restored at link time. 21525variables_saved_for_relink=$lt_variables_saved_for_relink 21526 21527# Do we need the "lib" prefix for modules? 21528need_lib_prefix=$need_lib_prefix 21529 21530# Do we need a version for libraries? 21531need_version=$need_version 21532 21533# Library versioning type. 21534version_type=$version_type 21535 21536# Shared library runtime path variable. 21537runpath_var=$runpath_var 21538 21539# Shared library path variable. 21540shlibpath_var=$shlibpath_var 21541 21542# Is shlibpath searched before the hard-coded library search path? 21543shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21544 21545# Format of library name prefix. 21546libname_spec=$lt_libname_spec 21547 21548# List of archive names. First name is the real one, the rest are links. 21549# The last name is the one that the linker finds with -lNAME 21550library_names_spec=$lt_library_names_spec 21551 21552# The coded name of the library, if different from the real name. 21553soname_spec=$lt_soname_spec 21554 21555# Permission mode override for installation of shared libraries. 21556install_override_mode=$lt_install_override_mode 21557 21558# Command to use after installation of a shared archive. 21559postinstall_cmds=$lt_postinstall_cmds 21560 21561# Command to use after uninstallation of a shared archive. 21562postuninstall_cmds=$lt_postuninstall_cmds 21563 21564# Commands used to finish a libtool library installation in a directory. 21565finish_cmds=$lt_finish_cmds 21566 21567# As "finish_cmds", except a single script fragment to be evaled but 21568# not shown. 21569finish_eval=$lt_finish_eval 21570 21571# Whether we should hardcode library paths into libraries. 21572hardcode_into_libs=$hardcode_into_libs 21573 21574# Compile-time system search path for libraries. 21575sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21576 21577# Detected run-time system search path for libraries. 21578sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21579 21580# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21581configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21582 21583# Whether dlopen is supported. 21584dlopen_support=$enable_dlopen 21585 21586# Whether dlopen of programs is supported. 21587dlopen_self=$enable_dlopen_self 21588 21589# Whether dlopen of statically linked programs is supported. 21590dlopen_self_static=$enable_dlopen_self_static 21591 21592# Commands to strip libraries. 21593old_striplib=$lt_old_striplib 21594striplib=$lt_striplib 21595 21596 21597# The linker used to build libraries. 21598LD=$lt_LD 21599 21600# How to create reloadable object files. 21601reload_flag=$lt_reload_flag 21602reload_cmds=$lt_reload_cmds 21603 21604# Commands used to build an old-style archive. 21605old_archive_cmds=$lt_old_archive_cmds 21606 21607# A language specific compiler. 21608CC=$lt_compiler 21609 21610# Is the compiler the GNU compiler? 21611with_gcc=$GCC 21612 21613# Compiler flag to turn off builtin functions. 21614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21615 21616# Additional compiler flags for building library objects. 21617pic_flag=$lt_lt_prog_compiler_pic 21618 21619# How to pass a linker flag through the compiler. 21620wl=$lt_lt_prog_compiler_wl 21621 21622# Compiler flag to prevent dynamic linking. 21623link_static_flag=$lt_lt_prog_compiler_static 21624 21625# Does compiler simultaneously support -c and -o options? 21626compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21627 21628# Whether or not to add -lc for building shared libraries. 21629build_libtool_need_lc=$archive_cmds_need_lc 21630 21631# Whether or not to disallow shared libs when runtime libs are static. 21632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21633 21634# Compiler flag to allow reflexive dlopens. 21635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21636 21637# Compiler flag to generate shared objects directly from archives. 21638whole_archive_flag_spec=$lt_whole_archive_flag_spec 21639 21640# Whether the compiler copes with passing no objects directly. 21641compiler_needs_object=$lt_compiler_needs_object 21642 21643# Create an old-style archive from a shared archive. 21644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21645 21646# Create a temporary old-style archive to link instead of a shared archive. 21647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21648 21649# Commands used to build a shared archive. 21650archive_cmds=$lt_archive_cmds 21651archive_expsym_cmds=$lt_archive_expsym_cmds 21652 21653# Commands used to build a loadable module if different from building 21654# a shared archive. 21655module_cmds=$lt_module_cmds 21656module_expsym_cmds=$lt_module_expsym_cmds 21657 21658# Whether we are building with GNU ld or not. 21659with_gnu_ld=$lt_with_gnu_ld 21660 21661# Flag that allows shared libraries with undefined symbols to be built. 21662allow_undefined_flag=$lt_allow_undefined_flag 21663 21664# Flag that enforces no undefined symbols. 21665no_undefined_flag=$lt_no_undefined_flag 21666 21667# Flag to hardcode \$libdir into a binary during linking. 21668# This must work even if \$libdir does not exist 21669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21670 21671# Whether we need a single "-rpath" flag with a separated argument. 21672hardcode_libdir_separator=$lt_hardcode_libdir_separator 21673 21674# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21675# DIR into the resulting binary. 21676hardcode_direct=$hardcode_direct 21677 21678# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21679# DIR into the resulting binary and the resulting library dependency is 21680# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21681# library is relocated. 21682hardcode_direct_absolute=$hardcode_direct_absolute 21683 21684# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21685# into the resulting binary. 21686hardcode_minus_L=$hardcode_minus_L 21687 21688# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21689# into the resulting binary. 21690hardcode_shlibpath_var=$hardcode_shlibpath_var 21691 21692# Set to "yes" if building a shared library automatically hardcodes DIR 21693# into the library and all subsequent libraries and executables linked 21694# against it. 21695hardcode_automatic=$hardcode_automatic 21696 21697# Set to yes if linker adds runtime paths of dependent libraries 21698# to runtime path list. 21699inherit_rpath=$inherit_rpath 21700 21701# Whether libtool must link a program against all its dependency libraries. 21702link_all_deplibs=$link_all_deplibs 21703 21704# Set to "yes" if exported symbols are required. 21705always_export_symbols=$always_export_symbols 21706 21707# The commands to list exported symbols. 21708export_symbols_cmds=$lt_export_symbols_cmds 21709 21710# Symbols that should not be listed in the preloaded symbols. 21711exclude_expsyms=$lt_exclude_expsyms 21712 21713# Symbols that must always be exported. 21714include_expsyms=$lt_include_expsyms 21715 21716# Commands necessary for linking programs (against libraries) with templates. 21717prelink_cmds=$lt_prelink_cmds 21718 21719# Commands necessary for finishing linking programs. 21720postlink_cmds=$lt_postlink_cmds 21721 21722# Specify filename containing input files. 21723file_list_spec=$lt_file_list_spec 21724 21725# How to hardcode a shared library path into an executable. 21726hardcode_action=$hardcode_action 21727 21728# ### END LIBTOOL CONFIG 21729 21730_LT_EOF 21731 21732 cat <<'_LT_EOF' >> "$cfgfile" 21733 21734# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21735 21736# func_munge_path_list VARIABLE PATH 21737# ----------------------------------- 21738# VARIABLE is name of variable containing _space_ separated list of 21739# directories to be munged by the contents of PATH, which is string 21740# having a format: 21741# "DIR[:DIR]:" 21742# string "DIR[ DIR]" will be prepended to VARIABLE 21743# ":DIR[:DIR]" 21744# string "DIR[ DIR]" will be appended to VARIABLE 21745# "DIRP[:DIRP]::[DIRA:]DIRA" 21746# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21747# "DIRA[ DIRA]" will be appended to VARIABLE 21748# "DIR[:DIR]" 21749# VARIABLE will be replaced by "DIR[ DIR]" 21750func_munge_path_list () 21751{ 21752 case x$2 in 21753 x) 21754 ;; 21755 *:) 21756 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21757 ;; 21758 x:*) 21759 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21760 ;; 21761 *::*) 21762 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21763 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21764 ;; 21765 *) 21766 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21767 ;; 21768 esac 21769} 21770 21771 21772# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21773func_cc_basename () 21774{ 21775 for cc_temp in $*""; do 21776 case $cc_temp in 21777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21779 \-*) ;; 21780 *) break;; 21781 esac 21782 done 21783 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21784} 21785 21786 21787# ### END FUNCTIONS SHARED WITH CONFIGURE 21788 21789_LT_EOF 21790 21791 case $host_os in 21792 aix3*) 21793 cat <<\_LT_EOF >> "$cfgfile" 21794# AIX sometimes has problems with the GCC collect2 program. For some 21795# reason, if we set the COLLECT_NAMES environment variable, the problems 21796# vanish in a puff of smoke. 21797if test set != "${COLLECT_NAMES+set}"; then 21798 COLLECT_NAMES= 21799 export COLLECT_NAMES 21800fi 21801_LT_EOF 21802 ;; 21803 esac 21804 21805 21806 21807ltmain=$ac_aux_dir/ltmain.sh 21808 21809 21810 # We use sed instead of cat because bash on DJGPP gets confused if 21811 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21812 # text mode, it properly converts lines to CR/LF. This bash problem 21813 # is reportedly fixed, but why not run on old versions too? 21814 $SED '$q' "$ltmain" >> "$cfgfile" \ 21815 || (rm -f "$cfgfile"; exit 1) 21816 21817 mv -f "$cfgfile" "$ofile" || 21818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21819 chmod +x "$ofile" 21820 21821 ;; 21822 21823 esac 21824done # for ac_tag 21825 21826 21827as_fn_exit 0 21828_ACEOF 21829ac_clean_files=$ac_clean_files_save 21830 21831test $ac_write_fail = 0 || 21832 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21833 21834 21835# configure is writing to config.log, and then calls config.status. 21836# config.status does its own redirection, appending to config.log. 21837# Unfortunately, on DOS this fails, as config.log is still kept open 21838# by configure, so config.status won't be able to write to it; its 21839# output is simply discarded. So we exec the FD to /dev/null, 21840# effectively closing config.log, so it can be properly (re)opened and 21841# appended to by config.status. When coming back to configure, we 21842# need to make the FD available again. 21843if test "$no_create" != yes; then 21844 ac_cs_success=: 21845 ac_config_status_args= 21846 test "$silent" = yes && 21847 ac_config_status_args="$ac_config_status_args --quiet" 21848 exec 5>/dev/null 21849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21850 exec 5>>config.log 21851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21852 # would make configure fail if this is the last instruction. 21853 $ac_cs_success || as_fn_exit 1 21854fi 21855if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21857printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21858fi 21859 21860 21861