configure revision 8f9fac4a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libXxf86vm 1.1.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595test -n "$DJDIR" || exec 7<&0 </dev/null 596exec 6>&1 597 598# Name of the host. 599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600# so uname gets run too. 601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603# 604# Initializations. 605# 606ac_default_prefix=/usr/local 607ac_clean_files= 608ac_config_libobj_dir=. 609LIBOBJS= 610cross_compiling=no 611subdirs= 612MFLAGS= 613MAKEFLAGS= 614 615# Identity of this package. 616PACKAGE_NAME='libXxf86vm' 617PACKAGE_TARNAME='libXxf86vm' 618PACKAGE_VERSION='1.1.6' 619PACKAGE_STRING='libXxf86vm 1.1.6' 620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues' 621PACKAGE_URL='' 622 623ac_unique_file="Makefile.am" 624# Factoring default headers for most tests. 625ac_includes_default="\ 626#include <stddef.h> 627#ifdef HAVE_STDIO_H 628# include <stdio.h> 629#endif 630#ifdef HAVE_STDLIB_H 631# include <stdlib.h> 632#endif 633#ifdef HAVE_STRING_H 634# include <string.h> 635#endif 636#ifdef HAVE_INTTYPES_H 637# include <inttypes.h> 638#endif 639#ifdef HAVE_STDINT_H 640# include <stdint.h> 641#endif 642#ifdef HAVE_STRINGS_H 643# include <strings.h> 644#endif 645#ifdef HAVE_SYS_TYPES_H 646# include <sys/types.h> 647#endif 648#ifdef HAVE_SYS_STAT_H 649# include <sys/stat.h> 650#endif 651#ifdef HAVE_UNISTD_H 652# include <unistd.h> 653#endif" 654 655ac_header_c_list= 656ac_subst_vars='am__EXEEXT_FALSE 657am__EXEEXT_TRUE 658LTLIBOBJS 659LIBOBJS 660XXF86VM_LIBS 661XXF86VM_CFLAGS 662XTMALLOC_ZERO_CFLAGS 663XMALLOC_ZERO_CFLAGS 664MALLOC_ZERO_CFLAGS 665MAN_SUBSTS 666XORG_MAN_PAGE 667ADMIN_MAN_DIR 668DRIVER_MAN_DIR 669MISC_MAN_DIR 670FILE_MAN_DIR 671LIB_MAN_DIR 672APP_MAN_DIR 673ADMIN_MAN_SUFFIX 674DRIVER_MAN_SUFFIX 675MISC_MAN_SUFFIX 676FILE_MAN_SUFFIX 677LIB_MAN_SUFFIX 678APP_MAN_SUFFIX 679INSTALL_CMD 680PKG_CONFIG_LIBDIR 681PKG_CONFIG_PATH 682PKG_CONFIG 683CHANGELOG_CMD 684STRICT_CFLAGS 685CWARNFLAGS 686BASE_CFLAGS 687LT_SYS_LIBRARY_PATH 688OTOOL64 689OTOOL 690LIPO 691NMEDIT 692DSYMUTIL 693MANIFEST_TOOL 694RANLIB 695ac_ct_AR 696AR 697DLLTOOL 698OBJDUMP 699FILECMD 700LN_S 701NM 702ac_ct_DUMPBIN 703DUMPBIN 704LD 705FGREP 706EGREP 707GREP 708SED 709am__fastdepCC_FALSE 710am__fastdepCC_TRUE 711CCDEPMODE 712am__nodep 713AMDEPBACKSLASH 714AMDEP_FALSE 715AMDEP_TRUE 716am__include 717DEPDIR 718OBJEXT 719EXEEXT 720ac_ct_CC 721CPPFLAGS 722LDFLAGS 723CFLAGS 724CC 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733LIBTOOL 734am__xargs_n 735am__rm_f_notfound 736AM_BACKSLASH 737AM_DEFAULT_VERBOSITY 738AM_DEFAULT_V 739AM_V 740CSCOPE 741ETAGS 742CTAGS 743am__untar 744am__tar 745AMTAR 746am__leading_dot 747SET_MAKE 748AWK 749mkdir_p 750MKDIR_P 751INSTALL_STRIP_PROGRAM 752STRIP 753install_sh 754MAKEINFO 755AUTOHEADER 756AUTOMAKE 757AUTOCONF 758ACLOCAL 759VERSION 760PACKAGE 761CYGPATH_W 762am__isrc 763INSTALL_DATA 764INSTALL_SCRIPT 765INSTALL_PROGRAM 766target_alias 767host_alias 768build_alias 769LIBS 770ECHO_T 771ECHO_N 772ECHO_C 773DEFS 774mandir 775localedir 776libdir 777psdir 778pdfdir 779dvidir 780htmldir 781infodir 782docdir 783oldincludedir 784includedir 785runstatedir 786localstatedir 787sharedstatedir 788sysconfdir 789datadir 790datarootdir 791libexecdir 792sbindir 793bindir 794program_transform_name 795prefix 796exec_prefix 797PACKAGE_URL 798PACKAGE_BUGREPORT 799PACKAGE_STRING 800PACKAGE_VERSION 801PACKAGE_TARNAME 802PACKAGE_NAME 803PATH_SEPARATOR 804SHELL 805am__quote' 806ac_subst_files='' 807ac_user_opts=' 808enable_option_checking 809enable_silent_rules 810enable_shared 811enable_static 812enable_pic 813with_pic 814enable_fast_install 815enable_aix_soname 816with_aix_soname 817enable_dependency_tracking 818with_gnu_ld 819with_sysroot 820enable_libtool_lock 821enable_selective_werror 822enable_strict_compilation 823enable_malloc0returnsnull 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 837XXF86VM_CFLAGS 838XXF86VM_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 libXxf86vm 1.1.6 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/libXxf86vm] 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 libXxf86vm 1.1.6:";; 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-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1471 both] 1472 --enable-fast-install[=PKGS] 1473 optimize for fast installation [default=yes] 1474 --enable-aix-soname=aix|svr4|both 1475 shared library versioning (aka "SONAME") variant to 1476 provide on AIX, [default=aix]. 1477 --enable-dependency-tracking 1478 do not reject slow dependency extractors 1479 --disable-dependency-tracking 1480 speeds up one-time build 1481 --disable-libtool-lock avoid locking (might break parallel builds) 1482 --disable-selective-werror 1483 Turn off selective compiler errors. (default: 1484 enabled) 1485 --enable-strict-compilation 1486 Enable all warnings from compiler and make them 1487 errors (default: disabled) 1488 --enable-malloc0returnsnull 1489 assume malloc(0) can return NULL (default: yes) 1490 1491Optional Packages: 1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1496 compiler's sysroot if not specified). 1497 1498Some influential environment variables: 1499 CC C compiler command 1500 CFLAGS C compiler flags 1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1502 nonstandard directory <lib dir> 1503 LIBS libraries to pass to the linker, e.g. -l<library> 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1505 you have headers in a nonstandard directory <include dir> 1506 LT_SYS_LIBRARY_PATH 1507 User-defined run-time library search path. 1508 PKG_CONFIG path to pkg-config utility 1509 PKG_CONFIG_PATH 1510 directories to add to pkg-config's search path 1511 PKG_CONFIG_LIBDIR 1512 path overriding pkg-config's built-in search path 1513 XXF86VM_CFLAGS 1514 C compiler flags for XXF86VM, overriding pkg-config 1515 XXF86VM_LIBS 1516 linker flags for XXF86VM, overriding pkg-config 1517 1518Use these variables to override the choices made by 'configure' or to help 1519it to find libraries and programs with nonstandard names/locations. 1520 1521Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>. 1522_ACEOF 1523ac_status=$? 1524fi 1525 1526if test "$ac_init_help" = "recursive"; then 1527 # If there are subdirs, report their specific --help. 1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1529 test -d "$ac_dir" || 1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1531 continue 1532 ac_builddir=. 1533 1534case "$ac_dir" in 1535.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536*) 1537 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1538 # A ".." for each directory in $ac_dir_suffix. 1539 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1540 case $ac_top_builddir_sub in 1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1543 esac ;; 1544esac 1545ac_abs_top_builddir=$ac_pwd 1546ac_abs_builddir=$ac_pwd$ac_dir_suffix 1547# for backward compatibility: 1548ac_top_builddir=$ac_top_build_prefix 1549 1550case $srcdir in 1551 .) # We are building in place. 1552 ac_srcdir=. 1553 ac_top_srcdir=$ac_top_builddir_sub 1554 ac_abs_top_srcdir=$ac_pwd ;; 1555 [\\/]* | ?:[\\/]* ) # Absolute name. 1556 ac_srcdir=$srcdir$ac_dir_suffix; 1557 ac_top_srcdir=$srcdir 1558 ac_abs_top_srcdir=$srcdir ;; 1559 *) # Relative name. 1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1561 ac_top_srcdir=$ac_top_build_prefix$srcdir 1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1563esac 1564ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1565 1566 cd "$ac_dir" || { ac_status=$?; continue; } 1567 # Check for configure.gnu first; this name is used for a wrapper for 1568 # Metaconfig's "Configure" on case-insensitive file systems. 1569 if test -f "$ac_srcdir/configure.gnu"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1572 elif test -f "$ac_srcdir/configure"; then 1573 echo && 1574 $SHELL "$ac_srcdir/configure" --help=recursive 1575 else 1576 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1577 fi || ac_status=$? 1578 cd "$ac_pwd" || { ac_status=$?; break; } 1579 done 1580fi 1581 1582test -n "$ac_init_help" && exit $ac_status 1583if $ac_init_version; then 1584 cat <<\_ACEOF 1585libXxf86vm configure 1.1.6 1586generated by GNU Autoconf 2.72 1587 1588Copyright (C) 2023 Free Software Foundation, Inc. 1589This configure script is free software; the Free Software Foundation 1590gives unlimited permission to copy, distribute and modify it. 1591_ACEOF 1592 exit 1593fi 1594 1595## ------------------------ ## 1596## Autoconf initialization. ## 1597## ------------------------ ## 1598 1599# ac_fn_c_try_compile LINENO 1600# -------------------------- 1601# Try to compile conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_compile () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest.beam 1606 if { { ac_try="$ac_compile" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612printf "%s\n" "$ac_try_echo"; } >&5 1613 (eval "$ac_compile") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest.$ac_objext 1625then : 1626 ac_retval=0 1627else case e in #( 1628 e) printf "%s\n" "$as_me: failed program was:" >&5 1629sed 's/^/| /' conftest.$ac_ext >&5 1630 1631 ac_retval=1 ;; 1632esac 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_compile 1638 1639# ac_fn_c_try_link LINENO 1640# ----------------------- 1641# Try to link conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_link () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1646 if { { ac_try="$ac_link" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652printf "%s\n" "$ac_try_echo"; } >&5 1653 (eval "$ac_link") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest$ac_exeext && { 1665 test "$cross_compiling" = yes || 1666 test -x conftest$ac_exeext 1667 } 1668then : 1669 ac_retval=0 1670else case e in #( 1671 e) printf "%s\n" "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 ;; 1675esac 1676fi 1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1679 # interfere with the next link command; also delete a directory that is 1680 # left behind by Apple's compiler. We do this before executing the actions. 1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685} # ac_fn_c_try_link 1686 1687# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1688# ------------------------------------------------------- 1689# Tests whether HEADER exists and can be compiled using the include files in 1690# INCLUDES, setting the cache variable VAR accordingly. 1691ac_fn_c_check_header_compile () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1695printf %s "checking for $2... " >&6; } 1696if eval test \${$3+y} 1697then : 1698 printf %s "(cached) " >&6 1699else case e in #( 1700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701/* end confdefs.h. */ 1702$4 1703#include <$2> 1704_ACEOF 1705if ac_fn_c_try_compile "$LINENO" 1706then : 1707 eval "$3=yes" 1708else case e in #( 1709 e) eval "$3=no" ;; 1710esac 1711fi 1712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1713esac 1714fi 1715eval ac_res=\$$3 1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717printf "%s\n" "$ac_res" >&6; } 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 1720} # ac_fn_c_check_header_compile 1721 1722# ac_fn_c_check_func LINENO FUNC VAR 1723# ---------------------------------- 1724# Tests whether FUNC exists, setting the cache variable VAR accordingly 1725ac_fn_c_check_func () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729printf %s "checking for $2... " >&6; } 1730if eval test \${$3+y} 1731then : 1732 printf %s "(cached) " >&6 1733else case e in #( 1734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1738#define $2 innocuous_$2 1739 1740/* System header to define __stub macros and hopefully few prototypes, 1741 which can conflict with char $2 (void); below. */ 1742 1743#include <limits.h> 1744#undef $2 1745 1746/* Override any GCC internal prototype to avoid an error. 1747 Use char because int might match the return type of a GCC 1748 builtin and then its argument prototype would still apply. */ 1749#ifdef __cplusplus 1750extern "C" 1751#endif 1752char $2 (void); 1753/* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756#if defined __stub_$2 || defined __stub___$2 1757choke me 1758#endif 1759 1760int 1761main (void) 1762{ 1763return $2 (); 1764 ; 1765 return 0; 1766} 1767_ACEOF 1768if ac_fn_c_try_link "$LINENO" 1769then : 1770 eval "$3=yes" 1771else case e in #( 1772 e) eval "$3=no" ;; 1773esac 1774fi 1775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1776 conftest$ac_exeext conftest.$ac_ext ;; 1777esac 1778fi 1779eval ac_res=\$$3 1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781printf "%s\n" "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784} # ac_fn_c_check_func 1785 1786# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1787# ------------------------------------------------------------------ 1788# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1789# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1790ac_fn_check_decl () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 as_decl_name=`echo $2|sed 's/ *(.*//'` 1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1795printf %s "checking whether $as_decl_name is declared... " >&6; } 1796if eval test \${$3+y} 1797then : 1798 printf %s "(cached) " >&6 1799else case e in #( 1800 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1801 eval ac_save_FLAGS=\$$6 1802 as_fn_append $6 " $5" 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804/* end confdefs.h. */ 1805$4 1806int 1807main (void) 1808{ 1809#ifndef $as_decl_name 1810#ifdef __cplusplus 1811 (void) $as_decl_use; 1812#else 1813 (void) $as_decl_name; 1814#endif 1815#endif 1816 1817 ; 1818 return 0; 1819} 1820_ACEOF 1821if ac_fn_c_try_compile "$LINENO" 1822then : 1823 eval "$3=yes" 1824else case e in #( 1825 e) eval "$3=no" ;; 1826esac 1827fi 1828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1829 eval $6=\$ac_save_FLAGS 1830 ;; 1831esac 1832fi 1833eval ac_res=\$$3 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835printf "%s\n" "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838} # ac_fn_check_decl 1839ac_configure_args_raw= 1840for ac_arg 1841do 1842 case $ac_arg in 1843 *\'*) 1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1845 esac 1846 as_fn_append ac_configure_args_raw " '$ac_arg'" 1847done 1848 1849case $ac_configure_args_raw in 1850 *$as_nl*) 1851 ac_safe_unquote= ;; 1852 *) 1853 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1854 ac_unsafe_a="$ac_unsafe_z#~" 1855 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1856 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1857esac 1858 1859cat >config.log <<_ACEOF 1860This file contains any messages produced by compilers while 1861running configure, to aid debugging if configure makes a mistake. 1862 1863It was created by libXxf86vm $as_me 1.1.6, which was 1864generated by GNU Autoconf 2.72. Invocation command line was 1865 1866 $ $0$ac_configure_args_raw 1867 1868_ACEOF 1869exec 5>>config.log 1870{ 1871cat <<_ASUNAME 1872## --------- ## 1873## Platform. ## 1874## --------- ## 1875 1876hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1877uname -m = `(uname -m) 2>/dev/null || echo unknown` 1878uname -r = `(uname -r) 2>/dev/null || echo unknown` 1879uname -s = `(uname -s) 2>/dev/null || echo unknown` 1880uname -v = `(uname -v) 2>/dev/null || echo unknown` 1881 1882/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1883/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1884 1885/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1886/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1887/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1888/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1889/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1890/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1891/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1892 1893_ASUNAME 1894 1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1896for as_dir in $PATH 1897do 1898 IFS=$as_save_IFS 1899 case $as_dir in #((( 1900 '') as_dir=./ ;; 1901 */) ;; 1902 *) as_dir=$as_dir/ ;; 1903 esac 1904 printf "%s\n" "PATH: $as_dir" 1905 done 1906IFS=$as_save_IFS 1907 1908} >&5 1909 1910cat >&5 <<_ACEOF 1911 1912 1913## ----------- ## 1914## Core tests. ## 1915## ----------- ## 1916 1917_ACEOF 1918 1919 1920# Keep a trace of the command line. 1921# Strip out --no-create and --no-recursion so they do not pile up. 1922# Strip out --silent because we don't want to record it for future runs. 1923# Also quote any args containing shell meta-characters. 1924# Make two passes to allow for proper duplicate-argument suppression. 1925ac_configure_args= 1926ac_configure_args0= 1927ac_configure_args1= 1928ac_must_keep_next=false 1929for ac_pass in 1 2 1930do 1931 for ac_arg 1932 do 1933 case $ac_arg in 1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1936 | -silent | --silent | --silen | --sile | --sil) 1937 continue ;; 1938 *\'*) 1939 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1940 esac 1941 case $ac_pass in 1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1943 2) 1944 as_fn_append ac_configure_args1 " '$ac_arg'" 1945 if test $ac_must_keep_next = true; then 1946 ac_must_keep_next=false # Got value, back to normal. 1947 else 1948 case $ac_arg in 1949 *=* | --config-cache | -C | -disable-* | --disable-* \ 1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1952 | -with-* | --with-* | -without-* | --without-* | --x) 1953 case "$ac_configure_args0 " in 1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1955 esac 1956 ;; 1957 -* ) ac_must_keep_next=true ;; 1958 esac 1959 fi 1960 as_fn_append ac_configure_args " '$ac_arg'" 1961 ;; 1962 esac 1963 done 1964done 1965{ ac_configure_args0=; unset ac_configure_args0;} 1966{ ac_configure_args1=; unset ac_configure_args1;} 1967 1968# When interrupted or exit'd, cleanup temporary files, and complete 1969# config.log. We remove comments because anyway the quotes in there 1970# would cause problems or look ugly. 1971# WARNING: Use '\'' to represent an apostrophe within the trap. 1972# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1973trap 'exit_status=$? 1974 # Sanitize IFS. 1975 IFS=" "" $as_nl" 1976 # Save into config.log some information that might help in debugging. 1977 { 1978 echo 1979 1980 printf "%s\n" "## ---------------- ## 1981## Cache variables. ## 1982## ---------------- ##" 1983 echo 1984 # The following way of writing the cache mishandles newlines in values, 1985( 1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in #( 1989 *${as_nl}*) 1990 case $ac_var in #( 1991 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1992printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1993 esac 1994 case $ac_var in #( 1995 _ | IFS | as_nl) ;; #( 1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1997 *) { eval $ac_var=; unset $ac_var;} ;; 1998 esac ;; 1999 esac 2000 done 2001 (set) 2>&1 | 2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2003 *${as_nl}ac_space=\ *) 2004 sed -n \ 2005 "s/'\''/'\''\\\\'\'''\''/g; 2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2007 ;; #( 2008 *) 2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2010 ;; 2011 esac | 2012 sort 2013) 2014 echo 2015 2016 printf "%s\n" "## ----------------- ## 2017## Output variables. ## 2018## ----------------- ##" 2019 echo 2020 for ac_var in $ac_subst_vars 2021 do 2022 eval ac_val=\$$ac_var 2023 case $ac_val in 2024 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2025 esac 2026 printf "%s\n" "$ac_var='\''$ac_val'\''" 2027 done | sort 2028 echo 2029 2030 if test -n "$ac_subst_files"; then 2031 printf "%s\n" "## ------------------- ## 2032## File substitutions. ## 2033## ------------------- ##" 2034 echo 2035 for ac_var in $ac_subst_files 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 printf "%s\n" "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 fi 2045 2046 if test -s confdefs.h; then 2047 printf "%s\n" "## ----------- ## 2048## confdefs.h. ## 2049## ----------- ##" 2050 echo 2051 cat confdefs.h 2052 echo 2053 fi 2054 test "$ac_signal" != 0 && 2055 printf "%s\n" "$as_me: caught signal $ac_signal" 2056 printf "%s\n" "$as_me: exit $exit_status" 2057 } >&5 2058 rm -f core *.core core.conftest.* && 2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2060 exit $exit_status 2061' 0 2062for ac_signal in 1 2 13 15; do 2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2064done 2065ac_signal=0 2066 2067# confdefs.h avoids OS command line length limits that DEFS can exceed. 2068rm -f -r conftest* confdefs.h 2069 2070printf "%s\n" "/* confdefs.h */" > confdefs.h 2071 2072# Predefined preprocessor variables. 2073 2074printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2075 2076printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2077 2078printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2079 2080printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2081 2082printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2083 2084printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2085 2086 2087# Let the site file select an alternate cache file if it wants to. 2088# Prefer an explicitly selected file to automatically selected ones. 2089if test -n "$CONFIG_SITE"; then 2090 ac_site_files="$CONFIG_SITE" 2091elif test "x$prefix" != xNONE; then 2092 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2093else 2094 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2095fi 2096 2097for ac_site_file in $ac_site_files 2098do 2099 case $ac_site_file in #( 2100 */*) : 2101 ;; #( 2102 *) : 2103 ac_site_file=./$ac_site_file ;; 2104esac 2105 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2107printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2108 sed 's/^/| /' "$ac_site_file" >&5 2109 . "$ac_site_file" \ 2110 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2111printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2112as_fn_error $? "failed to load site script $ac_site_file 2113See 'config.log' for more details" "$LINENO" 5; } 2114 fi 2115done 2116 2117if test -r "$cache_file"; then 2118 # Some versions of bash will fail to source /dev/null (special files 2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2122printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2123 case $cache_file in 2124 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2125 *) . "./$cache_file";; 2126 esac 2127 fi 2128else 2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2130printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2131 >$cache_file 2132fi 2133 2134# Test code for whether the C compiler supports C89 (global declarations) 2135ac_c_conftest_c89_globals=' 2136/* Does the compiler advertise C89 conformance? 2137 Do not test the value of __STDC__, because some compilers set it to 0 2138 while being otherwise adequately conformant. */ 2139#if !defined __STDC__ 2140# error "Compiler does not advertise C89 conformance" 2141#endif 2142 2143#include <stddef.h> 2144#include <stdarg.h> 2145struct stat; 2146/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2147struct buf { int x; }; 2148struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2149static char *e (char **p, int i) 2150{ 2151 return p[i]; 2152} 2153static char *f (char * (*g) (char **, int), char **p, ...) 2154{ 2155 char *s; 2156 va_list v; 2157 va_start (v,p); 2158 s = g (p, va_arg (v,int)); 2159 va_end (v); 2160 return s; 2161} 2162 2163/* C89 style stringification. */ 2164#define noexpand_stringify(a) #a 2165const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2166 2167/* C89 style token pasting. Exercises some of the corner cases that 2168 e.g. old MSVC gets wrong, but not very hard. */ 2169#define noexpand_concat(a,b) a##b 2170#define expand_concat(a,b) noexpand_concat(a,b) 2171extern int vA; 2172extern int vbee; 2173#define aye A 2174#define bee B 2175int *pvA = &expand_concat(v,aye); 2176int *pvbee = &noexpand_concat(v,bee); 2177 2178/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2179 function prototypes and stuff, but not \xHH hex character constants. 2180 These do not provoke an error unfortunately, instead are silently treated 2181 as an "x". The following induces an error, until -std is added to get 2182 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2183 array size at least. It is necessary to write \x00 == 0 to get something 2184 that is true only with -std. */ 2185int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2186 2187/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2188 inside strings and character constants. */ 2189#define FOO(x) '\''x'\'' 2190int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2191 2192int test (int i, double x); 2193struct s1 {int (*f) (int a);}; 2194struct s2 {int (*f) (double a);}; 2195int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2196 int, int);' 2197 2198# Test code for whether the C compiler supports C89 (body of main). 2199ac_c_conftest_c89_main=' 2200ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2201' 2202 2203# Test code for whether the C compiler supports C99 (global declarations) 2204ac_c_conftest_c99_globals=' 2205/* Does the compiler advertise C99 conformance? */ 2206#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2207# error "Compiler does not advertise C99 conformance" 2208#endif 2209 2210// See if C++-style comments work. 2211 2212#include <stdbool.h> 2213extern int puts (const char *); 2214extern int printf (const char *, ...); 2215extern int dprintf (int, const char *, ...); 2216extern void *malloc (size_t); 2217extern void free (void *); 2218 2219// Check varargs macros. These examples are taken from C99 6.10.3.5. 2220// dprintf is used instead of fprintf to avoid needing to declare 2221// FILE and stderr. 2222#define debug(...) dprintf (2, __VA_ARGS__) 2223#define showlist(...) puts (#__VA_ARGS__) 2224#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2225static void 2226test_varargs_macros (void) 2227{ 2228 int x = 1234; 2229 int y = 5678; 2230 debug ("Flag"); 2231 debug ("X = %d\n", x); 2232 showlist (The first, second, and third items.); 2233 report (x>y, "x is %d but y is %d", x, y); 2234} 2235 2236// Check long long types. 2237#define BIG64 18446744073709551615ull 2238#define BIG32 4294967295ul 2239#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2240#if !BIG_OK 2241 #error "your preprocessor is broken" 2242#endif 2243#if BIG_OK 2244#else 2245 #error "your preprocessor is broken" 2246#endif 2247static long long int bignum = -9223372036854775807LL; 2248static unsigned long long int ubignum = BIG64; 2249 2250struct incomplete_array 2251{ 2252 int datasize; 2253 double data[]; 2254}; 2255 2256struct named_init { 2257 int number; 2258 const wchar_t *name; 2259 double average; 2260}; 2261 2262typedef const char *ccp; 2263 2264static inline int 2265test_restrict (ccp restrict text) 2266{ 2267 // Iterate through items via the restricted pointer. 2268 // Also check for declarations in for loops. 2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2270 continue; 2271 return 0; 2272} 2273 2274// Check varargs and va_copy. 2275static bool 2276test_varargs (const char *format, ...) 2277{ 2278 va_list args; 2279 va_start (args, format); 2280 va_list args_copy; 2281 va_copy (args_copy, args); 2282 2283 const char *str = ""; 2284 int number = 0; 2285 float fnumber = 0; 2286 2287 while (*format) 2288 { 2289 switch (*format++) 2290 { 2291 case '\''s'\'': // string 2292 str = va_arg (args_copy, const char *); 2293 break; 2294 case '\''d'\'': // int 2295 number = va_arg (args_copy, int); 2296 break; 2297 case '\''f'\'': // float 2298 fnumber = va_arg (args_copy, double); 2299 break; 2300 default: 2301 break; 2302 } 2303 } 2304 va_end (args_copy); 2305 va_end (args); 2306 2307 return *str && number && fnumber; 2308} 2309' 2310 2311# Test code for whether the C compiler supports C99 (body of main). 2312ac_c_conftest_c99_main=' 2313 // Check bool. 2314 _Bool success = false; 2315 success |= (argc != 0); 2316 2317 // Check restrict. 2318 if (test_restrict ("String literal") == 0) 2319 success = true; 2320 char *restrict newvar = "Another string"; 2321 2322 // Check varargs. 2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2324 test_varargs_macros (); 2325 2326 // Check flexible array members. 2327 struct incomplete_array *ia = 2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2329 ia->datasize = 10; 2330 for (int i = 0; i < ia->datasize; ++i) 2331 ia->data[i] = i * 1.234; 2332 // Work around memory leak warnings. 2333 free (ia); 2334 2335 // Check named initializers. 2336 struct named_init ni = { 2337 .number = 34, 2338 .name = L"Test wide string", 2339 .average = 543.34343, 2340 }; 2341 2342 ni.number = 58; 2343 2344 int dynamic_array[ni.number]; 2345 dynamic_array[0] = argv[0][0]; 2346 dynamic_array[ni.number - 1] = 543; 2347 2348 // work around unused variable warnings 2349 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2350 || dynamic_array[ni.number - 1] != 543); 2351' 2352 2353# Test code for whether the C compiler supports C11 (global declarations) 2354ac_c_conftest_c11_globals=' 2355/* Does the compiler advertise C11 conformance? */ 2356#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2357# error "Compiler does not advertise C11 conformance" 2358#endif 2359 2360// Check _Alignas. 2361char _Alignas (double) aligned_as_double; 2362char _Alignas (0) no_special_alignment; 2363extern char aligned_as_int; 2364char _Alignas (0) _Alignas (int) aligned_as_int; 2365 2366// Check _Alignof. 2367enum 2368{ 2369 int_alignment = _Alignof (int), 2370 int_array_alignment = _Alignof (int[100]), 2371 char_alignment = _Alignof (char) 2372}; 2373_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2374 2375// Check _Noreturn. 2376int _Noreturn does_not_return (void) { for (;;) continue; } 2377 2378// Check _Static_assert. 2379struct test_static_assert 2380{ 2381 int x; 2382 _Static_assert (sizeof (int) <= sizeof (long int), 2383 "_Static_assert does not work in struct"); 2384 long int y; 2385}; 2386 2387// Check UTF-8 literals. 2388#define u8 syntax error! 2389char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2390 2391// Check duplicate typedefs. 2392typedef long *long_ptr; 2393typedef long int *long_ptr; 2394typedef long_ptr long_ptr; 2395 2396// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2397struct anonymous 2398{ 2399 union { 2400 struct { int i; int j; }; 2401 struct { int k; long int l; } w; 2402 }; 2403 int m; 2404} v1; 2405' 2406 2407# Test code for whether the C compiler supports C11 (body of main). 2408ac_c_conftest_c11_main=' 2409 _Static_assert ((offsetof (struct anonymous, i) 2410 == offsetof (struct anonymous, w.k)), 2411 "Anonymous union alignment botch"); 2412 v1.i = 2; 2413 v1.w.k = 5; 2414 ok |= v1.i != 5; 2415' 2416 2417# Test code for whether the C compiler supports C11 (complete). 2418ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2419${ac_c_conftest_c99_globals} 2420${ac_c_conftest_c11_globals} 2421 2422int 2423main (int argc, char **argv) 2424{ 2425 int ok = 0; 2426 ${ac_c_conftest_c89_main} 2427 ${ac_c_conftest_c99_main} 2428 ${ac_c_conftest_c11_main} 2429 return ok; 2430} 2431" 2432 2433# Test code for whether the C compiler supports C99 (complete). 2434ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2435${ac_c_conftest_c99_globals} 2436 2437int 2438main (int argc, char **argv) 2439{ 2440 int ok = 0; 2441 ${ac_c_conftest_c89_main} 2442 ${ac_c_conftest_c99_main} 2443 return ok; 2444} 2445" 2446 2447# Test code for whether the C compiler supports C89 (complete). 2448ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2449 2450int 2451main (int argc, char **argv) 2452{ 2453 int ok = 0; 2454 ${ac_c_conftest_c89_main} 2455 return ok; 2456} 2457" 2458 2459as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2460as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2461as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2462as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2463as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2464as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2465as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2466as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2467as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2468 2469# Auxiliary files required by this configure script. 2470ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2471 2472# Locations in which to look for auxiliary files. 2473ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2474 2475# Search for a directory containing all of the required auxiliary files, 2476# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2477# If we don't find one directory that contains all the files we need, 2478# we report the set of missing files from the *first* directory in 2479# $ac_aux_dir_candidates and give up. 2480ac_missing_aux_files="" 2481ac_first_candidate=: 2482printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484as_found=false 2485for as_dir in $ac_aux_dir_candidates 2486do 2487 IFS=$as_save_IFS 2488 case $as_dir in #((( 2489 '') as_dir=./ ;; 2490 */) ;; 2491 *) as_dir=$as_dir/ ;; 2492 esac 2493 as_found=: 2494 2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2496 ac_aux_dir_found=yes 2497 ac_install_sh= 2498 for ac_aux in $ac_aux_files 2499 do 2500 # As a special case, if "install-sh" is required, that requirement 2501 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2502 # and $ac_install_sh is set appropriately for whichever one is found. 2503 if test x"$ac_aux" = x"install-sh" 2504 then 2505 if test -f "${as_dir}install-sh"; then 2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2507 ac_install_sh="${as_dir}install-sh -c" 2508 elif test -f "${as_dir}install.sh"; then 2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2510 ac_install_sh="${as_dir}install.sh -c" 2511 elif test -f "${as_dir}shtool"; then 2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2513 ac_install_sh="${as_dir}shtool install -c" 2514 else 2515 ac_aux_dir_found=no 2516 if $ac_first_candidate; then 2517 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2518 else 2519 break 2520 fi 2521 fi 2522 else 2523 if test -f "${as_dir}${ac_aux}"; then 2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2525 else 2526 ac_aux_dir_found=no 2527 if $ac_first_candidate; then 2528 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2529 else 2530 break 2531 fi 2532 fi 2533 fi 2534 done 2535 if test "$ac_aux_dir_found" = yes; then 2536 ac_aux_dir="$as_dir" 2537 break 2538 fi 2539 ac_first_candidate=false 2540 2541 as_found=false 2542done 2543IFS=$as_save_IFS 2544if $as_found 2545then : 2546 2547else case e in #( 2548 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2549esac 2550fi 2551 2552 2553# These three variables are undocumented and unsupported, 2554# and are intended to be withdrawn in a future Autoconf release. 2555# They can cause serious problems if a builder's source tree is in a directory 2556# whose full name contains unusual characters. 2557if test -f "${ac_aux_dir}config.guess"; then 2558 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2559fi 2560if test -f "${ac_aux_dir}config.sub"; then 2561 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2562fi 2563if test -f "$ac_aux_dir/configure"; then 2564 ac_configure="$SHELL ${ac_aux_dir}configure" 2565fi 2566 2567# Check that the precious variables saved in the cache have kept the same 2568# value. 2569ac_cache_corrupted=false 2570for ac_var in $ac_precious_vars; do 2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2572 eval ac_new_set=\$ac_env_${ac_var}_set 2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2574 eval ac_new_val=\$ac_env_${ac_var}_value 2575 case $ac_old_set,$ac_new_set in 2576 set,) 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2578printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,set) 2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2582printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2583 ac_cache_corrupted=: ;; 2584 ,);; 2585 *) 2586 if test "x$ac_old_val" != "x$ac_new_val"; then 2587 # differences in whitespace do not lead to failure. 2588 ac_old_val_w=`echo x $ac_old_val` 2589 ac_new_val_w=`echo x $ac_new_val` 2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2592printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2593 ac_cache_corrupted=: 2594 else 2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2596printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2597 eval $ac_var=\$ac_old_val 2598 fi 2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2600printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2602printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2603 fi;; 2604 esac 2605 # Pass precious variables to config.status. 2606 if test "$ac_new_set" = set; then 2607 case $ac_new_val in 2608 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2609 *) ac_arg=$ac_var=$ac_new_val ;; 2610 esac 2611 case " $ac_configure_args " in 2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2614 esac 2615 fi 2616done 2617if $ac_cache_corrupted; then 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2619printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2621printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2622 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2623 and start over" "$LINENO" 5 2624fi 2625## -------------------- ## 2626## Main body of script. ## 2627## -------------------- ## 2628 2629ac_ext=c 2630ac_cpp='$CPP $CPPFLAGS' 2631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2633ac_compiler_gnu=$ac_cv_c_compiler_gnu 2634 2635 2636 2637ac_config_headers="$ac_config_headers src/config.h" 2638 2639 2640 2641# Initialize Automake 2642am__api_version='1.17' 2643 2644 2645 2646 # Find a good install program. We prefer a C program (faster), 2647# so one script is as good as another. But avoid the broken or 2648# incompatible versions: 2649# SysV /etc/install, /usr/sbin/install 2650# SunOS /usr/etc/install 2651# IRIX /sbin/install 2652# AIX /bin/install 2653# AmigaOS /C/install, which installs bootblocks on floppy discs 2654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2655# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2657# OS/2's system install, which has a completely different semantic 2658# ./install, which can be erroneously created by make from ./install.sh. 2659# Reject install programs that cannot install multiple files. 2660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2661printf %s "checking for a BSD-compatible install... " >&6; } 2662if test -z "$INSTALL"; then 2663if test ${ac_cv_path_install+y} 2664then : 2665 printf %s "(cached) " >&6 2666else case e in #( 2667 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 case $as_dir in #((( 2672 '') as_dir=./ ;; 2673 */) ;; 2674 *) as_dir=$as_dir/ ;; 2675 esac 2676 # Account for fact that we put trailing slashes in our PATH walk. 2677case $as_dir in #(( 2678 ./ | /[cC]/* | \ 2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2681 /usr/ucb/* ) ;; 2682 *) 2683 # OSF1 and SCO ODT 3.0 have their own names for install. 2684 # Don't use installbsd from OSF since it installs stuff as root 2685 # by default. 2686 for ac_prog in ginstall scoinst install; do 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2689 if test $ac_prog = install && 2690 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2691 # AIX install. It has an incompatible calling convention. 2692 : 2693 elif test $ac_prog = install && 2694 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # program-specific install script used by HP pwplus--don't use. 2696 : 2697 else 2698 rm -rf conftest.one conftest.two conftest.dir 2699 echo one > conftest.one 2700 echo two > conftest.two 2701 mkdir conftest.dir 2702 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2703 test -s conftest.one && test -s conftest.two && 2704 test -s conftest.dir/conftest.one && 2705 test -s conftest.dir/conftest.two 2706 then 2707 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2708 break 3 2709 fi 2710 fi 2711 fi 2712 done 2713 done 2714 ;; 2715esac 2716 2717 done 2718IFS=$as_save_IFS 2719 2720rm -rf conftest.one conftest.two conftest.dir 2721 ;; 2722esac 2723fi 2724 if test ${ac_cv_path_install+y}; then 2725 INSTALL=$ac_cv_path_install 2726 else 2727 # As a last resort, use the slow shell script. Don't cache a 2728 # value for INSTALL within a source directory, because that will 2729 # break other packages using the cache if that directory is 2730 # removed, or if the value is a relative name. 2731 INSTALL=$ac_install_sh 2732 fi 2733fi 2734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2735printf "%s\n" "$INSTALL" >&6; } 2736 2737# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2738# It thinks the first close brace ends the variable substitution. 2739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2740 2741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2742 2743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2744 2745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2746printf %s "checking whether sleep supports fractional seconds... " >&6; } 2747if test ${am_cv_sleep_fractional_seconds+y} 2748then : 2749 printf %s "(cached) " >&6 2750else case e in #( 2751 e) if sleep 0.001 2>/dev/null 2752then : 2753 am_cv_sleep_fractional_seconds=yes 2754else case e in #( 2755 e) am_cv_sleep_fractional_seconds=no ;; 2756esac 2757fi 2758 ;; 2759esac 2760fi 2761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2762printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2763 2764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2765printf %s "checking filesystem timestamp resolution... " >&6; } 2766if test ${am_cv_filesystem_timestamp_resolution+y} 2767then : 2768 printf %s "(cached) " >&6 2769else case e in #( 2770 e) # Default to the worst case. 2771am_cv_filesystem_timestamp_resolution=2 2772 2773# Only try to go finer than 1 sec if sleep can do it. 2774# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2775# - 1 sec is not much of a win compared to 2 sec, and 2776# - it takes 2 seconds to perform the test whether 1 sec works. 2777# 2778# Instead, just use the default 2s on platforms that have 1s resolution, 2779# accept the extra 1s delay when using $sleep in the Automake tests, in 2780# exchange for not incurring the 2s delay for running the test for all 2781# packages. 2782# 2783am_try_resolutions= 2784if test "$am_cv_sleep_fractional_seconds" = yes; then 2785 # Even a millisecond often causes a bunch of false positives, 2786 # so just try a hundredth of a second. The time saved between .001 and 2787 # .01 is not terribly consequential. 2788 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2789fi 2790 2791# In order to catch current-generation FAT out, we must *modify* files 2792# that already exist; the *creation* timestamp is finer. Use names 2793# that make ls -t sort them differently when they have equal 2794# timestamps than when they have distinct timestamps, keeping 2795# in mind that ls -t prints the *newest* file first. 2796rm -f conftest.ts? 2797: > conftest.ts1 2798: > conftest.ts2 2799: > conftest.ts3 2800 2801# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2802# clobber the current shell's arguments. (Outer-level square brackets 2803# are removed by m4; they're present so that m4 does not expand 2804# <dollar><star>; be careful, easy to get confused.) 2805if ( 2806 set X `ls -t conftest.ts[12]` && 2807 { 2808 test "$*" != "X conftest.ts1 conftest.ts2" || 2809 test "$*" != "X conftest.ts2 conftest.ts1"; 2810 } 2811); then :; else 2812 # If neither matched, then we have a broken ls. This can happen 2813 # if, for instance, CONFIG_SHELL is bash and it inherits a 2814 # broken ls alias from the environment. This has actually 2815 # happened. Such a system could not be considered "sane". 2816 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2818printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2819as_fn_error $? "ls -t produces unexpected output. 2820Make sure there is not a broken ls alias in your environment. 2821See 'config.log' for more details" "$LINENO" 5; } 2822fi 2823 2824for am_try_res in $am_try_resolutions; do 2825 # Any one fine-grained sleep might happen to cross the boundary 2826 # between two values of a coarser actual resolution, but if we do 2827 # two fine-grained sleeps in a row, at least one of them will fall 2828 # entirely within a coarse interval. 2829 echo alpha > conftest.ts1 2830 sleep $am_try_res 2831 echo beta > conftest.ts2 2832 sleep $am_try_res 2833 echo gamma > conftest.ts3 2834 2835 # We assume that 'ls -t' will make use of high-resolution 2836 # timestamps if the operating system supports them at all. 2837 if (set X `ls -t conftest.ts?` && 2838 test "$2" = conftest.ts3 && 2839 test "$3" = conftest.ts2 && 2840 test "$4" = conftest.ts1); then 2841 # 2842 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2843 # because we don't need to test make. 2844 make_ok=true 2845 if test $am_try_res != 1; then 2846 # But if we've succeeded so far with a subsecond resolution, we 2847 # have one more thing to check: make. It can happen that 2848 # everything else supports the subsecond mtimes, but make doesn't; 2849 # notably on macOS, which ships make 3.81 from 2006 (the last one 2850 # released under GPLv2). https://bugs.gnu.org/68808 2851 # 2852 # We test $MAKE if it is defined in the environment, else "make". 2853 # It might get overridden later, but our hope is that in practice 2854 # it does not matter: it is the system "make" which is (by far) 2855 # the most likely to be broken, whereas if the user overrides it, 2856 # probably they did so with a better, or at least not worse, make. 2857 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2858 # 2859 # Create a Makefile (real tab character here): 2860 rm -f conftest.mk 2861 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2862 echo ' touch conftest.ts2' >>conftest.mk 2863 # 2864 # Now, running 2865 # touch conftest.ts1; touch conftest.ts2; make 2866 # should touch ts1 because ts2 is newer. This could happen by luck, 2867 # but most often, it will fail if make's support is insufficient. So 2868 # test for several consecutive successes. 2869 # 2870 # (We reuse conftest.ts[12] because we still want to modify existing 2871 # files, not create new ones, per above.) 2872 n=0 2873 make=${MAKE-make} 2874 until test $n -eq 3; do 2875 echo one > conftest.ts1 2876 sleep $am_try_res 2877 echo two > conftest.ts2 # ts2 should now be newer than ts1 2878 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2879 make_ok=false 2880 break # out of $n loop 2881 fi 2882 n=`expr $n + 1` 2883 done 2884 fi 2885 # 2886 if $make_ok; then 2887 # Everything we know to check worked out, so call this resolution good. 2888 am_cv_filesystem_timestamp_resolution=$am_try_res 2889 break # out of $am_try_res loop 2890 fi 2891 # Otherwise, we'll go on to check the next resolution. 2892 fi 2893done 2894rm -f conftest.ts? 2895# (end _am_filesystem_timestamp_resolution) 2896 ;; 2897esac 2898fi 2899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2900printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2901 2902# This check should not be cached, as it may vary across builds of 2903# different projects. 2904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2905printf %s "checking whether build environment is sane... " >&6; } 2906# Reject unsafe characters in $srcdir or the absolute working directory 2907# name. Accept space and tab only in the latter. 2908am_lf=' 2909' 2910case `pwd` in 2911 *[\\\"\#\$\&\'\`$am_lf]*) 2912 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2913esac 2914case $srcdir in 2915 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2916 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2917esac 2918 2919# Do 'set' in a subshell so we don't clobber the current shell's 2920# arguments. Must try -L first in case configure is actually a 2921# symlink; some systems play weird games with the mod time of symlinks 2922# (eg FreeBSD returns the mod time of the symlink's containing 2923# directory). 2924am_build_env_is_sane=no 2925am_has_slept=no 2926rm -f conftest.file 2927for am_try in 1 2; do 2928 echo "timestamp, slept: $am_has_slept" > conftest.file 2929 if ( 2930 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2931 if test "$*" = "X"; then 2932 # -L didn't work. 2933 set X `ls -t "$srcdir/configure" conftest.file` 2934 fi 2935 test "$2" = conftest.file 2936 ); then 2937 am_build_env_is_sane=yes 2938 break 2939 fi 2940 # Just in case. 2941 sleep "$am_cv_filesystem_timestamp_resolution" 2942 am_has_slept=yes 2943done 2944 2945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2946printf "%s\n" "$am_build_env_is_sane" >&6; } 2947if test "$am_build_env_is_sane" = no; then 2948 as_fn_error $? "newly created file is older than distributed files! 2949Check your system clock" "$LINENO" 5 2950fi 2951 2952# If we didn't sleep, we still need to ensure time stamps of config.status and 2953# generated files are strictly newer. 2954am_sleep_pid= 2955if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2956then : 2957 2958else case e in #( 2959 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2960 am_sleep_pid=$! 2961 ;; 2962esac 2963fi 2964 2965rm -f conftest.file 2966 2967test "$program_prefix" != NONE && 2968 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2969# Use a double $ so make ignores it. 2970test "$program_suffix" != NONE && 2971 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2972# Double any \ or $. 2973# By default was 's,x,x', remove it if useless. 2974ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2975program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2976 2977 2978# Expand $ac_aux_dir to an absolute path. 2979am_aux_dir=`cd "$ac_aux_dir" && pwd` 2980 2981 2982 if test x"${MISSING+set}" != xset; then 2983 MISSING="\${SHELL} '$am_aux_dir/missing'" 2984fi 2985# Use eval to expand $SHELL 2986if eval "$MISSING --is-lightweight"; then 2987 am_missing_run="$MISSING " 2988else 2989 am_missing_run= 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2991printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2992fi 2993 2994if test x"${install_sh+set}" != xset; then 2995 case $am_aux_dir in 2996 *\ * | *\ *) 2997 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2998 *) 2999 install_sh="\${SHELL} $am_aux_dir/install-sh" 3000 esac 3001fi 3002 3003# Installed binaries are usually stripped using 'strip' when the user 3004# run "make install-strip". However 'strip' might not be the right 3005# tool to use in cross-compilation environments, therefore Automake 3006# will honor the 'STRIP' environment variable to overrule this program. 3007if test "$cross_compiling" != no; then 3008 if test -n "$ac_tool_prefix"; then 3009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3010set dummy ${ac_tool_prefix}strip; ac_word=$2 3011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012printf %s "checking for $ac_word... " >&6; } 3013if test ${ac_cv_prog_STRIP+y} 3014then : 3015 printf %s "(cached) " >&6 3016else case e in #( 3017 e) if test -n "$STRIP"; then 3018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3019else 3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021for as_dir in $PATH 3022do 3023 IFS=$as_save_IFS 3024 case $as_dir in #((( 3025 '') as_dir=./ ;; 3026 */) ;; 3027 *) as_dir=$as_dir/ ;; 3028 esac 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039fi ;; 3040esac 3041fi 3042STRIP=$ac_cv_prog_STRIP 3043if test -n "$STRIP"; then 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3045printf "%s\n" "$STRIP" >&6; } 3046else 3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048printf "%s\n" "no" >&6; } 3049fi 3050 3051 3052fi 3053if test -z "$ac_cv_prog_STRIP"; then 3054 ac_ct_STRIP=$STRIP 3055 # Extract the first word of "strip", so it can be a program name with args. 3056set dummy strip; ac_word=$2 3057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3058printf %s "checking for $ac_word... " >&6; } 3059if test ${ac_cv_prog_ac_ct_STRIP+y} 3060then : 3061 printf %s "(cached) " >&6 3062else case e in #( 3063 e) if test -n "$ac_ct_STRIP"; then 3064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3065else 3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067for as_dir in $PATH 3068do 3069 IFS=$as_save_IFS 3070 case $as_dir in #((( 3071 '') as_dir=./ ;; 3072 */) ;; 3073 *) as_dir=$as_dir/ ;; 3074 esac 3075 for ac_exec_ext in '' $ac_executable_extensions; do 3076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3077 ac_cv_prog_ac_ct_STRIP="strip" 3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081done 3082 done 3083IFS=$as_save_IFS 3084 3085fi ;; 3086esac 3087fi 3088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3089if test -n "$ac_ct_STRIP"; then 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3091printf "%s\n" "$ac_ct_STRIP" >&6; } 3092else 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094printf "%s\n" "no" >&6; } 3095fi 3096 3097 if test "x$ac_ct_STRIP" = x; then 3098 STRIP=":" 3099 else 3100 case $cross_compiling:$ac_tool_warned in 3101yes:) 3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3103printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3104ac_tool_warned=yes ;; 3105esac 3106 STRIP=$ac_ct_STRIP 3107 fi 3108else 3109 STRIP="$ac_cv_prog_STRIP" 3110fi 3111 3112fi 3113INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3114 3115 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3117printf %s "checking for a race-free mkdir -p... " >&6; } 3118if test -z "$MKDIR_P"; then 3119 if test ${ac_cv_path_mkdir+y} 3120then : 3121 printf %s "(cached) " >&6 3122else case e in #( 3123 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3125do 3126 IFS=$as_save_IFS 3127 case $as_dir in #((( 3128 '') as_dir=./ ;; 3129 */) ;; 3130 *) as_dir=$as_dir/ ;; 3131 esac 3132 for ac_prog in mkdir gmkdir; do 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3135 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3136 'mkdir ('*'coreutils) '* | \ 3137 *'BusyBox '* | \ 3138 'mkdir (fileutils) '4.1*) 3139 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3140 break 3;; 3141 esac 3142 done 3143 done 3144 done 3145IFS=$as_save_IFS 3146 ;; 3147esac 3148fi 3149 3150 test -d ./--version && rmdir ./--version 3151 if test ${ac_cv_path_mkdir+y}; then 3152 MKDIR_P="$ac_cv_path_mkdir -p" 3153 else 3154 # As a last resort, use plain mkdir -p, 3155 # in the hope it doesn't have the bugs of ancient mkdir. 3156 MKDIR_P='mkdir -p' 3157 fi 3158fi 3159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3160printf "%s\n" "$MKDIR_P" >&6; } 3161 3162for ac_prog in gawk mawk nawk awk 3163do 3164 # Extract the first word of "$ac_prog", so it can be a program name with args. 3165set dummy $ac_prog; ac_word=$2 3166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3167printf %s "checking for $ac_word... " >&6; } 3168if test ${ac_cv_prog_AWK+y} 3169then : 3170 printf %s "(cached) " >&6 3171else case e in #( 3172 e) if test -n "$AWK"; then 3173 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3174else 3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3176for as_dir in $PATH 3177do 3178 IFS=$as_save_IFS 3179 case $as_dir in #((( 3180 '') as_dir=./ ;; 3181 */) ;; 3182 *) as_dir=$as_dir/ ;; 3183 esac 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3186 ac_cv_prog_AWK="$ac_prog" 3187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191 done 3192IFS=$as_save_IFS 3193 3194fi ;; 3195esac 3196fi 3197AWK=$ac_cv_prog_AWK 3198if test -n "$AWK"; then 3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3200printf "%s\n" "$AWK" >&6; } 3201else 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203printf "%s\n" "no" >&6; } 3204fi 3205 3206 3207 test -n "$AWK" && break 3208done 3209 3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3211printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3212set x ${MAKE-make} 3213ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3214if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3215then : 3216 printf %s "(cached) " >&6 3217else case e in #( 3218 e) cat >conftest.make <<\_ACEOF 3219SHELL = /bin/sh 3220all: 3221 @echo '@@@%%%=$(MAKE)=@@@%%%' 3222_ACEOF 3223# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3224case `${MAKE-make} -f conftest.make 2>/dev/null` in 3225 *@@@%%%=?*=@@@%%%*) 3226 eval ac_cv_prog_make_${ac_make}_set=yes;; 3227 *) 3228 eval ac_cv_prog_make_${ac_make}_set=no;; 3229esac 3230rm -f conftest.make ;; 3231esac 3232fi 3233if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3235printf "%s\n" "yes" >&6; } 3236 SET_MAKE= 3237else 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3239printf "%s\n" "no" >&6; } 3240 SET_MAKE="MAKE=${MAKE-make}" 3241fi 3242 3243rm -rf .tst 2>/dev/null 3244mkdir .tst 2>/dev/null 3245if test -d .tst; then 3246 am__leading_dot=. 3247else 3248 am__leading_dot=_ 3249fi 3250rmdir .tst 2>/dev/null 3251 3252AM_DEFAULT_VERBOSITY=1 3253# Check whether --enable-silent-rules was given. 3254if test ${enable_silent_rules+y} 3255then : 3256 enableval=$enable_silent_rules; 3257fi 3258 3259am_make=${MAKE-make} 3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3261printf %s "checking whether $am_make supports nested variables... " >&6; } 3262if test ${am_cv_make_support_nested_variables+y} 3263then : 3264 printf %s "(cached) " >&6 3265else case e in #( 3266 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3267BAR0=false 3268BAR1=true 3269V=1 3270am__doit: 3271 @$(TRUE) 3272.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3273 am_cv_make_support_nested_variables=yes 3274else 3275 am_cv_make_support_nested_variables=no 3276fi ;; 3277esac 3278fi 3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3280printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3281AM_BACKSLASH='\' 3282 3283am__rm_f_notfound= 3284if (rm -f && rm -fr && rm -rf) 2>/dev/null 3285then : 3286 3287else case e in #( 3288 e) am__rm_f_notfound='""' ;; 3289esac 3290fi 3291 3292 3293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3294printf %s "checking xargs -n works... " >&6; } 3295if test ${am_cv_xargs_n_works+y} 3296then : 3297 printf %s "(cached) " >&6 3298else case e in #( 3299 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 33003" 3301then : 3302 am_cv_xargs_n_works=yes 3303else case e in #( 3304 e) am_cv_xargs_n_works=no ;; 3305esac 3306fi ;; 3307esac 3308fi 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3310printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3311if test "$am_cv_xargs_n_works" = yes 3312then : 3313 am__xargs_n='xargs -n' 3314else case e in #( 3315 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3316 ;; 3317esac 3318fi 3319 3320if test "`cd $srcdir && pwd`" != "`pwd`"; then 3321 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3322 # is not polluted with repeated "-I." 3323 am__isrc=' -I$(srcdir)' 3324 # test to see if srcdir already configured 3325 if test -f $srcdir/config.status; then 3326 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3327 fi 3328fi 3329 3330# test whether we have cygpath 3331if test -z "$CYGPATH_W"; then 3332 if (cygpath --version) >/dev/null 2>/dev/null; then 3333 CYGPATH_W='cygpath -w' 3334 else 3335 CYGPATH_W=echo 3336 fi 3337fi 3338 3339 3340# Define the identity of the package. 3341 PACKAGE='libXxf86vm' 3342 VERSION='1.1.6' 3343 3344 3345printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3346 3347 3348printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3349 3350# Some tools Automake needs. 3351 3352ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3353 3354 3355AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3356 3357 3358AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3359 3360 3361AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3362 3363 3364MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3365 3366# For better backward compatibility. To be removed once Automake 1.9.x 3367# dies out for good. For more background, see: 3368# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3369# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3370mkdir_p='$(MKDIR_P)' 3371 3372# We need awk for the "check" target (and possibly the TAP driver). The 3373# system "awk" is bad on some platforms. 3374# Always define AMTAR for backward compatibility. Yes, it's still used 3375# in the wild :-( We should find a proper way to deprecate it ... 3376AMTAR='$${TAR-tar}' 3377 3378 3379# We'll loop over all known methods to create a tar archive until one works. 3380_am_tools='gnutar pax cpio none' 3381 3382am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3383 3384 3385 3386 3387 3388# Variables for tags utilities; see am/tags.am 3389if test -z "$CTAGS"; then 3390 CTAGS=ctags 3391fi 3392 3393if test -z "$ETAGS"; then 3394 ETAGS=etags 3395fi 3396 3397if test -z "$CSCOPE"; then 3398 CSCOPE=cscope 3399fi 3400 3401 3402 3403 3404 3405 3406 3407 3408# Initialize libtool 3409case `pwd` in 3410 *\ * | *\ *) 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3412printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3413esac 3414 3415 3416 3417macro_version='2.5.4' 3418macro_revision='2.5.4' 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433ltmain=$ac_aux_dir/ltmain.sh 3434 3435 3436 3437 # Make sure we can run config.sub. 3438$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3439 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3440 3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3442printf %s "checking build system type... " >&6; } 3443if test ${ac_cv_build+y} 3444then : 3445 printf %s "(cached) " >&6 3446else case e in #( 3447 e) ac_build_alias=$build_alias 3448test "x$ac_build_alias" = x && 3449 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3450test "x$ac_build_alias" = x && 3451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3452ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3453 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3454 ;; 3455esac 3456fi 3457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3458printf "%s\n" "$ac_cv_build" >&6; } 3459case $ac_cv_build in 3460*-*-*) ;; 3461*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3462esac 3463build=$ac_cv_build 3464ac_save_IFS=$IFS; IFS='-' 3465set x $ac_cv_build 3466shift 3467build_cpu=$1 3468build_vendor=$2 3469shift; shift 3470# Remember, the first character of IFS is used to create $*, 3471# except with old shells: 3472build_os=$* 3473IFS=$ac_save_IFS 3474case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3475 3476 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3478printf %s "checking host system type... " >&6; } 3479if test ${ac_cv_host+y} 3480then : 3481 printf %s "(cached) " >&6 3482else case e in #( 3483 e) if test "x$host_alias" = x; then 3484 ac_cv_host=$ac_cv_build 3485else 3486 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3487 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3488fi 3489 ;; 3490esac 3491fi 3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3493printf "%s\n" "$ac_cv_host" >&6; } 3494case $ac_cv_host in 3495*-*-*) ;; 3496*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3497esac 3498host=$ac_cv_host 3499ac_save_IFS=$IFS; IFS='-' 3500set x $ac_cv_host 3501shift 3502host_cpu=$1 3503host_vendor=$2 3504shift; shift 3505# Remember, the first character of IFS is used to create $*, 3506# except with old shells: 3507host_os=$* 3508IFS=$ac_save_IFS 3509case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3510 3511 3512# Backslashify metacharacters that are still active within 3513# double-quoted strings. 3514sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3515 3516# Same as above, but do not quote variable references. 3517double_quote_subst='s/\(["`\\]\)/\\\1/g' 3518 3519# Sed substitution to delay expansion of an escaped shell variable in a 3520# double_quote_subst'ed string. 3521delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3522 3523# Sed substitution to delay expansion of an escaped single quote. 3524delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3525 3526# Sed substitution to avoid accidental globbing in evaled expressions 3527no_glob_subst='s/\*/\\\*/g' 3528 3529ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3530ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3531ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3532 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3534printf %s "checking how to print strings... " >&6; } 3535# Test print first, because it will be a builtin if present. 3536if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3537 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3538 ECHO='print -r --' 3539elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3540 ECHO='printf %s\n' 3541else 3542 # Use this function as a fallback that always works. 3543 func_fallback_echo () 3544 { 3545 eval 'cat <<_LTECHO_EOF 3546$1 3547_LTECHO_EOF' 3548 } 3549 ECHO='func_fallback_echo' 3550fi 3551 3552# func_echo_all arg... 3553# Invoke $ECHO with all args, space-separated. 3554func_echo_all () 3555{ 3556 $ECHO "" 3557} 3558 3559case $ECHO in 3560 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3561printf "%s\n" "printf" >&6; } ;; 3562 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3563printf "%s\n" "print -r" >&6; } ;; 3564 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3565printf "%s\n" "cat" >&6; } ;; 3566esac 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590DEPDIR="${am__leading_dot}deps" 3591 3592ac_config_commands="$ac_config_commands depfiles" 3593 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3595printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3596cat > confinc.mk << 'END' 3597am__doit: 3598 @echo this is the am__doit target >confinc.out 3599.PHONY: am__doit 3600END 3601am__include="#" 3602am__quote= 3603# BSD make does it like this. 3604echo '.include "confinc.mk" # ignored' > confmf.BSD 3605# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3606echo 'include confinc.mk # ignored' > confmf.GNU 3607_am_result=no 3608for s in GNU BSD; do 3609 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3610 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); } 3614 case $?:`cat confinc.out 2>/dev/null` in #( 3615 '0:this is the am__doit target') : 3616 case $s in #( 3617 BSD) : 3618 am__include='.include' am__quote='"' ;; #( 3619 *) : 3620 am__include='include' am__quote='' ;; 3621esac ;; #( 3622 *) : 3623 ;; 3624esac 3625 if test "$am__include" != "#"; then 3626 _am_result="yes ($s style)" 3627 break 3628 fi 3629done 3630rm -f confinc.* confmf.* 3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3632printf "%s\n" "${_am_result}" >&6; } 3633 3634# Check whether --enable-dependency-tracking was given. 3635if test ${enable_dependency_tracking+y} 3636then : 3637 enableval=$enable_dependency_tracking; 3638fi 3639 3640if test "x$enable_dependency_tracking" != xno; then 3641 am_depcomp="$ac_aux_dir/depcomp" 3642 AMDEPBACKSLASH='\' 3643 am__nodep='_no' 3644fi 3645 if test "x$enable_dependency_tracking" != xno; then 3646 AMDEP_TRUE= 3647 AMDEP_FALSE='#' 3648else 3649 AMDEP_TRUE='#' 3650 AMDEP_FALSE= 3651fi 3652 3653 3654ac_ext=c 3655ac_cpp='$CPP $CPPFLAGS' 3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3658ac_compiler_gnu=$ac_cv_c_compiler_gnu 3659if test -n "$ac_tool_prefix"; then 3660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3661set dummy ${ac_tool_prefix}gcc; ac_word=$2 3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3663printf %s "checking for $ac_word... " >&6; } 3664if test ${ac_cv_prog_CC+y} 3665then : 3666 printf %s "(cached) " >&6 3667else case e in #( 3668 e) if test -n "$CC"; then 3669 ac_cv_prog_CC="$CC" # Let the user override the test. 3670else 3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3672for as_dir in $PATH 3673do 3674 IFS=$as_save_IFS 3675 case $as_dir in #((( 3676 '') as_dir=./ ;; 3677 */) ;; 3678 *) as_dir=$as_dir/ ;; 3679 esac 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3682 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3684 break 2 3685 fi 3686done 3687 done 3688IFS=$as_save_IFS 3689 3690fi ;; 3691esac 3692fi 3693CC=$ac_cv_prog_CC 3694if test -n "$CC"; then 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3696printf "%s\n" "$CC" >&6; } 3697else 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699printf "%s\n" "no" >&6; } 3700fi 3701 3702 3703fi 3704if test -z "$ac_cv_prog_CC"; then 3705 ac_ct_CC=$CC 3706 # Extract the first word of "gcc", so it can be a program name with args. 3707set dummy gcc; ac_word=$2 3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3709printf %s "checking for $ac_word... " >&6; } 3710if test ${ac_cv_prog_ac_ct_CC+y} 3711then : 3712 printf %s "(cached) " >&6 3713else case e in #( 3714 e) if test -n "$ac_ct_CC"; then 3715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3716else 3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH 3719do 3720 IFS=$as_save_IFS 3721 case $as_dir in #((( 3722 '') as_dir=./ ;; 3723 */) ;; 3724 *) as_dir=$as_dir/ ;; 3725 esac 3726 for ac_exec_ext in '' $ac_executable_extensions; do 3727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3728 ac_cv_prog_ac_ct_CC="gcc" 3729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3730 break 2 3731 fi 3732done 3733 done 3734IFS=$as_save_IFS 3735 3736fi ;; 3737esac 3738fi 3739ac_ct_CC=$ac_cv_prog_ac_ct_CC 3740if test -n "$ac_ct_CC"; then 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3742printf "%s\n" "$ac_ct_CC" >&6; } 3743else 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745printf "%s\n" "no" >&6; } 3746fi 3747 3748 if test "x$ac_ct_CC" = x; then 3749 CC="" 3750 else 3751 case $cross_compiling:$ac_tool_warned in 3752yes:) 3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3754printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3755ac_tool_warned=yes ;; 3756esac 3757 CC=$ac_ct_CC 3758 fi 3759else 3760 CC="$ac_cv_prog_CC" 3761fi 3762 3763if test -z "$CC"; then 3764 if test -n "$ac_tool_prefix"; then 3765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3766set dummy ${ac_tool_prefix}cc; ac_word=$2 3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768printf %s "checking for $ac_word... " >&6; } 3769if test ${ac_cv_prog_CC+y} 3770then : 3771 printf %s "(cached) " >&6 3772else case e in #( 3773 e) if test -n "$CC"; then 3774 ac_cv_prog_CC="$CC" # Let the user override the test. 3775else 3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777for as_dir in $PATH 3778do 3779 IFS=$as_save_IFS 3780 case $as_dir in #((( 3781 '') as_dir=./ ;; 3782 */) ;; 3783 *) as_dir=$as_dir/ ;; 3784 esac 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_CC="${ac_tool_prefix}cc" 3788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791done 3792 done 3793IFS=$as_save_IFS 3794 3795fi ;; 3796esac 3797fi 3798CC=$ac_cv_prog_CC 3799if test -n "$CC"; then 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3801printf "%s\n" "$CC" >&6; } 3802else 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804printf "%s\n" "no" >&6; } 3805fi 3806 3807 3808 fi 3809fi 3810if test -z "$CC"; then 3811 # Extract the first word of "cc", so it can be a program name with args. 3812set dummy cc; ac_word=$2 3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3814printf %s "checking for $ac_word... " >&6; } 3815if test ${ac_cv_prog_CC+y} 3816then : 3817 printf %s "(cached) " >&6 3818else case e in #( 3819 e) if test -n "$CC"; then 3820 ac_cv_prog_CC="$CC" # Let the user override the test. 3821else 3822 ac_prog_rejected=no 3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3824for as_dir in $PATH 3825do 3826 IFS=$as_save_IFS 3827 case $as_dir in #((( 3828 '') as_dir=./ ;; 3829 */) ;; 3830 *) as_dir=$as_dir/ ;; 3831 esac 3832 for ac_exec_ext in '' $ac_executable_extensions; do 3833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3834 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3835 ac_prog_rejected=yes 3836 continue 3837 fi 3838 ac_cv_prog_CC="cc" 3839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3840 break 2 3841 fi 3842done 3843 done 3844IFS=$as_save_IFS 3845 3846if test $ac_prog_rejected = yes; then 3847 # We found a bogon in the path, so make sure we never use it. 3848 set dummy $ac_cv_prog_CC 3849 shift 3850 if test $# != 0; then 3851 # We chose a different compiler from the bogus one. 3852 # However, it has the same basename, so the bogon will be chosen 3853 # first if we set CC to just the basename; use the full file name. 3854 shift 3855 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3856 fi 3857fi 3858fi ;; 3859esac 3860fi 3861CC=$ac_cv_prog_CC 3862if test -n "$CC"; then 3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3864printf "%s\n" "$CC" >&6; } 3865else 3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3867printf "%s\n" "no" >&6; } 3868fi 3869 3870 3871fi 3872if test -z "$CC"; then 3873 if test -n "$ac_tool_prefix"; then 3874 for ac_prog in cl.exe 3875 do 3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3877set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3879printf %s "checking for $ac_word... " >&6; } 3880if test ${ac_cv_prog_CC+y} 3881then : 3882 printf %s "(cached) " >&6 3883else case e in #( 3884 e) if test -n "$CC"; then 3885 ac_cv_prog_CC="$CC" # Let the user override the test. 3886else 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH 3889do 3890 IFS=$as_save_IFS 3891 case $as_dir in #((( 3892 '') as_dir=./ ;; 3893 */) ;; 3894 *) as_dir=$as_dir/ ;; 3895 esac 3896 for ac_exec_ext in '' $ac_executable_extensions; do 3897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3900 break 2 3901 fi 3902done 3903 done 3904IFS=$as_save_IFS 3905 3906fi ;; 3907esac 3908fi 3909CC=$ac_cv_prog_CC 3910if test -n "$CC"; then 3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3912printf "%s\n" "$CC" >&6; } 3913else 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3915printf "%s\n" "no" >&6; } 3916fi 3917 3918 3919 test -n "$CC" && break 3920 done 3921fi 3922if test -z "$CC"; then 3923 ac_ct_CC=$CC 3924 for ac_prog in cl.exe 3925do 3926 # Extract the first word of "$ac_prog", so it can be a program name with args. 3927set dummy $ac_prog; ac_word=$2 3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3929printf %s "checking for $ac_word... " >&6; } 3930if test ${ac_cv_prog_ac_ct_CC+y} 3931then : 3932 printf %s "(cached) " >&6 3933else case e in #( 3934 e) if test -n "$ac_ct_CC"; then 3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3936else 3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938for as_dir in $PATH 3939do 3940 IFS=$as_save_IFS 3941 case $as_dir in #((( 3942 '') as_dir=./ ;; 3943 */) ;; 3944 *) as_dir=$as_dir/ ;; 3945 esac 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3948 ac_cv_prog_ac_ct_CC="$ac_prog" 3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3950 break 2 3951 fi 3952done 3953 done 3954IFS=$as_save_IFS 3955 3956fi ;; 3957esac 3958fi 3959ac_ct_CC=$ac_cv_prog_ac_ct_CC 3960if test -n "$ac_ct_CC"; then 3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3962printf "%s\n" "$ac_ct_CC" >&6; } 3963else 3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3965printf "%s\n" "no" >&6; } 3966fi 3967 3968 3969 test -n "$ac_ct_CC" && break 3970done 3971 3972 if test "x$ac_ct_CC" = x; then 3973 CC="" 3974 else 3975 case $cross_compiling:$ac_tool_warned in 3976yes:) 3977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3978printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3979ac_tool_warned=yes ;; 3980esac 3981 CC=$ac_ct_CC 3982 fi 3983fi 3984 3985fi 3986if test -z "$CC"; then 3987 if test -n "$ac_tool_prefix"; then 3988 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3989set dummy ${ac_tool_prefix}clang; ac_word=$2 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991printf %s "checking for $ac_word... " >&6; } 3992if test ${ac_cv_prog_CC+y} 3993then : 3994 printf %s "(cached) " >&6 3995else case e in #( 3996 e) if test -n "$CC"; then 3997 ac_cv_prog_CC="$CC" # Let the user override the test. 3998else 3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000for as_dir in $PATH 4001do 4002 IFS=$as_save_IFS 4003 case $as_dir in #((( 4004 '') as_dir=./ ;; 4005 */) ;; 4006 *) as_dir=$as_dir/ ;; 4007 esac 4008 for ac_exec_ext in '' $ac_executable_extensions; do 4009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4010 ac_cv_prog_CC="${ac_tool_prefix}clang" 4011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4012 break 2 4013 fi 4014done 4015 done 4016IFS=$as_save_IFS 4017 4018fi ;; 4019esac 4020fi 4021CC=$ac_cv_prog_CC 4022if test -n "$CC"; then 4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4024printf "%s\n" "$CC" >&6; } 4025else 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4027printf "%s\n" "no" >&6; } 4028fi 4029 4030 4031fi 4032if test -z "$ac_cv_prog_CC"; then 4033 ac_ct_CC=$CC 4034 # Extract the first word of "clang", so it can be a program name with args. 4035set dummy clang; ac_word=$2 4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037printf %s "checking for $ac_word... " >&6; } 4038if test ${ac_cv_prog_ac_ct_CC+y} 4039then : 4040 printf %s "(cached) " >&6 4041else case e in #( 4042 e) if test -n "$ac_ct_CC"; then 4043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4044else 4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4046for as_dir in $PATH 4047do 4048 IFS=$as_save_IFS 4049 case $as_dir in #((( 4050 '') as_dir=./ ;; 4051 */) ;; 4052 *) as_dir=$as_dir/ ;; 4053 esac 4054 for ac_exec_ext in '' $ac_executable_extensions; do 4055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4056 ac_cv_prog_ac_ct_CC="clang" 4057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4058 break 2 4059 fi 4060done 4061 done 4062IFS=$as_save_IFS 4063 4064fi ;; 4065esac 4066fi 4067ac_ct_CC=$ac_cv_prog_ac_ct_CC 4068if test -n "$ac_ct_CC"; then 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4070printf "%s\n" "$ac_ct_CC" >&6; } 4071else 4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4073printf "%s\n" "no" >&6; } 4074fi 4075 4076 if test "x$ac_ct_CC" = x; then 4077 CC="" 4078 else 4079 case $cross_compiling:$ac_tool_warned in 4080yes:) 4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4083ac_tool_warned=yes ;; 4084esac 4085 CC=$ac_ct_CC 4086 fi 4087else 4088 CC="$ac_cv_prog_CC" 4089fi 4090 4091fi 4092 4093 4094test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4095printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4096as_fn_error $? "no acceptable C compiler found in \$PATH 4097See 'config.log' for more details" "$LINENO" 5; } 4098 4099# Provide some information about the compiler. 4100printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4101set X $ac_compile 4102ac_compiler=$2 4103for ac_option in --version -v -V -qversion -version; do 4104 { { ac_try="$ac_compiler $ac_option >&5" 4105case "(($ac_try" in 4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4107 *) ac_try_echo=$ac_try;; 4108esac 4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4110printf "%s\n" "$ac_try_echo"; } >&5 4111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4112 ac_status=$? 4113 if test -s conftest.err; then 4114 sed '10a\ 4115... rest of stderr output deleted ... 4116 10q' conftest.err >conftest.er1 4117 cat conftest.er1 >&5 4118 fi 4119 rm -f conftest.er1 conftest.err 4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4121 test $ac_status = 0; } 4122done 4123 4124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125/* end confdefs.h. */ 4126 4127int 4128main (void) 4129{ 4130 4131 ; 4132 return 0; 4133} 4134_ACEOF 4135ac_clean_files_save=$ac_clean_files 4136ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4137# Try to create an executable without -o first, disregard a.out. 4138# It will help us diagnose broken compilers, and finding out an intuition 4139# of exeext. 4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4141printf %s "checking whether the C compiler works... " >&6; } 4142ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4143 4144# The possible output files: 4145ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4146 4147ac_rmfiles= 4148for ac_file in $ac_files 4149do 4150 case $ac_file in 4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4152 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4153 esac 4154done 4155rm -f $ac_rmfiles 4156 4157if { { ac_try="$ac_link_default" 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_link_default") 2>&5 4165 ac_status=$? 4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4167 test $ac_status = 0; } 4168then : 4169 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4170# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4171# in a Makefile. We should not override ac_cv_exeext if it was cached, 4172# so that the user can short-circuit this test for compilers unknown to 4173# Autoconf. 4174for ac_file in $ac_files '' 4175do 4176 test -f "$ac_file" || continue 4177 case $ac_file in 4178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4179 ;; 4180 [ab].out ) 4181 # We found the default executable, but exeext='' is most 4182 # certainly right. 4183 break;; 4184 *.* ) 4185 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4186 then :; else 4187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4188 fi 4189 # We set ac_cv_exeext here because the later test for it is not 4190 # safe: cross compilers may not add the suffix if given an '-o' 4191 # argument, so we may need to know it at that point already. 4192 # Even if this section looks crufty: it has the advantage of 4193 # actually working. 4194 break;; 4195 * ) 4196 break;; 4197 esac 4198done 4199test "$ac_cv_exeext" = no && ac_cv_exeext= 4200 4201else case e in #( 4202 e) ac_file='' ;; 4203esac 4204fi 4205if test -z "$ac_file" 4206then : 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208printf "%s\n" "no" >&6; } 4209printf "%s\n" "$as_me: failed program was:" >&5 4210sed 's/^/| /' conftest.$ac_ext >&5 4211 4212{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4213printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4214as_fn_error 77 "C compiler cannot create executables 4215See 'config.log' for more details" "$LINENO" 5; } 4216else case e in #( 4217 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4218printf "%s\n" "yes" >&6; } ;; 4219esac 4220fi 4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4222printf %s "checking for C compiler default output file name... " >&6; } 4223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4224printf "%s\n" "$ac_file" >&6; } 4225ac_exeext=$ac_cv_exeext 4226 4227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4228ac_clean_files=$ac_clean_files_save 4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4230printf %s "checking for suffix of executables... " >&6; } 4231if { { ac_try="$ac_link" 4232case "(($ac_try" in 4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4234 *) ac_try_echo=$ac_try;; 4235esac 4236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4237printf "%s\n" "$ac_try_echo"; } >&5 4238 (eval "$ac_link") 2>&5 4239 ac_status=$? 4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4241 test $ac_status = 0; } 4242then : 4243 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4244# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4245# work properly (i.e., refer to 'conftest.exe'), while it won't with 4246# 'rm'. 4247for ac_file in conftest.exe conftest conftest.*; do 4248 test -f "$ac_file" || continue 4249 case $ac_file in 4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4252 break;; 4253 * ) break;; 4254 esac 4255done 4256else case e in #( 4257 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4258printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4259as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4260See 'config.log' for more details" "$LINENO" 5; } ;; 4261esac 4262fi 4263rm -f conftest conftest$ac_cv_exeext 4264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4265printf "%s\n" "$ac_cv_exeext" >&6; } 4266 4267rm -f conftest.$ac_ext 4268EXEEXT=$ac_cv_exeext 4269ac_exeext=$EXEEXT 4270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272#include <stdio.h> 4273int 4274main (void) 4275{ 4276FILE *f = fopen ("conftest.out", "w"); 4277 if (!f) 4278 return 1; 4279 return ferror (f) || fclose (f) != 0; 4280 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285ac_clean_files="$ac_clean_files conftest.out" 4286# Check that the compiler produces executables we can run. If not, either 4287# the compiler is broken, or we cross compile. 4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4289printf %s "checking whether we are cross compiling... " >&6; } 4290if test "$cross_compiling" != yes; then 4291 { { ac_try="$ac_link" 4292case "(($ac_try" in 4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4294 *) ac_try_echo=$ac_try;; 4295esac 4296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4297printf "%s\n" "$ac_try_echo"; } >&5 4298 (eval "$ac_link") 2>&5 4299 ac_status=$? 4300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4301 test $ac_status = 0; } 4302 if { ac_try='./conftest$ac_cv_exeext' 4303 { { case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306esac 4307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4308printf "%s\n" "$ac_try_echo"; } >&5 4309 (eval "$ac_try") 2>&5 4310 ac_status=$? 4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4312 test $ac_status = 0; }; }; then 4313 cross_compiling=no 4314 else 4315 if test "$cross_compiling" = maybe; then 4316 cross_compiling=yes 4317 else 4318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4319printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4320as_fn_error 77 "cannot run C compiled programs. 4321If you meant to cross compile, use '--host'. 4322See 'config.log' for more details" "$LINENO" 5; } 4323 fi 4324 fi 4325fi 4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4327printf "%s\n" "$cross_compiling" >&6; } 4328 4329rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4330 conftest.o conftest.obj conftest.out 4331ac_clean_files=$ac_clean_files_save 4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4333printf %s "checking for suffix of object files... " >&6; } 4334if test ${ac_cv_objext+y} 4335then : 4336 printf %s "(cached) " >&6 4337else case e in #( 4338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340 4341int 4342main (void) 4343{ 4344 4345 ; 4346 return 0; 4347} 4348_ACEOF 4349rm -f conftest.o conftest.obj 4350if { { ac_try="$ac_compile" 4351case "(($ac_try" in 4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4353 *) ac_try_echo=$ac_try;; 4354esac 4355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4356printf "%s\n" "$ac_try_echo"; } >&5 4357 (eval "$ac_compile") 2>&5 4358 ac_status=$? 4359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4360 test $ac_status = 0; } 4361then : 4362 for ac_file in conftest.o conftest.obj conftest.*; do 4363 test -f "$ac_file" || continue; 4364 case $ac_file in 4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4367 break;; 4368 esac 4369done 4370else case e in #( 4371 e) printf "%s\n" "$as_me: failed program was:" >&5 4372sed 's/^/| /' conftest.$ac_ext >&5 4373 4374{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4375printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4376as_fn_error $? "cannot compute suffix of object files: cannot compile 4377See 'config.log' for more details" "$LINENO" 5; } ;; 4378esac 4379fi 4380rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4381esac 4382fi 4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4384printf "%s\n" "$ac_cv_objext" >&6; } 4385OBJEXT=$ac_cv_objext 4386ac_objext=$OBJEXT 4387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4388printf %s "checking whether the compiler supports GNU C... " >&6; } 4389if test ${ac_cv_c_compiler_gnu+y} 4390then : 4391 printf %s "(cached) " >&6 4392else case e in #( 4393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4394/* end confdefs.h. */ 4395 4396int 4397main (void) 4398{ 4399#ifndef __GNUC__ 4400 choke me 4401#endif 4402 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407if ac_fn_c_try_compile "$LINENO" 4408then : 4409 ac_compiler_gnu=yes 4410else case e in #( 4411 e) ac_compiler_gnu=no ;; 4412esac 4413fi 4414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4415ac_cv_c_compiler_gnu=$ac_compiler_gnu 4416 ;; 4417esac 4418fi 4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4420printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4421ac_compiler_gnu=$ac_cv_c_compiler_gnu 4422 4423if test $ac_compiler_gnu = yes; then 4424 GCC=yes 4425else 4426 GCC= 4427fi 4428ac_test_CFLAGS=${CFLAGS+y} 4429ac_save_CFLAGS=$CFLAGS 4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4431printf %s "checking whether $CC accepts -g... " >&6; } 4432if test ${ac_cv_prog_cc_g+y} 4433then : 4434 printf %s "(cached) " >&6 4435else case e in #( 4436 e) ac_save_c_werror_flag=$ac_c_werror_flag 4437 ac_c_werror_flag=yes 4438 ac_cv_prog_cc_g=no 4439 CFLAGS="-g" 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442 4443int 4444main (void) 4445{ 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_c_try_compile "$LINENO" 4452then : 4453 ac_cv_prog_cc_g=yes 4454else case e in #( 4455 e) CFLAGS="" 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457/* end confdefs.h. */ 4458 4459int 4460main (void) 4461{ 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467if ac_fn_c_try_compile "$LINENO" 4468then : 4469 4470else case e in #( 4471 e) ac_c_werror_flag=$ac_save_c_werror_flag 4472 CFLAGS="-g" 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 4484if ac_fn_c_try_compile "$LINENO" 4485then : 4486 ac_cv_prog_cc_g=yes 4487fi 4488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4489esac 4490fi 4491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4492esac 4493fi 4494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4495 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4496esac 4497fi 4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4499printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4500if test $ac_test_CFLAGS; then 4501 CFLAGS=$ac_save_CFLAGS 4502elif test $ac_cv_prog_cc_g = yes; then 4503 if test "$GCC" = yes; then 4504 CFLAGS="-g -O2" 4505 else 4506 CFLAGS="-g" 4507 fi 4508else 4509 if test "$GCC" = yes; then 4510 CFLAGS="-O2" 4511 else 4512 CFLAGS= 4513 fi 4514fi 4515ac_prog_cc_stdc=no 4516if test x$ac_prog_cc_stdc = xno 4517then : 4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4519printf %s "checking for $CC option to enable C11 features... " >&6; } 4520if test ${ac_cv_prog_cc_c11+y} 4521then : 4522 printf %s "(cached) " >&6 4523else case e in #( 4524 e) ac_cv_prog_cc_c11=no 4525ac_save_CC=$CC 4526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528$ac_c_conftest_c11_program 4529_ACEOF 4530for ac_arg in '' -std=gnu11 4531do 4532 CC="$ac_save_CC $ac_arg" 4533 if ac_fn_c_try_compile "$LINENO" 4534then : 4535 ac_cv_prog_cc_c11=$ac_arg 4536fi 4537rm -f core conftest.err conftest.$ac_objext conftest.beam 4538 test "x$ac_cv_prog_cc_c11" != "xno" && break 4539done 4540rm -f conftest.$ac_ext 4541CC=$ac_save_CC ;; 4542esac 4543fi 4544 4545if test "x$ac_cv_prog_cc_c11" = xno 4546then : 4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4548printf "%s\n" "unsupported" >&6; } 4549else case e in #( 4550 e) if test "x$ac_cv_prog_cc_c11" = x 4551then : 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4553printf "%s\n" "none needed" >&6; } 4554else case e in #( 4555 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4556printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4557 CC="$CC $ac_cv_prog_cc_c11" ;; 4558esac 4559fi 4560 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4561 ac_prog_cc_stdc=c11 ;; 4562esac 4563fi 4564fi 4565if test x$ac_prog_cc_stdc = xno 4566then : 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4568printf %s "checking for $CC option to enable C99 features... " >&6; } 4569if test ${ac_cv_prog_cc_c99+y} 4570then : 4571 printf %s "(cached) " >&6 4572else case e in #( 4573 e) ac_cv_prog_cc_c99=no 4574ac_save_CC=$CC 4575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576/* end confdefs.h. */ 4577$ac_c_conftest_c99_program 4578_ACEOF 4579for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4580do 4581 CC="$ac_save_CC $ac_arg" 4582 if ac_fn_c_try_compile "$LINENO" 4583then : 4584 ac_cv_prog_cc_c99=$ac_arg 4585fi 4586rm -f core conftest.err conftest.$ac_objext conftest.beam 4587 test "x$ac_cv_prog_cc_c99" != "xno" && break 4588done 4589rm -f conftest.$ac_ext 4590CC=$ac_save_CC ;; 4591esac 4592fi 4593 4594if test "x$ac_cv_prog_cc_c99" = xno 4595then : 4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4597printf "%s\n" "unsupported" >&6; } 4598else case e in #( 4599 e) if test "x$ac_cv_prog_cc_c99" = x 4600then : 4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4602printf "%s\n" "none needed" >&6; } 4603else case e in #( 4604 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4605printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4606 CC="$CC $ac_cv_prog_cc_c99" ;; 4607esac 4608fi 4609 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4610 ac_prog_cc_stdc=c99 ;; 4611esac 4612fi 4613fi 4614if test x$ac_prog_cc_stdc = xno 4615then : 4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4617printf %s "checking for $CC option to enable C89 features... " >&6; } 4618if test ${ac_cv_prog_cc_c89+y} 4619then : 4620 printf %s "(cached) " >&6 4621else case e in #( 4622 e) ac_cv_prog_cc_c89=no 4623ac_save_CC=$CC 4624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626$ac_c_conftest_c89_program 4627_ACEOF 4628for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4629do 4630 CC="$ac_save_CC $ac_arg" 4631 if ac_fn_c_try_compile "$LINENO" 4632then : 4633 ac_cv_prog_cc_c89=$ac_arg 4634fi 4635rm -f core conftest.err conftest.$ac_objext conftest.beam 4636 test "x$ac_cv_prog_cc_c89" != "xno" && break 4637done 4638rm -f conftest.$ac_ext 4639CC=$ac_save_CC ;; 4640esac 4641fi 4642 4643if test "x$ac_cv_prog_cc_c89" = xno 4644then : 4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4646printf "%s\n" "unsupported" >&6; } 4647else case e in #( 4648 e) if test "x$ac_cv_prog_cc_c89" = x 4649then : 4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4651printf "%s\n" "none needed" >&6; } 4652else case e in #( 4653 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4654printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4655 CC="$CC $ac_cv_prog_cc_c89" ;; 4656esac 4657fi 4658 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4659 ac_prog_cc_stdc=c89 ;; 4660esac 4661fi 4662fi 4663 4664ac_ext=c 4665ac_cpp='$CPP $CPPFLAGS' 4666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4668ac_compiler_gnu=$ac_cv_c_compiler_gnu 4669 4670 4671 ac_ext=c 4672ac_cpp='$CPP $CPPFLAGS' 4673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4675ac_compiler_gnu=$ac_cv_c_compiler_gnu 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4677printf %s "checking whether $CC understands -c and -o together... " >&6; } 4678if test ${am_cv_prog_cc_c_o+y} 4679then : 4680 printf %s "(cached) " >&6 4681else case e in #( 4682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684 4685int 4686main (void) 4687{ 4688 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693 # Make sure it works both with $CC and with simple cc. 4694 # Following AC_PROG_CC_C_O, we do the test twice because some 4695 # compilers refuse to overwrite an existing .o file with -o, 4696 # though they will create one. 4697 am_cv_prog_cc_c_o=yes 4698 for am_i in 1 2; do 4699 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4700 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4701 ac_status=$? 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4703 (exit $ac_status); } \ 4704 && test -f conftest2.$ac_objext; then 4705 : OK 4706 else 4707 am_cv_prog_cc_c_o=no 4708 break 4709 fi 4710 done 4711 rm -f core conftest* 4712 unset am_i ;; 4713esac 4714fi 4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4716printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4717if test "$am_cv_prog_cc_c_o" != yes; then 4718 # Losing compiler, so override with the script. 4719 # FIXME: It is wrong to rewrite CC. 4720 # But if we don't then we get into trouble of one sort or another. 4721 # A longer-term fix would be to have automake use am__CC in this case, 4722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4723 CC="$am_aux_dir/compile $CC" 4724fi 4725ac_ext=c 4726ac_cpp='$CPP $CPPFLAGS' 4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4729ac_compiler_gnu=$ac_cv_c_compiler_gnu 4730 4731 4732depcc="$CC" am_compiler_list= 4733 4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4735printf %s "checking dependency style of $depcc... " >&6; } 4736if test ${am_cv_CC_dependencies_compiler_type+y} 4737then : 4738 printf %s "(cached) " >&6 4739else case e in #( 4740 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4741 # We make a subdir and do the tests there. Otherwise we can end up 4742 # making bogus files that we don't know about and never remove. For 4743 # instance it was reported that on HP-UX the gcc test will end up 4744 # making a dummy file named 'D' -- because '-MD' means "put the output 4745 # in D". 4746 rm -rf conftest.dir 4747 mkdir conftest.dir 4748 # Copy depcomp to subdir because otherwise we won't find it if we're 4749 # using a relative directory. 4750 cp "$am_depcomp" conftest.dir 4751 cd conftest.dir 4752 # We will build objects and dependencies in a subdirectory because 4753 # it helps to detect inapplicable dependency modes. For instance 4754 # both Tru64's cc and ICC support -MD to output dependencies as a 4755 # side effect of compilation, but ICC will put the dependencies in 4756 # the current directory while Tru64 will put them in the object 4757 # directory. 4758 mkdir sub 4759 4760 am_cv_CC_dependencies_compiler_type=none 4761 if test "$am_compiler_list" = ""; then 4762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4763 fi 4764 am__universal=false 4765 case " $depcc " in #( 4766 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4767 esac 4768 4769 for depmode in $am_compiler_list; do 4770 # Setup a source with many dependencies, because some compilers 4771 # like to wrap large dependency lists on column 80 (with \), and 4772 # we should not choose a depcomp mode which is confused by this. 4773 # 4774 # We need to recreate these files for each test, as the compiler may 4775 # overwrite some of them when testing with obscure command lines. 4776 # This happens at least with the AIX C compiler. 4777 : > sub/conftest.c 4778 for i in 1 2 3 4 5 6; do 4779 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4780 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4781 # Solaris 10 /bin/sh. 4782 echo '/* dummy */' > sub/conftst$i.h 4783 done 4784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4785 4786 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4787 # mode. It turns out that the SunPro C++ compiler does not properly 4788 # handle '-M -o', and we need to detect this. Also, some Intel 4789 # versions had trouble with output in subdirs. 4790 am__obj=sub/conftest.${OBJEXT-o} 4791 am__minus_obj="-o $am__obj" 4792 case $depmode in 4793 gcc) 4794 # This depmode causes a compiler race in universal mode. 4795 test "$am__universal" = false || continue 4796 ;; 4797 nosideeffect) 4798 # After this tag, mechanisms are not by side-effect, so they'll 4799 # only be used when explicitly requested. 4800 if test "x$enable_dependency_tracking" = xyes; then 4801 continue 4802 else 4803 break 4804 fi 4805 ;; 4806 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4807 # This compiler won't grok '-c -o', but also, the minuso test has 4808 # not run yet. These depmodes are late enough in the game, and 4809 # so weak that their functioning should not be impacted. 4810 am__obj=conftest.${OBJEXT-o} 4811 am__minus_obj= 4812 ;; 4813 none) break ;; 4814 esac 4815 if depmode=$depmode \ 4816 source=sub/conftest.c object=$am__obj \ 4817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4819 >/dev/null 2>conftest.err && 4820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4824 # icc doesn't choke on unknown options, it will just issue warnings 4825 # or remarks (even with -Werror). So we grep stderr for any message 4826 # that says an option was ignored or not supported. 4827 # When given -MP, icc 7.0 and 7.1 complain thus: 4828 # icc: Command line warning: ignoring option '-M'; no argument required 4829 # The diagnosis changed in icc 8.0: 4830 # icc: Command line remark: option '-MP' not supported 4831 if (grep 'ignoring option' conftest.err || 4832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4833 am_cv_CC_dependencies_compiler_type=$depmode 4834 break 4835 fi 4836 fi 4837 done 4838 4839 cd .. 4840 rm -rf conftest.dir 4841else 4842 am_cv_CC_dependencies_compiler_type=none 4843fi 4844 ;; 4845esac 4846fi 4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4848printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4849CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4850 4851 if 4852 test "x$enable_dependency_tracking" != xno \ 4853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4854 am__fastdepCC_TRUE= 4855 am__fastdepCC_FALSE='#' 4856else 4857 am__fastdepCC_TRUE='#' 4858 am__fastdepCC_FALSE= 4859fi 4860 4861 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4863printf %s "checking for a sed that does not truncate output... " >&6; } 4864if test ${ac_cv_path_SED+y} 4865then : 4866 printf %s "(cached) " >&6 4867else case e in #( 4868 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4869 for ac_i in 1 2 3 4 5 6 7; do 4870 ac_script="$ac_script$as_nl$ac_script" 4871 done 4872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4873 { ac_script=; unset ac_script;} 4874 if test -z "$SED"; then 4875 ac_path_SED_found=false 4876 # Loop through the user's path and test for each of PROGNAME-LIST 4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4878for as_dir in $PATH 4879do 4880 IFS=$as_save_IFS 4881 case $as_dir in #((( 4882 '') as_dir=./ ;; 4883 */) ;; 4884 *) as_dir=$as_dir/ ;; 4885 esac 4886 for ac_prog in sed gsed 4887 do 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4890 as_fn_executable_p "$ac_path_SED" || continue 4891# Check for GNU ac_path_SED and select it if it is found. 4892 # Check for GNU $ac_path_SED 4893case `"$ac_path_SED" --version 2>&1` in #( 4894*GNU*) 4895 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4896#( 4897*) 4898 ac_count=0 4899 printf %s 0123456789 >"conftest.in" 4900 while : 4901 do 4902 cat "conftest.in" "conftest.in" >"conftest.tmp" 4903 mv "conftest.tmp" "conftest.in" 4904 cp "conftest.in" "conftest.nl" 4905 printf "%s\n" '' >> "conftest.nl" 4906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4908 as_fn_arith $ac_count + 1 && ac_count=$as_val 4909 if test $ac_count -gt ${ac_path_SED_max-0}; then 4910 # Best one so far, save it but keep looking for a better one 4911 ac_cv_path_SED="$ac_path_SED" 4912 ac_path_SED_max=$ac_count 4913 fi 4914 # 10*(2^10) chars as input seems more than enough 4915 test $ac_count -gt 10 && break 4916 done 4917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4918esac 4919 4920 $ac_path_SED_found && break 3 4921 done 4922 done 4923 done 4924IFS=$as_save_IFS 4925 if test -z "$ac_cv_path_SED"; then 4926 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4927 fi 4928else 4929 ac_cv_path_SED=$SED 4930fi 4931 ;; 4932esac 4933fi 4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4935printf "%s\n" "$ac_cv_path_SED" >&6; } 4936 SED="$ac_cv_path_SED" 4937 rm -f conftest.sed 4938 4939test -z "$SED" && SED=sed 4940Xsed="$SED -e 1s/^X//" 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4953printf %s "checking for grep that handles long lines and -e... " >&6; } 4954if test ${ac_cv_path_GREP+y} 4955then : 4956 printf %s "(cached) " >&6 4957else case e in #( 4958 e) if test -z "$GREP"; then 4959 ac_path_GREP_found=false 4960 # Loop through the user's path and test for each of PROGNAME-LIST 4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4963do 4964 IFS=$as_save_IFS 4965 case $as_dir in #((( 4966 '') as_dir=./ ;; 4967 */) ;; 4968 *) as_dir=$as_dir/ ;; 4969 esac 4970 for ac_prog in grep ggrep 4971 do 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4974 as_fn_executable_p "$ac_path_GREP" || continue 4975# Check for GNU ac_path_GREP and select it if it is found. 4976 # Check for GNU $ac_path_GREP 4977case `"$ac_path_GREP" --version 2>&1` in #( 4978*GNU*) 4979 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4980#( 4981*) 4982 ac_count=0 4983 printf %s 0123456789 >"conftest.in" 4984 while : 4985 do 4986 cat "conftest.in" "conftest.in" >"conftest.tmp" 4987 mv "conftest.tmp" "conftest.in" 4988 cp "conftest.in" "conftest.nl" 4989 printf "%s\n" 'GREP' >> "conftest.nl" 4990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4992 as_fn_arith $ac_count + 1 && ac_count=$as_val 4993 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4994 # Best one so far, save it but keep looking for a better one 4995 ac_cv_path_GREP="$ac_path_GREP" 4996 ac_path_GREP_max=$ac_count 4997 fi 4998 # 10*(2^10) chars as input seems more than enough 4999 test $ac_count -gt 10 && break 5000 done 5001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5002esac 5003 5004 $ac_path_GREP_found && break 3 5005 done 5006 done 5007 done 5008IFS=$as_save_IFS 5009 if test -z "$ac_cv_path_GREP"; then 5010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5011 fi 5012else 5013 ac_cv_path_GREP=$GREP 5014fi 5015 ;; 5016esac 5017fi 5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5019printf "%s\n" "$ac_cv_path_GREP" >&6; } 5020 GREP="$ac_cv_path_GREP" 5021 5022 5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5024printf %s "checking for egrep... " >&6; } 5025if test ${ac_cv_path_EGREP+y} 5026then : 5027 printf %s "(cached) " >&6 5028else case e in #( 5029 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5030 then ac_cv_path_EGREP="$GREP -E" 5031 else 5032 if test -z "$EGREP"; then 5033 ac_path_EGREP_found=false 5034 # Loop through the user's path and test for each of PROGNAME-LIST 5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5036for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5037do 5038 IFS=$as_save_IFS 5039 case $as_dir in #((( 5040 '') as_dir=./ ;; 5041 */) ;; 5042 *) as_dir=$as_dir/ ;; 5043 esac 5044 for ac_prog in egrep 5045 do 5046 for ac_exec_ext in '' $ac_executable_extensions; do 5047 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5048 as_fn_executable_p "$ac_path_EGREP" || continue 5049# Check for GNU ac_path_EGREP and select it if it is found. 5050 # Check for GNU $ac_path_EGREP 5051case `"$ac_path_EGREP" --version 2>&1` in #( 5052*GNU*) 5053 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5054#( 5055*) 5056 ac_count=0 5057 printf %s 0123456789 >"conftest.in" 5058 while : 5059 do 5060 cat "conftest.in" "conftest.in" >"conftest.tmp" 5061 mv "conftest.tmp" "conftest.in" 5062 cp "conftest.in" "conftest.nl" 5063 printf "%s\n" 'EGREP' >> "conftest.nl" 5064 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5066 as_fn_arith $ac_count + 1 && ac_count=$as_val 5067 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5068 # Best one so far, save it but keep looking for a better one 5069 ac_cv_path_EGREP="$ac_path_EGREP" 5070 ac_path_EGREP_max=$ac_count 5071 fi 5072 # 10*(2^10) chars as input seems more than enough 5073 test $ac_count -gt 10 && break 5074 done 5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5076esac 5077 5078 $ac_path_EGREP_found && break 3 5079 done 5080 done 5081 done 5082IFS=$as_save_IFS 5083 if test -z "$ac_cv_path_EGREP"; then 5084 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5085 fi 5086else 5087 ac_cv_path_EGREP=$EGREP 5088fi 5089 5090 fi ;; 5091esac 5092fi 5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5094printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5095 EGREP="$ac_cv_path_EGREP" 5096 5097 EGREP_TRADITIONAL=$EGREP 5098 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5099 5100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5101printf %s "checking for fgrep... " >&6; } 5102if test ${ac_cv_path_FGREP+y} 5103then : 5104 printf %s "(cached) " >&6 5105else case e in #( 5106 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5107 then ac_cv_path_FGREP="$GREP -F" 5108 else 5109 if test -z "$FGREP"; then 5110 ac_path_FGREP_found=false 5111 # Loop through the user's path and test for each of PROGNAME-LIST 5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5113for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5114do 5115 IFS=$as_save_IFS 5116 case $as_dir in #((( 5117 '') as_dir=./ ;; 5118 */) ;; 5119 *) as_dir=$as_dir/ ;; 5120 esac 5121 for ac_prog in fgrep 5122 do 5123 for ac_exec_ext in '' $ac_executable_extensions; do 5124 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5125 as_fn_executable_p "$ac_path_FGREP" || continue 5126# Check for GNU ac_path_FGREP and select it if it is found. 5127 # Check for GNU $ac_path_FGREP 5128case `"$ac_path_FGREP" --version 2>&1` in #( 5129*GNU*) 5130 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5131#( 5132*) 5133 ac_count=0 5134 printf %s 0123456789 >"conftest.in" 5135 while : 5136 do 5137 cat "conftest.in" "conftest.in" >"conftest.tmp" 5138 mv "conftest.tmp" "conftest.in" 5139 cp "conftest.in" "conftest.nl" 5140 printf "%s\n" 'FGREP' >> "conftest.nl" 5141 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5143 as_fn_arith $ac_count + 1 && ac_count=$as_val 5144 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5145 # Best one so far, save it but keep looking for a better one 5146 ac_cv_path_FGREP="$ac_path_FGREP" 5147 ac_path_FGREP_max=$ac_count 5148 fi 5149 # 10*(2^10) chars as input seems more than enough 5150 test $ac_count -gt 10 && break 5151 done 5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5153esac 5154 5155 $ac_path_FGREP_found && break 3 5156 done 5157 done 5158 done 5159IFS=$as_save_IFS 5160 if test -z "$ac_cv_path_FGREP"; then 5161 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5162 fi 5163else 5164 ac_cv_path_FGREP=$FGREP 5165fi 5166 5167 fi ;; 5168esac 5169fi 5170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5171printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5172 FGREP="$ac_cv_path_FGREP" 5173 5174 5175test -z "$GREP" && GREP=grep 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195# Check whether --with-gnu-ld was given. 5196if test ${with_gnu_ld+y} 5197then : 5198 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5199else case e in #( 5200 e) with_gnu_ld=no ;; 5201esac 5202fi 5203 5204ac_prog=ld 5205if test yes = "$GCC"; then 5206 # Check if gcc -print-prog-name=ld gives a path. 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5208printf %s "checking for ld used by $CC... " >&6; } 5209 case $host in 5210 *-*-mingw* | *-*-windows*) 5211 # gcc leaves a trailing carriage return, which upsets mingw 5212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5213 *) 5214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5215 esac 5216 case $ac_prog in 5217 # Accept absolute paths. 5218 [\\/]* | ?:[\\/]*) 5219 re_direlt='/[^/][^/]*/\.\./' 5220 # Canonicalize the pathname of ld 5221 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5222 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5223 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5224 done 5225 test -z "$LD" && LD=$ac_prog 5226 ;; 5227 "") 5228 # If it fails, then pretend we aren't using GCC. 5229 ac_prog=ld 5230 ;; 5231 *) 5232 # If it is relative, then search for the first ld in PATH. 5233 with_gnu_ld=unknown 5234 ;; 5235 esac 5236elif test yes = "$with_gnu_ld"; then 5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5238printf %s "checking for GNU ld... " >&6; } 5239else 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5241printf %s "checking for non-GNU ld... " >&6; } 5242fi 5243if test ${lt_cv_path_LD+y} 5244then : 5245 printf %s "(cached) " >&6 5246else case e in #( 5247 e) if test -z "$LD"; then 5248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5249 for ac_dir in $PATH; do 5250 IFS=$lt_save_ifs 5251 test -z "$ac_dir" && ac_dir=. 5252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5253 lt_cv_path_LD=$ac_dir/$ac_prog 5254 # Check to see if the program is GNU ld. I'd rather use --version, 5255 # but apparently some variants of GNU ld only accept -v. 5256 # Break only if it was the GNU/non-GNU ld that we prefer. 5257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5258 *GNU* | *'with BFD'*) 5259 test no != "$with_gnu_ld" && break 5260 ;; 5261 *) 5262 test yes != "$with_gnu_ld" && break 5263 ;; 5264 esac 5265 fi 5266 done 5267 IFS=$lt_save_ifs 5268else 5269 lt_cv_path_LD=$LD # Let the user override the test with a path. 5270fi ;; 5271esac 5272fi 5273 5274LD=$lt_cv_path_LD 5275if test -n "$LD"; then 5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5277printf "%s\n" "$LD" >&6; } 5278else 5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280printf "%s\n" "no" >&6; } 5281fi 5282test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5284printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5285if test ${lt_cv_prog_gnu_ld+y} 5286then : 5287 printf %s "(cached) " >&6 5288else case e in #( 5289 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5290case `$LD -v 2>&1 </dev/null` in 5291*GNU* | *'with BFD'*) 5292 lt_cv_prog_gnu_ld=yes 5293 ;; 5294*) 5295 lt_cv_prog_gnu_ld=no 5296 ;; 5297esac ;; 5298esac 5299fi 5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5301printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5302with_gnu_ld=$lt_cv_prog_gnu_ld 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5313printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5314if test ${lt_cv_path_NM+y} 5315then : 5316 printf %s "(cached) " >&6 5317else case e in #( 5318 e) if test -n "$NM"; then 5319 # Let the user override the test. 5320 lt_cv_path_NM=$NM 5321else 5322 lt_nm_to_check=${ac_tool_prefix}nm 5323 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5324 lt_nm_to_check="$lt_nm_to_check nm" 5325 fi 5326 for lt_tmp_nm in $lt_nm_to_check; do 5327 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5328 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5329 IFS=$lt_save_ifs 5330 test -z "$ac_dir" && ac_dir=. 5331 tmp_nm=$ac_dir/$lt_tmp_nm 5332 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5333 # Check to see if the nm accepts a BSD-compat flag. 5334 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5335 # nm: unknown option "B" ignored 5336 # Tru64's nm complains that /dev/null is an invalid object file 5337 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5338 case $build_os in 5339 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5340 *) lt_bad_file=/dev/null ;; 5341 esac 5342 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5343 *$lt_bad_file* | *'Invalid file or object type'*) 5344 lt_cv_path_NM="$tmp_nm -B" 5345 break 2 5346 ;; 5347 *) 5348 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5349 */dev/null*) 5350 lt_cv_path_NM="$tmp_nm -p" 5351 break 2 5352 ;; 5353 *) 5354 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5355 continue # so that we can try to find one that supports BSD flags 5356 ;; 5357 esac 5358 ;; 5359 esac 5360 fi 5361 done 5362 IFS=$lt_save_ifs 5363 done 5364 : ${lt_cv_path_NM=no} 5365fi ;; 5366esac 5367fi 5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5369printf "%s\n" "$lt_cv_path_NM" >&6; } 5370if test no != "$lt_cv_path_NM"; then 5371 NM=$lt_cv_path_NM 5372else 5373 # Didn't find any BSD compatible name lister, look for dumpbin. 5374 if test -n "$DUMPBIN"; then : 5375 # Let the user override the test. 5376 else 5377 if test -n "$ac_tool_prefix"; then 5378 for ac_prog in dumpbin "link -dump" 5379 do 5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5381set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5383printf %s "checking for $ac_word... " >&6; } 5384if test ${ac_cv_prog_DUMPBIN+y} 5385then : 5386 printf %s "(cached) " >&6 5387else case e in #( 5388 e) if test -n "$DUMPBIN"; then 5389 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5390else 5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5392for as_dir in $PATH 5393do 5394 IFS=$as_save_IFS 5395 case $as_dir in #((( 5396 '') as_dir=./ ;; 5397 */) ;; 5398 *) as_dir=$as_dir/ ;; 5399 esac 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406done 5407 done 5408IFS=$as_save_IFS 5409 5410fi ;; 5411esac 5412fi 5413DUMPBIN=$ac_cv_prog_DUMPBIN 5414if test -n "$DUMPBIN"; then 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5416printf "%s\n" "$DUMPBIN" >&6; } 5417else 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5419printf "%s\n" "no" >&6; } 5420fi 5421 5422 5423 test -n "$DUMPBIN" && break 5424 done 5425fi 5426if test -z "$DUMPBIN"; then 5427 ac_ct_DUMPBIN=$DUMPBIN 5428 for ac_prog in dumpbin "link -dump" 5429do 5430 # Extract the first word of "$ac_prog", so it can be a program name with args. 5431set dummy $ac_prog; ac_word=$2 5432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5433printf %s "checking for $ac_word... " >&6; } 5434if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5435then : 5436 printf %s "(cached) " >&6 5437else case e in #( 5438 e) if test -n "$ac_ct_DUMPBIN"; then 5439 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5440else 5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442for as_dir in $PATH 5443do 5444 IFS=$as_save_IFS 5445 case $as_dir in #((( 5446 '') as_dir=./ ;; 5447 */) ;; 5448 *) as_dir=$as_dir/ ;; 5449 esac 5450 for ac_exec_ext in '' $ac_executable_extensions; do 5451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5454 break 2 5455 fi 5456done 5457 done 5458IFS=$as_save_IFS 5459 5460fi ;; 5461esac 5462fi 5463ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5464if test -n "$ac_ct_DUMPBIN"; then 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5466printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5467else 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5469printf "%s\n" "no" >&6; } 5470fi 5471 5472 5473 test -n "$ac_ct_DUMPBIN" && break 5474done 5475 5476 if test "x$ac_ct_DUMPBIN" = x; then 5477 DUMPBIN=":" 5478 else 5479 case $cross_compiling:$ac_tool_warned in 5480yes:) 5481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5482printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5483ac_tool_warned=yes ;; 5484esac 5485 DUMPBIN=$ac_ct_DUMPBIN 5486 fi 5487fi 5488 5489 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5490 *COFF*) 5491 DUMPBIN="$DUMPBIN -symbols -headers" 5492 ;; 5493 *) 5494 DUMPBIN=: 5495 ;; 5496 esac 5497 fi 5498 5499 if test : != "$DUMPBIN"; then 5500 NM=$DUMPBIN 5501 fi 5502fi 5503test -z "$NM" && NM=nm 5504 5505 5506 5507 5508 5509 5510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5511printf %s "checking the name lister ($NM) interface... " >&6; } 5512if test ${lt_cv_nm_interface+y} 5513then : 5514 printf %s "(cached) " >&6 5515else case e in #( 5516 e) lt_cv_nm_interface="BSD nm" 5517 echo "int some_variable = 0;" > conftest.$ac_ext 5518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5519 (eval "$ac_compile" 2>conftest.err) 5520 cat conftest.err >&5 5521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5523 cat conftest.err >&5 5524 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5525 cat conftest.out >&5 5526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5527 lt_cv_nm_interface="MS dumpbin" 5528 fi 5529 rm -f conftest* ;; 5530esac 5531fi 5532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5533printf "%s\n" "$lt_cv_nm_interface" >&6; } 5534 5535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5536printf %s "checking whether ln -s works... " >&6; } 5537LN_S=$as_ln_s 5538if test "$LN_S" = "ln -s"; then 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5540printf "%s\n" "yes" >&6; } 5541else 5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5543printf "%s\n" "no, using $LN_S" >&6; } 5544fi 5545 5546# find the maximum length of command line arguments 5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5548printf %s "checking the maximum length of command line arguments... " >&6; } 5549if test ${lt_cv_sys_max_cmd_len+y} 5550then : 5551 printf %s "(cached) " >&6 5552else case e in #( 5553 e) i=0 5554 teststring=ABCD 5555 5556 case $build_os in 5557 msdosdjgpp*) 5558 # On DJGPP, this test can blow up pretty badly due to problems in libc 5559 # (any single argument exceeding 2000 bytes causes a buffer overrun 5560 # during glob expansion). Even if it were fixed, the result of this 5561 # check would be larger than it should be. 5562 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5563 ;; 5564 5565 gnu* | ironclad*) 5566 # Under GNU Hurd and Ironclad, this test is not required because there 5567 # is no limit to the length of command line arguments. 5568 # Libtool will interpret -1 as no limit whatsoever 5569 lt_cv_sys_max_cmd_len=-1; 5570 ;; 5571 5572 cygwin* | mingw* | windows* | cegcc*) 5573 # On Win9x/ME, this test blows up -- it succeeds, but takes 5574 # about 5 minutes as the teststring grows exponentially. 5575 # Worse, since 9x/ME are not pre-emptively multitasking, 5576 # you end up with a "frozen" computer, even though with patience 5577 # the test eventually succeeds (with a max line length of 256k). 5578 # Instead, let's just punt: use the minimum linelength reported by 5579 # all of the supported platforms: 8192 (on NT/2K/XP). 5580 lt_cv_sys_max_cmd_len=8192; 5581 ;; 5582 5583 mint*) 5584 # On MiNT this can take a long time and run out of memory. 5585 lt_cv_sys_max_cmd_len=8192; 5586 ;; 5587 5588 amigaos*) 5589 # On AmigaOS with pdksh, this test takes hours, literally. 5590 # So we just punt and use a minimum line length of 8192. 5591 lt_cv_sys_max_cmd_len=8192; 5592 ;; 5593 5594 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5595 # This has been around since 386BSD, at least. Likely further. 5596 if test -x /sbin/sysctl; then 5597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5598 elif test -x /usr/sbin/sysctl; then 5599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5600 else 5601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5602 fi 5603 # And add a safety zone 5604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5606 ;; 5607 5608 interix*) 5609 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5610 lt_cv_sys_max_cmd_len=196608 5611 ;; 5612 5613 os2*) 5614 # The test takes a long time on OS/2. 5615 lt_cv_sys_max_cmd_len=8192 5616 ;; 5617 5618 osf*) 5619 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5620 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5621 # nice to cause kernel panics so lets avoid the loop below. 5622 # First set a reasonable default. 5623 lt_cv_sys_max_cmd_len=16384 5624 # 5625 if test -x /sbin/sysconfig; then 5626 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5627 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5628 esac 5629 fi 5630 ;; 5631 sco3.2v5*) 5632 lt_cv_sys_max_cmd_len=102400 5633 ;; 5634 sysv5* | sco5v6* | sysv4.2uw2*) 5635 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5636 if test -n "$kargmax"; then 5637 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5638 else 5639 lt_cv_sys_max_cmd_len=32768 5640 fi 5641 ;; 5642 *) 5643 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5644 if test -n "$lt_cv_sys_max_cmd_len" && \ 5645 test undefined != "$lt_cv_sys_max_cmd_len"; then 5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5648 else 5649 # Make teststring a little bigger before we do anything with it. 5650 # a 1K string should be a reasonable start. 5651 for i in 1 2 3 4 5 6 7 8; do 5652 teststring=$teststring$teststring 5653 done 5654 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5655 # If test is not a shell built-in, we'll probably end up computing a 5656 # maximum length that is only half of the actual maximum length, but 5657 # we can't tell. 5658 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5659 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5660 test 17 != "$i" # 1/2 MB should be enough 5661 do 5662 i=`expr $i + 1` 5663 teststring=$teststring$teststring 5664 done 5665 # Only check the string length outside the loop. 5666 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5667 teststring= 5668 # Add a significant safety factor because C++ compilers can tack on 5669 # massive amounts of additional arguments before passing them to the 5670 # linker. It appears as though 1/2 is a usable value. 5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5672 fi 5673 ;; 5674 esac 5675 ;; 5676esac 5677fi 5678 5679if test -n "$lt_cv_sys_max_cmd_len"; then 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5681printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5682else 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5684printf "%s\n" "none" >&6; } 5685fi 5686max_cmd_len=$lt_cv_sys_max_cmd_len 5687 5688 5689 5690 5691 5692 5693: ${CP="cp -f"} 5694: ${MV="mv -f"} 5695: ${RM="rm -f"} 5696 5697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5698 lt_unset=unset 5699else 5700 lt_unset=false 5701fi 5702 5703 5704 5705 5706 5707# test EBCDIC or ASCII 5708case `echo X|tr X '\101'` in 5709 A) # ASCII based system 5710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5711 lt_SP2NL='tr \040 \012' 5712 lt_NL2SP='tr \015\012 \040\040' 5713 ;; 5714 *) # EBCDIC based system 5715 lt_SP2NL='tr \100 \n' 5716 lt_NL2SP='tr \r\n \100\100' 5717 ;; 5718esac 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5729printf %s "checking how to convert $build file names to $host format... " >&6; } 5730if test ${lt_cv_to_host_file_cmd+y} 5731then : 5732 printf %s "(cached) " >&6 5733else case e in #( 5734 e) case $host in 5735 *-*-mingw* ) 5736 case $build in 5737 *-*-mingw* | *-*-windows* ) # actually msys 5738 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5739 ;; 5740 *-*-cygwin* ) 5741 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5742 ;; 5743 * ) # otherwise, assume *nix 5744 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5745 ;; 5746 esac 5747 ;; 5748 *-*-cygwin* ) 5749 case $build in 5750 *-*-mingw* | *-*-windows* ) # actually msys 5751 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5752 ;; 5753 *-*-cygwin* ) 5754 lt_cv_to_host_file_cmd=func_convert_file_noop 5755 ;; 5756 * ) # otherwise, assume *nix 5757 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5758 ;; 5759 esac 5760 ;; 5761 * ) # unhandled hosts (and "normal" native builds) 5762 lt_cv_to_host_file_cmd=func_convert_file_noop 5763 ;; 5764esac 5765 ;; 5766esac 5767fi 5768 5769to_host_file_cmd=$lt_cv_to_host_file_cmd 5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5771printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5772 5773 5774 5775 5776 5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5778printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5779if test ${lt_cv_to_tool_file_cmd+y} 5780then : 5781 printf %s "(cached) " >&6 5782else case e in #( 5783 e) #assume ordinary cross tools, or native build. 5784lt_cv_to_tool_file_cmd=func_convert_file_noop 5785case $host in 5786 *-*-mingw* | *-*-windows* ) 5787 case $build in 5788 *-*-mingw* | *-*-windows* ) # actually msys 5789 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5790 ;; 5791 esac 5792 ;; 5793esac 5794 ;; 5795esac 5796fi 5797 5798to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5800printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5801 5802 5803 5804 5805 5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5807printf %s "checking for $LD option to reload object files... " >&6; } 5808if test ${lt_cv_ld_reload_flag+y} 5809then : 5810 printf %s "(cached) " >&6 5811else case e in #( 5812 e) lt_cv_ld_reload_flag='-r' ;; 5813esac 5814fi 5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5816printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5817reload_flag=$lt_cv_ld_reload_flag 5818case $reload_flag in 5819"" | " "*) ;; 5820*) reload_flag=" $reload_flag" ;; 5821esac 5822reload_cmds='$LD$reload_flag -o $output$reload_objs' 5823case $host_os in 5824 cygwin* | mingw* | windows* | pw32* | cegcc*) 5825 if test yes != "$GCC"; then 5826 reload_cmds=false 5827 fi 5828 ;; 5829 darwin*) 5830 if test yes = "$GCC"; then 5831 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5832 else 5833 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5834 fi 5835 ;; 5836esac 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846# Extract the first word of "file", so it can be a program name with args. 5847set dummy file; ac_word=$2 5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849printf %s "checking for $ac_word... " >&6; } 5850if test ${ac_cv_prog_FILECMD+y} 5851then : 5852 printf %s "(cached) " >&6 5853else case e in #( 5854 e) if test -n "$FILECMD"; then 5855 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5856else 5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858for as_dir in $PATH 5859do 5860 IFS=$as_save_IFS 5861 case $as_dir in #((( 5862 '') as_dir=./ ;; 5863 */) ;; 5864 *) as_dir=$as_dir/ ;; 5865 esac 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5868 ac_cv_prog_FILECMD="file" 5869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873 done 5874IFS=$as_save_IFS 5875 5876 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 5877fi ;; 5878esac 5879fi 5880FILECMD=$ac_cv_prog_FILECMD 5881if test -n "$FILECMD"; then 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5883printf "%s\n" "$FILECMD" >&6; } 5884else 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886printf "%s\n" "no" >&6; } 5887fi 5888 5889 5890 5891 5892 5893 5894 5895 5896if test -n "$ac_tool_prefix"; then 5897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5898set dummy ${ac_tool_prefix}objdump; ac_word=$2 5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900printf %s "checking for $ac_word... " >&6; } 5901if test ${ac_cv_prog_OBJDUMP+y} 5902then : 5903 printf %s "(cached) " >&6 5904else case e in #( 5905 e) if test -n "$OBJDUMP"; then 5906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5907else 5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909for as_dir in $PATH 5910do 5911 IFS=$as_save_IFS 5912 case $as_dir in #((( 5913 '') as_dir=./ ;; 5914 */) ;; 5915 *) as_dir=$as_dir/ ;; 5916 esac 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923done 5924 done 5925IFS=$as_save_IFS 5926 5927fi ;; 5928esac 5929fi 5930OBJDUMP=$ac_cv_prog_OBJDUMP 5931if test -n "$OBJDUMP"; then 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5933printf "%s\n" "$OBJDUMP" >&6; } 5934else 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5936printf "%s\n" "no" >&6; } 5937fi 5938 5939 5940fi 5941if test -z "$ac_cv_prog_OBJDUMP"; then 5942 ac_ct_OBJDUMP=$OBJDUMP 5943 # Extract the first word of "objdump", so it can be a program name with args. 5944set dummy objdump; ac_word=$2 5945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5946printf %s "checking for $ac_word... " >&6; } 5947if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5948then : 5949 printf %s "(cached) " >&6 5950else case e in #( 5951 e) if test -n "$ac_ct_OBJDUMP"; then 5952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5953else 5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955for as_dir in $PATH 5956do 5957 IFS=$as_save_IFS 5958 case $as_dir in #((( 5959 '') as_dir=./ ;; 5960 */) ;; 5961 *) as_dir=$as_dir/ ;; 5962 esac 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5965 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969done 5970 done 5971IFS=$as_save_IFS 5972 5973fi ;; 5974esac 5975fi 5976ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5977if test -n "$ac_ct_OBJDUMP"; then 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5979printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5980else 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5982printf "%s\n" "no" >&6; } 5983fi 5984 5985 if test "x$ac_ct_OBJDUMP" = x; then 5986 OBJDUMP="false" 5987 else 5988 case $cross_compiling:$ac_tool_warned in 5989yes:) 5990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5992ac_tool_warned=yes ;; 5993esac 5994 OBJDUMP=$ac_ct_OBJDUMP 5995 fi 5996else 5997 OBJDUMP="$ac_cv_prog_OBJDUMP" 5998fi 5999 6000test -z "$OBJDUMP" && OBJDUMP=objdump 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6011printf %s "checking how to recognize dependent libraries... " >&6; } 6012if test ${lt_cv_deplibs_check_method+y} 6013then : 6014 printf %s "(cached) " >&6 6015else case e in #( 6016 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6017lt_cv_file_magic_test_file= 6018lt_cv_deplibs_check_method='unknown' 6019# Need to set the preceding variable on all platforms that support 6020# interlibrary dependencies. 6021# 'none' -- dependencies not supported. 6022# 'unknown' -- same as none, but documents that we really don't know. 6023# 'pass_all' -- all dependencies passed with no checks. 6024# 'file_magic [[regex]]' -- check by looking for files in library path 6025# that responds to the $file_magic_cmd with a given extended regex. 6026# If you have 'file' or equivalent on your system and you're not sure 6027# whether 'pass_all' will *always* work, you probably want this one. 6028 6029case $host_os in 6030aix[4-9]*) 6031 lt_cv_deplibs_check_method=pass_all 6032 ;; 6033 6034beos*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038bsdi[45]*) 6039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6040 lt_cv_file_magic_cmd='$FILECMD -L' 6041 lt_cv_file_magic_test_file=/shlib/libc.so 6042 ;; 6043 6044cygwin*) 6045 # func_win32_libid is a shell function defined in ltmain.sh 6046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6047 lt_cv_file_magic_cmd='func_win32_libid' 6048 ;; 6049 6050mingw* | windows* | pw32*) 6051 # Base MSYS/MinGW do not provide the 'file' command needed by 6052 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6053 # unless we find 'file', for example because we are cross-compiling. 6054 if ( file / ) >/dev/null 2>&1; then 6055 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6056 lt_cv_file_magic_cmd='func_win32_libid' 6057 else 6058 # Keep this pattern in sync with the one in func_win32_libid. 6059 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6060 lt_cv_file_magic_cmd='$OBJDUMP -f' 6061 fi 6062 ;; 6063 6064cegcc*) 6065 # use the weaker test based on 'objdump'. See mingw*. 6066 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6067 lt_cv_file_magic_cmd='$OBJDUMP -f' 6068 ;; 6069 6070darwin* | rhapsody*) 6071 lt_cv_deplibs_check_method=pass_all 6072 ;; 6073 6074freebsd* | dragonfly* | midnightbsd*) 6075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6076 case $host_cpu in 6077 i*86 ) 6078 # Not sure whether the presence of OpenBSD here was a mistake. 6079 # Let's accept both of them until this is cleared up. 6080 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6081 lt_cv_file_magic_cmd=$FILECMD 6082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6083 ;; 6084 esac 6085 else 6086 lt_cv_deplibs_check_method=pass_all 6087 fi 6088 ;; 6089 6090haiku*) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093 6094hpux10.20* | hpux11*) 6095 lt_cv_file_magic_cmd=$FILECMD 6096 case $host_cpu in 6097 ia64*) 6098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6099 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6100 ;; 6101 hppa*64*) 6102 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]' 6103 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6104 ;; 6105 *) 6106 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6107 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6108 ;; 6109 esac 6110 ;; 6111 6112interix[3-9]*) 6113 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6115 ;; 6116 6117irix5* | irix6* | nonstopux*) 6118 case $LD in 6119 *-32|*"-32 ") libmagic=32-bit;; 6120 *-n32|*"-n32 ") libmagic=N32;; 6121 *-64|*"-64 ") libmagic=64-bit;; 6122 *) libmagic=never-match;; 6123 esac 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 6127# This must be glibc/ELF. 6128linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6129 lt_cv_deplibs_check_method=pass_all 6130 ;; 6131 6132*-mlibc) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 6136netbsd* | netbsdelf*-gnu) 6137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6139 else 6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6141 fi 6142 ;; 6143 6144newos6*) 6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6146 lt_cv_file_magic_cmd=$FILECMD 6147 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6148 ;; 6149 6150*nto* | *qnx*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154openbsd*) 6155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6157 else 6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6159 fi 6160 ;; 6161 6162osf3* | osf4* | osf5*) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 6166rdos*) 6167 lt_cv_deplibs_check_method=pass_all 6168 ;; 6169 6170serenity*) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 6174solaris*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181 6182sysv4 | sysv4.3*) 6183 case $host_vendor in 6184 motorola) 6185 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]' 6186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6187 ;; 6188 ncr) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 sequent) 6192 lt_cv_file_magic_cmd='/bin/file' 6193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6194 ;; 6195 sni) 6196 lt_cv_file_magic_cmd='/bin/file' 6197 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6198 lt_cv_file_magic_test_file=/lib/libc.so 6199 ;; 6200 siemens) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 pc) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206 esac 6207 ;; 6208 6209tpf*) 6210 lt_cv_deplibs_check_method=pass_all 6211 ;; 6212os2*) 6213 lt_cv_deplibs_check_method=pass_all 6214 ;; 6215esac 6216 ;; 6217esac 6218fi 6219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6220printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6221 6222file_magic_glob= 6223want_nocaseglob=no 6224if test "$build" = "$host"; then 6225 case $host_os in 6226 mingw* | windows* | pw32*) 6227 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6228 want_nocaseglob=yes 6229 else 6230 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6231 fi 6232 ;; 6233 esac 6234fi 6235 6236file_magic_cmd=$lt_cv_file_magic_cmd 6237deplibs_check_method=$lt_cv_deplibs_check_method 6238test -z "$deplibs_check_method" && deplibs_check_method=unknown 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261if test -n "$ac_tool_prefix"; then 6262 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6263set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6265printf %s "checking for $ac_word... " >&6; } 6266if test ${ac_cv_prog_DLLTOOL+y} 6267then : 6268 printf %s "(cached) " >&6 6269else case e in #( 6270 e) if test -n "$DLLTOOL"; then 6271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6272else 6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6274for as_dir in $PATH 6275do 6276 IFS=$as_save_IFS 6277 case $as_dir in #((( 6278 '') as_dir=./ ;; 6279 */) ;; 6280 *) as_dir=$as_dir/ ;; 6281 esac 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6284 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289 done 6290IFS=$as_save_IFS 6291 6292fi ;; 6293esac 6294fi 6295DLLTOOL=$ac_cv_prog_DLLTOOL 6296if test -n "$DLLTOOL"; then 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6298printf "%s\n" "$DLLTOOL" >&6; } 6299else 6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301printf "%s\n" "no" >&6; } 6302fi 6303 6304 6305fi 6306if test -z "$ac_cv_prog_DLLTOOL"; then 6307 ac_ct_DLLTOOL=$DLLTOOL 6308 # Extract the first word of "dlltool", so it can be a program name with args. 6309set dummy dlltool; ac_word=$2 6310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6311printf %s "checking for $ac_word... " >&6; } 6312if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6313then : 6314 printf %s "(cached) " >&6 6315else case e in #( 6316 e) if test -n "$ac_ct_DLLTOOL"; then 6317 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6318else 6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320for as_dir in $PATH 6321do 6322 IFS=$as_save_IFS 6323 case $as_dir in #((( 6324 '') as_dir=./ ;; 6325 */) ;; 6326 *) as_dir=$as_dir/ ;; 6327 esac 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6330 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334done 6335 done 6336IFS=$as_save_IFS 6337 6338fi ;; 6339esac 6340fi 6341ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6342if test -n "$ac_ct_DLLTOOL"; then 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6344printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6345else 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6347printf "%s\n" "no" >&6; } 6348fi 6349 6350 if test "x$ac_ct_DLLTOOL" = x; then 6351 DLLTOOL="false" 6352 else 6353 case $cross_compiling:$ac_tool_warned in 6354yes:) 6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6356printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6357ac_tool_warned=yes ;; 6358esac 6359 DLLTOOL=$ac_ct_DLLTOOL 6360 fi 6361else 6362 DLLTOOL="$ac_cv_prog_DLLTOOL" 6363fi 6364 6365test -z "$DLLTOOL" && DLLTOOL=dlltool 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6377printf %s "checking how to associate runtime and link libraries... " >&6; } 6378if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6379then : 6380 printf %s "(cached) " >&6 6381else case e in #( 6382 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6383 6384case $host_os in 6385cygwin* | mingw* | windows* | pw32* | cegcc*) 6386 # two different shell functions defined in ltmain.sh; 6387 # decide which one to use based on capabilities of $DLLTOOL 6388 case `$DLLTOOL --help 2>&1` in 6389 *--identify-strict*) 6390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6391 ;; 6392 *) 6393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6394 ;; 6395 esac 6396 ;; 6397*) 6398 # fallback: assume linklib IS sharedlib 6399 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6400 ;; 6401esac 6402 ;; 6403esac 6404fi 6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6406printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6407sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6408test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6409 6410 6411 6412 6413 6414 6415 6416 6417if test -n "$ac_tool_prefix"; then 6418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6419set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6421printf %s "checking for $ac_word... " >&6; } 6422if test ${ac_cv_prog_RANLIB+y} 6423then : 6424 printf %s "(cached) " >&6 6425else case e in #( 6426 e) if test -n "$RANLIB"; then 6427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 case $as_dir in #((( 6434 '') as_dir=./ ;; 6435 */) ;; 6436 *) as_dir=$as_dir/ ;; 6437 esac 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444done 6445 done 6446IFS=$as_save_IFS 6447 6448fi ;; 6449esac 6450fi 6451RANLIB=$ac_cv_prog_RANLIB 6452if test -n "$RANLIB"; then 6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6454printf "%s\n" "$RANLIB" >&6; } 6455else 6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6457printf "%s\n" "no" >&6; } 6458fi 6459 6460 6461fi 6462if test -z "$ac_cv_prog_RANLIB"; then 6463 ac_ct_RANLIB=$RANLIB 6464 # Extract the first word of "ranlib", so it can be a program name with args. 6465set dummy ranlib; ac_word=$2 6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6467printf %s "checking for $ac_word... " >&6; } 6468if test ${ac_cv_prog_ac_ct_RANLIB+y} 6469then : 6470 printf %s "(cached) " >&6 6471else case e in #( 6472 e) if test -n "$ac_ct_RANLIB"; then 6473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6474else 6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6476for as_dir in $PATH 6477do 6478 IFS=$as_save_IFS 6479 case $as_dir in #((( 6480 '') as_dir=./ ;; 6481 */) ;; 6482 *) as_dir=$as_dir/ ;; 6483 esac 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_ac_ct_RANLIB="ranlib" 6487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi ;; 6495esac 6496fi 6497ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6498if test -n "$ac_ct_RANLIB"; then 6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6500printf "%s\n" "$ac_ct_RANLIB" >&6; } 6501else 6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503printf "%s\n" "no" >&6; } 6504fi 6505 6506 if test "x$ac_ct_RANLIB" = x; then 6507 RANLIB=":" 6508 else 6509 case $cross_compiling:$ac_tool_warned in 6510yes:) 6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6513ac_tool_warned=yes ;; 6514esac 6515 RANLIB=$ac_ct_RANLIB 6516 fi 6517else 6518 RANLIB="$ac_cv_prog_RANLIB" 6519fi 6520 6521if test -n "$ac_tool_prefix"; then 6522 for ac_prog in ar 6523 do 6524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6525set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527printf %s "checking for $ac_word... " >&6; } 6528if test ${ac_cv_prog_AR+y} 6529then : 6530 printf %s "(cached) " >&6 6531else case e in #( 6532 e) if test -n "$AR"; then 6533 ac_cv_prog_AR="$AR" # Let the user override the test. 6534else 6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536for as_dir in $PATH 6537do 6538 IFS=$as_save_IFS 6539 case $as_dir in #((( 6540 '') as_dir=./ ;; 6541 */) ;; 6542 *) as_dir=$as_dir/ ;; 6543 esac 6544 for ac_exec_ext in '' $ac_executable_extensions; do 6545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6546 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6548 break 2 6549 fi 6550done 6551 done 6552IFS=$as_save_IFS 6553 6554fi ;; 6555esac 6556fi 6557AR=$ac_cv_prog_AR 6558if test -n "$AR"; then 6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6560printf "%s\n" "$AR" >&6; } 6561else 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563printf "%s\n" "no" >&6; } 6564fi 6565 6566 6567 test -n "$AR" && break 6568 done 6569fi 6570if test -z "$AR"; then 6571 ac_ct_AR=$AR 6572 for ac_prog in ar 6573do 6574 # Extract the first word of "$ac_prog", so it can be a program name with args. 6575set dummy $ac_prog; ac_word=$2 6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577printf %s "checking for $ac_word... " >&6; } 6578if test ${ac_cv_prog_ac_ct_AR+y} 6579then : 6580 printf %s "(cached) " >&6 6581else case e in #( 6582 e) if test -n "$ac_ct_AR"; then 6583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6584else 6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6586for as_dir in $PATH 6587do 6588 IFS=$as_save_IFS 6589 case $as_dir in #((( 6590 '') as_dir=./ ;; 6591 */) ;; 6592 *) as_dir=$as_dir/ ;; 6593 esac 6594 for ac_exec_ext in '' $ac_executable_extensions; do 6595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6596 ac_cv_prog_ac_ct_AR="$ac_prog" 6597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6598 break 2 6599 fi 6600done 6601 done 6602IFS=$as_save_IFS 6603 6604fi ;; 6605esac 6606fi 6607ac_ct_AR=$ac_cv_prog_ac_ct_AR 6608if test -n "$ac_ct_AR"; then 6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6610printf "%s\n" "$ac_ct_AR" >&6; } 6611else 6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6613printf "%s\n" "no" >&6; } 6614fi 6615 6616 6617 test -n "$ac_ct_AR" && break 6618done 6619 6620 if test "x$ac_ct_AR" = x; then 6621 AR="false" 6622 else 6623 case $cross_compiling:$ac_tool_warned in 6624yes:) 6625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6626printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6627ac_tool_warned=yes ;; 6628esac 6629 AR=$ac_ct_AR 6630 fi 6631fi 6632 6633: ${AR=ar} 6634 6635 6636 6637 6638 6639 6640# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6641# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6642# higher priority because that's what people were doing historically (setting 6643# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6644# variable obsoleted/removed. 6645 6646test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6647lt_ar_flags=$AR_FLAGS 6648 6649 6650 6651 6652 6653 6654# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6655# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6656 6657 6658 6659 6660 6661 6662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6663printf %s "checking for archiver @FILE support... " >&6; } 6664if test ${lt_cv_ar_at_file+y} 6665then : 6666 printf %s "(cached) " >&6 6667else case e in #( 6668 e) lt_cv_ar_at_file=no 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671 6672int 6673main (void) 6674{ 6675 6676 ; 6677 return 0; 6678} 6679_ACEOF 6680if ac_fn_c_try_compile "$LINENO" 6681then : 6682 echo conftest.$ac_objext > conftest.lst 6683 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6685 (eval $lt_ar_try) 2>&5 6686 ac_status=$? 6687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6688 test $ac_status = 0; } 6689 if test 0 -eq "$ac_status"; then 6690 # Ensure the archiver fails upon bogus file names. 6691 rm -f conftest.$ac_objext libconftest.a 6692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6693 (eval $lt_ar_try) 2>&5 6694 ac_status=$? 6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6696 test $ac_status = 0; } 6697 if test 0 -ne "$ac_status"; then 6698 lt_cv_ar_at_file=@ 6699 fi 6700 fi 6701 rm -f conftest.* libconftest.a 6702 6703fi 6704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6705 ;; 6706esac 6707fi 6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6709printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6710 6711if test no = "$lt_cv_ar_at_file"; then 6712 archiver_list_spec= 6713else 6714 archiver_list_spec=$lt_cv_ar_at_file 6715fi 6716 6717 6718 6719 6720 6721 6722 6723if test -n "$ac_tool_prefix"; then 6724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6725set dummy ${ac_tool_prefix}strip; ac_word=$2 6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6727printf %s "checking for $ac_word... " >&6; } 6728if test ${ac_cv_prog_STRIP+y} 6729then : 6730 printf %s "(cached) " >&6 6731else case e in #( 6732 e) if test -n "$STRIP"; then 6733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 case $as_dir in #((( 6740 '') as_dir=./ ;; 6741 */) ;; 6742 *) as_dir=$as_dir/ ;; 6743 esac 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6746 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750done 6751 done 6752IFS=$as_save_IFS 6753 6754fi ;; 6755esac 6756fi 6757STRIP=$ac_cv_prog_STRIP 6758if test -n "$STRIP"; then 6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6760printf "%s\n" "$STRIP" >&6; } 6761else 6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763printf "%s\n" "no" >&6; } 6764fi 6765 6766 6767fi 6768if test -z "$ac_cv_prog_STRIP"; then 6769 ac_ct_STRIP=$STRIP 6770 # Extract the first word of "strip", so it can be a program name with args. 6771set dummy strip; ac_word=$2 6772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773printf %s "checking for $ac_word... " >&6; } 6774if test ${ac_cv_prog_ac_ct_STRIP+y} 6775then : 6776 printf %s "(cached) " >&6 6777else case e in #( 6778 e) if test -n "$ac_ct_STRIP"; then 6779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6780else 6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 case $as_dir in #((( 6786 '') as_dir=./ ;; 6787 */) ;; 6788 *) as_dir=$as_dir/ ;; 6789 esac 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_ac_ct_STRIP="strip" 6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi ;; 6801esac 6802fi 6803ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6804if test -n "$ac_ct_STRIP"; then 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6806printf "%s\n" "$ac_ct_STRIP" >&6; } 6807else 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809printf "%s\n" "no" >&6; } 6810fi 6811 6812 if test "x$ac_ct_STRIP" = x; then 6813 STRIP=":" 6814 else 6815 case $cross_compiling:$ac_tool_warned in 6816yes:) 6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6819ac_tool_warned=yes ;; 6820esac 6821 STRIP=$ac_ct_STRIP 6822 fi 6823else 6824 STRIP="$ac_cv_prog_STRIP" 6825fi 6826 6827test -z "$STRIP" && STRIP=: 6828 6829 6830 6831 6832 6833 6834 6835test -z "$RANLIB" && RANLIB=: 6836 6837 6838 6839 6840 6841 6842# Determine commands to create old-style static archives. 6843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6844old_postinstall_cmds='chmod 644 $oldlib' 6845old_postuninstall_cmds= 6846 6847if test -n "$RANLIB"; then 6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6850fi 6851 6852case $host_os in 6853 darwin*) 6854 lock_old_archive_extraction=yes ;; 6855 *) 6856 lock_old_archive_extraction=no ;; 6857esac 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897# If no C compiler was specified, use CC. 6898LTCC=${LTCC-"$CC"} 6899 6900# If no C compiler flags were specified, use CFLAGS. 6901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6902 6903# Allow CC to be a program name with arguments. 6904compiler=$CC 6905 6906 6907# Check for command to grab the raw symbol name followed by C symbol from nm. 6908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6909printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6910if test ${lt_cv_sys_global_symbol_pipe+y} 6911then : 6912 printf %s "(cached) " >&6 6913else case e in #( 6914 e) 6915# These are sane defaults that work on at least a few old systems. 6916# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6917 6918# Character class describing NM global symbol codes. 6919symcode='[BCDEGRST]' 6920 6921# Regexp to match symbols that can be accessed directly from C. 6922sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6923 6924# Define system-specific variables. 6925case $host_os in 6926aix*) 6927 symcode='[BCDT]' 6928 ;; 6929cygwin* | mingw* | windows* | pw32* | cegcc*) 6930 symcode='[ABCDGISTW]' 6931 ;; 6932hpux*) 6933 if test ia64 = "$host_cpu"; then 6934 symcode='[ABCDEGRST]' 6935 fi 6936 ;; 6937irix* | nonstopux*) 6938 symcode='[BCDEGRST]' 6939 ;; 6940osf*) 6941 symcode='[BCDEGQRST]' 6942 ;; 6943solaris*) 6944 symcode='[BCDRT]' 6945 ;; 6946sco3.2v5*) 6947 symcode='[DT]' 6948 ;; 6949sysv4.2uw2*) 6950 symcode='[DT]' 6951 ;; 6952sysv5* | sco5v6* | unixware* | OpenUNIX*) 6953 symcode='[ABDT]' 6954 ;; 6955sysv4) 6956 symcode='[DFNSTU]' 6957 ;; 6958esac 6959 6960# If we're using GNU nm, then use its standard symbol codes. 6961case `$NM -V 2>&1` in 6962*GNU* | *'with BFD'*) 6963 symcode='[ABCDGIRSTW]' ;; 6964esac 6965 6966if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6967 # Gets list of data symbols to import. 6968 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6969 # Adjust the below global symbol transforms to fixup imported variables. 6970 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6971 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6972 lt_c_name_lib_hook="\ 6973 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6974 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6975else 6976 # Disable hooks by default. 6977 lt_cv_sys_global_symbol_to_import= 6978 lt_cdecl_hook= 6979 lt_c_name_hook= 6980 lt_c_name_lib_hook= 6981fi 6982 6983# Transform an extracted symbol line into a proper C declaration. 6984# Some systems (esp. on ia64) link data and code symbols differently, 6985# so use this general approach. 6986lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6987$lt_cdecl_hook\ 6988" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6989" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6990 6991# Transform an extracted symbol line into symbol name and symbol address 6992lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6993$lt_c_name_hook\ 6994" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6995" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6996 6997# Transform an extracted symbol line into symbol name with lib prefix and 6998# symbol address. 6999lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7000$lt_c_name_lib_hook\ 7001" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7002" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7003" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7004 7005# Handle CRLF in mingw tool chain 7006opt_cr= 7007case $build_os in 7008mingw* | windows*) 7009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7010 ;; 7011esac 7012 7013# Try without a prefix underscore, then with it. 7014for ac_symprfx in "" "_"; do 7015 7016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7017 symxfrm="\\1 $ac_symprfx\\2 \\2" 7018 7019 # Write the raw and C identifiers. 7020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7021 # Fake it for dumpbin and say T for any non-static function, 7022 # D for any global variable and I for any imported variable. 7023 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7024 # which start with @ or ?. 7025 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7026" {last_section=section; section=\$ 3};"\ 7027" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7028" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7029" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7030" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7031" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7032" \$ 0!~/External *\|/{next};"\ 7033" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7034" {if(hide[section]) next};"\ 7035" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7036" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7037" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7038" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7039" ' prfx=^$ac_symprfx" 7040 else 7041 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7042 fi 7043 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7044 7045 # Check to see that the pipe works correctly. 7046 pipe_works=no 7047 7048 rm -f conftest* 7049 cat > conftest.$ac_ext <<_LT_EOF 7050#ifdef __cplusplus 7051extern "C" { 7052#endif 7053char nm_test_var; 7054void nm_test_func(void); 7055void nm_test_func(void){} 7056#ifdef __cplusplus 7057} 7058#endif 7059int main(void){nm_test_var='a';nm_test_func();return(0);} 7060_LT_EOF 7061 7062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7063 (eval $ac_compile) 2>&5 7064 ac_status=$? 7065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7066 test $ac_status = 0; }; then 7067 # Now try to grab the symbols. 7068 nlist=conftest.nm 7069 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7070 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7071 # Try sorting and uniquifying the output. 7072 if sort "$nlist" | uniq > "$nlist"T; then 7073 mv -f "$nlist"T "$nlist" 7074 else 7075 rm -f "$nlist"T 7076 fi 7077 7078 # Make sure that we snagged all the symbols we need. 7079 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7080 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7081 cat <<_LT_EOF > conftest.$ac_ext 7082/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7083#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7084/* DATA imports from DLLs on WIN32 can't be const, because runtime 7085 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7086# define LT_DLSYM_CONST 7087#elif defined __osf__ 7088/* This system does not cope well with relocations in const data. */ 7089# define LT_DLSYM_CONST 7090#else 7091# define LT_DLSYM_CONST const 7092#endif 7093 7094#ifdef __cplusplus 7095extern "C" { 7096#endif 7097 7098_LT_EOF 7099 # Now generate the symbol file. 7100 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7101 7102 cat <<_LT_EOF >> conftest.$ac_ext 7103 7104/* The mapping between symbol names and symbols. */ 7105LT_DLSYM_CONST struct { 7106 const char *name; 7107 void *address; 7108} 7109lt__PROGRAM__LTX_preloaded_symbols[] = 7110{ 7111 { "@PROGRAM@", (void *) 0 }, 7112_LT_EOF 7113 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7114 cat <<\_LT_EOF >> conftest.$ac_ext 7115 {0, (void *) 0} 7116}; 7117 7118/* This works around a problem in FreeBSD linker */ 7119#ifdef FREEBSD_WORKAROUND 7120static const void *lt_preloaded_setup() { 7121 return lt__PROGRAM__LTX_preloaded_symbols; 7122} 7123#endif 7124 7125#ifdef __cplusplus 7126} 7127#endif 7128_LT_EOF 7129 # Now try linking the two files. 7130 mv conftest.$ac_objext conftstm.$ac_objext 7131 lt_globsym_save_LIBS=$LIBS 7132 lt_globsym_save_CFLAGS=$CFLAGS 7133 LIBS=conftstm.$ac_objext 7134 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7136 (eval $ac_link) 2>&5 7137 ac_status=$? 7138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7139 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7140 pipe_works=yes 7141 fi 7142 LIBS=$lt_globsym_save_LIBS 7143 CFLAGS=$lt_globsym_save_CFLAGS 7144 else 7145 echo "cannot find nm_test_func in $nlist" >&5 7146 fi 7147 else 7148 echo "cannot find nm_test_var in $nlist" >&5 7149 fi 7150 else 7151 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7152 fi 7153 else 7154 echo "$progname: failed program was:" >&5 7155 cat conftest.$ac_ext >&5 7156 fi 7157 rm -rf conftest* conftst* 7158 7159 # Do not use the global_symbol_pipe unless it works. 7160 if test yes = "$pipe_works"; then 7161 break 7162 else 7163 lt_cv_sys_global_symbol_pipe= 7164 fi 7165done 7166 ;; 7167esac 7168fi 7169 7170if test -z "$lt_cv_sys_global_symbol_pipe"; then 7171 lt_cv_sys_global_symbol_to_cdecl= 7172fi 7173if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7175printf "%s\n" "failed" >&6; } 7176else 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7178printf "%s\n" "ok" >&6; } 7179fi 7180 7181# Response file support. 7182if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7183 nm_file_list_spec='@' 7184elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7185 nm_file_list_spec='@' 7186fi 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7225printf %s "checking for sysroot... " >&6; } 7226 7227# Check whether --with-sysroot was given. 7228if test ${with_sysroot+y} 7229then : 7230 withval=$with_sysroot; 7231else case e in #( 7232 e) with_sysroot=no ;; 7233esac 7234fi 7235 7236 7237lt_sysroot= 7238case $with_sysroot in #( 7239 yes) 7240 if test yes = "$GCC"; then 7241 # Trim trailing / since we'll always append absolute paths and we want 7242 # to avoid //, if only for less confusing output for the user. 7243 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7244 fi 7245 ;; #( 7246 /*) 7247 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7248 ;; #( 7249 no|'') 7250 ;; #( 7251 *) 7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7253printf "%s\n" "$with_sysroot" >&6; } 7254 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7255 ;; 7256esac 7257 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7259printf "%s\n" "${lt_sysroot:-no}" >&6; } 7260 7261 7262 7263 7264 7265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7266printf %s "checking for a working dd... " >&6; } 7267if test ${ac_cv_path_lt_DD+y} 7268then : 7269 printf %s "(cached) " >&6 7270else case e in #( 7271 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7272cat conftest.i conftest.i >conftest2.i 7273: ${lt_DD:=$DD} 7274if test -z "$lt_DD"; then 7275 ac_path_lt_DD_found=false 7276 # Loop through the user's path and test for each of PROGNAME-LIST 7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278for as_dir in $PATH 7279do 7280 IFS=$as_save_IFS 7281 case $as_dir in #((( 7282 '') as_dir=./ ;; 7283 */) ;; 7284 *) as_dir=$as_dir/ ;; 7285 esac 7286 for ac_prog in dd 7287 do 7288 for ac_exec_ext in '' $ac_executable_extensions; do 7289 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7290 as_fn_executable_p "$ac_path_lt_DD" || continue 7291if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7292 cmp -s conftest.i conftest.out \ 7293 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7294fi 7295 $ac_path_lt_DD_found && break 3 7296 done 7297 done 7298 done 7299IFS=$as_save_IFS 7300 if test -z "$ac_cv_path_lt_DD"; then 7301 : 7302 fi 7303else 7304 ac_cv_path_lt_DD=$lt_DD 7305fi 7306 7307rm -f conftest.i conftest2.i conftest.out ;; 7308esac 7309fi 7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7311printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7312 7313 7314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7315printf %s "checking how to truncate binary pipes... " >&6; } 7316if test ${lt_cv_truncate_bin+y} 7317then : 7318 printf %s "(cached) " >&6 7319else case e in #( 7320 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7321cat conftest.i conftest.i >conftest2.i 7322lt_cv_truncate_bin= 7323if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7324 cmp -s conftest.i conftest.out \ 7325 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7326fi 7327rm -f conftest.i conftest2.i conftest.out 7328test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7329esac 7330fi 7331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7332printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7333 7334 7335 7336 7337 7338 7339 7340# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7341func_cc_basename () 7342{ 7343 for cc_temp in $*""; do 7344 case $cc_temp in 7345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7347 \-*) ;; 7348 *) break;; 7349 esac 7350 done 7351 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7352} 7353 7354# Check whether --enable-libtool-lock was given. 7355if test ${enable_libtool_lock+y} 7356then : 7357 enableval=$enable_libtool_lock; 7358fi 7359 7360test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7361 7362# Some flags need to be propagated to the compiler or linker for good 7363# libtool support. 7364case $host in 7365ia64-*-hpux*) 7366 # Find out what ABI is being produced by ac_compile, and set mode 7367 # options accordingly. 7368 echo 'int i;' > conftest.$ac_ext 7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7370 (eval $ac_compile) 2>&5 7371 ac_status=$? 7372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7373 test $ac_status = 0; }; then 7374 case `$FILECMD conftest.$ac_objext` in 7375 *ELF-32*) 7376 HPUX_IA64_MODE=32 7377 ;; 7378 *ELF-64*) 7379 HPUX_IA64_MODE=64 7380 ;; 7381 esac 7382 fi 7383 rm -rf conftest* 7384 ;; 7385*-*-irix6*) 7386 # Find out what ABI is being produced by ac_compile, and set linker 7387 # options accordingly. 7388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7390 (eval $ac_compile) 2>&5 7391 ac_status=$? 7392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7393 test $ac_status = 0; }; then 7394 if test yes = "$lt_cv_prog_gnu_ld"; then 7395 case `$FILECMD conftest.$ac_objext` in 7396 *32-bit*) 7397 LD="${LD-ld} -melf32bsmip" 7398 ;; 7399 *N32*) 7400 LD="${LD-ld} -melf32bmipn32" 7401 ;; 7402 *64-bit*) 7403 LD="${LD-ld} -melf64bmip" 7404 ;; 7405 esac 7406 else 7407 case `$FILECMD conftest.$ac_objext` in 7408 *32-bit*) 7409 LD="${LD-ld} -32" 7410 ;; 7411 *N32*) 7412 LD="${LD-ld} -n32" 7413 ;; 7414 *64-bit*) 7415 LD="${LD-ld} -64" 7416 ;; 7417 esac 7418 fi 7419 fi 7420 rm -rf conftest* 7421 ;; 7422 7423mips64*-*linux*) 7424 # Find out what ABI is being produced by ac_compile, and set linker 7425 # options accordingly. 7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7428 (eval $ac_compile) 2>&5 7429 ac_status=$? 7430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7431 test $ac_status = 0; }; then 7432 emul=elf 7433 case `$FILECMD conftest.$ac_objext` in 7434 *32-bit*) 7435 emul="${emul}32" 7436 ;; 7437 *64-bit*) 7438 emul="${emul}64" 7439 ;; 7440 esac 7441 case `$FILECMD conftest.$ac_objext` in 7442 *MSB*) 7443 emul="${emul}btsmip" 7444 ;; 7445 *LSB*) 7446 emul="${emul}ltsmip" 7447 ;; 7448 esac 7449 case `$FILECMD conftest.$ac_objext` in 7450 *N32*) 7451 emul="${emul}n32" 7452 ;; 7453 esac 7454 LD="${LD-ld} -m $emul" 7455 fi 7456 rm -rf conftest* 7457 ;; 7458 7459x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7460s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7461 # Find out what ABI is being produced by ac_compile, and set linker 7462 # options accordingly. Note that the listed cases only cover the 7463 # situations where additional linker options are needed (such as when 7464 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7465 # vice versa); the common cases where no linker options are needed do 7466 # not appear in the list. 7467 echo 'int i;' > conftest.$ac_ext 7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7469 (eval $ac_compile) 2>&5 7470 ac_status=$? 7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7472 test $ac_status = 0; }; then 7473 case `$FILECMD conftest.o` in 7474 *32-bit*) 7475 case $host in 7476 x86_64-*kfreebsd*-gnu) 7477 LD="${LD-ld} -m elf_i386_fbsd" 7478 ;; 7479 x86_64-*linux*|x86_64-gnu*) 7480 case `$FILECMD conftest.o` in 7481 *x86-64*) 7482 LD="${LD-ld} -m elf32_x86_64" 7483 ;; 7484 *) 7485 LD="${LD-ld} -m elf_i386" 7486 ;; 7487 esac 7488 ;; 7489 powerpc64le-*linux*) 7490 LD="${LD-ld} -m elf32lppclinux" 7491 ;; 7492 powerpc64-*linux*) 7493 LD="${LD-ld} -m elf32ppclinux" 7494 ;; 7495 s390x-*linux*) 7496 LD="${LD-ld} -m elf_s390" 7497 ;; 7498 sparc64-*linux*) 7499 LD="${LD-ld} -m elf32_sparc" 7500 ;; 7501 esac 7502 ;; 7503 *64-bit*) 7504 case $host in 7505 x86_64-*kfreebsd*-gnu) 7506 LD="${LD-ld} -m elf_x86_64_fbsd" 7507 ;; 7508 x86_64-*linux*|x86_64-gnu*) 7509 LD="${LD-ld} -m elf_x86_64" 7510 ;; 7511 powerpcle-*linux*) 7512 LD="${LD-ld} -m elf64lppc" 7513 ;; 7514 powerpc-*linux*) 7515 LD="${LD-ld} -m elf64ppc" 7516 ;; 7517 s390*-*linux*|s390*-*tpf*) 7518 LD="${LD-ld} -m elf64_s390" 7519 ;; 7520 sparc*-*linux*) 7521 LD="${LD-ld} -m elf64_sparc" 7522 ;; 7523 esac 7524 ;; 7525 esac 7526 fi 7527 rm -rf conftest* 7528 ;; 7529 7530*-*-sco3.2v5*) 7531 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7532 SAVE_CFLAGS=$CFLAGS 7533 CFLAGS="$CFLAGS -belf" 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7535printf %s "checking whether the C compiler needs -belf... " >&6; } 7536if test ${lt_cv_cc_needs_belf+y} 7537then : 7538 printf %s "(cached) " >&6 7539else case e in #( 7540 e) ac_ext=c 7541ac_cpp='$CPP $CPPFLAGS' 7542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7544ac_compiler_gnu=$ac_cv_c_compiler_gnu 7545 7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547/* end confdefs.h. */ 7548 7549int 7550main (void) 7551{ 7552 7553 ; 7554 return 0; 7555} 7556_ACEOF 7557if ac_fn_c_try_link "$LINENO" 7558then : 7559 lt_cv_cc_needs_belf=yes 7560else case e in #( 7561 e) lt_cv_cc_needs_belf=no ;; 7562esac 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7565 conftest$ac_exeext conftest.$ac_ext 7566 ac_ext=c 7567ac_cpp='$CPP $CPPFLAGS' 7568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7570ac_compiler_gnu=$ac_cv_c_compiler_gnu 7571 ;; 7572esac 7573fi 7574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7575printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7576 if test yes != "$lt_cv_cc_needs_belf"; then 7577 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7578 CFLAGS=$SAVE_CFLAGS 7579 fi 7580 ;; 7581*-*solaris*) 7582 # Find out what ABI is being produced by ac_compile, and set linker 7583 # options accordingly. 7584 echo 'int i;' > conftest.$ac_ext 7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7586 (eval $ac_compile) 2>&5 7587 ac_status=$? 7588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7589 test $ac_status = 0; }; then 7590 case `$FILECMD conftest.o` in 7591 *64-bit*) 7592 case $lt_cv_prog_gnu_ld in 7593 yes*) 7594 case $host in 7595 i?86-*-solaris*|x86_64-*-solaris*) 7596 LD="${LD-ld} -m elf_x86_64" 7597 ;; 7598 sparc*-*-solaris*) 7599 LD="${LD-ld} -m elf64_sparc" 7600 ;; 7601 esac 7602 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7603 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7604 LD=${LD-ld}_sol2 7605 fi 7606 ;; 7607 *) 7608 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7609 LD="${LD-ld} -64" 7610 fi 7611 ;; 7612 esac 7613 ;; 7614 esac 7615 fi 7616 rm -rf conftest* 7617 ;; 7618esac 7619 7620need_locks=$enable_libtool_lock 7621 7622if test -n "$ac_tool_prefix"; then 7623 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7624set dummy ${ac_tool_prefix}mt; ac_word=$2 7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626printf %s "checking for $ac_word... " >&6; } 7627if test ${ac_cv_prog_MANIFEST_TOOL+y} 7628then : 7629 printf %s "(cached) " >&6 7630else case e in #( 7631 e) if test -n "$MANIFEST_TOOL"; then 7632 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7633else 7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7635for as_dir in $PATH 7636do 7637 IFS=$as_save_IFS 7638 case $as_dir in #((( 7639 '') as_dir=./ ;; 7640 */) ;; 7641 *) as_dir=$as_dir/ ;; 7642 esac 7643 for ac_exec_ext in '' $ac_executable_extensions; do 7644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7645 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7647 break 2 7648 fi 7649done 7650 done 7651IFS=$as_save_IFS 7652 7653fi ;; 7654esac 7655fi 7656MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7657if test -n "$MANIFEST_TOOL"; then 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7659printf "%s\n" "$MANIFEST_TOOL" >&6; } 7660else 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7662printf "%s\n" "no" >&6; } 7663fi 7664 7665 7666fi 7667if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7668 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7669 # Extract the first word of "mt", so it can be a program name with args. 7670set dummy mt; ac_word=$2 7671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672printf %s "checking for $ac_word... " >&6; } 7673if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7674then : 7675 printf %s "(cached) " >&6 7676else case e in #( 7677 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7678 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7679else 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 case $as_dir in #((( 7685 '') as_dir=./ ;; 7686 */) ;; 7687 *) as_dir=$as_dir/ ;; 7688 esac 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7691 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695done 7696 done 7697IFS=$as_save_IFS 7698 7699fi ;; 7700esac 7701fi 7702ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7703if test -n "$ac_ct_MANIFEST_TOOL"; then 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7705printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7706else 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708printf "%s\n" "no" >&6; } 7709fi 7710 7711 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7712 MANIFEST_TOOL=":" 7713 else 7714 case $cross_compiling:$ac_tool_warned in 7715yes:) 7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7717printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7718ac_tool_warned=yes ;; 7719esac 7720 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7721 fi 7722else 7723 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7724fi 7725 7726test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7728printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7729if test ${lt_cv_path_manifest_tool+y} 7730then : 7731 printf %s "(cached) " >&6 7732else case e in #( 7733 e) lt_cv_path_manifest_tool=no 7734 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7735 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7736 cat conftest.err >&5 7737 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7738 lt_cv_path_manifest_tool=yes 7739 fi 7740 rm -f conftest* ;; 7741esac 7742fi 7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7744printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7745if test yes != "$lt_cv_path_manifest_tool"; then 7746 MANIFEST_TOOL=: 7747fi 7748 7749 7750 7751 7752 7753 7754 case $host_os in 7755 rhapsody* | darwin*) 7756 if test -n "$ac_tool_prefix"; then 7757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7758set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760printf %s "checking for $ac_word... " >&6; } 7761if test ${ac_cv_prog_DSYMUTIL+y} 7762then : 7763 printf %s "(cached) " >&6 7764else case e in #( 7765 e) if test -n "$DSYMUTIL"; then 7766 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7767else 7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7769for as_dir in $PATH 7770do 7771 IFS=$as_save_IFS 7772 case $as_dir in #((( 7773 '') as_dir=./ ;; 7774 */) ;; 7775 *) as_dir=$as_dir/ ;; 7776 esac 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi ;; 7788esac 7789fi 7790DSYMUTIL=$ac_cv_prog_DSYMUTIL 7791if test -n "$DSYMUTIL"; then 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7793printf "%s\n" "$DSYMUTIL" >&6; } 7794else 7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7796printf "%s\n" "no" >&6; } 7797fi 7798 7799 7800fi 7801if test -z "$ac_cv_prog_DSYMUTIL"; then 7802 ac_ct_DSYMUTIL=$DSYMUTIL 7803 # Extract the first word of "dsymutil", so it can be a program name with args. 7804set dummy dsymutil; ac_word=$2 7805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7806printf %s "checking for $ac_word... " >&6; } 7807if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7808then : 7809 printf %s "(cached) " >&6 7810else case e in #( 7811 e) if test -n "$ac_ct_DSYMUTIL"; then 7812 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7813else 7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7815for as_dir in $PATH 7816do 7817 IFS=$as_save_IFS 7818 case $as_dir in #((( 7819 '') as_dir=./ ;; 7820 */) ;; 7821 *) as_dir=$as_dir/ ;; 7822 esac 7823 for ac_exec_ext in '' $ac_executable_extensions; do 7824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7825 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7827 break 2 7828 fi 7829done 7830 done 7831IFS=$as_save_IFS 7832 7833fi ;; 7834esac 7835fi 7836ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7837if test -n "$ac_ct_DSYMUTIL"; then 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7839printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7840else 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842printf "%s\n" "no" >&6; } 7843fi 7844 7845 if test "x$ac_ct_DSYMUTIL" = x; then 7846 DSYMUTIL=":" 7847 else 7848 case $cross_compiling:$ac_tool_warned in 7849yes:) 7850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7852ac_tool_warned=yes ;; 7853esac 7854 DSYMUTIL=$ac_ct_DSYMUTIL 7855 fi 7856else 7857 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7858fi 7859 7860 if test -n "$ac_tool_prefix"; then 7861 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7862set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7864printf %s "checking for $ac_word... " >&6; } 7865if test ${ac_cv_prog_NMEDIT+y} 7866then : 7867 printf %s "(cached) " >&6 7868else case e in #( 7869 e) if test -n "$NMEDIT"; then 7870 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7871else 7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7873for as_dir in $PATH 7874do 7875 IFS=$as_save_IFS 7876 case $as_dir in #((( 7877 '') as_dir=./ ;; 7878 */) ;; 7879 *) as_dir=$as_dir/ ;; 7880 esac 7881 for ac_exec_ext in '' $ac_executable_extensions; do 7882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7885 break 2 7886 fi 7887done 7888 done 7889IFS=$as_save_IFS 7890 7891fi ;; 7892esac 7893fi 7894NMEDIT=$ac_cv_prog_NMEDIT 7895if test -n "$NMEDIT"; then 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7897printf "%s\n" "$NMEDIT" >&6; } 7898else 7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7900printf "%s\n" "no" >&6; } 7901fi 7902 7903 7904fi 7905if test -z "$ac_cv_prog_NMEDIT"; then 7906 ac_ct_NMEDIT=$NMEDIT 7907 # Extract the first word of "nmedit", so it can be a program name with args. 7908set dummy nmedit; ac_word=$2 7909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7910printf %s "checking for $ac_word... " >&6; } 7911if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7912then : 7913 printf %s "(cached) " >&6 7914else case e in #( 7915 e) if test -n "$ac_ct_NMEDIT"; then 7916 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7917else 7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7919for as_dir in $PATH 7920do 7921 IFS=$as_save_IFS 7922 case $as_dir in #((( 7923 '') as_dir=./ ;; 7924 */) ;; 7925 *) as_dir=$as_dir/ ;; 7926 esac 7927 for ac_exec_ext in '' $ac_executable_extensions; do 7928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7929 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7931 break 2 7932 fi 7933done 7934 done 7935IFS=$as_save_IFS 7936 7937fi ;; 7938esac 7939fi 7940ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7941if test -n "$ac_ct_NMEDIT"; then 7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7943printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7944else 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7946printf "%s\n" "no" >&6; } 7947fi 7948 7949 if test "x$ac_ct_NMEDIT" = x; then 7950 NMEDIT=":" 7951 else 7952 case $cross_compiling:$ac_tool_warned in 7953yes:) 7954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7956ac_tool_warned=yes ;; 7957esac 7958 NMEDIT=$ac_ct_NMEDIT 7959 fi 7960else 7961 NMEDIT="$ac_cv_prog_NMEDIT" 7962fi 7963 7964 if test -n "$ac_tool_prefix"; then 7965 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7966set dummy ${ac_tool_prefix}lipo; ac_word=$2 7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968printf %s "checking for $ac_word... " >&6; } 7969if test ${ac_cv_prog_LIPO+y} 7970then : 7971 printf %s "(cached) " >&6 7972else case e in #( 7973 e) if test -n "$LIPO"; then 7974 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7975else 7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7977for as_dir in $PATH 7978do 7979 IFS=$as_save_IFS 7980 case $as_dir in #((( 7981 '') as_dir=./ ;; 7982 */) ;; 7983 *) as_dir=$as_dir/ ;; 7984 esac 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991done 7992 done 7993IFS=$as_save_IFS 7994 7995fi ;; 7996esac 7997fi 7998LIPO=$ac_cv_prog_LIPO 7999if test -n "$LIPO"; then 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8001printf "%s\n" "$LIPO" >&6; } 8002else 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8004printf "%s\n" "no" >&6; } 8005fi 8006 8007 8008fi 8009if test -z "$ac_cv_prog_LIPO"; then 8010 ac_ct_LIPO=$LIPO 8011 # Extract the first word of "lipo", so it can be a program name with args. 8012set dummy lipo; ac_word=$2 8013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8014printf %s "checking for $ac_word... " >&6; } 8015if test ${ac_cv_prog_ac_ct_LIPO+y} 8016then : 8017 printf %s "(cached) " >&6 8018else case e in #( 8019 e) if test -n "$ac_ct_LIPO"; then 8020 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8021else 8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8023for as_dir in $PATH 8024do 8025 IFS=$as_save_IFS 8026 case $as_dir in #((( 8027 '') as_dir=./ ;; 8028 */) ;; 8029 *) as_dir=$as_dir/ ;; 8030 esac 8031 for ac_exec_ext in '' $ac_executable_extensions; do 8032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8033 ac_cv_prog_ac_ct_LIPO="lipo" 8034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8035 break 2 8036 fi 8037done 8038 done 8039IFS=$as_save_IFS 8040 8041fi ;; 8042esac 8043fi 8044ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8045if test -n "$ac_ct_LIPO"; then 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8047printf "%s\n" "$ac_ct_LIPO" >&6; } 8048else 8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050printf "%s\n" "no" >&6; } 8051fi 8052 8053 if test "x$ac_ct_LIPO" = x; then 8054 LIPO=":" 8055 else 8056 case $cross_compiling:$ac_tool_warned in 8057yes:) 8058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8060ac_tool_warned=yes ;; 8061esac 8062 LIPO=$ac_ct_LIPO 8063 fi 8064else 8065 LIPO="$ac_cv_prog_LIPO" 8066fi 8067 8068 if test -n "$ac_tool_prefix"; then 8069 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8070set dummy ${ac_tool_prefix}otool; ac_word=$2 8071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072printf %s "checking for $ac_word... " >&6; } 8073if test ${ac_cv_prog_OTOOL+y} 8074then : 8075 printf %s "(cached) " >&6 8076else case e in #( 8077 e) if test -n "$OTOOL"; then 8078 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8079else 8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081for as_dir in $PATH 8082do 8083 IFS=$as_save_IFS 8084 case $as_dir in #((( 8085 '') as_dir=./ ;; 8086 */) ;; 8087 *) as_dir=$as_dir/ ;; 8088 esac 8089 for ac_exec_ext in '' $ac_executable_extensions; do 8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8093 break 2 8094 fi 8095done 8096 done 8097IFS=$as_save_IFS 8098 8099fi ;; 8100esac 8101fi 8102OTOOL=$ac_cv_prog_OTOOL 8103if test -n "$OTOOL"; then 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8105printf "%s\n" "$OTOOL" >&6; } 8106else 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8108printf "%s\n" "no" >&6; } 8109fi 8110 8111 8112fi 8113if test -z "$ac_cv_prog_OTOOL"; then 8114 ac_ct_OTOOL=$OTOOL 8115 # Extract the first word of "otool", so it can be a program name with args. 8116set dummy otool; ac_word=$2 8117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8118printf %s "checking for $ac_word... " >&6; } 8119if test ${ac_cv_prog_ac_ct_OTOOL+y} 8120then : 8121 printf %s "(cached) " >&6 8122else case e in #( 8123 e) if test -n "$ac_ct_OTOOL"; then 8124 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8125else 8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127for as_dir in $PATH 8128do 8129 IFS=$as_save_IFS 8130 case $as_dir in #((( 8131 '') as_dir=./ ;; 8132 */) ;; 8133 *) as_dir=$as_dir/ ;; 8134 esac 8135 for ac_exec_ext in '' $ac_executable_extensions; do 8136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8137 ac_cv_prog_ac_ct_OTOOL="otool" 8138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8139 break 2 8140 fi 8141done 8142 done 8143IFS=$as_save_IFS 8144 8145fi ;; 8146esac 8147fi 8148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8149if test -n "$ac_ct_OTOOL"; then 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8151printf "%s\n" "$ac_ct_OTOOL" >&6; } 8152else 8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154printf "%s\n" "no" >&6; } 8155fi 8156 8157 if test "x$ac_ct_OTOOL" = x; then 8158 OTOOL=":" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 OTOOL=$ac_ct_OTOOL 8167 fi 8168else 8169 OTOOL="$ac_cv_prog_OTOOL" 8170fi 8171 8172 if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8174set dummy ${ac_tool_prefix}otool64; ac_word=$2 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176printf %s "checking for $ac_word... " >&6; } 8177if test ${ac_cv_prog_OTOOL64+y} 8178then : 8179 printf %s "(cached) " >&6 8180else case e in #( 8181 e) if test -n "$OTOOL64"; then 8182 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8183else 8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8185for as_dir in $PATH 8186do 8187 IFS=$as_save_IFS 8188 case $as_dir in #((( 8189 '') as_dir=./ ;; 8190 */) ;; 8191 *) as_dir=$as_dir/ ;; 8192 esac 8193 for ac_exec_ext in '' $ac_executable_extensions; do 8194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8197 break 2 8198 fi 8199done 8200 done 8201IFS=$as_save_IFS 8202 8203fi ;; 8204esac 8205fi 8206OTOOL64=$ac_cv_prog_OTOOL64 8207if test -n "$OTOOL64"; then 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8209printf "%s\n" "$OTOOL64" >&6; } 8210else 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212printf "%s\n" "no" >&6; } 8213fi 8214 8215 8216fi 8217if test -z "$ac_cv_prog_OTOOL64"; then 8218 ac_ct_OTOOL64=$OTOOL64 8219 # Extract the first word of "otool64", so it can be a program name with args. 8220set dummy otool64; ac_word=$2 8221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8222printf %s "checking for $ac_word... " >&6; } 8223if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8224then : 8225 printf %s "(cached) " >&6 8226else case e in #( 8227 e) if test -n "$ac_ct_OTOOL64"; then 8228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8229else 8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8231for as_dir in $PATH 8232do 8233 IFS=$as_save_IFS 8234 case $as_dir in #((( 8235 '') as_dir=./ ;; 8236 */) ;; 8237 *) as_dir=$as_dir/ ;; 8238 esac 8239 for ac_exec_ext in '' $ac_executable_extensions; do 8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8241 ac_cv_prog_ac_ct_OTOOL64="otool64" 8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8243 break 2 8244 fi 8245done 8246 done 8247IFS=$as_save_IFS 8248 8249fi ;; 8250esac 8251fi 8252ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8253if test -n "$ac_ct_OTOOL64"; then 8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8255printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8256else 8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8258printf "%s\n" "no" >&6; } 8259fi 8260 8261 if test "x$ac_ct_OTOOL64" = x; then 8262 OTOOL64=":" 8263 else 8264 case $cross_compiling:$ac_tool_warned in 8265yes:) 8266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8267printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8268ac_tool_warned=yes ;; 8269esac 8270 OTOOL64=$ac_ct_OTOOL64 8271 fi 8272else 8273 OTOOL64="$ac_cv_prog_OTOOL64" 8274fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8303printf %s "checking for -single_module linker flag... " >&6; } 8304if test ${lt_cv_apple_cc_single_mod+y} 8305then : 8306 printf %s "(cached) " >&6 8307else case e in #( 8308 e) lt_cv_apple_cc_single_mod=no 8309 if test -z "$LT_MULTI_MODULE"; then 8310 # By default we will add the -single_module flag. You can override 8311 # by either setting the environment variable LT_MULTI_MODULE 8312 # non-empty at configure time, or by adding -multi_module to the 8313 # link flags. 8314 rm -rf libconftest.dylib* 8315 echo "int foo(void){return 1;}" > conftest.c 8316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8317-dynamiclib -Wl,-single_module conftest.c" >&5 8318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8320 _lt_result=$? 8321 # If there is a non-empty error log, and "single_module" 8322 # appears in it, assume the flag caused a linker warning 8323 if test -s conftest.err && $GREP single_module conftest.err; then 8324 cat conftest.err >&5 8325 # Otherwise, if the output was created with a 0 exit code from 8326 # the compiler, it worked. 8327 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8328 lt_cv_apple_cc_single_mod=yes 8329 else 8330 cat conftest.err >&5 8331 fi 8332 rm -rf libconftest.dylib* 8333 rm -f conftest.* 8334 fi ;; 8335esac 8336fi 8337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8338printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8339 8340 # Feature test to disable chained fixups since it is not 8341 # compatible with '-undefined dynamic_lookup' 8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8343printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8344if test ${lt_cv_support_no_fixup_chains+y} 8345then : 8346 printf %s "(cached) " >&6 8347else case e in #( 8348 e) save_LDFLAGS=$LDFLAGS 8349 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352 8353int 8354main (void) 8355{ 8356 8357 ; 8358 return 0; 8359} 8360_ACEOF 8361if ac_fn_c_try_link "$LINENO" 8362then : 8363 lt_cv_support_no_fixup_chains=yes 8364else case e in #( 8365 e) lt_cv_support_no_fixup_chains=no 8366 ;; 8367esac 8368fi 8369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8370 conftest$ac_exeext conftest.$ac_ext 8371 LDFLAGS=$save_LDFLAGS 8372 8373 ;; 8374esac 8375fi 8376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8377printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8378 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8380printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8381if test ${lt_cv_ld_exported_symbols_list+y} 8382then : 8383 printf %s "(cached) " >&6 8384else case e in #( 8385 e) lt_cv_ld_exported_symbols_list=no 8386 save_LDFLAGS=$LDFLAGS 8387 echo "_main" > conftest.sym 8388 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390/* end confdefs.h. */ 8391 8392int 8393main (void) 8394{ 8395 8396 ; 8397 return 0; 8398} 8399_ACEOF 8400if ac_fn_c_try_link "$LINENO" 8401then : 8402 lt_cv_ld_exported_symbols_list=yes 8403else case e in #( 8404 e) lt_cv_ld_exported_symbols_list=no ;; 8405esac 8406fi 8407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8408 conftest$ac_exeext conftest.$ac_ext 8409 LDFLAGS=$save_LDFLAGS 8410 ;; 8411esac 8412fi 8413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8414printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8415 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8417printf %s "checking for -force_load linker flag... " >&6; } 8418if test ${lt_cv_ld_force_load+y} 8419then : 8420 printf %s "(cached) " >&6 8421else case e in #( 8422 e) lt_cv_ld_force_load=no 8423 cat > conftest.c << _LT_EOF 8424int forced_loaded() { return 2;} 8425_LT_EOF 8426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8428 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8429 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8430 echo "$RANLIB libconftest.a" >&5 8431 $RANLIB libconftest.a 2>&5 8432 cat > conftest.c << _LT_EOF 8433int main(void) { return 0;} 8434_LT_EOF 8435 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8436 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8437 _lt_result=$? 8438 if test -s conftest.err && $GREP force_load conftest.err; then 8439 cat conftest.err >&5 8440 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8441 lt_cv_ld_force_load=yes 8442 else 8443 cat conftest.err >&5 8444 fi 8445 rm -f conftest.err libconftest.a conftest conftest.c 8446 rm -rf conftest.dSYM 8447 ;; 8448esac 8449fi 8450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8451printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8452 case $host_os in 8453 rhapsody* | darwin1.[012]) 8454 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8455 darwin1.*) 8456 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8457 darwin*) 8458 case $MACOSX_DEPLOYMENT_TARGET,$host in 8459 10.[012],*|,*powerpc*-darwin[5-8]*) 8460 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8461 *) 8462 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8463 if test yes = "$lt_cv_support_no_fixup_chains"; then 8464 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8465 fi 8466 ;; 8467 esac 8468 ;; 8469 esac 8470 if test yes = "$lt_cv_apple_cc_single_mod"; then 8471 _lt_dar_single_mod='$single_module' 8472 fi 8473 _lt_dar_needs_single_mod=no 8474 case $host_os in 8475 rhapsody* | darwin1.*) 8476 _lt_dar_needs_single_mod=yes ;; 8477 darwin*) 8478 # When targeting Mac OS X 10.4 (darwin 8) or later, 8479 # -single_module is the default and -multi_module is unsupported. 8480 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8481 # target any OS version that needs -single_module. 8482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8483 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8484 _lt_dar_needs_single_mod=yes ;; 8485 esac 8486 ;; 8487 esac 8488 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8489 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8490 else 8491 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8492 fi 8493 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8494 _lt_dsymutil='~$DSYMUTIL $lib || :' 8495 else 8496 _lt_dsymutil= 8497 fi 8498 ;; 8499 esac 8500 8501# func_munge_path_list VARIABLE PATH 8502# ----------------------------------- 8503# VARIABLE is name of variable containing _space_ separated list of 8504# directories to be munged by the contents of PATH, which is string 8505# having a format: 8506# "DIR[:DIR]:" 8507# string "DIR[ DIR]" will be prepended to VARIABLE 8508# ":DIR[:DIR]" 8509# string "DIR[ DIR]" will be appended to VARIABLE 8510# "DIRP[:DIRP]::[DIRA:]DIRA" 8511# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8512# "DIRA[ DIRA]" will be appended to VARIABLE 8513# "DIR[:DIR]" 8514# VARIABLE will be replaced by "DIR[ DIR]" 8515func_munge_path_list () 8516{ 8517 case x$2 in 8518 x) 8519 ;; 8520 *:) 8521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8522 ;; 8523 x:*) 8524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8525 ;; 8526 *::*) 8527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8529 ;; 8530 *) 8531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8532 ;; 8533 esac 8534} 8535 8536ac_header= ac_cache= 8537for ac_item in $ac_header_c_list 8538do 8539 if test $ac_cache; then 8540 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8541 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8542 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8543 fi 8544 ac_header= ac_cache= 8545 elif test $ac_header; then 8546 ac_cache=$ac_item 8547 else 8548 ac_header=$ac_item 8549 fi 8550done 8551 8552 8553 8554 8555 8556 8557 8558 8559if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8560then : 8561 8562printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8563 8564fi 8565ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8566" 8567if test "x$ac_cv_header_dlfcn_h" = xyes 8568then : 8569 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8570 8571fi 8572 8573 8574 8575 8576 8577# Set options 8578 8579 8580 8581 enable_dlopen=no 8582 8583 8584 enable_win32_dll=no 8585 8586 8587 # Check whether --enable-shared was given. 8588if test ${enable_shared+y} 8589then : 8590 enableval=$enable_shared; p=${PACKAGE-default} 8591 case $enableval in 8592 yes) enable_shared=yes ;; 8593 no) enable_shared=no ;; 8594 *) 8595 enable_shared=no 8596 # Look at the argument we got. We use all the common list separators. 8597 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8598 for pkg in $enableval; do 8599 IFS=$lt_save_ifs 8600 if test "X$pkg" = "X$p"; then 8601 enable_shared=yes 8602 fi 8603 done 8604 IFS=$lt_save_ifs 8605 ;; 8606 esac 8607else case e in #( 8608 e) enable_shared=yes ;; 8609esac 8610fi 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 # Check whether --enable-static was given. 8621if test ${enable_static+y} 8622then : 8623 enableval=$enable_static; p=${PACKAGE-default} 8624 case $enableval in 8625 yes) enable_static=yes ;; 8626 no) enable_static=no ;; 8627 *) 8628 enable_static=no 8629 # Look at the argument we got. We use all the common list separators. 8630 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8631 for pkg in $enableval; do 8632 IFS=$lt_save_ifs 8633 if test "X$pkg" = "X$p"; then 8634 enable_static=yes 8635 fi 8636 done 8637 IFS=$lt_save_ifs 8638 ;; 8639 esac 8640else case e in #( 8641 e) enable_static=yes ;; 8642esac 8643fi 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 # Check whether --enable-pic was given. 8654if test ${enable_pic+y} 8655then : 8656 enableval=$enable_pic; lt_p=${PACKAGE-default} 8657 case $enableval in 8658 yes|no) pic_mode=$enableval ;; 8659 *) 8660 pic_mode=default 8661 # Look at the argument we got. We use all the common list separators. 8662 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8663 for lt_pkg in $enableval; do 8664 IFS=$lt_save_ifs 8665 if test "X$lt_pkg" = "X$lt_p"; then 8666 pic_mode=yes 8667 fi 8668 done 8669 IFS=$lt_save_ifs 8670 ;; 8671 esac 8672else case e in #( 8673 e) # Check whether --with-pic was given. 8674if test ${with_pic+y} 8675then : 8676 withval=$with_pic; lt_p=${PACKAGE-default} 8677 case $withval in 8678 yes|no) pic_mode=$withval ;; 8679 *) 8680 pic_mode=default 8681 # Look at the argument we got. We use all the common list separators. 8682 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8683 for lt_pkg in $withval; do 8684 IFS=$lt_save_ifs 8685 if test "X$lt_pkg" = "X$lt_p"; then 8686 pic_mode=yes 8687 fi 8688 done 8689 IFS=$lt_save_ifs 8690 ;; 8691 esac 8692else case e in #( 8693 e) pic_mode=default ;; 8694esac 8695fi 8696 8697 ;; 8698esac 8699fi 8700 8701 8702 8703 8704 8705 8706 8707 8708 # Check whether --enable-fast-install was given. 8709if test ${enable_fast_install+y} 8710then : 8711 enableval=$enable_fast_install; p=${PACKAGE-default} 8712 case $enableval in 8713 yes) enable_fast_install=yes ;; 8714 no) enable_fast_install=no ;; 8715 *) 8716 enable_fast_install=no 8717 # Look at the argument we got. We use all the common list separators. 8718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8719 for pkg in $enableval; do 8720 IFS=$lt_save_ifs 8721 if test "X$pkg" = "X$p"; then 8722 enable_fast_install=yes 8723 fi 8724 done 8725 IFS=$lt_save_ifs 8726 ;; 8727 esac 8728else case e in #( 8729 e) enable_fast_install=yes ;; 8730esac 8731fi 8732 8733 8734 8735 8736 8737 8738 8739 8740 shared_archive_member_spec= 8741case $host,$enable_shared in 8742power*-*-aix[5-9]*,yes) 8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8744printf %s "checking which variant of shared library versioning to provide... " >&6; } 8745 # Check whether --enable-aix-soname was given. 8746if test ${enable_aix_soname+y} 8747then : 8748 enableval=$enable_aix_soname; case $enableval in 8749 aix|svr4|both) 8750 ;; 8751 *) 8752 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8753 ;; 8754 esac 8755 lt_cv_with_aix_soname=$enable_aix_soname 8756else case e in #( 8757 e) # Check whether --with-aix-soname was given. 8758if test ${with_aix_soname+y} 8759then : 8760 withval=$with_aix_soname; case $withval in 8761 aix|svr4|both) 8762 ;; 8763 *) 8764 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8765 ;; 8766 esac 8767 lt_cv_with_aix_soname=$with_aix_soname 8768else case e in #( 8769 e) if test ${lt_cv_with_aix_soname+y} 8770then : 8771 printf %s "(cached) " >&6 8772else case e in #( 8773 e) lt_cv_with_aix_soname=aix ;; 8774esac 8775fi 8776 ;; 8777esac 8778fi 8779 8780 enable_aix_soname=$lt_cv_with_aix_soname ;; 8781esac 8782fi 8783 8784 with_aix_soname=$enable_aix_soname 8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8786printf "%s\n" "$with_aix_soname" >&6; } 8787 if test aix != "$with_aix_soname"; then 8788 # For the AIX way of multilib, we name the shared archive member 8789 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8790 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8791 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8792 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8793 if test 64 = "${OBJECT_MODE-32}"; then 8794 shared_archive_member_spec=shr_64 8795 else 8796 shared_archive_member_spec=shr 8797 fi 8798 fi 8799 ;; 8800*) 8801 with_aix_soname=aix 8802 ;; 8803esac 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814# This can be used to rebuild libtool when needed 8815LIBTOOL_DEPS=$ltmain 8816 8817# Always use our own libtool. 8818LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849test -z "$LN_S" && LN_S="ln -s" 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864if test -n "${ZSH_VERSION+set}"; then 8865 setopt NO_GLOB_SUBST 8866fi 8867 8868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8869printf %s "checking for objdir... " >&6; } 8870if test ${lt_cv_objdir+y} 8871then : 8872 printf %s "(cached) " >&6 8873else case e in #( 8874 e) rm -f .libs 2>/dev/null 8875mkdir .libs 2>/dev/null 8876if test -d .libs; then 8877 lt_cv_objdir=.libs 8878else 8879 # MS-DOS does not allow filenames that begin with a dot. 8880 lt_cv_objdir=_libs 8881fi 8882rmdir .libs 2>/dev/null ;; 8883esac 8884fi 8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8886printf "%s\n" "$lt_cv_objdir" >&6; } 8887objdir=$lt_cv_objdir 8888 8889 8890 8891 8892 8893printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8894 8895 8896 8897 8898case $host_os in 8899aix3*) 8900 # AIX sometimes has problems with the GCC collect2 program. For some 8901 # reason, if we set the COLLECT_NAMES environment variable, the problems 8902 # vanish in a puff of smoke. 8903 if test set != "${COLLECT_NAMES+set}"; then 8904 COLLECT_NAMES= 8905 export COLLECT_NAMES 8906 fi 8907 ;; 8908esac 8909 8910# Global variables: 8911ofile=libtool 8912can_build_shared=yes 8913 8914# All known linkers require a '.a' archive for static linking (except MSVC and 8915# ICC, which need '.lib'). 8916libext=a 8917 8918with_gnu_ld=$lt_cv_prog_gnu_ld 8919 8920old_CC=$CC 8921old_CFLAGS=$CFLAGS 8922 8923# Set sane defaults for various variables 8924test -z "$CC" && CC=cc 8925test -z "$LTCC" && LTCC=$CC 8926test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8927test -z "$LD" && LD=ld 8928test -z "$ac_objext" && ac_objext=o 8929 8930func_cc_basename $compiler 8931cc_basename=$func_cc_basename_result 8932 8933 8934# Only perform the check for file, if the check method requires it 8935test -z "$MAGIC_CMD" && MAGIC_CMD=file 8936case $deplibs_check_method in 8937file_magic*) 8938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8940printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8941if test ${lt_cv_path_MAGIC_CMD+y} 8942then : 8943 printf %s "(cached) " >&6 8944else case e in #( 8945 e) case $MAGIC_CMD in 8946[\\/*] | ?:[\\/]*) 8947 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8948 ;; 8949*) 8950 lt_save_MAGIC_CMD=$MAGIC_CMD 8951 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8953 for ac_dir in $ac_dummy; do 8954 IFS=$lt_save_ifs 8955 test -z "$ac_dir" && ac_dir=. 8956 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8957 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8958 if test -n "$file_magic_test_file"; then 8959 case $deplibs_check_method in 8960 "file_magic "*) 8961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8962 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8964 $EGREP "$file_magic_regex" > /dev/null; then 8965 : 8966 else 8967 cat <<_LT_EOF 1>&2 8968 8969*** Warning: the command libtool uses to detect shared libraries, 8970*** $file_magic_cmd, produces output that libtool cannot recognize. 8971*** The result is that libtool may fail to recognize shared libraries 8972*** as such. This will affect the creation of libtool libraries that 8973*** depend on shared libraries, but programs linked with such libtool 8974*** libraries will work regardless of this problem. Nevertheless, you 8975*** may want to report the problem to your system manager and/or to 8976*** bug-libtool@gnu.org 8977 8978_LT_EOF 8979 fi ;; 8980 esac 8981 fi 8982 break 8983 fi 8984 done 8985 IFS=$lt_save_ifs 8986 MAGIC_CMD=$lt_save_MAGIC_CMD 8987 ;; 8988esac ;; 8989esac 8990fi 8991 8992MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8993if test -n "$MAGIC_CMD"; then 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8995printf "%s\n" "$MAGIC_CMD" >&6; } 8996else 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8998printf "%s\n" "no" >&6; } 8999fi 9000 9001 9002 9003 9004 9005if test -z "$lt_cv_path_MAGIC_CMD"; then 9006 if test -n "$ac_tool_prefix"; then 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9008printf %s "checking for file... " >&6; } 9009if test ${lt_cv_path_MAGIC_CMD+y} 9010then : 9011 printf %s "(cached) " >&6 9012else case e in #( 9013 e) case $MAGIC_CMD in 9014[\\/*] | ?:[\\/]*) 9015 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9016 ;; 9017*) 9018 lt_save_MAGIC_CMD=$MAGIC_CMD 9019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9021 for ac_dir in $ac_dummy; do 9022 IFS=$lt_save_ifs 9023 test -z "$ac_dir" && ac_dir=. 9024 if test -f "$ac_dir/file"; then 9025 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9026 if test -n "$file_magic_test_file"; then 9027 case $deplibs_check_method in 9028 "file_magic "*) 9029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9032 $EGREP "$file_magic_regex" > /dev/null; then 9033 : 9034 else 9035 cat <<_LT_EOF 1>&2 9036 9037*** Warning: the command libtool uses to detect shared libraries, 9038*** $file_magic_cmd, produces output that libtool cannot recognize. 9039*** The result is that libtool may fail to recognize shared libraries 9040*** as such. This will affect the creation of libtool libraries that 9041*** depend on shared libraries, but programs linked with such libtool 9042*** libraries will work regardless of this problem. Nevertheless, you 9043*** may want to report the problem to your system manager and/or to 9044*** bug-libtool@gnu.org 9045 9046_LT_EOF 9047 fi ;; 9048 esac 9049 fi 9050 break 9051 fi 9052 done 9053 IFS=$lt_save_ifs 9054 MAGIC_CMD=$lt_save_MAGIC_CMD 9055 ;; 9056esac ;; 9057esac 9058fi 9059 9060MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9061if test -n "$MAGIC_CMD"; then 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9063printf "%s\n" "$MAGIC_CMD" >&6; } 9064else 9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9066printf "%s\n" "no" >&6; } 9067fi 9068 9069 9070 else 9071 MAGIC_CMD=: 9072 fi 9073fi 9074 9075 fi 9076 ;; 9077esac 9078 9079# Use C for the default configuration in the libtool script 9080 9081lt_save_CC=$CC 9082ac_ext=c 9083ac_cpp='$CPP $CPPFLAGS' 9084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9086ac_compiler_gnu=$ac_cv_c_compiler_gnu 9087 9088 9089# Source file extension for C test sources. 9090ac_ext=c 9091 9092# Object file extension for compiled C test sources. 9093objext=o 9094objext=$objext 9095 9096# Code to be used in simple compile tests 9097lt_simple_compile_test_code="int some_variable = 0;" 9098 9099# Code to be used in simple link tests 9100lt_simple_link_test_code='int main(void){return(0);}' 9101 9102 9103 9104 9105 9106 9107 9108# If no C compiler was specified, use CC. 9109LTCC=${LTCC-"$CC"} 9110 9111# If no C compiler flags were specified, use CFLAGS. 9112LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9113 9114# Allow CC to be a program name with arguments. 9115compiler=$CC 9116 9117# Save the default compiler, since it gets overwritten when the other 9118# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9119compiler_DEFAULT=$CC 9120 9121# save warnings/boilerplate of simple test code 9122ac_outfile=conftest.$ac_objext 9123echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9124eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9125_lt_compiler_boilerplate=`cat conftest.err` 9126$RM conftest* 9127 9128ac_outfile=conftest.$ac_objext 9129echo "$lt_simple_link_test_code" >conftest.$ac_ext 9130eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9131_lt_linker_boilerplate=`cat conftest.err` 9132$RM -r conftest* 9133 9134 9135## CAVEAT EMPTOR: 9136## There is no encapsulation within the following macros, do not change 9137## the running order or otherwise move them around unless you know exactly 9138## what you are doing... 9139if test -n "$compiler"; then 9140 9141lt_prog_compiler_no_builtin_flag= 9142 9143if test yes = "$GCC"; then 9144 case $cc_basename in 9145 nvcc*) 9146 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9147 *) 9148 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9149 esac 9150 9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9152printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9153if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9154then : 9155 printf %s "(cached) " >&6 9156else case e in #( 9157 e) lt_cv_prog_compiler_rtti_exceptions=no 9158 ac_outfile=conftest.$ac_objext 9159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9160 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9161 # Insert the option either (1) after the last *FLAGS variable, or 9162 # (2) before a word containing "conftest.", or (3) at the end. 9163 # Note that $ac_compile itself does not contain backslashes and begins 9164 # with a dollar sign (not a hyphen), so the echo should work correctly. 9165 # The option is referenced via a variable to avoid confusing sed. 9166 lt_compile=`echo "$ac_compile" | $SED \ 9167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9169 -e 's:$: $lt_compiler_flag:'` 9170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9171 (eval "$lt_compile" 2>conftest.err) 9172 ac_status=$? 9173 cat conftest.err >&5 9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9175 if (exit $ac_status) && test -s "$ac_outfile"; then 9176 # The compiler can only warn and ignore the option if not recognized 9177 # So say no if there are warnings other than the usual output. 9178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9181 lt_cv_prog_compiler_rtti_exceptions=yes 9182 fi 9183 fi 9184 $RM conftest* 9185 ;; 9186esac 9187fi 9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9189printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9190 9191if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9192 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9193else 9194 : 9195fi 9196 9197fi 9198 9199 9200 9201 9202 9203 9204 lt_prog_compiler_wl= 9205lt_prog_compiler_pic= 9206lt_prog_compiler_static= 9207 9208 9209 if test yes = "$GCC"; then 9210 lt_prog_compiler_wl='-Wl,' 9211 lt_prog_compiler_static='-static' 9212 9213 case $host_os in 9214 aix*) 9215 # All AIX code is PIC. 9216 if test ia64 = "$host_cpu"; then 9217 # AIX 5 now supports IA64 processor 9218 lt_prog_compiler_static='-Bstatic' 9219 fi 9220 lt_prog_compiler_pic='-fPIC' 9221 ;; 9222 9223 amigaos*) 9224 case $host_cpu in 9225 powerpc) 9226 # see comment about AmigaOS4 .so support 9227 lt_prog_compiler_pic='-fPIC' 9228 ;; 9229 m68k) 9230 # FIXME: we need at least 68020 code to build shared libraries, but 9231 # adding the '-m68020' flag to GCC prevents building anything better, 9232 # like '-m68040'. 9233 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9234 ;; 9235 esac 9236 ;; 9237 9238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9239 # PIC is the default for these OSes. 9240 ;; 9241 9242 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9243 # This hack is so that the source file can tell whether it is being 9244 # built for inclusion in a dll (and should export symbols for example). 9245 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9246 # (--disable-auto-import) libraries 9247 lt_prog_compiler_pic='-DDLL_EXPORT' 9248 case $host_os in 9249 os2*) 9250 lt_prog_compiler_static='$wl-static' 9251 ;; 9252 esac 9253 ;; 9254 9255 darwin* | rhapsody*) 9256 # PIC is the default on this platform 9257 # Common symbols not allowed in MH_DYLIB files 9258 lt_prog_compiler_pic='-fno-common' 9259 ;; 9260 9261 haiku*) 9262 # PIC is the default for Haiku. 9263 # The "-static" flag exists, but is broken. 9264 lt_prog_compiler_static= 9265 ;; 9266 9267 hpux*) 9268 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9269 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9270 # sets the default TLS model and affects inlining. 9271 case $host_cpu in 9272 hppa*64*) 9273 # +Z the default 9274 ;; 9275 *) 9276 lt_prog_compiler_pic='-fPIC' 9277 ;; 9278 esac 9279 ;; 9280 9281 interix[3-9]*) 9282 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9283 # Instead, we relocate shared libraries at runtime. 9284 ;; 9285 9286 msdosdjgpp*) 9287 # Just because we use GCC doesn't mean we suddenly get shared libraries 9288 # on systems that don't support them. 9289 lt_prog_compiler_can_build_shared=no 9290 enable_shared=no 9291 ;; 9292 9293 *nto* | *qnx*) 9294 # QNX uses GNU C++, but need to define -shared option too, otherwise 9295 # it will coredump. 9296 lt_prog_compiler_pic='-fPIC -shared' 9297 ;; 9298 9299 sysv4*MP*) 9300 if test -d /usr/nec; then 9301 lt_prog_compiler_pic=-Kconform_pic 9302 fi 9303 ;; 9304 9305 *) 9306 lt_prog_compiler_pic='-fPIC' 9307 ;; 9308 esac 9309 9310 case $cc_basename in 9311 nvcc*) # Cuda Compiler Driver 2.2 9312 lt_prog_compiler_wl='-Xlinker ' 9313 if test -n "$lt_prog_compiler_pic"; then 9314 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9315 fi 9316 ;; 9317 esac 9318 else 9319 # PORTME Check for flag to pass linker flags through the system compiler. 9320 case $host_os in 9321 aix*) 9322 lt_prog_compiler_wl='-Wl,' 9323 if test ia64 = "$host_cpu"; then 9324 # AIX 5 now supports IA64 processor 9325 lt_prog_compiler_static='-Bstatic' 9326 else 9327 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9328 fi 9329 ;; 9330 9331 darwin* | rhapsody*) 9332 # PIC is the default on this platform 9333 # Common symbols not allowed in MH_DYLIB files 9334 lt_prog_compiler_pic='-fno-common' 9335 case $cc_basename in 9336 nagfor*) 9337 # NAG Fortran compiler 9338 lt_prog_compiler_wl='-Wl,-Wl,,' 9339 lt_prog_compiler_pic='-PIC' 9340 lt_prog_compiler_static='-Bstatic' 9341 ;; 9342 esac 9343 ;; 9344 9345 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9346 # This hack is so that the source file can tell whether it is being 9347 # built for inclusion in a dll (and should export symbols for example). 9348 lt_prog_compiler_pic='-DDLL_EXPORT' 9349 case $host_os in 9350 os2*) 9351 lt_prog_compiler_static='$wl-static' 9352 ;; 9353 esac 9354 ;; 9355 9356 hpux9* | hpux10* | hpux11*) 9357 lt_prog_compiler_wl='-Wl,' 9358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9359 # not for PA HP-UX. 9360 case $host_cpu in 9361 hppa*64*|ia64*) 9362 # +Z the default 9363 ;; 9364 *) 9365 lt_prog_compiler_pic='+Z' 9366 ;; 9367 esac 9368 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9369 lt_prog_compiler_static='$wl-a ${wl}archive' 9370 ;; 9371 9372 irix5* | irix6* | nonstopux*) 9373 lt_prog_compiler_wl='-Wl,' 9374 # PIC (with -KPIC) is the default. 9375 lt_prog_compiler_static='-non_shared' 9376 ;; 9377 9378 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9379 case $cc_basename in 9380 # old Intel for x86_64, which still supported -KPIC. 9381 ecc*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-KPIC' 9384 lt_prog_compiler_static='-static' 9385 ;; 9386 *flang* | ftn | f18* | f95*) 9387 # Flang compiler. 9388 lt_prog_compiler_wl='-Wl,' 9389 lt_prog_compiler_pic='-fPIC' 9390 lt_prog_compiler_static='-static' 9391 ;; 9392 # icc used to be incompatible with GCC. 9393 # ICC 10 doesn't accept -KPIC any more. 9394 icc* | ifort*) 9395 lt_prog_compiler_wl='-Wl,' 9396 lt_prog_compiler_pic='-fPIC' 9397 lt_prog_compiler_static='-static' 9398 ;; 9399 # Lahey Fortran 8.1. 9400 lf95*) 9401 lt_prog_compiler_wl='-Wl,' 9402 lt_prog_compiler_pic='--shared' 9403 lt_prog_compiler_static='--static' 9404 ;; 9405 nagfor*) 9406 # NAG Fortran compiler 9407 lt_prog_compiler_wl='-Wl,-Wl,,' 9408 lt_prog_compiler_pic='-PIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 ;; 9411 tcc*) 9412 # Fabrice Bellard et al's Tiny C Compiler 9413 lt_prog_compiler_wl='-Wl,' 9414 lt_prog_compiler_pic='-fPIC' 9415 lt_prog_compiler_static='-static' 9416 ;; 9417 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9418 # Portland Group compilers (*not* the Pentium gcc compiler, 9419 # which looks to be a dead project) 9420 lt_prog_compiler_wl='-Wl,' 9421 lt_prog_compiler_pic='-fpic' 9422 lt_prog_compiler_static='-Bstatic' 9423 ;; 9424 ccc*) 9425 lt_prog_compiler_wl='-Wl,' 9426 # All Alpha code is PIC. 9427 lt_prog_compiler_static='-non_shared' 9428 ;; 9429 xl* | bgxl* | bgf* | mpixl*) 9430 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9431 lt_prog_compiler_wl='-Wl,' 9432 lt_prog_compiler_pic='-qpic' 9433 lt_prog_compiler_static='-qstaticlink' 9434 ;; 9435 *) 9436 case `$CC -V 2>&1 | $SED 5q` in 9437 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9438 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9439 lt_prog_compiler_pic='-KPIC' 9440 lt_prog_compiler_static='-Bstatic' 9441 lt_prog_compiler_wl='' 9442 ;; 9443 *Sun\ F* | *Sun*Fortran*) 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 lt_prog_compiler_wl='-Qoption ld ' 9447 ;; 9448 *Sun\ C*) 9449 # Sun C 5.9 9450 lt_prog_compiler_pic='-KPIC' 9451 lt_prog_compiler_static='-Bstatic' 9452 lt_prog_compiler_wl='-Wl,' 9453 ;; 9454 *Intel*\ [CF]*Compiler*) 9455 lt_prog_compiler_wl='-Wl,' 9456 lt_prog_compiler_pic='-fPIC' 9457 lt_prog_compiler_static='-static' 9458 ;; 9459 *Portland\ Group*) 9460 lt_prog_compiler_wl='-Wl,' 9461 lt_prog_compiler_pic='-fpic' 9462 lt_prog_compiler_static='-Bstatic' 9463 ;; 9464 esac 9465 ;; 9466 esac 9467 ;; 9468 9469 newsos6) 9470 lt_prog_compiler_pic='-KPIC' 9471 lt_prog_compiler_static='-Bstatic' 9472 ;; 9473 9474 *-mlibc) 9475 lt_prog_compiler_wl='-Wl,' 9476 lt_prog_compiler_pic='-fPIC' 9477 lt_prog_compiler_static='-static' 9478 ;; 9479 9480 *nto* | *qnx*) 9481 # QNX uses GNU C++, but need to define -shared option too, otherwise 9482 # it will coredump. 9483 lt_prog_compiler_pic='-fPIC -shared' 9484 ;; 9485 9486 osf3* | osf4* | osf5*) 9487 lt_prog_compiler_wl='-Wl,' 9488 # All OSF/1 code is PIC. 9489 lt_prog_compiler_static='-non_shared' 9490 ;; 9491 9492 rdos*) 9493 lt_prog_compiler_static='-non_shared' 9494 ;; 9495 9496 serenity*) 9497 ;; 9498 9499 solaris*) 9500 lt_prog_compiler_pic='-KPIC' 9501 lt_prog_compiler_static='-Bstatic' 9502 case $cc_basename in 9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9504 lt_prog_compiler_wl='-Qoption ld ';; 9505 *) 9506 lt_prog_compiler_wl='-Wl,';; 9507 esac 9508 ;; 9509 9510 sunos4*) 9511 lt_prog_compiler_wl='-Qoption ld ' 9512 lt_prog_compiler_pic='-PIC' 9513 lt_prog_compiler_static='-Bstatic' 9514 ;; 9515 9516 sysv4 | sysv4.2uw2* | sysv4.3*) 9517 lt_prog_compiler_wl='-Wl,' 9518 lt_prog_compiler_pic='-KPIC' 9519 lt_prog_compiler_static='-Bstatic' 9520 ;; 9521 9522 sysv4*MP*) 9523 if test -d /usr/nec; then 9524 lt_prog_compiler_pic='-Kconform_pic' 9525 lt_prog_compiler_static='-Bstatic' 9526 fi 9527 ;; 9528 9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='-KPIC' 9532 lt_prog_compiler_static='-Bstatic' 9533 ;; 9534 9535 unicos*) 9536 lt_prog_compiler_wl='-Wl,' 9537 lt_prog_compiler_can_build_shared=no 9538 ;; 9539 9540 uts4*) 9541 lt_prog_compiler_pic='-pic' 9542 lt_prog_compiler_static='-Bstatic' 9543 ;; 9544 9545 *) 9546 lt_prog_compiler_can_build_shared=no 9547 ;; 9548 esac 9549 fi 9550 9551case $host_os in 9552 # For platforms that do not support PIC, -DPIC is meaningless: 9553 *djgpp*) 9554 lt_prog_compiler_pic= 9555 ;; 9556 *) 9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9558 ;; 9559esac 9560 9561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9562printf %s "checking for $compiler option to produce PIC... " >&6; } 9563if test ${lt_cv_prog_compiler_pic+y} 9564then : 9565 printf %s "(cached) " >&6 9566else case e in #( 9567 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9568esac 9569fi 9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9571printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9572lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9573 9574# 9575# Check to make sure the PIC flag actually works. 9576# 9577if test -n "$lt_prog_compiler_pic"; then 9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9579printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9580if test ${lt_cv_prog_compiler_pic_works+y} 9581then : 9582 printf %s "(cached) " >&6 9583else case e in #( 9584 e) lt_cv_prog_compiler_pic_works=no 9585 ac_outfile=conftest.$ac_objext 9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9588 # Insert the option either (1) after the last *FLAGS variable, or 9589 # (2) before a word containing "conftest.", or (3) at the end. 9590 # Note that $ac_compile itself does not contain backslashes and begins 9591 # with a dollar sign (not a hyphen), so the echo should work correctly. 9592 # The option is referenced via a variable to avoid confusing sed. 9593 lt_compile=`echo "$ac_compile" | $SED \ 9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9596 -e 's:$: $lt_compiler_flag:'` 9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9598 (eval "$lt_compile" 2>conftest.err) 9599 ac_status=$? 9600 cat conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 if (exit $ac_status) && test -s "$ac_outfile"; then 9603 # The compiler can only warn and ignore the option if not recognized 9604 # So say no if there are warnings other than the usual output. 9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9608 lt_cv_prog_compiler_pic_works=yes 9609 fi 9610 fi 9611 $RM conftest* 9612 ;; 9613esac 9614fi 9615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9616printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9617 9618if test yes = "$lt_cv_prog_compiler_pic_works"; then 9619 case $lt_prog_compiler_pic in 9620 "" | " "*) ;; 9621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9622 esac 9623else 9624 lt_prog_compiler_pic= 9625 lt_prog_compiler_can_build_shared=no 9626fi 9627 9628fi 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640# 9641# Check to make sure the static flag actually works. 9642# 9643wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9645printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9646if test ${lt_cv_prog_compiler_static_works+y} 9647then : 9648 printf %s "(cached) " >&6 9649else case e in #( 9650 e) lt_cv_prog_compiler_static_works=no 9651 save_LDFLAGS=$LDFLAGS 9652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9653 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9655 # The linker can only warn and ignore the option if not recognized 9656 # So say no if there are warnings 9657 if test -s conftest.err; then 9658 # Append any errors to the config.log. 9659 cat conftest.err 1>&5 9660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9662 if diff conftest.exp conftest.er2 >/dev/null; then 9663 lt_cv_prog_compiler_static_works=yes 9664 fi 9665 else 9666 lt_cv_prog_compiler_static_works=yes 9667 fi 9668 fi 9669 $RM -r conftest* 9670 LDFLAGS=$save_LDFLAGS 9671 ;; 9672esac 9673fi 9674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9675printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9676 9677if test yes = "$lt_cv_prog_compiler_static_works"; then 9678 : 9679else 9680 lt_prog_compiler_static= 9681fi 9682 9683 9684 9685 9686 9687 9688 9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9690printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9691if test ${lt_cv_prog_compiler_c_o+y} 9692then : 9693 printf %s "(cached) " >&6 9694else case e in #( 9695 e) lt_cv_prog_compiler_c_o=no 9696 $RM -r conftest 2>/dev/null 9697 mkdir conftest 9698 cd conftest 9699 mkdir out 9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9701 9702 lt_compiler_flag="-o out/conftest2.$ac_objext" 9703 # Insert the option either (1) after the last *FLAGS variable, or 9704 # (2) before a word containing "conftest.", or (3) at the end. 9705 # Note that $ac_compile itself does not contain backslashes and begins 9706 # with a dollar sign (not a hyphen), so the echo should work correctly. 9707 lt_compile=`echo "$ac_compile" | $SED \ 9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9710 -e 's:$: $lt_compiler_flag:'` 9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9712 (eval "$lt_compile" 2>out/conftest.err) 9713 ac_status=$? 9714 cat out/conftest.err >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9717 then 9718 # The compiler can only warn and ignore the option if not recognized 9719 # So say no if there are warnings 9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9723 lt_cv_prog_compiler_c_o=yes 9724 fi 9725 fi 9726 chmod u+w . 2>&5 9727 $RM conftest* 9728 # SGI C++ compiler will create directory out/ii_files/ for 9729 # template instantiation 9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9731 $RM out/* && rmdir out 9732 cd .. 9733 $RM -r conftest 9734 $RM conftest* 9735 ;; 9736esac 9737fi 9738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9739printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9740 9741 9742 9743 9744 9745 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9747printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9748if test ${lt_cv_prog_compiler_c_o+y} 9749then : 9750 printf %s "(cached) " >&6 9751else case e in #( 9752 e) lt_cv_prog_compiler_c_o=no 9753 $RM -r conftest 2>/dev/null 9754 mkdir conftest 9755 cd conftest 9756 mkdir out 9757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9758 9759 lt_compiler_flag="-o out/conftest2.$ac_objext" 9760 # Insert the option either (1) after the last *FLAGS variable, or 9761 # (2) before a word containing "conftest.", or (3) at the end. 9762 # Note that $ac_compile itself does not contain backslashes and begins 9763 # with a dollar sign (not a hyphen), so the echo should work correctly. 9764 lt_compile=`echo "$ac_compile" | $SED \ 9765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9767 -e 's:$: $lt_compiler_flag:'` 9768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9769 (eval "$lt_compile" 2>out/conftest.err) 9770 ac_status=$? 9771 cat out/conftest.err >&5 9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9774 then 9775 # The compiler can only warn and ignore the option if not recognized 9776 # So say no if there are warnings 9777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9780 lt_cv_prog_compiler_c_o=yes 9781 fi 9782 fi 9783 chmod u+w . 2>&5 9784 $RM conftest* 9785 # SGI C++ compiler will create directory out/ii_files/ for 9786 # template instantiation 9787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9788 $RM out/* && rmdir out 9789 cd .. 9790 $RM -r conftest 9791 $RM conftest* 9792 ;; 9793esac 9794fi 9795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9796printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9797 9798 9799 9800 9801hard_links=nottested 9802if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9803 # do not overwrite the value of need_locks provided by the user 9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9805printf %s "checking if we can lock with hard links... " >&6; } 9806 hard_links=yes 9807 $RM conftest* 9808 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9809 touch conftest.a 9810 ln conftest.a conftest.b 2>&5 || hard_links=no 9811 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9813printf "%s\n" "$hard_links" >&6; } 9814 if test no = "$hard_links"; then 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9816printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9817 need_locks=warn 9818 fi 9819else 9820 need_locks=no 9821fi 9822 9823 9824 9825 9826 9827 9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9829printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9830 9831 runpath_var= 9832 allow_undefined_flag= 9833 always_export_symbols=no 9834 archive_cmds= 9835 archive_expsym_cmds= 9836 compiler_needs_object=no 9837 enable_shared_with_static_runtimes=no 9838 export_dynamic_flag_spec= 9839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9840 hardcode_automatic=no 9841 hardcode_direct=no 9842 hardcode_direct_absolute=no 9843 hardcode_libdir_flag_spec= 9844 hardcode_libdir_separator= 9845 hardcode_minus_L=no 9846 hardcode_shlibpath_var=unsupported 9847 inherit_rpath=no 9848 link_all_deplibs=unknown 9849 module_cmds= 9850 module_expsym_cmds= 9851 old_archive_from_new_cmds= 9852 old_archive_from_expsyms_cmds= 9853 thread_safe_flag_spec= 9854 whole_archive_flag_spec= 9855 # include_expsyms should be a list of space-separated symbols to be *always* 9856 # included in the symbol list 9857 include_expsyms= 9858 # exclude_expsyms can be an extended regexp of symbols to exclude 9859 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9860 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9861 # as well as any symbol that contains 'd'. 9862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9864 # platforms (ab)use it in PIC code, but their linkers get confused if 9865 # the symbol is explicitly referenced. Since portable code cannot 9866 # rely on this symbol name, it's probably fine to never include it in 9867 # preloaded symbol tables. 9868 # Exclude shared library initialization/finalization symbols. 9869 extract_expsyms_cmds= 9870 9871 case $host_os in 9872 cygwin* | mingw* | windows* | pw32* | cegcc*) 9873 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9874 # When not using gcc, we currently assume that we are using 9875 # Microsoft Visual C++ or Intel C++ Compiler. 9876 if test yes != "$GCC"; then 9877 with_gnu_ld=no 9878 fi 9879 ;; 9880 interix*) 9881 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9882 with_gnu_ld=yes 9883 ;; 9884 esac 9885 9886 ld_shlibs=yes 9887 9888 # On some targets, GNU ld is compatible enough with the native linker 9889 # that we're better off using the native interface for both. 9890 lt_use_gnu_ld_interface=no 9891 if test yes = "$with_gnu_ld"; then 9892 case $host_os in 9893 aix*) 9894 # The AIX port of GNU ld has always aspired to compatibility 9895 # with the native linker. However, as the warning in the GNU ld 9896 # block says, versions before 2.19.5* couldn't really create working 9897 # shared libraries, regardless of the interface used. 9898 case `$LD -v 2>&1` in 9899 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9900 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9901 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9902 *) 9903 lt_use_gnu_ld_interface=yes 9904 ;; 9905 esac 9906 ;; 9907 *) 9908 lt_use_gnu_ld_interface=yes 9909 ;; 9910 esac 9911 fi 9912 9913 if test yes = "$lt_use_gnu_ld_interface"; then 9914 # If archive_cmds runs LD, not CC, wlarc should be empty 9915 wlarc='$wl' 9916 9917 # Set some defaults for GNU ld with shared library support. These 9918 # are reset later if shared libraries are not supported. Putting them 9919 # here allows them to be overridden if necessary. 9920 runpath_var=LD_RUN_PATH 9921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9922 export_dynamic_flag_spec='$wl--export-dynamic' 9923 # ancient GNU ld didn't support --whole-archive et. al. 9924 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9925 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9926 else 9927 whole_archive_flag_spec= 9928 fi 9929 supports_anon_versioning=no 9930 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9931 *GNU\ gold*) supports_anon_versioning=yes ;; 9932 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9935 *\ 2.11.*) ;; # other 2.11 versions 9936 *) supports_anon_versioning=yes ;; 9937 esac 9938 9939 # See if GNU ld supports shared libraries. 9940 case $host_os in 9941 aix[3-9]*) 9942 # On AIX/PPC, the GNU linker is very broken 9943 if test ia64 != "$host_cpu"; then 9944 ld_shlibs=no 9945 cat <<_LT_EOF 1>&2 9946 9947*** Warning: the GNU linker, at least up to release 2.19, is reported 9948*** to be unable to reliably create shared libraries on AIX. 9949*** Therefore, libtool is disabling shared libraries support. If you 9950*** really care for shared libraries, you may want to install binutils 9951*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9952*** You will then need to restart the configuration process. 9953 9954_LT_EOF 9955 fi 9956 ;; 9957 9958 amigaos*) 9959 case $host_cpu in 9960 powerpc) 9961 # see comment about AmigaOS4 .so support 9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9963 archive_expsym_cmds='' 9964 ;; 9965 m68k) 9966 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)' 9967 hardcode_libdir_flag_spec='-L$libdir' 9968 hardcode_minus_L=yes 9969 ;; 9970 esac 9971 ;; 9972 9973 beos*) 9974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9975 allow_undefined_flag=unsupported 9976 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9977 # support --undefined. This deserves some investigation. FIXME 9978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9979 else 9980 ld_shlibs=no 9981 fi 9982 ;; 9983 9984 cygwin* | mingw* | windows* | pw32* | cegcc*) 9985 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9986 # as there is no search path for DLLs. 9987 hardcode_libdir_flag_spec='-L$libdir' 9988 export_dynamic_flag_spec='$wl--export-all-symbols' 9989 allow_undefined_flag=unsupported 9990 always_export_symbols=no 9991 enable_shared_with_static_runtimes=yes 9992 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' 9993 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9994 file_list_spec='@' 9995 9996 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9998 # If the export-symbols file already is a .def file, use it as 9999 # is; otherwise, prepend EXPORTS... 10000 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10001 cp $export_symbols $output_objdir/$soname.def; 10002 else 10003 echo EXPORTS > $output_objdir/$soname.def; 10004 cat $export_symbols >> $output_objdir/$soname.def; 10005 fi~ 10006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10007 else 10008 ld_shlibs=no 10009 fi 10010 ;; 10011 10012 haiku*) 10013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10014 link_all_deplibs=no 10015 ;; 10016 10017 os2*) 10018 hardcode_libdir_flag_spec='-L$libdir' 10019 hardcode_minus_L=yes 10020 allow_undefined_flag=unsupported 10021 shrext_cmds=.dll 10022 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10025 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10026 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10028 emximp -o $lib $output_objdir/$libname.def' 10029 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10032 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10033 prefix_cmds="$SED"~ 10034 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10035 prefix_cmds="$prefix_cmds -e 1d"; 10036 fi~ 10037 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10038 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10040 emximp -o $lib $output_objdir/$libname.def' 10041 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10042 enable_shared_with_static_runtimes=yes 10043 file_list_spec='@' 10044 ;; 10045 10046 interix[3-9]*) 10047 hardcode_direct=no 10048 hardcode_shlibpath_var=no 10049 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10050 export_dynamic_flag_spec='$wl-E' 10051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10052 # Instead, shared libraries are loaded at an image base (0x10000000 by 10053 # default) and relocated if they conflict, which is a slow very memory 10054 # consuming and fragmenting process. To avoid this, we pick a random, 10055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10056 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10058 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' 10059 ;; 10060 10061 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10062 tmp_diet=no 10063 if test linux-dietlibc = "$host_os"; then 10064 case $cc_basename in 10065 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10066 esac 10067 fi 10068 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10069 && test no = "$tmp_diet" 10070 then 10071 tmp_addflag=' $pic_flag' 10072 tmp_sharedflag='-shared' 10073 case $cc_basename,$host_cpu in 10074 pgcc*) # Portland Group C compiler 10075 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' 10076 tmp_addflag=' $pic_flag' 10077 ;; 10078 pgf77* | pgf90* | pgf95* | pgfortran*) 10079 # Portland Group f77 and f90 compilers 10080 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' 10081 tmp_addflag=' $pic_flag -Mnomain' ;; 10082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10083 tmp_addflag=' -i_dynamic' ;; 10084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10085 tmp_addflag=' -i_dynamic -nofor_main' ;; 10086 ifc* | ifort*) # Intel Fortran compiler 10087 tmp_addflag=' -nofor_main' ;; 10088 lf95*) # Lahey Fortran 8.1 10089 whole_archive_flag_spec= 10090 tmp_sharedflag='--shared' ;; 10091 nagfor*) # NAGFOR 5.3 10092 tmp_sharedflag='-Wl,-shared' ;; 10093 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10094 tmp_sharedflag='-qmkshrobj' 10095 tmp_addflag= ;; 10096 nvcc*) # Cuda Compiler Driver 2.2 10097 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' 10098 compiler_needs_object=yes 10099 ;; 10100 esac 10101 case `$CC -V 2>&1 | $SED 5q` in 10102 *Sun\ C*) # Sun C 5.9 10103 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' 10104 compiler_needs_object=yes 10105 tmp_sharedflag='-G' ;; 10106 *Sun\ F*) # Sun Fortran 8.3 10107 tmp_sharedflag='-G' ;; 10108 esac 10109 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10110 10111 if test yes = "$supports_anon_versioning"; then 10112 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10113 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10114 echo "local: *; };" >> $output_objdir/$libname.ver~ 10115 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10116 fi 10117 10118 case $cc_basename in 10119 tcc*) 10120 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10121 export_dynamic_flag_spec='-rdynamic' 10122 ;; 10123 xlf* | bgf* | bgxlf* | mpixlf*) 10124 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10125 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10128 if test yes = "$supports_anon_versioning"; then 10129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10130 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10131 echo "local: *; };" >> $output_objdir/$libname.ver~ 10132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10133 fi 10134 ;; 10135 esac 10136 else 10137 ld_shlibs=no 10138 fi 10139 ;; 10140 10141 *-mlibc) 10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10144 ;; 10145 10146 netbsd* | netbsdelf*-gnu) 10147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10148 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10149 wlarc= 10150 else 10151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10152 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10153 fi 10154 ;; 10155 10156 solaris*) 10157 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10158 ld_shlibs=no 10159 cat <<_LT_EOF 1>&2 10160 10161*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10162*** create shared libraries on Solaris systems. Therefore, libtool 10163*** is disabling shared libraries support. We urge you to upgrade GNU 10164*** binutils to release 2.9.1 or newer. Another option is to modify 10165*** your PATH or compiler configuration so that the native linker is 10166*** used, and then restart. 10167 10168_LT_EOF 10169 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10172 else 10173 ld_shlibs=no 10174 fi 10175 ;; 10176 10177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10178 case `$LD -v 2>&1` in 10179 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10180 ld_shlibs=no 10181 cat <<_LT_EOF 1>&2 10182 10183*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10184*** reliably create shared libraries on SCO systems. Therefore, libtool 10185*** is disabling shared libraries support. We urge you to upgrade GNU 10186*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10187*** your PATH or compiler configuration so that the native linker is 10188*** used, and then restart. 10189 10190_LT_EOF 10191 ;; 10192 *) 10193 # For security reasons, it is highly recommended that you always 10194 # use absolute paths for naming shared libraries, and exclude the 10195 # DT_RUNPATH tag from executables and libraries. But doing so 10196 # requires that you compile everything twice, which is a pain. 10197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10201 else 10202 ld_shlibs=no 10203 fi 10204 ;; 10205 esac 10206 ;; 10207 10208 sunos4*) 10209 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10210 wlarc= 10211 hardcode_direct=yes 10212 hardcode_shlibpath_var=no 10213 ;; 10214 10215 *) 10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10219 else 10220 ld_shlibs=no 10221 fi 10222 ;; 10223 esac 10224 10225 if test no = "$ld_shlibs"; then 10226 runpath_var= 10227 hardcode_libdir_flag_spec= 10228 export_dynamic_flag_spec= 10229 whole_archive_flag_spec= 10230 fi 10231 else 10232 # PORTME fill in a description of your system's linker (not GNU ld) 10233 case $host_os in 10234 aix3*) 10235 allow_undefined_flag=unsupported 10236 always_export_symbols=yes 10237 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' 10238 # Note: this linker hardcodes the directories in LIBPATH if there 10239 # are no directories specified by -L. 10240 hardcode_minus_L=yes 10241 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10242 # Neither direct hardcoding nor static linking is supported with a 10243 # broken collect2. 10244 hardcode_direct=unsupported 10245 fi 10246 ;; 10247 10248 aix[4-9]*) 10249 if test ia64 = "$host_cpu"; then 10250 # On IA64, the linker does run time linking by default, so we don't 10251 # have to do anything special. 10252 aix_use_runtimelinking=no 10253 exp_sym_flag='-Bexport' 10254 no_entry_flag= 10255 else 10256 # If we're using GNU nm, then we don't want the "-C" option. 10257 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10258 # Without the "-l" option, or with the "-B" option, AIX nm treats 10259 # weak defined symbols like other global defined symbols, whereas 10260 # GNU nm marks them as "W". 10261 # While the 'weak' keyword is ignored in the Export File, we need 10262 # it in the Import File for the 'aix-soname' feature, so we have 10263 # to replace the "-B" option with "-P" for AIX nm. 10264 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10265 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' 10266 else 10267 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' 10268 fi 10269 aix_use_runtimelinking=no 10270 10271 # Test if we are trying to use run time linking or normal 10272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10273 # have runtime linking enabled, and use it for executables. 10274 # For shared libraries, we enable/disable runtime linking 10275 # depending on the kind of the shared library created - 10276 # when "with_aix_soname,aix_use_runtimelinking" is: 10277 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10278 # "aix,yes" lib.so shared, rtl:yes, for executables 10279 # lib.a static archive 10280 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10281 # lib.a(lib.so.V) shared, rtl:no, for executables 10282 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10283 # lib.a(lib.so.V) shared, rtl:no 10284 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10285 # lib.a static archive 10286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10287 for ld_flag in $LDFLAGS; do 10288 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10289 aix_use_runtimelinking=yes 10290 break 10291 fi 10292 done 10293 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10294 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10295 # so we don't have lib.a shared libs to link our executables. 10296 # We have to force runtime linking in this case. 10297 aix_use_runtimelinking=yes 10298 LDFLAGS="$LDFLAGS -Wl,-brtl" 10299 fi 10300 ;; 10301 esac 10302 10303 exp_sym_flag='-bexport' 10304 no_entry_flag='-bnoentry' 10305 fi 10306 10307 # When large executables or shared objects are built, AIX ld can 10308 # have problems creating the table of contents. If linking a library 10309 # or program results in "error TOC overflow" add -mminimal-toc to 10310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10312 10313 archive_cmds='' 10314 hardcode_direct=yes 10315 hardcode_direct_absolute=yes 10316 hardcode_libdir_separator=':' 10317 link_all_deplibs=yes 10318 file_list_spec='$wl-f,' 10319 case $with_aix_soname,$aix_use_runtimelinking in 10320 aix,*) ;; # traditional, no import file 10321 svr4,* | *,yes) # use import file 10322 # The Import File defines what to hardcode. 10323 hardcode_direct=no 10324 hardcode_direct_absolute=no 10325 ;; 10326 esac 10327 10328 if test yes = "$GCC"; then 10329 case $host_os in aix4.[012]|aix4.[012].*) 10330 # We only want to do this on AIX 4.2 and lower, the check 10331 # below for broken collect2 doesn't work under 4.3+ 10332 collect2name=`$CC -print-prog-name=collect2` 10333 if test -f "$collect2name" && 10334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10335 then 10336 # We have reworked collect2 10337 : 10338 else 10339 # We have old collect2 10340 hardcode_direct=unsupported 10341 # It fails to find uninstalled libraries when the uninstalled 10342 # path is not listed in the libpath. Setting hardcode_minus_L 10343 # to unsupported forces relinking 10344 hardcode_minus_L=yes 10345 hardcode_libdir_flag_spec='-L$libdir' 10346 hardcode_libdir_separator= 10347 fi 10348 ;; 10349 esac 10350 shared_flag='-shared' 10351 if test yes = "$aix_use_runtimelinking"; then 10352 shared_flag="$shared_flag "'$wl-G' 10353 fi 10354 # Need to ensure runtime linking is disabled for the traditional 10355 # shared library, or the linker may eventually find shared libraries 10356 # /with/ Import File - we do not want to mix them. 10357 shared_flag_aix='-shared' 10358 shared_flag_svr4='-shared $wl-G' 10359 else 10360 # not using gcc 10361 if test ia64 = "$host_cpu"; then 10362 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10363 # chokes on -Wl,-G. The following line is correct: 10364 shared_flag='-G' 10365 else 10366 if test yes = "$aix_use_runtimelinking"; then 10367 shared_flag='$wl-G' 10368 else 10369 shared_flag='$wl-bM:SRE' 10370 fi 10371 shared_flag_aix='$wl-bM:SRE' 10372 shared_flag_svr4='$wl-G' 10373 fi 10374 fi 10375 10376 export_dynamic_flag_spec='$wl-bexpall' 10377 # It seems that -bexpall does not export symbols beginning with 10378 # underscore (_), so it is better to generate a list of symbols to export. 10379 always_export_symbols=yes 10380 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10381 # Warning - without using the other runtime loading flags (-brtl), 10382 # -berok will link without error, but may produce a broken library. 10383 allow_undefined_flag='-berok' 10384 # Determine the default libpath from the value encoded in an 10385 # empty executable. 10386 if test set = "${lt_cv_aix_libpath+set}"; then 10387 aix_libpath=$lt_cv_aix_libpath 10388else 10389 if test ${lt_cv_aix_libpath_+y} 10390then : 10391 printf %s "(cached) " >&6 10392else case e in #( 10393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394/* end confdefs.h. */ 10395 10396int 10397main (void) 10398{ 10399 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404if ac_fn_c_try_link "$LINENO" 10405then : 10406 10407 lt_aix_libpath_sed=' 10408 /Import File Strings/,/^$/ { 10409 /^0/ { 10410 s/^0 *\([^ ]*\) *$/\1/ 10411 p 10412 } 10413 }' 10414 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10415 # Check for a 64-bit object if we didn't find anything. 10416 if test -z "$lt_cv_aix_libpath_"; then 10417 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10418 fi 10419fi 10420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10421 conftest$ac_exeext conftest.$ac_ext 10422 if test -z "$lt_cv_aix_libpath_"; then 10423 lt_cv_aix_libpath_=/usr/lib:/lib 10424 fi 10425 ;; 10426esac 10427fi 10428 10429 aix_libpath=$lt_cv_aix_libpath_ 10430fi 10431 10432 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10433 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 10434 else 10435 if test ia64 = "$host_cpu"; then 10436 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10437 allow_undefined_flag="-z nodefs" 10438 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" 10439 else 10440 # Determine the default libpath from the value encoded in an 10441 # empty executable. 10442 if test set = "${lt_cv_aix_libpath+set}"; then 10443 aix_libpath=$lt_cv_aix_libpath 10444else 10445 if test ${lt_cv_aix_libpath_+y} 10446then : 10447 printf %s "(cached) " >&6 10448else case e in #( 10449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450/* end confdefs.h. */ 10451 10452int 10453main (void) 10454{ 10455 10456 ; 10457 return 0; 10458} 10459_ACEOF 10460if ac_fn_c_try_link "$LINENO" 10461then : 10462 10463 lt_aix_libpath_sed=' 10464 /Import File Strings/,/^$/ { 10465 /^0/ { 10466 s/^0 *\([^ ]*\) *$/\1/ 10467 p 10468 } 10469 }' 10470 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10471 # Check for a 64-bit object if we didn't find anything. 10472 if test -z "$lt_cv_aix_libpath_"; then 10473 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10474 fi 10475fi 10476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10477 conftest$ac_exeext conftest.$ac_ext 10478 if test -z "$lt_cv_aix_libpath_"; then 10479 lt_cv_aix_libpath_=/usr/lib:/lib 10480 fi 10481 ;; 10482esac 10483fi 10484 10485 aix_libpath=$lt_cv_aix_libpath_ 10486fi 10487 10488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10489 # Warning - without using the other run time loading flags, 10490 # -berok will link without error, but may produce a broken library. 10491 no_undefined_flag=' $wl-bernotok' 10492 allow_undefined_flag=' $wl-berok' 10493 if test yes = "$with_gnu_ld"; then 10494 # We only use this code for GNU lds that support --whole-archive. 10495 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10496 else 10497 # Exported symbols can be pulled into shared objects from archives 10498 whole_archive_flag_spec='$convenience' 10499 fi 10500 archive_cmds_need_lc=yes 10501 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10502 # -brtl affects multiple linker settings, -berok does not and is overridden later 10503 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10504 if test svr4 != "$with_aix_soname"; then 10505 # This is similar to how AIX traditionally builds its shared libraries. 10506 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' 10507 fi 10508 if test aix != "$with_aix_soname"; then 10509 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' 10510 else 10511 # used by -dlpreopen to get the symbols 10512 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10513 fi 10514 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10515 fi 10516 fi 10517 ;; 10518 10519 amigaos*) 10520 case $host_cpu in 10521 powerpc) 10522 # see comment about AmigaOS4 .so support 10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10524 archive_expsym_cmds='' 10525 ;; 10526 m68k) 10527 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)' 10528 hardcode_libdir_flag_spec='-L$libdir' 10529 hardcode_minus_L=yes 10530 ;; 10531 esac 10532 ;; 10533 10534 bsdi[45]*) 10535 export_dynamic_flag_spec=-rdynamic 10536 ;; 10537 10538 cygwin* | mingw* | windows* | pw32* | cegcc*) 10539 # When not using gcc, we currently assume that we are using 10540 # Microsoft Visual C++ or Intel C++ Compiler. 10541 # hardcode_libdir_flag_spec is actually meaningless, as there is 10542 # no search path for DLLs. 10543 case $cc_basename in 10544 cl* | icl*) 10545 # Native MSVC or ICC 10546 hardcode_libdir_flag_spec=' ' 10547 allow_undefined_flag=unsupported 10548 always_export_symbols=yes 10549 file_list_spec='@' 10550 # Tell ltmain to make .lib files, not .a files. 10551 libext=lib 10552 # Tell ltmain to make .dll files, not .so files. 10553 shrext_cmds=.dll 10554 # FIXME: Setting linknames here is a bad hack. 10555 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10556 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10557 cp "$export_symbols" "$output_objdir/$soname.def"; 10558 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10559 else 10560 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10561 fi~ 10562 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10563 linknames=' 10564 # The linker will not automatically build a static lib if we build a DLL. 10565 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10566 enable_shared_with_static_runtimes=yes 10567 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10569 # Don't use ranlib 10570 old_postinstall_cmds='chmod 644 $oldlib' 10571 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10572 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10573 case $lt_outputfile in 10574 *.exe|*.EXE) ;; 10575 *) 10576 lt_outputfile=$lt_outputfile.exe 10577 lt_tool_outputfile=$lt_tool_outputfile.exe 10578 ;; 10579 esac~ 10580 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10581 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10582 $RM "$lt_outputfile.manifest"; 10583 fi' 10584 ;; 10585 *) 10586 # Assume MSVC and ICC wrapper 10587 hardcode_libdir_flag_spec=' ' 10588 allow_undefined_flag=unsupported 10589 # Tell ltmain to make .lib files, not .a files. 10590 libext=lib 10591 # Tell ltmain to make .dll files, not .so files. 10592 shrext_cmds=.dll 10593 # FIXME: Setting linknames here is a bad hack. 10594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10595 # The linker will automatically build a .lib file if we build a DLL. 10596 old_archive_from_new_cmds='true' 10597 # FIXME: Should let the user specify the lib program. 10598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10599 enable_shared_with_static_runtimes=yes 10600 ;; 10601 esac 10602 ;; 10603 10604 darwin* | rhapsody*) 10605 10606 10607 archive_cmds_need_lc=no 10608 hardcode_direct=no 10609 hardcode_automatic=yes 10610 hardcode_shlibpath_var=unsupported 10611 if test yes = "$lt_cv_ld_force_load"; then 10612 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\"`' 10613 10614 else 10615 whole_archive_flag_spec='' 10616 fi 10617 link_all_deplibs=yes 10618 allow_undefined_flag=$_lt_dar_allow_undefined 10619 case $cc_basename in 10620 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10621 *) _lt_dar_can_shared=$GCC ;; 10622 esac 10623 if test yes = "$_lt_dar_can_shared"; then 10624 output_verbose_link_cmd=func_echo_all 10625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10627 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" 10628 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" 10629 10630 else 10631 ld_shlibs=no 10632 fi 10633 10634 ;; 10635 10636 dgux*) 10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10638 hardcode_libdir_flag_spec='-L$libdir' 10639 hardcode_shlibpath_var=no 10640 ;; 10641 10642 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10643 # support. Future versions do this automatically, but an explicit c++rt0.o 10644 # does not break anything, and helps significantly (at the cost of a little 10645 # extra space). 10646 freebsd2.2*) 10647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10648 hardcode_libdir_flag_spec='-R$libdir' 10649 hardcode_direct=yes 10650 hardcode_shlibpath_var=no 10651 ;; 10652 10653 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10654 freebsd2.*) 10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10656 hardcode_direct=yes 10657 hardcode_minus_L=yes 10658 hardcode_shlibpath_var=no 10659 ;; 10660 10661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10662 freebsd* | dragonfly* | midnightbsd*) 10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10664 hardcode_libdir_flag_spec='-R$libdir' 10665 hardcode_direct=yes 10666 hardcode_shlibpath_var=no 10667 ;; 10668 10669 hpux9*) 10670 if test yes = "$GCC"; then 10671 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' 10672 else 10673 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' 10674 fi 10675 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10676 hardcode_libdir_separator=: 10677 hardcode_direct=yes 10678 10679 # hardcode_minus_L: Not really in the search PATH, 10680 # but as the default location of the library. 10681 hardcode_minus_L=yes 10682 export_dynamic_flag_spec='$wl-E' 10683 ;; 10684 10685 hpux10*) 10686 if test yes,no = "$GCC,$with_gnu_ld"; then 10687 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10688 else 10689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10690 fi 10691 if test no = "$with_gnu_ld"; then 10692 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10693 hardcode_libdir_separator=: 10694 hardcode_direct=yes 10695 hardcode_direct_absolute=yes 10696 export_dynamic_flag_spec='$wl-E' 10697 # hardcode_minus_L: Not really in the search PATH, 10698 # but as the default location of the library. 10699 hardcode_minus_L=yes 10700 fi 10701 ;; 10702 10703 hpux11*) 10704 if test yes,no = "$GCC,$with_gnu_ld"; then 10705 case $host_cpu in 10706 hppa*64*) 10707 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10708 ;; 10709 ia64*) 10710 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10711 ;; 10712 *) 10713 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10714 ;; 10715 esac 10716 else 10717 case $host_cpu in 10718 hppa*64*) 10719 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10720 ;; 10721 ia64*) 10722 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10723 ;; 10724 *) 10725 10726 # Older versions of the 11.00 compiler do not understand -b yet 10727 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10729printf %s "checking if $CC understands -b... " >&6; } 10730if test ${lt_cv_prog_compiler__b+y} 10731then : 10732 printf %s "(cached) " >&6 10733else case e in #( 10734 e) lt_cv_prog_compiler__b=no 10735 save_LDFLAGS=$LDFLAGS 10736 LDFLAGS="$LDFLAGS -b" 10737 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10739 # The linker can only warn and ignore the option if not recognized 10740 # So say no if there are warnings 10741 if test -s conftest.err; then 10742 # Append any errors to the config.log. 10743 cat conftest.err 1>&5 10744 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10746 if diff conftest.exp conftest.er2 >/dev/null; then 10747 lt_cv_prog_compiler__b=yes 10748 fi 10749 else 10750 lt_cv_prog_compiler__b=yes 10751 fi 10752 fi 10753 $RM -r conftest* 10754 LDFLAGS=$save_LDFLAGS 10755 ;; 10756esac 10757fi 10758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10759printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10760 10761if test yes = "$lt_cv_prog_compiler__b"; then 10762 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10763else 10764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10765fi 10766 10767 ;; 10768 esac 10769 fi 10770 if test no = "$with_gnu_ld"; then 10771 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10772 hardcode_libdir_separator=: 10773 10774 case $host_cpu in 10775 hppa*64*|ia64*) 10776 hardcode_direct=no 10777 hardcode_shlibpath_var=no 10778 ;; 10779 *) 10780 hardcode_direct=yes 10781 hardcode_direct_absolute=yes 10782 export_dynamic_flag_spec='$wl-E' 10783 10784 # hardcode_minus_L: Not really in the search PATH, 10785 # but as the default location of the library. 10786 hardcode_minus_L=yes 10787 ;; 10788 esac 10789 fi 10790 ;; 10791 10792 irix5* | irix6* | nonstopux*) 10793 if test yes = "$GCC"; then 10794 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' 10795 # Try to use the -exported_symbol ld option, if it does not 10796 # work, assume that -exports_file does not work either and 10797 # implicitly export all symbols. 10798 # This should be the same for all languages, so no per-tag cache variable. 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10800printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10801if test ${lt_cv_irix_exported_symbol+y} 10802then : 10803 printf %s "(cached) " >&6 10804else case e in #( 10805 e) save_LDFLAGS=$LDFLAGS 10806 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10808/* end confdefs.h. */ 10809int foo (void) { return 0; } 10810_ACEOF 10811if ac_fn_c_try_link "$LINENO" 10812then : 10813 lt_cv_irix_exported_symbol=yes 10814else case e in #( 10815 e) lt_cv_irix_exported_symbol=no ;; 10816esac 10817fi 10818rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10819 conftest$ac_exeext conftest.$ac_ext 10820 LDFLAGS=$save_LDFLAGS ;; 10821esac 10822fi 10823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10824printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10825 if test yes = "$lt_cv_irix_exported_symbol"; then 10826 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' 10827 fi 10828 else 10829 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' 10830 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' 10831 fi 10832 archive_cmds_need_lc='no' 10833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10834 hardcode_libdir_separator=: 10835 inherit_rpath=yes 10836 link_all_deplibs=yes 10837 ;; 10838 10839 linux*) 10840 case $cc_basename in 10841 tcc*) 10842 # Fabrice Bellard et al's Tiny C Compiler 10843 ld_shlibs=yes 10844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10846 ;; 10847 esac 10848 ;; 10849 10850 *-mlibc) 10851 ;; 10852 10853 netbsd* | netbsdelf*-gnu) 10854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10856 else 10857 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10858 fi 10859 hardcode_libdir_flag_spec='-R$libdir' 10860 hardcode_direct=yes 10861 hardcode_shlibpath_var=no 10862 ;; 10863 10864 newsos6) 10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10866 hardcode_direct=yes 10867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10868 hardcode_libdir_separator=: 10869 hardcode_shlibpath_var=no 10870 ;; 10871 10872 *nto* | *qnx*) 10873 ;; 10874 10875 openbsd*) 10876 if test -f /usr/libexec/ld.so; then 10877 hardcode_direct=yes 10878 hardcode_shlibpath_var=no 10879 hardcode_direct_absolute=yes 10880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10882 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10883 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10884 export_dynamic_flag_spec='$wl-E' 10885 else 10886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10887 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10888 fi 10889 else 10890 ld_shlibs=no 10891 fi 10892 ;; 10893 10894 os2*) 10895 hardcode_libdir_flag_spec='-L$libdir' 10896 hardcode_minus_L=yes 10897 allow_undefined_flag=unsupported 10898 shrext_cmds=.dll 10899 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10900 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10901 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10902 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10903 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10904 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10905 emximp -o $lib $output_objdir/$libname.def' 10906 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10907 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10908 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10909 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10910 prefix_cmds="$SED"~ 10911 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10912 prefix_cmds="$prefix_cmds -e 1d"; 10913 fi~ 10914 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10915 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10916 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10917 emximp -o $lib $output_objdir/$libname.def' 10918 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10919 enable_shared_with_static_runtimes=yes 10920 file_list_spec='@' 10921 ;; 10922 10923 osf3*) 10924 if test yes = "$GCC"; then 10925 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10926 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' 10927 else 10928 allow_undefined_flag=' -expect_unresolved \*' 10929 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' 10930 fi 10931 archive_cmds_need_lc='no' 10932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10933 hardcode_libdir_separator=: 10934 ;; 10935 10936 osf4* | osf5*) # as osf3* with the addition of -msym flag 10937 if test yes = "$GCC"; then 10938 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10939 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' 10940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10941 else 10942 allow_undefined_flag=' -expect_unresolved \*' 10943 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' 10944 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~ 10945 $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' 10946 10947 # Both c and cxx compiler support -rpath directly 10948 hardcode_libdir_flag_spec='-rpath $libdir' 10949 fi 10950 archive_cmds_need_lc='no' 10951 hardcode_libdir_separator=: 10952 ;; 10953 10954 serenity*) 10955 ;; 10956 10957 solaris*) 10958 no_undefined_flag=' -z defs' 10959 if test yes = "$GCC"; then 10960 wlarc='$wl' 10961 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10963 $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' 10964 else 10965 case `$CC -V 2>&1` in 10966 *"Compilers 5.0"*) 10967 wlarc='' 10968 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10970 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10971 ;; 10972 *) 10973 wlarc='$wl' 10974 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10976 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10977 ;; 10978 esac 10979 fi 10980 hardcode_libdir_flag_spec='-R$libdir' 10981 hardcode_shlibpath_var=no 10982 case $host_os in 10983 solaris2.[0-5] | solaris2.[0-5].*) ;; 10984 *) 10985 # The compiler driver will combine and reorder linker options, 10986 # but understands '-z linker_flag'. GCC discards it without '$wl', 10987 # but is careful enough not to reorder. 10988 # Supported since Solaris 2.6 (maybe 2.5.1?) 10989 if test yes = "$GCC"; then 10990 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10991 else 10992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10993 fi 10994 ;; 10995 esac 10996 link_all_deplibs=yes 10997 ;; 10998 10999 sunos4*) 11000 if test sequent = "$host_vendor"; then 11001 # Use $CC to link under sequent, because it throws in some extra .o 11002 # files that make .init and .fini sections work. 11003 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11004 else 11005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11006 fi 11007 hardcode_libdir_flag_spec='-L$libdir' 11008 hardcode_direct=yes 11009 hardcode_minus_L=yes 11010 hardcode_shlibpath_var=no 11011 ;; 11012 11013 sysv4) 11014 case $host_vendor in 11015 sni) 11016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11017 hardcode_direct=yes # is this really true??? 11018 ;; 11019 siemens) 11020 ## LD is ld it makes a PLAMLIB 11021 ## CC just makes a GrossModule. 11022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11023 reload_cmds='$CC -r -o $output$reload_objs' 11024 hardcode_direct=no 11025 ;; 11026 motorola) 11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11029 ;; 11030 esac 11031 runpath_var='LD_RUN_PATH' 11032 hardcode_shlibpath_var=no 11033 ;; 11034 11035 sysv4.3*) 11036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11037 hardcode_shlibpath_var=no 11038 export_dynamic_flag_spec='-Bexport' 11039 ;; 11040 11041 sysv4*MP*) 11042 if test -d /usr/nec; then 11043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11044 hardcode_shlibpath_var=no 11045 runpath_var=LD_RUN_PATH 11046 hardcode_runpath_var=yes 11047 ld_shlibs=yes 11048 fi 11049 ;; 11050 11051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11052 no_undefined_flag='$wl-z,text' 11053 archive_cmds_need_lc=no 11054 hardcode_shlibpath_var=no 11055 runpath_var='LD_RUN_PATH' 11056 11057 if test yes = "$GCC"; then 11058 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11059 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11060 else 11061 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11063 fi 11064 ;; 11065 11066 sysv5* | sco3.2v5* | sco5v6*) 11067 # Note: We CANNOT use -z defs as we might desire, because we do not 11068 # link with -lc, and that would cause any symbols used from libc to 11069 # always be unresolved, which means just about no library would 11070 # ever link correctly. If we're not using GNU ld we use -z text 11071 # though, which does catch some bad symbols but isn't as heavy-handed 11072 # as -z defs. 11073 no_undefined_flag='$wl-z,text' 11074 allow_undefined_flag='$wl-z,nodefs' 11075 archive_cmds_need_lc=no 11076 hardcode_shlibpath_var=no 11077 hardcode_libdir_flag_spec='$wl-R,$libdir' 11078 hardcode_libdir_separator=':' 11079 link_all_deplibs=yes 11080 export_dynamic_flag_spec='$wl-Bexport' 11081 runpath_var='LD_RUN_PATH' 11082 11083 if test yes = "$GCC"; then 11084 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11085 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 else 11087 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11088 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 fi 11090 ;; 11091 11092 uts4*) 11093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11094 hardcode_libdir_flag_spec='-L$libdir' 11095 hardcode_shlibpath_var=no 11096 ;; 11097 11098 *) 11099 ld_shlibs=no 11100 ;; 11101 esac 11102 11103 if test sni = "$host_vendor"; then 11104 case $host in 11105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11106 export_dynamic_flag_spec='$wl-Blargedynsym' 11107 ;; 11108 esac 11109 fi 11110 fi 11111 11112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11113printf "%s\n" "$ld_shlibs" >&6; } 11114test no = "$ld_shlibs" && can_build_shared=no 11115 11116with_gnu_ld=$with_gnu_ld 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132# 11133# Do we need to explicitly link libc? 11134# 11135case "x$archive_cmds_need_lc" in 11136x|xyes) 11137 # Assume -lc should be added 11138 archive_cmds_need_lc=yes 11139 11140 if test yes,yes = "$GCC,$enable_shared"; then 11141 case $archive_cmds in 11142 *'~'*) 11143 # FIXME: we may have to deal with multi-command sequences. 11144 ;; 11145 '$CC '*) 11146 # Test whether the compiler implicitly links with -lc since on some 11147 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11148 # to ld, don't add -lc before -lgcc. 11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11150printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11151if test ${lt_cv_archive_cmds_need_lc+y} 11152then : 11153 printf %s "(cached) " >&6 11154else case e in #( 11155 e) $RM conftest* 11156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11157 11158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11159 (eval $ac_compile) 2>&5 11160 ac_status=$? 11161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11162 test $ac_status = 0; } 2>conftest.err; then 11163 soname=conftest 11164 lib=conftest 11165 libobjs=conftest.$ac_objext 11166 deplibs= 11167 wl=$lt_prog_compiler_wl 11168 pic_flag=$lt_prog_compiler_pic 11169 compiler_flags=-v 11170 linker_flags=-v 11171 verstring= 11172 output_objdir=. 11173 libname=conftest 11174 lt_save_allow_undefined_flag=$allow_undefined_flag 11175 allow_undefined_flag= 11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11177 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11178 ac_status=$? 11179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11180 test $ac_status = 0; } 11181 then 11182 lt_cv_archive_cmds_need_lc=no 11183 else 11184 lt_cv_archive_cmds_need_lc=yes 11185 fi 11186 allow_undefined_flag=$lt_save_allow_undefined_flag 11187 else 11188 cat conftest.err 1>&5 11189 fi 11190 $RM conftest* 11191 ;; 11192esac 11193fi 11194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11195printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11197 ;; 11198 esac 11199 fi 11200 ;; 11201esac 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11355printf %s "checking dynamic linker characteristics... " >&6; } 11356 11357if test yes = "$GCC"; then 11358 case $host_os in 11359 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11360 *) lt_awk_arg='/^libraries:/' ;; 11361 esac 11362 case $host_os in 11363 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11364 *) lt_sed_strip_eq='s|=/|/|g' ;; 11365 esac 11366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11367 case $lt_search_path_spec in 11368 *\;*) 11369 # if the path contains ";" then we assume it to be the separator 11370 # otherwise default to the standard path separator (i.e. ":") - it is 11371 # assumed that no part of a normal pathname contains ";" but that should 11372 # okay in the real world where ";" in dirpaths is itself problematic. 11373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11374 ;; 11375 *) 11376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11377 ;; 11378 esac 11379 # Ok, now we have the path, separated by spaces, we can step through it 11380 # and add multilib dir if necessary... 11381 lt_tmp_lt_search_path_spec= 11382 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11383 # ...but if some path component already ends with the multilib dir we assume 11384 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11385 case "$lt_multi_os_dir; $lt_search_path_spec " in 11386 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11387 lt_multi_os_dir= 11388 ;; 11389 esac 11390 for lt_sys_path in $lt_search_path_spec; do 11391 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11393 elif test -n "$lt_multi_os_dir"; then 11394 test -d "$lt_sys_path" && \ 11395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11396 fi 11397 done 11398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11399BEGIN {RS = " "; FS = "/|\n";} { 11400 lt_foo = ""; 11401 lt_count = 0; 11402 for (lt_i = NF; lt_i > 0; lt_i--) { 11403 if ($lt_i != "" && $lt_i != ".") { 11404 if ($lt_i == "..") { 11405 lt_count++; 11406 } else { 11407 if (lt_count == 0) { 11408 lt_foo = "/" $lt_i lt_foo; 11409 } else { 11410 lt_count--; 11411 } 11412 } 11413 } 11414 } 11415 if (lt_foo != "") { lt_freq[lt_foo]++; } 11416 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11417}'` 11418 # AWK program above erroneously prepends '/' to C:/dos/paths 11419 # for these hosts. 11420 case $host_os in 11421 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11422 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11423 esac 11424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11425else 11426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11427fi 11428library_names_spec= 11429libname_spec='lib$name' 11430soname_spec= 11431shrext_cmds=.so 11432postinstall_cmds= 11433postuninstall_cmds= 11434finish_cmds= 11435finish_eval= 11436shlibpath_var= 11437shlibpath_overrides_runpath=unknown 11438version_type=none 11439dynamic_linker="$host_os ld.so" 11440sys_lib_dlsearch_path_spec="/lib /usr/lib" 11441need_lib_prefix=unknown 11442hardcode_into_libs=no 11443 11444# when you set need_version to no, make sure it does not cause -set_version 11445# flags to be left without arguments 11446need_version=unknown 11447 11448 11449 11450case $host_os in 11451aix3*) 11452 version_type=linux # correct to gnu/linux during the next big refactor 11453 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11454 shlibpath_var=LIBPATH 11455 11456 # AIX 3 has no versioning support, so we append a major version to the name. 11457 soname_spec='$libname$release$shared_ext$major' 11458 ;; 11459 11460aix[4-9]*) 11461 version_type=linux # correct to gnu/linux during the next big refactor 11462 need_lib_prefix=no 11463 need_version=no 11464 hardcode_into_libs=yes 11465 if test ia64 = "$host_cpu"; then 11466 # AIX 5 supports IA64 11467 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 else 11470 # With GCC up to 2.95.x, collect2 would create an import file 11471 # for dependence libraries. The import file would start with 11472 # the line '#! .'. This would cause the generated library to 11473 # depend on '.', always an invalid library. This was fixed in 11474 # development snapshots of GCC prior to 3.0. 11475 case $host_os in 11476 aix4 | aix4.[01] | aix4.[01].*) 11477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11478 echo ' yes ' 11479 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11480 : 11481 else 11482 can_build_shared=no 11483 fi 11484 ;; 11485 esac 11486 # Using Import Files as archive members, it is possible to support 11487 # filename-based versioning of shared library archives on AIX. While 11488 # this would work for both with and without runtime linking, it will 11489 # prevent static linking of such archives. So we do filename-based 11490 # shared library versioning with .so extension only, which is used 11491 # when both runtime linking and shared linking is enabled. 11492 # Unfortunately, runtime linking may impact performance, so we do 11493 # not want this to be the default eventually. Also, we use the 11494 # versioned .so libs for executables only if there is the -brtl 11495 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11496 # To allow for filename-based versioning support, we need to create 11497 # libNAME.so.V as an archive file, containing: 11498 # *) an Import File, referring to the versioned filename of the 11499 # archive as well as the shared archive member, telling the 11500 # bitwidth (32 or 64) of that shared object, and providing the 11501 # list of exported symbols of that shared object, eventually 11502 # decorated with the 'weak' keyword 11503 # *) the shared object with the F_LOADONLY flag set, to really avoid 11504 # it being seen by the linker. 11505 # At run time we better use the real file rather than another symlink, 11506 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11507 11508 case $with_aix_soname,$aix_use_runtimelinking in 11509 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11510 # soname into executable. Probably we can add versioning support to 11511 # collect2, so additional links can be useful in future. 11512 aix,yes) # traditional libtool 11513 dynamic_linker='AIX unversionable lib.so' 11514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11515 # instead of lib<name>.a to let people know that these are not 11516 # typical AIX shared libraries. 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 ;; 11519 aix,no) # traditional AIX only 11520 dynamic_linker='AIX lib.a(lib.so.V)' 11521 # We preserve .a as extension for shared libraries through AIX4.2 11522 # and later when we are not doing run time linking. 11523 library_names_spec='$libname$release.a $libname.a' 11524 soname_spec='$libname$release$shared_ext$major' 11525 ;; 11526 svr4,*) # full svr4 only 11527 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11528 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11529 # We do not specify a path in Import Files, so LIBPATH fires. 11530 shlibpath_overrides_runpath=yes 11531 ;; 11532 *,yes) # both, prefer svr4 11533 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11534 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11535 # unpreferred sharedlib libNAME.a needs extra handling 11536 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"' 11537 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"' 11538 # We do not specify a path in Import Files, so LIBPATH fires. 11539 shlibpath_overrides_runpath=yes 11540 ;; 11541 *,no) # both, prefer aix 11542 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11543 library_names_spec='$libname$release.a $libname.a' 11544 soname_spec='$libname$release$shared_ext$major' 11545 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11546 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)' 11547 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"' 11548 ;; 11549 esac 11550 shlibpath_var=LIBPATH 11551 fi 11552 ;; 11553 11554amigaos*) 11555 case $host_cpu in 11556 powerpc) 11557 # Since July 2007 AmigaOS4 officially supports .so libraries. 11558 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11560 ;; 11561 m68k) 11562 library_names_spec='$libname.ixlibrary $libname.a' 11563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11564 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' 11565 ;; 11566 esac 11567 ;; 11568 11569beos*) 11570 library_names_spec='$libname$shared_ext' 11571 dynamic_linker="$host_os ld.so" 11572 shlibpath_var=LIBRARY_PATH 11573 ;; 11574 11575bsdi[45]*) 11576 version_type=linux # correct to gnu/linux during the next big refactor 11577 need_version=no 11578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11579 soname_spec='$libname$release$shared_ext$major' 11580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11581 shlibpath_var=LD_LIBRARY_PATH 11582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11584 # the default ld.so.conf also contains /usr/contrib/lib and 11585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11586 # libtool to hard-code these into programs 11587 ;; 11588 11589cygwin* | mingw* | windows* | pw32* | cegcc*) 11590 version_type=windows 11591 shrext_cmds=.dll 11592 need_version=no 11593 need_lib_prefix=no 11594 11595 case $GCC,$cc_basename in 11596 yes,*) 11597 # gcc 11598 library_names_spec='$libname.dll.a' 11599 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11600 # If user builds GCC with multilib enabled, 11601 # it should just install on $(libdir) 11602 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11603 if test xyes = x"$multilib"; then 11604 postinstall_cmds='base_file=`basename \$file`~ 11605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11606 dldir=$destdir/`dirname \$dlpath`~ 11607 $install_prog $dir/$dlname $destdir/$dlname~ 11608 chmod a+x $destdir/$dlname~ 11609 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11610 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11611 fi' 11612 else 11613 postinstall_cmds='base_file=`basename \$file`~ 11614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11615 dldir=$destdir/`dirname \$dlpath`~ 11616 test -d \$dldir || mkdir -p \$dldir~ 11617 $install_prog $dir/$dlname \$dldir/$dlname~ 11618 chmod a+x \$dldir/$dlname~ 11619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11621 fi' 11622 fi 11623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11624 dlpath=$dir/\$dldll~ 11625 $RM \$dlpath' 11626 shlibpath_overrides_runpath=yes 11627 11628 case $host_os in 11629 cygwin*) 11630 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11631 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11632 11633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11634 ;; 11635 mingw* | windows* | cegcc*) 11636 # MinGW DLLs use traditional 'lib' prefix 11637 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11638 ;; 11639 pw32*) 11640 # pw32 DLLs use 'pw' prefix rather than 'lib' 11641 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11642 ;; 11643 esac 11644 dynamic_linker='Win32 ld.exe' 11645 ;; 11646 11647 *,cl* | *,icl*) 11648 # Native MSVC or ICC 11649 libname_spec='$name' 11650 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11651 library_names_spec='$libname.dll.lib' 11652 11653 case $build_os in 11654 mingw* | windows*) 11655 sys_lib_search_path_spec= 11656 lt_save_ifs=$IFS 11657 IFS=';' 11658 for lt_path in $LIB 11659 do 11660 IFS=$lt_save_ifs 11661 # Let DOS variable expansion print the short 8.3 style file name. 11662 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11663 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11664 done 11665 IFS=$lt_save_ifs 11666 # Convert to MSYS style. 11667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11668 ;; 11669 cygwin*) 11670 # Convert to unix form, then to dos form, then back to unix form 11671 # but this time dos style (no spaces!) so that the unix form looks 11672 # like /cygdrive/c/PROGRA~1:/cygdr... 11673 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11674 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11675 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11676 ;; 11677 *) 11678 sys_lib_search_path_spec=$LIB 11679 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11680 # It is most probably a Windows format PATH. 11681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11682 else 11683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11684 fi 11685 # FIXME: find the short name or the path components, as spaces are 11686 # common. (e.g. "Program Files" -> "PROGRA~1") 11687 ;; 11688 esac 11689 11690 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11691 postinstall_cmds='base_file=`basename \$file`~ 11692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11693 dldir=$destdir/`dirname \$dlpath`~ 11694 test -d \$dldir || mkdir -p \$dldir~ 11695 $install_prog $dir/$dlname \$dldir/$dlname' 11696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11697 dlpath=$dir/\$dldll~ 11698 $RM \$dlpath' 11699 shlibpath_overrides_runpath=yes 11700 dynamic_linker='Win32 link.exe' 11701 ;; 11702 11703 *) 11704 # Assume MSVC and ICC wrapper 11705 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11706 dynamic_linker='Win32 ld.exe' 11707 ;; 11708 esac 11709 # FIXME: first we should search . and the directory the executable is in 11710 shlibpath_var=PATH 11711 ;; 11712 11713darwin* | rhapsody*) 11714 dynamic_linker="$host_os dyld" 11715 version_type=darwin 11716 need_lib_prefix=no 11717 need_version=no 11718 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11719 soname_spec='$libname$release$major$shared_ext' 11720 shlibpath_overrides_runpath=yes 11721 shlibpath_var=DYLD_LIBRARY_PATH 11722 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11723 11724 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11726 ;; 11727 11728dgux*) 11729 version_type=linux # correct to gnu/linux during the next big refactor 11730 need_lib_prefix=no 11731 need_version=no 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11733 soname_spec='$libname$release$shared_ext$major' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 ;; 11736 11737freebsd* | dragonfly* | midnightbsd*) 11738 # DragonFly does not have aout. When/if they implement a new 11739 # versioning mechanism, adjust this. 11740 if test -x /usr/bin/objformat; then 11741 objformat=`/usr/bin/objformat` 11742 else 11743 case $host_os in 11744 freebsd[23].*) objformat=aout ;; 11745 *) objformat=elf ;; 11746 esac 11747 fi 11748 version_type=freebsd-$objformat 11749 case $version_type in 11750 freebsd-elf*) 11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11752 soname_spec='$libname$release$shared_ext$major' 11753 need_version=no 11754 need_lib_prefix=no 11755 ;; 11756 freebsd-*) 11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11758 need_version=yes 11759 ;; 11760 esac 11761 case $host_cpu in 11762 powerpc64) 11763 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 11764 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11766/* end confdefs.h. */ 11767int test_pointer_size[sizeof (void *) - 5]; 11768 11769_ACEOF 11770if ac_fn_c_try_compile "$LINENO" 11771then : 11772 shlibpath_var=LD_LIBRARY_PATH 11773else case e in #( 11774 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 11775esac 11776fi 11777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11778 ;; 11779 *) 11780 shlibpath_var=LD_LIBRARY_PATH 11781 ;; 11782 esac 11783 case $host_os in 11784 freebsd2.*) 11785 shlibpath_overrides_runpath=yes 11786 ;; 11787 freebsd3.[01]* | freebsdelf3.[01]*) 11788 shlibpath_overrides_runpath=yes 11789 hardcode_into_libs=yes 11790 ;; 11791 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11792 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11793 shlibpath_overrides_runpath=no 11794 hardcode_into_libs=yes 11795 ;; 11796 *) # from 4.6 on, and DragonFly 11797 shlibpath_overrides_runpath=yes 11798 hardcode_into_libs=yes 11799 ;; 11800 esac 11801 ;; 11802 11803haiku*) 11804 version_type=linux # correct to gnu/linux during the next big refactor 11805 need_lib_prefix=no 11806 need_version=no 11807 dynamic_linker="$host_os runtime_loader" 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 shlibpath_var=LIBRARY_PATH 11811 shlibpath_overrides_runpath=no 11812 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 11813 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 11814 hardcode_into_libs=no 11815 ;; 11816 11817hpux9* | hpux10* | hpux11*) 11818 # Give a soname corresponding to the major version so that dld.sl refuses to 11819 # link against other versions. 11820 version_type=sunos 11821 need_lib_prefix=no 11822 need_version=no 11823 case $host_cpu in 11824 ia64*) 11825 shrext_cmds='.so' 11826 hardcode_into_libs=yes 11827 dynamic_linker="$host_os dld.so" 11828 shlibpath_var=LD_LIBRARY_PATH 11829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 if test 32 = "$HPUX_IA64_MODE"; then 11833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11834 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11835 else 11836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11837 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11838 fi 11839 ;; 11840 hppa*64*) 11841 shrext_cmds='.sl' 11842 hardcode_into_libs=yes 11843 dynamic_linker="$host_os dld.sl" 11844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11847 soname_spec='$libname$release$shared_ext$major' 11848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11850 ;; 11851 *) 11852 shrext_cmds='.sl' 11853 dynamic_linker="$host_os dld.sl" 11854 shlibpath_var=SHLIB_PATH 11855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11857 soname_spec='$libname$release$shared_ext$major' 11858 ;; 11859 esac 11860 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11861 postinstall_cmds='chmod 555 $lib' 11862 # or fails outright, so override atomically: 11863 install_override_mode=555 11864 ;; 11865 11866interix[3-9]*) 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 need_lib_prefix=no 11869 need_version=no 11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11871 soname_spec='$libname$release$shared_ext$major' 11872 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11873 shlibpath_var=LD_LIBRARY_PATH 11874 shlibpath_overrides_runpath=no 11875 hardcode_into_libs=yes 11876 ;; 11877 11878irix5* | irix6* | nonstopux*) 11879 case $host_os in 11880 nonstopux*) version_type=nonstopux ;; 11881 *) 11882 if test yes = "$lt_cv_prog_gnu_ld"; then 11883 version_type=linux # correct to gnu/linux during the next big refactor 11884 else 11885 version_type=irix 11886 fi ;; 11887 esac 11888 need_lib_prefix=no 11889 need_version=no 11890 soname_spec='$libname$release$shared_ext$major' 11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11892 case $host_os in 11893 irix5* | nonstopux*) 11894 libsuff= shlibsuff= 11895 ;; 11896 *) 11897 case $LD in # libtool.m4 will add one of these switches to LD 11898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11899 libsuff= shlibsuff= libmagic=32-bit;; 11900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11901 libsuff=32 shlibsuff=N32 libmagic=N32;; 11902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11903 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11904 *) libsuff= shlibsuff= libmagic=never-match;; 11905 esac 11906 ;; 11907 esac 11908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11909 shlibpath_overrides_runpath=no 11910 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11911 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11912 hardcode_into_libs=yes 11913 ;; 11914 11915# No shared lib support for Linux oldld, aout, or coff. 11916linux*oldld* | linux*aout* | linux*coff*) 11917 dynamic_linker=no 11918 ;; 11919 11920linux*android*) 11921 version_type=none # Android doesn't support versioned libraries. 11922 need_lib_prefix=no 11923 need_version=no 11924 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 11925 soname_spec='$libname$release$shared_ext' 11926 finish_cmds= 11927 shlibpath_var=LD_LIBRARY_PATH 11928 shlibpath_overrides_runpath=yes 11929 11930 # This implies no fast_install, which is unacceptable. 11931 # Some rework will be needed to allow for fast_install 11932 # before this can be enabled. 11933 hardcode_into_libs=yes 11934 11935 dynamic_linker='Android linker' 11936 # -rpath works at least for libraries that are not overridden by 11937 # libraries installed in system locations. 11938 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11939 ;; 11940 11941# This must be glibc/ELF. 11942linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11943 version_type=linux # correct to gnu/linux during the next big refactor 11944 need_lib_prefix=no 11945 need_version=no 11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11947 soname_spec='$libname$release$shared_ext$major' 11948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11949 shlibpath_var=LD_LIBRARY_PATH 11950 shlibpath_overrides_runpath=no 11951 11952 # Some binutils ld are patched to set DT_RUNPATH 11953 if test ${lt_cv_shlibpath_overrides_runpath+y} 11954then : 11955 printf %s "(cached) " >&6 11956else case e in #( 11957 e) lt_cv_shlibpath_overrides_runpath=no 11958 save_LDFLAGS=$LDFLAGS 11959 save_libdir=$libdir 11960 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11961 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11963/* end confdefs.h. */ 11964 11965int 11966main (void) 11967{ 11968 11969 ; 11970 return 0; 11971} 11972_ACEOF 11973if ac_fn_c_try_link "$LINENO" 11974then : 11975 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11976then : 11977 lt_cv_shlibpath_overrides_runpath=yes 11978fi 11979fi 11980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11981 conftest$ac_exeext conftest.$ac_ext 11982 LDFLAGS=$save_LDFLAGS 11983 libdir=$save_libdir 11984 ;; 11985esac 11986fi 11987 11988 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11989 11990 # This implies no fast_install, which is unacceptable. 11991 # Some rework will be needed to allow for fast_install 11992 # before this can be enabled. 11993 hardcode_into_libs=yes 11994 11995 # Ideally, we could use ldconfig to report *all* directories which are 11996 # searched for libraries, however this is still not possible. Aside from not 11997 # being certain /sbin/ldconfig is available, command 11998 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11999 # even though it is searched at run-time. Try to do the best guess by 12000 # appending ld.so.conf contents (and includes) to the search path. 12001 if test -f /etc/ld.so.conf; then 12002 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' ' '` 12003 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12004 fi 12005 12006 # We used to test for /lib/ld.so.1 and disable shared libraries on 12007 # powerpc, because MkLinux only supported shared libraries with the 12008 # GNU dynamic linker. Since this was broken with cross compilers, 12009 # most powerpc-linux boxes support dynamic linking these days and 12010 # people can always --disable-shared, the test was removed, and we 12011 # assume the GNU/Linux dynamic linker is in use. 12012 dynamic_linker='GNU/Linux ld.so' 12013 ;; 12014 12015netbsdelf*-gnu) 12016 version_type=linux 12017 need_lib_prefix=no 12018 need_version=no 12019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12020 soname_spec='$libname$release$shared_ext$major' 12021 shlibpath_var=LD_LIBRARY_PATH 12022 shlibpath_overrides_runpath=no 12023 hardcode_into_libs=yes 12024 dynamic_linker='NetBSD ld.elf_so' 12025 ;; 12026 12027netbsd*) 12028 version_type=sunos 12029 need_lib_prefix=no 12030 need_version=no 12031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12032 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12034 dynamic_linker='NetBSD (a.out) ld.so' 12035 else 12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12037 soname_spec='$libname$release$shared_ext$major' 12038 dynamic_linker='NetBSD ld.elf_so' 12039 fi 12040 shlibpath_var=LD_LIBRARY_PATH 12041 shlibpath_overrides_runpath=yes 12042 hardcode_into_libs=yes 12043 ;; 12044 12045*-mlibc) 12046 version_type=linux # correct to gnu/linux during the next big refactor 12047 need_lib_prefix=no 12048 need_version=no 12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12050 soname_spec='$libname$release$shared_ext$major' 12051 dynamic_linker='mlibc ld.so' 12052 shlibpath_var=LD_LIBRARY_PATH 12053 shlibpath_overrides_runpath=no 12054 hardcode_into_libs=yes 12055 ;; 12056 12057newsos6) 12058 version_type=linux # correct to gnu/linux during the next big refactor 12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12060 shlibpath_var=LD_LIBRARY_PATH 12061 shlibpath_overrides_runpath=yes 12062 ;; 12063 12064*nto* | *qnx*) 12065 version_type=qnx 12066 need_lib_prefix=no 12067 need_version=no 12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12069 soname_spec='$libname$release$shared_ext$major' 12070 shlibpath_var=LD_LIBRARY_PATH 12071 shlibpath_overrides_runpath=no 12072 hardcode_into_libs=yes 12073 dynamic_linker='ldqnx.so' 12074 ;; 12075 12076openbsd*) 12077 version_type=sunos 12078 sys_lib_dlsearch_path_spec=/usr/lib 12079 need_lib_prefix=no 12080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12081 need_version=no 12082 else 12083 need_version=yes 12084 fi 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 shlibpath_overrides_runpath=yes 12089 ;; 12090 12091os2*) 12092 libname_spec='$name' 12093 version_type=windows 12094 shrext_cmds=.dll 12095 need_version=no 12096 need_lib_prefix=no 12097 # OS/2 can only load a DLL with a base name of 8 characters or less. 12098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12099 v=$($ECHO $release$versuffix | tr -d .-); 12100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12101 $ECHO $n$v`$shared_ext' 12102 library_names_spec='${libname}_dll.$libext' 12103 dynamic_linker='OS/2 ld.exe' 12104 shlibpath_var=BEGINLIBPATH 12105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12107 postinstall_cmds='base_file=`basename \$file`~ 12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12109 dldir=$destdir/`dirname \$dlpath`~ 12110 test -d \$dldir || mkdir -p \$dldir~ 12111 $install_prog $dir/$dlname \$dldir/$dlname~ 12112 chmod a+x \$dldir/$dlname~ 12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12115 fi' 12116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12117 dlpath=$dir/\$dldll~ 12118 $RM \$dlpath' 12119 ;; 12120 12121osf3* | osf4* | osf5*) 12122 version_type=osf 12123 need_lib_prefix=no 12124 need_version=no 12125 soname_spec='$libname$release$shared_ext$major' 12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12127 shlibpath_var=LD_LIBRARY_PATH 12128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12130 ;; 12131 12132rdos*) 12133 dynamic_linker=no 12134 ;; 12135 12136serenity*) 12137 version_type=linux # correct to gnu/linux during the next big refactor 12138 need_lib_prefix=no 12139 need_version=no 12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12141 soname_spec='$libname$release$shared_ext$major' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 shlibpath_overrides_runpath=no 12144 dynamic_linker='SerenityOS LibELF' 12145 ;; 12146 12147solaris*) 12148 version_type=linux # correct to gnu/linux during the next big refactor 12149 need_lib_prefix=no 12150 need_version=no 12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12152 soname_spec='$libname$release$shared_ext$major' 12153 shlibpath_var=LD_LIBRARY_PATH 12154 shlibpath_overrides_runpath=yes 12155 hardcode_into_libs=yes 12156 # ldd complains unless libraries are executable 12157 postinstall_cmds='chmod +x $lib' 12158 ;; 12159 12160sunos4*) 12161 version_type=sunos 12162 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12164 shlibpath_var=LD_LIBRARY_PATH 12165 shlibpath_overrides_runpath=yes 12166 if test yes = "$with_gnu_ld"; then 12167 need_lib_prefix=no 12168 fi 12169 need_version=yes 12170 ;; 12171 12172sysv4 | sysv4.3*) 12173 version_type=linux # correct to gnu/linux during the next big refactor 12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12175 soname_spec='$libname$release$shared_ext$major' 12176 shlibpath_var=LD_LIBRARY_PATH 12177 case $host_vendor in 12178 sni) 12179 shlibpath_overrides_runpath=no 12180 need_lib_prefix=no 12181 runpath_var=LD_RUN_PATH 12182 ;; 12183 siemens) 12184 need_lib_prefix=no 12185 ;; 12186 motorola) 12187 need_lib_prefix=no 12188 need_version=no 12189 shlibpath_overrides_runpath=no 12190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12191 ;; 12192 esac 12193 ;; 12194 12195sysv4*MP*) 12196 if test -d /usr/nec; then 12197 version_type=linux # correct to gnu/linux during the next big refactor 12198 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12199 soname_spec='$libname$shared_ext.$major' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 fi 12202 ;; 12203 12204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12205 version_type=sco 12206 need_lib_prefix=no 12207 need_version=no 12208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12209 soname_spec='$libname$release$shared_ext$major' 12210 shlibpath_var=LD_LIBRARY_PATH 12211 shlibpath_overrides_runpath=yes 12212 hardcode_into_libs=yes 12213 if test yes = "$with_gnu_ld"; then 12214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12215 else 12216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12217 case $host_os in 12218 sco3.2v5*) 12219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12220 ;; 12221 esac 12222 fi 12223 sys_lib_dlsearch_path_spec='/usr/lib' 12224 ;; 12225 12226tpf*) 12227 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12228 version_type=linux # correct to gnu/linux during the next big refactor 12229 need_lib_prefix=no 12230 need_version=no 12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12232 shlibpath_var=LD_LIBRARY_PATH 12233 shlibpath_overrides_runpath=no 12234 hardcode_into_libs=yes 12235 ;; 12236 12237uts4*) 12238 version_type=linux # correct to gnu/linux during the next big refactor 12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12240 soname_spec='$libname$release$shared_ext$major' 12241 shlibpath_var=LD_LIBRARY_PATH 12242 ;; 12243 12244emscripten*) 12245 version_type=none 12246 need_lib_prefix=no 12247 need_version=no 12248 library_names_spec='$libname$release$shared_ext' 12249 soname_spec='$libname$release$shared_ext' 12250 finish_cmds= 12251 dynamic_linker="Emscripten linker" 12252 lt_prog_compiler_wl= 12253lt_prog_compiler_pic= 12254lt_prog_compiler_static= 12255 12256 12257 if test yes = "$GCC"; then 12258 lt_prog_compiler_wl='-Wl,' 12259 lt_prog_compiler_static='-static' 12260 12261 case $host_os in 12262 aix*) 12263 # All AIX code is PIC. 12264 if test ia64 = "$host_cpu"; then 12265 # AIX 5 now supports IA64 processor 12266 lt_prog_compiler_static='-Bstatic' 12267 fi 12268 lt_prog_compiler_pic='-fPIC' 12269 ;; 12270 12271 amigaos*) 12272 case $host_cpu in 12273 powerpc) 12274 # see comment about AmigaOS4 .so support 12275 lt_prog_compiler_pic='-fPIC' 12276 ;; 12277 m68k) 12278 # FIXME: we need at least 68020 code to build shared libraries, but 12279 # adding the '-m68020' flag to GCC prevents building anything better, 12280 # like '-m68040'. 12281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12282 ;; 12283 esac 12284 ;; 12285 12286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12287 # PIC is the default for these OSes. 12288 ;; 12289 12290 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12291 # This hack is so that the source file can tell whether it is being 12292 # built for inclusion in a dll (and should export symbols for example). 12293 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12294 # (--disable-auto-import) libraries 12295 lt_prog_compiler_pic='-DDLL_EXPORT' 12296 case $host_os in 12297 os2*) 12298 lt_prog_compiler_static='$wl-static' 12299 ;; 12300 esac 12301 ;; 12302 12303 darwin* | rhapsody*) 12304 # PIC is the default on this platform 12305 # Common symbols not allowed in MH_DYLIB files 12306 lt_prog_compiler_pic='-fno-common' 12307 ;; 12308 12309 haiku*) 12310 # PIC is the default for Haiku. 12311 # The "-static" flag exists, but is broken. 12312 lt_prog_compiler_static= 12313 ;; 12314 12315 hpux*) 12316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12318 # sets the default TLS model and affects inlining. 12319 case $host_cpu in 12320 hppa*64*) 12321 # +Z the default 12322 ;; 12323 *) 12324 lt_prog_compiler_pic='-fPIC' 12325 ;; 12326 esac 12327 ;; 12328 12329 interix[3-9]*) 12330 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12331 # Instead, we relocate shared libraries at runtime. 12332 ;; 12333 12334 msdosdjgpp*) 12335 # Just because we use GCC doesn't mean we suddenly get shared libraries 12336 # on systems that don't support them. 12337 lt_prog_compiler_can_build_shared=no 12338 enable_shared=no 12339 ;; 12340 12341 *nto* | *qnx*) 12342 # QNX uses GNU C++, but need to define -shared option too, otherwise 12343 # it will coredump. 12344 lt_prog_compiler_pic='-fPIC -shared' 12345 ;; 12346 12347 sysv4*MP*) 12348 if test -d /usr/nec; then 12349 lt_prog_compiler_pic=-Kconform_pic 12350 fi 12351 ;; 12352 12353 *) 12354 lt_prog_compiler_pic='-fPIC' 12355 ;; 12356 esac 12357 12358 case $cc_basename in 12359 nvcc*) # Cuda Compiler Driver 2.2 12360 lt_prog_compiler_wl='-Xlinker ' 12361 if test -n "$lt_prog_compiler_pic"; then 12362 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12363 fi 12364 ;; 12365 esac 12366 else 12367 # PORTME Check for flag to pass linker flags through the system compiler. 12368 case $host_os in 12369 aix*) 12370 lt_prog_compiler_wl='-Wl,' 12371 if test ia64 = "$host_cpu"; then 12372 # AIX 5 now supports IA64 processor 12373 lt_prog_compiler_static='-Bstatic' 12374 else 12375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12376 fi 12377 ;; 12378 12379 darwin* | rhapsody*) 12380 # PIC is the default on this platform 12381 # Common symbols not allowed in MH_DYLIB files 12382 lt_prog_compiler_pic='-fno-common' 12383 case $cc_basename in 12384 nagfor*) 12385 # NAG Fortran compiler 12386 lt_prog_compiler_wl='-Wl,-Wl,,' 12387 lt_prog_compiler_pic='-PIC' 12388 lt_prog_compiler_static='-Bstatic' 12389 ;; 12390 esac 12391 ;; 12392 12393 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12394 # This hack is so that the source file can tell whether it is being 12395 # built for inclusion in a dll (and should export symbols for example). 12396 lt_prog_compiler_pic='-DDLL_EXPORT' 12397 case $host_os in 12398 os2*) 12399 lt_prog_compiler_static='$wl-static' 12400 ;; 12401 esac 12402 ;; 12403 12404 hpux9* | hpux10* | hpux11*) 12405 lt_prog_compiler_wl='-Wl,' 12406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12407 # not for PA HP-UX. 12408 case $host_cpu in 12409 hppa*64*|ia64*) 12410 # +Z the default 12411 ;; 12412 *) 12413 lt_prog_compiler_pic='+Z' 12414 ;; 12415 esac 12416 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12417 lt_prog_compiler_static='$wl-a ${wl}archive' 12418 ;; 12419 12420 irix5* | irix6* | nonstopux*) 12421 lt_prog_compiler_wl='-Wl,' 12422 # PIC (with -KPIC) is the default. 12423 lt_prog_compiler_static='-non_shared' 12424 ;; 12425 12426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12427 case $cc_basename in 12428 # old Intel for x86_64, which still supported -KPIC. 12429 ecc*) 12430 lt_prog_compiler_wl='-Wl,' 12431 lt_prog_compiler_pic='-KPIC' 12432 lt_prog_compiler_static='-static' 12433 ;; 12434 *flang* | ftn | f18* | f95*) 12435 # Flang compiler. 12436 lt_prog_compiler_wl='-Wl,' 12437 lt_prog_compiler_pic='-fPIC' 12438 lt_prog_compiler_static='-static' 12439 ;; 12440 # icc used to be incompatible with GCC. 12441 # ICC 10 doesn't accept -KPIC any more. 12442 icc* | ifort*) 12443 lt_prog_compiler_wl='-Wl,' 12444 lt_prog_compiler_pic='-fPIC' 12445 lt_prog_compiler_static='-static' 12446 ;; 12447 # Lahey Fortran 8.1. 12448 lf95*) 12449 lt_prog_compiler_wl='-Wl,' 12450 lt_prog_compiler_pic='--shared' 12451 lt_prog_compiler_static='--static' 12452 ;; 12453 nagfor*) 12454 # NAG Fortran compiler 12455 lt_prog_compiler_wl='-Wl,-Wl,,' 12456 lt_prog_compiler_pic='-PIC' 12457 lt_prog_compiler_static='-Bstatic' 12458 ;; 12459 tcc*) 12460 # Fabrice Bellard et al's Tiny C Compiler 12461 lt_prog_compiler_wl='-Wl,' 12462 lt_prog_compiler_pic='-fPIC' 12463 lt_prog_compiler_static='-static' 12464 ;; 12465 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12466 # Portland Group compilers (*not* the Pentium gcc compiler, 12467 # which looks to be a dead project) 12468 lt_prog_compiler_wl='-Wl,' 12469 lt_prog_compiler_pic='-fpic' 12470 lt_prog_compiler_static='-Bstatic' 12471 ;; 12472 ccc*) 12473 lt_prog_compiler_wl='-Wl,' 12474 # All Alpha code is PIC. 12475 lt_prog_compiler_static='-non_shared' 12476 ;; 12477 xl* | bgxl* | bgf* | mpixl*) 12478 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12479 lt_prog_compiler_wl='-Wl,' 12480 lt_prog_compiler_pic='-qpic' 12481 lt_prog_compiler_static='-qstaticlink' 12482 ;; 12483 *) 12484 case `$CC -V 2>&1 | $SED 5q` in 12485 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12486 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12487 lt_prog_compiler_pic='-KPIC' 12488 lt_prog_compiler_static='-Bstatic' 12489 lt_prog_compiler_wl='' 12490 ;; 12491 *Sun\ F* | *Sun*Fortran*) 12492 lt_prog_compiler_pic='-KPIC' 12493 lt_prog_compiler_static='-Bstatic' 12494 lt_prog_compiler_wl='-Qoption ld ' 12495 ;; 12496 *Sun\ C*) 12497 # Sun C 5.9 12498 lt_prog_compiler_pic='-KPIC' 12499 lt_prog_compiler_static='-Bstatic' 12500 lt_prog_compiler_wl='-Wl,' 12501 ;; 12502 *Intel*\ [CF]*Compiler*) 12503 lt_prog_compiler_wl='-Wl,' 12504 lt_prog_compiler_pic='-fPIC' 12505 lt_prog_compiler_static='-static' 12506 ;; 12507 *Portland\ Group*) 12508 lt_prog_compiler_wl='-Wl,' 12509 lt_prog_compiler_pic='-fpic' 12510 lt_prog_compiler_static='-Bstatic' 12511 ;; 12512 esac 12513 ;; 12514 esac 12515 ;; 12516 12517 newsos6) 12518 lt_prog_compiler_pic='-KPIC' 12519 lt_prog_compiler_static='-Bstatic' 12520 ;; 12521 12522 *-mlibc) 12523 lt_prog_compiler_wl='-Wl,' 12524 lt_prog_compiler_pic='-fPIC' 12525 lt_prog_compiler_static='-static' 12526 ;; 12527 12528 *nto* | *qnx*) 12529 # QNX uses GNU C++, but need to define -shared option too, otherwise 12530 # it will coredump. 12531 lt_prog_compiler_pic='-fPIC -shared' 12532 ;; 12533 12534 osf3* | osf4* | osf5*) 12535 lt_prog_compiler_wl='-Wl,' 12536 # All OSF/1 code is PIC. 12537 lt_prog_compiler_static='-non_shared' 12538 ;; 12539 12540 rdos*) 12541 lt_prog_compiler_static='-non_shared' 12542 ;; 12543 12544 serenity*) 12545 ;; 12546 12547 solaris*) 12548 lt_prog_compiler_pic='-KPIC' 12549 lt_prog_compiler_static='-Bstatic' 12550 case $cc_basename in 12551 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12552 lt_prog_compiler_wl='-Qoption ld ';; 12553 *) 12554 lt_prog_compiler_wl='-Wl,';; 12555 esac 12556 ;; 12557 12558 sunos4*) 12559 lt_prog_compiler_wl='-Qoption ld ' 12560 lt_prog_compiler_pic='-PIC' 12561 lt_prog_compiler_static='-Bstatic' 12562 ;; 12563 12564 sysv4 | sysv4.2uw2* | sysv4.3*) 12565 lt_prog_compiler_wl='-Wl,' 12566 lt_prog_compiler_pic='-KPIC' 12567 lt_prog_compiler_static='-Bstatic' 12568 ;; 12569 12570 sysv4*MP*) 12571 if test -d /usr/nec; then 12572 lt_prog_compiler_pic='-Kconform_pic' 12573 lt_prog_compiler_static='-Bstatic' 12574 fi 12575 ;; 12576 12577 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12578 lt_prog_compiler_wl='-Wl,' 12579 lt_prog_compiler_pic='-KPIC' 12580 lt_prog_compiler_static='-Bstatic' 12581 ;; 12582 12583 unicos*) 12584 lt_prog_compiler_wl='-Wl,' 12585 lt_prog_compiler_can_build_shared=no 12586 ;; 12587 12588 uts4*) 12589 lt_prog_compiler_pic='-pic' 12590 lt_prog_compiler_static='-Bstatic' 12591 ;; 12592 12593 *) 12594 lt_prog_compiler_can_build_shared=no 12595 ;; 12596 esac 12597 fi 12598 12599case $host_os in 12600 # For platforms that do not support PIC, -DPIC is meaningless: 12601 *djgpp*) 12602 lt_prog_compiler_pic= 12603 ;; 12604 *) 12605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12606 ;; 12607esac 12608 12609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12610printf %s "checking for $compiler option to produce PIC... " >&6; } 12611if test ${lt_cv_prog_compiler_pic+y} 12612then : 12613 printf %s "(cached) " >&6 12614else case e in #( 12615 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12616esac 12617fi 12618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12619printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12620lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12621 12622# 12623# Check to make sure the PIC flag actually works. 12624# 12625if test -n "$lt_prog_compiler_pic"; then 12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12627printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12628if test ${lt_cv_prog_compiler_pic_works+y} 12629then : 12630 printf %s "(cached) " >&6 12631else case e in #( 12632 e) lt_cv_prog_compiler_pic_works=no 12633 ac_outfile=conftest.$ac_objext 12634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12635 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12636 # Insert the option either (1) after the last *FLAGS variable, or 12637 # (2) before a word containing "conftest.", or (3) at the end. 12638 # Note that $ac_compile itself does not contain backslashes and begins 12639 # with a dollar sign (not a hyphen), so the echo should work correctly. 12640 # The option is referenced via a variable to avoid confusing sed. 12641 lt_compile=`echo "$ac_compile" | $SED \ 12642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12644 -e 's:$: $lt_compiler_flag:'` 12645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12646 (eval "$lt_compile" 2>conftest.err) 12647 ac_status=$? 12648 cat conftest.err >&5 12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12650 if (exit $ac_status) && test -s "$ac_outfile"; then 12651 # The compiler can only warn and ignore the option if not recognized 12652 # So say no if there are warnings other than the usual output. 12653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12656 lt_cv_prog_compiler_pic_works=yes 12657 fi 12658 fi 12659 $RM conftest* 12660 ;; 12661esac 12662fi 12663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12664printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12665 12666if test yes = "$lt_cv_prog_compiler_pic_works"; then 12667 case $lt_prog_compiler_pic in 12668 "" | " "*) ;; 12669 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12670 esac 12671else 12672 lt_prog_compiler_pic= 12673 lt_prog_compiler_can_build_shared=no 12674fi 12675 12676fi 12677 12678 12679 12680 12681 12682# 12683# Check to make sure the static flag actually works. 12684# 12685wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12687printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12688if test ${lt_cv_prog_compiler_static_works+y} 12689then : 12690 printf %s "(cached) " >&6 12691else case e in #( 12692 e) lt_cv_prog_compiler_static_works=no 12693 save_LDFLAGS=$LDFLAGS 12694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12695 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12697 # The linker can only warn and ignore the option if not recognized 12698 # So say no if there are warnings 12699 if test -s conftest.err; then 12700 # Append any errors to the config.log. 12701 cat conftest.err 1>&5 12702 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12704 if diff conftest.exp conftest.er2 >/dev/null; then 12705 lt_cv_prog_compiler_static_works=yes 12706 fi 12707 else 12708 lt_cv_prog_compiler_static_works=yes 12709 fi 12710 fi 12711 $RM -r conftest* 12712 LDFLAGS=$save_LDFLAGS 12713 ;; 12714esac 12715fi 12716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12717printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12718 12719if test yes = "$lt_cv_prog_compiler_static_works"; then 12720 : 12721else 12722 lt_prog_compiler_static= 12723fi 12724 12725 12726 12727='-fPIC' 12728 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12729 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 12730 archive_cmds_need_lc=no 12731 no_undefined_flag= 12732 ;; 12733 12734*) 12735 dynamic_linker=no 12736 ;; 12737esac 12738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12739printf "%s\n" "$dynamic_linker" >&6; } 12740test no = "$dynamic_linker" && can_build_shared=no 12741 12742variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12743if test yes = "$GCC"; then 12744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12745fi 12746 12747if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12748 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12749fi 12750 12751if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12752 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12753fi 12754 12755# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12756configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12757 12758# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12759func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12760 12761# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12762configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12861printf %s "checking how to hardcode library paths into programs... " >&6; } 12862hardcode_action= 12863if test -n "$hardcode_libdir_flag_spec" || 12864 test -n "$runpath_var" || 12865 test yes = "$hardcode_automatic"; then 12866 12867 # We can hardcode non-existent directories. 12868 if test no != "$hardcode_direct" && 12869 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12870 # have to relink, otherwise we might link with an installed library 12871 # when we should be linking with a yet-to-be-installed one 12872 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12873 test no != "$hardcode_minus_L"; then 12874 # Linking always hardcodes the temporary library directory. 12875 hardcode_action=relink 12876 else 12877 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12878 hardcode_action=immediate 12879 fi 12880else 12881 # We cannot hardcode anything, or else we can only hardcode existing 12882 # directories. 12883 hardcode_action=unsupported 12884fi 12885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12886printf "%s\n" "$hardcode_action" >&6; } 12887 12888if test relink = "$hardcode_action" || 12889 test yes = "$inherit_rpath"; then 12890 # Fast installation is not supported 12891 enable_fast_install=no 12892elif test yes = "$shlibpath_overrides_runpath" || 12893 test no = "$enable_shared"; then 12894 # Fast installation is not necessary 12895 enable_fast_install=needless 12896fi 12897 12898 12899 12900 12901 12902 12903 if test yes != "$enable_dlopen"; then 12904 enable_dlopen=unknown 12905 enable_dlopen_self=unknown 12906 enable_dlopen_self_static=unknown 12907else 12908 lt_cv_dlopen=no 12909 lt_cv_dlopen_libs= 12910 12911 case $host_os in 12912 beos*) 12913 lt_cv_dlopen=load_add_on 12914 lt_cv_dlopen_libs= 12915 lt_cv_dlopen_self=yes 12916 ;; 12917 12918 mingw* | windows* | pw32* | cegcc*) 12919 lt_cv_dlopen=LoadLibrary 12920 lt_cv_dlopen_libs= 12921 ;; 12922 12923 cygwin*) 12924 lt_cv_dlopen=dlopen 12925 lt_cv_dlopen_libs= 12926 ;; 12927 12928 darwin*) 12929 # if libdl is installed we need to link against it 12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12931printf %s "checking for dlopen in -ldl... " >&6; } 12932if test ${ac_cv_lib_dl_dlopen+y} 12933then : 12934 printf %s "(cached) " >&6 12935else case e in #( 12936 e) ac_check_lib_save_LIBS=$LIBS 12937LIBS="-ldl $LIBS" 12938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12939/* end confdefs.h. */ 12940 12941/* Override any GCC internal prototype to avoid an error. 12942 Use char because int might match the return type of a GCC 12943 builtin and then its argument prototype would still apply. 12944 The 'extern "C"' is for builds by C++ compilers; 12945 although this is not generally supported in C code supporting it here 12946 has little cost and some practical benefit (sr 110532). */ 12947#ifdef __cplusplus 12948extern "C" 12949#endif 12950char dlopen (void); 12951int 12952main (void) 12953{ 12954return dlopen (); 12955 ; 12956 return 0; 12957} 12958_ACEOF 12959if ac_fn_c_try_link "$LINENO" 12960then : 12961 ac_cv_lib_dl_dlopen=yes 12962else case e in #( 12963 e) ac_cv_lib_dl_dlopen=no ;; 12964esac 12965fi 12966rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12967 conftest$ac_exeext conftest.$ac_ext 12968LIBS=$ac_check_lib_save_LIBS ;; 12969esac 12970fi 12971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12972printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12973if test "x$ac_cv_lib_dl_dlopen" = xyes 12974then : 12975 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12976else case e in #( 12977 e) 12978 lt_cv_dlopen=dyld 12979 lt_cv_dlopen_libs= 12980 lt_cv_dlopen_self=yes 12981 ;; 12982esac 12983fi 12984 12985 ;; 12986 12987 tpf*) 12988 # Don't try to run any link tests for TPF. We know it's impossible 12989 # because TPF is a cross-compiler, and we know how we open DSOs. 12990 lt_cv_dlopen=dlopen 12991 lt_cv_dlopen_libs= 12992 lt_cv_dlopen_self=no 12993 ;; 12994 12995 *) 12996 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12997if test "x$ac_cv_func_shl_load" = xyes 12998then : 12999 lt_cv_dlopen=shl_load 13000else case e in #( 13001 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13002printf %s "checking for shl_load in -ldld... " >&6; } 13003if test ${ac_cv_lib_dld_shl_load+y} 13004then : 13005 printf %s "(cached) " >&6 13006else case e in #( 13007 e) ac_check_lib_save_LIBS=$LIBS 13008LIBS="-ldld $LIBS" 13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011 13012/* Override any GCC internal prototype to avoid an error. 13013 Use char because int might match the return type of a GCC 13014 builtin and then its argument prototype would still apply. 13015 The 'extern "C"' is for builds by C++ compilers; 13016 although this is not generally supported in C code supporting it here 13017 has little cost and some practical benefit (sr 110532). */ 13018#ifdef __cplusplus 13019extern "C" 13020#endif 13021char shl_load (void); 13022int 13023main (void) 13024{ 13025return shl_load (); 13026 ; 13027 return 0; 13028} 13029_ACEOF 13030if ac_fn_c_try_link "$LINENO" 13031then : 13032 ac_cv_lib_dld_shl_load=yes 13033else case e in #( 13034 e) ac_cv_lib_dld_shl_load=no ;; 13035esac 13036fi 13037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13038 conftest$ac_exeext conftest.$ac_ext 13039LIBS=$ac_check_lib_save_LIBS ;; 13040esac 13041fi 13042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13043printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13044if test "x$ac_cv_lib_dld_shl_load" = xyes 13045then : 13046 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13047else case e in #( 13048 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13049if test "x$ac_cv_func_dlopen" = xyes 13050then : 13051 lt_cv_dlopen=dlopen 13052else case e in #( 13053 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13054printf %s "checking for dlopen in -ldl... " >&6; } 13055if test ${ac_cv_lib_dl_dlopen+y} 13056then : 13057 printf %s "(cached) " >&6 13058else case e in #( 13059 e) ac_check_lib_save_LIBS=$LIBS 13060LIBS="-ldl $LIBS" 13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062/* end confdefs.h. */ 13063 13064/* Override any GCC internal prototype to avoid an error. 13065 Use char because int might match the return type of a GCC 13066 builtin and then its argument prototype would still apply. 13067 The 'extern "C"' is for builds by C++ compilers; 13068 although this is not generally supported in C code supporting it here 13069 has little cost and some practical benefit (sr 110532). */ 13070#ifdef __cplusplus 13071extern "C" 13072#endif 13073char dlopen (void); 13074int 13075main (void) 13076{ 13077return dlopen (); 13078 ; 13079 return 0; 13080} 13081_ACEOF 13082if ac_fn_c_try_link "$LINENO" 13083then : 13084 ac_cv_lib_dl_dlopen=yes 13085else case e in #( 13086 e) ac_cv_lib_dl_dlopen=no ;; 13087esac 13088fi 13089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13090 conftest$ac_exeext conftest.$ac_ext 13091LIBS=$ac_check_lib_save_LIBS ;; 13092esac 13093fi 13094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13095printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13096if test "x$ac_cv_lib_dl_dlopen" = xyes 13097then : 13098 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13099else case e in #( 13100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13101printf %s "checking for dlopen in -lsvld... " >&6; } 13102if test ${ac_cv_lib_svld_dlopen+y} 13103then : 13104 printf %s "(cached) " >&6 13105else case e in #( 13106 e) ac_check_lib_save_LIBS=$LIBS 13107LIBS="-lsvld $LIBS" 13108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110 13111/* Override any GCC internal prototype to avoid an error. 13112 Use char because int might match the return type of a GCC 13113 builtin and then its argument prototype would still apply. 13114 The 'extern "C"' is for builds by C++ compilers; 13115 although this is not generally supported in C code supporting it here 13116 has little cost and some practical benefit (sr 110532). */ 13117#ifdef __cplusplus 13118extern "C" 13119#endif 13120char dlopen (void); 13121int 13122main (void) 13123{ 13124return dlopen (); 13125 ; 13126 return 0; 13127} 13128_ACEOF 13129if ac_fn_c_try_link "$LINENO" 13130then : 13131 ac_cv_lib_svld_dlopen=yes 13132else case e in #( 13133 e) ac_cv_lib_svld_dlopen=no ;; 13134esac 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13137 conftest$ac_exeext conftest.$ac_ext 13138LIBS=$ac_check_lib_save_LIBS ;; 13139esac 13140fi 13141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13142printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13143if test "x$ac_cv_lib_svld_dlopen" = xyes 13144then : 13145 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13146else case e in #( 13147 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13148printf %s "checking for dld_link in -ldld... " >&6; } 13149if test ${ac_cv_lib_dld_dld_link+y} 13150then : 13151 printf %s "(cached) " >&6 13152else case e in #( 13153 e) ac_check_lib_save_LIBS=$LIBS 13154LIBS="-ldld $LIBS" 13155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13156/* end confdefs.h. */ 13157 13158/* Override any GCC internal prototype to avoid an error. 13159 Use char because int might match the return type of a GCC 13160 builtin and then its argument prototype would still apply. 13161 The 'extern "C"' is for builds by C++ compilers; 13162 although this is not generally supported in C code supporting it here 13163 has little cost and some practical benefit (sr 110532). */ 13164#ifdef __cplusplus 13165extern "C" 13166#endif 13167char dld_link (void); 13168int 13169main (void) 13170{ 13171return dld_link (); 13172 ; 13173 return 0; 13174} 13175_ACEOF 13176if ac_fn_c_try_link "$LINENO" 13177then : 13178 ac_cv_lib_dld_dld_link=yes 13179else case e in #( 13180 e) ac_cv_lib_dld_dld_link=no ;; 13181esac 13182fi 13183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13184 conftest$ac_exeext conftest.$ac_ext 13185LIBS=$ac_check_lib_save_LIBS ;; 13186esac 13187fi 13188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13189printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13190if test "x$ac_cv_lib_dld_dld_link" = xyes 13191then : 13192 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13193fi 13194 13195 ;; 13196esac 13197fi 13198 13199 ;; 13200esac 13201fi 13202 13203 ;; 13204esac 13205fi 13206 13207 ;; 13208esac 13209fi 13210 13211 ;; 13212esac 13213fi 13214 13215 ;; 13216 esac 13217 13218 if test no = "$lt_cv_dlopen"; then 13219 enable_dlopen=no 13220 else 13221 enable_dlopen=yes 13222 fi 13223 13224 case $lt_cv_dlopen in 13225 dlopen) 13226 save_CPPFLAGS=$CPPFLAGS 13227 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13228 13229 save_LDFLAGS=$LDFLAGS 13230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13231 13232 save_LIBS=$LIBS 13233 LIBS="$lt_cv_dlopen_libs $LIBS" 13234 13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13236printf %s "checking whether a program can dlopen itself... " >&6; } 13237if test ${lt_cv_dlopen_self+y} 13238then : 13239 printf %s "(cached) " >&6 13240else case e in #( 13241 e) if test yes = "$cross_compiling"; then : 13242 lt_cv_dlopen_self=cross 13243else 13244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13245 lt_status=$lt_dlunknown 13246 cat > conftest.$ac_ext <<_LT_EOF 13247#line $LINENO "configure" 13248#include "confdefs.h" 13249 13250#if HAVE_DLFCN_H 13251#include <dlfcn.h> 13252#endif 13253 13254#include <stdio.h> 13255 13256#ifdef RTLD_GLOBAL 13257# define LT_DLGLOBAL RTLD_GLOBAL 13258#else 13259# ifdef DL_GLOBAL 13260# define LT_DLGLOBAL DL_GLOBAL 13261# else 13262# define LT_DLGLOBAL 0 13263# endif 13264#endif 13265 13266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13267 find out it does not work in some platform. */ 13268#ifndef LT_DLLAZY_OR_NOW 13269# ifdef RTLD_LAZY 13270# define LT_DLLAZY_OR_NOW RTLD_LAZY 13271# else 13272# ifdef DL_LAZY 13273# define LT_DLLAZY_OR_NOW DL_LAZY 13274# else 13275# ifdef RTLD_NOW 13276# define LT_DLLAZY_OR_NOW RTLD_NOW 13277# else 13278# ifdef DL_NOW 13279# define LT_DLLAZY_OR_NOW DL_NOW 13280# else 13281# define LT_DLLAZY_OR_NOW 0 13282# endif 13283# endif 13284# endif 13285# endif 13286#endif 13287 13288/* When -fvisibility=hidden is used, assume the code has been annotated 13289 correspondingly for the symbols needed. */ 13290#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13291int fnord (void) __attribute__((visibility("default"))); 13292#endif 13293 13294int fnord (void) { return 42; } 13295int main (void) 13296{ 13297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13298 int status = $lt_dlunknown; 13299 13300 if (self) 13301 { 13302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13303 else 13304 { 13305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13306 else puts (dlerror ()); 13307 } 13308 /* dlclose (self); */ 13309 } 13310 else 13311 puts (dlerror ()); 13312 13313 return status; 13314} 13315_LT_EOF 13316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13317 (eval $ac_link) 2>&5 13318 ac_status=$? 13319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13320 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13321 (./conftest; exit; ) >&5 2>/dev/null 13322 lt_status=$? 13323 case x$lt_status in 13324 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13325 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13326 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13327 esac 13328 else : 13329 # compilation failed 13330 lt_cv_dlopen_self=no 13331 fi 13332fi 13333rm -fr conftest* 13334 13335 ;; 13336esac 13337fi 13338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13339printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13340 13341 if test yes = "$lt_cv_dlopen_self"; then 13342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13344printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13345if test ${lt_cv_dlopen_self_static+y} 13346then : 13347 printf %s "(cached) " >&6 13348else case e in #( 13349 e) if test yes = "$cross_compiling"; then : 13350 lt_cv_dlopen_self_static=cross 13351else 13352 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13353 lt_status=$lt_dlunknown 13354 cat > conftest.$ac_ext <<_LT_EOF 13355#line $LINENO "configure" 13356#include "confdefs.h" 13357 13358#if HAVE_DLFCN_H 13359#include <dlfcn.h> 13360#endif 13361 13362#include <stdio.h> 13363 13364#ifdef RTLD_GLOBAL 13365# define LT_DLGLOBAL RTLD_GLOBAL 13366#else 13367# ifdef DL_GLOBAL 13368# define LT_DLGLOBAL DL_GLOBAL 13369# else 13370# define LT_DLGLOBAL 0 13371# endif 13372#endif 13373 13374/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13375 find out it does not work in some platform. */ 13376#ifndef LT_DLLAZY_OR_NOW 13377# ifdef RTLD_LAZY 13378# define LT_DLLAZY_OR_NOW RTLD_LAZY 13379# else 13380# ifdef DL_LAZY 13381# define LT_DLLAZY_OR_NOW DL_LAZY 13382# else 13383# ifdef RTLD_NOW 13384# define LT_DLLAZY_OR_NOW RTLD_NOW 13385# else 13386# ifdef DL_NOW 13387# define LT_DLLAZY_OR_NOW DL_NOW 13388# else 13389# define LT_DLLAZY_OR_NOW 0 13390# endif 13391# endif 13392# endif 13393# endif 13394#endif 13395 13396/* When -fvisibility=hidden is used, assume the code has been annotated 13397 correspondingly for the symbols needed. */ 13398#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13399int fnord (void) __attribute__((visibility("default"))); 13400#endif 13401 13402int fnord (void) { return 42; } 13403int main (void) 13404{ 13405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13406 int status = $lt_dlunknown; 13407 13408 if (self) 13409 { 13410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13411 else 13412 { 13413 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13414 else puts (dlerror ()); 13415 } 13416 /* dlclose (self); */ 13417 } 13418 else 13419 puts (dlerror ()); 13420 13421 return status; 13422} 13423_LT_EOF 13424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13425 (eval $ac_link) 2>&5 13426 ac_status=$? 13427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13428 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13429 (./conftest; exit; ) >&5 2>/dev/null 13430 lt_status=$? 13431 case x$lt_status in 13432 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13433 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13434 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13435 esac 13436 else : 13437 # compilation failed 13438 lt_cv_dlopen_self_static=no 13439 fi 13440fi 13441rm -fr conftest* 13442 13443 ;; 13444esac 13445fi 13446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13447printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13448 fi 13449 13450 CPPFLAGS=$save_CPPFLAGS 13451 LDFLAGS=$save_LDFLAGS 13452 LIBS=$save_LIBS 13453 ;; 13454 esac 13455 13456 case $lt_cv_dlopen_self in 13457 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13458 *) enable_dlopen_self=unknown ;; 13459 esac 13460 13461 case $lt_cv_dlopen_self_static in 13462 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13463 *) enable_dlopen_self_static=unknown ;; 13464 esac 13465fi 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483striplib= 13484old_striplib= 13485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13486printf %s "checking whether stripping libraries is possible... " >&6; } 13487if test -z "$STRIP"; then 13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13489printf "%s\n" "no" >&6; } 13490else 13491 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13492 old_striplib="$STRIP --strip-debug" 13493 striplib="$STRIP --strip-unneeded" 13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13495printf "%s\n" "yes" >&6; } 13496 else 13497 case $host_os in 13498 darwin*) 13499 # FIXME - insert some real tests, host_os isn't really good enough 13500 striplib="$STRIP -x" 13501 old_striplib="$STRIP -S" 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13503printf "%s\n" "yes" >&6; } 13504 ;; 13505 freebsd*) 13506 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13507 old_striplib="$STRIP --strip-debug" 13508 striplib="$STRIP --strip-unneeded" 13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13510printf "%s\n" "yes" >&6; } 13511 else 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13513printf "%s\n" "no" >&6; } 13514 fi 13515 ;; 13516 *) 13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13518printf "%s\n" "no" >&6; } 13519 ;; 13520 esac 13521 fi 13522fi 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 # Report what library types will actually be built 13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13537printf %s "checking if libtool supports shared libraries... " >&6; } 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13539printf "%s\n" "$can_build_shared" >&6; } 13540 13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13542printf %s "checking whether to build shared libraries... " >&6; } 13543 test no = "$can_build_shared" && enable_shared=no 13544 13545 # On AIX, shared libraries and static libraries use the same namespace, and 13546 # are all built from PIC. 13547 case $host_os in 13548 aix3*) 13549 test yes = "$enable_shared" && enable_static=no 13550 if test -n "$RANLIB"; then 13551 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13552 postinstall_cmds='$RANLIB $lib' 13553 fi 13554 ;; 13555 13556 aix[4-9]*) 13557 if test ia64 != "$host_cpu"; then 13558 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13559 yes,aix,yes) ;; # shared object as lib.so file only 13560 yes,svr4,*) ;; # shared object as lib.so archive member only 13561 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13562 esac 13563 fi 13564 ;; 13565 esac 13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13567printf "%s\n" "$enable_shared" >&6; } 13568 13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13570printf %s "checking whether to build static libraries... " >&6; } 13571 # Make sure either enable_shared or enable_static is yes. 13572 test yes = "$enable_shared" || enable_static=yes 13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13574printf "%s\n" "$enable_static" >&6; } 13575 13576 13577 13578 13579fi 13580ac_ext=c 13581ac_cpp='$CPP $CPPFLAGS' 13582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13584ac_compiler_gnu=$ac_cv_c_compiler_gnu 13585 13586CC=$lt_save_CC 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 ac_config_commands="$ac_config_commands libtool" 13603 13604 13605 13606 13607# Only expand once: 13608 13609 13610 13611# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13624printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13625if test ${ac_cv_c_undeclared_builtin_options+y} 13626then : 13627 printf %s "(cached) " >&6 13628else case e in #( 13629 e) ac_save_CFLAGS=$CFLAGS 13630 ac_cv_c_undeclared_builtin_options='cannot detect' 13631 for ac_arg in '' -fno-builtin; do 13632 CFLAGS="$ac_save_CFLAGS $ac_arg" 13633 # This test program should *not* compile successfully. 13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13635/* end confdefs.h. */ 13636 13637int 13638main (void) 13639{ 13640(void) strchr; 13641 ; 13642 return 0; 13643} 13644_ACEOF 13645if ac_fn_c_try_compile "$LINENO" 13646then : 13647 13648else case e in #( 13649 e) # This test program should compile successfully. 13650 # No library function is consistently available on 13651 # freestanding implementations, so test against a dummy 13652 # declaration. Include always-available headers on the 13653 # off chance that they somehow elicit warnings. 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13655/* end confdefs.h. */ 13656#include <float.h> 13657#include <limits.h> 13658#include <stdarg.h> 13659#include <stddef.h> 13660extern void ac_decl (int, char *); 13661 13662int 13663main (void) 13664{ 13665(void) ac_decl (0, (char *) 0); 13666 (void) ac_decl; 13667 13668 ; 13669 return 0; 13670} 13671_ACEOF 13672if ac_fn_c_try_compile "$LINENO" 13673then : 13674 if test x"$ac_arg" = x 13675then : 13676 ac_cv_c_undeclared_builtin_options='none needed' 13677else case e in #( 13678 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13679esac 13680fi 13681 break 13682fi 13683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13684esac 13685fi 13686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13687 done 13688 CFLAGS=$ac_save_CFLAGS 13689 ;; 13690esac 13691fi 13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13693printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13694 case $ac_cv_c_undeclared_builtin_options in #( 13695 'cannot detect') : 13696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13697printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13698as_fn_error $? "cannot make $CC report undeclared builtins 13699See 'config.log' for more details" "$LINENO" 5; } ;; #( 13700 'none needed') : 13701 ac_c_undeclared_builtin_options='' ;; #( 13702 *) : 13703 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13704esac 13705 13706 13707 13708 13709 13710ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13711if test "x$ac_cv_have_decl___clang__" = xyes 13712then : 13713 CLANGCC="yes" 13714else case e in #( 13715 e) CLANGCC="no" ;; 13716esac 13717fi 13718ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13719if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13720then : 13721 INTELCC="yes" 13722else case e in #( 13723 e) INTELCC="no" ;; 13724esac 13725fi 13726ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13727if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13728then : 13729 SUNCC="yes" 13730else case e in #( 13731 e) SUNCC="no" ;; 13732esac 13733fi 13734 13735 13736 13737 13738 13739 13740 13741 13742if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13743 if test -n "$ac_tool_prefix"; then 13744 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13745set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13747printf %s "checking for $ac_word... " >&6; } 13748if test ${ac_cv_path_PKG_CONFIG+y} 13749then : 13750 printf %s "(cached) " >&6 13751else case e in #( 13752 e) case $PKG_CONFIG in 13753 [\\/]* | ?:[\\/]*) 13754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13755 ;; 13756 *) 13757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13758for as_dir in $PATH 13759do 13760 IFS=$as_save_IFS 13761 case $as_dir in #((( 13762 '') as_dir=./ ;; 13763 */) ;; 13764 *) as_dir=$as_dir/ ;; 13765 esac 13766 for ac_exec_ext in '' $ac_executable_extensions; do 13767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13768 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13770 break 2 13771 fi 13772done 13773 done 13774IFS=$as_save_IFS 13775 13776 ;; 13777esac ;; 13778esac 13779fi 13780PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13781if test -n "$PKG_CONFIG"; then 13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13783printf "%s\n" "$PKG_CONFIG" >&6; } 13784else 13785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13786printf "%s\n" "no" >&6; } 13787fi 13788 13789 13790fi 13791if test -z "$ac_cv_path_PKG_CONFIG"; then 13792 ac_pt_PKG_CONFIG=$PKG_CONFIG 13793 # Extract the first word of "pkg-config", so it can be a program name with args. 13794set dummy pkg-config; ac_word=$2 13795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13796printf %s "checking for $ac_word... " >&6; } 13797if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13798then : 13799 printf %s "(cached) " >&6 13800else case e in #( 13801 e) case $ac_pt_PKG_CONFIG in 13802 [\\/]* | ?:[\\/]*) 13803 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13804 ;; 13805 *) 13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13807for as_dir in $PATH 13808do 13809 IFS=$as_save_IFS 13810 case $as_dir in #((( 13811 '') as_dir=./ ;; 13812 */) ;; 13813 *) as_dir=$as_dir/ ;; 13814 esac 13815 for ac_exec_ext in '' $ac_executable_extensions; do 13816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13817 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13819 break 2 13820 fi 13821done 13822 done 13823IFS=$as_save_IFS 13824 13825 ;; 13826esac ;; 13827esac 13828fi 13829ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13830if test -n "$ac_pt_PKG_CONFIG"; then 13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13832printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13833else 13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835printf "%s\n" "no" >&6; } 13836fi 13837 13838 if test "x$ac_pt_PKG_CONFIG" = x; then 13839 PKG_CONFIG="" 13840 else 13841 case $cross_compiling:$ac_tool_warned in 13842yes:) 13843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13844printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13845ac_tool_warned=yes ;; 13846esac 13847 PKG_CONFIG=$ac_pt_PKG_CONFIG 13848 fi 13849else 13850 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13851fi 13852 13853fi 13854if test -n "$PKG_CONFIG"; then 13855 _pkg_min_version=0.9.0 13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13857printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13858 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13860printf "%s\n" "yes" >&6; } 13861 else 13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13863printf "%s\n" "no" >&6; } 13864 PKG_CONFIG="" 13865 fi 13866fi 13867 13868 13869 13870 13871 13872# Check whether --enable-selective-werror was given. 13873if test ${enable_selective_werror+y} 13874then : 13875 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13876else case e in #( 13877 e) SELECTIVE_WERROR=yes ;; 13878esac 13879fi 13880 13881 13882 13883 13884 13885# -v is too short to test reliably with XORG_TESTSET_CFLAG 13886if test "x$SUNCC" = "xyes"; then 13887 BASE_CFLAGS="-v" 13888else 13889 BASE_CFLAGS="" 13890fi 13891 13892# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906xorg_testset_save_CFLAGS="$CFLAGS" 13907 13908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13912if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13913then : 13914 printf %s "(cached) " >&6 13915else case e in #( 13916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13917/* end confdefs.h. */ 13918int i; 13919_ACEOF 13920if ac_fn_c_try_compile "$LINENO" 13921then : 13922 xorg_cv_cc_flag_unknown_warning_option=yes 13923else case e in #( 13924 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13925esac 13926fi 13927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13928esac 13929fi 13930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13933 CFLAGS="$xorg_testset_save_CFLAGS" 13934fi 13935 13936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13939 fi 13940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13943if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13944then : 13945 printf %s "(cached) " >&6 13946else case e in #( 13947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13948/* end confdefs.h. */ 13949int i; 13950_ACEOF 13951if ac_fn_c_try_compile "$LINENO" 13952then : 13953 xorg_cv_cc_flag_unused_command_line_argument=yes 13954else case e in #( 13955 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13956esac 13957fi 13958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13959esac 13960fi 13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13964 CFLAGS="$xorg_testset_save_CFLAGS" 13965fi 13966 13967found="no" 13968 13969 if test $found = "no" ; then 13970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 fi 13973 13974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13976 fi 13977 13978 CFLAGS="$CFLAGS -Wall" 13979 13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13981printf %s "checking if $CC supports -Wall... " >&6; } 13982 cacheid=xorg_cv_cc_flag__Wall 13983 if eval test \${$cacheid+y} 13984then : 13985 printf %s "(cached) " >&6 13986else case e in #( 13987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989int i; 13990int 13991main (void) 13992{ 13993 13994 ; 13995 return 0; 13996} 13997_ACEOF 13998if ac_fn_c_try_link "$LINENO" 13999then : 14000 eval $cacheid=yes 14001else case e in #( 14002 e) eval $cacheid=no ;; 14003esac 14004fi 14005rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14006 conftest$ac_exeext conftest.$ac_ext ;; 14007esac 14008fi 14009 14010 14011 CFLAGS="$xorg_testset_save_CFLAGS" 14012 14013 eval supported=\$$cacheid 14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14015printf "%s\n" "$supported" >&6; } 14016 if test "$supported" = "yes" ; then 14017 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14018 found="yes" 14019 fi 14020 fi 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036xorg_testset_save_CFLAGS="$CFLAGS" 14037 14038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14042if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14043then : 14044 printf %s "(cached) " >&6 14045else case e in #( 14046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047/* end confdefs.h. */ 14048int i; 14049_ACEOF 14050if ac_fn_c_try_compile "$LINENO" 14051then : 14052 xorg_cv_cc_flag_unknown_warning_option=yes 14053else case e in #( 14054 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14055esac 14056fi 14057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14058esac 14059fi 14060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064fi 14065 14066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14069 fi 14070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14073if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14074then : 14075 printf %s "(cached) " >&6 14076else case e in #( 14077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14078/* end confdefs.h. */ 14079int i; 14080_ACEOF 14081if ac_fn_c_try_compile "$LINENO" 14082then : 14083 xorg_cv_cc_flag_unused_command_line_argument=yes 14084else case e in #( 14085 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14086esac 14087fi 14088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14089esac 14090fi 14091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14094 CFLAGS="$xorg_testset_save_CFLAGS" 14095fi 14096 14097found="no" 14098 14099 if test $found = "no" ; then 14100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14102 fi 14103 14104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14106 fi 14107 14108 CFLAGS="$CFLAGS -Wpointer-arith" 14109 14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14111printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14112 cacheid=xorg_cv_cc_flag__Wpointer_arith 14113 if eval test \${$cacheid+y} 14114then : 14115 printf %s "(cached) " >&6 14116else case e in #( 14117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14118/* end confdefs.h. */ 14119int i; 14120int 14121main (void) 14122{ 14123 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128if ac_fn_c_try_link "$LINENO" 14129then : 14130 eval $cacheid=yes 14131else case e in #( 14132 e) eval $cacheid=no ;; 14133esac 14134fi 14135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14136 conftest$ac_exeext conftest.$ac_ext ;; 14137esac 14138fi 14139 14140 14141 CFLAGS="$xorg_testset_save_CFLAGS" 14142 14143 eval supported=\$$cacheid 14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14145printf "%s\n" "$supported" >&6; } 14146 if test "$supported" = "yes" ; then 14147 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14148 found="yes" 14149 fi 14150 fi 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166xorg_testset_save_CFLAGS="$CFLAGS" 14167 14168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14172if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14173then : 14174 printf %s "(cached) " >&6 14175else case e in #( 14176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177/* end confdefs.h. */ 14178int i; 14179_ACEOF 14180if ac_fn_c_try_compile "$LINENO" 14181then : 14182 xorg_cv_cc_flag_unknown_warning_option=yes 14183else case e in #( 14184 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14185esac 14186fi 14187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14188esac 14189fi 14190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14193 CFLAGS="$xorg_testset_save_CFLAGS" 14194fi 14195 14196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14199 fi 14200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14203if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14204then : 14205 printf %s "(cached) " >&6 14206else case e in #( 14207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209int i; 14210_ACEOF 14211if ac_fn_c_try_compile "$LINENO" 14212then : 14213 xorg_cv_cc_flag_unused_command_line_argument=yes 14214else case e in #( 14215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14216esac 14217fi 14218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14219esac 14220fi 14221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14224 CFLAGS="$xorg_testset_save_CFLAGS" 14225fi 14226 14227found="no" 14228 14229 if test $found = "no" ; then 14230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14232 fi 14233 14234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14236 fi 14237 14238 CFLAGS="$CFLAGS -Wmissing-declarations" 14239 14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14241printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14242 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14243 if eval test \${$cacheid+y} 14244then : 14245 printf %s "(cached) " >&6 14246else case e in #( 14247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14248/* end confdefs.h. */ 14249int i; 14250int 14251main (void) 14252{ 14253 14254 ; 14255 return 0; 14256} 14257_ACEOF 14258if ac_fn_c_try_link "$LINENO" 14259then : 14260 eval $cacheid=yes 14261else case e in #( 14262 e) eval $cacheid=no ;; 14263esac 14264fi 14265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14266 conftest$ac_exeext conftest.$ac_ext ;; 14267esac 14268fi 14269 14270 14271 CFLAGS="$xorg_testset_save_CFLAGS" 14272 14273 eval supported=\$$cacheid 14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14275printf "%s\n" "$supported" >&6; } 14276 if test "$supported" = "yes" ; then 14277 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14278 found="yes" 14279 fi 14280 fi 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296xorg_testset_save_CFLAGS="$CFLAGS" 14297 14298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14302if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14303then : 14304 printf %s "(cached) " >&6 14305else case e in #( 14306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307/* end confdefs.h. */ 14308int i; 14309_ACEOF 14310if ac_fn_c_try_compile "$LINENO" 14311then : 14312 xorg_cv_cc_flag_unknown_warning_option=yes 14313else case e in #( 14314 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14315esac 14316fi 14317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14318esac 14319fi 14320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14323 CFLAGS="$xorg_testset_save_CFLAGS" 14324fi 14325 14326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14329 fi 14330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14333if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14334then : 14335 printf %s "(cached) " >&6 14336else case e in #( 14337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14338/* end confdefs.h. */ 14339int i; 14340_ACEOF 14341if ac_fn_c_try_compile "$LINENO" 14342then : 14343 xorg_cv_cc_flag_unused_command_line_argument=yes 14344else case e in #( 14345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14346esac 14347fi 14348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14349esac 14350fi 14351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14354 CFLAGS="$xorg_testset_save_CFLAGS" 14355fi 14356 14357found="no" 14358 14359 if test $found = "no" ; then 14360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14362 fi 14363 14364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14366 fi 14367 14368 CFLAGS="$CFLAGS -Wformat=2" 14369 14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14371printf %s "checking if $CC supports -Wformat=2... " >&6; } 14372 cacheid=xorg_cv_cc_flag__Wformat_2 14373 if eval test \${$cacheid+y} 14374then : 14375 printf %s "(cached) " >&6 14376else case e in #( 14377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14378/* end confdefs.h. */ 14379int i; 14380int 14381main (void) 14382{ 14383 14384 ; 14385 return 0; 14386} 14387_ACEOF 14388if ac_fn_c_try_link "$LINENO" 14389then : 14390 eval $cacheid=yes 14391else case e in #( 14392 e) eval $cacheid=no ;; 14393esac 14394fi 14395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14396 conftest$ac_exeext conftest.$ac_ext ;; 14397esac 14398fi 14399 14400 14401 CFLAGS="$xorg_testset_save_CFLAGS" 14402 14403 eval supported=\$$cacheid 14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14405printf "%s\n" "$supported" >&6; } 14406 if test "$supported" = "yes" ; then 14407 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14408 found="yes" 14409 fi 14410 fi 14411 14412 if test $found = "no" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 14417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14419 fi 14420 14421 CFLAGS="$CFLAGS -Wformat" 14422 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14424printf %s "checking if $CC supports -Wformat... " >&6; } 14425 cacheid=xorg_cv_cc_flag__Wformat 14426 if eval test \${$cacheid+y} 14427then : 14428 printf %s "(cached) " >&6 14429else case e in #( 14430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14431/* end confdefs.h. */ 14432int i; 14433int 14434main (void) 14435{ 14436 14437 ; 14438 return 0; 14439} 14440_ACEOF 14441if ac_fn_c_try_link "$LINENO" 14442then : 14443 eval $cacheid=yes 14444else case e in #( 14445 e) eval $cacheid=no ;; 14446esac 14447fi 14448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14449 conftest$ac_exeext conftest.$ac_ext ;; 14450esac 14451fi 14452 14453 14454 CFLAGS="$xorg_testset_save_CFLAGS" 14455 14456 eval supported=\$$cacheid 14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14458printf "%s\n" "$supported" >&6; } 14459 if test "$supported" = "yes" ; then 14460 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14461 found="yes" 14462 fi 14463 fi 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481xorg_testset_save_CFLAGS="$CFLAGS" 14482 14483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14487if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14488then : 14489 printf %s "(cached) " >&6 14490else case e in #( 14491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14492/* end confdefs.h. */ 14493int i; 14494_ACEOF 14495if ac_fn_c_try_compile "$LINENO" 14496then : 14497 xorg_cv_cc_flag_unknown_warning_option=yes 14498else case e in #( 14499 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14500esac 14501fi 14502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14503esac 14504fi 14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14508 CFLAGS="$xorg_testset_save_CFLAGS" 14509fi 14510 14511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14514 fi 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14518if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14519then : 14520 printf %s "(cached) " >&6 14521else case e in #( 14522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524int i; 14525_ACEOF 14526if ac_fn_c_try_compile "$LINENO" 14527then : 14528 xorg_cv_cc_flag_unused_command_line_argument=yes 14529else case e in #( 14530 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14531esac 14532fi 14533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14534esac 14535fi 14536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14539 CFLAGS="$xorg_testset_save_CFLAGS" 14540fi 14541 14542found="no" 14543 14544 if test $found = "no" ; then 14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14547 fi 14548 14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14551 fi 14552 14553 CFLAGS="$CFLAGS -Wstrict-prototypes" 14554 14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14556printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14557 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14558 if eval test \${$cacheid+y} 14559then : 14560 printf %s "(cached) " >&6 14561else case e in #( 14562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564int i; 14565int 14566main (void) 14567{ 14568 14569 ; 14570 return 0; 14571} 14572_ACEOF 14573if ac_fn_c_try_link "$LINENO" 14574then : 14575 eval $cacheid=yes 14576else case e in #( 14577 e) eval $cacheid=no ;; 14578esac 14579fi 14580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14581 conftest$ac_exeext conftest.$ac_ext ;; 14582esac 14583fi 14584 14585 14586 CFLAGS="$xorg_testset_save_CFLAGS" 14587 14588 eval supported=\$$cacheid 14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14590printf "%s\n" "$supported" >&6; } 14591 if test "$supported" = "yes" ; then 14592 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14593 found="yes" 14594 fi 14595 fi 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611xorg_testset_save_CFLAGS="$CFLAGS" 14612 14613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14617if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14618then : 14619 printf %s "(cached) " >&6 14620else case e in #( 14621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14622/* end confdefs.h. */ 14623int i; 14624_ACEOF 14625if ac_fn_c_try_compile "$LINENO" 14626then : 14627 xorg_cv_cc_flag_unknown_warning_option=yes 14628else case e in #( 14629 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14630esac 14631fi 14632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14633esac 14634fi 14635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14638 CFLAGS="$xorg_testset_save_CFLAGS" 14639fi 14640 14641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14644 fi 14645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14649then : 14650 printf %s "(cached) " >&6 14651else case e in #( 14652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653/* end confdefs.h. */ 14654int i; 14655_ACEOF 14656if ac_fn_c_try_compile "$LINENO" 14657then : 14658 xorg_cv_cc_flag_unused_command_line_argument=yes 14659else case e in #( 14660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14661esac 14662fi 14663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14664esac 14665fi 14666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14669 CFLAGS="$xorg_testset_save_CFLAGS" 14670fi 14671 14672found="no" 14673 14674 if test $found = "no" ; then 14675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14677 fi 14678 14679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14681 fi 14682 14683 CFLAGS="$CFLAGS -Wmissing-prototypes" 14684 14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14686printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14687 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14688 if eval test \${$cacheid+y} 14689then : 14690 printf %s "(cached) " >&6 14691else case e in #( 14692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14693/* end confdefs.h. */ 14694int i; 14695int 14696main (void) 14697{ 14698 14699 ; 14700 return 0; 14701} 14702_ACEOF 14703if ac_fn_c_try_link "$LINENO" 14704then : 14705 eval $cacheid=yes 14706else case e in #( 14707 e) eval $cacheid=no ;; 14708esac 14709fi 14710rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14711 conftest$ac_exeext conftest.$ac_ext ;; 14712esac 14713fi 14714 14715 14716 CFLAGS="$xorg_testset_save_CFLAGS" 14717 14718 eval supported=\$$cacheid 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14720printf "%s\n" "$supported" >&6; } 14721 if test "$supported" = "yes" ; then 14722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14723 found="yes" 14724 fi 14725 fi 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741xorg_testset_save_CFLAGS="$CFLAGS" 14742 14743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14747if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14748then : 14749 printf %s "(cached) " >&6 14750else case e in #( 14751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14752/* end confdefs.h. */ 14753int i; 14754_ACEOF 14755if ac_fn_c_try_compile "$LINENO" 14756then : 14757 xorg_cv_cc_flag_unknown_warning_option=yes 14758else case e in #( 14759 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14760esac 14761fi 14762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14763esac 14764fi 14765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14768 CFLAGS="$xorg_testset_save_CFLAGS" 14769fi 14770 14771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14774 fi 14775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14778if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14779then : 14780 printf %s "(cached) " >&6 14781else case e in #( 14782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784int i; 14785_ACEOF 14786if ac_fn_c_try_compile "$LINENO" 14787then : 14788 xorg_cv_cc_flag_unused_command_line_argument=yes 14789else case e in #( 14790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14791esac 14792fi 14793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14794esac 14795fi 14796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14799 CFLAGS="$xorg_testset_save_CFLAGS" 14800fi 14801 14802found="no" 14803 14804 if test $found = "no" ; then 14805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14807 fi 14808 14809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14811 fi 14812 14813 CFLAGS="$CFLAGS -Wnested-externs" 14814 14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14816printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14817 cacheid=xorg_cv_cc_flag__Wnested_externs 14818 if eval test \${$cacheid+y} 14819then : 14820 printf %s "(cached) " >&6 14821else case e in #( 14822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823/* end confdefs.h. */ 14824int i; 14825int 14826main (void) 14827{ 14828 14829 ; 14830 return 0; 14831} 14832_ACEOF 14833if ac_fn_c_try_link "$LINENO" 14834then : 14835 eval $cacheid=yes 14836else case e in #( 14837 e) eval $cacheid=no ;; 14838esac 14839fi 14840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14841 conftest$ac_exeext conftest.$ac_ext ;; 14842esac 14843fi 14844 14845 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847 14848 eval supported=\$$cacheid 14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14850printf "%s\n" "$supported" >&6; } 14851 if test "$supported" = "yes" ; then 14852 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14853 found="yes" 14854 fi 14855 fi 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871xorg_testset_save_CFLAGS="$CFLAGS" 14872 14873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14877if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14878then : 14879 printf %s "(cached) " >&6 14880else case e in #( 14881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882/* end confdefs.h. */ 14883int i; 14884_ACEOF 14885if ac_fn_c_try_compile "$LINENO" 14886then : 14887 xorg_cv_cc_flag_unknown_warning_option=yes 14888else case e in #( 14889 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14890esac 14891fi 14892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14893esac 14894fi 14895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14898 CFLAGS="$xorg_testset_save_CFLAGS" 14899fi 14900 14901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 fi 14905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14909then : 14910 printf %s "(cached) " >&6 14911else case e in #( 14912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14913/* end confdefs.h. */ 14914int i; 14915_ACEOF 14916if ac_fn_c_try_compile "$LINENO" 14917then : 14918 xorg_cv_cc_flag_unused_command_line_argument=yes 14919else case e in #( 14920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14921esac 14922fi 14923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14924esac 14925fi 14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14929 CFLAGS="$xorg_testset_save_CFLAGS" 14930fi 14931 14932found="no" 14933 14934 if test $found = "no" ; then 14935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14937 fi 14938 14939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14941 fi 14942 14943 CFLAGS="$CFLAGS -Wbad-function-cast" 14944 14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14946printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14947 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14948 if eval test \${$cacheid+y} 14949then : 14950 printf %s "(cached) " >&6 14951else case e in #( 14952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953/* end confdefs.h. */ 14954int i; 14955int 14956main (void) 14957{ 14958 14959 ; 14960 return 0; 14961} 14962_ACEOF 14963if ac_fn_c_try_link "$LINENO" 14964then : 14965 eval $cacheid=yes 14966else case e in #( 14967 e) eval $cacheid=no ;; 14968esac 14969fi 14970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14971 conftest$ac_exeext conftest.$ac_ext ;; 14972esac 14973fi 14974 14975 14976 CFLAGS="$xorg_testset_save_CFLAGS" 14977 14978 eval supported=\$$cacheid 14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14980printf "%s\n" "$supported" >&6; } 14981 if test "$supported" = "yes" ; then 14982 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14983 found="yes" 14984 fi 14985 fi 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001xorg_testset_save_CFLAGS="$CFLAGS" 15002 15003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15007if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15008then : 15009 printf %s "(cached) " >&6 15010else case e in #( 15011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012/* end confdefs.h. */ 15013int i; 15014_ACEOF 15015if ac_fn_c_try_compile "$LINENO" 15016then : 15017 xorg_cv_cc_flag_unknown_warning_option=yes 15018else case e in #( 15019 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15020esac 15021fi 15022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15023esac 15024fi 15025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15028 CFLAGS="$xorg_testset_save_CFLAGS" 15029fi 15030 15031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 fi 15035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15038if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15039then : 15040 printf %s "(cached) " >&6 15041else case e in #( 15042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15043/* end confdefs.h. */ 15044int i; 15045_ACEOF 15046if ac_fn_c_try_compile "$LINENO" 15047then : 15048 xorg_cv_cc_flag_unused_command_line_argument=yes 15049else case e in #( 15050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15051esac 15052fi 15053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15054esac 15055fi 15056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15059 CFLAGS="$xorg_testset_save_CFLAGS" 15060fi 15061 15062found="no" 15063 15064 if test $found = "no" ; then 15065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15067 fi 15068 15069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15071 fi 15072 15073 CFLAGS="$CFLAGS -Wold-style-definition" 15074 15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15076printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15077 cacheid=xorg_cv_cc_flag__Wold_style_definition 15078 if eval test \${$cacheid+y} 15079then : 15080 printf %s "(cached) " >&6 15081else case e in #( 15082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15083/* end confdefs.h. */ 15084int i; 15085int 15086main (void) 15087{ 15088 15089 ; 15090 return 0; 15091} 15092_ACEOF 15093if ac_fn_c_try_link "$LINENO" 15094then : 15095 eval $cacheid=yes 15096else case e in #( 15097 e) eval $cacheid=no ;; 15098esac 15099fi 15100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15101 conftest$ac_exeext conftest.$ac_ext ;; 15102esac 15103fi 15104 15105 15106 CFLAGS="$xorg_testset_save_CFLAGS" 15107 15108 eval supported=\$$cacheid 15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15110printf "%s\n" "$supported" >&6; } 15111 if test "$supported" = "yes" ; then 15112 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15113 found="yes" 15114 fi 15115 fi 15116 15117 if test $found = "no" ; then 15118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15120 fi 15121 15122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15124 fi 15125 15126 CFLAGS="$CFLAGS -fd" 15127 15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15129printf %s "checking if $CC supports -fd... " >&6; } 15130 cacheid=xorg_cv_cc_flag__fd 15131 if eval test \${$cacheid+y} 15132then : 15133 printf %s "(cached) " >&6 15134else case e in #( 15135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15136/* end confdefs.h. */ 15137int i; 15138int 15139main (void) 15140{ 15141 15142 ; 15143 return 0; 15144} 15145_ACEOF 15146if ac_fn_c_try_link "$LINENO" 15147then : 15148 eval $cacheid=yes 15149else case e in #( 15150 e) eval $cacheid=no ;; 15151esac 15152fi 15153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15154 conftest$ac_exeext conftest.$ac_ext ;; 15155esac 15156fi 15157 15158 15159 CFLAGS="$xorg_testset_save_CFLAGS" 15160 15161 eval supported=\$$cacheid 15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15163printf "%s\n" "$supported" >&6; } 15164 if test "$supported" = "yes" ; then 15165 BASE_CFLAGS="$BASE_CFLAGS -fd" 15166 found="yes" 15167 fi 15168 fi 15169 15170 15171 15172 15173 15174# This chunk adds additional warnings that could catch undesired effects. 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188xorg_testset_save_CFLAGS="$CFLAGS" 15189 15190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15194if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15195then : 15196 printf %s "(cached) " >&6 15197else case e in #( 15198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199/* end confdefs.h. */ 15200int i; 15201_ACEOF 15202if ac_fn_c_try_compile "$LINENO" 15203then : 15204 xorg_cv_cc_flag_unknown_warning_option=yes 15205else case e in #( 15206 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15207esac 15208fi 15209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15210esac 15211fi 15212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15215 CFLAGS="$xorg_testset_save_CFLAGS" 15216fi 15217 15218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15221 fi 15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15225if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15226then : 15227 printf %s "(cached) " >&6 15228else case e in #( 15229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230/* end confdefs.h. */ 15231int i; 15232_ACEOF 15233if ac_fn_c_try_compile "$LINENO" 15234then : 15235 xorg_cv_cc_flag_unused_command_line_argument=yes 15236else case e in #( 15237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15238esac 15239fi 15240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15241esac 15242fi 15243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15246 CFLAGS="$xorg_testset_save_CFLAGS" 15247fi 15248 15249found="no" 15250 15251 if test $found = "no" ; then 15252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15254 fi 15255 15256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15258 fi 15259 15260 CFLAGS="$CFLAGS -Wunused" 15261 15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15263printf %s "checking if $CC supports -Wunused... " >&6; } 15264 cacheid=xorg_cv_cc_flag__Wunused 15265 if eval test \${$cacheid+y} 15266then : 15267 printf %s "(cached) " >&6 15268else case e in #( 15269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15270/* end confdefs.h. */ 15271int i; 15272int 15273main (void) 15274{ 15275 15276 ; 15277 return 0; 15278} 15279_ACEOF 15280if ac_fn_c_try_link "$LINENO" 15281then : 15282 eval $cacheid=yes 15283else case e in #( 15284 e) eval $cacheid=no ;; 15285esac 15286fi 15287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15288 conftest$ac_exeext conftest.$ac_ext ;; 15289esac 15290fi 15291 15292 15293 CFLAGS="$xorg_testset_save_CFLAGS" 15294 15295 eval supported=\$$cacheid 15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15297printf "%s\n" "$supported" >&6; } 15298 if test "$supported" = "yes" ; then 15299 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15300 found="yes" 15301 fi 15302 fi 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318xorg_testset_save_CFLAGS="$CFLAGS" 15319 15320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15325then : 15326 printf %s "(cached) " >&6 15327else case e in #( 15328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329/* end confdefs.h. */ 15330int i; 15331_ACEOF 15332if ac_fn_c_try_compile "$LINENO" 15333then : 15334 xorg_cv_cc_flag_unknown_warning_option=yes 15335else case e in #( 15336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15337esac 15338fi 15339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15340esac 15341fi 15342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15345 CFLAGS="$xorg_testset_save_CFLAGS" 15346fi 15347 15348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15351 fi 15352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15356then : 15357 printf %s "(cached) " >&6 15358else case e in #( 15359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360/* end confdefs.h. */ 15361int i; 15362_ACEOF 15363if ac_fn_c_try_compile "$LINENO" 15364then : 15365 xorg_cv_cc_flag_unused_command_line_argument=yes 15366else case e in #( 15367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15368esac 15369fi 15370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15371esac 15372fi 15373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15376 CFLAGS="$xorg_testset_save_CFLAGS" 15377fi 15378 15379found="no" 15380 15381 if test $found = "no" ; then 15382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15384 fi 15385 15386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15388 fi 15389 15390 CFLAGS="$CFLAGS -Wuninitialized" 15391 15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15393printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15394 cacheid=xorg_cv_cc_flag__Wuninitialized 15395 if eval test \${$cacheid+y} 15396then : 15397 printf %s "(cached) " >&6 15398else case e in #( 15399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15400/* end confdefs.h. */ 15401int i; 15402int 15403main (void) 15404{ 15405 15406 ; 15407 return 0; 15408} 15409_ACEOF 15410if ac_fn_c_try_link "$LINENO" 15411then : 15412 eval $cacheid=yes 15413else case e in #( 15414 e) eval $cacheid=no ;; 15415esac 15416fi 15417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15418 conftest$ac_exeext conftest.$ac_ext ;; 15419esac 15420fi 15421 15422 15423 CFLAGS="$xorg_testset_save_CFLAGS" 15424 15425 eval supported=\$$cacheid 15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15427printf "%s\n" "$supported" >&6; } 15428 if test "$supported" = "yes" ; then 15429 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15430 found="yes" 15431 fi 15432 fi 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448xorg_testset_save_CFLAGS="$CFLAGS" 15449 15450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15454if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15455then : 15456 printf %s "(cached) " >&6 15457else case e in #( 15458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459/* end confdefs.h. */ 15460int i; 15461_ACEOF 15462if ac_fn_c_try_compile "$LINENO" 15463then : 15464 xorg_cv_cc_flag_unknown_warning_option=yes 15465else case e in #( 15466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15467esac 15468fi 15469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15470esac 15471fi 15472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15475 CFLAGS="$xorg_testset_save_CFLAGS" 15476fi 15477 15478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15481 fi 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15485if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15486then : 15487 printf %s "(cached) " >&6 15488else case e in #( 15489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15490/* end confdefs.h. */ 15491int i; 15492_ACEOF 15493if ac_fn_c_try_compile "$LINENO" 15494then : 15495 xorg_cv_cc_flag_unused_command_line_argument=yes 15496else case e in #( 15497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15498esac 15499fi 15500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15501esac 15502fi 15503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15504printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15506 CFLAGS="$xorg_testset_save_CFLAGS" 15507fi 15508 15509found="no" 15510 15511 if test $found = "no" ; then 15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15514 fi 15515 15516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15518 fi 15519 15520 CFLAGS="$CFLAGS -Wshadow" 15521 15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15523printf %s "checking if $CC supports -Wshadow... " >&6; } 15524 cacheid=xorg_cv_cc_flag__Wshadow 15525 if eval test \${$cacheid+y} 15526then : 15527 printf %s "(cached) " >&6 15528else case e in #( 15529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15530/* end confdefs.h. */ 15531int i; 15532int 15533main (void) 15534{ 15535 15536 ; 15537 return 0; 15538} 15539_ACEOF 15540if ac_fn_c_try_link "$LINENO" 15541then : 15542 eval $cacheid=yes 15543else case e in #( 15544 e) eval $cacheid=no ;; 15545esac 15546fi 15547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15548 conftest$ac_exeext conftest.$ac_ext ;; 15549esac 15550fi 15551 15552 15553 CFLAGS="$xorg_testset_save_CFLAGS" 15554 15555 eval supported=\$$cacheid 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15557printf "%s\n" "$supported" >&6; } 15558 if test "$supported" = "yes" ; then 15559 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15560 found="yes" 15561 fi 15562 fi 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578xorg_testset_save_CFLAGS="$CFLAGS" 15579 15580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15584if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15585then : 15586 printf %s "(cached) " >&6 15587else case e in #( 15588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590int i; 15591_ACEOF 15592if ac_fn_c_try_compile "$LINENO" 15593then : 15594 xorg_cv_cc_flag_unknown_warning_option=yes 15595else case e in #( 15596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15597esac 15598fi 15599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15600esac 15601fi 15602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15605 CFLAGS="$xorg_testset_save_CFLAGS" 15606fi 15607 15608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15611 fi 15612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15615if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15616then : 15617 printf %s "(cached) " >&6 15618else case e in #( 15619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621int i; 15622_ACEOF 15623if ac_fn_c_try_compile "$LINENO" 15624then : 15625 xorg_cv_cc_flag_unused_command_line_argument=yes 15626else case e in #( 15627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15628esac 15629fi 15630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15631esac 15632fi 15633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15636 CFLAGS="$xorg_testset_save_CFLAGS" 15637fi 15638 15639found="no" 15640 15641 if test $found = "no" ; then 15642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15644 fi 15645 15646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15648 fi 15649 15650 CFLAGS="$CFLAGS -Wmissing-noreturn" 15651 15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15653printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15654 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15655 if eval test \${$cacheid+y} 15656then : 15657 printf %s "(cached) " >&6 15658else case e in #( 15659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660/* end confdefs.h. */ 15661int i; 15662int 15663main (void) 15664{ 15665 15666 ; 15667 return 0; 15668} 15669_ACEOF 15670if ac_fn_c_try_link "$LINENO" 15671then : 15672 eval $cacheid=yes 15673else case e in #( 15674 e) eval $cacheid=no ;; 15675esac 15676fi 15677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15678 conftest$ac_exeext conftest.$ac_ext ;; 15679esac 15680fi 15681 15682 15683 CFLAGS="$xorg_testset_save_CFLAGS" 15684 15685 eval supported=\$$cacheid 15686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15687printf "%s\n" "$supported" >&6; } 15688 if test "$supported" = "yes" ; then 15689 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15690 found="yes" 15691 fi 15692 fi 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708xorg_testset_save_CFLAGS="$CFLAGS" 15709 15710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15714if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15715then : 15716 printf %s "(cached) " >&6 15717else case e in #( 15718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15719/* end confdefs.h. */ 15720int i; 15721_ACEOF 15722if ac_fn_c_try_compile "$LINENO" 15723then : 15724 xorg_cv_cc_flag_unknown_warning_option=yes 15725else case e in #( 15726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15727esac 15728fi 15729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15730esac 15731fi 15732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15735 CFLAGS="$xorg_testset_save_CFLAGS" 15736fi 15737 15738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15741 fi 15742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15745if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15746then : 15747 printf %s "(cached) " >&6 15748else case e in #( 15749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750/* end confdefs.h. */ 15751int i; 15752_ACEOF 15753if ac_fn_c_try_compile "$LINENO" 15754then : 15755 xorg_cv_cc_flag_unused_command_line_argument=yes 15756else case e in #( 15757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15758esac 15759fi 15760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15761esac 15762fi 15763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15766 CFLAGS="$xorg_testset_save_CFLAGS" 15767fi 15768 15769found="no" 15770 15771 if test $found = "no" ; then 15772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15774 fi 15775 15776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15778 fi 15779 15780 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15781 15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15783printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15784 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15785 if eval test \${$cacheid+y} 15786then : 15787 printf %s "(cached) " >&6 15788else case e in #( 15789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790/* end confdefs.h. */ 15791int i; 15792int 15793main (void) 15794{ 15795 15796 ; 15797 return 0; 15798} 15799_ACEOF 15800if ac_fn_c_try_link "$LINENO" 15801then : 15802 eval $cacheid=yes 15803else case e in #( 15804 e) eval $cacheid=no ;; 15805esac 15806fi 15807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15808 conftest$ac_exeext conftest.$ac_ext ;; 15809esac 15810fi 15811 15812 15813 CFLAGS="$xorg_testset_save_CFLAGS" 15814 15815 eval supported=\$$cacheid 15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15817printf "%s\n" "$supported" >&6; } 15818 if test "$supported" = "yes" ; then 15819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15820 found="yes" 15821 fi 15822 fi 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838xorg_testset_save_CFLAGS="$CFLAGS" 15839 15840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15844if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15845then : 15846 printf %s "(cached) " >&6 15847else case e in #( 15848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15849/* end confdefs.h. */ 15850int i; 15851_ACEOF 15852if ac_fn_c_try_compile "$LINENO" 15853then : 15854 xorg_cv_cc_flag_unknown_warning_option=yes 15855else case e in #( 15856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15857esac 15858fi 15859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15860esac 15861fi 15862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15865 CFLAGS="$xorg_testset_save_CFLAGS" 15866fi 15867 15868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15871 fi 15872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15876then : 15877 printf %s "(cached) " >&6 15878else case e in #( 15879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881int i; 15882_ACEOF 15883if ac_fn_c_try_compile "$LINENO" 15884then : 15885 xorg_cv_cc_flag_unused_command_line_argument=yes 15886else case e in #( 15887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15888esac 15889fi 15890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15891esac 15892fi 15893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15896 CFLAGS="$xorg_testset_save_CFLAGS" 15897fi 15898 15899found="no" 15900 15901 if test $found = "no" ; then 15902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15904 fi 15905 15906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15908 fi 15909 15910 CFLAGS="$CFLAGS -Wredundant-decls" 15911 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15913printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15914 cacheid=xorg_cv_cc_flag__Wredundant_decls 15915 if eval test \${$cacheid+y} 15916then : 15917 printf %s "(cached) " >&6 15918else case e in #( 15919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15920/* end confdefs.h. */ 15921int i; 15922int 15923main (void) 15924{ 15925 15926 ; 15927 return 0; 15928} 15929_ACEOF 15930if ac_fn_c_try_link "$LINENO" 15931then : 15932 eval $cacheid=yes 15933else case e in #( 15934 e) eval $cacheid=no ;; 15935esac 15936fi 15937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15938 conftest$ac_exeext conftest.$ac_ext ;; 15939esac 15940fi 15941 15942 15943 CFLAGS="$xorg_testset_save_CFLAGS" 15944 15945 eval supported=\$$cacheid 15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15947printf "%s\n" "$supported" >&6; } 15948 if test "$supported" = "yes" ; then 15949 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15950 found="yes" 15951 fi 15952 fi 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968xorg_testset_save_CFLAGS="$CFLAGS" 15969 15970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15975then : 15976 printf %s "(cached) " >&6 15977else case e in #( 15978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15979/* end confdefs.h. */ 15980int i; 15981_ACEOF 15982if ac_fn_c_try_compile "$LINENO" 15983then : 15984 xorg_cv_cc_flag_unknown_warning_option=yes 15985else case e in #( 15986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15987esac 15988fi 15989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15990esac 15991fi 15992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15995 CFLAGS="$xorg_testset_save_CFLAGS" 15996fi 15997 15998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16001 fi 16002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16006then : 16007 printf %s "(cached) " >&6 16008else case e in #( 16009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16010/* end confdefs.h. */ 16011int i; 16012_ACEOF 16013if ac_fn_c_try_compile "$LINENO" 16014then : 16015 xorg_cv_cc_flag_unused_command_line_argument=yes 16016else case e in #( 16017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16018esac 16019fi 16020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16021esac 16022fi 16023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027fi 16028 16029found="no" 16030 16031 if test $found = "no" ; then 16032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16034 fi 16035 16036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16038 fi 16039 16040 CFLAGS="$CFLAGS -Wlogical-op" 16041 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16043printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16044 cacheid=xorg_cv_cc_flag__Wlogical_op 16045 if eval test \${$cacheid+y} 16046then : 16047 printf %s "(cached) " >&6 16048else case e in #( 16049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16050/* end confdefs.h. */ 16051int i; 16052int 16053main (void) 16054{ 16055 16056 ; 16057 return 0; 16058} 16059_ACEOF 16060if ac_fn_c_try_link "$LINENO" 16061then : 16062 eval $cacheid=yes 16063else case e in #( 16064 e) eval $cacheid=no ;; 16065esac 16066fi 16067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16068 conftest$ac_exeext conftest.$ac_ext ;; 16069esac 16070fi 16071 16072 16073 CFLAGS="$xorg_testset_save_CFLAGS" 16074 16075 eval supported=\$$cacheid 16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16077printf "%s\n" "$supported" >&6; } 16078 if test "$supported" = "yes" ; then 16079 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16080 found="yes" 16081 fi 16082 fi 16083 16084 16085 16086# These are currently disabled because they are noisy. They will be enabled 16087# in the future once the codebase is sufficiently modernized to silence 16088# them. For now, I don't want them to drown out the other warnings. 16089# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16090# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16091# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16092 16093# Turn some warnings into errors, so we don't accidentally get successful builds 16094# when there are problems that should be fixed. 16095 16096if test "x$SELECTIVE_WERROR" = "xyes" ; then 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110xorg_testset_save_CFLAGS="$CFLAGS" 16111 16112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16115printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16116if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16117then : 16118 printf %s "(cached) " >&6 16119else case e in #( 16120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16121/* end confdefs.h. */ 16122int i; 16123_ACEOF 16124if ac_fn_c_try_compile "$LINENO" 16125then : 16126 xorg_cv_cc_flag_unknown_warning_option=yes 16127else case e in #( 16128 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16129esac 16130fi 16131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16132esac 16133fi 16134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16135printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16137 CFLAGS="$xorg_testset_save_CFLAGS" 16138fi 16139 16140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 fi 16144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16146printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16147if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16148then : 16149 printf %s "(cached) " >&6 16150else case e in #( 16151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16152/* end confdefs.h. */ 16153int i; 16154_ACEOF 16155if ac_fn_c_try_compile "$LINENO" 16156then : 16157 xorg_cv_cc_flag_unused_command_line_argument=yes 16158else case e in #( 16159 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16160esac 16161fi 16162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16163esac 16164fi 16165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16168 CFLAGS="$xorg_testset_save_CFLAGS" 16169fi 16170 16171found="no" 16172 16173 if test $found = "no" ; then 16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16176 fi 16177 16178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16180 fi 16181 16182 CFLAGS="$CFLAGS -Werror=implicit" 16183 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16185printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16186 cacheid=xorg_cv_cc_flag__Werror_implicit 16187 if eval test \${$cacheid+y} 16188then : 16189 printf %s "(cached) " >&6 16190else case e in #( 16191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16192/* end confdefs.h. */ 16193int i; 16194int 16195main (void) 16196{ 16197 16198 ; 16199 return 0; 16200} 16201_ACEOF 16202if ac_fn_c_try_link "$LINENO" 16203then : 16204 eval $cacheid=yes 16205else case e in #( 16206 e) eval $cacheid=no ;; 16207esac 16208fi 16209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16210 conftest$ac_exeext conftest.$ac_ext ;; 16211esac 16212fi 16213 16214 16215 CFLAGS="$xorg_testset_save_CFLAGS" 16216 16217 eval supported=\$$cacheid 16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16219printf "%s\n" "$supported" >&6; } 16220 if test "$supported" = "yes" ; then 16221 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16222 found="yes" 16223 fi 16224 fi 16225 16226 if test $found = "no" ; then 16227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16229 fi 16230 16231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16233 fi 16234 16235 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16236 16237 { 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 16238printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16239 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16240 if eval test \${$cacheid+y} 16241then : 16242 printf %s "(cached) " >&6 16243else case e in #( 16244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16245/* end confdefs.h. */ 16246int i; 16247int 16248main (void) 16249{ 16250 16251 ; 16252 return 0; 16253} 16254_ACEOF 16255if ac_fn_c_try_link "$LINENO" 16256then : 16257 eval $cacheid=yes 16258else case e in #( 16259 e) eval $cacheid=no ;; 16260esac 16261fi 16262rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16263 conftest$ac_exeext conftest.$ac_ext ;; 16264esac 16265fi 16266 16267 16268 CFLAGS="$xorg_testset_save_CFLAGS" 16269 16270 eval supported=\$$cacheid 16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16272printf "%s\n" "$supported" >&6; } 16273 if test "$supported" = "yes" ; then 16274 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16275 found="yes" 16276 fi 16277 fi 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293xorg_testset_save_CFLAGS="$CFLAGS" 16294 16295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16299if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16300then : 16301 printf %s "(cached) " >&6 16302else case e in #( 16303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305int i; 16306_ACEOF 16307if ac_fn_c_try_compile "$LINENO" 16308then : 16309 xorg_cv_cc_flag_unknown_warning_option=yes 16310else case e in #( 16311 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16312esac 16313fi 16314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16315esac 16316fi 16317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16320 CFLAGS="$xorg_testset_save_CFLAGS" 16321fi 16322 16323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16326 fi 16327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16330if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16331then : 16332 printf %s "(cached) " >&6 16333else case e in #( 16334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16335/* end confdefs.h. */ 16336int i; 16337_ACEOF 16338if ac_fn_c_try_compile "$LINENO" 16339then : 16340 xorg_cv_cc_flag_unused_command_line_argument=yes 16341else case e in #( 16342 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16343esac 16344fi 16345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16346esac 16347fi 16348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16351 CFLAGS="$xorg_testset_save_CFLAGS" 16352fi 16353 16354found="no" 16355 16356 if test $found = "no" ; then 16357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16359 fi 16360 16361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16363 fi 16364 16365 CFLAGS="$CFLAGS -Werror=nonnull" 16366 16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16368printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16369 cacheid=xorg_cv_cc_flag__Werror_nonnull 16370 if eval test \${$cacheid+y} 16371then : 16372 printf %s "(cached) " >&6 16373else case e in #( 16374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16375/* end confdefs.h. */ 16376int i; 16377int 16378main (void) 16379{ 16380 16381 ; 16382 return 0; 16383} 16384_ACEOF 16385if ac_fn_c_try_link "$LINENO" 16386then : 16387 eval $cacheid=yes 16388else case e in #( 16389 e) eval $cacheid=no ;; 16390esac 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16393 conftest$ac_exeext conftest.$ac_ext ;; 16394esac 16395fi 16396 16397 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399 16400 eval supported=\$$cacheid 16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16402printf "%s\n" "$supported" >&6; } 16403 if test "$supported" = "yes" ; then 16404 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16405 found="yes" 16406 fi 16407 fi 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423xorg_testset_save_CFLAGS="$CFLAGS" 16424 16425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16429if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16430then : 16431 printf %s "(cached) " >&6 16432else case e in #( 16433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434/* end confdefs.h. */ 16435int i; 16436_ACEOF 16437if ac_fn_c_try_compile "$LINENO" 16438then : 16439 xorg_cv_cc_flag_unknown_warning_option=yes 16440else case e in #( 16441 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16442esac 16443fi 16444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16445esac 16446fi 16447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16448printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16450 CFLAGS="$xorg_testset_save_CFLAGS" 16451fi 16452 16453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16456 fi 16457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16459printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16460if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16461then : 16462 printf %s "(cached) " >&6 16463else case e in #( 16464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16465/* end confdefs.h. */ 16466int i; 16467_ACEOF 16468if ac_fn_c_try_compile "$LINENO" 16469then : 16470 xorg_cv_cc_flag_unused_command_line_argument=yes 16471else case e in #( 16472 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16473esac 16474fi 16475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16476esac 16477fi 16478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16479printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16481 CFLAGS="$xorg_testset_save_CFLAGS" 16482fi 16483 16484found="no" 16485 16486 if test $found = "no" ; then 16487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16489 fi 16490 16491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16493 fi 16494 16495 CFLAGS="$CFLAGS -Werror=init-self" 16496 16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16498printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16499 cacheid=xorg_cv_cc_flag__Werror_init_self 16500 if eval test \${$cacheid+y} 16501then : 16502 printf %s "(cached) " >&6 16503else case e in #( 16504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16505/* end confdefs.h. */ 16506int i; 16507int 16508main (void) 16509{ 16510 16511 ; 16512 return 0; 16513} 16514_ACEOF 16515if ac_fn_c_try_link "$LINENO" 16516then : 16517 eval $cacheid=yes 16518else case e in #( 16519 e) eval $cacheid=no ;; 16520esac 16521fi 16522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16523 conftest$ac_exeext conftest.$ac_ext ;; 16524esac 16525fi 16526 16527 16528 CFLAGS="$xorg_testset_save_CFLAGS" 16529 16530 eval supported=\$$cacheid 16531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16532printf "%s\n" "$supported" >&6; } 16533 if test "$supported" = "yes" ; then 16534 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16535 found="yes" 16536 fi 16537 fi 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553xorg_testset_save_CFLAGS="$CFLAGS" 16554 16555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16559if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16560then : 16561 printf %s "(cached) " >&6 16562else case e in #( 16563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564/* end confdefs.h. */ 16565int i; 16566_ACEOF 16567if ac_fn_c_try_compile "$LINENO" 16568then : 16569 xorg_cv_cc_flag_unknown_warning_option=yes 16570else case e in #( 16571 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16572esac 16573fi 16574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16575esac 16576fi 16577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16580 CFLAGS="$xorg_testset_save_CFLAGS" 16581fi 16582 16583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16586 fi 16587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16590if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16591then : 16592 printf %s "(cached) " >&6 16593else case e in #( 16594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16595/* end confdefs.h. */ 16596int i; 16597_ACEOF 16598if ac_fn_c_try_compile "$LINENO" 16599then : 16600 xorg_cv_cc_flag_unused_command_line_argument=yes 16601else case e in #( 16602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16603esac 16604fi 16605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16606esac 16607fi 16608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16611 CFLAGS="$xorg_testset_save_CFLAGS" 16612fi 16613 16614found="no" 16615 16616 if test $found = "no" ; then 16617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16619 fi 16620 16621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16623 fi 16624 16625 CFLAGS="$CFLAGS -Werror=main" 16626 16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16628printf %s "checking if $CC supports -Werror=main... " >&6; } 16629 cacheid=xorg_cv_cc_flag__Werror_main 16630 if eval test \${$cacheid+y} 16631then : 16632 printf %s "(cached) " >&6 16633else case e in #( 16634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16635/* end confdefs.h. */ 16636int i; 16637int 16638main (void) 16639{ 16640 16641 ; 16642 return 0; 16643} 16644_ACEOF 16645if ac_fn_c_try_link "$LINENO" 16646then : 16647 eval $cacheid=yes 16648else case e in #( 16649 e) eval $cacheid=no ;; 16650esac 16651fi 16652rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16653 conftest$ac_exeext conftest.$ac_ext ;; 16654esac 16655fi 16656 16657 16658 CFLAGS="$xorg_testset_save_CFLAGS" 16659 16660 eval supported=\$$cacheid 16661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16662printf "%s\n" "$supported" >&6; } 16663 if test "$supported" = "yes" ; then 16664 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16665 found="yes" 16666 fi 16667 fi 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683xorg_testset_save_CFLAGS="$CFLAGS" 16684 16685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16689if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16690then : 16691 printf %s "(cached) " >&6 16692else case e in #( 16693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16694/* end confdefs.h. */ 16695int i; 16696_ACEOF 16697if ac_fn_c_try_compile "$LINENO" 16698then : 16699 xorg_cv_cc_flag_unknown_warning_option=yes 16700else case e in #( 16701 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16702esac 16703fi 16704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16705esac 16706fi 16707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16710 CFLAGS="$xorg_testset_save_CFLAGS" 16711fi 16712 16713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16716 fi 16717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16720if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16721then : 16722 printf %s "(cached) " >&6 16723else case e in #( 16724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726int i; 16727_ACEOF 16728if ac_fn_c_try_compile "$LINENO" 16729then : 16730 xorg_cv_cc_flag_unused_command_line_argument=yes 16731else case e in #( 16732 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16733esac 16734fi 16735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16736esac 16737fi 16738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16741 CFLAGS="$xorg_testset_save_CFLAGS" 16742fi 16743 16744found="no" 16745 16746 if test $found = "no" ; then 16747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16749 fi 16750 16751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16753 fi 16754 16755 CFLAGS="$CFLAGS -Werror=missing-braces" 16756 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16758printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16759 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16760 if eval test \${$cacheid+y} 16761then : 16762 printf %s "(cached) " >&6 16763else case e in #( 16764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766int i; 16767int 16768main (void) 16769{ 16770 16771 ; 16772 return 0; 16773} 16774_ACEOF 16775if ac_fn_c_try_link "$LINENO" 16776then : 16777 eval $cacheid=yes 16778else case e in #( 16779 e) eval $cacheid=no ;; 16780esac 16781fi 16782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16783 conftest$ac_exeext conftest.$ac_ext ;; 16784esac 16785fi 16786 16787 16788 CFLAGS="$xorg_testset_save_CFLAGS" 16789 16790 eval supported=\$$cacheid 16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16792printf "%s\n" "$supported" >&6; } 16793 if test "$supported" = "yes" ; then 16794 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16795 found="yes" 16796 fi 16797 fi 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813xorg_testset_save_CFLAGS="$CFLAGS" 16814 16815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16819if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16820then : 16821 printf %s "(cached) " >&6 16822else case e in #( 16823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16824/* end confdefs.h. */ 16825int i; 16826_ACEOF 16827if ac_fn_c_try_compile "$LINENO" 16828then : 16829 xorg_cv_cc_flag_unknown_warning_option=yes 16830else case e in #( 16831 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16832esac 16833fi 16834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16835esac 16836fi 16837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16840 CFLAGS="$xorg_testset_save_CFLAGS" 16841fi 16842 16843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16846 fi 16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16850if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16851then : 16852 printf %s "(cached) " >&6 16853else case e in #( 16854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16855/* end confdefs.h. */ 16856int i; 16857_ACEOF 16858if ac_fn_c_try_compile "$LINENO" 16859then : 16860 xorg_cv_cc_flag_unused_command_line_argument=yes 16861else case e in #( 16862 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16863esac 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16866esac 16867fi 16868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16871 CFLAGS="$xorg_testset_save_CFLAGS" 16872fi 16873 16874found="no" 16875 16876 if test $found = "no" ; then 16877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16879 fi 16880 16881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16883 fi 16884 16885 CFLAGS="$CFLAGS -Werror=sequence-point" 16886 16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16888printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16889 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16890 if eval test \${$cacheid+y} 16891then : 16892 printf %s "(cached) " >&6 16893else case e in #( 16894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895/* end confdefs.h. */ 16896int i; 16897int 16898main (void) 16899{ 16900 16901 ; 16902 return 0; 16903} 16904_ACEOF 16905if ac_fn_c_try_link "$LINENO" 16906then : 16907 eval $cacheid=yes 16908else case e in #( 16909 e) eval $cacheid=no ;; 16910esac 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16913 conftest$ac_exeext conftest.$ac_ext ;; 16914esac 16915fi 16916 16917 16918 CFLAGS="$xorg_testset_save_CFLAGS" 16919 16920 eval supported=\$$cacheid 16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16922printf "%s\n" "$supported" >&6; } 16923 if test "$supported" = "yes" ; then 16924 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16925 found="yes" 16926 fi 16927 fi 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943xorg_testset_save_CFLAGS="$CFLAGS" 16944 16945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16949if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16950then : 16951 printf %s "(cached) " >&6 16952else case e in #( 16953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16954/* end confdefs.h. */ 16955int i; 16956_ACEOF 16957if ac_fn_c_try_compile "$LINENO" 16958then : 16959 xorg_cv_cc_flag_unknown_warning_option=yes 16960else case e in #( 16961 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16962esac 16963fi 16964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16965esac 16966fi 16967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16970 CFLAGS="$xorg_testset_save_CFLAGS" 16971fi 16972 16973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16976 fi 16977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16980if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16981then : 16982 printf %s "(cached) " >&6 16983else case e in #( 16984 e) 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_unused_command_line_argument=yes 16991else case e in #( 16992 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16993esac 16994fi 16995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16996esac 16997fi 16998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17001 CFLAGS="$xorg_testset_save_CFLAGS" 17002fi 17003 17004found="no" 17005 17006 if test $found = "no" ; then 17007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17009 fi 17010 17011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17013 fi 17014 17015 CFLAGS="$CFLAGS -Werror=return-type" 17016 17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17018printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17019 cacheid=xorg_cv_cc_flag__Werror_return_type 17020 if eval test \${$cacheid+y} 17021then : 17022 printf %s "(cached) " >&6 17023else case e in #( 17024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17025/* end confdefs.h. */ 17026int i; 17027int 17028main (void) 17029{ 17030 17031 ; 17032 return 0; 17033} 17034_ACEOF 17035if ac_fn_c_try_link "$LINENO" 17036then : 17037 eval $cacheid=yes 17038else case e in #( 17039 e) eval $cacheid=no ;; 17040esac 17041fi 17042rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17043 conftest$ac_exeext conftest.$ac_ext ;; 17044esac 17045fi 17046 17047 17048 CFLAGS="$xorg_testset_save_CFLAGS" 17049 17050 eval supported=\$$cacheid 17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17052printf "%s\n" "$supported" >&6; } 17053 if test "$supported" = "yes" ; then 17054 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17055 found="yes" 17056 fi 17057 fi 17058 17059 if test $found = "no" ; then 17060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17062 fi 17063 17064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17066 fi 17067 17068 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17069 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17071printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17072 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17073 if eval test \${$cacheid+y} 17074then : 17075 printf %s "(cached) " >&6 17076else case e in #( 17077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17078/* end confdefs.h. */ 17079int i; 17080int 17081main (void) 17082{ 17083 17084 ; 17085 return 0; 17086} 17087_ACEOF 17088if ac_fn_c_try_link "$LINENO" 17089then : 17090 eval $cacheid=yes 17091else case e in #( 17092 e) eval $cacheid=no ;; 17093esac 17094fi 17095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17096 conftest$ac_exeext conftest.$ac_ext ;; 17097esac 17098fi 17099 17100 17101 CFLAGS="$xorg_testset_save_CFLAGS" 17102 17103 eval supported=\$$cacheid 17104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17105printf "%s\n" "$supported" >&6; } 17106 if test "$supported" = "yes" ; then 17107 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17108 found="yes" 17109 fi 17110 fi 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126xorg_testset_save_CFLAGS="$CFLAGS" 17127 17128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17131printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17132if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17133then : 17134 printf %s "(cached) " >&6 17135else case e in #( 17136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17137/* end confdefs.h. */ 17138int i; 17139_ACEOF 17140if ac_fn_c_try_compile "$LINENO" 17141then : 17142 xorg_cv_cc_flag_unknown_warning_option=yes 17143else case e in #( 17144 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17145esac 17146fi 17147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17148esac 17149fi 17150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17153 CFLAGS="$xorg_testset_save_CFLAGS" 17154fi 17155 17156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17159 fi 17160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17163if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17164then : 17165 printf %s "(cached) " >&6 17166else case e in #( 17167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17168/* end confdefs.h. */ 17169int i; 17170_ACEOF 17171if ac_fn_c_try_compile "$LINENO" 17172then : 17173 xorg_cv_cc_flag_unused_command_line_argument=yes 17174else case e in #( 17175 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17176esac 17177fi 17178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17179esac 17180fi 17181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17184 CFLAGS="$xorg_testset_save_CFLAGS" 17185fi 17186 17187found="no" 17188 17189 if test $found = "no" ; then 17190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17192 fi 17193 17194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17196 fi 17197 17198 CFLAGS="$CFLAGS -Werror=trigraphs" 17199 17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17201printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17202 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17203 if eval test \${$cacheid+y} 17204then : 17205 printf %s "(cached) " >&6 17206else case e in #( 17207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17208/* end confdefs.h. */ 17209int i; 17210int 17211main (void) 17212{ 17213 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_link "$LINENO" 17219then : 17220 eval $cacheid=yes 17221else case e in #( 17222 e) eval $cacheid=no ;; 17223esac 17224fi 17225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17226 conftest$ac_exeext conftest.$ac_ext ;; 17227esac 17228fi 17229 17230 17231 CFLAGS="$xorg_testset_save_CFLAGS" 17232 17233 eval supported=\$$cacheid 17234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17235printf "%s\n" "$supported" >&6; } 17236 if test "$supported" = "yes" ; then 17237 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17238 found="yes" 17239 fi 17240 fi 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256xorg_testset_save_CFLAGS="$CFLAGS" 17257 17258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17262if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17263then : 17264 printf %s "(cached) " >&6 17265else case e in #( 17266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17267/* end confdefs.h. */ 17268int i; 17269_ACEOF 17270if ac_fn_c_try_compile "$LINENO" 17271then : 17272 xorg_cv_cc_flag_unknown_warning_option=yes 17273else case e in #( 17274 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17275esac 17276fi 17277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17278esac 17279fi 17280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17283 CFLAGS="$xorg_testset_save_CFLAGS" 17284fi 17285 17286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17289 fi 17290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17294then : 17295 printf %s "(cached) " >&6 17296else case e in #( 17297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17298/* end confdefs.h. */ 17299int i; 17300_ACEOF 17301if ac_fn_c_try_compile "$LINENO" 17302then : 17303 xorg_cv_cc_flag_unused_command_line_argument=yes 17304else case e in #( 17305 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17306esac 17307fi 17308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17309esac 17310fi 17311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315fi 17316 17317found="no" 17318 17319 if test $found = "no" ; then 17320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 fi 17323 17324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17326 fi 17327 17328 CFLAGS="$CFLAGS -Werror=array-bounds" 17329 17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17331printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17332 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17333 if eval test \${$cacheid+y} 17334then : 17335 printf %s "(cached) " >&6 17336else case e in #( 17337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338/* end confdefs.h. */ 17339int i; 17340int 17341main (void) 17342{ 17343 17344 ; 17345 return 0; 17346} 17347_ACEOF 17348if ac_fn_c_try_link "$LINENO" 17349then : 17350 eval $cacheid=yes 17351else case e in #( 17352 e) eval $cacheid=no ;; 17353esac 17354fi 17355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17356 conftest$ac_exeext conftest.$ac_ext ;; 17357esac 17358fi 17359 17360 17361 CFLAGS="$xorg_testset_save_CFLAGS" 17362 17363 eval supported=\$$cacheid 17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17365printf "%s\n" "$supported" >&6; } 17366 if test "$supported" = "yes" ; then 17367 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17368 found="yes" 17369 fi 17370 fi 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386xorg_testset_save_CFLAGS="$CFLAGS" 17387 17388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17392if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17393then : 17394 printf %s "(cached) " >&6 17395else case e in #( 17396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17397/* end confdefs.h. */ 17398int i; 17399_ACEOF 17400if ac_fn_c_try_compile "$LINENO" 17401then : 17402 xorg_cv_cc_flag_unknown_warning_option=yes 17403else case e in #( 17404 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17405esac 17406fi 17407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17408esac 17409fi 17410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17413 CFLAGS="$xorg_testset_save_CFLAGS" 17414fi 17415 17416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17419 fi 17420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17423if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17424then : 17425 printf %s "(cached) " >&6 17426else case e in #( 17427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17428/* end confdefs.h. */ 17429int i; 17430_ACEOF 17431if ac_fn_c_try_compile "$LINENO" 17432then : 17433 xorg_cv_cc_flag_unused_command_line_argument=yes 17434else case e in #( 17435 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17436esac 17437fi 17438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17439esac 17440fi 17441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17444 CFLAGS="$xorg_testset_save_CFLAGS" 17445fi 17446 17447found="no" 17448 17449 if test $found = "no" ; then 17450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 fi 17453 17454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17456 fi 17457 17458 CFLAGS="$CFLAGS -Werror=write-strings" 17459 17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17461printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17462 cacheid=xorg_cv_cc_flag__Werror_write_strings 17463 if eval test \${$cacheid+y} 17464then : 17465 printf %s "(cached) " >&6 17466else case e in #( 17467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17468/* end confdefs.h. */ 17469int i; 17470int 17471main (void) 17472{ 17473 17474 ; 17475 return 0; 17476} 17477_ACEOF 17478if ac_fn_c_try_link "$LINENO" 17479then : 17480 eval $cacheid=yes 17481else case e in #( 17482 e) eval $cacheid=no ;; 17483esac 17484fi 17485rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17486 conftest$ac_exeext conftest.$ac_ext ;; 17487esac 17488fi 17489 17490 17491 CFLAGS="$xorg_testset_save_CFLAGS" 17492 17493 eval supported=\$$cacheid 17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17495printf "%s\n" "$supported" >&6; } 17496 if test "$supported" = "yes" ; then 17497 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17498 found="yes" 17499 fi 17500 fi 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516xorg_testset_save_CFLAGS="$CFLAGS" 17517 17518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17522if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17523then : 17524 printf %s "(cached) " >&6 17525else case e in #( 17526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17527/* end confdefs.h. */ 17528int i; 17529_ACEOF 17530if ac_fn_c_try_compile "$LINENO" 17531then : 17532 xorg_cv_cc_flag_unknown_warning_option=yes 17533else case e in #( 17534 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17535esac 17536fi 17537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17538esac 17539fi 17540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544fi 17545 17546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17549 fi 17550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17554then : 17555 printf %s "(cached) " >&6 17556else case e in #( 17557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17558/* end confdefs.h. */ 17559int i; 17560_ACEOF 17561if ac_fn_c_try_compile "$LINENO" 17562then : 17563 xorg_cv_cc_flag_unused_command_line_argument=yes 17564else case e in #( 17565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17566esac 17567fi 17568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17569esac 17570fi 17571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17574 CFLAGS="$xorg_testset_save_CFLAGS" 17575fi 17576 17577found="no" 17578 17579 if test $found = "no" ; then 17580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17582 fi 17583 17584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17586 fi 17587 17588 CFLAGS="$CFLAGS -Werror=address" 17589 17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17591printf %s "checking if $CC supports -Werror=address... " >&6; } 17592 cacheid=xorg_cv_cc_flag__Werror_address 17593 if eval test \${$cacheid+y} 17594then : 17595 printf %s "(cached) " >&6 17596else case e in #( 17597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598/* end confdefs.h. */ 17599int i; 17600int 17601main (void) 17602{ 17603 17604 ; 17605 return 0; 17606} 17607_ACEOF 17608if ac_fn_c_try_link "$LINENO" 17609then : 17610 eval $cacheid=yes 17611else case e in #( 17612 e) eval $cacheid=no ;; 17613esac 17614fi 17615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17616 conftest$ac_exeext conftest.$ac_ext ;; 17617esac 17618fi 17619 17620 17621 CFLAGS="$xorg_testset_save_CFLAGS" 17622 17623 eval supported=\$$cacheid 17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17625printf "%s\n" "$supported" >&6; } 17626 if test "$supported" = "yes" ; then 17627 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17628 found="yes" 17629 fi 17630 fi 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646xorg_testset_save_CFLAGS="$CFLAGS" 17647 17648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17652if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17653then : 17654 printf %s "(cached) " >&6 17655else case e in #( 17656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17657/* end confdefs.h. */ 17658int i; 17659_ACEOF 17660if ac_fn_c_try_compile "$LINENO" 17661then : 17662 xorg_cv_cc_flag_unknown_warning_option=yes 17663else case e in #( 17664 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17665esac 17666fi 17667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17668esac 17669fi 17670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17673 CFLAGS="$xorg_testset_save_CFLAGS" 17674fi 17675 17676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17679 fi 17680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17684then : 17685 printf %s "(cached) " >&6 17686else case e in #( 17687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688/* end confdefs.h. */ 17689int i; 17690_ACEOF 17691if ac_fn_c_try_compile "$LINENO" 17692then : 17693 xorg_cv_cc_flag_unused_command_line_argument=yes 17694else case e in #( 17695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17696esac 17697fi 17698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17699esac 17700fi 17701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17704 CFLAGS="$xorg_testset_save_CFLAGS" 17705fi 17706 17707found="no" 17708 17709 if test $found = "no" ; then 17710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17712 fi 17713 17714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17716 fi 17717 17718 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17719 17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17721printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17722 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17723 if eval test \${$cacheid+y} 17724then : 17725 printf %s "(cached) " >&6 17726else case e in #( 17727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17728/* end confdefs.h. */ 17729int i; 17730int 17731main (void) 17732{ 17733 17734 ; 17735 return 0; 17736} 17737_ACEOF 17738if ac_fn_c_try_link "$LINENO" 17739then : 17740 eval $cacheid=yes 17741else case e in #( 17742 e) eval $cacheid=no ;; 17743esac 17744fi 17745rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17746 conftest$ac_exeext conftest.$ac_ext ;; 17747esac 17748fi 17749 17750 17751 CFLAGS="$xorg_testset_save_CFLAGS" 17752 17753 eval supported=\$$cacheid 17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17755printf "%s\n" "$supported" >&6; } 17756 if test "$supported" = "yes" ; then 17757 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17758 found="yes" 17759 fi 17760 fi 17761 17762 if test $found = "no" ; then 17763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17765 fi 17766 17767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17769 fi 17770 17771 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17772 17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17774printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17775 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17776 if eval test \${$cacheid+y} 17777then : 17778 printf %s "(cached) " >&6 17779else case e in #( 17780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17781/* end confdefs.h. */ 17782int i; 17783int 17784main (void) 17785{ 17786 17787 ; 17788 return 0; 17789} 17790_ACEOF 17791if ac_fn_c_try_link "$LINENO" 17792then : 17793 eval $cacheid=yes 17794else case e in #( 17795 e) eval $cacheid=no ;; 17796esac 17797fi 17798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17799 conftest$ac_exeext conftest.$ac_ext ;; 17800esac 17801fi 17802 17803 17804 CFLAGS="$xorg_testset_save_CFLAGS" 17805 17806 eval supported=\$$cacheid 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17808printf "%s\n" "$supported" >&6; } 17809 if test "$supported" = "yes" ; then 17810 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17811 found="yes" 17812 fi 17813 fi 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829xorg_testset_save_CFLAGS="$CFLAGS" 17830 17831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17835if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17836then : 17837 printf %s "(cached) " >&6 17838else case e in #( 17839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17840/* end confdefs.h. */ 17841int i; 17842_ACEOF 17843if ac_fn_c_try_compile "$LINENO" 17844then : 17845 xorg_cv_cc_flag_unknown_warning_option=yes 17846else case e in #( 17847 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17848esac 17849fi 17850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17851esac 17852fi 17853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857fi 17858 17859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 fi 17863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17867then : 17868 printf %s "(cached) " >&6 17869else case e in #( 17870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872int i; 17873_ACEOF 17874if ac_fn_c_try_compile "$LINENO" 17875then : 17876 xorg_cv_cc_flag_unused_command_line_argument=yes 17877else case e in #( 17878 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17879esac 17880fi 17881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17882esac 17883fi 17884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17887 CFLAGS="$xorg_testset_save_CFLAGS" 17888fi 17889 17890found="no" 17891 17892 if test $found = "no" ; then 17893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17895 fi 17896 17897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17899 fi 17900 17901 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17902 17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17904printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17905 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17906 if eval test \${$cacheid+y} 17907then : 17908 printf %s "(cached) " >&6 17909else case e in #( 17910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911/* end confdefs.h. */ 17912int i; 17913int 17914main (void) 17915{ 17916 17917 ; 17918 return 0; 17919} 17920_ACEOF 17921if ac_fn_c_try_link "$LINENO" 17922then : 17923 eval $cacheid=yes 17924else case e in #( 17925 e) eval $cacheid=no ;; 17926esac 17927fi 17928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17929 conftest$ac_exeext conftest.$ac_ext ;; 17930esac 17931fi 17932 17933 17934 CFLAGS="$xorg_testset_save_CFLAGS" 17935 17936 eval supported=\$$cacheid 17937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17938printf "%s\n" "$supported" >&6; } 17939 if test "$supported" = "yes" ; then 17940 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17941 found="yes" 17942 fi 17943 fi 17944 17945 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17946else 17947{ 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 17948printf "%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;} 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962xorg_testset_save_CFLAGS="$CFLAGS" 17963 17964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17968if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17969then : 17970 printf %s "(cached) " >&6 17971else case e in #( 17972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17973/* end confdefs.h. */ 17974int i; 17975_ACEOF 17976if ac_fn_c_try_compile "$LINENO" 17977then : 17978 xorg_cv_cc_flag_unknown_warning_option=yes 17979else case e in #( 17980 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17981esac 17982fi 17983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17984esac 17985fi 17986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17989 CFLAGS="$xorg_testset_save_CFLAGS" 17990fi 17991 17992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17995 fi 17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17999if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18000then : 18001 printf %s "(cached) " >&6 18002else case e in #( 18003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18004/* end confdefs.h. */ 18005int i; 18006_ACEOF 18007if ac_fn_c_try_compile "$LINENO" 18008then : 18009 xorg_cv_cc_flag_unused_command_line_argument=yes 18010else case e in #( 18011 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18012esac 18013fi 18014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18015esac 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 -Wimplicit" 18035 18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18037printf %s "checking if $CC supports -Wimplicit... " >&6; } 18038 cacheid=xorg_cv_cc_flag__Wimplicit 18039 if eval test \${$cacheid+y} 18040then : 18041 printf %s "(cached) " >&6 18042else case e in #( 18043 e) 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 case e in #( 18058 e) eval $cacheid=no ;; 18059esac 18060fi 18061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18062 conftest$ac_exeext conftest.$ac_ext ;; 18063esac 18064fi 18065 18066 18067 CFLAGS="$xorg_testset_save_CFLAGS" 18068 18069 eval supported=\$$cacheid 18070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18071printf "%s\n" "$supported" >&6; } 18072 if test "$supported" = "yes" ; then 18073 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18074 found="yes" 18075 fi 18076 fi 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092xorg_testset_save_CFLAGS="$CFLAGS" 18093 18094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18098if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18099then : 18100 printf %s "(cached) " >&6 18101else case e in #( 18102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18103/* end confdefs.h. */ 18104int i; 18105_ACEOF 18106if ac_fn_c_try_compile "$LINENO" 18107then : 18108 xorg_cv_cc_flag_unknown_warning_option=yes 18109else case e in #( 18110 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18111esac 18112fi 18113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18114esac 18115fi 18116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18119 CFLAGS="$xorg_testset_save_CFLAGS" 18120fi 18121 18122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18125 fi 18126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18130then : 18131 printf %s "(cached) " >&6 18132else case e in #( 18133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135int i; 18136_ACEOF 18137if ac_fn_c_try_compile "$LINENO" 18138then : 18139 xorg_cv_cc_flag_unused_command_line_argument=yes 18140else case e in #( 18141 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18142esac 18143fi 18144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18145esac 18146fi 18147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18150 CFLAGS="$xorg_testset_save_CFLAGS" 18151fi 18152 18153found="no" 18154 18155 if test $found = "no" ; then 18156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18158 fi 18159 18160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18162 fi 18163 18164 CFLAGS="$CFLAGS -Wnonnull" 18165 18166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18167printf %s "checking if $CC supports -Wnonnull... " >&6; } 18168 cacheid=xorg_cv_cc_flag__Wnonnull 18169 if eval test \${$cacheid+y} 18170then : 18171 printf %s "(cached) " >&6 18172else case e in #( 18173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18174/* end confdefs.h. */ 18175int i; 18176int 18177main (void) 18178{ 18179 18180 ; 18181 return 0; 18182} 18183_ACEOF 18184if ac_fn_c_try_link "$LINENO" 18185then : 18186 eval $cacheid=yes 18187else case e in #( 18188 e) eval $cacheid=no ;; 18189esac 18190fi 18191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18192 conftest$ac_exeext conftest.$ac_ext ;; 18193esac 18194fi 18195 18196 18197 CFLAGS="$xorg_testset_save_CFLAGS" 18198 18199 eval supported=\$$cacheid 18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18201printf "%s\n" "$supported" >&6; } 18202 if test "$supported" = "yes" ; then 18203 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18204 found="yes" 18205 fi 18206 fi 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222xorg_testset_save_CFLAGS="$CFLAGS" 18223 18224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18228if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18229then : 18230 printf %s "(cached) " >&6 18231else case e in #( 18232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18233/* end confdefs.h. */ 18234int i; 18235_ACEOF 18236if ac_fn_c_try_compile "$LINENO" 18237then : 18238 xorg_cv_cc_flag_unknown_warning_option=yes 18239else case e in #( 18240 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18241esac 18242fi 18243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18244esac 18245fi 18246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18249 CFLAGS="$xorg_testset_save_CFLAGS" 18250fi 18251 18252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18255 fi 18256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18259if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18260then : 18261 printf %s "(cached) " >&6 18262else case e in #( 18263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264/* end confdefs.h. */ 18265int i; 18266_ACEOF 18267if ac_fn_c_try_compile "$LINENO" 18268then : 18269 xorg_cv_cc_flag_unused_command_line_argument=yes 18270else case e in #( 18271 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18272esac 18273fi 18274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18275esac 18276fi 18277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18280 CFLAGS="$xorg_testset_save_CFLAGS" 18281fi 18282 18283found="no" 18284 18285 if test $found = "no" ; then 18286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18288 fi 18289 18290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18292 fi 18293 18294 CFLAGS="$CFLAGS -Winit-self" 18295 18296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18297printf %s "checking if $CC supports -Winit-self... " >&6; } 18298 cacheid=xorg_cv_cc_flag__Winit_self 18299 if eval test \${$cacheid+y} 18300then : 18301 printf %s "(cached) " >&6 18302else case e in #( 18303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18304/* end confdefs.h. */ 18305int i; 18306int 18307main (void) 18308{ 18309 18310 ; 18311 return 0; 18312} 18313_ACEOF 18314if ac_fn_c_try_link "$LINENO" 18315then : 18316 eval $cacheid=yes 18317else case e in #( 18318 e) eval $cacheid=no ;; 18319esac 18320fi 18321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18322 conftest$ac_exeext conftest.$ac_ext ;; 18323esac 18324fi 18325 18326 18327 CFLAGS="$xorg_testset_save_CFLAGS" 18328 18329 eval supported=\$$cacheid 18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18331printf "%s\n" "$supported" >&6; } 18332 if test "$supported" = "yes" ; then 18333 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18334 found="yes" 18335 fi 18336 fi 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352xorg_testset_save_CFLAGS="$CFLAGS" 18353 18354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18358if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18359then : 18360 printf %s "(cached) " >&6 18361else case e in #( 18362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18363/* end confdefs.h. */ 18364int i; 18365_ACEOF 18366if ac_fn_c_try_compile "$LINENO" 18367then : 18368 xorg_cv_cc_flag_unknown_warning_option=yes 18369else case e in #( 18370 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18371esac 18372fi 18373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18374esac 18375fi 18376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18379 CFLAGS="$xorg_testset_save_CFLAGS" 18380fi 18381 18382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18385 fi 18386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18389if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18390then : 18391 printf %s "(cached) " >&6 18392else case e in #( 18393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18394/* end confdefs.h. */ 18395int i; 18396_ACEOF 18397if ac_fn_c_try_compile "$LINENO" 18398then : 18399 xorg_cv_cc_flag_unused_command_line_argument=yes 18400else case e in #( 18401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18402esac 18403fi 18404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18405esac 18406fi 18407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18410 CFLAGS="$xorg_testset_save_CFLAGS" 18411fi 18412 18413found="no" 18414 18415 if test $found = "no" ; then 18416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18418 fi 18419 18420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18422 fi 18423 18424 CFLAGS="$CFLAGS -Wmain" 18425 18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18427printf %s "checking if $CC supports -Wmain... " >&6; } 18428 cacheid=xorg_cv_cc_flag__Wmain 18429 if eval test \${$cacheid+y} 18430then : 18431 printf %s "(cached) " >&6 18432else case e in #( 18433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18434/* end confdefs.h. */ 18435int i; 18436int 18437main (void) 18438{ 18439 18440 ; 18441 return 0; 18442} 18443_ACEOF 18444if ac_fn_c_try_link "$LINENO" 18445then : 18446 eval $cacheid=yes 18447else case e in #( 18448 e) eval $cacheid=no ;; 18449esac 18450fi 18451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18452 conftest$ac_exeext conftest.$ac_ext ;; 18453esac 18454fi 18455 18456 18457 CFLAGS="$xorg_testset_save_CFLAGS" 18458 18459 eval supported=\$$cacheid 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18461printf "%s\n" "$supported" >&6; } 18462 if test "$supported" = "yes" ; then 18463 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18464 found="yes" 18465 fi 18466 fi 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482xorg_testset_save_CFLAGS="$CFLAGS" 18483 18484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18489then : 18490 printf %s "(cached) " >&6 18491else case e in #( 18492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18493/* end confdefs.h. */ 18494int i; 18495_ACEOF 18496if ac_fn_c_try_compile "$LINENO" 18497then : 18498 xorg_cv_cc_flag_unknown_warning_option=yes 18499else case e in #( 18500 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18501esac 18502fi 18503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18504esac 18505fi 18506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18509 CFLAGS="$xorg_testset_save_CFLAGS" 18510fi 18511 18512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18515 fi 18516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18519if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18520then : 18521 printf %s "(cached) " >&6 18522else case e in #( 18523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18524/* end confdefs.h. */ 18525int i; 18526_ACEOF 18527if ac_fn_c_try_compile "$LINENO" 18528then : 18529 xorg_cv_cc_flag_unused_command_line_argument=yes 18530else case e in #( 18531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18532esac 18533fi 18534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18535esac 18536fi 18537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18540 CFLAGS="$xorg_testset_save_CFLAGS" 18541fi 18542 18543found="no" 18544 18545 if test $found = "no" ; then 18546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18548 fi 18549 18550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18552 fi 18553 18554 CFLAGS="$CFLAGS -Wmissing-braces" 18555 18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18557printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18558 cacheid=xorg_cv_cc_flag__Wmissing_braces 18559 if eval test \${$cacheid+y} 18560then : 18561 printf %s "(cached) " >&6 18562else case e in #( 18563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18564/* end confdefs.h. */ 18565int i; 18566int 18567main (void) 18568{ 18569 18570 ; 18571 return 0; 18572} 18573_ACEOF 18574if ac_fn_c_try_link "$LINENO" 18575then : 18576 eval $cacheid=yes 18577else case e in #( 18578 e) eval $cacheid=no ;; 18579esac 18580fi 18581rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18582 conftest$ac_exeext conftest.$ac_ext ;; 18583esac 18584fi 18585 18586 18587 CFLAGS="$xorg_testset_save_CFLAGS" 18588 18589 eval supported=\$$cacheid 18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18591printf "%s\n" "$supported" >&6; } 18592 if test "$supported" = "yes" ; then 18593 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18594 found="yes" 18595 fi 18596 fi 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612xorg_testset_save_CFLAGS="$CFLAGS" 18613 18614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18619then : 18620 printf %s "(cached) " >&6 18621else case e in #( 18622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18623/* end confdefs.h. */ 18624int i; 18625_ACEOF 18626if ac_fn_c_try_compile "$LINENO" 18627then : 18628 xorg_cv_cc_flag_unknown_warning_option=yes 18629else case e in #( 18630 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18631esac 18632fi 18633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18634esac 18635fi 18636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640fi 18641 18642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18645 fi 18646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18650then : 18651 printf %s "(cached) " >&6 18652else case e in #( 18653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18654/* end confdefs.h. */ 18655int i; 18656_ACEOF 18657if ac_fn_c_try_compile "$LINENO" 18658then : 18659 xorg_cv_cc_flag_unused_command_line_argument=yes 18660else case e in #( 18661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18662esac 18663fi 18664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18665esac 18666fi 18667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18670 CFLAGS="$xorg_testset_save_CFLAGS" 18671fi 18672 18673found="no" 18674 18675 if test $found = "no" ; then 18676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18678 fi 18679 18680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18682 fi 18683 18684 CFLAGS="$CFLAGS -Wsequence-point" 18685 18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18687printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18688 cacheid=xorg_cv_cc_flag__Wsequence_point 18689 if eval test \${$cacheid+y} 18690then : 18691 printf %s "(cached) " >&6 18692else case e in #( 18693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18694/* end confdefs.h. */ 18695int i; 18696int 18697main (void) 18698{ 18699 18700 ; 18701 return 0; 18702} 18703_ACEOF 18704if ac_fn_c_try_link "$LINENO" 18705then : 18706 eval $cacheid=yes 18707else case e in #( 18708 e) eval $cacheid=no ;; 18709esac 18710fi 18711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18712 conftest$ac_exeext conftest.$ac_ext ;; 18713esac 18714fi 18715 18716 18717 CFLAGS="$xorg_testset_save_CFLAGS" 18718 18719 eval supported=\$$cacheid 18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18721printf "%s\n" "$supported" >&6; } 18722 if test "$supported" = "yes" ; then 18723 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18724 found="yes" 18725 fi 18726 fi 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742xorg_testset_save_CFLAGS="$CFLAGS" 18743 18744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18749then : 18750 printf %s "(cached) " >&6 18751else case e in #( 18752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18753/* end confdefs.h. */ 18754int i; 18755_ACEOF 18756if ac_fn_c_try_compile "$LINENO" 18757then : 18758 xorg_cv_cc_flag_unknown_warning_option=yes 18759else case e in #( 18760 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18761esac 18762fi 18763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18764esac 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 case e in #( 18783 e) 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 case e in #( 18791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18792esac 18793fi 18794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18795esac 18796fi 18797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18800 CFLAGS="$xorg_testset_save_CFLAGS" 18801fi 18802 18803found="no" 18804 18805 if test $found = "no" ; then 18806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18808 fi 18809 18810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18812 fi 18813 18814 CFLAGS="$CFLAGS -Wreturn-type" 18815 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18817printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18818 cacheid=xorg_cv_cc_flag__Wreturn_type 18819 if eval test \${$cacheid+y} 18820then : 18821 printf %s "(cached) " >&6 18822else case e in #( 18823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18824/* end confdefs.h. */ 18825int i; 18826int 18827main (void) 18828{ 18829 18830 ; 18831 return 0; 18832} 18833_ACEOF 18834if ac_fn_c_try_link "$LINENO" 18835then : 18836 eval $cacheid=yes 18837else case e in #( 18838 e) eval $cacheid=no ;; 18839esac 18840fi 18841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18842 conftest$ac_exeext conftest.$ac_ext ;; 18843esac 18844fi 18845 18846 18847 CFLAGS="$xorg_testset_save_CFLAGS" 18848 18849 eval supported=\$$cacheid 18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18851printf "%s\n" "$supported" >&6; } 18852 if test "$supported" = "yes" ; then 18853 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18854 found="yes" 18855 fi 18856 fi 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872xorg_testset_save_CFLAGS="$CFLAGS" 18873 18874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18878if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18879then : 18880 printf %s "(cached) " >&6 18881else case e in #( 18882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18883/* end confdefs.h. */ 18884int i; 18885_ACEOF 18886if ac_fn_c_try_compile "$LINENO" 18887then : 18888 xorg_cv_cc_flag_unknown_warning_option=yes 18889else case e in #( 18890 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18891esac 18892fi 18893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18894esac 18895fi 18896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18899 CFLAGS="$xorg_testset_save_CFLAGS" 18900fi 18901 18902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18905 fi 18906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18910then : 18911 printf %s "(cached) " >&6 18912else case e in #( 18913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18914/* end confdefs.h. */ 18915int i; 18916_ACEOF 18917if ac_fn_c_try_compile "$LINENO" 18918then : 18919 xorg_cv_cc_flag_unused_command_line_argument=yes 18920else case e in #( 18921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18922esac 18923fi 18924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18925esac 18926fi 18927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18930 CFLAGS="$xorg_testset_save_CFLAGS" 18931fi 18932 18933found="no" 18934 18935 if test $found = "no" ; then 18936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18938 fi 18939 18940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18942 fi 18943 18944 CFLAGS="$CFLAGS -Wtrigraphs" 18945 18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18947printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18948 cacheid=xorg_cv_cc_flag__Wtrigraphs 18949 if eval test \${$cacheid+y} 18950then : 18951 printf %s "(cached) " >&6 18952else case e in #( 18953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18954/* end confdefs.h. */ 18955int i; 18956int 18957main (void) 18958{ 18959 18960 ; 18961 return 0; 18962} 18963_ACEOF 18964if ac_fn_c_try_link "$LINENO" 18965then : 18966 eval $cacheid=yes 18967else case e in #( 18968 e) eval $cacheid=no ;; 18969esac 18970fi 18971rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18972 conftest$ac_exeext conftest.$ac_ext ;; 18973esac 18974fi 18975 18976 18977 CFLAGS="$xorg_testset_save_CFLAGS" 18978 18979 eval supported=\$$cacheid 18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18981printf "%s\n" "$supported" >&6; } 18982 if test "$supported" = "yes" ; then 18983 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18984 found="yes" 18985 fi 18986 fi 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002xorg_testset_save_CFLAGS="$CFLAGS" 19003 19004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19008if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19009then : 19010 printf %s "(cached) " >&6 19011else case e in #( 19012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19013/* end confdefs.h. */ 19014int i; 19015_ACEOF 19016if ac_fn_c_try_compile "$LINENO" 19017then : 19018 xorg_cv_cc_flag_unknown_warning_option=yes 19019else case e in #( 19020 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19021esac 19022fi 19023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19024esac 19025fi 19026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19029 CFLAGS="$xorg_testset_save_CFLAGS" 19030fi 19031 19032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19035 fi 19036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19039if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19040then : 19041 printf %s "(cached) " >&6 19042else case e in #( 19043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19044/* end confdefs.h. */ 19045int i; 19046_ACEOF 19047if ac_fn_c_try_compile "$LINENO" 19048then : 19049 xorg_cv_cc_flag_unused_command_line_argument=yes 19050else case e in #( 19051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19052esac 19053fi 19054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19055esac 19056fi 19057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19060 CFLAGS="$xorg_testset_save_CFLAGS" 19061fi 19062 19063found="no" 19064 19065 if test $found = "no" ; then 19066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19068 fi 19069 19070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19072 fi 19073 19074 CFLAGS="$CFLAGS -Warray-bounds" 19075 19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19077printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19078 cacheid=xorg_cv_cc_flag__Warray_bounds 19079 if eval test \${$cacheid+y} 19080then : 19081 printf %s "(cached) " >&6 19082else case e in #( 19083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19084/* end confdefs.h. */ 19085int i; 19086int 19087main (void) 19088{ 19089 19090 ; 19091 return 0; 19092} 19093_ACEOF 19094if ac_fn_c_try_link "$LINENO" 19095then : 19096 eval $cacheid=yes 19097else case e in #( 19098 e) eval $cacheid=no ;; 19099esac 19100fi 19101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19102 conftest$ac_exeext conftest.$ac_ext ;; 19103esac 19104fi 19105 19106 19107 CFLAGS="$xorg_testset_save_CFLAGS" 19108 19109 eval supported=\$$cacheid 19110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19111printf "%s\n" "$supported" >&6; } 19112 if test "$supported" = "yes" ; then 19113 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19114 found="yes" 19115 fi 19116 fi 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132xorg_testset_save_CFLAGS="$CFLAGS" 19133 19134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19138if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19139then : 19140 printf %s "(cached) " >&6 19141else case e in #( 19142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19143/* end confdefs.h. */ 19144int i; 19145_ACEOF 19146if ac_fn_c_try_compile "$LINENO" 19147then : 19148 xorg_cv_cc_flag_unknown_warning_option=yes 19149else case e in #( 19150 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19151esac 19152fi 19153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19154esac 19155fi 19156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19159 CFLAGS="$xorg_testset_save_CFLAGS" 19160fi 19161 19162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19165 fi 19166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19170then : 19171 printf %s "(cached) " >&6 19172else case e in #( 19173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19174/* end confdefs.h. */ 19175int i; 19176_ACEOF 19177if ac_fn_c_try_compile "$LINENO" 19178then : 19179 xorg_cv_cc_flag_unused_command_line_argument=yes 19180else case e in #( 19181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19182esac 19183fi 19184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19185esac 19186fi 19187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19190 CFLAGS="$xorg_testset_save_CFLAGS" 19191fi 19192 19193found="no" 19194 19195 if test $found = "no" ; then 19196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19198 fi 19199 19200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19202 fi 19203 19204 CFLAGS="$CFLAGS -Wwrite-strings" 19205 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19207printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19208 cacheid=xorg_cv_cc_flag__Wwrite_strings 19209 if eval test \${$cacheid+y} 19210then : 19211 printf %s "(cached) " >&6 19212else case e in #( 19213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19214/* end confdefs.h. */ 19215int i; 19216int 19217main (void) 19218{ 19219 19220 ; 19221 return 0; 19222} 19223_ACEOF 19224if ac_fn_c_try_link "$LINENO" 19225then : 19226 eval $cacheid=yes 19227else case e in #( 19228 e) eval $cacheid=no ;; 19229esac 19230fi 19231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19232 conftest$ac_exeext conftest.$ac_ext ;; 19233esac 19234fi 19235 19236 19237 CFLAGS="$xorg_testset_save_CFLAGS" 19238 19239 eval supported=\$$cacheid 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19241printf "%s\n" "$supported" >&6; } 19242 if test "$supported" = "yes" ; then 19243 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19244 found="yes" 19245 fi 19246 fi 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262xorg_testset_save_CFLAGS="$CFLAGS" 19263 19264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19268if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19269then : 19270 printf %s "(cached) " >&6 19271else case e in #( 19272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19273/* end confdefs.h. */ 19274int i; 19275_ACEOF 19276if ac_fn_c_try_compile "$LINENO" 19277then : 19278 xorg_cv_cc_flag_unknown_warning_option=yes 19279else case e in #( 19280 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19281esac 19282fi 19283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19284esac 19285fi 19286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19289 CFLAGS="$xorg_testset_save_CFLAGS" 19290fi 19291 19292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19295 fi 19296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19300then : 19301 printf %s "(cached) " >&6 19302else case e in #( 19303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19304/* end confdefs.h. */ 19305int i; 19306_ACEOF 19307if ac_fn_c_try_compile "$LINENO" 19308then : 19309 xorg_cv_cc_flag_unused_command_line_argument=yes 19310else case e in #( 19311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19312esac 19313fi 19314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19315esac 19316fi 19317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19320 CFLAGS="$xorg_testset_save_CFLAGS" 19321fi 19322 19323found="no" 19324 19325 if test $found = "no" ; then 19326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19328 fi 19329 19330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19332 fi 19333 19334 CFLAGS="$CFLAGS -Waddress" 19335 19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19337printf %s "checking if $CC supports -Waddress... " >&6; } 19338 cacheid=xorg_cv_cc_flag__Waddress 19339 if eval test \${$cacheid+y} 19340then : 19341 printf %s "(cached) " >&6 19342else case e in #( 19343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19344/* end confdefs.h. */ 19345int i; 19346int 19347main (void) 19348{ 19349 19350 ; 19351 return 0; 19352} 19353_ACEOF 19354if ac_fn_c_try_link "$LINENO" 19355then : 19356 eval $cacheid=yes 19357else case e in #( 19358 e) eval $cacheid=no ;; 19359esac 19360fi 19361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19362 conftest$ac_exeext conftest.$ac_ext ;; 19363esac 19364fi 19365 19366 19367 CFLAGS="$xorg_testset_save_CFLAGS" 19368 19369 eval supported=\$$cacheid 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19371printf "%s\n" "$supported" >&6; } 19372 if test "$supported" = "yes" ; then 19373 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19374 found="yes" 19375 fi 19376 fi 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392xorg_testset_save_CFLAGS="$CFLAGS" 19393 19394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19398if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19399then : 19400 printf %s "(cached) " >&6 19401else case e in #( 19402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19403/* end confdefs.h. */ 19404int i; 19405_ACEOF 19406if ac_fn_c_try_compile "$LINENO" 19407then : 19408 xorg_cv_cc_flag_unknown_warning_option=yes 19409else case e in #( 19410 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19411esac 19412fi 19413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19414esac 19415fi 19416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19419 CFLAGS="$xorg_testset_save_CFLAGS" 19420fi 19421 19422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19425 fi 19426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19430then : 19431 printf %s "(cached) " >&6 19432else case e in #( 19433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19434/* end confdefs.h. */ 19435int i; 19436_ACEOF 19437if ac_fn_c_try_compile "$LINENO" 19438then : 19439 xorg_cv_cc_flag_unused_command_line_argument=yes 19440else case e in #( 19441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19442esac 19443fi 19444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19445esac 19446fi 19447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19450 CFLAGS="$xorg_testset_save_CFLAGS" 19451fi 19452 19453found="no" 19454 19455 if test $found = "no" ; then 19456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19458 fi 19459 19460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19462 fi 19463 19464 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19465 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19467printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19468 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19469 if eval test \${$cacheid+y} 19470then : 19471 printf %s "(cached) " >&6 19472else case e in #( 19473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19474/* end confdefs.h. */ 19475int i; 19476int 19477main (void) 19478{ 19479 19480 ; 19481 return 0; 19482} 19483_ACEOF 19484if ac_fn_c_try_link "$LINENO" 19485then : 19486 eval $cacheid=yes 19487else case e in #( 19488 e) eval $cacheid=no ;; 19489esac 19490fi 19491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19492 conftest$ac_exeext conftest.$ac_ext ;; 19493esac 19494fi 19495 19496 19497 CFLAGS="$xorg_testset_save_CFLAGS" 19498 19499 eval supported=\$$cacheid 19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19501printf "%s\n" "$supported" >&6; } 19502 if test "$supported" = "yes" ; then 19503 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19504 found="yes" 19505 fi 19506 fi 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522xorg_testset_save_CFLAGS="$CFLAGS" 19523 19524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19528if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19529then : 19530 printf %s "(cached) " >&6 19531else case e in #( 19532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19533/* end confdefs.h. */ 19534int i; 19535_ACEOF 19536if ac_fn_c_try_compile "$LINENO" 19537then : 19538 xorg_cv_cc_flag_unknown_warning_option=yes 19539else case e in #( 19540 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19541esac 19542fi 19543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19544esac 19545fi 19546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19549 CFLAGS="$xorg_testset_save_CFLAGS" 19550fi 19551 19552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19555 fi 19556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19560then : 19561 printf %s "(cached) " >&6 19562else case e in #( 19563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19564/* end confdefs.h. */ 19565int i; 19566_ACEOF 19567if ac_fn_c_try_compile "$LINENO" 19568then : 19569 xorg_cv_cc_flag_unused_command_line_argument=yes 19570else case e in #( 19571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19572esac 19573fi 19574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19575esac 19576fi 19577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19580 CFLAGS="$xorg_testset_save_CFLAGS" 19581fi 19582 19583found="no" 19584 19585 if test $found = "no" ; then 19586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19588 fi 19589 19590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19592 fi 19593 19594 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19595 19596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19597printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19598 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19599 if eval test \${$cacheid+y} 19600then : 19601 printf %s "(cached) " >&6 19602else case e in #( 19603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19604/* end confdefs.h. */ 19605int i; 19606int 19607main (void) 19608{ 19609 19610 ; 19611 return 0; 19612} 19613_ACEOF 19614if ac_fn_c_try_link "$LINENO" 19615then : 19616 eval $cacheid=yes 19617else case e in #( 19618 e) eval $cacheid=no ;; 19619esac 19620fi 19621rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19622 conftest$ac_exeext conftest.$ac_ext ;; 19623esac 19624fi 19625 19626 19627 CFLAGS="$xorg_testset_save_CFLAGS" 19628 19629 eval supported=\$$cacheid 19630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19631printf "%s\n" "$supported" >&6; } 19632 if test "$supported" = "yes" ; then 19633 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19634 found="yes" 19635 fi 19636 fi 19637 19638 19639fi 19640 19641 19642 19643 19644 19645 19646 19647 CWARNFLAGS="$BASE_CFLAGS" 19648 if test "x$GCC" = xyes ; then 19649 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19650 fi 19651 19652 19653 19654 19655 19656 19657 19658 19659# Check whether --enable-strict-compilation was given. 19660if test ${enable_strict_compilation+y} 19661then : 19662 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19663else case e in #( 19664 e) STRICT_COMPILE=no ;; 19665esac 19666fi 19667 19668 19669 19670 19671 19672 19673STRICT_CFLAGS="" 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687xorg_testset_save_CFLAGS="$CFLAGS" 19688 19689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19693if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19694then : 19695 printf %s "(cached) " >&6 19696else case e in #( 19697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19698/* end confdefs.h. */ 19699int i; 19700_ACEOF 19701if ac_fn_c_try_compile "$LINENO" 19702then : 19703 xorg_cv_cc_flag_unknown_warning_option=yes 19704else case e in #( 19705 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19706esac 19707fi 19708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19709esac 19710fi 19711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19714 CFLAGS="$xorg_testset_save_CFLAGS" 19715fi 19716 19717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19720 fi 19721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19724if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19725then : 19726 printf %s "(cached) " >&6 19727else case e in #( 19728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19729/* end confdefs.h. */ 19730int i; 19731_ACEOF 19732if ac_fn_c_try_compile "$LINENO" 19733then : 19734 xorg_cv_cc_flag_unused_command_line_argument=yes 19735else case e in #( 19736 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19737esac 19738fi 19739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19740esac 19741fi 19742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19745 CFLAGS="$xorg_testset_save_CFLAGS" 19746fi 19747 19748found="no" 19749 19750 if test $found = "no" ; then 19751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19753 fi 19754 19755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19757 fi 19758 19759 CFLAGS="$CFLAGS -pedantic" 19760 19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19762printf %s "checking if $CC supports -pedantic... " >&6; } 19763 cacheid=xorg_cv_cc_flag__pedantic 19764 if eval test \${$cacheid+y} 19765then : 19766 printf %s "(cached) " >&6 19767else case e in #( 19768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19769/* end confdefs.h. */ 19770int i; 19771int 19772main (void) 19773{ 19774 19775 ; 19776 return 0; 19777} 19778_ACEOF 19779if ac_fn_c_try_link "$LINENO" 19780then : 19781 eval $cacheid=yes 19782else case e in #( 19783 e) eval $cacheid=no ;; 19784esac 19785fi 19786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19787 conftest$ac_exeext conftest.$ac_ext ;; 19788esac 19789fi 19790 19791 19792 CFLAGS="$xorg_testset_save_CFLAGS" 19793 19794 eval supported=\$$cacheid 19795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19796printf "%s\n" "$supported" >&6; } 19797 if test "$supported" = "yes" ; then 19798 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19799 found="yes" 19800 fi 19801 fi 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817xorg_testset_save_CFLAGS="$CFLAGS" 19818 19819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19823if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19824then : 19825 printf %s "(cached) " >&6 19826else case e in #( 19827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19828/* end confdefs.h. */ 19829int i; 19830_ACEOF 19831if ac_fn_c_try_compile "$LINENO" 19832then : 19833 xorg_cv_cc_flag_unknown_warning_option=yes 19834else case e in #( 19835 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19836esac 19837fi 19838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19839esac 19840fi 19841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19844 CFLAGS="$xorg_testset_save_CFLAGS" 19845fi 19846 19847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19850 fi 19851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19854if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19855then : 19856 printf %s "(cached) " >&6 19857else case e in #( 19858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19859/* end confdefs.h. */ 19860int i; 19861_ACEOF 19862if ac_fn_c_try_compile "$LINENO" 19863then : 19864 xorg_cv_cc_flag_unused_command_line_argument=yes 19865else case e in #( 19866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19867esac 19868fi 19869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19870esac 19871fi 19872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19875 CFLAGS="$xorg_testset_save_CFLAGS" 19876fi 19877 19878found="no" 19879 19880 if test $found = "no" ; then 19881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19883 fi 19884 19885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19887 fi 19888 19889 CFLAGS="$CFLAGS -Werror" 19890 19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19892printf %s "checking if $CC supports -Werror... " >&6; } 19893 cacheid=xorg_cv_cc_flag__Werror 19894 if eval test \${$cacheid+y} 19895then : 19896 printf %s "(cached) " >&6 19897else case e in #( 19898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19899/* end confdefs.h. */ 19900int i; 19901int 19902main (void) 19903{ 19904 19905 ; 19906 return 0; 19907} 19908_ACEOF 19909if ac_fn_c_try_link "$LINENO" 19910then : 19911 eval $cacheid=yes 19912else case e in #( 19913 e) eval $cacheid=no ;; 19914esac 19915fi 19916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19917 conftest$ac_exeext conftest.$ac_ext ;; 19918esac 19919fi 19920 19921 19922 CFLAGS="$xorg_testset_save_CFLAGS" 19923 19924 eval supported=\$$cacheid 19925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19926printf "%s\n" "$supported" >&6; } 19927 if test "$supported" = "yes" ; then 19928 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19929 found="yes" 19930 fi 19931 fi 19932 19933 if test $found = "no" ; then 19934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19936 fi 19937 19938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19940 fi 19941 19942 CFLAGS="$CFLAGS -errwarn" 19943 19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19945printf %s "checking if $CC supports -errwarn... " >&6; } 19946 cacheid=xorg_cv_cc_flag__errwarn 19947 if eval test \${$cacheid+y} 19948then : 19949 printf %s "(cached) " >&6 19950else case e in #( 19951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19952/* end confdefs.h. */ 19953int i; 19954int 19955main (void) 19956{ 19957 19958 ; 19959 return 0; 19960} 19961_ACEOF 19962if ac_fn_c_try_link "$LINENO" 19963then : 19964 eval $cacheid=yes 19965else case e in #( 19966 e) eval $cacheid=no ;; 19967esac 19968fi 19969rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19970 conftest$ac_exeext conftest.$ac_ext ;; 19971esac 19972fi 19973 19974 19975 CFLAGS="$xorg_testset_save_CFLAGS" 19976 19977 eval supported=\$$cacheid 19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19979printf "%s\n" "$supported" >&6; } 19980 if test "$supported" = "yes" ; then 19981 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19982 found="yes" 19983 fi 19984 fi 19985 19986 19987 19988# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19989# activate it with -Werror, so we add it here explicitly. 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003xorg_testset_save_CFLAGS="$CFLAGS" 20004 20005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20009if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20010then : 20011 printf %s "(cached) " >&6 20012else case e in #( 20013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20014/* end confdefs.h. */ 20015int i; 20016_ACEOF 20017if ac_fn_c_try_compile "$LINENO" 20018then : 20019 xorg_cv_cc_flag_unknown_warning_option=yes 20020else case e in #( 20021 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20022esac 20023fi 20024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20025esac 20026fi 20027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20030 CFLAGS="$xorg_testset_save_CFLAGS" 20031fi 20032 20033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20036 fi 20037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20041then : 20042 printf %s "(cached) " >&6 20043else case e in #( 20044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20045/* end confdefs.h. */ 20046int i; 20047_ACEOF 20048if ac_fn_c_try_compile "$LINENO" 20049then : 20050 xorg_cv_cc_flag_unused_command_line_argument=yes 20051else case e in #( 20052 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20053esac 20054fi 20055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20056esac 20057fi 20058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20061 CFLAGS="$xorg_testset_save_CFLAGS" 20062fi 20063 20064found="no" 20065 20066 if test $found = "no" ; then 20067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20069 fi 20070 20071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20073 fi 20074 20075 CFLAGS="$CFLAGS -Werror=attributes" 20076 20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20078printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20079 cacheid=xorg_cv_cc_flag__Werror_attributes 20080 if eval test \${$cacheid+y} 20081then : 20082 printf %s "(cached) " >&6 20083else case e in #( 20084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20085/* end confdefs.h. */ 20086int i; 20087int 20088main (void) 20089{ 20090 20091 ; 20092 return 0; 20093} 20094_ACEOF 20095if ac_fn_c_try_link "$LINENO" 20096then : 20097 eval $cacheid=yes 20098else case e in #( 20099 e) eval $cacheid=no ;; 20100esac 20101fi 20102rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20103 conftest$ac_exeext conftest.$ac_ext ;; 20104esac 20105fi 20106 20107 20108 CFLAGS="$xorg_testset_save_CFLAGS" 20109 20110 eval supported=\$$cacheid 20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20112printf "%s\n" "$supported" >&6; } 20113 if test "$supported" = "yes" ; then 20114 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20115 found="yes" 20116 fi 20117 fi 20118 20119 20120 20121if test "x$STRICT_COMPILE" = "xyes"; then 20122 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20123 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20124fi 20125 20126 20127 20128 20129 20130 20131 20132 20133cat >>confdefs.h <<_ACEOF 20134#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20135_ACEOF 20136 20137 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20138 if test "x$PVM" = "x"; then 20139 PVM="0" 20140 fi 20141 20142printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20143 20144 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20145 if test "x$PVP" = "x"; then 20146 PVP="0" 20147 fi 20148 20149printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20150 20151 20152 20153CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20154mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20155|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20156touch \$(top_srcdir)/ChangeLog; \ 20157echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20158 20159 20160 20161 20162macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20163INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20164mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20165|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20166touch \$(top_srcdir)/INSTALL; \ 20167echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20168 20169 20170 20171 20172 20173 20174case $host_os in 20175 solaris*) 20176 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20177 # check for a man page file found in later versions that use 20178 # traditional section numbers instead 20179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20180printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20181if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20182then : 20183 printf %s "(cached) " >&6 20184else case e in #( 20185 e) test "$cross_compiling" = yes && 20186 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20187if test -r "/usr/share/man/man7/attributes.7"; then 20188 ac_cv_file__usr_share_man_man7_attributes_7=yes 20189else 20190 ac_cv_file__usr_share_man_man7_attributes_7=no 20191fi ;; 20192esac 20193fi 20194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20195printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20196if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20197then : 20198 SYSV_MAN_SECTIONS=false 20199else case e in #( 20200 e) SYSV_MAN_SECTIONS=true ;; 20201esac 20202fi 20203 20204 ;; 20205 *) SYSV_MAN_SECTIONS=false ;; 20206esac 20207 20208if test x$APP_MAN_SUFFIX = x ; then 20209 APP_MAN_SUFFIX=1 20210fi 20211if test x$APP_MAN_DIR = x ; then 20212 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20213fi 20214 20215if test x$LIB_MAN_SUFFIX = x ; then 20216 LIB_MAN_SUFFIX=3 20217fi 20218if test x$LIB_MAN_DIR = x ; then 20219 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20220fi 20221 20222if test x$FILE_MAN_SUFFIX = x ; then 20223 case $SYSV_MAN_SECTIONS in 20224 true) FILE_MAN_SUFFIX=4 ;; 20225 *) FILE_MAN_SUFFIX=5 ;; 20226 esac 20227fi 20228if test x$FILE_MAN_DIR = x ; then 20229 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20230fi 20231 20232if test x$MISC_MAN_SUFFIX = x ; then 20233 case $SYSV_MAN_SECTIONS in 20234 true) MISC_MAN_SUFFIX=5 ;; 20235 *) MISC_MAN_SUFFIX=7 ;; 20236 esac 20237fi 20238if test x$MISC_MAN_DIR = x ; then 20239 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20240fi 20241 20242if test x$DRIVER_MAN_SUFFIX = x ; then 20243 case $SYSV_MAN_SECTIONS in 20244 true) DRIVER_MAN_SUFFIX=7 ;; 20245 *) DRIVER_MAN_SUFFIX=4 ;; 20246 esac 20247fi 20248if test x$DRIVER_MAN_DIR = x ; then 20249 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20250fi 20251 20252if test x$ADMIN_MAN_SUFFIX = x ; then 20253 case $SYSV_MAN_SECTIONS in 20254 true) ADMIN_MAN_SUFFIX=1m ;; 20255 *) ADMIN_MAN_SUFFIX=8 ;; 20256 esac 20257fi 20258if test x$ADMIN_MAN_DIR = x ; then 20259 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20260fi 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276XORG_MAN_PAGE="X Version 11" 20277 20278MAN_SUBSTS="\ 20279 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20280 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20281 -e 's|__xservername__|Xorg|g' \ 20282 -e 's|__xconfigfile__|xorg.conf|g' \ 20283 -e 's|__projectroot__|\$(prefix)|g' \ 20284 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20285 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20286 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20287 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20288 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20289 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20290 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20291 20292 20293 20294 20295AM_DEFAULT_VERBOSITY=0 20296 20297 20298 20299# Check whether --enable-malloc0returnsnull was given. 20300if test ${enable_malloc0returnsnull+y} 20301then : 20302 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20303else case e in #( 20304 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 20305esac 20306fi 20307 20308 20309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 20310printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 20311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20312printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20313 20314if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20315 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20316 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20317 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20318else 20319 MALLOC_ZERO_CFLAGS="" 20320 XMALLOC_ZERO_CFLAGS="" 20321 XTMALLOC_ZERO_CFLAGS="" 20322fi 20323 20324 20325 20326 20327 20328 20329# Obtain compiler/linker options for dependencies 20330 20331pkg_failed=no 20332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XXF86VM" >&5 20333printf %s "checking for XXF86VM... " >&6; } 20334 20335if test -n "$XXF86VM_CFLAGS"; then 20336 pkg_cv_XXF86VM_CFLAGS="$XXF86VM_CFLAGS" 20337 elif test -n "$PKG_CONFIG"; then 20338 if test -n "$PKG_CONFIG" && \ 20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1\""; } >&5 20340 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5 20341 ac_status=$? 20342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20343 test $ac_status = 0; }; then 20344 pkg_cv_XXF86VM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null` 20345 test "x$?" != "x0" && pkg_failed=yes 20346else 20347 pkg_failed=yes 20348fi 20349 else 20350 pkg_failed=untried 20351fi 20352if test -n "$XXF86VM_LIBS"; then 20353 pkg_cv_XXF86VM_LIBS="$XXF86VM_LIBS" 20354 elif test -n "$PKG_CONFIG"; then 20355 if test -n "$PKG_CONFIG" && \ 20356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1\""; } >&5 20357 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5 20358 ac_status=$? 20359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20360 test $ac_status = 0; }; then 20361 pkg_cv_XXF86VM_LIBS=`$PKG_CONFIG --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null` 20362 test "x$?" != "x0" && pkg_failed=yes 20363else 20364 pkg_failed=yes 20365fi 20366 else 20367 pkg_failed=untried 20368fi 20369 20370 20371 20372if test $pkg_failed = yes; then 20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20374printf "%s\n" "no" >&6; } 20375 20376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20377 _pkg_short_errors_supported=yes 20378else 20379 _pkg_short_errors_supported=no 20380fi 20381 if test $_pkg_short_errors_supported = yes; then 20382 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1` 20383 else 20384 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1` 20385 fi 20386 # Put the nasty error message in config.log where it belongs 20387 echo "$XXF86VM_PKG_ERRORS" >&5 20388 20389 as_fn_error $? "Package requirements (xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1) were not met: 20390 20391$XXF86VM_PKG_ERRORS 20392 20393Consider adjusting the PKG_CONFIG_PATH environment variable if you 20394installed software in a non-standard prefix. 20395 20396Alternatively, you may set the environment variables XXF86VM_CFLAGS 20397and XXF86VM_LIBS to avoid the need to call pkg-config. 20398See the pkg-config man page for more details." "$LINENO" 5 20399elif test $pkg_failed = untried; then 20400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20401printf "%s\n" "no" >&6; } 20402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20403printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20404as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20405is in your PATH or set the PKG_CONFIG environment variable to the full 20406path to pkg-config. 20407 20408Alternatively, you may set the environment variables XXF86VM_CFLAGS 20409and XXF86VM_LIBS to avoid the need to call pkg-config. 20410See the pkg-config man page for more details. 20411 20412To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20413See 'config.log' for more details" "$LINENO" 5; } 20414else 20415 XXF86VM_CFLAGS=$pkg_cv_XXF86VM_CFLAGS 20416 XXF86VM_LIBS=$pkg_cv_XXF86VM_LIBS 20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20418printf "%s\n" "yes" >&6; } 20419 20420fi 20421 20422ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86vm.pc" 20423 20424cat >confcache <<\_ACEOF 20425# This file is a shell script that caches the results of configure 20426# tests run on this system so they can be shared between configure 20427# scripts and configure runs, see configure's option --config-cache. 20428# It is not useful on other systems. If it contains results you don't 20429# want to keep, you may remove or edit it. 20430# 20431# config.status only pays attention to the cache file if you give it 20432# the --recheck option to rerun configure. 20433# 20434# 'ac_cv_env_foo' variables (set or unset) will be overridden when 20435# loading this file, other *unset* 'ac_cv_foo' will be assigned the 20436# following values. 20437 20438_ACEOF 20439 20440# The following way of writing the cache mishandles newlines in values, 20441# but we know of no workaround that is simple, portable, and efficient. 20442# So, we kill variables containing newlines. 20443# Ultrix sh set writes to stderr and can't be redirected directly, 20444# and sets the high bit in the cache file unless we assign to the vars. 20445( 20446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20447 eval ac_val=\$$ac_var 20448 case $ac_val in #( 20449 *${as_nl}*) 20450 case $ac_var in #( 20451 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20452printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20453 esac 20454 case $ac_var in #( 20455 _ | IFS | as_nl) ;; #( 20456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20457 *) { eval $ac_var=; unset $ac_var;} ;; 20458 esac ;; 20459 esac 20460 done 20461 20462 (set) 2>&1 | 20463 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20464 *${as_nl}ac_space=\ *) 20465 # 'set' does not quote correctly, so add quotes: double-quote 20466 # substitution turns \\\\ into \\, and sed turns \\ into \. 20467 sed -n \ 20468 "s/'/'\\\\''/g; 20469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20470 ;; #( 20471 *) 20472 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20474 ;; 20475 esac | 20476 sort 20477) | 20478 sed ' 20479 /^ac_cv_env_/b end 20480 t clear 20481 :clear 20482 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20483 t end 20484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20485 :end' >>confcache 20486if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20487 if test -w "$cache_file"; then 20488 if test "x$cache_file" != "x/dev/null"; then 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20490printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20491 if test ! -f "$cache_file" || test -h "$cache_file"; then 20492 cat confcache >"$cache_file" 20493 else 20494 case $cache_file in #( 20495 */* | ?:*) 20496 mv -f confcache "$cache_file"$$ && 20497 mv -f "$cache_file"$$ "$cache_file" ;; #( 20498 *) 20499 mv -f confcache "$cache_file" ;; 20500 esac 20501 fi 20502 fi 20503 else 20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20505printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20506 fi 20507fi 20508rm -f confcache 20509 20510test "x$prefix" = xNONE && prefix=$ac_default_prefix 20511# Let make expand exec_prefix. 20512test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20513 20514DEFS=-DHAVE_CONFIG_H 20515 20516ac_libobjs= 20517ac_ltlibobjs= 20518U= 20519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20520 # 1. Remove the extension, and $U if already installed. 20521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20522 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20524 # will be set to the directory where LIBOBJS objects are built. 20525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20527done 20528LIBOBJS=$ac_libobjs 20529 20530LTLIBOBJS=$ac_ltlibobjs 20531 20532 20533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20534printf %s "checking that generated files are newer than configure... " >&6; } 20535 if test -n "$am_sleep_pid"; then 20536 # Hide warnings about reused PIDs. 20537 wait $am_sleep_pid 2>/dev/null 20538 fi 20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20540printf "%s\n" "done" >&6; } 20541case $enable_silent_rules in # ((( 20542 yes) AM_DEFAULT_VERBOSITY=0;; 20543 no) AM_DEFAULT_VERBOSITY=1;; 20544esac 20545if test $am_cv_make_support_nested_variables = yes; then 20546 AM_V='$(V)' 20547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20548else 20549 AM_V=$AM_DEFAULT_VERBOSITY 20550 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20551fi 20552 20553 if test -n "$EXEEXT"; then 20554 am__EXEEXT_TRUE= 20555 am__EXEEXT_FALSE='#' 20556else 20557 am__EXEEXT_TRUE='#' 20558 am__EXEEXT_FALSE= 20559fi 20560 20561if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20562 as_fn_error $? "conditional \"AMDEP\" was never defined. 20563Usually this means the macro was only invoked conditionally." "$LINENO" 5 20564fi 20565if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20566 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20567Usually this means the macro was only invoked conditionally." "$LINENO" 5 20568fi 20569 20570: "${CONFIG_STATUS=./config.status}" 20571ac_write_fail=0 20572ac_clean_files_save=$ac_clean_files 20573ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20575printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20576as_write_fail=0 20577cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20578#! $SHELL 20579# Generated by $as_me. 20580# Run this file to recreate the current configuration. 20581# Compiler output produced by configure, useful for debugging 20582# configure, is in config.log if it exists. 20583 20584debug=false 20585ac_cs_recheck=false 20586ac_cs_silent=false 20587 20588SHELL=\${CONFIG_SHELL-$SHELL} 20589export SHELL 20590_ASEOF 20591cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20592## -------------------- ## 20593## M4sh Initialization. ## 20594## -------------------- ## 20595 20596# Be more Bourne compatible 20597DUALCASE=1; export DUALCASE # for MKS sh 20598if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20599then : 20600 emulate sh 20601 NULLCMD=: 20602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20603 # is contrary to our usage. Disable this feature. 20604 alias -g '${1+"$@"}'='"$@"' 20605 setopt NO_GLOB_SUBST 20606else case e in #( 20607 e) case `(set -o) 2>/dev/null` in #( 20608 *posix*) : 20609 set -o posix ;; #( 20610 *) : 20611 ;; 20612esac ;; 20613esac 20614fi 20615 20616 20617 20618# Reset variables that may have inherited troublesome values from 20619# the environment. 20620 20621# IFS needs to be set, to space, tab, and newline, in precisely that order. 20622# (If _AS_PATH_WALK were called with IFS unset, it would have the 20623# side effect of setting IFS to empty, thus disabling word splitting.) 20624# Quoting is to prevent editors from complaining about space-tab. 20625as_nl=' 20626' 20627export as_nl 20628IFS=" "" $as_nl" 20629 20630PS1='$ ' 20631PS2='> ' 20632PS4='+ ' 20633 20634# Ensure predictable behavior from utilities with locale-dependent output. 20635LC_ALL=C 20636export LC_ALL 20637LANGUAGE=C 20638export LANGUAGE 20639 20640# We cannot yet rely on "unset" to work, but we need these variables 20641# to be unset--not just set to an empty or harmless value--now, to 20642# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20643# also avoids known problems related to "unset" and subshell syntax 20644# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20645for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20646do eval test \${$as_var+y} \ 20647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20648done 20649 20650# Ensure that fds 0, 1, and 2 are open. 20651if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20652if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20653if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20654 20655# The user is always right. 20656if ${PATH_SEPARATOR+false} :; then 20657 PATH_SEPARATOR=: 20658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20660 PATH_SEPARATOR=';' 20661 } 20662fi 20663 20664 20665# Find who we are. Look in the path if we contain no directory separator. 20666as_myself= 20667case $0 in #(( 20668 *[\\/]* ) as_myself=$0 ;; 20669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20670for as_dir in $PATH 20671do 20672 IFS=$as_save_IFS 20673 case $as_dir in #((( 20674 '') as_dir=./ ;; 20675 */) ;; 20676 *) as_dir=$as_dir/ ;; 20677 esac 20678 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20679 done 20680IFS=$as_save_IFS 20681 20682 ;; 20683esac 20684# We did not find ourselves, most probably we were run as 'sh COMMAND' 20685# in which case we are not to be found in the path. 20686if test "x$as_myself" = x; then 20687 as_myself=$0 20688fi 20689if test ! -f "$as_myself"; then 20690 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20691 exit 1 20692fi 20693 20694 20695 20696# as_fn_error STATUS ERROR [LINENO LOG_FD] 20697# ---------------------------------------- 20698# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20699# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20700# script with STATUS, using 1 if that was 0. 20701as_fn_error () 20702{ 20703 as_status=$1; test $as_status -eq 0 && as_status=1 20704 if test "$4"; then 20705 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20707 fi 20708 printf "%s\n" "$as_me: error: $2" >&2 20709 as_fn_exit $as_status 20710} # as_fn_error 20711 20712 20713# as_fn_set_status STATUS 20714# ----------------------- 20715# Set $? to STATUS, without forking. 20716as_fn_set_status () 20717{ 20718 return $1 20719} # as_fn_set_status 20720 20721# as_fn_exit STATUS 20722# ----------------- 20723# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20724as_fn_exit () 20725{ 20726 set +e 20727 as_fn_set_status $1 20728 exit $1 20729} # as_fn_exit 20730 20731# as_fn_unset VAR 20732# --------------- 20733# Portably unset VAR. 20734as_fn_unset () 20735{ 20736 { eval $1=; unset $1;} 20737} 20738as_unset=as_fn_unset 20739 20740# as_fn_append VAR VALUE 20741# ---------------------- 20742# Append the text in VALUE to the end of the definition contained in VAR. Take 20743# advantage of any shell optimizations that allow amortized linear growth over 20744# repeated appends, instead of the typical quadratic growth present in naive 20745# implementations. 20746if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20747then : 20748 eval 'as_fn_append () 20749 { 20750 eval $1+=\$2 20751 }' 20752else case e in #( 20753 e) as_fn_append () 20754 { 20755 eval $1=\$$1\$2 20756 } ;; 20757esac 20758fi # as_fn_append 20759 20760# as_fn_arith ARG... 20761# ------------------ 20762# Perform arithmetic evaluation on the ARGs, and store the result in the 20763# global $as_val. Take advantage of shells that can avoid forks. The arguments 20764# must be portable across $(()) and expr. 20765if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20766then : 20767 eval 'as_fn_arith () 20768 { 20769 as_val=$(( $* )) 20770 }' 20771else case e in #( 20772 e) as_fn_arith () 20773 { 20774 as_val=`expr "$@" || test $? -eq 1` 20775 } ;; 20776esac 20777fi # as_fn_arith 20778 20779 20780if expr a : '\(a\)' >/dev/null 2>&1 && 20781 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20782 as_expr=expr 20783else 20784 as_expr=false 20785fi 20786 20787if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20788 as_basename=basename 20789else 20790 as_basename=false 20791fi 20792 20793if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20794 as_dirname=dirname 20795else 20796 as_dirname=false 20797fi 20798 20799as_me=`$as_basename -- "$0" || 20800$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20801 X"$0" : 'X\(//\)$' \| \ 20802 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20803printf "%s\n" X/"$0" | 20804 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20805 s//\1/ 20806 q 20807 } 20808 /^X\/\(\/\/\)$/{ 20809 s//\1/ 20810 q 20811 } 20812 /^X\/\(\/\).*/{ 20813 s//\1/ 20814 q 20815 } 20816 s/.*/./; q'` 20817 20818# Avoid depending upon Character Ranges. 20819as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20820as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20821as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20822as_cr_digits='0123456789' 20823as_cr_alnum=$as_cr_Letters$as_cr_digits 20824 20825 20826# Determine whether it's possible to make 'echo' print without a newline. 20827# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20828# for compatibility with existing Makefiles. 20829ECHO_C= ECHO_N= ECHO_T= 20830case `echo -n x` in #((((( 20831-n*) 20832 case `echo 'xy\c'` in 20833 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20834 xy) ECHO_C='\c';; 20835 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20836 ECHO_T=' ';; 20837 esac;; 20838*) 20839 ECHO_N='-n';; 20840esac 20841 20842# For backward compatibility with old third-party macros, we provide 20843# the shell variables $as_echo and $as_echo_n. New code should use 20844# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20845as_echo='printf %s\n' 20846as_echo_n='printf %s' 20847 20848rm -f conf$$ conf$$.exe conf$$.file 20849if test -d conf$$.dir; then 20850 rm -f conf$$.dir/conf$$.file 20851else 20852 rm -f conf$$.dir 20853 mkdir conf$$.dir 2>/dev/null 20854fi 20855if (echo >conf$$.file) 2>/dev/null; then 20856 if ln -s conf$$.file conf$$ 2>/dev/null; then 20857 as_ln_s='ln -s' 20858 # ... but there are two gotchas: 20859 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20860 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20861 # In both cases, we have to default to 'cp -pR'. 20862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20863 as_ln_s='cp -pR' 20864 elif ln conf$$.file conf$$ 2>/dev/null; then 20865 as_ln_s=ln 20866 else 20867 as_ln_s='cp -pR' 20868 fi 20869else 20870 as_ln_s='cp -pR' 20871fi 20872rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20873rmdir conf$$.dir 2>/dev/null 20874 20875 20876# as_fn_mkdir_p 20877# ------------- 20878# Create "$as_dir" as a directory, including parents if necessary. 20879as_fn_mkdir_p () 20880{ 20881 20882 case $as_dir in #( 20883 -*) as_dir=./$as_dir;; 20884 esac 20885 test -d "$as_dir" || eval $as_mkdir_p || { 20886 as_dirs= 20887 while :; do 20888 case $as_dir in #( 20889 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20890 *) as_qdir=$as_dir;; 20891 esac 20892 as_dirs="'$as_qdir' $as_dirs" 20893 as_dir=`$as_dirname -- "$as_dir" || 20894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20895 X"$as_dir" : 'X\(//\)[^/]' \| \ 20896 X"$as_dir" : 'X\(//\)$' \| \ 20897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20898printf "%s\n" X"$as_dir" | 20899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20900 s//\1/ 20901 q 20902 } 20903 /^X\(\/\/\)[^/].*/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\/\)$/{ 20908 s//\1/ 20909 q 20910 } 20911 /^X\(\/\).*/{ 20912 s//\1/ 20913 q 20914 } 20915 s/.*/./; q'` 20916 test -d "$as_dir" && break 20917 done 20918 test -z "$as_dirs" || eval "mkdir $as_dirs" 20919 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20920 20921 20922} # as_fn_mkdir_p 20923if mkdir -p . 2>/dev/null; then 20924 as_mkdir_p='mkdir -p "$as_dir"' 20925else 20926 test -d ./-p && rmdir ./-p 20927 as_mkdir_p=false 20928fi 20929 20930 20931# as_fn_executable_p FILE 20932# ----------------------- 20933# Test if FILE is an executable regular file. 20934as_fn_executable_p () 20935{ 20936 test -f "$1" && test -x "$1" 20937} # as_fn_executable_p 20938as_test_x='test -x' 20939as_executable_p=as_fn_executable_p 20940 20941# Sed expression to map a string onto a valid CPP name. 20942as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20943as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20944 20945# Sed expression to map a string onto a valid variable name. 20946as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20947as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20948 20949 20950exec 6>&1 20951## ----------------------------------- ## 20952## Main body of $CONFIG_STATUS script. ## 20953## ----------------------------------- ## 20954_ASEOF 20955test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20956 20957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20958# Save the log message, to keep $0 and so on meaningful, and to 20959# report actual input values of CONFIG_FILES etc. instead of their 20960# values after options handling. 20961ac_log=" 20962This file was extended by libXxf86vm $as_me 1.1.6, which was 20963generated by GNU Autoconf 2.72. Invocation command line was 20964 20965 CONFIG_FILES = $CONFIG_FILES 20966 CONFIG_HEADERS = $CONFIG_HEADERS 20967 CONFIG_LINKS = $CONFIG_LINKS 20968 CONFIG_COMMANDS = $CONFIG_COMMANDS 20969 $ $0 $@ 20970 20971on `(hostname || uname -n) 2>/dev/null | sed 1q` 20972" 20973 20974_ACEOF 20975 20976case $ac_config_files in *" 20977"*) set x $ac_config_files; shift; ac_config_files=$*;; 20978esac 20979 20980case $ac_config_headers in *" 20981"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20982esac 20983 20984 20985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20986# Files that config.status was made for. 20987config_files="$ac_config_files" 20988config_headers="$ac_config_headers" 20989config_commands="$ac_config_commands" 20990 20991_ACEOF 20992 20993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20994ac_cs_usage="\ 20995'$as_me' instantiates files and other configuration actions 20996from templates according to the current configuration. Unless the files 20997and actions are specified as TAGs, all are instantiated by default. 20998 20999Usage: $0 [OPTION]... [TAG]... 21000 21001 -h, --help print this help, then exit 21002 -V, --version print version number and configuration settings, then exit 21003 --config print configuration, then exit 21004 -q, --quiet, --silent 21005 do not print progress messages 21006 -d, --debug don't remove temporary files 21007 --recheck update $as_me by reconfiguring in the same conditions 21008 --file=FILE[:TEMPLATE] 21009 instantiate the configuration file FILE 21010 --header=FILE[:TEMPLATE] 21011 instantiate the configuration header FILE 21012 21013Configuration files: 21014$config_files 21015 21016Configuration headers: 21017$config_headers 21018 21019Configuration commands: 21020$config_commands 21021 21022Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>." 21023 21024_ACEOF 21025ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21026ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21028ac_cs_config='$ac_cs_config_escaped' 21029ac_cs_version="\\ 21030libXxf86vm config.status 1.1.6 21031configured by $0, generated by GNU Autoconf 2.72, 21032 with options \\"\$ac_cs_config\\" 21033 21034Copyright (C) 2023 Free Software Foundation, Inc. 21035This config.status script is free software; the Free Software Foundation 21036gives unlimited permission to copy, distribute and modify it." 21037 21038ac_pwd='$ac_pwd' 21039srcdir='$srcdir' 21040INSTALL='$INSTALL' 21041MKDIR_P='$MKDIR_P' 21042AWK='$AWK' 21043test -n "\$AWK" || AWK=awk 21044_ACEOF 21045 21046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21047# The default lists apply if the user does not specify any file. 21048ac_need_defaults=: 21049while test $# != 0 21050do 21051 case $1 in 21052 --*=?*) 21053 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21054 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21055 ac_shift=: 21056 ;; 21057 --*=) 21058 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21059 ac_optarg= 21060 ac_shift=: 21061 ;; 21062 *) 21063 ac_option=$1 21064 ac_optarg=$2 21065 ac_shift=shift 21066 ;; 21067 esac 21068 21069 case $ac_option in 21070 # Handling of the options. 21071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21072 ac_cs_recheck=: ;; 21073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21074 printf "%s\n" "$ac_cs_version"; exit ;; 21075 --config | --confi | --conf | --con | --co | --c ) 21076 printf "%s\n" "$ac_cs_config"; exit ;; 21077 --debug | --debu | --deb | --de | --d | -d ) 21078 debug=: ;; 21079 --file | --fil | --fi | --f ) 21080 $ac_shift 21081 case $ac_optarg in 21082 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21083 '') as_fn_error $? "missing file argument" ;; 21084 esac 21085 as_fn_append CONFIG_FILES " '$ac_optarg'" 21086 ac_need_defaults=false;; 21087 --header | --heade | --head | --hea ) 21088 $ac_shift 21089 case $ac_optarg in 21090 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21091 esac 21092 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21093 ac_need_defaults=false;; 21094 --he | --h) 21095 # Conflict between --help and --header 21096 as_fn_error $? "ambiguous option: '$1' 21097Try '$0 --help' for more information.";; 21098 --help | --hel | -h ) 21099 printf "%s\n" "$ac_cs_usage"; exit ;; 21100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21101 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21102 ac_cs_silent=: ;; 21103 21104 # This is an error. 21105 -*) as_fn_error $? "unrecognized option: '$1' 21106Try '$0 --help' for more information." ;; 21107 21108 *) as_fn_append ac_config_targets " $1" 21109 ac_need_defaults=false ;; 21110 21111 esac 21112 shift 21113done 21114 21115ac_configure_extra_args= 21116 21117if $ac_cs_silent; then 21118 exec 6>/dev/null 21119 ac_configure_extra_args="$ac_configure_extra_args --silent" 21120fi 21121 21122_ACEOF 21123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21124if \$ac_cs_recheck; then 21125 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21126 shift 21127 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21128 CONFIG_SHELL='$SHELL' 21129 export CONFIG_SHELL 21130 exec "\$@" 21131fi 21132 21133_ACEOF 21134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21135exec 5>>config.log 21136{ 21137 echo 21138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21139## Running $as_me. ## 21140_ASBOX 21141 printf "%s\n" "$ac_log" 21142} >&5 21143 21144_ACEOF 21145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21146# 21147# INIT-COMMANDS 21148# 21149AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21150 21151 21152# The HP-UX ksh and POSIX shell print the target directory to stdout 21153# if CDPATH is set. 21154(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21155 21156sed_quote_subst='$sed_quote_subst' 21157double_quote_subst='$double_quote_subst' 21158delay_variable_subst='$delay_variable_subst' 21159macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21160macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21161enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21162enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21163pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21164enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21165shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21166SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21167ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21168PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21169host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21170host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21171host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21172build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21173build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21174build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21175SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21176Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21177GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21178EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21179FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21180LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21181NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21182LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21183max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21184ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21185exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21186lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21187lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21188lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21189lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21190lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21191reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21192reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21193FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21194OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21195deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21196file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21197file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21198want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21199DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21200sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21201AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21202lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21203AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21204archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21205STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21206RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21207old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21208old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21209old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21210lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21211CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21212CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21213compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21214GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21215lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21216lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21217lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21218lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21219lt_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"`' 21220lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21221nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21222lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21223lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21224objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21225MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21226lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21227lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21228lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21229lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21230lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21231need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21232MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21233DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21234NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21235LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21236OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21237OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21238libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21239shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21240extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21241archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21242enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21243export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21244whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21245compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21246old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21247old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21248archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21249archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21250module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21251module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21252with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21253allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21254no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21255hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21256hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21257hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21258hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21259hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21260hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21261hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21262inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21263link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21264always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21265export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21266exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21267include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21268prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21269postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21270file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21271variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21272need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21273need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21274version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21275runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21276shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21277shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21278libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21279library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21280soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21281install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21282postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21283postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21284finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21285finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21286hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21287sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21288configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21289configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21290hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21291enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21292enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21293enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21294old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21295striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21296 21297LTCC='$LTCC' 21298LTCFLAGS='$LTCFLAGS' 21299compiler='$compiler_DEFAULT' 21300 21301# A function that is used when there is no print builtin or printf. 21302func_fallback_echo () 21303{ 21304 eval 'cat <<_LTECHO_EOF 21305\$1 21306_LTECHO_EOF' 21307} 21308 21309# Quote evaled strings. 21310for var in SHELL \ 21311ECHO \ 21312PATH_SEPARATOR \ 21313SED \ 21314GREP \ 21315EGREP \ 21316FGREP \ 21317LD \ 21318NM \ 21319LN_S \ 21320lt_SP2NL \ 21321lt_NL2SP \ 21322reload_flag \ 21323FILECMD \ 21324OBJDUMP \ 21325deplibs_check_method \ 21326file_magic_cmd \ 21327file_magic_glob \ 21328want_nocaseglob \ 21329DLLTOOL \ 21330sharedlib_from_linklib_cmd \ 21331AR \ 21332archiver_list_spec \ 21333STRIP \ 21334RANLIB \ 21335CC \ 21336CFLAGS \ 21337compiler \ 21338lt_cv_sys_global_symbol_pipe \ 21339lt_cv_sys_global_symbol_to_cdecl \ 21340lt_cv_sys_global_symbol_to_import \ 21341lt_cv_sys_global_symbol_to_c_name_address \ 21342lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21343lt_cv_nm_interface \ 21344nm_file_list_spec \ 21345lt_cv_truncate_bin \ 21346lt_prog_compiler_no_builtin_flag \ 21347lt_prog_compiler_pic \ 21348lt_prog_compiler_wl \ 21349lt_prog_compiler_static \ 21350lt_cv_prog_compiler_c_o \ 21351need_locks \ 21352MANIFEST_TOOL \ 21353DSYMUTIL \ 21354NMEDIT \ 21355LIPO \ 21356OTOOL \ 21357OTOOL64 \ 21358shrext_cmds \ 21359export_dynamic_flag_spec \ 21360whole_archive_flag_spec \ 21361compiler_needs_object \ 21362with_gnu_ld \ 21363allow_undefined_flag \ 21364no_undefined_flag \ 21365hardcode_libdir_flag_spec \ 21366hardcode_libdir_separator \ 21367exclude_expsyms \ 21368include_expsyms \ 21369file_list_spec \ 21370variables_saved_for_relink \ 21371libname_spec \ 21372library_names_spec \ 21373soname_spec \ 21374install_override_mode \ 21375finish_eval \ 21376old_striplib \ 21377striplib; do 21378 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21379 *[\\\\\\\`\\"\\\$]*) 21380 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21381 ;; 21382 *) 21383 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21384 ;; 21385 esac 21386done 21387 21388# Double-quote double-evaled strings. 21389for var in reload_cmds \ 21390old_postinstall_cmds \ 21391old_postuninstall_cmds \ 21392old_archive_cmds \ 21393extract_expsyms_cmds \ 21394old_archive_from_new_cmds \ 21395old_archive_from_expsyms_cmds \ 21396archive_cmds \ 21397archive_expsym_cmds \ 21398module_cmds \ 21399module_expsym_cmds \ 21400export_symbols_cmds \ 21401prelink_cmds \ 21402postlink_cmds \ 21403postinstall_cmds \ 21404postuninstall_cmds \ 21405finish_cmds \ 21406sys_lib_search_path_spec \ 21407configure_time_dlsearch_path \ 21408configure_time_lt_sys_library_path; do 21409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21410 *[\\\\\\\`\\"\\\$]*) 21411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21412 ;; 21413 *) 21414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21415 ;; 21416 esac 21417done 21418 21419ac_aux_dir='$ac_aux_dir' 21420 21421# See if we are running on zsh, and set the options that allow our 21422# commands through without removal of \ escapes INIT. 21423if test -n "\${ZSH_VERSION+set}"; then 21424 setopt NO_GLOB_SUBST 21425fi 21426 21427 21428 PACKAGE='$PACKAGE' 21429 VERSION='$VERSION' 21430 RM='$RM' 21431 ofile='$ofile' 21432 21433 21434 21435 21436_ACEOF 21437 21438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21439 21440# Handling of arguments. 21441for ac_config_target in $ac_config_targets 21442do 21443 case $ac_config_target in 21444 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21445 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21446 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21447 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21448 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21449 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21450 "xxf86vm.pc") CONFIG_FILES="$CONFIG_FILES xxf86vm.pc" ;; 21451 21452 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21453 esac 21454done 21455 21456 21457# If the user did not use the arguments to specify the items to instantiate, 21458# then the envvar interface is used. Set only those that are not. 21459# We use the long form for the default assignment because of an extremely 21460# bizarre bug on SunOS 4.1.3. 21461if $ac_need_defaults; then 21462 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21463 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21464 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21465fi 21466 21467# Have a temporary directory for convenience. Make it in the build tree 21468# simply because there is no reason against having it here, and in addition, 21469# creating and moving files from /tmp can sometimes cause problems. 21470# Hook for its removal unless debugging. 21471# Note that there is a small window in which the directory will not be cleaned: 21472# after its creation but before its name has been assigned to '$tmp'. 21473$debug || 21474{ 21475 tmp= ac_tmp= 21476 trap 'exit_status=$? 21477 : "${ac_tmp:=$tmp}" 21478 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21479' 0 21480 trap 'as_fn_exit 1' 1 2 13 15 21481} 21482# Create a (secure) tmp directory for tmp files. 21483 21484{ 21485 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21486 test -d "$tmp" 21487} || 21488{ 21489 tmp=./conf$$-$RANDOM 21490 (umask 077 && mkdir "$tmp") 21491} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21492ac_tmp=$tmp 21493 21494# Set up the scripts for CONFIG_FILES section. 21495# No need to generate them if there are no CONFIG_FILES. 21496# This happens for instance with './config.status config.h'. 21497if test -n "$CONFIG_FILES"; then 21498 21499 21500ac_cr=`echo X | tr X '\015'` 21501# On cygwin, bash can eat \r inside `` if the user requested igncr. 21502# But we know of no other shell where ac_cr would be empty at this 21503# point, so we can use a bashism as a fallback. 21504if test "x$ac_cr" = x; then 21505 eval ac_cr=\$\'\\r\' 21506fi 21507ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21508if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21509 ac_cs_awk_cr='\\r' 21510else 21511 ac_cs_awk_cr=$ac_cr 21512fi 21513 21514echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21515_ACEOF 21516 21517 21518{ 21519 echo "cat >conf$$subs.awk <<_ACEOF" && 21520 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21521 echo "_ACEOF" 21522} >conf$$subs.sh || 21523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21524ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21525ac_delim='%!_!# ' 21526for ac_last_try in false false false false false :; do 21527 . ./conf$$subs.sh || 21528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21529 21530 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21531 if test $ac_delim_n = $ac_delim_num; then 21532 break 21533 elif $ac_last_try; then 21534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21535 else 21536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21537 fi 21538done 21539rm -f conf$$subs.sh 21540 21541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21542cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21543_ACEOF 21544sed -n ' 21545h 21546s/^/S["/; s/!.*/"]=/ 21547p 21548g 21549s/^[^!]*!// 21550:repl 21551t repl 21552s/'"$ac_delim"'$// 21553t delim 21554:nl 21555h 21556s/\(.\{148\}\)..*/\1/ 21557t more1 21558s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21559p 21560n 21561b repl 21562:more1 21563s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21564p 21565g 21566s/.\{148\}// 21567t nl 21568:delim 21569h 21570s/\(.\{148\}\)..*/\1/ 21571t more2 21572s/["\\]/\\&/g; s/^/"/; s/$/"/ 21573p 21574b 21575:more2 21576s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21577p 21578g 21579s/.\{148\}// 21580t delim 21581' <conf$$subs.awk | sed ' 21582/^[^""]/{ 21583 N 21584 s/\n// 21585} 21586' >>$CONFIG_STATUS || ac_write_fail=1 21587rm -f conf$$subs.awk 21588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21589_ACAWK 21590cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21591 for (key in S) S_is_set[key] = 1 21592 FS = "" 21593 21594} 21595{ 21596 line = $ 0 21597 nfields = split(line, field, "@") 21598 substed = 0 21599 len = length(field[1]) 21600 for (i = 2; i < nfields; i++) { 21601 key = field[i] 21602 keylen = length(key) 21603 if (S_is_set[key]) { 21604 value = S[key] 21605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21606 len += length(value) + length(field[++i]) 21607 substed = 1 21608 } else 21609 len += 1 + keylen 21610 } 21611 21612 print line 21613} 21614 21615_ACAWK 21616_ACEOF 21617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21618if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21619 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21620else 21621 cat 21622fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21623 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21624_ACEOF 21625 21626# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21627# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21628# trailing colons and then remove the whole line if VPATH becomes empty 21629# (actually we leave an empty line to preserve line numbers). 21630if test "x$srcdir" = x.; then 21631 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21632h 21633s/// 21634s/^/:/ 21635s/[ ]*$/:/ 21636s/:\$(srcdir):/:/g 21637s/:\${srcdir}:/:/g 21638s/:@srcdir@:/:/g 21639s/^:*// 21640s/:*$// 21641x 21642s/\(=[ ]*\).*/\1/ 21643G 21644s/\n// 21645s/^[^=]*=[ ]*$// 21646}' 21647fi 21648 21649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21650fi # test -n "$CONFIG_FILES" 21651 21652# Set up the scripts for CONFIG_HEADERS section. 21653# No need to generate them if there are no CONFIG_HEADERS. 21654# This happens for instance with './config.status Makefile'. 21655if test -n "$CONFIG_HEADERS"; then 21656cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21657BEGIN { 21658_ACEOF 21659 21660# Transform confdefs.h into an awk script 'defines.awk', embedded as 21661# here-document in config.status, that substitutes the proper values into 21662# config.h.in to produce config.h. 21663 21664# Create a delimiter string that does not exist in confdefs.h, to ease 21665# handling of long lines. 21666ac_delim='%!_!# ' 21667for ac_last_try in false false :; do 21668 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21669 if test -z "$ac_tt"; then 21670 break 21671 elif $ac_last_try; then 21672 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21673 else 21674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21675 fi 21676done 21677 21678# For the awk script, D is an array of macro values keyed by name, 21679# likewise P contains macro parameters if any. Preserve backslash 21680# newline sequences. 21681 21682ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21683sed -n ' 21684s/.\{148\}/&'"$ac_delim"'/g 21685t rset 21686:rset 21687s/^[ ]*#[ ]*define[ ][ ]*/ / 21688t def 21689d 21690:def 21691s/\\$// 21692t bsnl 21693s/["\\]/\\&/g 21694s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21695D["\1"]=" \3"/p 21696s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21697d 21698:bsnl 21699s/["\\]/\\&/g 21700s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21701D["\1"]=" \3\\\\\\n"\\/p 21702t cont 21703s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21704t cont 21705d 21706:cont 21707n 21708s/.\{148\}/&'"$ac_delim"'/g 21709t clear 21710:clear 21711s/\\$// 21712t bsnlc 21713s/["\\]/\\&/g; s/^/"/; s/$/"/p 21714d 21715:bsnlc 21716s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21717b cont 21718' <confdefs.h | sed ' 21719s/'"$ac_delim"'/"\\\ 21720"/g' >>$CONFIG_STATUS || ac_write_fail=1 21721 21722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21723 for (key in D) D_is_set[key] = 1 21724 FS = "" 21725} 21726/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21727 line = \$ 0 21728 split(line, arg, " ") 21729 if (arg[1] == "#") { 21730 defundef = arg[2] 21731 mac1 = arg[3] 21732 } else { 21733 defundef = substr(arg[1], 2) 21734 mac1 = arg[2] 21735 } 21736 split(mac1, mac2, "(") #) 21737 macro = mac2[1] 21738 prefix = substr(line, 1, index(line, defundef) - 1) 21739 if (D_is_set[macro]) { 21740 # Preserve the white space surrounding the "#". 21741 print prefix "define", macro P[macro] D[macro] 21742 next 21743 } else { 21744 # Replace #undef with comments. This is necessary, for example, 21745 # in the case of _POSIX_SOURCE, which is predefined and required 21746 # on some systems where configure will not decide to define it. 21747 if (defundef == "undef") { 21748 print "/*", prefix defundef, macro, "*/" 21749 next 21750 } 21751 } 21752} 21753{ print } 21754_ACAWK 21755_ACEOF 21756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21757 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21758fi # test -n "$CONFIG_HEADERS" 21759 21760 21761eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21762shift 21763for ac_tag 21764do 21765 case $ac_tag in 21766 :[FHLC]) ac_mode=$ac_tag; continue;; 21767 esac 21768 case $ac_mode$ac_tag in 21769 :[FHL]*:*);; 21770 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21771 :[FH]-) ac_tag=-:-;; 21772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21773 esac 21774 ac_save_IFS=$IFS 21775 IFS=: 21776 set x $ac_tag 21777 IFS=$ac_save_IFS 21778 shift 21779 ac_file=$1 21780 shift 21781 21782 case $ac_mode in 21783 :L) ac_source=$1;; 21784 :[FH]) 21785 ac_file_inputs= 21786 for ac_f 21787 do 21788 case $ac_f in 21789 -) ac_f="$ac_tmp/stdin";; 21790 *) # Look for the file first in the build tree, then in the source tree 21791 # (if the path is not absolute). The absolute path cannot be DOS-style, 21792 # because $ac_f cannot contain ':'. 21793 test -f "$ac_f" || 21794 case $ac_f in 21795 [\\/$]*) false;; 21796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21797 esac || 21798 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21799 esac 21800 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21801 as_fn_append ac_file_inputs " '$ac_f'" 21802 done 21803 21804 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21805 # use $as_me), people would be surprised to read: 21806 # /* config.h. Generated by config.status. */ 21807 configure_input='Generated from '` 21808 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21809 `' by configure.' 21810 if test x"$ac_file" != x-; then 21811 configure_input="$ac_file. $configure_input" 21812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21813printf "%s\n" "$as_me: creating $ac_file" >&6;} 21814 fi 21815 # Neutralize special characters interpreted by sed in replacement strings. 21816 case $configure_input in #( 21817 *\&* | *\|* | *\\* ) 21818 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21819 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21820 *) ac_sed_conf_input=$configure_input;; 21821 esac 21822 21823 case $ac_tag in 21824 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21826 esac 21827 ;; 21828 esac 21829 21830 ac_dir=`$as_dirname -- "$ac_file" || 21831$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21832 X"$ac_file" : 'X\(//\)[^/]' \| \ 21833 X"$ac_file" : 'X\(//\)$' \| \ 21834 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21835printf "%s\n" X"$ac_file" | 21836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21837 s//\1/ 21838 q 21839 } 21840 /^X\(\/\/\)[^/].*/{ 21841 s//\1/ 21842 q 21843 } 21844 /^X\(\/\/\)$/{ 21845 s//\1/ 21846 q 21847 } 21848 /^X\(\/\).*/{ 21849 s//\1/ 21850 q 21851 } 21852 s/.*/./; q'` 21853 as_dir="$ac_dir"; as_fn_mkdir_p 21854 ac_builddir=. 21855 21856case "$ac_dir" in 21857.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21858*) 21859 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21860 # A ".." for each directory in $ac_dir_suffix. 21861 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21862 case $ac_top_builddir_sub in 21863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21865 esac ;; 21866esac 21867ac_abs_top_builddir=$ac_pwd 21868ac_abs_builddir=$ac_pwd$ac_dir_suffix 21869# for backward compatibility: 21870ac_top_builddir=$ac_top_build_prefix 21871 21872case $srcdir in 21873 .) # We are building in place. 21874 ac_srcdir=. 21875 ac_top_srcdir=$ac_top_builddir_sub 21876 ac_abs_top_srcdir=$ac_pwd ;; 21877 [\\/]* | ?:[\\/]* ) # Absolute name. 21878 ac_srcdir=$srcdir$ac_dir_suffix; 21879 ac_top_srcdir=$srcdir 21880 ac_abs_top_srcdir=$srcdir ;; 21881 *) # Relative name. 21882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21883 ac_top_srcdir=$ac_top_build_prefix$srcdir 21884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21885esac 21886ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21887 21888 21889 case $ac_mode in 21890 :F) 21891 # 21892 # CONFIG_FILE 21893 # 21894 21895 case $INSTALL in 21896 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21897 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21898 esac 21899 ac_MKDIR_P=$MKDIR_P 21900 case $MKDIR_P in 21901 [\\/$]* | ?:[\\/]* ) ;; 21902 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21903 esac 21904_ACEOF 21905 21906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21907# If the template does not know about datarootdir, expand it. 21908# FIXME: This hack should be removed a few years after 2.60. 21909ac_datarootdir_hack=; ac_datarootdir_seen= 21910ac_sed_dataroot=' 21911/datarootdir/ { 21912 p 21913 q 21914} 21915/@datadir@/p 21916/@docdir@/p 21917/@infodir@/p 21918/@localedir@/p 21919/@mandir@/p' 21920case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21921*datarootdir*) ac_datarootdir_seen=yes;; 21922*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21924printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21925_ACEOF 21926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21927 ac_datarootdir_hack=' 21928 s&@datadir@&$datadir&g 21929 s&@docdir@&$docdir&g 21930 s&@infodir@&$infodir&g 21931 s&@localedir@&$localedir&g 21932 s&@mandir@&$mandir&g 21933 s&\\\${datarootdir}&$datarootdir&g' ;; 21934esac 21935_ACEOF 21936 21937# Neutralize VPATH when '$srcdir' = '.'. 21938# Shell code in configure.ac might set extrasub. 21939# FIXME: do we really want to maintain this feature? 21940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21941ac_sed_extra="$ac_vpsub 21942$extrasub 21943_ACEOF 21944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21945:t 21946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21947s|@configure_input@|$ac_sed_conf_input|;t t 21948s&@top_builddir@&$ac_top_builddir_sub&;t t 21949s&@top_build_prefix@&$ac_top_build_prefix&;t t 21950s&@srcdir@&$ac_srcdir&;t t 21951s&@abs_srcdir@&$ac_abs_srcdir&;t t 21952s&@top_srcdir@&$ac_top_srcdir&;t t 21953s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21954s&@builddir@&$ac_builddir&;t t 21955s&@abs_builddir@&$ac_abs_builddir&;t t 21956s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21957s&@INSTALL@&$ac_INSTALL&;t t 21958s&@MKDIR_P@&$ac_MKDIR_P&;t t 21959$ac_datarootdir_hack 21960" 21961eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21962 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21963 21964test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21965 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21967 "$ac_tmp/out"`; test -z "$ac_out"; } && 21968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21969which seems to be undefined. Please make sure it is defined" >&5 21970printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21971which seems to be undefined. Please make sure it is defined" >&2;} 21972 21973 rm -f "$ac_tmp/stdin" 21974 case $ac_file in 21975 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21976 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21977 esac \ 21978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21979 ;; 21980 :H) 21981 # 21982 # CONFIG_HEADER 21983 # 21984 if test x"$ac_file" != x-; then 21985 { 21986 printf "%s\n" "/* $configure_input */" >&1 \ 21987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21988 } >"$ac_tmp/config.h" \ 21989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21990 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21992printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21993 else 21994 rm -f "$ac_file" 21995 mv "$ac_tmp/config.h" "$ac_file" \ 21996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21997 fi 21998 else 21999 printf "%s\n" "/* $configure_input */" >&1 \ 22000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22001 || as_fn_error $? "could not create -" "$LINENO" 5 22002 fi 22003# Compute "$ac_file"'s index in $config_headers. 22004_am_arg="$ac_file" 22005_am_stamp_count=1 22006for _am_header in $config_headers :; do 22007 case $_am_header in 22008 $_am_arg | $_am_arg:* ) 22009 break ;; 22010 * ) 22011 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22012 esac 22013done 22014echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22015$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22016 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22017 X"$_am_arg" : 'X\(//\)$' \| \ 22018 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22019printf "%s\n" X"$_am_arg" | 22020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22021 s//\1/ 22022 q 22023 } 22024 /^X\(\/\/\)[^/].*/{ 22025 s//\1/ 22026 q 22027 } 22028 /^X\(\/\/\)$/{ 22029 s//\1/ 22030 q 22031 } 22032 /^X\(\/\).*/{ 22033 s//\1/ 22034 q 22035 } 22036 s/.*/./; q'`/stamp-h$_am_stamp_count 22037 ;; 22038 22039 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22040printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22041 ;; 22042 esac 22043 22044 22045 case $ac_file$ac_mode in 22046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22047 # Older Autoconf quotes --file arguments for eval, but not when files 22048 # are listed without --file. Let's play safe and only enable the eval 22049 # if we detect the quoting. 22050 # TODO: see whether this extra hack can be removed once we start 22051 # requiring Autoconf 2.70 or later. 22052 case $CONFIG_FILES in #( 22053 *\'*) : 22054 eval set x "$CONFIG_FILES" ;; #( 22055 *) : 22056 set x $CONFIG_FILES ;; #( 22057 *) : 22058 ;; 22059esac 22060 shift 22061 # Used to flag and report bootstrapping failures. 22062 am_rc=0 22063 for am_mf 22064 do 22065 # Strip MF so we end up with the name of the file. 22066 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22067 # Check whether this is an Automake generated Makefile which includes 22068 # dependency-tracking related rules and includes. 22069 # Grep'ing the whole file directly is not great: AIX grep has a line 22070 # limit of 2048, but all sed's we know have understand at least 4000. 22071 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22072 || continue 22073 am_dirpart=`$as_dirname -- "$am_mf" || 22074$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22075 X"$am_mf" : 'X\(//\)[^/]' \| \ 22076 X"$am_mf" : 'X\(//\)$' \| \ 22077 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22078printf "%s\n" X"$am_mf" | 22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22080 s//\1/ 22081 q 22082 } 22083 /^X\(\/\/\)[^/].*/{ 22084 s//\1/ 22085 q 22086 } 22087 /^X\(\/\/\)$/{ 22088 s//\1/ 22089 q 22090 } 22091 /^X\(\/\).*/{ 22092 s//\1/ 22093 q 22094 } 22095 s/.*/./; q'` 22096 am_filepart=`$as_basename -- "$am_mf" || 22097$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22098 X"$am_mf" : 'X\(//\)$' \| \ 22099 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22100printf "%s\n" X/"$am_mf" | 22101 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22102 s//\1/ 22103 q 22104 } 22105 /^X\/\(\/\/\)$/{ 22106 s//\1/ 22107 q 22108 } 22109 /^X\/\(\/\).*/{ 22110 s//\1/ 22111 q 22112 } 22113 s/.*/./; q'` 22114 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22115 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22116 | $MAKE -f - am--depfiles" >&5 22117 (cd "$am_dirpart" \ 22118 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22119 | $MAKE -f - am--depfiles) >&5 2>&5 22120 ac_status=$? 22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22122 (exit $ac_status); } || am_rc=$? 22123 done 22124 if test $am_rc -ne 0; then 22125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22126printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22127as_fn_error $? "Something went wrong bootstrapping makefile fragments 22128 for automatic dependency tracking. If GNU make was not used, consider 22129 re-running the configure script with MAKE=\"gmake\" (or whatever is 22130 necessary). You can also try re-running configure with the 22131 '--disable-dependency-tracking' option to at least be able to build 22132 the package (albeit without support for automatic dependency tracking). 22133See 'config.log' for more details" "$LINENO" 5; } 22134 fi 22135 { am_dirpart=; unset am_dirpart;} 22136 { am_filepart=; unset am_filepart;} 22137 { am_mf=; unset am_mf;} 22138 { am_rc=; unset am_rc;} 22139 rm -f conftest-deps.mk 22140} 22141 ;; 22142 "libtool":C) 22143 22144 # See if we are running on zsh, and set the options that allow our 22145 # commands through without removal of \ escapes. 22146 if test -n "${ZSH_VERSION+set}"; then 22147 setopt NO_GLOB_SUBST 22148 fi 22149 22150 cfgfile=${ofile}T 22151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22152 $RM "$cfgfile" 22153 22154 cat <<_LT_EOF >> "$cfgfile" 22155#! $SHELL 22156# Generated automatically by $as_me ($PACKAGE) $VERSION 22157# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22158 22159# Provide generalized library-building support services. 22160# Written by Gordon Matzigkeit, 1996 22161 22162# Copyright (C) 2024 Free Software Foundation, Inc. 22163# This is free software; see the source for copying conditions. There is NO 22164# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22165 22166# GNU Libtool is free software; you can redistribute it and/or modify 22167# it under the terms of the GNU General Public License as published by 22168# the Free Software Foundation; either version 2 of the License, or 22169# (at your option) any later version. 22170# 22171# As a special exception to the GNU General Public License, if you 22172# distribute this file as part of a program or library that is built 22173# using GNU Libtool, you may include this file under the same 22174# distribution terms that you use for the rest of that program. 22175# 22176# GNU Libtool is distributed in the hope that it will be useful, but 22177# WITHOUT ANY WARRANTY; without even the implied warranty of 22178# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22179# GNU General Public License for more details. 22180# 22181# You should have received a copy of the GNU General Public License 22182# along with this program. If not, see <http://www.gnu.org/licenses/>. 22183 22184 22185# The names of the tagged configurations supported by this script. 22186available_tags='' 22187 22188# Configured defaults for sys_lib_dlsearch_path munging. 22189: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22190 22191# ### BEGIN LIBTOOL CONFIG 22192 22193# Which release of libtool.m4 was used? 22194macro_version=$macro_version 22195macro_revision=$macro_revision 22196 22197# Whether or not to build shared libraries. 22198build_libtool_libs=$enable_shared 22199 22200# Whether or not to build static libraries. 22201build_old_libs=$enable_static 22202 22203# What type of objects to build. 22204pic_mode=$pic_mode 22205 22206# Whether or not to optimize for fast installation. 22207fast_install=$enable_fast_install 22208 22209# Shared archive member basename,for filename based shared library versioning on AIX. 22210shared_archive_member_spec=$shared_archive_member_spec 22211 22212# Shell to use when invoking shell scripts. 22213SHELL=$lt_SHELL 22214 22215# An echo program that protects backslashes. 22216ECHO=$lt_ECHO 22217 22218# The PATH separator for the build system. 22219PATH_SEPARATOR=$lt_PATH_SEPARATOR 22220 22221# The host system. 22222host_alias=$host_alias 22223host=$host 22224host_os=$host_os 22225 22226# The build system. 22227build_alias=$build_alias 22228build=$build 22229build_os=$build_os 22230 22231# A sed program that does not truncate output. 22232SED=$lt_SED 22233 22234# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22235Xsed="\$SED -e 1s/^X//" 22236 22237# A grep program that handles long lines. 22238GREP=$lt_GREP 22239 22240# An ERE matcher. 22241EGREP=$lt_EGREP 22242 22243# A literal string matcher. 22244FGREP=$lt_FGREP 22245 22246# A BSD- or MS-compatible name lister. 22247NM=$lt_NM 22248 22249# Whether we need soft or hard links. 22250LN_S=$lt_LN_S 22251 22252# What is the maximum length of a command? 22253max_cmd_len=$max_cmd_len 22254 22255# Object file suffix (normally "o"). 22256objext=$ac_objext 22257 22258# Executable file suffix (normally ""). 22259exeext=$exeext 22260 22261# whether the shell understands "unset". 22262lt_unset=$lt_unset 22263 22264# turn spaces into newlines. 22265SP2NL=$lt_lt_SP2NL 22266 22267# turn newlines into spaces. 22268NL2SP=$lt_lt_NL2SP 22269 22270# convert \$build file names to \$host format. 22271to_host_file_cmd=$lt_cv_to_host_file_cmd 22272 22273# convert \$build files to toolchain format. 22274to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22275 22276# A file(cmd) program that detects file types. 22277FILECMD=$lt_FILECMD 22278 22279# An object symbol dumper. 22280OBJDUMP=$lt_OBJDUMP 22281 22282# Method to check whether dependent libraries are shared objects. 22283deplibs_check_method=$lt_deplibs_check_method 22284 22285# Command to use when deplibs_check_method = "file_magic". 22286file_magic_cmd=$lt_file_magic_cmd 22287 22288# How to find potential files when deplibs_check_method = "file_magic". 22289file_magic_glob=$lt_file_magic_glob 22290 22291# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22292want_nocaseglob=$lt_want_nocaseglob 22293 22294# DLL creation program. 22295DLLTOOL=$lt_DLLTOOL 22296 22297# Command to associate shared and link libraries. 22298sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22299 22300# The archiver. 22301AR=$lt_AR 22302 22303# Flags to create an archive (by configure). 22304lt_ar_flags=$lt_ar_flags 22305 22306# Flags to create an archive. 22307AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22308 22309# How to feed a file listing to the archiver. 22310archiver_list_spec=$lt_archiver_list_spec 22311 22312# A symbol stripping program. 22313STRIP=$lt_STRIP 22314 22315# Commands used to install an old-style archive. 22316RANLIB=$lt_RANLIB 22317old_postinstall_cmds=$lt_old_postinstall_cmds 22318old_postuninstall_cmds=$lt_old_postuninstall_cmds 22319 22320# Whether to use a lock for old archive extraction. 22321lock_old_archive_extraction=$lock_old_archive_extraction 22322 22323# A C compiler. 22324LTCC=$lt_CC 22325 22326# LTCC compiler flags. 22327LTCFLAGS=$lt_CFLAGS 22328 22329# Take the output of nm and produce a listing of raw symbols and C names. 22330global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22331 22332# Transform the output of nm in a proper C declaration. 22333global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22334 22335# Transform the output of nm into a list of symbols to manually relocate. 22336global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22337 22338# Transform the output of nm in a C name address pair. 22339global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22340 22341# Transform the output of nm in a C name address pair when lib prefix is needed. 22342global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22343 22344# The name lister interface. 22345nm_interface=$lt_lt_cv_nm_interface 22346 22347# Specify filename containing input files for \$NM. 22348nm_file_list_spec=$lt_nm_file_list_spec 22349 22350# The root where to search for dependent libraries,and where our libraries should be installed. 22351lt_sysroot=$lt_sysroot 22352 22353# Command to truncate a binary pipe. 22354lt_truncate_bin=$lt_lt_cv_truncate_bin 22355 22356# The name of the directory that contains temporary libtool files. 22357objdir=$objdir 22358 22359# Used to examine libraries when file_magic_cmd begins with "file". 22360MAGIC_CMD=$MAGIC_CMD 22361 22362# Must we lock files when doing compilation? 22363need_locks=$lt_need_locks 22364 22365# Manifest tool. 22366MANIFEST_TOOL=$lt_MANIFEST_TOOL 22367 22368# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22369DSYMUTIL=$lt_DSYMUTIL 22370 22371# Tool to change global to local symbols on Mac OS X. 22372NMEDIT=$lt_NMEDIT 22373 22374# Tool to manipulate fat objects and archives on Mac OS X. 22375LIPO=$lt_LIPO 22376 22377# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22378OTOOL=$lt_OTOOL 22379 22380# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22381OTOOL64=$lt_OTOOL64 22382 22383# Old archive suffix (normally "a"). 22384libext=$libext 22385 22386# Shared library suffix (normally ".so"). 22387shrext_cmds=$lt_shrext_cmds 22388 22389# The commands to extract the exported symbol list from a shared archive. 22390extract_expsyms_cmds=$lt_extract_expsyms_cmds 22391 22392# Variables whose values should be saved in libtool wrapper scripts and 22393# restored at link time. 22394variables_saved_for_relink=$lt_variables_saved_for_relink 22395 22396# Do we need the "lib" prefix for modules? 22397need_lib_prefix=$need_lib_prefix 22398 22399# Do we need a version for libraries? 22400need_version=$need_version 22401 22402# Library versioning type. 22403version_type=$version_type 22404 22405# Shared library runtime path variable. 22406runpath_var=$runpath_var 22407 22408# Shared library path variable. 22409shlibpath_var=$shlibpath_var 22410 22411# Is shlibpath searched before the hard-coded library search path? 22412shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22413 22414# Format of library name prefix. 22415libname_spec=$lt_libname_spec 22416 22417# List of archive names. First name is the real one, the rest are links. 22418# The last name is the one that the linker finds with -lNAME 22419library_names_spec=$lt_library_names_spec 22420 22421# The coded name of the library, if different from the real name. 22422soname_spec=$lt_soname_spec 22423 22424# Permission mode override for installation of shared libraries. 22425install_override_mode=$lt_install_override_mode 22426 22427# Command to use after installation of a shared archive. 22428postinstall_cmds=$lt_postinstall_cmds 22429 22430# Command to use after uninstallation of a shared archive. 22431postuninstall_cmds=$lt_postuninstall_cmds 22432 22433# Commands used to finish a libtool library installation in a directory. 22434finish_cmds=$lt_finish_cmds 22435 22436# As "finish_cmds", except a single script fragment to be evaled but 22437# not shown. 22438finish_eval=$lt_finish_eval 22439 22440# Whether we should hardcode library paths into libraries. 22441hardcode_into_libs=$hardcode_into_libs 22442 22443# Compile-time system search path for libraries. 22444sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22445 22446# Detected run-time system search path for libraries. 22447sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22448 22449# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22450configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22451 22452# Whether dlopen is supported. 22453dlopen_support=$enable_dlopen 22454 22455# Whether dlopen of programs is supported. 22456dlopen_self=$enable_dlopen_self 22457 22458# Whether dlopen of statically linked programs is supported. 22459dlopen_self_static=$enable_dlopen_self_static 22460 22461# Commands to strip libraries. 22462old_striplib=$lt_old_striplib 22463striplib=$lt_striplib 22464 22465 22466# The linker used to build libraries. 22467LD=$lt_LD 22468 22469# How to create reloadable object files. 22470reload_flag=$lt_reload_flag 22471reload_cmds=$lt_reload_cmds 22472 22473# Commands used to build an old-style archive. 22474old_archive_cmds=$lt_old_archive_cmds 22475 22476# A language specific compiler. 22477CC=$lt_compiler 22478 22479# Is the compiler the GNU compiler? 22480with_gcc=$GCC 22481 22482# Compiler flag to turn off builtin functions. 22483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22484 22485# Additional compiler flags for building library objects. 22486pic_flag=$lt_lt_prog_compiler_pic 22487 22488# How to pass a linker flag through the compiler. 22489wl=$lt_lt_prog_compiler_wl 22490 22491# Compiler flag to prevent dynamic linking. 22492link_static_flag=$lt_lt_prog_compiler_static 22493 22494# Does compiler simultaneously support -c and -o options? 22495compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22496 22497# Whether or not to add -lc for building shared libraries. 22498build_libtool_need_lc=$archive_cmds_need_lc 22499 22500# Whether or not to disallow shared libs when runtime libs are static. 22501allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22502 22503# Compiler flag to allow reflexive dlopens. 22504export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22505 22506# Compiler flag to generate shared objects directly from archives. 22507whole_archive_flag_spec=$lt_whole_archive_flag_spec 22508 22509# Whether the compiler copes with passing no objects directly. 22510compiler_needs_object=$lt_compiler_needs_object 22511 22512# Create an old-style archive from a shared archive. 22513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22514 22515# Create a temporary old-style archive to link instead of a shared archive. 22516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22517 22518# Commands used to build a shared archive. 22519archive_cmds=$lt_archive_cmds 22520archive_expsym_cmds=$lt_archive_expsym_cmds 22521 22522# Commands used to build a loadable module if different from building 22523# a shared archive. 22524module_cmds=$lt_module_cmds 22525module_expsym_cmds=$lt_module_expsym_cmds 22526 22527# Whether we are building with GNU ld or not. 22528with_gnu_ld=$lt_with_gnu_ld 22529 22530# Flag that allows shared libraries with undefined symbols to be built. 22531allow_undefined_flag=$lt_allow_undefined_flag 22532 22533# Flag that enforces no undefined symbols. 22534no_undefined_flag=$lt_no_undefined_flag 22535 22536# Flag to hardcode \$libdir into a binary during linking. 22537# This must work even if \$libdir does not exist 22538hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22539 22540# Whether we need a single "-rpath" flag with a separated argument. 22541hardcode_libdir_separator=$lt_hardcode_libdir_separator 22542 22543# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22544# DIR into the resulting binary. 22545hardcode_direct=$hardcode_direct 22546 22547# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22548# DIR into the resulting binary and the resulting library dependency is 22549# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22550# library is relocated. 22551hardcode_direct_absolute=$hardcode_direct_absolute 22552 22553# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22554# into the resulting binary. 22555hardcode_minus_L=$hardcode_minus_L 22556 22557# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22558# into the resulting binary. 22559hardcode_shlibpath_var=$hardcode_shlibpath_var 22560 22561# Set to "yes" if building a shared library automatically hardcodes DIR 22562# into the library and all subsequent libraries and executables linked 22563# against it. 22564hardcode_automatic=$hardcode_automatic 22565 22566# Set to yes if linker adds runtime paths of dependent libraries 22567# to runtime path list. 22568inherit_rpath=$inherit_rpath 22569 22570# Whether libtool must link a program against all its dependency libraries. 22571link_all_deplibs=$link_all_deplibs 22572 22573# Set to "yes" if exported symbols are required. 22574always_export_symbols=$always_export_symbols 22575 22576# The commands to list exported symbols. 22577export_symbols_cmds=$lt_export_symbols_cmds 22578 22579# Symbols that should not be listed in the preloaded symbols. 22580exclude_expsyms=$lt_exclude_expsyms 22581 22582# Symbols that must always be exported. 22583include_expsyms=$lt_include_expsyms 22584 22585# Commands necessary for linking programs (against libraries) with templates. 22586prelink_cmds=$lt_prelink_cmds 22587 22588# Commands necessary for finishing linking programs. 22589postlink_cmds=$lt_postlink_cmds 22590 22591# Specify filename containing input files. 22592file_list_spec=$lt_file_list_spec 22593 22594# How to hardcode a shared library path into an executable. 22595hardcode_action=$hardcode_action 22596 22597# ### END LIBTOOL CONFIG 22598 22599_LT_EOF 22600 22601 cat <<'_LT_EOF' >> "$cfgfile" 22602 22603# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22604 22605# func_munge_path_list VARIABLE PATH 22606# ----------------------------------- 22607# VARIABLE is name of variable containing _space_ separated list of 22608# directories to be munged by the contents of PATH, which is string 22609# having a format: 22610# "DIR[:DIR]:" 22611# string "DIR[ DIR]" will be prepended to VARIABLE 22612# ":DIR[:DIR]" 22613# string "DIR[ DIR]" will be appended to VARIABLE 22614# "DIRP[:DIRP]::[DIRA:]DIRA" 22615# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22616# "DIRA[ DIRA]" will be appended to VARIABLE 22617# "DIR[:DIR]" 22618# VARIABLE will be replaced by "DIR[ DIR]" 22619func_munge_path_list () 22620{ 22621 case x$2 in 22622 x) 22623 ;; 22624 *:) 22625 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22626 ;; 22627 x:*) 22628 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22629 ;; 22630 *::*) 22631 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22632 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22633 ;; 22634 *) 22635 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22636 ;; 22637 esac 22638} 22639 22640 22641# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22642func_cc_basename () 22643{ 22644 for cc_temp in $*""; do 22645 case $cc_temp in 22646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22648 \-*) ;; 22649 *) break;; 22650 esac 22651 done 22652 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22653} 22654 22655 22656# ### END FUNCTIONS SHARED WITH CONFIGURE 22657 22658_LT_EOF 22659 22660 case $host_os in 22661 aix3*) 22662 cat <<\_LT_EOF >> "$cfgfile" 22663# AIX sometimes has problems with the GCC collect2 program. For some 22664# reason, if we set the COLLECT_NAMES environment variable, the problems 22665# vanish in a puff of smoke. 22666if test set != "${COLLECT_NAMES+set}"; then 22667 COLLECT_NAMES= 22668 export COLLECT_NAMES 22669fi 22670_LT_EOF 22671 ;; 22672 esac 22673 22674 22675 22676ltmain=$ac_aux_dir/ltmain.sh 22677 22678 22679 # We use sed instead of cat because bash on DJGPP gets confused if 22680 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22681 # text mode, it properly converts lines to CR/LF. This bash problem 22682 # is reportedly fixed, but why not run on old versions too? 22683 $SED '$q' "$ltmain" >> "$cfgfile" \ 22684 || (rm -f "$cfgfile"; exit 1) 22685 22686 mv -f "$cfgfile" "$ofile" || 22687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22688 chmod +x "$ofile" 22689 22690 ;; 22691 22692 esac 22693done # for ac_tag 22694 22695 22696as_fn_exit 0 22697_ACEOF 22698ac_clean_files=$ac_clean_files_save 22699 22700test $ac_write_fail = 0 || 22701 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22702 22703 22704# configure is writing to config.log, and then calls config.status. 22705# config.status does its own redirection, appending to config.log. 22706# Unfortunately, on DOS this fails, as config.log is still kept open 22707# by configure, so config.status won't be able to write to it; its 22708# output is simply discarded. So we exec the FD to /dev/null, 22709# effectively closing config.log, so it can be properly (re)opened and 22710# appended to by config.status. When coming back to configure, we 22711# need to make the FD available again. 22712if test "$no_create" != yes; then 22713 ac_cs_success=: 22714 ac_config_status_args= 22715 test "$silent" = yes && 22716 ac_config_status_args="$ac_config_status_args --quiet" 22717 exec 5>/dev/null 22718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22719 exec 5>>config.log 22720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22721 # would make configure fail if this is the last instruction. 22722 $ac_cs_success || as_fn_exit 1 22723fi 22724if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22726printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22727fi 22728 22729 22730